/*
 * 30bet Casino - Bet
 * Premium neon-noir cashback-casino design system
 * Fonts: Sora (display) + Manrope (body)
 * Single fixed dark theme - no switcher
 */

:root {
    --background: #0b0d12;
    --foreground: #f5f4ef;
    --card: #141824;
    --card-foreground: #f5f4ef;
    --popover: #141824;
    --popover-foreground: #f5f4ef;
    --primary: #2f8bff;
    --primary-foreground: #04080f;
    --secondary: #1a2033;
    --secondary-foreground: #f5f4ef;
    --muted: #232a3d;
    --muted-foreground: #aebbd0;
    --accent: #ff7a1a;
    --accent-foreground: #1a0d02;
    --gold: #f5c451;
    --destructive: #dd0d30;
    --destructive-foreground: #fef2f2;
    --border: #33405c;
    --input: #1a2033;
    --ring: #2f8bff;

    /* Neon gradient signature */
    --neon-gradient: linear-gradient(90deg, #2f8bff 0%, #ff7a1a 55%, #f5c451 100%);
    --neon-line: linear-gradient(90deg, transparent 0%, #2f8bff 25%, #ff7a1a 55%, #f5c451 80%, transparent 100%);

    /* Spacing (8px base) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 56px;
    --space-2xl: 96px;

    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1200px;
    --header-h: 68px;

    --font-display: "Sora", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;
}

/* Single fixed theme: .dark identical to :root */
.dark {
    --background: #0b0d12;
    --foreground: #f5f4ef;
    --card: #141824;
    --primary: #2f8bff;
    --accent: #ff7a1a;
    --muted-foreground: #aebbd0;
    --border: #33405c;
}

/* ============================================
   OVERFLOW PREVENTION
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

img, video, iframe, embed, object, svg { max-width: 100%; height: auto; }
[class*="grid"] > *, [class*="flex"] > * { min-width: 0; }
pre, code, .code-block, [class*="code"] { max-width: 100%; overflow-x: auto; }
pre code, .code-block code { display: block; min-width: 0; }
.table-wrapper { max-width: 100%; overflow-x: auto; }
p, li, td, th { overflow-wrap: break-word; }
input, textarea, select { max-width: 100%; }
section { overflow: clip; }

/* ============================================
   BASE
   ============================================ */
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-sm);
}

h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }

p { margin: 0 0 var(--space-md); }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

a[href] { word-break: break-word; }

ul, ol { padding-left: 1.25em; }

@media (min-width: 1024px) {
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 1100;
    background: var(--primary); color: var(--primary-foreground);
    padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
    transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-sm); }

.section { padding: var(--space-xl) 0; }
@media (min-width: 1024px) { .section { padding: var(--space-2xl) 0; } }

/* Thin neon light-line divider between sections */
.neon-line {
    height: 1px; border: 0; margin: 0;
    background: var(--neon-line);
    opacity: .55;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-xs);
}

.lead { font-size: 19px; color: var(--foreground); }

