@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800;900&display=swap');

/* Custom Minecraft Fonts */
@font-face {
    font-family: 'Minecraft';
    src: url('assets/minecraft.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'MinecraftBold';
    src: url('assets/minecraft-bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-dark-navy: #060a18;
    --sky-deep: #071428;
    --sky-mid: #0a1f3d;
    --sky-horizon: #0d2a52;
    --gold-primary: #d4af37;
    --gold-hover: #f3e5ab;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --text-main: #f0f2f5;
    --text-muted: #9ba1b0;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4, h5, h6, .logo-text, .footer-title, .step-num, .stat-value, .drawer-item-title, .section-heading, .tile-eyebrow, .hero-tagline, .nav-item {
    font-family: var(--font-heading);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Animated sky — lowest layer */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 20%,
        #1a4a7a 40%,
        #1e5288 52%,
        #12365e 65%,
        #0a1c36 78%,
        #06122c 100%
    );
}

/* BG image — fades out softly towards the bottom */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to bottom,
            rgba(6,18,44,0) 0%,
            rgba(6,18,44,0) 20%,
            rgba(6,18,44,0.4) 40%,
            rgba(6,18,44,0.75) 65%,
            rgba(6,18,44,1) 85%
        ),
        url('assets/plexiusserverbackground.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

body {
    font-family: var(--font-body);
    background: transparent;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.header-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    background: rgba(10,11,24,0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                border-radius 0.3s ease,
                top 0.3s ease,
                width 0.3s ease;
    overflow: hidden;
}

.header-nav.scrolled {
    top: 1.5rem;
    width: 90%;
    border-radius: 16px;
    background: rgba(8,9,18,0.95);
    border-color: rgba(212,175,55,0.35);
    box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 15px rgba(212,175,55,0.1);
}

/* When drawer is open: expand to a fixed height so the CSS height
   transition fires properly (height:auto is not animatable). */
.header-nav.drawer-open {
    height: 236px;
    border-radius: 16px;
    padding-bottom: 1.25rem;
}

.nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 70px;
    flex-shrink: 0;
}

.logo-section { display: flex; align-items: center; gap: 0.75rem; }

.logo-container {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.logo-img { max-width: 100%; max-height: 100%; object-fit: cover; border-radius: 50%; }

.logo-text {
    font-family: var(--font-body);
    font-size: 1.5rem; font-weight: 800; letter-spacing: 2px;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; }

.nav-item {
    text-decoration: none; color: var(--text-muted); font-weight: 500;
    font-size: 0.95rem; padding: 0.5rem 1rem; border-radius: 20px;
    display: flex; align-items: center; gap: 0.4rem;
    transition: var(--transition-smooth);
}

.nav-item:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.nav-item:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 2px; }

.nav-item.active {
    color: var(--gold-primary);
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
}

.nav-icon { width: 16px; height: 16px; }

.store-highlight,
.store-highlight.active {
    background: linear-gradient(135deg, var(--gold-primary), #b8860b) !important;
    color: #000 !important; font-weight: 700; border: none !important;
    box-shadow: 0 4px 15px var(--gold-glow) !important;
}

.store-highlight:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
    box-shadow: 0 6px 20px rgba(212,175,55,0.6);
}

.main-content {
    display: flex; flex-direction: column;
    align-items: center; width: 100%;
    position: relative; z-index: 1;
    flex: 1;
}

/* Hero */
.hero-section {
    width: 100%;
    padding-top: 130px;
    padding-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-container {
    display: flex; flex-direction: column;
    align-items: center;
    max-width: 920px; width: 90%;
    gap: 1.75rem;
}

.server-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 0;
}

.logo-wrapper {
    flex: 0 1 500px;
    min-width: 0;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-brand-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(212,175,55,0.5));
}

/* Social icons flanking logo */
.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px; height: 96px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.social-icon-link svg {
    width: 56px;
    height: 56px;
    transition: var(--transition-smooth);
}

.social-icon-link:hover {
    transform: translateY(-4px);
}

.social-icon-link:hover svg {
    transform: scale(1.08);
}

.social-icon-link:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 3px;
}

.social-icon-link.youtube-link {
    background: #FF0000;
    border-color: #FF0000;
}

.social-icon-link.youtube-link:hover {
    background: #E60000;
    border-color: #E60000;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.45), 0 0 25px rgba(255, 0, 0, 0.2);
}

