:root {
  /* Палитра баннеров: ночной стадион, чёрное стекло, оранжевый неон */
  --navy-0: #060607;
  --navy-1: #111214;
  --navy-2: #18191c;
  --line: rgba(255, 255, 255, 0.07);
  --orange: #ff7a1a;
  --orange-2: #ffa24a;
  --red: #ff3b2f;
  --glow: 0 0 0 1px rgba(255, 140, 50, 0.85), 0 0 18px rgba(255, 110, 20, 0.45);
  --display: "Montserrat", var(--font);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.45);
  --blue: var(--orange);
  --blue-2: var(--orange-2);
  --lime: #ffc46b;
  --pos: #9be7b4;
  --neg: #ffb1a8;
  --warn: #ffd98a;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  /* Как на баннерах: прожекторы по углам, красные огни трибун, ночное поле */
  background:
    radial-gradient(38% 160px at 8% 0%, rgba(255, 255, 255, 0.30), transparent 70%) no-repeat,
    radial-gradient(38% 160px at 92% 0%, rgba(255, 255, 255, 0.30), transparent 70%) no-repeat,
    radial-gradient(80% 140px at 50% 230px, rgba(255, 59, 47, 0.16), transparent 70%) no-repeat,
    linear-gradient(180deg, #17181c 0px, #0b0b0d 320px, var(--navy-0) 560px) no-repeat,
    var(--navy-0);
}
button { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px calc(24px + var(--safe-b));
}

/* ---------- Шапка ---------- */
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.hello { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--orange-2), var(--orange)); color: #160800;
  font-weight: 600; font-size: 17px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hello-text { font-size: 20px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
}
.glass {
  background: rgba(20, 20, 22, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 50, 0.7), 0 0 14px rgba(255, 110, 20, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- Hero ---------- */
.hero { margin-bottom: 26px; }
.hero-label { font-size: 16px; color: rgba(255, 255, 255, 0.85); }
.hero-value { font-size: 46px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hero-value .dim { color: rgba(255, 255, 255, 0.45); font-weight: 400; margin-left: 2px; }

/* ---------- Тёмная панель (как Quick Actions) ---------- */
.sheet {
  background: linear-gradient(180deg, #1c1d21, var(--navy-2));
  border-radius: var(--r-xl);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 140, 50, 0.22);
}
.sheet-title { font-family: var(--display); font-size: 18px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 14px; }

.field textarea {
  width: 100%; resize: none;
  background: var(--navy-1);
  border: 0; border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text); font: inherit; font-size: 16px; line-height: 1.4;
  padding: 14px 15px; outline: none;
}
.field textarea:focus { box-shadow: inset 0 0 0 1px rgba(255, 140, 50, 0.8); }
.field textarea::placeholder { color: var(--text-3); }

.attach { display: flex; align-items: center; gap: 12px; margin: 14px 0 16px; }
.attach-btn { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; min-width: 0; }
.attach-text { display: flex; flex-direction: column; font-size: 15px; }
.attach-text small { color: var(--text-3); font-size: 12px; margin-top: 1px; }
.ring {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--orange-2), var(--orange)); color: #fff;
  box-shadow: 0 0 16px rgba(255, 110, 20, 0.45);
}
.ring.big { width: 60px; height: 60px; margin: 0 auto 14px; }
.thumb { position: relative; }
.thumb img { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; display: block; box-shadow: inset 0 0 0 1px var(--line); }
.thumb button {
  position: absolute; top: -7px; right: -7px;
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: #0d1538; cursor: pointer;
}
.thumb button svg { width: 12px; height: 12px; stroke-width: 2; }

.btn {
  width: 100%; border: 0; border-radius: 16px;
  padding: 15px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.45; }
