/* ──────────────────────────────────────────────────────
   BlitzMod Website - style.css
   Palette: Smoky black glass, violet accent, emerald CTAs
   ────────────────────────────────────────────────────── */

/* ── Variables ───────────────────────────────────────── */
:root {
    --bg:          #08090e;
    --bg-2:        #0d0e16;
    --panel:       rgba(255,255,255,0.04);
    --panel-hover: rgba(255,255,255,0.07);
    --border:      rgba(255,255,255,0.08);
    --border-2:    rgba(255,255,255,0.14);

    --purple:      #8B5CF6;
    --purple-d:    #5E5CE6;
    --purple-glow: rgba(139, 92, 246, 0.35);
    --emerald:     #34D399;
    --emerald-glow:rgba(52, 211, 153, 0.3);
    --blue:        #60A5FA;
    --gold:        #FBBF24;
    --red:         #EF4444;

    --text:        #FFFFFF;
    --text-muted:  rgba(255,255,255,0.5);
    --text-subtle: rgba(255,255,255,0.3);

    --radius:      14px;
    --radius-sm:   8px;
    --transition:  0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Light Mode ────────────────────────────────────── */
:root[data-theme="light"] {
    --bg:          #f8f9fa;
    --bg-2:        #f0f1f4;
    --panel:       rgba(0,0,0,0.03);
    --panel-hover: rgba(0,0,0,0.05);
    --border:      rgba(0,0,0,0.08);
    --border-2:    rgba(0,0,0,0.12);

    --text:        #1a1d23;
    --text-muted:  rgba(0,0,0,0.6);
    --text-subtle: rgba(0,0,0,0.4);
}

/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; font-size: 16px; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 999;
    pointer-events: none;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #2f80ed 0%, #0ea5b7 55%, #fb7185 100%);
    box-shadow: 0 0 16px rgba(47, 128, 237, 0.32);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }
canvas { display: block; }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Glass utility ───────────────────────────────────── */
.glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    /* subtle top-edge glass shine */
    box-shadow:
        0 0 0 0.5px rgba(255,255,255,0.06) inset,
        0 1px 0 rgba(255,255,255,0.10) inset,
        0 32px 64px rgba(0,0,0,0.5);
}

/* ── Gradient text ───────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--purple) 0%, var(--emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--purple-d));
    color: #fff;
    box-shadow: 0 0 0 1px rgba(139,92,246,0.4), 0 8px 24px rgba(139,92,246,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(139,92,246,0.6), 0 12px 32px rgba(139,92,246,0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.10);
    color: var(--text);
    border-color: var(--border-2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-2);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 14px; }

/* small nav variants */
.btn-primary-sm {
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--purple), var(--purple-d));
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(139,92,246,0.3);
}
.btn-primary-sm:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(139,92,246,0.45); }

.btn-ghost-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}
.btn-ghost-sm:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* ── Navigation ──────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
    border-bottom: 1px solid transparent;
}
#navbar.scrolled {
    background: rgba(8,9,14,0.75);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom-color: var(--border);
}

.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--purple), var(--purple-d));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 17px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(139,92,246,0.4);
    flex-shrink: 0;
}
.logo-text {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-admin-link { color: var(--gold) !important; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Section shared ──────────────────────────────────── */
section { padding: 100px 0; position: relative; }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--purple);
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Hero ────────────────────────────────────────────── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(139,92,246,0.22) 0%, transparent 70%);
    top: -200px; left: -200px;
    animation: orbDrift 22s ease-in-out infinite;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(52,211,153,0.15) 0%, transparent 70%);
    bottom: -100px; right: -100px;
    animation: orbDrift 18s ease-in-out infinite reverse;
}
.orb-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(96,165,250,0.12) 0%, transparent 70%);
    top: 40%; left: 60%;
    animation: orbDrift 26s ease-in-out infinite 4s;
}
@keyframes orbDrift {
    0%,100% { transform: translate(0,0) scale(1); }
    33%  { transform: translate(40px,-40px) scale(1.05); }
    66%  { transform: translate(-30px,20px) scale(0.97); }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* ── Hero Content ────────────────────────────────────── */
.hero-content { max-width: 580px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald-glow);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; box-shadow: 0 0 6px var(--emerald-glow); }
    50%      { opacity: 0.8; box-shadow: 0 0 12px 2px var(--emerald-glow); }
}

