/* SchedinaAI — Betting x AI UI (dark sportsbook + tech) */
:root{
  --bg0:#04060d; --bg1:#050a16; --bg2:#070d1e;
  --panel:rgba(255,255,255,.06); --panel2:rgba(255,255,255,.04);
  --stroke:rgba(255,255,255,.14); --stroke2:rgba(255,255,255,.10);
  --text:rgba(255,255,255,.92); --muted:rgba(255,255,255,.68); --muted2:rgba(255,255,255,.48);
  --accent:#21ff9a;   /* betting neon */
  --accent2:#4aa3ff;  /* tech blue */
  --accent3:#b04cff;  /* AI purple */
  --warn:#ffcf5a; --bad:#ff4d7d;
  --shadow: 0 18px 70px rgba(0,0,0,.58);
  --r:18px; --r2:26px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(74,163,255,.18), transparent 62%),
    radial-gradient(900px 600px at 80% 18%, rgba(176,76,255,.14), transparent 64%),
    radial-gradient(900px 600px at 50% 110%, rgba(33,255,154,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg2));
  overflow-x:hidden;
}

a{color:inherit}
button, input{font-family:var(--font)}

@keyframes pulseGlow{0%,100%{opacity:.65}50%{opacity:1}}
@keyframes floatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* Background layers */
.bg-grid{
  position:fixed; inset:-2px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, transparent 1px, transparent 52px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, transparent 1px, transparent 52px);
  opacity:.08;
  pointer-events:none;
}
.bg-spotlights{
  position:fixed; inset:-80px;
  background:
    radial-gradient(850px 520px at 25% 0%, rgba(74,163,255,.18), transparent 60%),
    radial-gradient(900px 520px at 80% 0%, rgba(33,255,154,.14), transparent 62%),
    radial-gradient(1000px 700px at 50% 120%, rgba(176,76,255,.10), transparent 64%);
  filter: blur(18px);
  opacity:.85;
  pointer-events:none;
}
.bg-noise{
  position:fixed; inset:-40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity:.08;
  mix-blend-mode:overlay;
  pointer-events:none;
}

/* Layout */
.container{width:min(1100px, 92vw); margin:0 auto; padding: 18px 0 64px}
.section{margin-top:36px}

.topbar{
  width:min(1100px, 92vw);
  margin:14px auto 0;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding: 12px 14px;
  border:1px solid var(--stroke2);
  border-radius: 20px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.brand{display:flex; align-items:center; gap:12px; min-width:0}
.brand-logo{width:42px; height:42px; border-radius:14px; padding:8px; border:1px solid var(--stroke2); background: rgba(255,255,255,.05)}
.brand-text{min-width:0}
.brand-name{font-weight:900; letter-spacing:.2px; line-height:1.1}
.brand-tag{font-size:12px; color:var(--muted2); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.status-pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(33,255,154,.28);
  background: rgba(33,255,154,.08);
  color: rgba(255,255,255,.85);
  font-size:12px;
}
.live-dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(33,255,154,.45);
  animation: pulseGlow 1.6s ease-in-out infinite;
}

h1{font-size: clamp(32px, 5vw, 56px); line-height:1.03; margin: 10px 0 12px}
h2{font-size:24px; margin:0 0 14px}
.lead{color:var(--muted); font-size:16px; line-height:1.45; max-width: 560px; margin: 0 auto}
.grad{
  background: linear-gradient(90deg, var(--accent2), var(--accent3), var(--accent));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* Hero */
.hero{display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; margin-top:18px}
.hero-min{min-height: calc(100vh - 170px); justify-content:center}
.hero-card{
  width:min(920px, 100%);
  padding: 26px 18px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  position:relative;
  overflow:hidden;
}
.hero-card::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(700px 240px at 15% 0%, rgba(74,163,255,.18), transparent 60%),
    radial-gradient(560px 240px at 85% 0%, rgba(33,255,154,.14), transparent 60%);
  pointer-events:none;
}
.hero-badges{display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; position:relative}
.badge{
  font-size:11px;
  letter-spacing:.14em;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.80);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}