.social-icon-link.discord-link {
    background: #5865F2;
    border-color: #5865F2;
}

.social-icon-link.discord-link:hover {
    background: #4752C4;
    border-color: #4752C4;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.45), 0 0 25px rgba(88, 101, 242, 0.2);
}

/* Real-time IP card dot and label states */
.ip-dot.loading {
    background: var(--gold-primary);
    box-shadow: 0 0 6px var(--gold-glow);
    animation: dot-pulse-yellow 1.5s ease-in-out infinite;
}

.ip-dot.offline {
    background: #e74c3c;
    box-shadow: 0 0 6px rgba(231, 76, 60, 0.8);
    animation: none;
}

.ip-dot.online {
    background: #2ecc71;
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.8);
}

.ip-online-label.offline {
    color: #e74c3c;
}

.ip-online-label.online {
    color: #2ecc71;
}

.ip-online-label.loading {
    color: var(--gold-primary);
}

@keyframes dot-pulse-yellow {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--gold-glow); }
    50% { opacity: 0.5; box-shadow: 0 0 12px rgba(212, 175, 55, 0.2); }
}

.hero-tagline {
    font-size: 0.9rem; color: var(--text-muted);
    font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase;
}

/* Stats Row */
.stats-row {
    display: flex; align-items: center;
    background: rgba(10,11,24,0.5);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.stat-item {
    display: flex; flex-direction: column;
    align-items: center; padding: 1rem 2rem; gap: 0.2rem;
}

.stat-value {
    font-size: 1.15rem; font-weight: 800;
    color: var(--gold-primary); letter-spacing: 0.5px;
}

.stat-label {
    font-size: 0.7rem; color: var(--text-muted);
    letter-spacing: 1px; text-transform: uppercase;
}

.stat-divider {
    width: 1px; height: 36px;
    background: rgba(255,255,255,0.07); flex-shrink: 0;
}

/* IP Card */
.ip-card {
    display: flex; flex-direction: column;
    align-items: center; gap: 0.35rem;
    background: rgba(10,11,24,0.55);
    border: 1px solid rgba(212,175,55,0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1.25rem 3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative; overflow: hidden;
    font-family: inherit; color: inherit;
    appearance: none; -webkit-appearance: none;
    width: 100%; max-width: 480px;
}

.ip-card::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.08) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}

.ip-card:hover::before { opacity: 1; }

.ip-card:hover {
    border-color: rgba(212,175,55,0.5);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 24px rgba(212,175,55,0.1);
}

.ip-card:active { transform: translateY(0) scale(0.98); }
.ip-card:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 3px; }

.ip-status-row { display: flex; align-items: center; gap: 0.4rem; }

.ip-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #2ecc71; box-shadow: 0 0 6px rgba(46,204,113,0.8);
    animation: dot-pulse 2.5s ease-in-out infinite; display: inline-block;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(46,204,113,0.8); }
    50% { opacity: 0.6; box-shadow: 0 0 14px rgba(46,204,113,0.4); }
}

.ip-online-label {
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 2px; color: #2ecc71; text-transform: uppercase;
}

.ip-address {
    font-family: var(--font-mono); font-size: 1.45rem;
    font-weight: 600; color: var(--text-main);
    letter-spacing: 0.5px; display: block;
}

.ip-port {
    font-family: var(--font-mono); font-size: 0.88rem;
    font-weight: 500; color: var(--text-muted);
    opacity: 0.75; display: block;
    margin-top: 0.15rem;
}

.ip-copy-hint {
    display: flex; align-items: center; gap: 0.3rem;
    font-size: 0.72rem; color: var(--text-muted);
    opacity: 0.55; transition: opacity 0.2s ease, color 0.2s ease;
}

.ip-card:hover .ip-copy-hint { opacity: 1; color: var(--gold-primary); }

/* CTAs */
.cta-group {
    display: flex; gap: 1.25rem;
    flex-wrap: wrap; justify-content: center;
}

.btn {
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-size: 1rem; font-weight: 700;
    border-radius: 12px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 3px; }

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), #a16207);
    color: #000;
    box-shadow: 0 4px 20px var(--gold-glow);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.5);
    background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.btn-secondary:active { transform: translateY(0) scale(0.98); }

