@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ═══════════════════════════════════════
   VARIABLES - groen / blauw / wit thema
═══════════════════════════════════════ */
:root {
    /* Primair: elektrisch groen */
    --green:        #00ff88;
    --green-bright: #22ffaa;
    --green-dim:    #006633;
    --green-glow:   rgba(0, 255, 136, 0.35);
    --green-bg:     rgba(0, 255, 136, 0.07);

    /* Secundair: neon blauw */
    --blue:         #00c8ff;
    --blue-bright:  #40dfff;
    --blue-dim:     #005577;
    --blue-glow:    rgba(0, 200, 255, 0.35);
    --blue-bg:      rgba(0, 200, 255, 0.07);

    /* Wit / tekst */
    --white:        #ffffff;
    --white-soft:   #d8eaf0;
    --text:         #cce8f0;
    --text-mid:     #7aabb8;
    --text-dim:     #3a5a66;

    /* Achtergronden */
    --dark:         #020c10;
    --dark2:        #050f15;
    --surface:      #081520;
    --surface2:     #0c1e2d;
    --surface3:     #102538;

    /* Borders */
    --line:         rgba(0, 200, 255, 0.12);
    --line2:        rgba(0, 200, 255, 0.25);
    --line-green:   rgba(0, 255, 136, 0.18);

    /* Status */
    --red:          #ff3a5c;
    --success:      #00ff88;
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: default;
}

/* Grid achtergrond – blauw/groen raster */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,200,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,200,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

/* Subtiele scan-lines */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.06) 3px,
        rgba(0,0,0,0.06) 4px
    );
    z-index: 0;
    pointer-events: none;
}

#app, .page { position: relative; z-index: 1; }

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-bright); }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(2, 12, 16, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
}

/* Groene glowlijn bovenaan nav */
.nav::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), var(--blue), transparent);
}

.nav-logo {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.1em;
    text-shadow:
        0 0 20px var(--green-glow),
        0 0 40px rgba(0,255,136,0.15);
    margin-right: auto;
}

.nav-logo span {
    color: var(--green);
    text-shadow: 0 0 20px var(--green-glow);
}

.nav-link {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0.4rem 0.8rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--green);
    border-color: var(--line-green);
    background: var(--green-bg);
}

.nav-user {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--blue);
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(0,200,255,0.25);
    background: var(--blue-bg);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 65%, rgba(0,255,136,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 30% 30%, rgba(0,200,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 70% 70%, rgba(0,200,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.5em;
    color: var(--blue-dim);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease both;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 900;
    line-height: 0.9;
    color: var(--white);
    text-shadow:
        0 0 40px var(--green-glow),
        0 0 80px rgba(0,255,136,0.2),
        0 0 160px rgba(0,255,136,0.08);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease 0.1s both;
    position: relative;
}

/* Groene outline op de hero-titel */
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    -webkit-text-stroke: 1px var(--green);
    color: transparent;
    pointer-events: none;
    opacity: 0.3;
}

.hero-title-sub {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--blue);
    letter-spacing: 0.5em;
    text-shadow: 0 0 30px var(--blue-glow);
    margin-top: 0.75rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-divider {
    width: 240px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), var(--blue), transparent);
    margin: 2rem auto;
    animation: expandWidth 1s ease 0.4s both;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-mid);
    letter-spacing: 0.06em;
    max-width: 520px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.3s both;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s;
    position: relative;
    text-decoration: none;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}

/* Hoofd CTA: groen */
.btn-gold {
    background: var(--green);
    color: #020c10;
}
.btn-gold:hover {
    background: var(--green-bright);
    color: #020c10;
    box-shadow:
        0 0 30px var(--green-glow),
        0 0 60px rgba(0,255,136,0.2);
    transform: translateY(-2px);
}

/* Outline knop: wit/groen rand */
.btn-outline {
    background: transparent;
    color: var(--white-soft);
    border: 1px solid rgba(0,200,255,0.35);
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.btn-outline:hover {
    border-color: var(--blue);
    background: var(--blue-bg);
    color: var(--blue-bright);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--blue-glow);
}