.btn.primary { background: linear-gradient(180deg, var(--orange-2), var(--orange) 55%, #e2560a); color: #fff; font-weight: 700; }
.btn.light {
  background: linear-gradient(180deg, #ffb25e, var(--orange) 50%, #d94f06);
  color: #fff; font-family: var(--display); font-weight: 800; font-style: italic; letter-spacing: 0.2px;
  text-shadow: 0 1px 6px rgba(80, 20, 0, 0.45);
  box-shadow: inset 0 0 0 1.5px rgba(255, 210, 150, 0.7), 0 0 22px rgba(255, 110, 20, 0.55);
}
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.demo-note { margin-top: 10px; font-size: 12px; color: var(--warn); text-align: center; }

/* ---------- Карта результата (как банковская карта на 2-м экране) ---------- */
.pass {
  position: relative; overflow: hidden;
  border-radius: 26px;
  padding: 20px 20px 18px;
  min-height: 214px;
  display: flex; flex-direction: column;
  color: #fff;
  margin-bottom: 22px;
  background:
    radial-gradient(70% 45% at 50% 100%, rgba(255, 110, 20, 0.28), transparent 70%),
    radial-gradient(50% 40% at 85% 0%, rgba(255, 255, 255, 0.10), transparent 70%),
    linear-gradient(180deg, #222327 0%, #121315 60%, #0c0c0e 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 140, 50, 0.9), inset 0 0 22px rgba(255, 110, 20, 0.25), 0 0 26px rgba(255, 100, 20, 0.35);
  animation: rise 0.3s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pass-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pass-tag { font-size: 13px; font-weight: 600; color: var(--orange-2); }
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.bars i { width: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); }
.bars i:nth-child(1) { height: 6px; } .bars i:nth-child(2) { height: 9px; } .bars i:nth-child(3) { height: 12px; }
.bars i:nth-child(4) { height: 15px; } .bars i:nth-child(5) { height: 18px; }
.bars i.on { background: var(--orange); box-shadow: 0 0 6px rgba(255, 110, 20, 0.7); }
.pass-pick {
  margin-top: auto;
  font-family: var(--display); font-size: 25px; font-weight: 800; font-style: italic; letter-spacing: -0.2px; line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.pass-odds { font-family: var(--mono); font-size: 15px; letter-spacing: 1.5px; margin-top: 8px; opacity: 0.95; }
.pass-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; gap: 12px; }
.pass-match { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; opacity: 0.95; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-big { font-family: var(--display); font-size: 28px; font-weight: 800; font-style: italic; letter-spacing: -0.5px; line-height: 1; color: var(--orange-2); text-shadow: 0 0 14px rgba(255, 110, 20, 0.55); }
.pass.skeleton { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

/* ---------- Круглые действия (как Card Control) ---------- */
.actions-title { font-size: 19px; margin: 0 0 14px; }
.actions { display: flex; justify-content: center; margin-bottom: 22px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; width: 25%; }
.act .ring { width: 56px; height: 56px; }
.act span:last-child { font-size: 12px; color: var(--text-2); text-align: center; }

/* ---------- Плашки со статистикой (как This Month Uses) ---------- */
.stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat {
  background: var(--navy-2);
  border-radius: var(--r-lg);
  padding: 15px 14px 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.stat-title { font-size: 15px; margin-bottom: 18px; }
.stat-value { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-value .dim { color: var(--text-3); font-weight: 400; }
.stat-foot { display: flex; justify-content: center; margin: 14px 0 8px; }
.pill { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--blue); }
.bar { position: relative; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--blue); border-radius: 4px; }

/* ---------- Строки (как Last Transactions / Card Statement) ---------- */
.rows { background: linear-gradient(180deg, #1c1d21, var(--navy-2)); border-radius: var(--r-xl); padding: 6px 16px; margin-bottom: 14px; box-shadow: inset 0 0 0 1px rgba(255, 140, 50, 0.22); }
.rows-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 6px; font-family: var(--display); font-size: 18px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.3px; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows-head + .line { border-top: 0; }
.tilebox {
  width: 46px; height: 46px; flex: none;
  border-radius: 14px; display: grid; place-items: center;
  background: var(--navy-1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--text-2);
}
.line-main { flex: 1; min-width: 0; }
.line-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-end { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-end.link { color: var(--blue-2); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.form { display: inline-flex; gap: 3px; }
.form b { width: 7px; height: 7px; border-radius: 50%; }
.form .W { background: var(--pos); } .form .D { background: rgba(255, 255, 255, 0.35); } .form .L { background: var(--neg); }

.note { font-size: 14px; color: var(--text-2); line-height: 1.5; padding: 4px 0 12px; }
.note p { margin: 0 0 8px; }
.note b { color: #fff; font-weight: 500; }
.warn-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--warn); line-height: 1.45; background: rgba(255, 217, 138, 0.08); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 14px; }

.fine { font-size: 12px; color: var(--text-3); text-align: center; margin: 6px 0 16px; }
.error { color: var(--neg); font-size: 14px; text-align: center; padding: 4px 0; }

/* skeleton */
.sk-row { display: flex; justify-content: space-between; padding: 0 4px; }
.sk { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-2); animation: pulse 1.2s ease-in-out infinite; }

/* ---------- История / инфо ---------- */
.page-title { font-family: var(--display); font-size: 28px; font-weight: 800; font-style: italic; text-transform: uppercase; margin: 0 0 18px; letter-spacing: 0; }
.kv { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; padding-top: 2px; }
.kv .k { font-size: 15px; }
.kv .v { font-size: 13px; color: var(--text-3); }
.locked { text-align: center; padding: 30px 20px 20px; margin-top: 30px; }
.locked p { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0 0 20px; }

/* ---------- Экраны ---------- */
.screen { display: none; }
.screen.active { display: block; }
.link-btn { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; font-size: 16px; cursor: pointer; padding: 0; margin: -6px 0 14px -6px; }
.link-btn svg { width: 22px; height: 22px; }
body.locked-mode #infoBtn { display: none; }

[hidden] { display: none !important; }

#results { scroll-margin-top: 12px; }

/* ---------- Подсказка про лимит после депозита ---------- */
.tier {
  margin-top: 12px; border: 0; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; color: #fff;
}

/* ---------- Матчи дня ---------- */
.tag { font-size: 12px; color: var(--orange-2); background: rgba(255, 122, 26, 0.12); padding: 3px 9px; border-radius: 999px; }
button.line { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; color: inherit; }
.line-main { display: flex; flex-direction: column; }
.today-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.today-end .bars { height: 12px; }
.today-end .bars i { width: 3px; }
.today-end .bars i:nth-child(1) { height: 4px; } .today-end .bars i:nth-child(2) { height: 6px; }
.today-end .bars i:nth-child(3) { height: 8px; } .today-end .bars i:nth-child(4) { height: 10px; }
.today-end .bars i:nth-child(5) { height: 12px; }
.today-end .bars i.on { background: var(--orange); }
.line-end.muted { color: var(--text-3); font-weight: 500; font-size: 14px; }

/* ---------- Приглашение ---------- */
button.rows.invite { width: 100%; border: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; display: block; }
.invite .line { border-top: 0; }

/* ---------- Экспресс ---------- */
.parlay { padding: 16px; }
.parlay-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.parlay-head .line-main { flex: 1; min-width: 0; }
.verdict-chip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.verdict-chip.pick { background: rgba(155, 231, 180, 0.15); color: var(--pos); }
.verdict-chip.risky { background: rgba(255, 217, 138, 0.15); color: var(--warn); }
.verdict-chip.skip { background: rgba(255, 177, 168, 0.15); color: var(--neg); }
.parlay-legs { margin: 4px 0 14px; }
.leg { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.leg-dot.pick { background: var(--pos); } .leg-dot.risky { background: var(--warn); } .leg-dot.skip { background: var(--neg); }
.leg-title { font-size: 15px; }
.leg-odds { font-weight: 600; font-variant-numeric: tabular-nums; }
.stats2.compact { margin-bottom: 6px; }
.stats2.compact .stat { background: var(--navy-1); }
.stats2.compact .stat-title { margin-bottom: 10px; }
.stats2.compact .bar { margin-top: 12px; }

/* ---------- Экспресс дня ---------- */
.express {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(255, 110, 20, 0.22), transparent 60%),
    linear-gradient(180deg, #1c1d21, var(--navy-2));
  box-shadow: var(--glow);
}
.express-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.express-head .line-main { flex: 1; min-width: 0; }
.express-title { font-family: var(--display); font-size: 19px; font-weight: 800; font-style: italic; text-transform: uppercase; }
.express-odds { font-family: var(--display); font-size: 30px; font-weight: 800; font-style: italic; color: var(--orange-2); letter-spacing: -0.5px; text-shadow: 0 0 14px rgba(255, 110, 20, 0.55); }
.express-legs { margin: 6px 0 14px; }
.express-legs button.leg { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.leg-num { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--navy-1); color: var(--text-2); }
.leg-num svg { width: 18px; height: 18px; }

/* ---------- Ставки на матч ---------- */
.line-pick { font-size: 14px; color: var(--lime); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bet-row { padding-left: 12px !important; margin-left: -12px; width: calc(100% + 24px) !important; padding-right: 12px !important; border-radius: 14px; }
.bet-row.active { background: rgba(255, 122, 26, 0.12); }
.bet-row .line-title { font-size: 15px; }
.scores { display: flex; gap: 8px; padding: 4px 0 14px; }
.score { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; border-radius: 14px; background: var(--navy-1); font-size: 12px; color: var(--text-3); }
.score b { font-size: 20px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.express-odds-box { display: flex; flex-direction: column; align-items: flex-end; }
.stats2.single { grid-template-columns: 1fr; }

/* ---------- Упрощённая главная ---------- */
.demo-note.top { margin: -12px 0 14px; text-align: left; }
.more-btn {
  width: 100%; margin: 4px 0 12px; padding: 12px; border: 0; border-radius: 14px;
  background: var(--navy-1); color: var(--blue-2); font-size: 15px; cursor: pointer;
}
button.rows.own { width: 100%; border: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; display: block; }
.own .line { border-top: 0; }
.own .chev { width: 20px; height: 20px; color: var(--text-3); }

/* ---------- Упрощённый разбор ---------- */
.cta-bet { margin: -6px 0 16px; padding: 17px; font-size: 17px; }
.more-details { margin-bottom: 14px; }
.more-details > summary {
  list-style: none; cursor: pointer; text-align: center;
  padding: 14px; border-radius: 16px; margin-bottom: 14px;
  background: var(--navy-2); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2); font-size: 15px;
}
.more-details > summary::-webkit-details-marker { display: none; }
.more-details > summary::after { content: " ▾"; }
.more-details[open] > summary::after { content: " ▴"; }
.own .line-sub { white-space: normal; }
.input-error { margin-top: 12px; }
.ai-note { font-size: 12px; color: var(--text-3); margin-top: 4px !important; }

/* ---------- Травмы и новости ---------- */
.tilebox.inj { color: var(--neg); }
.inj-status { font-size: 12px; color: var(--neg); background: rgba(255, 177, 168, 0.12); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.src { font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* ---------- Подробный разбор ---------- */
.analysis { padding-bottom: 14px; }
.headline { font-family: var(--display); font-size: 21px; font-weight: 800; font-style: italic; line-height: 1.3; letter-spacing: -0.2px; margin: 4px 0 12px; }
.sec { padding: 10px 0; border-top: 1px solid var(--line); }
.headline + .sec { border-top: 0; padding-top: 2px; }
.sec-title { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--blue-2); margin-bottom: 6px; }
.sec-text { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.keys { margin: 0; padding: 0 0 0 18px; }
.keys li { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); padding: 3px 0; }
.keys li::marker { color: var(--orange); }
.verdict-box { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 122, 26, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 50, 0.5); color: #fff; font-weight: 500; font-size: 15px; line-height: 1.45; }