.badge-ai{
  border-color: rgba(176,76,255,.40);
  background: rgba(176,76,255,.14);
}
.hero-cta{display:flex; gap:12px; margin-top:16px; flex-wrap:wrap; justify-content:center; position:relative}
.hero-metrics{display:flex; gap:12px; margin-top:16px; flex-wrap:wrap; justify-content:center; width:100%; max-width:720px; position:relative}
.metric{
  flex: 1 1 160px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  padding:12px 14px;
  border-radius:18px;
}
.metric-k{font-weight:900; font-size:18px}
.metric-t{color:var(--muted2); font-size:12px; margin-top:2px}

/* Cards / glass */
.glass{
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, var(--panel), rgba(0,0,0,.12));
  box-shadow: var(--shadow);
  border-radius: var(--r2);
  backdrop-filter: blur(12px);
}
.neon-border{position:relative}
.neon-border::after{
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  padding:1px;
  background: linear-gradient(90deg, rgba(74,163,255,.55), rgba(176,76,255,.50), rgba(33,255,154,.55));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity:.55;
  pointer-events:none;
}
.card{padding:16px}
.card-head{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px}
.card-title{font-weight:800}
.chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  color: var(--muted);
  background: rgba(0,0,0,.20);
}

/* Buttons */
.primary-btn,.secondary-btn,.ghost-btn{
  border-radius: 16px;
  padding: 12px 14px;
  border:1px solid rgba(255,255,255,.14);
  font-weight:800;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, filter .12s ease;
}
.primary-btn:disabled,.secondary-btn:disabled,.ghost-btn:disabled{opacity:.55; cursor:not-allowed; transform:none}
.primary-btn{
  color: #02110a;
  background: linear-gradient(90deg, var(--accent), rgba(33,255,154,.65));
  border-color: rgba(33,255,154,.45);
  box-shadow: 0 14px 40px rgba(33,255,154,.14);
}
.secondary-btn{
  color: var(--text);
  background: rgba(0,0,0,.22);
}
.ghost-btn{
  color: var(--text);
  background: transparent;
}
.primary-btn:hover,.secondary-btn:hover,.ghost-btn:hover{transform: translateY(-1px); filter: brightness(1.05)}
.primary-btn:active,.secondary-btn:active,.ghost-btn:active{transform: translateY(0px) scale(.99)}
.primary-btn-xl{padding: 16px 22px; font-size: 16px; border-radius: 18px}

/* Wizard */
.wizard-shell{display:grid; grid-template-columns: .85fr 1.15fr; gap:0; overflow:hidden}
.wizard-left{padding:18px; border-right:1px solid rgba(255,255,255,.10)}
.wizard-right{padding:18px}
.wizard-title{font-weight:900; font-size:18px}
.wizard-sub{color:var(--muted); font-size:13px; margin-top:6px}

.stepper{display:flex; gap:8px; margin-top:14px; flex-wrap:wrap}
.step{
  width:28px; height:28px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: var(--muted);
  font-weight:900;
  font-size:12px;
}
.step.active{
  color:#06150e;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-color: rgba(74,163,255,.55);
  box-shadow: 0 0 0 3px rgba(74,163,255,.16);
}
.step.done{
  background: rgba(33,255,154,.14);
  border-color: rgba(33,255,154,.35);
  color: rgba(33,255,154,.95);
}

.progress{height:10px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10); border-radius:999px; overflow:hidden; margin-top:12px}
.progress-bar{height:100%; width:0%; background: linear-gradient(90deg, var(--accent2), var(--accent3), var(--accent))}

.hint{display:flex; align-items:center; gap:10px; margin-top:14px; color: var(--muted); font-size:13px}
.hint-badge{
  font-size:11px;
  letter-spacing:.12em;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(176,76,255,.35);
  background: rgba(176,76,255,.12);
  color: rgba(255,255,255,.78);
}

.wizard-form{min-height: 250px}
.field{margin-bottom:14px}
.label{display:flex; justify-content:space-between; gap:10px; margin-bottom:8px; color:var(--muted); font-size:13px}
.control{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: var(--text);
  border-radius: 16px;
  padding: 12px;
  width:100%;
  outline:none;
}
.control:focus{border-color: rgba(74,163,255,.55); box-shadow: 0 0 0 3px rgba(74,163,255,.14)}

