/* =============================================
   SQUEEN668 RTP SCANNER — Professional Casino Theme
   Clean, modern, trust-building design
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    --bg-primary: #12150f;
    --bg-dark: #0b0d09;
    --bg-card: rgba(24, 28, 18, 0.72);
    --bg-card-solid: #181d14;
    --bg-card-hover: rgba(34, 40, 25, 0.82);
    --border-dim: rgba(212, 175, 55, 0.1);
    --border-glow: rgba(212, 175, 55, 0.35);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --accent: #F0B548;
    --accent-light: #FFD37A;
    --accent-glow: rgba(240, 181, 72, 0.24);
    --primary: #F0B548;
    --primary-gradient: linear-gradient(135deg, #F0B548, #FF8A3D);
    --hot: #58D06D;
    --warm: #FF9B4A;
    --cold: #EF4444;
    --text-primary: #F0ECE2;
    --text-dim: rgba(240, 236, 226, 0.4);
    --text-bright: #FFFFFF;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.4);
    --nav-safe-height: 92px;
    --content-max-width: 1100px;

    /* Cyberpunk Vault HUD tokens */
    --neon-cyan: #71D06B;
    --neon-cyan-dim: #2E6E32;
    --neon-cyan-glow: rgba(113, 208, 107, 0.38);
    --neon-magenta: #FF8A3D;
    --scanline: rgba(240, 181, 72, 0.05);
    --grid-line: rgba(240, 181, 72, 0.025);
    --hot-glow: rgba(88, 208, 109, 0.35);
    --warm-glow: rgba(255, 155, 74, 0.42);
    --cold-glow: rgba(239, 68, 68, 0.45);
    --gold-glow: rgba(240, 181, 72, 0.45);
    --glow-sm: 0 0 12px;
    --glow-md: 0 0 24px;
    --glow-lg: 0 0 48px;
    --holo-border: linear-gradient(135deg, #F0B548, #71D06B, #FF8A3D, #F0B548);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 18% 0%, rgba(240, 181, 72, 0.09) 0%, transparent 52%),
        radial-gradient(ellipse at 82% 100%, rgba(88, 208, 109, 0.08) 0%, transparent 56%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Cyber grid backdrop */
body::before {
    content: '';
    position: fixed;
    inset: -2px;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 25%, #000 32%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 25%, #000 32%, transparent 78%);
    animation: gridDrift 38s linear infinite;
}

/* Floating orbs */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(620px 620px at 12% 18%, rgba(240, 181, 72, 0.12), transparent 60%),
        radial-gradient(540px 540px at 88% 72%, rgba(88, 208, 109, 0.10), transparent 60%),
        radial-gradient(520px 520px at 50% 110%, rgba(255, 138, 61, 0.07), transparent 60%);
    animation: orbFloat 22s ease-in-out infinite alternate;
}

/* Particle field — gold motes drifting upward */
.particle-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle-field span {
    position: absolute;
    bottom: -20px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-light);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
    opacity: 0;
    animation: mote linear infinite;
}

.particle-field span:nth-child(1)  { left: 5%;  animation-duration: 14s; animation-delay: 0s;   }
.particle-field span:nth-child(2)  { left: 12%; animation-duration: 18s; animation-delay: 2s;   background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan-glow); }
.particle-field span:nth-child(3)  { left: 18%; animation-duration: 16s; animation-delay: 4s;   }
.particle-field span:nth-child(4)  { left: 24%; animation-duration: 20s; animation-delay: 1s;   }
.particle-field span:nth-child(5)  { left: 30%; animation-duration: 13s; animation-delay: 6s;   background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan-glow); }
.particle-field span:nth-child(6)  { left: 36%; animation-duration: 17s; animation-delay: 3s;   }
.particle-field span:nth-child(7)  { left: 42%; animation-duration: 19s; animation-delay: 5s;   }
.particle-field span:nth-child(8)  { left: 48%; animation-duration: 15s; animation-delay: 7s;   background: var(--neon-magenta); box-shadow: 0 0 10px rgba(232,121,249,0.6); }
.particle-field span:nth-child(9)  { left: 54%; animation-duration: 18s; animation-delay: 0.5s; }
.particle-field span:nth-child(10) { left: 60%; animation-duration: 16s; animation-delay: 4.5s; }
.particle-field span:nth-child(11) { left: 66%; animation-duration: 14s; animation-delay: 2.5s; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan-glow); }
.particle-field span:nth-child(12) { left: 72%; animation-duration: 19s; animation-delay: 6.5s; }
.particle-field span:nth-child(13) { left: 78%; animation-duration: 17s; animation-delay: 1.5s; }
.particle-field span:nth-child(14) { left: 84%; animation-duration: 15s; animation-delay: 5.5s; }
.particle-field span:nth-child(15) { left: 90%; animation-duration: 20s; animation-delay: 3.5s; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan-glow); }
.particle-field span:nth-child(16) { left: 95%; animation-duration: 13s; animation-delay: 7.5s; }
.particle-field span:nth-child(17) { left: 8%;  animation-duration: 21s; animation-delay: 8s;   }
.particle-field span:nth-child(18) { left: 38%; animation-duration: 22s; animation-delay: 9s;   background: var(--neon-magenta); box-shadow: 0 0 10px rgba(232,121,249,0.6); }
.particle-field span:nth-child(19) { left: 68%; animation-duration: 16s; animation-delay: 10s;  }
.particle-field span:nth-child(20) { left: 88%; animation-duration: 18s; animation-delay: 11s;  }

/* =============================================
   BANNER CAROUSEL
   ============================================= */
.banner-carousel {
    position: relative;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 16px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    z-index: 1;
    aspect-ratio: 16 / 6;
    background: var(--bg-card-solid);
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    position: relative;
    flex: 0 0 33.3333%;
    width: 33.3333%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.65);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 18px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slide-badge {
    display: inline-block;
    width: fit-content;
    padding: 3px 10px;
    background: var(--primary-gradient);
    color: #1A0A2E;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.slide-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-bright);
}