/* Cyan / blauw knop */
.btn-cyan {
    background: var(--blue);
    color: #020c10;
    font-weight: 700;
}
.btn-cyan:hover {
    background: var(--blue-bright);
    box-shadow: 0 0 30px var(--blue-glow), 0 0 60px rgba(0,200,255,0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--red);
    color: white;
}
.btn-danger:hover {
    box-shadow: 0 0 30px rgba(255,58,92,0.4);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-sm {
    font-size: 9px;
    padding: 0.5rem 1.2rem;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

/* ═══════════════════════════════════════
   CARDS & PANELS
═══════════════════════════════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 2rem;
    position: relative;
}

/* Groene hoekaccenten */
.card::before, .card::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--green-dim);
    border-style: solid;
}
.card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* Subtiele bovenrand glow */
.card > *:first-child::before {
    content: '';
    display: block;
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--green-dim);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

/* ═══════════════════════════════════════
   FORMS
═══════════════════════════════════════ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.form-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.form-input {
    background: var(--surface2);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    padding: 0.7rem 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,255,136,0.08), 0 0 20px rgba(0,255,136,0.08);
}

.form-input::placeholder { color: var(--text-dim); opacity: 0.5; }

.validation-message {
    font-size: 12px;
    color: var(--red);
    margin-top: 0.25rem;
}

/* ═══════════════════════════════════════
   PAGE LAYOUT
═══════════════════════════════════════ */
.page-wrapper { padding-top: 64px; min-height: 100vh; }

.container { max-width: 1000px; margin: 0 auto; padding: 3rem 1.5rem; }
.container-sm { max-width: 480px; margin: 0 auto; padding: 3rem 1.5rem; }

.page-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.05em;
    text-shadow: 0 0 40px var(--green-glow);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ═══════════════════════════════════════
   LEADERBOARD TABLE
═══════════════════════════════════════ */
.lb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.lb-table th {
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    letter-spacing: 0.3em;
    color: var(--text-dim);
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--line2);
    background: var(--surface2);
}

.lb-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0,200,255,0.06);
    vertical-align: middle;
    transition: background 0.15s;
}

/* Hover highlight met groene tint */
.lb-table tr:hover td {
    background: rgba(0,255,136,0.03);
    border-color: rgba(0,255,136,0.08);
}

/* Top 3 rijen lichtjes accentueren */
.lb-table tbody tr:nth-child(1) td { border-left: 2px solid rgba(0,255,136,0.5); }
.lb-table tbody tr:nth-child(2) td { border-left: 2px solid rgba(0,200,255,0.4); }
.lb-table tbody tr:nth-child(3) td { border-left: 2px solid rgba(0,200,255,0.25); }
.lb-table tbody tr:nth-child(n+4) td { border-left: 2px solid transparent; }

.lb-rank {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: var(--text-dim);
}

.lb-rank-1 { font-size: 20px; filter: drop-shadow(0 0 8px rgba(255,220,50,0.6)); }
.lb-rank-2 { font-size: 18px; filter: drop-shadow(0 0 6px rgba(180,200,220,0.5)); }
.lb-rank-3 { font-size: 18px; filter: drop-shadow(0 0 6px rgba(200,140,60,0.5)); }

.lb-name {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.02em;
    color: var(--white-soft);
}

.lb-time {
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
    color: var(--green);
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(0,255,136,0.4);
}

.lb-date {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.lb-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-dim);
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    border: 1px dashed var(--line);
}

/* Live pulse dot – groen */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green), 0 0 16px rgba(0,255,136,0.4);
    animation: pulse 1.5s infinite;
}

/* ═══════════════════════════════════════
   GAME AREA
═══════════════════════════════════════ */
.game-frame {
    position: relative;
    background: #000;
    border: 1px solid var(--line);
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.game-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 60px rgba(0,255,136,0.04);
    z-index: 1;
    pointer-events: none;
}

.game-frame canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.corner-decoration {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--green);
    border-style: solid;
    z-index: 2;
    pointer-events: none;
}
.corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ═══════════════════════════════════════
   PRICING CARD
═══════════════════════════════════════ */
.price-card {
    background: var(--surface);
    border: 1px solid var(--line2);
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}

/* Groene glowlijn bovenaan */
.price-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), var(--blue), transparent);
}