.text-gradient {
    background: var(--neon-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 24px;
    font-family: var(--font-display); font-size: 16px; font-weight: 700;
    border-radius: var(--radius-sm); border: 1px solid transparent;
    cursor: pointer; text-align: center; text-decoration: none;
    transition: transform .25s ease-out, box-shadow .25s ease-out, filter .25s ease-out;
}
.btn:hover { text-decoration: none; }

.btn--primary {
    position: relative;
    background: var(--neon-gradient);
    color: #06111f;
    box-shadow: 0 6px 24px rgba(47,139,255,.28);
}
.btn--primary:hover {
    filter: brightness(1.08) saturate(1.1);
    box-shadow: 0 8px 34px rgba(255,122,26,.42);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent; color: var(--foreground);
    border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }

.btn--lg { min-height: 54px; padding: 16px 34px; font-size: 18px; }

.btn--bet {
    background: var(--secondary); color: var(--foreground);
    border-color: var(--gold);
}
.btn--bet:hover { box-shadow: 0 0 18px rgba(245,196,81,.4); transform: translateY(-1px); }

/* ============================================
   HEADER + NAV
   ============================================ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(11,13,18,.92);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    max-width: var(--maxw); margin: 0 auto;
    min-height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-sm); padding: 0 var(--space-sm);
}

.site-brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 800; font-size: 20px;
    color: var(--foreground); text-decoration: none; flex-shrink: 0;
}
.site-brand:hover { text-decoration: none; }
.site-brand__mark {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--neon-gradient); color: #06111f;
    font-weight: 800; font-size: 17px;
    box-shadow: 0 0 14px rgba(47,139,255,.35);
}
.site-brand__text { letter-spacing: -0.02em; }

.primary-nav__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 4px;
}
.primary-nav__link {
    display: flex; align-items: center; min-height: 48px;
    padding: 0 12px; border-radius: var(--radius-sm);
    color: var(--foreground); font-family: var(--font-display); font-weight: 600;
    text-decoration: none;
}
.primary-nav__link:hover { color: var(--primary); text-decoration: none; background: var(--secondary); }

.primary-nav__actions { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-sm); }

.nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 0 10px;
    background: transparent; border: 1px solid var(--border); border-radius: 10px;
    cursor: pointer; z-index: 1001;
}
.nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--foreground); border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    z-index: 999;
    display: none;
    flex-direction: column;
    padding: var(--space-md) var(--space-sm) var(--space-xl);
    background: var(--background);
    border-top: 1px solid var(--border);
    overflow-y: auto;
}
.primary-nav.is-open { display: flex; }

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
    .primary-nav {
        position: static; display: flex; flex-direction: row; align-items: center;
        gap: var(--space-md); padding: 0; background: transparent; border: 0; overflow: visible;
    }
    .primary-nav__list { flex-direction: row; gap: 4px; }
    .primary-nav__actions { flex-direction: row; margin-top: 0; }
    .primary-nav__actions .btn { min-height: 42px; padding: 8px 18px; font-size: 15px; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: var(--space-2xl) 0;
    overflow: clip;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(11,13,18,.72) 0%, rgba(11,13,18,.86) 60%, rgba(11,13,18,.96) 100%);
}
.hero__inner {
    position: relative; z-index: 2;
    max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-sm);
}
.hero__content { max-width: 720px; }
.hero h1 { margin-bottom: var(--space-md); }
.hero__text { color: var(--foreground); font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.hero__badges {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-lg);
    font-size: 14px; color: var(--muted-foreground);
}
.hero__badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
    background: rgba(20,24,36,.7);
}

/* ============================================
   INFO CARD GRID
   ============================================ */
.card-grid {
    display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-sm);
}
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) {
    .card-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .card-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

.info-card {
    min-width: 0;
    display: flex; flex-direction: column; gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    transition: transform .25s ease-out, box-shadow .25s ease-out, border-color .25s ease-out;
}
.info-card:hover {
    transform: scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 0 24px rgba(47,139,255,.25);
}
.info-card__media {
    border-radius: var(--radius-sm); overflow: hidden;
    background: var(--secondary);
    aspect-ratio: 4 / 3;
}
.info-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-card__media--contain { background: var(--secondary); aspect-ratio: 4 / 3; }
.info-card__media--contain img { object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
.info-card__icon {
    display: inline-grid; place-items: center; width: 52px; height: 52px;
    border-radius: 12px; background: var(--secondary); border: 1px solid var(--border);
    font-size: 26px;
}
.info-card__title { margin: 0; font-size: 20px; }
.info-card__text { color: var(--foreground); margin: 0; }
.info-card__link {
    margin-top: auto; color: var(--primary); font-weight: 700;
    font-family: var(--font-display); font-size: 15px;
}
.info-card__link::after { content: " →"; }

/* ============================================
   STAT HIGHLIGHT
   ============================================ */
.stat-highlight { text-align: center; }
.stat-highlight__title { margin-bottom: var(--space-lg); }
.stat-highlight__grid {
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-sm);
}
@media (min-width: 768px) { .stat-highlight__grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }

.stat-chip {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: var(--space-md) var(--space-sm);
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.stat-chip__number {
    font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1;
    background: var(--neon-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 1024px) { .stat-chip__number { font-size: 48px; } }
.stat-chip__label { color: var(--muted-foreground); font-size: 14px; font-weight: 600; }

/* ============================================
   CASHBACK CALLOUT / summary / highlight boxes
   ============================================ */
.cashback-callout {
    display: flex; gap: 0;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.cashback-callout__bar { width: 6px; flex-shrink: 0; background: var(--gold); }
.cashback-callout__body { padding: 20px; }
@media (min-width: 1024px) { .cashback-callout__body { padding: var(--space-lg); } }
.cashback-callout__label {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
    margin-bottom: 10px;
}
.cashback-callout__icon {
    display: inline-grid; place-items: center; width: 24px; height: 24px;
    border-radius: 7px; background: rgba(245,196,81,.15); color: var(--gold);
    font-family: var(--font-display); font-weight: 800; font-size: 14px;
}
.cashback-callout__title {
    font-family: var(--font-display); font-weight: 700; font-size: 20px;
    margin: 0 0 8px;
}
.cashback-callout__text { color: var(--foreground); margin: 0; }

/* TL;DR / summary box (reusable) */
.summary-box {
    background: var(--secondary); border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius); padding: var(--space-md);
    margin-bottom: var(--space-lg);
}
.summary-box__label {
    display: block; font-family: var(--font-display); font-weight: 700;
    color: var(--primary); font-size: 13px; letter-spacing: .1em;
    text-transform: uppercase; margin-bottom: 8px;
}

/* Pull quote */
.pull-quote {
    border-left: 4px solid var(--gold); padding: var(--space-sm) var(--space-md);
    margin: var(--space-lg) 0; font-family: var(--font-display); font-size: 22px;
    font-weight: 600; line-height: 1.35;
}
.pull-quote cite { display: block; margin-top: 10px; font-size: 15px; font-style: normal; color: var(--muted-foreground); }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq__title { margin-bottom: var(--space-lg); text-align: center; }
.faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq__item {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.faq__question {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
    min-height: 44px; padding: var(--space-sm) var(--space-md);
    cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 600; font-size: 17px;
    color: var(--foreground);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__chevron {
    flex-shrink: 0; width: 12px; height: 12px;
    border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
    transform: rotate(45deg); transition: transform .25s ease;
}
.faq__item[open] .faq__chevron { transform: rotate(-135deg); }
.faq__answer { padding: 0 var(--space-md) var(--space-md); color: var(--foreground); }
.faq__answer p { margin: 0; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    position: relative;
    background: #090b10;
    padding: var(--space-xl) var(--space-sm);
    text-align: center;
}
.cta-banner::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--neon-line); opacity: .8;
}
@media (min-width: 1024px) { .cta-banner { padding: var(--space-2xl) var(--space-sm); } }
.cta-banner__inner { max-width: 720px; margin: 0 auto; }
.cta-banner__title { margin-bottom: var(--space-sm); }
.cta-banner__text { color: var(--foreground); margin-bottom: var(--space-lg); font-size: 18px; }
.cta-banner__micro { margin-top: var(--space-sm); font-size: 14px; color: var(--muted-foreground); }

/* ============================================
   TRUST BADGES / payment marks
   ============================================ */
.trust-row {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    margin-top: var(--space-md);
}
.trust-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--card); color: var(--muted-foreground); font-size: 14px; font-weight: 600;
}

.age-badge {
    display: inline-grid; place-items: center; width: 52px; height: 52px;
    border-radius: 12px; border: 2px solid var(--accent); color: var(--accent);
    font-family: var(--font-display); font-weight: 800; font-size: 18px;
}

/* ============================================
   CONTENT PROSE
   ============================================ */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-top: var(--space-xl); }