.slide-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
    background: rgba(0,0,0,0.7);
    border-color: rgba(212,175,55,0.4);
}

.carousel-arrow-left { left: 8px; }
.carousel-arrow-right { right: 8px; }

@media (max-width: 600px) {
    .banner-carousel { aspect-ratio: 16 / 9; margin: 10px 8px 0; border-radius: 12px; }
    .slide-title { font-size: 13px; }
    .slide-desc { font-size: 10px; }
    .slide-overlay { padding: 14px 12px 12px; }
    .carousel-arrow { width: 26px; height: 26px; font-size: 12px; }
}

/* =============================================
   HEADER
   ============================================= */
.scanner-header {
    position: relative;
    text-align: center;
    padding: 28px 16px 20px;
    z-index: 1;
    overflow: hidden;
}

.header-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 220px;
    background:
        radial-gradient(circle, rgba(212, 175, 55, 0.10), transparent 70%),
        conic-gradient(from 0deg, transparent 0%, rgba(34, 211, 238, 0.18) 25%, transparent 50%, rgba(212, 175, 55, 0.18) 75%, transparent 100%);
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
    animation: conicSweep 14s linear infinite;
}

/* Scanline sweep across header */
.header-scanline {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.6;
}

.header-scanline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan-glow), transparent);
    box-shadow: 0 0 12px var(--neon-cyan-glow);
    animation: scanlineSweep 5s ease-in-out infinite;
}

.header-title {
    font-family: var(--font-display);
    font-size: clamp(18px, 4.5vw, 26px);
    font-weight: 800;
    background: linear-gradient(90deg, #D4AF37 0%, #FFF4C4 25%, #FFD700 50%, #FFF4C4 75%, #D4AF37 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    animation: goldShimmer 4s linear infinite;
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
    position: relative;
    z-index: 2;
}

.header-icon {
    font-size: 1.1em;
    margin-right: 6px;
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.header-sub {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 6px;
    font-weight: 400;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.status-item {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.status-item.live {
    color: var(--hot);
    border-color: rgba(34, 197, 94, 0.2);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hot);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px;
    margin: 16px 0;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Inner status glow pulsing softly */
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at center, var(--card-glow, transparent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.stat-card:hover::before { opacity: 1; }
.stat-card:hover { border-color: var(--border-dim); transform: translateY(-2px); }

.stat-card.hot   { border-color: rgba(34, 197, 94, 0.22); --card-glow: var(--hot-glow); }
.stat-card.warm  { border-color: rgba(245, 158, 11, 0.22); --card-glow: var(--warm-glow); }
.stat-card.cold  { border-color: rgba(239, 68, 68, 0.22); --card-glow: var(--cold-glow); }
.stat-card.total { --card-glow: var(--gold-glow); }

.stat-card.hot   { box-shadow: inset 0 0 24px rgba(34, 197, 94, 0.06); }
.stat-card.warm  { box-shadow: inset 0 0 24px rgba(245, 158, 11, 0.06); }
.stat-card.cold  { box-shadow: inset 0 0 24px rgba(239, 68, 68, 0.06); }
.stat-card.total { box-shadow: inset 0 0 24px rgba(212, 175, 55, 0.06); }

.stat-icon {
    font-size: 22px;
    margin-bottom: 6px;
    display: inline-block;
    position: relative;
    filter: drop-shadow(0 0 6px var(--card-glow, var(--gold-glow)));
    animation: statIconFloat 4s ease-in-out infinite;
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid var(--card-glow, var(--gold-glow));
    border-top-color: transparent;
    border-right-color: transparent;
    opacity: 0.6;
    animation: ringSpin 5s linear infinite;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-bright);
    text-shadow: 0 0 16px var(--card-glow, transparent);
    position: relative;
    z-index: 1;
}

.stat-card.hot .stat-value { color: var(--hot); }
.stat-card.warm .stat-value { color: var(--warm); }
.stat-card.cold .stat-value { color: var(--cold); }
.stat-card.total .stat-value { color: var(--accent-light); }

.stat-card.flash { animation: countFlash 0.6s ease-out; }

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-dim);
    margin-top: 2px;
    font-weight: 600;
}

/* =============================================
   DEVICE INFO
   ============================================= */
.device-intel {
    margin: 0 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px;
    position: relative;
    z-index: 1;
}

.device-intel[hidden] {
    display: none !important;
}

.intel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

.intel-live {
    margin-left: auto;
    color: var(--hot);
    font-size: 10px;
    animation: pulse 1.5s infinite;
}

.intel-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.intel-row {
    display: grid;
    grid-template-columns: 20px 74px 1fr;
    gap: 6px;
    font-size: 11px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.intel-row:last-child { border-bottom: none; }
.intel-row span:first-child { font-size: 12px; }
.intel-row span:nth-child(2) { color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.intel-row span:last-child { color: var(--text-primary); word-break: break-all; }

.intel-ip { color: var(--accent) !important; }

/* =============================================
   SCAN MODAL
   ============================================= */
body.scan-modal-open {
    overflow: hidden;
}

.scan-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.scan-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scan-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 6, 0.82);
    backdrop-filter: blur(10px);
}

.scan-modal-card {
    position: relative;
    width: min(100%, 470px);
    border-radius: 28px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(240, 181, 72, 0.22);
    background:
        linear-gradient(180deg, rgba(27, 32, 20, 0.99) 0%, rgba(15, 18, 11, 0.99) 100%);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 0 40px rgba(88, 208, 109, 0.10);
}

.scan-modal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.14;
    pointer-events: none;
}

.scan-modal-topline,
.scan-modal-title-row,
.scan-modal-progress,
.scan-modal-status,
.scan-modal-grid {
    position: relative;
    z-index: 1;
}

.scan-modal-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.scan-modal-eyebrow {
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 800;
}

.scan-modal-live {
    margin-left: auto;
    color: #22c55e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
    animation: pulse 1.5s infinite;
}

.scan-modal-title-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.scan-modal-title-row h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-bright);
    letter-spacing: 0.8px;
}