/* Radiaalgloed vanuit het midden */
.price-card::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,255,136,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.price-tag {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: var(--green);
    text-shadow:
        0 0 30px var(--green-glow),
        0 0 60px rgba(0,255,136,0.15);
    line-height: 1;
    margin: 1rem 0;
}

.price-tag sup {
    font-size: 1.5rem;
    vertical-align: top;
    margin-top: 0.5rem;
    color: var(--blue);
}

.price-features {
    list-style: none;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.price-features li {
    font-size: 15px;
    color: var(--text-mid);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.price-features li::before {
    content: '▸';
    color: var(--green);
    font-size: 12px;
    text-shadow: 0 0 8px var(--green-glow);
}

/* ═══════════════════════════════════════
   PAYMENT SIMULATION
═══════════════════════════════════════ */
.payment-terminal {
    background: var(--surface2);
    border: 1px solid var(--line);
    padding: 2rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--blue);
    position: relative;
    margin: 1.5rem 0;
    border-left: 2px solid var(--blue-dim);
}

.payment-terminal::before {
    content: '● ● ●';
    display: block;
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 10px;
    letter-spacing: 0.2em;
}

.payment-line { margin: 0.3rem 0; }
.payment-line.dim  { color: var(--text-dim); }
.payment-line.gold { color: var(--green); text-shadow: 0 0 8px var(--green-glow); }
.payment-line.success { color: var(--green); text-shadow: 0 0 10px var(--green-glow); }

/* ═══════════════════════════════════════
   STATS BAR
═══════════════════════════════════════ */
.stats-bar {
    display: flex;
    gap: 1px;
    background: var(--line);
    margin: 2rem 0;
}

.stat-item {
    flex: 1;
    background: var(--surface);
    padding: 1.2rem 1rem;
    text-align: center;
    transition: background 0.2s;
}

.stat-item:hover {
    background: var(--surface2);
}

.stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.3em;
    color: var(--text-dim);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green);
    text-shadow: 0 0 15px rgba(0,255,136,0.3);
}

/* ═══════════════════════════════════════
   ALERTS
═══════════════════════════════════════ */
.alert {
    padding: 0.9rem 1.2rem;
    font-size: 14px;
    letter-spacing: 0.03em;
    margin-bottom: 1.2rem;
    border-left: 3px solid;
}

.alert-error   { background: rgba(255,58,92,0.08);  border-color: var(--red);   color: #ff7090; }
.alert-success { background: rgba(0,255,136,0.08);  border-color: var(--green); color: var(--green); }
.alert-info    { background: rgba(0,200,255,0.08);  border-color: var(--blue);  color: var(--blue); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--line);
    padding: 2rem;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

/* ═══════════════════════════════════════
   ANIMATIES
═══════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes expandWidth {
    from { width: 0; opacity: 0; }
    to   { width: 240px; opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--green), 0 0 16px rgba(0,255,136,0.4); }
    50%       { opacity: 0.6; transform: scale(0.8); box-shadow: 0 0 4px var(--green); }
}

/* Glitch-effect – wit met groene/blauwe shadow */
@keyframes glitch {
    0%, 88%, 100% { text-shadow: 0 0 40px var(--green-glow), 0 0 80px rgba(0,255,136,0.2); transform: translate(0); }
    90% { transform: translate(-3px, 1px); text-shadow: -2px 0 var(--blue), 2px 0 var(--green); }
    92% { transform: translate(3px, -1px); text-shadow: 2px 0 var(--green), -2px 0 var(--blue); }
    94% { transform: translate(-2px, 2px); text-shadow: -1px 0 var(--blue), 1px 0 var(--green); }
    96% { transform: translate(2px, -2px); }
}

.glitch { animation: glitch 5s infinite; }

/* Neon flicker voor speciale elementen */
@keyframes flicker {
    0%, 95%, 100% { opacity: 1; }
    96% { opacity: 0.8; }
    97% { opacity: 1; }
    98% { opacity: 0.6; }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 640px) {
    .nav { padding: 0 1rem; gap: 0.5rem; }
    .nav-link { display: none; }
    .container { padding: 2rem 1rem; }
    .stats-bar { flex-wrap: wrap; }
    .stat-item { min-width: 45%; }
    .price-card { padding: 2rem 1.5rem; }
}