/* ============================================================
   聚鑫娱乐导航 — Template 01 · Dark Mobile · v5 premium+
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background:
        radial-gradient(1200px 600px at 0% -10%, rgba(124,58,237,.18), transparent 60%),
        radial-gradient(1000px 500px at 100% 0%, rgba(236,72,153,.15), transparent 55%),
        linear-gradient(180deg, #070a18 0%, #0f0f23 100%);
    color: #e5e7eb;
    min-height: 100vh;
    padding-bottom: 96px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}
a, button { cursor: pointer; }
a { text-decoration: none; color: inherit; }
button { border: 0; background: none; color: inherit; font: inherit; }
.ico { width: 1em; height: 1em; vertical-align: -0.15em; }

/* ─── scroll progress bar ─────────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #fbbf24, #ef4444, #ec4899, #7c3aed);
    z-index: 999;
    transition: width .12s ease-out;
    box-shadow: 0 0 12px rgba(251, 191, 36, .55);
}

/* ─── preloader splash ─────────────────────────────────────────── */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #070a18 80%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity .45s ease;
}
.preloader.hide { opacity: 0; pointer-events: none; }
.pre-mark {
    width: 78px; height: 78px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fbbf24, #ef4444);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 900; font-size: 2.4rem;
    box-shadow: 0 14px 36px rgba(239, 68, 68, .55);
    animation: pre-zoom 1.4s ease-in-out infinite alternate;
}
@keyframes pre-zoom {
    from { transform: scale(.95); }
    to   { transform: scale(1.05); }
}
.pre-name {
    font-size: 1.05rem; font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}
.pre-bar {
    width: 140px; height: 3px;
    background: rgba(255, 255, 255, .1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}
.pre-bar span {
    display: block;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #fbbf24, #ec4899);
    border-radius: 2px;
    animation: pre-slide 1.1s ease-in-out infinite;
}
@keyframes pre-slide {
    0%   { transform: translateX(-100%); }
    50%  { transform: translateX(180%); width: 30%; }
    100% { transform: translateX(380%); width: 10%; }
}

/* ─── particle field ─────────────────────────────────────────── */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particles span {
    position: absolute;
    display: block;
    width: 4px; height: 4px;
    border-radius: 50%;
    opacity: .35;
    animation: float-up linear infinite;
}
@keyframes float-up {
    0%   { transform: translateY(110vh) scale(.6); opacity: 0; }
    10%  { opacity: .6; }
    90%  { opacity: .4; }
    100% { transform: translateY(-10vh) scale(1.1); opacity: 0; }
}

/* keep all real content above particles, with explicit stacking */
.header        { z-index: 50; }
.ticker-strip,
.banner-slider,
.stats-row,
.notice,
.searchbar,
.tabs,
.cards,
.partners,
.page-footer  { position: relative; z-index: 1; }
.fab-top      { z-index: 99; }
.bottom-nav   { z-index: 100; }
.winner-toast { z-index: 200; }
.promo-modal  { z-index: 9000; }
.preloader    { z-index: 9999; }
.scroll-progress { z-index: 999; }

/* ─── reveal-on-scroll ─────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── header ─────────────────────────────────────────── */
.header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: rgba(7, 10, 24, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky; top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, #fbbf24, #ef4444);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(239, 68, 68, .45);
}
.brand-pulse {
    position: absolute; inset: -3px;
    border: 2px solid rgba(251, 191, 36, .6);
    border-radius: 16px;
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}
@keyframes pulse-ring {
    0%   { transform: scale(.95); opacity: 1;   }
    100% { transform: scale(1.25); opacity: 0; }
}
.brand-text { min-width: 0; }
.brand-name { font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 2px; white-space: nowrap; }
.brand-tagline { font-size: 0.78rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-domain { color: #fbbf24; font-weight: 700; }

.kefu-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(124,58,237,.2));
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, .35);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem; font-weight: 600;
    transition: transform .15s, box-shadow .15s;
}
.kefu-btn:active { transform: scale(.96); }
.kefu-btn:hover  { box-shadow: 0 4px 16px rgba(59, 130, 246, .35); }
.kefu-btn .ico { font-size: 14px; }