.hero-title {
    font-size: clamp(44px, 6vw, 68px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 22px;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 12px; color: var(--text-subtle); font-weight: 500; }
.stat-div {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* ── Hero Mockup ─────────────────────────────────────── */
.hero-visual { position: relative; }

.mockup-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-2);
    box-shadow:
        0 0 0 0.5px rgba(255,255,255,0.06) inset,
        0 1px 0 rgba(255,255,255,0.12) inset,
        0 40px 80px rgba(0,0,0,0.7),
        0 0 60px rgba(139,92,246,0.1);
}
.mockup-chrome {
    background: rgba(20,20,30,0.9);
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chrome-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
}
.chrome-dot.red    { background: #ff5f57; }
.chrome-dot.yellow { background: #febc2e; }
.chrome-dot.green  { background: #28c840; }
.chrome-title {
    font-size: 12px;
    color: var(--text-subtle);
    margin-left: auto;
    font-weight: 500;
}

.mockup-screen {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(
        180deg,
        #0a1628 0%,
        #112240 30%,
        #1a3a5c 60%,
        #2d5016 75%,
        #1a2e0a 85%,
        #0f1a06 100%
    );
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

.game-sky {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(180deg,
        rgba(10,18,40,0.8) 0%,
        transparent 100%
    );
    pointer-events: none;
}

/* HUD positions */
.hud-tl {
    position: absolute;
    top: 8px; left: 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.hud-line {
    font-family: 'Minecraft', monospace;
    font-size: 10px;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.9), -0.5px -0.5px 0 rgba(0,0,0,0.5);
    line-height: 1.4;
    white-space: nowrap;
}
.hud-fps { font-weight: 600; }
#fpsCanvas {
    margin-top: 3px;
    border: 1px solid rgba(80,80,80,0.6);
}

.hud-tr {
    position: absolute;
    top: 8px; right: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.armor-row {
    display: flex;
    gap: 3px;
}
.armor-slot {
    width: 16px; height: 16px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.armor-slot svg { width: 12px; height: 12px; }
.potion-list { display: flex; flex-direction: column; gap: 1px; align-items: flex-end; }
.potion-item { font-size: 9px; text-shadow: 1px 1px 0 rgba(0,0,0,0.9); font-weight: 600; }

.hud-br {
    position: absolute;
    bottom: 28px; right: 8px;
}
.ks-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}
.ks-row { display: flex; gap: 2px; }
.ks-top { justify-content: center; }
.ks-key {
    width: 18px; height: 16px;
    background: rgba(20,20,30,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    border-bottom: 2px solid rgba(255,255,255,0.1);
    border-radius: 3px;
    font-size: 7px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.05s, border-color 0.05s;
}
.ks-key.active {
    background: rgba(139,92,246,0.5);
    border-color: rgba(139,92,246,0.7);
    color: #fff;
}
.ks-wide { width: 56px; }
.ks-mouse { width: 26px; font-size: 6px; }

/* Crosshair */
.crosshair {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
}
.ch-h {
    position: absolute;
    width: 10px; height: 1px;
    background: rgba(255,255,255,0.8);
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
}
.ch-v {
    position: absolute;
    width: 1px; height: 10px;
    background: rgba(255,255,255,0.8);
    top: 50%; left: 0;
    transform: translate(-50%, -50%);
}

/* Hotbar */
.hotbar {
    position: absolute;
    bottom: 6px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
}
.hotbar-slot {
    width: 20px; height: 20px;
    background: rgba(20,20,30,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
}
.hotbar-slot.active {
    border-color: rgba(255,255,255,0.7);
    border-width: 2px;
}

/* Glow under mockup */
.mockup-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    background: radial-gradient(ellipse, rgba(139,92,246,0.3) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

/* ── Features Grid ───────────────────────────────────── */
#features { background: var(--bg-2); }
#features::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}
#features::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    padding: 24px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.14);
    box-shadow:
        0 0 0 0.5px rgba(255,255,255,0.06) inset,
        0 1px 0 rgba(255,255,255,0.10) inset,
        0 24px 48px rgba(0,0,0,0.6),
        0 0 30px var(--icon-glow, rgba(139,92,246,0.1));
}

.feature-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--icon-color, var(--purple));
    transition: var(--transition);
    --icon-glow: color-mix(in srgb, var(--icon-color, var(--purple)) 30%, transparent);
}
.feature-icon-wrap svg { width: 20px; height: 20px; }
.feature-card:hover .feature-icon-wrap {
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 20px var(--icon-glow);
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Showcase ────────────────────────────────────────── */
#showcase { position: relative; }
#showcase::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(139,92,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.showcase-cards {
    display: flex;
    align-items: center;
    gap: 16px;
}
.showcase-item {
    flex: 1;
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}
.showcase-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.14);
}
.showcase-step {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--purple);
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}
.showcase-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.showcase-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}
.showcase-arrow {
    font-size: 28px;
    color: var(--text-subtle);
    flex-shrink: 0;
    padding: 0 4px;
}

/* ── Download ────────────────────────────────────────── */
#download { background: var(--bg-2); }
#download::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

.download-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.download-card::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.download-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.version-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 8px;
}
.download-info h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.download-info p { color: var(--text-muted); font-size: 14px; }

.download-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    padding: 5px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}
.tag-free {
    background: rgba(52,211,153,0.12);
    border-color: rgba(52,211,153,0.25);
    color: var(--emerald);
}

.download-requirements {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 28px;
}
.req-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 180px;
}
.req-icon { font-size: 22px; flex-shrink: 0; }
.req-item strong { font-size: 14px; display: block; margin-bottom: 2px; }
.req-item small { font-size: 12px; color: var(--text-subtle); }

.download-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.install-tip {
    font-size: 13px;
    color: var(--text-subtle);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    line-height: 1.6;
}
.install-tip strong { color: var(--text-muted); }
.install-tip code {
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--emerald);
}

/* ── Footer ──────────────────────────────────────────── */
#footer {
    padding: 72px 0 32px;
    position: relative;
    border-top: 1px solid var(--border);
    overflow: hidden;
}
.footer-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 200px;
    background: radial-gradient(ellipse, rgba(139,92,246,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}
.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 14px 0 20px;
    max-width: 280px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-social a:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-2);
    color: var(--text);
    transform: translateY(-2px);
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-subtle);
    margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-subtle);
}
.heart { color: var(--red); }

/* ── Scroll reveal ───────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
[data-reveal].visible {
    opacity: 1;
    transform: none;
}
[data-reveal-delay="80"]  { transition-delay: 80ms; }
[data-reveal-delay="160"] { transition-delay: 160ms; }
[data-reveal-delay="200"] { transition-delay: 200ms; }
[data-reveal-delay="240"] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-visual {
        animation: none !important;
    }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-container { grid-template-columns: 1fr; gap: 48px; }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-stats   { justify-content: center; }
    .hero-visual  { max-width: 540px; margin: 0 auto; }
}
@media (max-width: 768px) {
    section { padding: 72px 0; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-cards { flex-direction: column; }
    .showcase-arrow { transform: rotate(90deg); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links, .nav-right { display: none; }
    .nav-toggle { display: flex; }
    .download-top { flex-direction: column; }
}
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { letter-spacing: -1.5px; }
}

/* ══════════════════════════════════════════════════════
   AUTH PAGES  (login.php / register.php)
   ══════════════════════════════════════════════════════ */
.auth-body { overflow: hidden; }

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    position: relative;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.auth-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.22) 0%, transparent 70%);
    top: -120px; left: -120px;
    animation: orbDrift 20s ease-in-out infinite;
}
.auth-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(52,211,153,0.14) 0%, transparent 70%);
    bottom: -80px; right: -80px;
    animation: orbDrift 16s ease-in-out infinite reverse;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.auth-logo span {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.auth-card h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.auth-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.auth-alert-error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder { color: var(--text-subtle); }
.form-input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.btn-full { width: 100%; justify-content: center; margin-top: 8px; }

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 24px;
}
.auth-switch a { color: var(--purple); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ── Nav user avatar ──────────────────────────────────── */
.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-avatar {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--purple), var(--purple-d));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.nav-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.nav-username:hover { color: var(--purple); }