.scan-modal-provider {
    max-width: 46%;
    text-align: right;
    font-size: 10px;
    color: #8fdfa1;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.scan-modal-progress {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.scan-modal-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #58D06D, #F0B548, #FF8A3D);
    box-shadow: 0 0 16px rgba(240, 181, 72, 0.25);
    transition: width 0.35s ease;
}

.scan-modal-status {
    margin: 0 0 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.4px;
    font-weight: 700;
}

.scan-modal-steps {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.scan-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.scan-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.scan-step-item.active {
    color: var(--text-bright);
    border-color: rgba(240, 181, 72, 0.22);
    background: rgba(240, 181, 72, 0.10);
}

.scan-step-item.active .scan-step-dot {
    background: var(--accent);
    box-shadow: 0 0 10px var(--gold-glow);
}

.scan-step-item.done {
    color: #9de6aa;
    border-color: rgba(88, 208, 109, 0.18);
    background: rgba(88, 208, 109, 0.08);
}

.scan-step-item.done .scan-step-dot {
    background: #58D06D;
    box-shadow: 0 0 10px rgba(88,208,109,0.28);
}

.scan-modal-grid {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.scan-modal-row {
    display: grid;
    grid-template-columns: 26px 84px 1fr;
    gap: 8px;
    align-items: center;
    padding: 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.scan-modal-row:last-child {
    border-bottom: none;
}

.scan-modal-icon {
    font-size: 14px;
}

.scan-modal-label {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    font-weight: 700;
}

.scan-modal-value {
    color: var(--text-primary);
    font-weight: 600;
    word-break: break-word;
}

.scan-modal-value.is-highlight {
    color: var(--accent);
    letter-spacing: 0.8px;
    text-shadow: 0 0 10px var(--gold-glow);
}

/* =============================================
   PROVIDER GRID
   ============================================= */
.provider-section {
    padding: 0 14px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon { font-size: 16px; }

.provider-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.provider-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px 10px 13px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
}

.provider-card:hover,
.provider-card:active {
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.08);
    background: var(--bg-card-hover);
}

.provider-card.active {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.06);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.08), inset 0 0 20px rgba(212, 175, 55, 0.03);
}

.provider-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.provider-name {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.provider-card.active .provider-name { color: var(--accent); }

.provider-check {
    display: none;
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 10px;
    color: var(--accent);
}
.provider-card.active .provider-check { display: block; }

.provider-hint {
    margin: 14px 4px 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-dim);
    text-align: center;
}

.provider-hint.error {
    color: #ff8a80;
}

/* =============================================
   SCANNING PROGRESS
   ============================================= */
.scanning-section {
    margin: 0 14px 16px;
    position: relative;
    z-index: 1;
}

.scan-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        var(--shadow),
        0 0 32px rgba(34, 211, 238, 0.10),
        inset 0 0 32px rgba(212, 175, 55, 0.04);
    position: relative;
}

/* Holographic top edge */
.scan-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--accent), var(--neon-cyan), transparent);
    background-size: 200% 100%;
    animation: holoEdge 4s linear infinite;
}

.scan-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(34, 211, 238, 0.03);
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
    position: relative;
}

/* Radar mini gauge */
.scan-radar {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.scan-radar svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.scan-radar .radar-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 3;
}

.scan-radar .radar-fill {
    fill: none;
    stroke: url(#radarGrad);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.4s ease;
    filter: drop-shadow(0 0 6px var(--neon-cyan-glow));
}

/* Sweep cone */
.scan-radar::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 211, 238, 0.55) 30deg, transparent 60deg);
    animation: radarSweep 1.6s linear infinite;
    pointer-events: none;
}

.scan-radar::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

.scan-panel-icon {
    display: none; /* replaced by .scan-radar */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scan-panel-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 0 12px var(--gold-glow);
}

.scan-panel-percent {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan-glow);
    min-width: 44px;
    text-align: right;
}

.scan-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.scan-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4), transparent);
    animation: progressShine 2s linear infinite;
}

.scan-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--neon-cyan), var(--accent));
    background-size: 200% 100%;
    transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 12px var(--neon-cyan-glow), 0 0 8px var(--gold-glow);
    animation: holoEdge 3s linear infinite;
}

.scan-log-body {
    padding: 14px 16px;
    max-height: 240px;
    overflow-y: auto;
    font-size: 11px;
    line-height: 1.8;
    font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
    position: relative;
    background:
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(34, 211, 238, 0.025) 2px, rgba(34, 211, 238, 0.025) 3px),
        rgba(0, 0, 0, 0.18);
}

.scan-log-body::-webkit-scrollbar { width: 3px; }
.scan-log-body::-webkit-scrollbar-track { background: transparent; }
.scan-log-body::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 2px; }