.prose h3 { margin-top: var(--space-lg); }
.prose ul, .prose ol { margin: 0 0 var(--space-md); }
.prose li { margin-bottom: 8px; }

.steps {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: var(--space-sm); grid-template-columns: minmax(0,1fr);
    counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.steps li {
    position: relative; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: var(--space-md); padding-top: 46px;
}
.steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: var(--space-md); left: var(--space-md);
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 9px; background: var(--neon-gradient); color: #06111f;
    font-family: var(--font-display); font-weight: 800;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #090b10; border-top: 1px solid var(--border);
    margin-top: var(--space-2xl);
}
.site-footer__inner {
    max-width: var(--maxw); margin: 0 auto; padding: var(--space-xl) var(--space-sm);
    display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-lg);
}
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.site-brand--footer { margin-bottom: var(--space-sm); }
.site-footer__tagline { color: var(--foreground); font-size: 15px; margin-bottom: var(--space-sm); }
.site-footer__license { color: var(--muted-foreground); font-size: 14px; }
.site-footer__heading { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: var(--space-sm); }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { color: var(--muted-foreground); }
.site-footer__links a:hover { color: var(--primary); }
.site-footer__note { color: var(--muted-foreground); font-size: 14px; margin-bottom: var(--space-sm); }

.payment-marks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.payment-mark {
    padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--card); color: var(--muted-foreground); font-size: 13px; font-weight: 600;
}

.site-footer__bottom {
    border-top: 1px solid var(--border);
    padding: var(--space-md) var(--space-sm); text-align: center;
    color: var(--muted-foreground); font-size: 14px;
}
.site-footer__bottom p { margin: 0; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: none; }

/* staggered cards */
.card-grid .info-card { transition-delay: 0s; }
.card-grid .info-card:nth-child(2) { transition-delay: .08s; }
.card-grid .info-card:nth-child(3) { transition-delay: .16s; }
.card-grid .info-card:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .animate-on-scroll { opacity: 1; transform: none; }
}