/* ══════════════════════════════════════════════════════
   DASHBOARD  (dashboard.php)
   ══════════════════════════════════════════════════════ */
.dashboard-page {
    min-height: 100vh;
    padding: 100px 0 80px;
    position: relative;
}
.db-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.db-container {
    position: relative;
    z-index: 1;
}

.db-header {
    margin-bottom: 36px;
}
.db-header h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.db-sub {
    font-size: 16px;
    color: var(--text-muted);
}

/* ── Stat cards row ──────────────────────────────────── */
.db-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}
.stat-card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-card-val {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.stat-card-label {
    font-size: 12px;
    color: var(--text-subtle);
    font-weight: 500;
    margin-top: 2px;
}

/* ── Dashboard grid ──────────────────────────────────── */
.db-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.db-card {
    padding: 28px;
}
.db-card-wide {
    grid-column: 1 / -1;
}
.db-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}
.db-hint {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}
.db-hint code {
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--emerald);
}

/* ── MC Linked state ─────────────────────────────────── */
.mc-linked {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(52,211,153,0.06);
    border: 1px solid rgba(52,211,153,0.2);
    border-radius: 12px;
    margin-bottom: 14px;
}
.mc-avatar {
    width: 48px; height: 48px;
    border-radius: 6px;
    image-rendering: pixelated;
}
.mc-name {
    font-size: 16px;
    font-weight: 700;
}
.mc-uuid {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    margin-top: 2px;
}
.badge-linked {
    margin-left: auto;
    padding: 5px 12px;
    background: rgba(52,211,153,0.15);
    border: 1px solid rgba(52,211,153,0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--emerald);
    flex-shrink: 0;
}

/* ── Link code instructions ──────────────────────────── */
.link-instructions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.li-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}
.li-num {
    width: 24px; height: 24px;
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--purple);
    flex-shrink: 0;
}

/* ── Link code display ───────────────────────────────── */
.link-code-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px;
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 14px;
}
.link-code-value {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--text);
    user-select: all;
    cursor: pointer;
}
.link-code-timer {
    font-size: 13px;
    color: var(--text-subtle);
}

/* ── Transaction list ────────────────────────────────── */
.tx-list { display: flex; flex-direction: column; gap: 10px; }
.tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.tx-desc { font-size: 13px; color: var(--text-muted); }
.tx-amount { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-plus  { color: var(--emerald); }
.tx-minus { color: var(--red); }

/* ── Cosmetics grid ──────────────────────────────────── */
.empty-cosmetics {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.cosmetics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.cosmetic-card {
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}
.cosmetic-card.equipped {
    border-color: rgba(52,211,153,0.35);
    background: rgba(52,211,153,0.06);
}
.cosmetic-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-2);
}
.cosmetic-type-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--purple);
    margin-bottom: 8px;
}
.cosmetic-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* ── Dashboard responsive ────────────────────────────── */
@media (max-width: 768px) {
    .db-stats { grid-template-columns: 1fr; }
    .db-grid  { grid-template-columns: 1fr; }
    .db-card-wide { grid-column: auto; }
}

/* ════════════════════════════════════════════════════════
   SHOP PAGE
   ════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */
.shop-page { padding-bottom: 80px; }

.shop-hero {
    position: relative;
    padding: 120px 0 56px;
    overflow: hidden;
}
.shop-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.shop-orb-1 {
    width: 420px; height: 420px;
    background: rgba(139,92,246,0.18);
    top: -80px; left: -100px;
}
.shop-orb-2 {
    width: 300px; height: 300px;
    background: rgba(52,211,153,0.10);
    bottom: -60px; right: 5%;
}
.shop-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.shop-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 12px;
}
.shop-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 14px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--purple), #C4B5FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.shop-subtitle { font-size: 16px; color: var(--text-muted); max-width: 440px; }

/* ── Balance panel ──────────────────────────────────────── */
.shop-balance {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(251,191,36,0.2);
    background: rgba(251,191,36,0.06);
    flex-shrink: 0;
}
.balance-amount {
    font-size: 26px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
    line-height: 1;
}
.balance-lbl { font-size: 11px; color: var(--text-muted); margin-top: 3px; letter-spacing: .5px; }

.shop-login-cta {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 20px 28px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 13px; color: var(--text-muted);
}

