/**
 * GilGamez Platform — Unified SPA Layout & Dynamic Header Grid Stylesheet
 * Enforces Rule #1 (CSS separation), Rule #5 (SemVer v1.3.0), and Rule #6 (5-tier responsiveness).
 */

:root {
    --header-left-ratio: 2.5;
    --header-mid-ratio: 5.0;
    --header-right-ratio: 2.5;
    --primary-color: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --bg-dark: #0a0b0e;
    --bg-card: rgba(18, 20, 29, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

/* ─── Global Utility Helpers ──────────────────────────────────────── */
.initially-hidden {
    display: none !important;
}

/* ─── Global Reset & Body ─────────────────────────────────────────── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* ─── Particle Physics & FX Canvases ────────────────────────────── */
.particle-background-canvas,
.particle-fx-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    display: block;
}

.particle-background-canvas {
    z-index: 0;
}

.particle-fx-canvas {
    z-index: 9998;
}

/* ─── 1. Header (In-Place Initially, Sticky Top on Scroll) ────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 0 28px;
    height: 72px;
    display: flex;
    align-items: center;
    transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease,
                height 0.35s ease,
                backdrop-filter 0.35s ease;
}

/* Sticky top state triggered when page rolls pass header position */
.site-header.is-sticky {
    background: rgba(10, 11, 16, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    height: 64px;
}

.site-header-grid {
    display: grid;
    grid-template-columns: var(--header-grid-columns, 2.5fr 5fr 2.5fr);
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    gap: 16px;
    height: 100%;
}

/* Left Zone: Brand Logo & Title */
.header-col-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    transition: transform 0.2s ease;
}

.brand-link:hover {
    transform: scale(1.02);
}

.brand-logo-icon {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.brand-logo-img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(221, 175, 49, 0.4));
    transition: transform 0.3s ease;
}

.brand-link:hover .brand-logo-img {
    transform: scale(1.08) rotate(3deg);
}

.brand-title-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 60%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Mid Zone: Navigation Pills */
.header-col-mid {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-pill-list {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--border-subtle);
    list-style: none;
}

.nav-pill-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 24px;
    transition: all 0.25s ease;
}

.nav-pill-item a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.nav-pill-item a.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

/* Right Zone: Action Controls & User Auth */
.header-col-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-header-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-header-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ── Header Menu Treatments (Maintenance & Under Construction Modes) ── */
.site-header.header-menu-disabled .header-col-mid .nav-pill-list,
.site-header.header-menu-disabled #header-user-actions {
    opacity: 0.45;
    cursor: not-allowed;
    user-select: none;
}

.site-header.header-menu-disabled .nav-pill-item a,
.site-header.header-menu-disabled #btn-auth-trigger {
    cursor: not-allowed !important;
    pointer-events: auto;
}

.site-header.header-menu-disabled .nav-pill-item a:hover,
.site-header.header-menu-disabled #btn-auth-trigger:hover {
    background: transparent !important;
    color: var(--text-muted) !important;
    transform: none !important;
}

.site-header.header-menu-hidden .header-col-mid,
.site-header.header-menu-hidden #header-user-actions {
    display: none !important;
}

.site-header.header-menu-hidden .site-header-grid {
    grid-template-columns: 1fr;
    justify-content: center;
}