.log-line {
    opacity: 0;
    animation: logAppear 0.3s ease forwards;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-line::before {
    content: '> ';
    color: var(--neon-cyan);
    opacity: 0.6;
}

@keyframes logAppear {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.log-normal { color: var(--text-dim); }
.log-info { color: var(--accent); }
.log-success { color: var(--hot); text-shadow: 0 0 8px var(--hot-glow); }
.log-warning { color: var(--warm); }
.log-latest { color: var(--text-bright); font-weight: 600; }

.log-line.log-latest::after {
    content: '▮';
    margin-left: 4px;
    color: var(--neon-cyan);
    animation: cursorBlink 1s steps(2) infinite;
}

.scan-detail {
    text-align: center;
    font-size: 10px;
    color: var(--neon-cyan);
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px var(--neon-cyan-glow);
    opacity: 0.85;
}

/* =============================================
   TOP 3 PODIUM
   ============================================= */
.top3-section {
    padding: 0 14px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.top3-heading {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 12px;
}

.rtp-chart-panel {
    margin: 0 14px 22px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(22, 25, 15, 0.94), rgba(15, 17, 10, 0.96));
    border: 1px solid rgba(240, 181, 72, 0.10);
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

.rtp-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.rtp-chart-head h3 {
    margin: 0;
    font-size: 18px;
}

.rtp-chart-head p {
    margin: 0;
    color: rgba(255,255,255,0.64);
    font-size: 12px;
    max-width: 380px;
}

#rtpChart {
    width: 100%;
    max-height: 300px;
}

.top3-cards {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 10px;
    align-items: end;
}

.top3-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 8px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    border: 1px solid var(--border-subtle);
    animation: cardReveal 0.5s ease-out both;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Diagonal shine sweep — only on cards */
.top3-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    pointer-events: none;
    animation: shineSweep 5s ease-in-out infinite;
}

.top3-gold {
    border-color: rgba(255, 215, 0, 0.55);
    background: linear-gradient(160deg, rgba(255, 215, 0, 0.18), rgba(212, 175, 55, 0.06) 60%, var(--bg-card));
    box-shadow:
        0 0 32px rgba(255, 215, 0, 0.20),
        inset 0 0 24px rgba(255, 215, 0, 0.08);
    min-height: 230px;
    transform: translateY(-12px);
}

.top3-gold::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--holo-border);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: holoEdge 6s linear infinite;
    pointer-events: none;
}

.top3-gold::after { animation-duration: 3.5s; }

.top3-silver {
    border-color: rgba(192, 192, 192, 0.35);
    background: linear-gradient(160deg, rgba(192, 192, 192, 0.10), var(--bg-card));
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.08);
    min-height: 200px;
}

.top3-silver::after { animation-delay: 1s; }

.top3-bronze {
    border-color: rgba(205, 127, 50, 0.35);
    background: linear-gradient(160deg, rgba(205, 127, 50, 0.10), var(--bg-card));
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.08);
    min-height: 180px;
}

.top3-bronze::after { animation-delay: 2s; }

.top3-medal {
    font-size: 28px;
    filter: drop-shadow(0 0 10px var(--gold-glow));
    animation: medalBob 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.top3-silver .top3-medal { filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.6)); }
.top3-bronze .top3-medal { filter: drop-shadow(0 0 8px rgba(205, 127, 50, 0.6)); }

.top3-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.top3-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top3-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.top3-status {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top3-status-hot { color: var(--hot); background: rgba(34, 197, 94, 0.1); }
.top3-status-warm { color: var(--warm); background: rgba(245, 158, 11, 0.1); }
.top3-status-cold { color: var(--cold); background: rgba(239, 68, 68, 0.1); }

/* =============================================
   CIRCULAR RTP GAUGE
   ============================================= */
.rtp-gauge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rtp-gauge svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gauge-fill {
    transition: stroke-dashoffset 1s ease-out;
}

.gauge-text {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
}

/* =============================================
   FILTER & CONTROLS
   ============================================= */
.results-section {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.controls-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-controls::-webkit-scrollbar { display: none; }

.filter-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 11px;
    font-family: var(--font-body);
    color: var(--text-dim);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-weight: 500;
}

.filter-tab:hover { border-color: rgba(212, 175, 55, 0.2); color: var(--text-primary); }

.filter-tab.active {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
}

.sort-select {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 11px;
    font-family: var(--font-body);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

/* =============================================
   GAME LIST
   ============================================= */
.game-list {
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-card {
    display: grid;
    grid-template-columns: 32px 44px 1fr auto;
    gap: 10px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 10px 12px;
    backdrop-filter: blur(8px);
    animation: cardReveal 0.4s ease-out both;
    transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

/* Status halo — always-on glow ring */
.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(120% 80% at 0% 50%, var(--card-halo, transparent), transparent 60%);
}

/* Cyan corner brackets — appear on hover */
.game-card::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    opacity: 0;
    clip-path: polygon(
        0 0, 14px 0, 14px 1px, 1px 1px, 1px 14px, 0 14px,
        0 100%, 14px 100%, 14px calc(100% - 1px), 1px calc(100% - 1px), 1px calc(100% - 14px), 0 calc(100% - 14px),
        100% 0, calc(100% - 14px) 0, calc(100% - 14px) 1px, calc(100% - 1px) 1px, calc(100% - 1px) 14px, 100% 14px,
        100% 100%, calc(100% - 14px) 100%, calc(100% - 14px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 14px), 100% calc(100% - 14px)
    );
    transition: opacity 0.25s;
    pointer-events: none;
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.game-card:hover {
    border-color: rgba(34, 211, 238, 0.35);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px var(--card-halo, var(--neon-cyan-glow));
}

.game-card:hover::before { opacity: 0.5; }
.game-card:hover::after { opacity: 0.8; }

.game-card.hot {
    border-color: rgba(34, 197, 94, 0.30);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06), var(--bg-card));
    --card-halo: var(--hot-glow);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.10), inset 0 0 24px rgba(34, 197, 94, 0.04);
}

.game-card.hot::before { opacity: 0.35; }

.game-card.warm {
    border-color: rgba(245, 158, 11, 0.22);
    --card-halo: var(--warm-glow);
    box-shadow: inset 0 0 18px rgba(245, 158, 11, 0.03);
}

.game-card.cold {
    border-color: rgba(239, 68, 68, 0.18);
    --card-halo: var(--cold-glow);
}

.game-rank {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-align: center;
}

.game-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.game-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-provider-name {
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.game-rtp-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
    position: relative;
}

.game-rtp-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease-out;
    position: relative;
}

.game-rtp-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
}