/* About */
.about-section {
    width: 90%; max-width: 960px; padding-bottom: 3.5rem;
}

.tile {
    background: rgba(10,11,24,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    display: flex; flex-direction: row;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    transition: var(--transition-smooth);
}

.tile:hover {
    border-color: rgba(212,175,55,0.28);
    box-shadow: 0 24px 70px rgba(0,0,0,0.65), 0 0 20px rgba(212,175,55,0.08);
    transform: translateY(-3px);
}

.tile-image-container {
    width: 44%; position: relative;
    min-height: 340px; overflow: hidden; flex-shrink: 0;
}

.tile-img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; inset: 0;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.tile:hover .tile-img { transform: scale(1.05); }

.tile-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(8,9,18,0.6) 100%);
    pointer-events: none;
}

.tile-content-container {
    width: 56%; padding: 2.5rem;
    display: flex; flex-direction: column;
    justify-content: center; gap: 0.85rem;
}

.tile-eyebrow {
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--gold-primary); opacity: 0.8;
}

.tile-content-container h2 {
    font-size: 1.75rem; font-weight: 900;
    color: var(--text-main); line-height: 1.2; letter-spacing: -0.3px;
}

.tile-content-container p {
    font-size: 0.9rem; line-height: 1.7; color: var(--text-muted);
}

.tile-features { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.25rem; }

.tile-feature {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.85rem; color: var(--text-muted);
}

.tile-feature svg { color: var(--gold-primary); flex-shrink: 0; }

/* Join Section */
.join-section { width: 100%; padding: 0 0 6rem; }

.join-inner {
    width: 90%; max-width: 960px;
    margin: 0 auto; text-align: center;
}

.section-heading {
    font-size: 2rem; font-weight: 900;
    color: var(--text-main); letter-spacing: -0.5px; margin-bottom: 0.5rem;
}

.section-subheading {
    font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2.5rem;
}

.steps-grid { display: flex; align-items: stretch; }