/* ── Filter bar ─────────────────────────────────────────── */
.shop-filters-wrap {
    position: sticky;
    top: 64px;
    z-index: 40;
    padding: 12px 0;
    background: rgba(8,9,14,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.shop-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.shop-filters::-webkit-scrollbar { display: none; }

.filter-btn {
    flex-shrink: 0;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.filter-btn:hover { border-color: var(--border-2); color: var(--text); background: var(--panel); }
.filter-btn.active {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

/* ── Shop grid ──────────────────────────────────────────── */
.shop-grid-section { padding-top: 40px; }

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* ── Shop card ──────────────────────────────────────────── */
.shop-card {
    position: relative;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}
.shop-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-2);
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.shop-card-featured {
    border-color: rgba(139,92,246,0.4);
    background: rgba(139,92,246,0.06);
    box-shadow: 0 0 40px rgba(139,92,246,0.12);
}
.shop-card-featured:hover {
    border-color: rgba(139,92,246,0.7);
    box-shadow: 0 20px 60px rgba(139,92,246,0.22);
}

/* ── Card badges ────────────────────────────────────────── */
.card-ribbon {
    position: absolute;
    top: 14px; right: 14px;
    padding: 3px 10px;
    background: var(--purple);
    color: #fff;
    font-size: 9px; font-weight: 800;
    letter-spacing: 1.5px;
    border-radius: 999px;
}
.card-owned-badge {
    position: absolute;
    top: 14px; left: 14px;
    padding: 3px 10px;
    background: rgba(52,211,153,0.15);
    border: 1px solid rgba(52,211,153,0.4);
    color: var(--emerald);
    font-size: 9px; font-weight: 800;
    letter-spacing: 1.5px;
    border-radius: 999px;
}

.cosm-meta-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Cosmetic visual area ───────────────────────────────── */
.cosm-visual {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.cosm-visual-featured { height: 130px; }

.cosm-svg {
    width: 100%;
    height: 100%;
    max-height: 110px;
    object-fit: contain;
}
.cosm-visual-featured .cosm-svg { max-height: 130px; }

.cosm-tex-img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

/* Dragon wing flap animations */
.dw-wing-l  { transform-origin: 100px 65px; animation: dwFlapL 2.8s ease-in-out infinite; }
.dw-wing-r  { transform-origin: 100px 65px; animation: dwFlapR 2.8s ease-in-out infinite; }
.dw-spine-l { transform-origin: 100px 65px; animation: dwFlapL 2.8s ease-in-out infinite; }
.dw-spine-r { transform-origin: 100px 65px; animation: dwFlapR 2.8s ease-in-out infinite; }

@keyframes dwFlapL {
    0%, 100% { transform: rotate(0deg); }
    50%       { transform: rotate(8deg) translateY(-4px); }
}
@keyframes dwFlapR {
    0%, 100% { transform: rotate(0deg); }
    50%       { transform: rotate(-8deg) translateY(-4px); }
}

/* ── Type badge ─────────────────────────────────────────── */
.type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 9px; font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    width: fit-content;
}
.type-wing        { background: rgba(139,92,246,0.18); color: #C4B5FD; border: 1px solid rgba(139,92,246,0.3); }
.type-cape        { background: rgba(96,165,250,0.15); color: #93C5FD; border: 1px solid rgba(96,165,250,0.25); }
.type-hat         { background: rgba(251,191,36,0.15); color: #FDE68A; border: 1px solid rgba(251,191,36,0.25); }
.type-trail       { background: rgba(52,211,153,0.15); color: #6EE7B7; border: 1px solid rgba(52,211,153,0.25); }
.type-chat_tag    { background: rgba(236,72,153,0.15); color: #F9A8D4; border: 1px solid rgba(236,72,153,0.25); }
.type-kill_effect { background: rgba(239,68,68,0.15);  color: #FCA5A5; border: 1px solid rgba(239,68,68,0.25); }

.rarity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    width: fit-content;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.rarity-badge-sm {
    font-size: 10px;
    letter-spacing: 1px;
    padding: 4px 9px;
}
.rarity-common    { background: rgba(148,163,184,0.14); color: #CBD5E1; border: 1px solid rgba(148,163,184,0.28); }
.rarity-uncommon  { background: rgba(52,211,153,0.14); color: #A7F3D0; border: 1px solid rgba(52,211,153,0.28); }
.rarity-rare      { background: rgba(96,165,250,0.14); color: #BFDBFE; border: 1px solid rgba(96,165,250,0.28); }
.rarity-epic      { background: rgba(168,85,247,0.16); color: #E9D5FF; border: 1px solid rgba(168,85,247,0.34); box-shadow: 0 0 18px rgba(168,85,247,0.16); }
.rarity-legendary { background: rgba(245,158,11,0.16); color: #FDE68A; border: 1px solid rgba(245,158,11,0.34); box-shadow: 0 0 18px rgba(245,158,11,0.16); }
.rarity-mythic    { background: linear-gradient(135deg, rgba(244,63,94,0.18), rgba(168,85,247,0.18)); color: #FFE4E6; border: 1px solid rgba(244,114,182,0.36); box-shadow: 0 0 22px rgba(217,70,239,0.18); }

/* ── Card text ──────────────────────────────────────────── */
.cosm-name { font-size: 16px; font-weight: 700; }
.cosm-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; flex: 1; }

/* ── Card footer ────────────────────────────────────────── */
.cosm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    gap: 8px;
}
.cosm-price {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 800;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

/* ── Cosmetic buttons ───────────────────────────────────── */
.cosm-btn {
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
    border: none; cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.cosm-btn-buy {
    background: var(--purple);
    color: #fff;
}
.cosm-btn-buy:hover { background: var(--purple-d); transform: scale(1.04); }
.cosm-btn-owned {
    background: rgba(52,211,153,0.12);
    color: var(--emerald);
    border: 1px solid rgba(52,211,153,0.3);
    cursor: default;
}
.cosm-btn-broke {
    background: rgba(255,255,255,0.04);
    color: var(--text-subtle);
    border: 1px solid var(--border);
    cursor: not-allowed;
    font-size: 11px;
}

/* ── Empty state ────────────────────────────────────────── */
.shop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 24px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
}

/* ── Purchase modal ─────────────────────────────────────── */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    border: 1px solid var(--border-2);
    display: flex; flex-direction: column; gap: 12px;
    transform: translateY(16px);
    transition: transform 0.25s ease;
}
.modal-backdrop.open .modal { transform: translateY(0); }

.modal-visual {
    height: 90px;
    display: flex; align-items: center; justify-content: center;
}
.modal-visual .cosm-svg { max-height: 80px; }

.modal-title { font-size: 20px; font-weight: 800; }
.modal-desc  { font-size: 13px; color: var(--text-muted); }
.modal-balance { font-size: 13px; color: var(--text-muted); }
.modal-balance strong { color: var(--gold); }

.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }

/* ── Toast ──────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}
.toast.toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: rgba(52,211,153,0.15); border: 1px solid rgba(52,211,153,0.4); color: var(--emerald); }
.toast-error   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.35);  color: #FCA5A5; }

/* ── Shop responsive ────────────────────────────────────── */
@media (max-width: 768px) {
    .shop-hero { padding: 100px 0 40px; }
    .shop-hero-inner { flex-direction: column; align-items: flex-start; }
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .cosm-visual { height: 80px; }
    .cosm-visual-featured { height: 90px; }
    .shop-balance { width: 100%; }
}

/* ════════════════════════════════════════════════════════
   ADMIN DASHBOARD
   ════════════════════════════════════════════════════════ */

/* Admin pages don't load main.js, so bypass the reveal animation entirely */
.admin-layout [data-reveal] {
    opacity: 1;
    transform: none;
}

/* ── Layout ──────────────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 64px; /* nav height */
}

/* ── Sidebar ─────────────────────────────────────────────── */
.admin-sidebar {
    width: 220px;
    min-height: calc(100vh - 64px);
    flex-shrink: 0;
    position: sticky;
    top: 64px;
    align-self: flex-start;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
    flex: 1;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.admin-nav-item:hover, .admin-nav-item.active {
    background: var(--panel-hover);
    color: var(--text);
}
.admin-nav-item.active { color: var(--purple); }
.admin-sidebar-footer {
    padding: 0 10px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px;
}

/* ── Main content ─────────────────────────────────────────── */
.admin-main {
    flex: 1;
    padding: 40px 36px;
    max-width: 100%;
    overflow-x: hidden;
}
.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}
.admin-header h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 4px;
}
.admin-sub { font-size: 13px; color: var(--text-muted); }

/* ── Stat cards ───────────────────────────────────────────── */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.astat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}
.astat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.astat-val {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}
.astat-of { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.astat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Two-col layout ───────────────────────────────────────── */
.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── Card ─────────────────────────────────────────────────── */
.admin-card {
    padding: 0;
    overflow: hidden;
}
.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.admin-card-head h2 { font-size: 15px; font-weight: 700; }

/* ── Table ────────────────────────────────────────────────── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-table-full { width: 100%; }
.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--panel); }

/* ── User cell ────────────────────────────────────────────── */
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar-sm {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-d));
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    flex-shrink: 0;
}
.user-name  { font-size: 13px; font-weight: 600; }
.user-email { font-size: 11px; color: var(--text-muted); }
.user-coins { font-weight: 600; margin-right: 6px; }

.mc-cell { display: flex; align-items: center; gap: 6px; }
.mc-avatar-xs { width: 24px; height: 24px; border-radius: 4px; }

/* ── Text helpers ─────────────────────────────────────────── */
.text-emerald { color: var(--emerald); }
.text-red     { color: var(--red); }
.text-muted   { color: var(--text-muted); }

/* ── Badge ────────────────────────────────────────────────── */
.badge-admin {
    font-size: 10px; font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(139,92,246,0.18);
    color: var(--purple);
    border: 1px solid rgba(139,92,246,0.3);
    white-space: nowrap;
}

/* ── Toggle switch ────────────────────────────────────────── */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.toggle-switch input { display: none; }
.toggle-track {
    width: 38px; height: 20px;
    background: var(--border-2);
    border-radius: 999px;
    position: relative;
    transition: background 0.2s;
}
.toggle-track::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--purple); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(18px); }
.toggle-switch input:disabled + .toggle-track { opacity: 0.4; cursor: not-allowed; }

/* ── Icon button ──────────────────────────────────────────── */
.btn-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.btn-icon:hover { background: var(--panel-hover); color: var(--text); }

/* ── Btn small variant ────────────────────────────────────── */
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-ghost {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--panel-hover); }

/* ── Admin alert ──────────────────────────────────────────── */
.admin-alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}
.admin-alert-success { background: rgba(52,211,153,0.12); color: var(--emerald); border: 1px solid rgba(52,211,153,0.3); }
.admin-alert-error   { background: rgba(239,68,68,0.12);  color: #FCA5A5;        border: 1px solid rgba(239,68,68,0.3); }

/* ── Modal overlay ────────────────────────────────────────── */
.admin-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.admin-modal-overlay.open { opacity: 1; pointer-events: all; }
.admin-modal {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    padding: 28px;
    transform: translateY(12px);
    transition: transform 0.22s;
}
.admin-modal-overlay.open .admin-modal { transform: translateY(0); }
.admin-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.admin-modal-head h3 { font-size: 16px; font-weight: 700; }
.admin-modal-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 16px; cursor: pointer; padding: 4px;
}
.admin-modal-close:hover { color: var(--text); }

/* ── Forms inside admin ───────────────────────────────────── */
.admin-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.form-row input,
.form-row textarea,
.form-row select {
    background: var(--panel);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-color: var(--purple); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req { color: var(--red); }

.admin-form-actions {
    display: flex; gap: 10px; justify-content: flex-end;
    margin-top: 4px;
}

/* ── Search / filter bars ─────────────────────────────────── */
.admin-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.admin-search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
}
.admin-search-bar svg { color: var(--text-muted); flex-shrink: 0; }

.admin-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-label { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.admin-filter-bar select {
    background: var(--panel);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

/* ── Link style ───────────────────────────────────────────── */
.admin-link { color: var(--purple); font-size: 13px; font-weight: 500; transition: opacity 0.2s; }
.admin-link:hover { opacity: 0.8; }

/* ── Transaction type badges ──────────────────────────────── */
.tx-type {
    font-size: 11px; font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    text-transform: capitalize;
}
.tx-register_bonus { background: rgba(96,165,250,0.15); color: var(--blue); }
.tx-link_bonus     { background: rgba(52,211,153,0.15); color: var(--emerald); }
.tx-purchase       { background: rgba(139,92,246,0.15); color: var(--purple); }
.tx-admin_grant    { background: rgba(251,191,36,0.15); color: var(--gold); }
.tx-refund         { background: rgba(239,68,68,0.15);  color: var(--red); }

/* ── Cosmetic thumb ───────────────────────────────────────── */
.cosm-cell { display: flex; align-items: center; gap: 10px; }
.cosm-thumb {
    width: 36px; height: 36px;
    border-radius: 8px;
    object-fit: cover;
    image-rendering: pixelated;
    background: var(--panel);
}
.cosm-thumb-placeholder {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--panel);
    flex-shrink: 0;
}

/* ── Pagination ───────────────────────────────────────────── */
.admin-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 16px;
    flex-wrap: wrap;
}
.page-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}
.page-btn:hover  { background: var(--panel-hover); color: var(--text); }
.page-btn.active { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ── Responsive admin ─────────────────────────────────────── */
@media (max-width: 900px) {
    .admin-sidebar { display: none; }
    .admin-main { padding: 24px 16px; }
    .admin-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .admin-header { flex-direction: column; align-items: flex-start; }
    .form-row-2 { grid-template-columns: 1fr; }
}

/* =====================================================
   VISUAL REFRESH OVERRIDES
   ===================================================== */

:root {
    --bg: #f3f8ff;
    --bg-2: #ebf3ff;
    --panel: rgba(255, 255, 255, 0.62);
    --panel-hover: rgba(255, 255, 255, 0.8);
    --border: rgba(30, 54, 95, 0.12);
    --border-2: rgba(30, 54, 95, 0.22);

    --purple: #0ea5b7;
    --purple-d: #0b7f9e;
    --purple-glow: rgba(14, 165, 183, 0.28);
    --emerald: #22c55e;
    --emerald-glow: rgba(34, 197, 94, 0.2);
    --blue: #2f80ed;
    --gold: #f59e0b;
    --red: #e53935;

    --text: #10223f;
    --text-muted: rgba(16, 34, 63, 0.72);
    --text-subtle: rgba(16, 34, 63, 0.48);
    --radius: 18px;
}

body {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 14%, rgba(34, 211, 238, 0.26), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.2), transparent 30%),
        radial-gradient(circle at 74% 78%, rgba(110, 231, 183, 0.2), transparent 30%),
        linear-gradient(145deg, #f9fcff 0%, #edf4ff 44%, #e8f0ff 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(16, 34, 63, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 34, 63, 0.03) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 86%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 86%);
    z-index: -2;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
}

.glass {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.46));
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    border: 1px solid var(--border);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 28px 54px rgba(30, 54, 95, 0.16),
        0 6px 20px rgba(30, 54, 95, 0.08);
}

.gradient-text {
    background: linear-gradient(120deg, #0ea5b7 0%, #2f80ed 48%, #fb7185 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#navbar {
    padding: 14px 0;
}

#navbar.scrolled {
    background: transparent;
    border-bottom-color: transparent;
}

.nav-container {
    max-width: 1220px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(26, 44, 74, 0.14);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(31, 55, 95, 0.14);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    padding: 8px 14px;
    gap: 12px;
}

.logo-icon {
    background: linear-gradient(145deg, #0ea5b7, #2f80ed);
    box-shadow: 0 8px 18px rgba(14, 165, 183, 0.32);
}

.nav-links-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 4px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(30, 54, 95, 0.14);
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 8px 18px rgba(31, 55, 95, 0.08) inset;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 8px 13px;
    border-radius: 999px;
    color: rgba(16, 34, 63, 0.74);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.1px;
}

.nav-links a:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.9);
}