.choice-row{display:flex; gap:10px; flex-wrap:wrap}
.choice{
  flex: 1 1 180px;
  padding:14px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.choice:hover{transform: translateY(-1px)}
.choice.selected{border-color: rgba(33,255,154,.45); background: rgba(33,255,154,.10)}
.choice-title{font-weight:900}
.choice-sub{color:var(--muted2); font-size:12px; margin-top:6px; line-height:1.35}

.pills{display:flex; gap:10px; flex-wrap:wrap}
.pill-check{
  display:flex; align-items:center; gap:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
}
.pill-check input{accent-color: var(--accent)}
.pill-check span{color:var(--muted); font-size:13px}

.wizard-actions{display:flex; justify-content:space-between; gap:12px; margin-top:10px}

/* Step 2: +/- selector (keep id for JS) */
#eventsStepper{
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:nowrap;
  padding:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  border-radius: 22px;
}
#eventsStepper:focus{outline:none; box-shadow: 0 0 0 3px rgba(74,163,255,.16)}
#eventsStepper .stepper-btn{
  width:52px; height:52px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: var(--text);
  font-weight:900;
  font-size:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .08s ease, filter .12s ease, border-color .12s ease;
}
#eventsStepper .stepper-btn:hover{transform: translateY(-1px); filter:brightness(1.06)}
#eventsStepper .stepper-btn:active{transform: translateY(0px) scale(.98)}
#eventsStepper .stepper-btn:disabled{opacity:.45; cursor:not-allowed; transform:none}
#eventsStepper .stepper-value{min-width:140px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px}
#eventsStepper #eventsRangeVal{font-size:34px; font-weight:900; letter-spacing:.5px}
#eventsStepper .stepper-hint{font-size:12px; color: var(--muted)}

/* Results */
.results-head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px}
.results-sub{color:var(--muted)}
.results-grid{display:grid; grid-template-columns: 1.15fr .85fr; gap:14px; margin-top:12px}
.download-row{display:flex; gap:12px; margin-top:12px; flex-wrap:wrap}

.slip{
  border:1px dashed rgba(255,255,255,.22);
  border-radius: 18px;
  background: rgba(0,0,0,.28);
  padding:12px;
}
.slip.large{padding:14px}
.slip-row{display:flex; align-items:center; gap:10px}
.slip-logo{width:34px; height:34px; border-radius:12px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05); padding:7px}
.slip-logo.small{width:28px;height:28px;padding:6px;border-radius:10px}
.slip-name{font-weight:900}
.slip-sub{font-size:12px;color:var(--muted2)}
.slip-divider{height:1px;background:rgba(255,255,255,.10); margin:10px 0}
.slip-body{display:flex; flex-direction:column; gap:8px}
.event{
  display:flex; justify-content:space-between; gap:14px;
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
}
.event-left{min-width:0}
.event-match{font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.event-pick{font-size:12px;color:var(--muted2); margin-top:3px}
.event-odd{font-weight:900}
.slip-footer{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap}
.kv{display:flex; flex-direction:column; gap:3px}
.k{font-size:12px;color:var(--muted2)}
.v{font-weight:900}

.summary{display:flex; flex-direction:column; gap:12px}
.summary-row{
  display:flex; justify-content:space-between; gap:10px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
}
.summary-row .s-k{color:var(--muted2); font-size:12px}
.summary-row .s-v{font-weight:900}

.tiny-note{margin-top:10px; color:var(--muted2); font-size:12px; line-height:1.35}

.footer{margin-top:40px; padding:18px 4px; display:flex; justify-content:space-between; align-items:center; color:var(--muted2); border-top:1px solid rgba(255,255,255,.10)}

@media (max-width: 950px){
  .hero-min{min-height:auto}
  .wizard-shell{grid-template-columns:1fr}
  .wizard-left{border-right:none;border-bottom:1px solid rgba(255,255,255,.10)}
  .results-grid{grid-template-columns:1fr}
}
