/* ──────────────────────────────────────────────────────
   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);
}

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

html { scroll-behavior: smooth; 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;
}

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-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; }

/* ── 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;
}

/* ── 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); }

/* ── 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%; }
}