.nav-links a,
.btn,
.theme-toggle-top {
    will-change: transform;
}

.nav-links .nav-shop-link {
    background: linear-gradient(135deg, #2f80ed 0%, #0ea5b7 100%);
    background-size: 220% 220%;
    animation: gradientFlow 5s ease infinite;
    color: #ffffff;
    border: 1px solid rgba(13, 138, 179, 0.32);
    box-shadow: 0 6px 16px rgba(26, 112, 198, 0.24);
}

.nav-links .nav-shop-link::before {
    content: '✦';
    font-size: 11px;
    margin-right: 6px;
    opacity: 0.92;
}

.nav-links .nav-shop-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #3f8ff8 0%, #19b3c6 100%);
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(26, 112, 198, 0.32);
}

.btn-primary,
.btn-primary-sm,
.cosm-btn-buy,
.nav-links .nav-shop-link {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-primary-sm::after,
.cosm-btn-buy::after,
.nav-links .nav-shop-link::after {
    content: '';
    position: absolute;
    top: -120%;
    left: -35%;
    width: 28%;
    height: 340%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
    transform: rotate(22deg) translateX(-160%);
    opacity: 0;
    pointer-events: none;
}

.btn-primary:hover::after,
.btn-primary-sm:hover::after,
.cosm-btn-buy:hover::after,
.nav-links .nav-shop-link:hover::after {
    opacity: 1;
    animation: glintSweep 0.85s ease;
}

.nav-quick,
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.theme-toggle-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(30, 54, 95, 0.18);
    background: rgba(255, 255, 255, 0.74);
    color: #10223f;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle-top:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(30, 54, 95, 0.26);
}