/* Header Status Badge Mode */
.header-status-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.header-status-badge-pill.maint-badge {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.header-status-badge-pill.uc-badge {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.header-badge-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.maint-badge .header-badge-pulse-dot {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: badgePulseMaint 2s infinite;
}

.uc-badge .header-badge-pulse-dot {
    background: #6366f1;
    box-shadow: 0 0 8px #6366f1;
    animation: badgePulseUc 2s infinite;
}

@keyframes badgePulseMaint {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

@keyframes badgePulseUc {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

/* User Handler Button & Dropdown Menu */
.user-handler-dropdown {
    position: relative;
}

.btn-user-handler {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-user-handler:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.user-name-label {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-chevron {
    transition: transform 0.25s ease;
}

.user-handler-dropdown.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #131620;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
    z-index: 1050;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.user-handler-dropdown.is-open .user-dropdown-menu {
    display: block;
}

@keyframes dropdownFadeIn {
    0% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
    padding: 10px 12px 8px;
}

.user-dropdown-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-role {
    font-size: 0.72rem;
    font-weight: 600;
    color: #818cf8;
    text-transform: uppercase;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.user-dropdown-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-dropdown-logout {
    color: #f87171;
}

.btn-dropdown-logout:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ─── 2. Main Content Container ───────────────────────────────────── */
.main-content-container {
    flex: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    min-height: calc(100vh - 180px);
}

/* Smooth Entrance View Animation */
.spa-view-enter {
    animation: spaViewEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes spaViewEntrance {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── 3. Homepage Components & Sections ───────────────────────────── */
.hp-hero-section {
    position: relative;
    padding: 60px 0 40px;
    text-align: center;
    overflow: hidden;
}

.hp-hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.1) 60%, transparent 80%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.hp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hp-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 20px;
}

.hp-hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 40%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hp-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hp-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.65);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Section Common Headers */
.hp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.hp-section-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #818cf8;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.hp-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}

.hp-section-view-all {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.hp-section-view-all:hover {
    transform: translateX(4px);
}

/* ─── 3.1 Carousel / Promotional Slides ───────────────────────────── */
.hp-carousel-section {
    margin: 20px 0 45px;
}

.hp-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.hp-slides-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.hp-slide-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(18, 20, 30, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    padding: 32px 28px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.hp-slide-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2);
}

.hp-slide-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hp-slide-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hp-slide-subtitle {
    color: var(--text-muted, #94a3b8);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hp-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 10px;
    text-decoration: none;
    width: fit-content;
    margin-top: auto;
    transition: all 0.25s ease;
}

.hp-slide-btn:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    transform: translateX(4px);
}

/* ─── 3.2 Popular Games Section ───────────────────────────────────── */
.hp-popular-games-section {
    margin: 40px 0 55px;
}

.hp-view-all-link {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.hp-view-all-link:hover {
    color: #a5b4fc;
    transform: translateX(4px);
}

.hp-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.hp-game-card {
    background: var(--bg-card, #12141c);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hp-game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(221, 175, 49, 0.5);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(221, 175, 49, 0.15);
}

.hp-game-cover-wrapper {
    position: relative;
    height: 150px;
    width: 100%;
    overflow: hidden;
    background: #151824;
}

.hp-game-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hp-game-card:hover .hp-game-cover-img {
    transform: scale(1.08);
}

.hp-game-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #c7d2fe;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hp-game-details {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: rgba(15, 17, 24, 0.95);
}

.hp-game-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.hp-game-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.hp-game-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

.hp-game-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hp-game-price-wrapper {
    display: flex;
    flex-direction: column;
}

.hp-price-label {
    font-size: 0.7rem;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hp-price-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fbbf24;
}

.btn-topup-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-topup-card:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ─── 3.3 Bento Grid / Ecosystem Highlights ───────────────────────── */
.hp-ecosystem-section {
    margin: 45px 0 55px;
}

.hp-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hp-bento-card {
    background: var(--bg-card, #12141c);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    min-height: 200px;
}

.hp-bento-card.col-span-2 {
    grid-column: span 2;
}

.hp-bento-card.col-span-1 {
    grid-column: span 1;
}

.hp-bento-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-3px);
}

.hp-bento-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #818cf8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
    width: fit-content;
}

.hp-bento-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.hp-bento-desc {
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ─── 3.4 Feature & Benefit Cards ─────────────────────────────────── */
.hp-features-section {
    margin: 45px 0 55px;
}

.hp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.hp-feature-card {
    background: var(--bg-card, #12141c);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    padding: 26px;
    transition: all 0.3s ease;
}

.hp-feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.hp-feature-icon {
    font-size: 26px;
    margin-bottom: 12px;
}

.hp-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.hp-feature-desc {
    color: var(--text-muted, #94a3b8);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Storefront UI Components inside SPA */
.store-hero-header {
    text-align: center;
    margin-bottom: 36px;
}

.store-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.store-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.store-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 24px;
}

.store-toolbar {
    max-width: 500px;
    margin: 0 auto 20px;
}

.store-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 20, 29, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 10px 20px;
    color: var(--text-muted);
}

.store-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    width: 100%;
}

.store-category-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.store-cat-pill {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.store-cat-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.store-cat-pill.is-active {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.store-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.store-game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.store-game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.7);
}

.store-card-image-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.store-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.store-game-card:hover .store-card-image-wrap img {
    transform: scale(1.05);
}

.store-card-cat-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 11, 14, 0.75);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
}

.store-card-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.store-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.store-card-variants {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btn-select-game {
    width: 100%;
    padding: 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 10px;
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-select-game:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border-color: transparent;
}

/* Modal Overlay for Store Checkout */
.store-checkout-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.store-checkout-modal-overlay.is-open {
    display: flex;
}

.store-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.store-modal-container {
    background: #131620;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 540px;
    width: 100%;
    padding: 32px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.store-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.store-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.checkout-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.checkout-brand-img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
}

.checkout-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.checkout-modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.store-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.store-no-results-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.form-field-group {
    margin-bottom: 20px;
}

.form-field-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.form-field-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-field-input:focus {
    border-color: #6366f1;
}

.denom-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.denom-radio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.denom-radio-card input {
    display: none;
}

.denom-radio-card.is-selected {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
}

.denom-card-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 4px;
}

.denom-card-price {
    font-size: 0.78rem;
    color: #a5b4fc;
}

.btn-checkout-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    margin-top: 10px;
}

/* ─── 4c. About View Component Styles ──────────────────────────────── */
.about-view-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
    text-align: center;
}

.about-hero-badge {
    margin-bottom: 16px;
    display: inline-block;
}

.about-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-card-panel {
    background: rgba(18, 20, 29, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    text-align: left;
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.about-card-panel p {
    margin-bottom: 20px;
}

.about-card-panel p:last-child {
    margin-bottom: 0;
}

.about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.about-pillar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
}

.about-pillar-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.about-pillar-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 700;
}

.about-pillar-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── 4d. Unified Universal Auth View Component Styles ──────────────── */
.auth-view-wrapper {
    max-width: 480px;
    margin: 40px auto 60px;
    padding: 0 16px;
    box-sizing: border-box;
    animation: spaAuthFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes spaAuthFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card-panel {
    background: rgba(18, 20, 29, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 30px rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;
}

.auth-card-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ddaf31, #6366f1, #a855f7);
}

.auth-header-block {
    text-align: center;
    margin-bottom: 24px;
}

.auth-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 0 12px rgba(99, 102, 241, 0.2);
}

.auth-brand-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.auth-brand-logo-fallback {
    font-size: 32px;
}

.auth-form-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.auth-form-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0 auto;
    max-width: 360px;
}

/* Dual Mode Tab Switcher */
.auth-tabs-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    padding: 5px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.auth-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.auth-tab-btn.is-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.25));
    color: #fff;
    border: 1px solid rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.auth-form-pane {
    display: none;
    flex-direction: column;
}