.step-card {
    flex: 1;
    background: rgba(10,11,24,0.5);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px; padding: 2rem 1.75rem;
    text-align: left;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.step-card:hover {
    border-color: rgba(212,175,55,0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.step-num {
    font-family: var(--font-mono); font-size: 2.25rem; font-weight: 600;
    color: rgba(212,175,55,0.18); line-height: 1;
    margin-bottom: 1rem; letter-spacing: -1px;
}

.step-card h3 {
    font-size: 1.05rem; font-weight: 700;
    color: var(--text-main); margin-bottom: 0.5rem;
}

.step-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.step-ip {
    font-family: var(--font-mono); font-size: 0.82rem;
    color: var(--gold-primary);
    background: rgba(212,175,55,0.08);
    padding: 0.1rem 0.4rem; border-radius: 4px;
}

.step-connector {
    flex-shrink: 0; padding: 0 1rem;
    color: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #04050a; padding: 1rem 2rem;
    width: 100%; text-align: center;
    z-index: 10; position: relative;
    margin-top: auto;
    width: 100%; text-align: center;
    z-index: 10; position: relative;
}

.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-direction: row;
    justify-content: space-between; align-items: center; gap: 1.5rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo { width: 24px; height: 24px; }
.footer-title { font-size: 1rem; font-weight: 800; letter-spacing: 1px; }
.footer-disclaimer { font-size: 0.7rem; color: #5b606c; max-width: 600px; }
.footer-copyright { font-size: 0.75rem; color: var(--text-muted); }

/* Toast */
.toast-alert {
    position: fixed; bottom: 2.5rem; left: 50%;
    transform: translate(-50%, 100px);
    background: rgba(10,11,24,0.95);
    border: 1.5px solid var(--gold-primary);
    padding: 1rem 2rem; border-radius: 40px;
    display: flex; align-items: center; gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 15px rgba(212,175,55,0.25);
    z-index: 10000; opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    pointer-events: none;
}

.toast-alert.show { transform: translate(-50%, 0); opacity: 1; }
.toast-icon { width: 20px; height: 20px; color: #2ecc71; }
.toast-alert span { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.5px; }

/* Animations */
.animate-pulse { animation: logo-glow 3s infinite ease-in-out; }

@keyframes logo-glow {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 22px rgba(212,175,55,0.35));
    }
    50% {
        transform: translateY(-10px) scale(1.02);
        filter: drop-shadow(0 0 40px rgba(212,175,55,0.7));
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-pulse, .ip-dot { animation: none; }
    * { transition-duration: 0.01ms !important; }
}

/* Mobile */
@media (max-width: 768px) {
    .header-nav {
        top: 1rem;
        width: 94%;
        border-radius: 14px;
        padding: 0 0.75rem;
        height: 52px;
    }
    .header-nav.drawer-open {
        height: 294px;
        border-radius: 14px;
        padding-bottom: 0.75rem;
    }
    .nav-top-row {
        height: 52px;
    }

    .logo-container {
        width: 28px;
        height: 28px;
    }
    .logo-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    .logo-section {
        gap: 0.35rem;
    }

    .nav-links { gap: 0.25rem; }
    .nav-item { font-size: 0.75rem; padding: 0.3rem 0.45rem; }
    .nav-item svg { display: none; }

    .hero-section { padding-top: 95px; padding-bottom: 1.5rem; }
    .hero-brand-logo {
        max-width: 240px;
        margin: 0 auto;
        display: block;
    }
    .server-brand {
        gap: 1rem;
    }
    .logo-wrapper {
        flex: 0 1 240px;
        max-width: 240px;
    }
    .hero-brand-logo {
        max-width: 240px;
        display: block;
    }
    .social-icon-link {
        display: none !important;
    }

    .about-section {
        padding-bottom: 2rem;
    }

    .stats-row { flex-direction: column; width: 100%; }
    .stat-divider { width: 80%; height: 1px; }
    .stat-item { padding: 0.75rem 2rem; }

    .ip-address { font-size: 1.15rem; }
    .ip-card { padding: 1rem 1.5rem; max-width: 100%; }

    .tile { flex-direction: column; }
    .tile-image-container { width: 100%; min-height: 220px; }
    .tile-img-overlay { background: linear-gradient(to bottom, transparent 60%, rgba(8,9,18,0.6) 100%); }
    .tile-content-container { width: 100%; padding: 1.75rem; }
    .tile-content-container h2 { font-size: 1.4rem; }

    .steps-grid { flex-direction: column; gap: 0.75rem; }
    .step-connector { transform: rotate(90deg); padding: 0.25rem 0; }
    .section-heading { font-size: 1.6rem; }

    .footer-content { flex-direction: column; text-align: center; gap: 0.5rem; }

    /* Drawer Mobile Layout */
    .navbar-dropdown-drawer {
        padding: 0.75rem 0 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .drawer-inner {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .drawer-item {
        padding: 0.85rem 1rem;
        gap: 0.85rem;
        border-radius: 10px;
    }
    .drawer-item svg {
        width: 24px;
        height: 24px;
    }
    .drawer-item-title {
        font-size: 0.95rem;
    }
    .drawer-item-desc {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .cta-group { flex-direction: column; width: 100%; }
    .btn { text-align: center; }
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-item.socials-highlight {
    background: #FF0000;
    color: #FFFFFF !important;
    border: 1px solid #FF0000;
}

.nav-item.socials-highlight:hover,
.nav-item.socials-highlight:focus-visible {
    background: #E60000;
    border-color: #E60000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.navbar-dropdown-drawer {
    position: relative;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.28s ease 0.08s,
                transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
                visibility 0.28s ease 0.08s;
    z-index: 999;
    padding: 1.25rem 0 1.5rem;
    box-sizing: border-box;
}

.header-nav.drawer-open .navbar-dropdown-drawer,
.header-nav:hover:has(#socials-dropdown-toggle:hover) .navbar-dropdown-drawer,
.navbar-dropdown-drawer:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Staggered slide-in for each drawer card */
@keyframes drawerItemIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header-nav.drawer-open .drawer-item {
    animation: drawerItemIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* YouTube card — first, fires immediately after nav finishes expanding */
.header-nav.drawer-open .youtube-drawer-item {
    animation-delay: 0.18s;
}

/* Discord card — second, slight offset for stagger */
.header-nav.drawer-open .discord-drawer-item {
    animation-delay: 0.26s;
}

.drawer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
    text-align: left;
}

.drawer-item svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.youtube-drawer-item svg { color: #FF0000; }
.discord-drawer-item svg { color: #5865F2; }

.drawer-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.drawer-item:hover svg {
    transform: scale(1.1);
}

.drawer-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drawer-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.drawer-item-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.dropdown-arrow {
    transition: transform 0.25s ease;
    margin-left: 0.2rem;
    flex-shrink: 0;
}

.header-nav.drawer-open .dropdown-arrow,
.header-nav:hover:has(#socials-dropdown-toggle:hover) .dropdown-arrow {
    transform: rotate(180deg);
}

/* Support Section */
.support-section {
    width: 100%;
    padding: 0 0 5rem;
}

.support-inner {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.support-card {
    background: rgba(10, 11, 24, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    transition: var(--transition-smooth);
}

.support-card:hover {
    border-color: rgba(212, 175, 55, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 15px rgba(212, 175, 55, 0.05);
}

.support-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.support-email, .support-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border-bottom: 1px dashed rgba(212, 175, 55, 0.4);
    padding-bottom: 1px;
}

.support-email:hover, .support-link:hover {
    color: var(--gold-hover);
    border-bottom-color: var(--gold-hover);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* Scroll reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Custom Store Page Styles
   ========================================================================== */

.store-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 150px 0 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
    z-index: 10;
    position: relative;
}

.store-header-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    background: rgba(13, 14, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.store-header-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ec4899, #3b82f6);
}

.store-header-section:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9);
}

.store-header-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.store-header-icon {
    font-size: 2rem;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.65));
    animation: crown-float 3s ease-in-out infinite;
}

@keyframes crown-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(3deg);
    }
}

.store-title {
    font-size: 3.25rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ec4899 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.45));
    margin-bottom: 0.25rem;
}

.store-subtitle {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.65;
}

/* Username Card Styling */
.username-card {
    background: rgba(10, 11, 24, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 24px;
    padding: 2.25rem;
    width: 100%;
    max-width: 580px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.username-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.username-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 25px rgba(212,175,55,0.08);
}

.username-card.wobble {
    animation: wobble-card 0.6s ease-in-out;
}

@keyframes wobble-card {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-8px); }
    30%, 60%, 90% { transform: translateX(8px); }
}

.username-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 0.25rem;
    letter-spacing: 0.2px;
}

.username-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.edition-selector {
    display: flex;
    gap: 0;
    background: rgba(4, 5, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 4px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 0.5rem;
}

.edition-btn {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.edition-btn:hover:not(.active) {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.edition-btn.active {
    background: linear-gradient(135deg, var(--gold-primary), #a16207);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.username-btn:disabled,
.username-input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.username-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.username-input-row {
    display: flex;
    gap: 1rem;
}

.username-input-container {
    position: relative;
    flex: 1;
}

.username-input-container i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.username-input {
    width: 100%;
    padding: 1.1rem 1.25rem 1.1rem 3.25rem;
    background: rgba(4, 5, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.username-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
    background: rgba(4, 5, 10, 0.85);
}

.username-input:focus + i {
    color: var(--gold-primary);
    opacity: 1;
}

.username-btn {
    padding: 0 2rem;
    background: linear-gradient(135deg, var(--gold-primary), #a16207);
    color: #000;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.username-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
}

.username-btn:active {
    transform: translateY(0);
}

/* Logged in Username State */
.username-active-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.username-avatar-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.username-avatar {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    border-radius: 8px;
}

.username-details-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.username-details-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.username-details-text h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.2px;
}

.change-username-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.change-username-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--gold-primary);
}

/* Category Filters Styling */
.category-filters {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    width: 100%;
}

/* Gems Section Heading */
.gems-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(8, 9, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem 2.5rem;
    width: fit-content;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    margin: 0 auto 1.5rem;
}

.gems-section-heading:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.gems-section-heading i {
    font-size: 1.4rem;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.4));
}

.gems-section-heading h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
    margin: 0;
}

/* Webstore Grid & Cards */
.webstore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.package-card {
    background: rgba(10, 11, 24, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.25rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.package-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 25px rgba(212,175,55,0.06);
}

/* Highlight Featured Card (Legend Rank) */
.package-card.featured {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 16px 45px rgba(212, 175, 55, 0.08), 0 16px 40px rgba(0,0,0,0.6);
}

.package-card.featured::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
}

.package-card.featured:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 24px 70px rgba(0,0,0,0.7), 0 0 30px rgba(212, 175, 55, 0.15);
}

.package-badge {
    position: absolute;
    top: 1.25rem;
    right: -2rem;
    background: linear-gradient(135deg, var(--gold-primary), #a16207);
    color: #000;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.3rem 2.25rem;
    transform: rotate(45deg);
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.package-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.package-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.6rem;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.package-card:hover .package-icon-box {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--gold-hover);
    transform: scale(1.05);
}

.package-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.package-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.package-price {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.package-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.package-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.75rem;
    min-height: 44px;
}

.package-perks-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.package-perks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2.25rem;
    flex: 1;
}

.package-perk-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.package-perk-item i {
    color: var(--gold-primary);
    margin-top: 2px;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.package-buy-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.package-buy-btn:hover {
    background: linear-gradient(135deg, var(--gold-primary), #a16207);
    color: #000;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 6px 20px var(--gold-glow);
    transform: translateY(-2px);
}

.package-buy-btn:active {
    transform: translateY(0);
}

/* Featured Rank Buy Button always styled primary */
.package-card.featured .package-buy-btn {
    background: linear-gradient(135deg, var(--gold-primary), #a16207);
    color: #000;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.package-card.featured .package-buy-btn:hover {
    background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* ═══════════════════════════════════════════════════════
   Rank Comparison Grid  (rc-*)
   Layout: label col (220px) + 3 equal rank columns
   ═══════════════════════════════════════════════════════ */

.rc-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.rc-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(8, 9, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem 2.5rem;
    width: fit-content;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.rc-title-row:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.rc-title-row i {
    font-size: 1.4rem;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.4));
}

.rc-title-row .section-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
    margin: 0;
}

.rc-grid-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    background: rgba(8,9,20,0.85);
}

.rc-grid-wrapper::-webkit-scrollbar {
    height: 6px;
}
.rc-grid-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.rc-grid-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}
.rc-grid-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.rc-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 220px repeat(3, 1fr);
}

/* ── Corner cell (top-left, "RANKS" label) ── */
.rc-corner {
    display: flex;
    align-items: flex-end;
    padding: 1.25rem 1.5rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(4,5,10,0.7);
    border-right: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ── Rank column header cells (hold the injected rc-card) ── */
.rc-rank-col {
    border-right: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,11,24,0.6);
}

.rc-rank-col:last-of-type {
    border-right: none;
}

/* ── Featured rank column tint ── */
.rc-col-featured {
    background: rgba(217,70,239,0.06) !important;
    border-right: none !important;
}

/* ── Row label cells ── */
.rc-label {
    display: flex;
    align-items: center;
    padding: 1.05rem 1.4rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(4,5,10,0.55);
    border-right: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── Data cells ── */
.rc-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.05rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    background: rgba(8,9,20,0.4);
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rc-cell:last-child,
.rc-cell.rc-col-featured {
    border-right: none;
}

.rc-mono {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 1px;
}

.rc-yes { color: #2ecc71; font-size: 1.35rem; }
.rc-no  { color: #e74c3c; font-size: 1.35rem; }

/* No bottom border on last row */
.rc-last { border-bottom: none !important; }

/* ── Rank card (injected by JS into .rc-rank-col) ── */
.rc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1.6rem 1rem 1.4rem;
    text-align: center;
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

.rc-card--featured {
    background: rgba(217,70,239,0.05);
}

.rc-best-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d946ef;
    white-space: nowrap;
}

.rc-card-media-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.rc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rc-card-icon {
    font-size: 2.5rem;
}

.rc-card-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.rc-card-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.rc-card-billing-badge {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.22rem 0.85rem;
    border-radius: 20px;
    border: 1px solid;
}

.rc-card-buy-btn {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.75rem 1rem;
    color: #000;
    border: none;
    border-radius: 9px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: var(--transition-smooth);
}

.rc-card-buy-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.rc-card-buy-btn:active {
    transform: translateY(0) scale(0.97);
}

.rc-card-buy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* ── Skeleton placeholder (while API loads) ── */
.rc-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    opacity: 0.4;
    animation: skeleton-pulse 1.6s ease-in-out infinite;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rc-skeleton i {
    font-size: 1.6rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .rc-grid {
        grid-template-columns: 130px repeat(3, 160px);
        width: max-content;
    }
    .rc-corner,
    .rc-label {
        padding: 0.85rem 0.75rem;
        font-size: 0.75rem;
    }
    .rc-cell {
        padding: 0.85rem 0.4rem;
        font-size: 0.78rem;
    }
    .rc-card-media-wrap {
        width: 70px;
        height: 70px;
    }
    .rc-card-icon {
        font-size: 1.8rem;
    }
    .rc-card-name { font-size: 0.78rem; letter-spacing: 1.5px; }
    .rc-card-price { font-size: 0.9rem; }
    .rc-card-buy-btn { font-size: 0.65rem; padding: 0.6rem 0.5rem; }
    .rc-card-billing-badge { font-size: 0.52rem; }
}

/* Checkout Modal Styling */
.checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    background: rgba(12, 13, 28, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    box-shadow: 0 30px 70px rgba(0,0,0,0.8), 0 0 40px rgba(212,175,55,0.15);
    position: relative;
    transform: translateY(35px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-overlay.active .checkout-modal {
    transform: translateY(0);
}

.checkout-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.checkout-close-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-main);
    transform: rotate(90deg);
}

.checkout-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin: 0;
    letter-spacing: 0.2px;
}

.checkout-user-badge {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkout-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--gold-primary);
    image-rendering: pixelated;
    background: rgba(212, 175, 55, 0.05);
    padding: 2px;
}

.checkout-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.checkout-user-info span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.checkout-user-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.checkout-order-summary {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(4, 5, 10, 0.4);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.04);
}

.checkout-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkout-order-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.85rem;
    margin-top: 0.25rem;
    color: var(--text-main);
    font-weight: 700;
}