.game-rtp-fill.hot {
    background: linear-gradient(90deg, var(--hot), #4ADE80, var(--hot));
    box-shadow: 0 0 8px var(--hot-glow);
}
.game-rtp-fill.hot::after { animation: rtpShimmer 2.2s ease-in-out infinite; }

.game-rtp-fill.warm {
    background: linear-gradient(90deg, var(--warm), #FBBF24);
    box-shadow: 0 0 6px var(--warm-glow);
}

.game-rtp-fill.cold {
    background: linear-gradient(90deg, var(--cold), #F87171);
    box-shadow: 0 0 6px var(--cold-glow);
}

.game-card.hot .game-thumb {
    box-shadow: 0 0 12px var(--hot-glow);
}

.game-rtp-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rtp-label {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rtp-label.hot { color: var(--hot); }
.rtp-label.warm { color: var(--warm); }
.rtp-label.cold { color: var(--cold); }

/* =============================================
   SHARE SECTION
   ============================================= */
.share-section {
    margin: 24px 14px 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    text-align: center;
}

.share-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.share-desc {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.share-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.share-btn {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 11px;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    font-weight: 500;
}

.share-btn:hover { border-color: rgba(212,175,55,0.3); transform: translateY(-1px); }

.share-btn-wa { border-color: rgba(37, 211, 102, 0.2); }
.share-btn-wa:hover { background: rgba(37, 211, 102, 0.08); }
.share-btn-tg { border-color: rgba(0, 136, 204, 0.2); }
.share-btn-tg:hover { background: rgba(0, 136, 204, 0.08); }

/* =============================================
   RESULTS FOOTER
   ============================================= */
.results-footer {
    text-align: center;
    padding: 18px 16px 28px;
    font-size: 11px;
    color: var(--text-dim);
}

/* =============================================
   FLOATING SCAN BUTTON
   ============================================= */
.floating-scan {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 100;
    background: var(--primary-gradient);
    color: #1A0A2E;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3), 0 0 40px rgba(212, 175, 55, 0.1);
    animation: floatBob 3s ease-in-out infinite;
    letter-spacing: 0.5px;
}

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

.scan-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    border: 2px solid var(--accent);
    animation: scanPulse 2s infinite;
    pointer-events: none;
}

@keyframes scanPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 0; }
}

/* =============================================
   BOTTOM NAV
   ============================================= */
.bottom-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 200;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: rgba(17, 20, 13, 0.96);
    border: 1px solid rgba(240, 181, 72, 0.10);
    border-radius: 22px;
    margin: 0;
    padding: 8px 6px 14px;
    min-height: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.03);
    overflow: visible;
    transform: translateZ(0); /* force compositor for Safari backdrop-filter */
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.25), transparent);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 9px;
    padding: 8px 8px 6px;
    border-radius: 16px;
    transition: color 0.25s, background 0.25s, transform 0.25s;
    position: relative;
    min-height: 52px;
}

.nav-item span {
    line-height: 1.2;
}

.nav-item > svg {
    width: 22px;
    height: 22px;
    padding: 5px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(240,181,72,0.08), rgba(88,208,109,0.05));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 6px rgba(0,0,0,0.3);
    background-size: 200% 200%;
    transition: all 0.25s ease;
    overflow: visible;
}

/* Duotone inner detail */
.nav-item > svg .icon-accent {
    stroke: #58D06D;
    opacity: 0.9;
    filter: drop-shadow(0 0 2px rgba(88,208,109,0.4));
}

/* Cyan scan sweep on hover (desktop) */
.nav-item::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    background: linear-gradient(180deg, transparent, rgba(34,211,238,0.20), transparent);
    border-radius: 10px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

/* Underline bar when active */
.nav-item.active::before {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #58D06D, var(--accent), transparent);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--gold-glow);
    pointer-events: none;
}

.nav-item.active {
    color: var(--accent);
    background: rgba(240,175,55,0.06);
}

.nav-item.active > svg {
    border-color: rgba(240,181,72,0.45);
    background: linear-gradient(145deg, rgba(240,181,72,0.20), rgba(88,208,109,0.07));
    background-size: 200% 200%;
    filter: drop-shadow(0 0 5px var(--gold-glow)) drop-shadow(0 0 10px rgba(88,208,109,0.18));
    animation: holoEdge 3s linear infinite;
}

.nav-item.active > svg .icon-accent {
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(88,208,109,0.28));
}

.nav-item.active span {
    background: linear-gradient(90deg, var(--accent), #FFF4C4, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 2.5s linear infinite;
}

@media (hover: hover) {
    .nav-item:hover {
        color: var(--accent);
        background: rgba(255,255,255,0.02);
        transform: translateY(-1px);
    }
    .nav-item:hover > svg {
        border-color: rgba(240,181,72,0.35);
        background: linear-gradient(145deg, rgba(240,181,72,0.12), rgba(88,208,109,0.05));
        filter: drop-shadow(0 0 6px var(--neon-cyan-glow));
        transform: translateY(-1px);
    }
    .nav-item:hover::after {
        opacity: 1;
        animation: navScan 0.8s ease-out;
    }
}

/* Tap feedback */
.nav-item:active > svg {
    transform: scale(0.92);
}

/* =============================================
   CENTER SCAN BUTTON
   ============================================= */
.center-hack-btn {
    position: relative;
    top: -14px;
    flex: 1.15;
    z-index: 1;
}

.hack-btn-inner {
    width: 56px;
    height: 56px;
    background:
        radial-gradient(circle at 30% 30%, #FFF4C4 0%, var(--accent-light) 40%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 24px var(--gold-glow),
        0 0 48px rgba(212, 175, 55, 0.25),
        inset 0 -4px 8px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    border: 3px solid var(--bg-primary);
    animation: hackGlow 2.5s infinite;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.hack-btn-inner svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
    z-index: 3;
}

/* Triple concentric pulse rings */
.hack-btn-ring,
.center-hack-btn::before,
.center-hack-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 56px;
    height: 56px;
    margin-left: -28px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    pointer-events: none;
    opacity: 0;
    animation: ringPulse 2.4s ease-out infinite;
}

.center-hack-btn::after {
    border-color: var(--neon-cyan);
    animation-delay: 0.8s;
}

.hack-btn-ring {
    border-color: var(--accent-light);
    animation-delay: 1.6s;
}

.center-hack-btn:active .hack-btn-inner {
    animation: scanBoot 0.5s ease-out;
}

@keyframes hackGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(212,175,55,0.18), inset 0 -4px 8px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.5); }
    50%      { transform: scale(1.06); box-shadow: 0 0 32px var(--gold-glow), 0 0 64px rgba(212,175,55,0.35), inset 0 -4px 8px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.6); }
}