.theme-toggle-icon {
    font-size: 14px;
    line-height: 1;
}

.theme-toggle-label {
    min-width: 36px;
    text-align: left;
}

.btn-primary,
.btn-primary-sm {
    background: linear-gradient(130deg, #0ea5b7 0%, #2f80ed 52%, #fb7185 100%);
    background-size: 220% 220%;
    animation: gradientFlow 6s ease infinite;
    box-shadow: 0 10px 26px rgba(47, 128, 237, 0.28);
}

.btn-primary:hover,
.btn-primary-sm:hover {
    box-shadow: 0 16px 34px rgba(47, 128, 237, 0.34);
}

.btn-ghost,
.btn-outline,
.btn-ghost-sm {
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(30, 54, 95, 0.15);
    color: rgba(16, 34, 63, 0.78);
}

.btn-ghost:hover,
.btn-outline:hover,
.btn-ghost-sm:hover {
    background: rgba(255, 255, 255, 0.86);
    color: #0f172a;
}

section {
    padding: 110px 0;
}

#hero {
    padding: 136px 0 94px;
    min-height: calc(100vh - 24px);
}

.hero-visual {
    animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glintSweep {
    0% { transform: rotate(22deg) translateX(-160%); }
    100% { transform: rotate(22deg) translateX(560%); }
}

@keyframes badgePulseGlow {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 0 rgba(47, 128, 237, 0); }
    50% { transform: translateY(-1px); box-shadow: 0 0 18px rgba(47, 128, 237, 0.24); }
}

.hero-badge {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 58, 104, 0.16);
    color: rgba(16, 34, 63, 0.84);
}

.hero-title {
    letter-spacing: -1.4px;
}

.hero-sub,
.section-header p,
.feature-card p,
.showcase-item p,
.db-sub,
.shop-subtitle,
.auth-sub {
    color: rgba(16, 34, 63, 0.72);
}