.auth-form-pane.is-active {
    display: flex;
    animation: spaPaneFade 0.25s ease forwards;
}

@keyframes spaPaneFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-alert-box {
    display: none;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    line-height: 1.4;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.auth-alert-box.is-visible {
    display: block !important;
    animation: spaPaneFade 0.2s ease forwards;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.auth-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.auth-input-field {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.auth-input-field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: rgba(15, 23, 42, 0.95);
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.auth-password-toggle:hover {
    color: #fff;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.55);
}

.auth-submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.auth-footer-block {
    text-align: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-return-link {
    color: #94a3b8;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-return-link:hover {
    color: #fff;
}

/* 5-Tier Responsive Rules for Auth View */
@media (min-width: 1920px) {
    .auth-view-wrapper {
        max-width: 520px;
        margin: 60px auto 80px;
    }
    .auth-card-panel {
        padding: 44px 38px;
    }
}

@media (max-width: 768px) {
    .auth-view-wrapper {
        max-width: 100%;
        margin: 20px auto 40px;
        padding: 0 12px;
    }
    .auth-card-panel {
        padding: 28px 20px;
        border-radius: 18px;
    }
    .auth-form-title {
        font-size: 1.45rem;
    }
}

@media (max-width: 480px) {
    .auth-card-panel {
        padding: 24px 16px;
    }
    .auth-tab-btn {
        font-size: 0.82rem;
        padding: 8px 10px;
    }
    .auth-input-field {
        font-size: 0.9rem;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .auth-submit-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* ─── 4. Footer ───────────────────────────────────────────────────── */
.site-footer {
    width: 100%;
    background: rgba(10, 11, 14, 0.95);
    border-top: 1px solid var(--border-subtle);
    padding: 40px 24px 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social-link {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    color: #6366f1;
    transform: translateY(-2px);
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand-heading {
    margin-bottom: 0;
}

.footer-site-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 450px;
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-legal-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: var(--text-main);
}

/* ─── 5. Dual-Mode Graphical Animated Preloader ───────────────────── */
.global-preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #08090d;
    background: radial-gradient(circle at 50% 50%, #141724 0%, #08090d 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
    overflow: hidden;
}

.global-preloader.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.preloader-ambient-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(221, 175, 49, 0.22) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.preloader-visual-hub {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 3.5px solid rgba(255, 255, 255, 0.05);
    border-top: 3.5px solid #ddaf31;
    border-right: 3.5px solid #6366f1;
    -webkit-animation: criticalPreloaderSpinClockwise 0.9s linear infinite;
    animation: criticalPreloaderSpinClockwise 0.9s linear infinite;
    filter: drop-shadow(0 0 12px rgba(221, 175, 49, 0.6));
    transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
    will-change: transform;
}

.preloader-ring-inner {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 88px;
    height: 88px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom: 3px solid #a855f7;
    border-left: 3px solid #ddaf31;
    -webkit-animation: criticalPreloaderSpinCounterClockwise 0.7s linear infinite;
    animation: criticalPreloaderSpinCounterClockwise 0.7s linear infinite;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
    transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
    will-change: transform;
}

.preloader-emblem-center {
    position: relative;
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
    border-radius: 50%;
    background: rgba(15, 17, 26, 0.95);
    border: 1.5px solid rgba(221, 175, 49, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(221, 175, 49, 0.35), inset 0 0 10px rgba(99, 102, 241, 0.25);
    -webkit-animation: criticalEmblemPulse 1.8s ease-in-out infinite;
    animation: criticalEmblemPulse 1.8s ease-in-out infinite;
    overflow: hidden;
    box-sizing: border-box;
    padding: 6px;
    z-index: 2;
    transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
    will-change: transform;
}

.preloader-emblem-img {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* Mode B: Container Animated Overlay Preloader */
.container-preloader-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 240px;
    background: rgba(10, 11, 16, 0.82);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.container-preloader-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.container-spinner-hub {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.08);
    border-top-color: #ddaf31;
    border-right-color: #6366f1;
    animation: ringRotateClockwise 0.9s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    filter: drop-shadow(0 0 8px rgba(221, 175, 49, 0.5));
}

.container-ring-inner {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: #a855f7;
    animation: ringRotateCounterClockwise 0.7s linear infinite;
}

.container-emblem-icon {
    font-size: 20px;
    animation: emblemPulse 1.5s ease-in-out infinite;
}

@keyframes ringRotateClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ringRotateCounterClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes emblemPulse {
    0%, 100% { transform: scale(0.94); opacity: 0.9; }
    50% { transform: scale(1.06); opacity: 1; }
}

@-webkit-keyframes criticalPreloaderSpinClockwise {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes criticalPreloaderSpinClockwise {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@-webkit-keyframes criticalPreloaderSpinCounterClockwise {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(-360deg); transform: rotate(-360deg); }
}

@keyframes criticalPreloaderSpinCounterClockwise {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(-360deg); transform: rotate(-360deg); }
}

@-webkit-keyframes criticalEmblemPulse {
    0%, 100% { -webkit-transform: scale(0.92); transform: scale(0.92); opacity: 0.9; }
    50% { -webkit-transform: scale(1.08); transform: scale(1.08); opacity: 1; }
}

@keyframes criticalEmblemPulse {
    0%, 100% { -webkit-transform: scale(0.92); transform: scale(0.92); opacity: 0.9; }
    50% { -webkit-transform: scale(1.08); transform: scale(1.08); opacity: 1; }
}

@-webkit-keyframes criticalAmbientPulse {
    0% { -webkit-transform: scale(0.85); transform: scale(0.85); opacity: 0.45; }
    100% { -webkit-transform: scale(1.18); transform: scale(1.18); opacity: 0.85; }
}

@keyframes criticalAmbientPulse {
    0% { -webkit-transform: scale(0.85); transform: scale(0.85); opacity: 0.45; }
    100% { -webkit-transform: scale(1.18); transform: scale(1.18); opacity: 0.85; }
}

@keyframes ambientPulse {
    0% { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 0.85; }
}

/* Smooth Container Crossfade Transition */
.main-content-container {
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-content-container.is-transitioning {
    opacity: 0.6;
    transform: scale(0.995);
}

/* Shimmering Content Skeletons */
.skeleton-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-thumb {
    height: 130px;
    width: 100%;
    border-radius: 12px;
}

.skeleton-line {
    height: 14px;
    width: 100%;
}

.skeleton-title {
    width: 70%;
    height: 18px;
}

.skeleton-sub {
    width: 45%;
}

.skeleton-price {
    width: 55%;
    margin-top: 8px;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── 6. Custom Bottom Loading Bar (#bottom-loading-bar) ───────────── */
.bottom-loading-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 3.5px;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.8), 0 0 20px rgba(99, 102, 241, 0.6);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.3s ease;
}

/* ─── 7. 5-Tier Responsive Breakpoints (Rule #6) ─────────────────── */

/* Tier 1: 4K & Ultra-wide Screens (1920px+) */
@media (min-width: 1920px) {
    .site-header-grid,
    .main-content-container,
    .footer-inner {
        max-width: 1720px;
    }
}

/* Tier 2: Standard Laptops / Desktops (1280px - 1440px) - Defaults above */

/* Tier 3: Tablets & Small Laptops (768px - 1024px) */
@media (max-width: 1024px) {
    .site-header {
        padding: 0 18px;
    }
    .site-header-grid {
        grid-template-columns: var(--header-grid-columns, 2.5fr 5fr 2.5fr);
        gap: 10px;
    }
    .nav-pill-item a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .hp-bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hp-bento-card.featured {
        grid-column: 1 / -1;
    }
}

/* Tier 4: Mobile Landscape (481px - 767px) */
@media (max-width: 767px) {
    .site-header {
        height: auto;
        padding: 10px 16px;
    }
    .site-header-grid {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }
    .header-col-mid {
        order: 3;
        grid-column: 1 / -1;
        justify-content: center;
        overflow-x: auto;
        padding-top: 6px;
    }
    .brand-title-text {
        font-size: 1.1rem;
    }
    .btn-header-cta {
        padding: 6px 12px;
        font-size: 0.82rem;
    }
    .main-content-container {
        padding: 16px;
    }
    .hp-bento-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Tier 5: Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    .brand-badge {
        display: none;
    }
    .nav-pill-list {
        width: 100%;
        justify-content: space-around;
    }
    .nav-pill-item a {
        padding: 6px 12px;
        font-size: 0.82rem;
    }
    .btn-header-outline {
        display: none;
    }
    .denom-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .footer-legal-links {
        flex-wrap: wrap;
        gap: 12px;
    }
}