/* ─── live winner ticker ─────────────────────────────────────────── */
.ticker-strip {
    margin: 12px 14px 8px;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px 8px 8px;
    background: linear-gradient(90deg, rgba(245,158,11,.15), rgba(236,72,153,.15));
    border: 1px solid rgba(245, 158, 11, .25);
    border-radius: 10px;
    overflow: hidden;
}
.ticker-icon {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(251, 191, 36, .4);
    animation: tick-shake .8s ease-in-out infinite alternate;
}
@keyframes tick-shake { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.ticker-track {
    flex: 1; display: flex; gap: 32px; overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.ticker-track .ticker-row {
    display: flex; gap: 32px; flex-shrink: 0;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}
.ticker-track .ticker-item { font-size: 0.82rem; color: #fde68a; white-space: nowrap; }
.ticker-track .ticker-item strong { color: #fff; font-weight: 700; }
.ticker-track .ticker-item .amt { color: #fbbf24; font-weight: 800; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ─── banner slider ─────────────────────────────────────────── */
.banner-slider {
    margin: 8px 14px 14px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .5);
    aspect-ratio: 23 / 10;
    background: #0f172a;
    position: relative;
}
.banner-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.4,.16,.3,1); will-change: transform; }
.slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; overflow: hidden; display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-bg { position: absolute; inset: 0; pointer-events: none; }
.slide-bg .dec {
    position: absolute; width: 80px; height: 80px;
    opacity: .55;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
    animation: float 6s ease-in-out infinite;
}
.slide-bg .d1 { top: 8%;    right: 6%;  width: 92px; height: 92px; animation-delay: 0s; }
.slide-bg .d2 { bottom: 10%; left: 8%;  width: 76px; height: 76px; transform: rotate(-15deg); animation-delay: 1.5s; }
.slide-bg .d3 { top: 14%;   left: 16%; width: 60px; height: 60px; transform: rotate(20deg); opacity: .35; animation-delay: 3s; }
.slide-bg .d4 { bottom: 18%; right: 22%; width: 58px; height: 58px; opacity: .35; animation-delay: 4.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.slide-text { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #fff; max-width: 65%; z-index: 2; }
.slide-eyebrow {
    display: inline-block;
    background: rgba(0, 0, 0, .4); padding: 3px 10px; border-radius: 999px;
    font-size: .68rem; font-weight: 700; letter-spacing: 1.2px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, .25);
}
.slide-title { font-size: 1.15rem; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.5); margin-bottom: 8px; line-height: 1.3; }
.slide-cta {
    display: inline-block;
    background: rgba(255, 255, 255, .95);
    color: #0f172a;
    font-size: .82rem; font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

.banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.banner-dots .dot { width: 6px; height: 6px; background: rgba(255,255,255,.4); border-radius: 50%; transition: width .3s, background .3s; cursor: pointer; }
.banner-dots .dot.active { width: 20px; background: #fff; border-radius: 6px; }

/* ─── stats row ─────────────────────────────────────────── */
.stats-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin: 0 14px 14px;
}
.stat-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.stat-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(124,58,237,.12));
    pointer-events: none;
}
.stat-value {
    font-size: 1.18rem; font-weight: 800; color: #fff;
    line-height: 1.1; letter-spacing: .3px;
    background: linear-gradient(135deg, #fbbf24, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-suffix { font-size: .8em; color: #fbbf24; }
.stat-label { font-size: .7rem; color: #94a3b8; margin-top: 3px; letter-spacing: .3px; }

/* ─── notice ─────────────────────────────────────────── */
.notice {
    display: flex; align-items: center; gap: 10px;
    margin: 0 14px 12px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    font-size: 0.82rem; color: #cbd5e1;
}
.notice-icon { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f97316, #ef4444); border-radius: 50%; flex-shrink: 0; color: #fff; }
.notice-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-tail { color: #fbbf24; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }

/* ─── search ─────────────────────────────────────────── */
.searchbar {
    margin: 0 14px 12px;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    transition: border-color .15s;
}
.searchbar:focus-within { border-color: rgba(124, 58, 237, .55); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.searchbar .ico { font-size: 18px; color: #94a3b8; }
.searchbar input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-size: .92rem; }
.searchbar input::placeholder { color: #64748b; }

/* ─── tabs ─────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; padding: 0 14px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
    flex-shrink: 0;
    padding: 9px 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    color: #9ca3af;
    font-size: 0.88rem; font-weight: 500;
    transition: all .2s ease;
}
.tab-btn.active {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(124, 58, 237, .4);
}

/* ─── cards ─────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0 14px; }

/* skeleton placeholder while data loads */
.card-skeleton {
    height: 86px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
    background-size: 200% 100%;
    animation: skel-shimmer 1.4s linear infinite;
    border: 1px solid rgba(255, 255, 255, .04);
}
@keyframes skel-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.card {
    position: relative;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    padding: 14px;
    display: flex; align-items: center; gap: 14px;
    overflow: hidden;
    transition: transform .2s, border-color .15s, box-shadow .2s, opacity .5s;
    opacity: 0;
    transform: translateY(8px);
}
.card.in-view { opacity: 1; transform: translateY(0); }
.card::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .55s ease;
    pointer-events: none;
}
.card:hover { border-color: rgba(124, 58, 237, .35); box-shadow: 0 8px 26px rgba(124, 58, 237, .25); }
.card:hover::before { transform: translateX(100%); }
.card:active { transform: scale(.98); }

.card-logo {
    position: relative;
    width: 56px; height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.card-logo-initial {
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 900; font-size: 1.45rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}
.online-dot {
    position: absolute;
    top: 2px; right: 2px;
    width: 12px; height: 12px;
    background: #10b981;
    border: 2px solid #0f0f23;
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .7); }
    70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.card-body { flex: 1; min-width: 0; }
.card-name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.card-name { font-size: 1rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tag {
    flex-shrink: 0;
    font-size: .58rem; font-weight: 800; letter-spacing: .5px;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 2px;
}
.card-tag.hot { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; }
.card-tag.new { background: linear-gradient(135deg, #06b6d4, #3b82f6); color: #fff; }
.card-tag.vip { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #0f172a; }
.card-tag .ico { font-size: 9px; }
.card-tagline { font-size: 0.78rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 0.68rem; color: #64748b; margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.card-meta-dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; flex-shrink: 0; }

.card-cta {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff; font-weight: 700;
    font-size: 0.82rem;
    padding: 9px 18px;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124, 58, 237, .4);
    transition: transform .1s, box-shadow .15s;
}
.card-cta:active { transform: scale(.96); }

@media (max-width: 380px) {
    .card { padding: 12px; gap: 10px; }
    .card-logo { width: 48px; height: 48px; }
    .card-cta { padding: 7px 14px; font-size: 0.75rem; }
    .stats-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .stat-value { font-size: 1.05rem; }
}

/* ─── partner logos strip ─────────────────────────────────────────── */
.partners {
    margin: 24px 14px 16px;
    padding: 14px 12px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    overflow: hidden;
}
.partners-title {
    font-size: 0.7rem; color: #64748b; text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.partners-row {
    display: flex; gap: 18px; overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.partners-row .strip {
    display: flex; gap: 18px; flex-shrink: 0;
    animation: partner-scroll 24s linear infinite;
}
.partner-logo {
    flex-shrink: 0;
    height: 28px;
    padding: 4px 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    font-size: 0.78rem; font-weight: 700;
    color: #cbd5e1;
    display: flex; align-items: center;
    letter-spacing: .5px;
    white-space: nowrap;
}
@keyframes partner-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── footer ─────────────────────────────────────────── */
.page-footer { text-align: center; color: #4b5563; font-size: 0.7rem; padding: 20px 16px 8px; line-height: 1.7; }
.page-footer .copy { color: #6b7280; margin-bottom: 4px; }
.page-footer .legal { color: #475569; }

/* ─── winner toast ─────────────────────────────────────────── */
.winner-toast {
    position: fixed;
    top: 110px; left: 14px;
    background: linear-gradient(135deg, rgba(245,158,11,.95), rgba(220,38,38,.95));
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, .4);
    font-size: 0.82rem;
    transform: translateX(-120%);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    max-width: 240px;
    border: 1px solid rgba(255, 255, 255, .25);
}
.winner-toast.show { transform: translateX(0); }
.winner-toast .ico { margin-right: 6px; vertical-align: -.15em; }
.winner-toast strong { font-weight: 800; }
.winner-toast .amt { color: #fde68a; font-weight: 800; }

/* ─── back-to-top FAB ─────────────────────────────────────────── */
.fab-top {
    position: fixed;
    right: 16px; bottom: 110px;
    width: 44px; height: 44px;
    background: rgba(124, 58, 237, .85);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(124, 58, 237, .45);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(.7);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}
.fab-top.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.fab-top:active { transform: scale(.92); }
.fab-top .ico { font-size: 20px; }

/* ─── promo modal ─────────────────────────────────────────── */
.promo-modal {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 24, .85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.promo-modal.show { display: flex; animation: promo-fade .25s ease; }
@keyframes promo-fade { from { opacity: 0; } to { opacity: 1; } }

.promo-card {
    position: relative;
    width: 100%; max-width: 360px;
    background: linear-gradient(160deg, #1e1b4b 0%, #0f0f23 100%);
    border: 1px solid rgba(251, 191, 36, .35);
    border-radius: 20px;
    padding: 28px 22px 24px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(251, 191, 36, .15);
    animation: promo-pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes promo-pop { from { transform: scale(.8) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.promo-x {
    position: absolute;
    top: 12px; right: 12px;
    width: 30px; height: 30px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    transition: background .15s, color .15s;
}
.promo-x:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.promo-x .ico { font-size: 14px; }

.promo-burst {
    width: 72px; height: 72px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #fbbf24, #ef4444);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 36px;
    box-shadow: 0 10px 30px rgba(239, 68, 68, .55);
    animation: burst-pulse 2s ease-in-out infinite;
}
@keyframes burst-pulse {
    0%, 100% { transform: scale(1);   box-shadow: 0 10px 30px rgba(239, 68, 68, .55), 0 0 0 0 rgba(251, 191, 36, .55); }
    50%      { transform: scale(1.04); box-shadow: 0 10px 30px rgba(239, 68, 68, .55), 0 0 0 16px rgba(251, 191, 36, 0);   }
}

.promo-eyebrow {
    display: inline-block;
    background: rgba(251, 191, 36, .15);
    color: #fbbf24;
    font-size: .68rem; font-weight: 800;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, .3);
    margin-bottom: 12px;
    letter-spacing: 1.2px;
}
.promo-title {
    font-size: 1.5rem; font-weight: 800; color: #fff;
    margin-bottom: 6px; line-height: 1.3;
}
.promo-amt {
    background: linear-gradient(135deg, #fbbf24, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.65em;
}
.promo-sub { font-size: .82rem; color: #94a3b8; margin-bottom: 18px; }
.promo-cta {
    display: block;
    background: linear-gradient(135deg, #fbbf24, #ef4444);
    color: #0f0f23;
    font-weight: 800;
    font-size: 1rem;
    padding: 13px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(239, 68, 68, .45);
    transition: transform .1s;
    text-align: center;
}
.promo-cta:active { transform: scale(.98); }
.promo-foot { font-size: .7rem; color: #64748b; margin-top: 12px; }
.promo-foot strong { color: #fbbf24; font-weight: 700; }

/* ─── bottom nav ─────────────────────────────────────────── */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: space-around; align-items: stretch;
    background: rgba(7, 10, 24, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 4px; padding: 4px 0;
    color: #6b7280; font-size: 0.74rem; font-weight: 500;
    transition: color .15s, transform .1s;
    position: relative;
}
.nav-item:active { transform: scale(.94); }
.nav-item .icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
}
.nav-item .icon .ico { font-size: 18px; }
.nav-item.active { color: #c4b5fd; }
.nav-item.active .icon { background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff; box-shadow: 0 4px 10px rgba(124, 58, 237, .45); }

.nav-item.primary { color: #fbbf24; font-weight: 700; }
.nav-item.primary .icon {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    box-shadow: 0 6px 18px rgba(239, 68, 68, .55), 0 0 0 0 rgba(251, 191, 36, .6);
    transform: scale(1.1);
    animation: cta-pulse 1.8s ease-in-out infinite;
}
@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(239, 68, 68, .55), 0 0 0 0 rgba(251, 191, 36, .6); }
    50%      { box-shadow: 0 6px 18px rgba(239, 68, 68, .55), 0 0 0 8px rgba(251, 191, 36, 0); }
}
.nav-item.primary .lbl { letter-spacing: .5px; }

.nav-item.placeholder       { color: #4b5563; }
.nav-item.placeholder .icon { background: rgba(255, 255, 255, .02); }
.nav-item.placeholder:active { transform: none; }
.badge-soon {
    position: absolute; top: 0; right: 12%;
    font-size: 0.55rem;
    background: rgba(245, 158, 11, .15);
    color: #f59e0b;
    padding: 1px 6px; border-radius: 8px;
    font-weight: 700; letter-spacing: .3px;
    border: 1px solid rgba(245, 158, 11, .25);
}

/* generic toast */
.toast {
    position: fixed; bottom: 110px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(17, 24, 39, .96);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem; font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
    border: 1px solid rgba(255, 255, 255, .1);
    z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.nav-item[data-locked="true"]::after {
    content: ""; position: absolute; top: 2px; right: 22%;
    width: 6px; height: 6px; border-radius: 50%; background: #fbbf24;
    opacity: 0; transition: opacity .15s;
}
body.show-locks .nav-item[data-locked="true"]::after { opacity: 1; }

/* ============================================================
   Theme toggle button (header) + light-theme overrides (v6)
   ============================================================ */
.header-actions { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-toggle {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(236,72,153,.18));
    border: 1px solid rgba(251, 191, 36, .35);
    border-radius: 999px;
    color: #fde68a;
    transition: transform .15s, box-shadow .15s, background .25s, color .25s;
    position: relative;
    overflow: hidden;
}
.theme-toggle:active { transform: scale(.92); }
.theme-toggle:hover  { box-shadow: 0 4px 16px rgba(251, 191, 36, .35); }
.theme-toggle .ico { font-size: 16px; transition: opacity .25s, transform .35s; position: absolute; }
/* dark mode → show MOON (currently dark, click to go light) */
:root[data-theme="dark"] .theme-toggle .ico-sun  { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .theme-toggle .ico-moon { opacity: 1; transform: rotate(0)      scale(1); }
/* light mode → show SUN (currently light, click to go dark) */
:root[data-theme="light"] .theme-toggle .ico-sun  { opacity: 1; transform: rotate(0)     scale(1); }
:root[data-theme="light"] .theme-toggle .ico-moon { opacity: 0; transform: rotate(90deg) scale(.4); }

/* ─── Light theme overrides ─────────────────────────────────────────── */
:root[data-theme="light"] body {
    background:
        radial-gradient(1200px 600px at 0% -10%, rgba(124,58,237,.10), transparent 60%),
        radial-gradient(1000px 500px at 100% 0%, rgba(236,72,153,.08), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    color: #1e293b;
}
:root[data-theme="light"] .preloader { background: radial-gradient(circle at 50% 50%, #eef2ff 0%, #cbd5e1 80%); }
:root[data-theme="light"] .pre-bar { background: rgba(15, 23, 42, .12); }
:root[data-theme="light"] .header { background: rgba(255, 255, 255, .72); border-bottom: 1px solid rgba(15, 23, 42, .08); }
:root[data-theme="light"] .brand-name    { color: #0f172a; }
:root[data-theme="light"] .brand-tagline { color: #64748b; }
:root[data-theme="light"] .brand-domain  { color: #d97706; }
:root[data-theme="light"] .kefu-btn {
    background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(124,58,237,.12));
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, .35);
}
:root[data-theme="light"] .theme-toggle {
    background: linear-gradient(135deg, rgba(15,23,42,.06), rgba(15,23,42,.10));
    border-color: rgba(15, 23, 42, .15);
    color: #d97706;
}
:root[data-theme="light"] .ticker-strip {
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(15, 23, 42, .08);
}
:root[data-theme="light"] .ticker-text { color: #334155; }
:root[data-theme="light"] .ticker-amt  { color: #b45309; }
:root[data-theme="light"] .notice {
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(15, 23, 42, .08);
    color: #334155;
}
:root[data-theme="light"] .notice-tail { color: #b45309; }
:root[data-theme="light"] .searchbar {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(15, 23, 42, .12);
}
:root[data-theme="light"] .searchbar input { color: #0f172a; }
:root[data-theme="light"] .searchbar input::placeholder { color: #94a3b8; }
:root[data-theme="light"] .searchbar .ico { color: #64748b; }
:root[data-theme="light"] .tab-btn {
    background: rgba(255, 255, 255, .82);
    color: #475569;
    border: 1px solid rgba(15, 23, 42, .08);
}
:root[data-theme="light"] .tab-btn.active {
    color: #fff;
    border-color: transparent;
}
:root[data-theme="light"] .stat-card,
:root[data-theme="light"] .promo-card,
:root[data-theme="light"] .card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 23, 42, .08);
    color: #1e293b;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .06);
}
:root[data-theme="light"] .stat-value { color: #0f172a; }
:root[data-theme="light"] .stat-label { color: #64748b; }
:root[data-theme="light"] .card-name    { color: #0f172a; }
:root[data-theme="light"] .card-tagline { color: #64748b; }
:root[data-theme="light"] .card-cta {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}
:root[data-theme="light"] .card-skeleton {
    background: linear-gradient(90deg, rgba(15,23,42,.04) 0%, rgba(15,23,42,.10) 50%, rgba(15,23,42,.04) 100%);
    background-size: 200% 100%;
}
:root[data-theme="light"] .partners {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(15, 23, 42, .08);
}
:root[data-theme="light"] .partners-title { color: #475569; }
:root[data-theme="light"] .partners-row .strip { color: #64748b; }
:root[data-theme="light"] .page-footer       { color: #94a3b8; }
:root[data-theme="light"] .page-footer .copy { color: #64748b; }
:root[data-theme="light"] .page-footer .legal{ color: #94a3b8; }
:root[data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, .92);
    border-top: 1px solid rgba(15, 23, 42, .08);
}
:root[data-theme="light"] .nav-item       { color: #64748b; }
:root[data-theme="light"] .nav-item.active { color: #0f172a; }
:root[data-theme="light"] .fab-top {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}
:root[data-theme="light"] .promo-modal { background: rgba(15, 23, 42, .55); }
:root[data-theme="light"] .promo-x     { color: #64748b; }
:root[data-theme="light"] .promo-eyebrow{ color: #d97706; }
:root[data-theme="light"] .promo-title { color: #0f172a; }
:root[data-theme="light"] .promo-sub   { color: #64748b; }
:root[data-theme="light"] .promo-foot  { color: #94a3b8; }
:root[data-theme="light"] .winner-toast { background: rgba(15, 23, 42, .92); color: #fff; }
:root[data-theme="light"] .toast { background: #1e293b; color: #fff; border-color: rgba(15, 23, 42, .2); }
/* keep banner slider gradients (already vivid) — light just lifts surface around it */