.mockup-frame {
    border: 1px solid rgba(36, 61, 102, 0.18);
    box-shadow:
        0 24px 58px rgba(22, 38, 72, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.mockup-chrome {
    background: rgba(237, 244, 255, 0.9);
}

.chrome-title {
    color: rgba(16, 34, 63, 0.68);
}

#features,
#download {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(232, 241, 255, 0.72));
}

.feature-card,
.showcase-item,
.download-card,
.stat-card,
.db-card,
.shop-card,
.auth-card,
.admin-card,
.admin-sidebar,
.modal,
.admin-modal {
    border-radius: 20px;
}

.feature-card:hover,
.showcase-item:hover,
.shop-card:hover {
    transform: translateY(-6px) scale(1.006);
}

.feature-card,
.shop-card,
.showcase-item {
    isolation: isolate;
    overflow: hidden;
}

.feature-card::after,
.shop-card::after,
.showcase-item::after {
    content: '';
    position: absolute;
    inset: -140% -60%;
    background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.44) 50%, transparent 66%);
    transform: translateX(-120%) rotate(10deg);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 0;
}

.feature-card:hover::after,
.shop-card:hover::after,
.showcase-item:hover::after {
    transform: translateX(120%) rotate(10deg);
    opacity: 1;
}

.feature-icon-wrap {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(24, 58, 104, 0.14);
}

.showcase-step,
.shop-eyebrow,
.badge-admin,
.cosmetic-type-badge {
    color: #0b7f9e;
}

.section-badge,
.card-ribbon {
    animation: badgePulseGlow 2.6s ease-in-out infinite;
}

.download-card::after {
    background: radial-gradient(circle, rgba(47, 128, 237, 0.17) 0%, transparent 70%);
}

#footer {
    border-top: 1px solid rgba(20, 44, 80, 0.13);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(235, 244, 255, 0.92));
}

.footer-bottom {
    border-top: 1px solid rgba(20, 44, 80, 0.12);
}

.shop-filters-wrap {
    background: rgba(243, 248, 255, 0.74);
    backdrop-filter: blur(14px);
}

.filter-btn.active {
    background: linear-gradient(130deg, #0ea5b7, #2f80ed);
    border-color: transparent;
}

.cosm-btn-buy {
    background: linear-gradient(140deg, #0ea5b7, #2f80ed);
    background-size: 220% 220%;
    animation: gradientFlow 5.5s ease infinite;
}

.auth-page {
    padding-top: 126px;
}

.form-input {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 58, 104, 0.16);
    color: #10223f;
}

.form-input:focus {
    border-color: #2f80ed;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.18);
}

.tx-row,
.admin-table tbody tr:hover td,
.cosmetic-card,
.shop-balance,
.link-code-display,
.download-requirements {
    background: rgba(255, 255, 255, 0.54);
}

.admin-layout {
    background: linear-gradient(165deg, rgba(249, 252, 255, 0.54), rgba(233, 242, 255, 0.72));
}

@media (max-width: 768px) {
    .nav-container {
        border-radius: 22px;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 14px;
    }

    .nav-links-wrap,
    .nav-right {
        display: none;
    }

    .nav-quick {
        order: 2;
        margin-left: auto;
    }

    .nav-toggle {
        order: 2;
        margin-left: 0;
    }

    #navbar.open .nav-links-wrap,
    #navbar.open .nav-right {
        display: flex;
    }

    #navbar.open .nav-links-wrap {
        order: 3;
        width: 100%;
    }

    #navbar.open .nav-links {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 2px 0 0;
    }

    #navbar.open .nav-links a {
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(16, 34, 63, 0.09);
    }

    #navbar.open .nav-links .nav-shop-link {
        background: linear-gradient(135deg, #2f80ed 0%, #0ea5b7 100%);
        border-color: rgba(13, 138, 179, 0.36);
        color: #ffffff;
    }

    #navbar.open .nav-right {
        order: 4;
        width: 100%;
        justify-content: flex-end;
        padding-top: 4px;
        border-top: 1px solid rgba(16, 34, 63, 0.08);
    }

    .hero-sub {
        max-width: 100%;
    }

    .shop-title {
        letter-spacing: -0.8px;
    }

    .download-card,
    .auth-card,
    .db-card,
    .shop-card {
        padding: 22px;
    }
}

/* ── Verification & Partner badges ───────────────────────────── */
.badge-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    background: #3B82F6;
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
    margin-left: 3px;
    flex-shrink: 0;
}
.badge-partner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
    margin-left: 3px;
    flex-shrink: 0;
}
.badge-dev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    color: #fff;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
    margin-left: 3px;
    flex-shrink: 0;
}

/* ── Modal tabs ──────────────────────────────────────────────── */
.modal-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    padding-bottom: 0;
}
.modal-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s;
}
.modal-tab:hover { color: var(--text); }
.modal-tab.active { color: var(--purple); border-bottom-color: var(--purple); }

.modal-tab-pane { display: none; }
.modal-tab-pane.active { display: block; }

.modal-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.modal-divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}

/* ── Badge toggle rows (inside badges tab) ──────────────────── */
.badge-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.badge-toggle-row:last-of-type { border-bottom: none; }
.badge-toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Cosmetics grant list (inside cosmetics tab) ────────────── */
.cosm-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    padding: 10px 0 4px;
}
.cosm-grant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}
.cosm-grant-row:last-child { border-bottom: none; }
.cosm-grant-name { font-size: 13px; font-weight: 500; }

/* ── Danger-sm button ────────────────────────────────────────── */
.btn-danger-sm {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(239,68,68,0.12);
    color: #FCA5A5;
    border: 1px solid rgba(239,68,68,0.3);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}
.btn-danger-sm:hover { background: rgba(239,68,68,0.22); }

/* =====================================================
   DARK MODE OVERRIDES
   ===================================================== */