.checkout-order-row.total .price {
    color: var(--gold-primary);
    font-size: 1.35rem;
    font-family: var(--font-heading);
}

.checkout-order-row.discount {
    color: #2ecc71;
}

.promo-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.promo-input {
    flex: 1;
    background: rgba(4, 5, 10, 0.5);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
}

.promo-input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.promo-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-main);
    padding: 0 1.25rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.promo-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold-primary);
}

.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkout-confirm-btn {
    width: 100%;
    padding: 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, var(--gold-primary), #a16207);
    color: #000;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-confirm-btn:hover {
    background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
}

.checkout-confirm-btn:active {
    transform: translateY(0);
}

.checkout-terms {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
    opacity: 0.7;
}

/* Success View */
.checkout-success-view {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0;
    gap: 1.5rem;
}

.checkout-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2ecc71;
    font-size: 2.2rem;
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.2);
    animation: scale-up-check 0.4s ease-out;
}

@keyframes scale-up-check {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.checkout-success-view h4 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0;
}

.checkout-success-view p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

.checkout-success-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.checkout-success-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    color: var(--gold-primary);
}

/* Responsiveness for Store Page */
@media (max-width: 992px) {
    .webstore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .store-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .store-container {
        padding-top: 110px;
        gap: 2.5rem;
    }
    .webstore-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    .comparison-table-wrapper {
        border-radius: 14px;
    }
    .comparison-table th, .comparison-table td {
        padding: 1rem 1.25rem;
        font-size: 0.85rem;
    }
    .username-card {
        padding: 1.75rem 1.5rem;
    }
    .username-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    .username-input-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    .username-btn {
        padding: 1.1rem 2rem;
        width: 100%;
    }
    .username-active-info {
        flex-direction: column;
        text-align: center;
    }
    .username-details-text {
        align-items: center;
    }
    .change-username-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Neon Glow Buy Buttons for Gem Items */
.gem-buy-btn {
    background: linear-gradient(135deg, var(--gold-primary), #a16207) !important;
    color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.35), 0 0 5px rgba(212, 175, 55, 0.15) !important;
    text-shadow: none;
    transition: var(--transition-smooth) !important;
}

.gem-buy-btn:hover,
.gem-buy-btn:active {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6) !important;
    color: #ffffff !important;
    border-color: rgba(167, 139, 250, 0.4) !important;
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.5), 0 0 8px rgba(167, 139, 250, 0.2) !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.gem-buy-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.gem-buy-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Support Section Heading Tile */
.support-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(8, 9, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem 2.5rem;
    width: fit-content;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    margin: 0 auto 1.5rem;
}

.support-section-heading:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.support-section-heading i {
    font-size: 1.4rem;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.4));
}

.support-section-heading h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
    margin: 0;
}