.center-hack-btn span {
    font-size: 10px !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent) !important;
    font-weight: 800 !important;
    text-shadow: 0 0 8px var(--gold-glow);
}

.center-hack-btn.disabled .hack-btn-inner {
    opacity: 0.55;
    box-shadow:
        0 0 12px rgba(212, 175, 55, 0.16),
        inset 0 -4px 8px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.35);
    animation: none;
    cursor: not-allowed;
}

.center-hack-btn.disabled .hack-btn-ring,
.center-hack-btn.disabled::before,
.center-hack-btn.disabled::after {
    display: none;
}

.center-hack-btn.disabled span {
    color: var(--text-dim) !important;
    text-shadow: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 480px) {
    .provider-grid { grid-template-columns: repeat(4, 1fr); }
    .stats-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }
    .game-card { padding: 12px 16px; }
}

@media (min-width: 768px) {
    body {
        max-width: var(--content-max-width);
        margin: 0 auto;
        padding-bottom: 24px;
    }
    .scanner-header { padding-top: 32px; }
    .stats-bar,
    .provider-section,
    .top3-section,
    .controls-bar,
    .game-list {
        padding-left: 16px;
        padding-right: 16px;
    }
    .device-intel { margin: 0 16px 18px; }
    .provider-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
    .bottom-nav {
        position: static;
        max-width: none;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        margin: 28px 16px 24px;
        padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px));
    }
    .floating-scan { right: calc(50% - min(460px, 50vw) + 16px); }
}

@media (min-width: 1024px) {
    .provider-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .stats-bar,
    .provider-section,
    .top3-section,
    .controls-bar,
    .game-list,
    .share-section,
    .results-footer { max-width: 100%; }
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

::selection { background: rgba(212, 175, 55, 0.25); color: white; }

/* =============================================
   CYBERPUNK VAULT HUD — KEYFRAMES
   ============================================= */
@keyframes goldShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes conicSweep {
    0%   { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes scanlineSweep {
    0%   { top: 0; opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.9; }
    100% { top: 100%; opacity: 0; }
}

@keyframes gridDrift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(44px, 44px); }
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(-20px, 14px); }
    100% { transform: translate(16px, -10px); }
}

@keyframes mote {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.9; }
    50%  { transform: translateY(-50vh) translateX(8px); opacity: 0.7; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-105vh) translateX(-8px); opacity: 0; }
}

@keyframes ringSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ringPulse {
    0%   { transform: scale(0.85); opacity: 0.7; }
    80%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

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

@keyframes countFlash {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.15); filter: brightness(1.4); }
    100% { transform: scale(1); filter: brightness(1); }
}