html[data-theme="dark"] {
    --bg: #060a13;
    --bg-2: #090f1d;
    --panel: rgba(11, 19, 35, 0.62);
    --panel-hover: rgba(18, 30, 53, 0.82);
    --border: rgba(130, 169, 231, 0.2);
    --border-2: rgba(130, 169, 231, 0.34);
    --purple: #5fd3e0;
    --purple-d: #2da8c6;
    --purple-glow: rgba(95, 211, 224, 0.3);
    --emerald: #38d980;
    --emerald-glow: rgba(56, 217, 128, 0.24);
    --blue: #68a1ff;
    --gold: #f7be5d;
    --red: #ff6b6b;
    --text: #eef5ff;
    --text-muted: rgba(238, 245, 255, 0.76);
    --text-subtle: rgba(238, 245, 255, 0.5);
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at 8% 12%, rgba(88, 28, 135, 0.34), transparent 40%),
        radial-gradient(circle at 92% 8%, rgba(14, 116, 144, 0.34), transparent 36%),
        radial-gradient(circle at 80% 78%, rgba(16, 185, 129, 0.24), transparent 38%),
        linear-gradient(145deg, #050810 0%, #0a1324 44%, #0b172b 100%);
}

html[data-theme="dark"] body::before {
    background-image:
        linear-gradient(rgba(206, 226, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(206, 226, 255, 0.05) 1px, transparent 1px);
}

html[data-theme="dark"] #scrollProgress {
    box-shadow: 0 0 18px rgba(114, 177, 255, 0.34);
}

html[data-theme="dark"] .glass {
    background: linear-gradient(170deg, rgba(10, 18, 33, 0.74), rgba(9, 17, 33, 0.44));
    border: 1px solid rgba(145, 180, 240, 0.26);
    box-shadow:
        0 1px 0 rgba(222, 237, 255, 0.13) inset,
        0 24px 54px rgba(1, 6, 14, 0.66);
}

html[data-theme="dark"] .nav-container {
    background: rgba(9, 17, 33, 0.7);
    border: 1px solid rgba(148, 184, 244, 0.28);
    box-shadow: 0 12px 34px rgba(1, 7, 18, 0.5);
}

html[data-theme="dark"] .nav-links {
    background: rgba(13, 24, 44, 0.76);
    border-color: rgba(145, 180, 240, 0.28);
    box-shadow: 0 8px 18px rgba(2, 8, 18, 0.42) inset;
}

html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .btn-ghost-sm,
html[data-theme="dark"] .nav-username,
html[data-theme="dark"] .logo-text {
    color: rgba(237, 245, 255, 0.86);
}

html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-outline:hover,
html[data-theme="dark"] .btn-ghost-sm:hover {
    background: rgba(30, 47, 76, 0.9);
    color: #f7fbff;
}

html[data-theme="dark"] .nav-links .nav-shop-link {
    background: linear-gradient(135deg, #3d79dd 0%, #1ca7c0 100%);
    background-size: 220% 220%;
    animation: gradientFlow 5s ease infinite;
    border-color: rgba(128, 184, 248, 0.36);
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(8, 28, 56, 0.4);
}

html[data-theme="dark"] .nav-links .nav-shop-link:hover {
    background: linear-gradient(135deg, #4b88ee 0%, #29b8cf 100%);
    color: #ffffff;
}

html[data-theme="dark"] .theme-toggle-top {
    background: rgba(13, 24, 44, 0.76);
    color: #eaf4ff;
    border-color: rgba(145, 180, 240, 0.3);
}

html[data-theme="dark"] .theme-toggle-top:hover {
    background: rgba(22, 37, 62, 0.92);
}

html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .btn-ghost-sm,
html[data-theme="dark"] .feature-icon-wrap,
html[data-theme="dark"] .footer-social a {
    background: rgba(13, 24, 44, 0.76);
    border-color: rgba(145, 180, 240, 0.28);
}

html[data-theme="dark"] .feature-card:hover .feature-icon-wrap,
html[data-theme="dark"] .footer-social a:hover {
    background: rgba(22, 37, 62, 0.9);
    border-color: rgba(145, 180, 240, 0.42);
}

html[data-theme="dark"] .hero-badge,
html[data-theme="dark"] .shop-filters-wrap,
html[data-theme="dark"] .download-requirements,
html[data-theme="dark"] .tx-row,
html[data-theme="dark"] .link-code-display,
html[data-theme="dark"] .cosmetic-card,
html[data-theme="dark"] .shop-balance,
html[data-theme="dark"] .form-input,
html[data-theme="dark"] .admin-table tbody tr:hover td {
    background: rgba(12, 21, 39, 0.76);
}

html[data-theme="dark"] .hero-badge {
    color: rgba(238, 245, 255, 0.96);
    border-color: rgba(145, 180, 240, 0.32);
}

html[data-theme="dark"] .form-input {
    border-color: rgba(130, 169, 231, 0.34);
    color: #eef5ff;
}

html[data-theme="dark"] .form-input:focus {
    border-color: #6ba8ff;
    box-shadow: 0 0 0 3px rgba(107, 168, 255, 0.22);
}

html[data-theme="dark"] #features,
html[data-theme="dark"] #download,
html[data-theme="dark"] #footer,
html[data-theme="dark"] .admin-layout {
    background: linear-gradient(180deg, rgba(7, 13, 25, 0.78), rgba(8, 16, 30, 0.94));
}

html[data-theme="dark"] .chrome-title,
html[data-theme="dark"] .section-header p,
html[data-theme="dark"] .hero-sub,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .showcase-item p,
html[data-theme="dark"] .db-sub,
html[data-theme="dark"] .shop-subtitle,
html[data-theme="dark"] .auth-sub,
html[data-theme="dark"] .footer-col a,
html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] .footer-bottom,
html[data-theme="dark"] .tx-desc,
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .stat-card-label {
    color: rgba(230, 242, 255, 0.72);
}

html[data-theme="dark"] .hotbar-slot,
html[data-theme="dark"] .ks-key,
html[data-theme="dark"] .armor-slot {
    border-color: rgba(189, 211, 244, 0.34);
}

html[data-theme="dark"] .mockup-chrome {
    background: rgba(10, 16, 30, 0.9);
    border-bottom-color: rgba(145, 180, 240, 0.24);
}

html[data-theme="dark"] .filter-btn:hover,
html[data-theme="dark"] #navbar.open .nav-links a {
    background: rgba(22, 35, 58, 0.86);
    border-color: rgba(145, 180, 240, 0.3);
}

html[data-theme="dark"] .filter-btn {
    color: rgba(236, 245, 255, 0.84);
    border-color: rgba(145, 180, 240, 0.26);
}