@keyframes radarSweep {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shineSweep {
    0%   { left: -150%; }
    60%  { left: 150%; }
    100% { left: 150%; }
}

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

@keyframes progressShine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes rtpShimmer {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

@keyframes scanBoot {
    0%   { transform: scale(1); }
    30%  { transform: scale(0.88); filter: brightness(1.5); }
    100% { transform: scale(1); filter: brightness(1); }
}

@keyframes cursorBlink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

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

@keyframes navScan {
    0%   { transform: translateY(-120%); opacity: 0; }
    40%  { opacity: 1; }
    100% { transform: translateY(120%); opacity: 0; }
}

/* =============================================
   MOBILE PERFORMANCE DOWNGRADES
   ============================================= */
@media (max-width: 480px) {
    /* Reduce blur and ambient cost on small devices */
    body::before { background-size: 36px 36px; opacity: 0.6; }
    body::after { opacity: 0.7; }
    .particle-field span:nth-child(n+11) { display: none; } /* keep ~10 motes */
    .scan-panel { backdrop-filter: blur(6px); }
    .top3-gold { transform: translateY(-6px); min-height: 200px; }
    .top3-silver { min-height: 180px; }
    .top3-bronze { min-height: 165px; }
    .header-glow { width: 280px; height: 160px; }
}

/* =============================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .particle-field { display: none; }
    body::before { animation: none; }
    body::after { animation: none; }
}

/* =============================================
   SLOTPATCHER FULL REMAKE OVERRIDES
   ============================================= */
.page-shell {
    width: min(100%, calc(var(--content-max-width) + 28px));
    margin: 0 auto;
    padding: 18px 14px 0;
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.topbar > *,
.hero-section > *,
.hero-copy > *,
.hero-media-frame > *,
.promo-strip > *,
.site-footer-grid > * {
    min-width: 0;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    color: #20160a;
    background: linear-gradient(135deg, #ffd37a 0%, #f0b548 52%, #ff8a3d 100%);
    box-shadow: 0 10px 26px rgba(240, 181, 72, 0.24);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--text-bright);
}

.brand-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.64);
}

.topbar-action,
.hero-btn {
    text-decoration: none;
}

.topbar-menu,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-menu {
    margin-left: auto;
}

.topbar-link,
.topbar-ghost {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
}

.topbar-link {
    padding: 10px 12px;
    border-radius: 999px;
}

.topbar-link:hover,
.topbar-ghost:hover {
    color: var(--text-bright);
}

.topbar-ghost {
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid rgba(240, 181, 72, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.topbar-action {
    padding: 11px 16px;
    border-radius: 999px;
    color: #1c1308;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffd37a, #f0b548, #ff8a3d);
    box-shadow: 0 12px 30px rgba(240, 181, 72, 0.24);
}

.hero-section {
    display: grid;
    gap: 20px;
    margin-bottom: 22px;
}

.hero-copy,
.hero-media-frame,
.promo-card,
.provider-section,
.scanning-section,
.results-section,
.share-section,
.results-footer {
    position: relative;
    z-index: 1;
}

.hero-copy {
    padding: 22px 20px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(23, 27, 17, 0.98) 0%, rgba(13, 15, 10, 0.98) 100%);
    border: 1px solid rgba(240, 181, 72, 0.10);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    min-width: 0;
}

.hero-copy::before,
.hero-media-frame::before,
.promo-card::before,
.provider-section::before,
.results-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.14;
    pointer-events: none;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(240, 181, 72, 0.10);
    color: #ffd37a;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 7vw, 54px);
    line-height: 1.02;
    color: var(--text-bright);
    margin-bottom: 14px;
}

.hero-text {
    max-width: 700px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.hero-btn-primary {
    color: #1c1308;
    background: linear-gradient(135deg, #ffd37a, #f0b548, #ff8a3d);
    box-shadow: 0 16px 34px rgba(240, 181, 72, 0.18);
}

.hero-btn-secondary {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-points {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.hero-point {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.hero-point span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(240, 181, 72, 0.12);
    color: #ffd37a;
    font-size: 11px;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.hero-stat-card {
    position: relative;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 104px;
}

.hero-stat-card.highlight {
    background: linear-gradient(135deg, rgba(240, 181, 72, 0.16), rgba(255, 138, 61, 0.08));
}

.hero-stat-label {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-stat-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.hero-stat-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-stat-card.hot .hero-stat-value { color: #8df5a6; }
.hero-stat-card.warm .hero-stat-value { color: #ffcd71; }
.hero-stat-card.cold .hero-stat-value { color: #ff8c8c; }

.hero-media-frame {
    padding: 18px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(24, 28, 17, 0.99), rgba(11, 13, 8, 0.99));
    border: 1px solid rgba(240, 181, 72, 0.10);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.hero-media-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.hero-frame-badge,
.hero-frame-pill,
.promo-chip,
.mini-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-frame-badge {
    padding: 8px 12px;
    color: #22160a;
    background: linear-gradient(135deg, #ffd37a, #f0b548, #ff8a3d);
}

.hero-frame-pill {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
}

.hero-carousel.banner-carousel {
    margin: 0;
    aspect-ratio: 16 / 11;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.hero-carousel .carousel-track {
    width: 100%;
}

.hero-carousel .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
}

.hero-carousel .swiper-button-prev::after,
.hero-carousel .swiper-button-next::after {
    display: none;
}

.hero-carousel .slide-overlay {
    padding: 26px 20px 38px;
}

.hero-carousel .carousel-dots {
    bottom: 12px;
}

.hero-carousel .slide-badge {
    background: linear-gradient(135deg, #ffd37a, #f0b548, #ff8a3d);
    color: #22160a;
}

.hero-mini-panels {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.hero-mini-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.hero-mini-card strong {
    display: block;
    margin-top: 6px;
    color: var(--text-bright);
    font-size: 14px;
}

.mini-label,
.promo-chip {
    padding: 6px 10px;
    background: rgba(240, 181, 72, 0.10);
    color: #ffd37a;
    margin-bottom: 10px;
}

.promo-strip {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.trust-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.trust-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(240, 181, 72, 0.10);
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.promo-card {
    padding: 20px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(23, 27, 17, 0.97), rgba(12, 15, 9, 0.97));
    border: 1px solid rgba(240, 181, 72, 0.10);
    overflow: hidden;
}

.promo-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.promo-card p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.7;
}

.provider-section,
.results-section,
.scanning-section {
    width: min(100%, calc(var(--content-max-width) + 28px));
    margin: 0 auto 24px;
    padding: 20px 14px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(22, 26, 16, 0.98), rgba(11, 13, 9, 0.98));
    border: 1px solid rgba(240, 181, 72, 0.10);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.provider-section > *,
.results-section > *,
.scanning-section > * {
    position: relative;
    z-index: 1;
}

.section-heading-wrap {
    margin-bottom: 16px;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.7;
    margin-top: -2px;
}

.provider-section .section-title,
.results-section .section-title {
    font-size: 15px;
    margin-bottom: 8px;
}

.provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.provider-card {
    min-height: 122px;
    padding: 18px 12px 15px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
}

.provider-card.active {
    background: linear-gradient(180deg, rgba(240, 181, 72, 0.14), rgba(255, 138, 61, 0.08));
    border-color: rgba(240, 181, 72, 0.32);
    box-shadow: 0 16px 34px rgba(240, 181, 72, 0.10);
}

.provider-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    display: grid;
    place-items: center;
    padding: 10px;
}

.provider-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.provider-name {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.provider-check {
    top: 10px;
    right: 10px;
    background: #4ade80;
    color: #102010;
}

.provider-hint {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
}

.results-heading-wrap {
    padding: 0 14px;
}

.controls-bar,
.game-list,
.share-section,
.results-footer,
.top3-section {
    width: 100%;
    max-width: 100%;
}

.controls-bar,
.share-section,
.results-footer {
    margin-left: auto;
    margin-right: auto;
}

.share-section,
.results-footer {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(240,181,72,0.10);
    border-radius: 22px;
    padding: 18px;
}

.results-footer {
    margin-top: 16px;
}

.results-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.results-footer-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.48);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.results-footer strong {
    color: var(--text-bright);
    font-size: 13px;
}

.site-footer {
    width: min(100%, calc(var(--content-max-width) + 28px));
    margin: 0 auto 22px;
    padding: 0 14px;
    position: relative;
    z-index: 1;
}

.site-footer-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(22, 26, 16, 0.98), rgba(10, 12, 8, 0.98));
    border: 1px solid rgba(240, 181, 72, 0.10);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
}

.site-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-logo {
    flex-shrink: 0;
}

.site-footer-copy {
    margin-top: 8px;
    color: rgba(255,255,255,0.76);
    font-size: 13px;
    line-height: 1.7;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer-links a {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(240,181,72,0.10);
    color: rgba(255,255,255,0.82);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.top3-card,
.game-card {
    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.game-card {
    padding: 14px 16px !important;
}

.game-name {
    font-weight: 800;
}

.game-provider-name {
    color: rgba(255,255,255,0.56) !important;
}

.bottom-nav {
    background: rgba(17, 20, 13, 0.96) !important;
    border: 1px solid rgba(240,181,72,0.10) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34) !important;
}

.nav-item span {
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.82);
}

.nav-item svg {
    opacity: 0.92;
}

.scan-swal-popup {
    border-radius: 28px !important;
    background: linear-gradient(180deg, rgba(22, 26, 16, 0.99), rgba(11, 13, 9, 0.99)) !important;
    border: 1px solid rgba(240, 181, 72, 0.14) !important;
    color: var(--text-bright) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4) !important;
    padding: 24px 24px 18px !important;
}

.scan-swal-popup .swal2-title {
    color: var(--text-bright) !important;
    font-family: var(--font-display);
    font-size: 26px !important;
    letter-spacing: 0.6px;
}

.scan-swal {
    text-align: left;
}

.scan-swal-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin-bottom: 14px;
}

.scan-swal-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #58D06D, #F0B548, #FF8A3D);
    box-shadow: 0 0 16px rgba(240, 181, 72, 0.22);
    transition: width 0.35s ease;
}

.scan-swal-status {
    color: rgba(255,255,255,0.84);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.scan-swal-steps {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.scan-swal-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.58);
    font-size: 12px;
}

.scan-swal-step span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.scan-swal-step.active {
    color: var(--text-bright);
    border-color: rgba(240,181,72,0.22);
    background: rgba(240,181,72,0.10);
}

.scan-swal-step.active span {
    background: var(--accent);
    box-shadow: 0 0 10px var(--gold-glow);
}

.scan-swal-step.done {
    color: #9de6aa;
    border-color: rgba(88,208,109,0.18);
    background: rgba(88,208,109,0.08);
}

.scan-swal-step.done span {
    background: #58D06D;
    box-shadow: 0 0 10px rgba(88,208,109,0.28);
}

.scan-swal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.scan-swal-grid > div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.scan-swal-grid small {
    display: block;
    color: rgba(255,255,255,0.52);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.scan-swal-grid strong {
    display: block;
    color: var(--text-bright);
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

@media (min-width: 768px) {
    .page-shell { padding-top: 26px; }
    .hero-section {
        grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
        align-items: stretch;
    }
    .hero-copy,
    .hero-media-frame,
    .provider-section,
    .results-section,
    .scanning-section { padding: 28px; }
    .hero-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .promo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .provider-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero-mini-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .provider-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .hero-title { max-width: 10ch; }
}

@media (max-width: 767px) {
    .page-shell {
        padding: 14px 12px 132px;
    }
    .topbar {
        gap: 10px;
        align-items: stretch;
    }
    .brand-mark {
        flex: 1 1 auto;
        min-width: 0;
    }
    .topbar-menu {
        display: none;
    }
    .topbar-link {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px 8px;
        font-size: 10px;
        letter-spacing: 0.7px;
    }
    .topbar-actions {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .topbar-ghost,
    .topbar-action {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 10px 10px;
        justify-content: center;
        text-align: center;
        font-size: 10px;
        line-height: 1.2;
        white-space: normal;
    }
    .hero-copy,
    .hero-media-frame,
    .provider-section,
    .results-section,
    .scanning-section {
        padding: 16px 14px;
        border-radius: 24px;
    }
    .hero-title {
        max-width: none;
        font-size: clamp(23px, 6.8vw, 29px);
        line-height: 1.12;
        overflow-wrap: anywhere;
        margin-bottom: 12px;
    }
    .hero-text {
        max-width: none;
        font-size: 12px;
        line-height: 1.58;
    }
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .hero-btn {
        width: 100%;
        min-width: 0;
    }
    .hero-point {
        align-items: flex-start;
        font-size: 12px;
    }
    .hero-stats-grid,
    .hero-mini-panels,
    .promo-strip,
    .results-footer-grid,
    .scan-swal-grid {
        grid-template-columns: 1fr;
    }
    .trust-ribbon {
        gap: 8px;
    }
    .trust-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .rtp-chart-panel {
        margin-left: 0;
        margin-right: 0;
        padding: 16px 14px;
        border-radius: 20px;
    }
    .rtp-chart-head {
        flex-direction: column;
    }
    .site-footer-grid {
        gap: 14px;
    }
    .site-footer-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .site-footer-links a {
        text-align: center;
    }
    .bottom-nav {
        left: 12px;
        right: 12px;
        width: auto;
        bottom: 10px;
        padding: 4px 4px 8px;
        border-radius: 18px;
    }
    .nav-item {
        min-height: 34px;
        padding: 4px 3px 3px;
        font-size: 7px;
    }
    .nav-item:not(.center-hack-btn) span {
        display: none;
    }
    .nav-item > svg {
        width: 18px;
        height: 18px;
        padding: 3px;
    }
    .center-hack-btn {
        top: -8px;
        min-width: 0;
    }
    .hack-btn-inner,
    .hack-btn-ring,
    .center-hack-btn::before,
    .center-hack-btn::after {
        width: 50px;
        height: 50px;
        margin-left: -25px;
    }
    .center-hack-btn span {
        font-size: 7.5px !important;
        letter-spacing: 0.55px;
    }
    .results-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: clamp(22px, 6.6vw, 27px);
    }
    .hero-copy {
        padding: 15px 13px;
    }
}
