/* ============================================================
   Kickoff — Football Predictions
   "Stadium night" dark design system
   ============================================================ */

:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #080b11;
  --bg-2: #0d1219;
  --panel: #131a23;
  --panel-2: #19222e;
  --elev: #1f2b38;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  /* text */
  --ink: #eef4fb;
  --ink-soft: #bcc8d6;
  --muted: #7e8da0;
  --faint: #51607299;

  /* brand / accents */
  --lime: #d2fb52;
  --lime-deep: #aade2f;
  --emerald: #21e3a0;
  --blue: #5b97ff;
  --violet: #a487ff;
  --coral: #ff6b6b;
  --amber: #ffc04d;

  --grad-brand: linear-gradient(135deg, #d6ff5c 0%, #2ee6a6 100%);
  --grad-cool: linear-gradient(135deg, #5b97ff, #a487ff);

  --ring: 0 0 0 3px rgba(210, 251, 82, 0.22);
  --glow-lime: 0 0 0 1px rgba(210, 251, 82, 0.25), 0 16px 40px -12px rgba(46, 230, 166, 0.28);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.6);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  background:
    radial-gradient(1200px 640px at 82% -12%, rgba(91, 151, 255, 0.16), transparent 60%),
    radial-gradient(1000px 620px at -12% 8%, rgba(210, 251, 82, 0.1), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(46, 230, 166, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
a {
  color: inherit;
}
.hidden {
  display: none !important;
}
em {
  font-style: normal;
}

::selection {
  background: rgba(198, 242, 74, 0.3);
}

/* ---------- scrollbars ---------- */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
}

/* ============================ Brand ============================ */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Sora, Inter, sans-serif;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad-brand);
  color: #06120c;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(31, 209, 144, 0.35);
}
.brand-word {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand--hero .brand-mark {
  width: 46px;
  height: 46px;
  font-size: 24px;
}
.brand--hero .brand-word {
  font-size: 24px;
}

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn--block {
  width: 100%;
}
.btn--primary {
  background: var(--grad-brand);
  color: #06120c;
  box-shadow: 0 10px 26px rgba(33, 227, 160, 0.3);
}
.btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(33, 227, 160, 0.4);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn--soft {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--ink-soft);
}
.btn--soft:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--danger {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ff9a9a;
}
.btn--danger:hover {
  background: rgba(255, 107, 107, 0.2);
}
.btn--sm {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 10px;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================ Chips / pills ============================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}
.chip--lime {
  background: rgba(198, 242, 74, 0.12);
  border-color: rgba(198, 242, 74, 0.28);
  color: var(--lime);
}
.chip--blue {
  background: rgba(77, 141, 255, 0.12);
  border-color: rgba(77, 141, 255, 0.3);
  color: #9bc0ff;
}
.chip--muted {
  color: var(--muted);
}

/* ============================ Fields ============================ */
.field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.field > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.optional {
  color: var(--faint);
  font-weight: 500;
  font-size: 12px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--lime);
  background: rgba(198, 242, 74, 0.04);
  box-shadow: 0 0 0 4px rgba(198, 242, 74, 0.12);
}
textarea {
  resize: vertical;
  font-family: inherit;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}
.segment {
  border: 0;
  border-radius: 9px;
  padding: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  transition: all 0.15s;
}
.segment.active {
  background: var(--grad-brand);
  color: #06120c;
}

.form-message {
  min-height: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
}
.form-message.ok {
  color: var(--emerald);
}

/* ============================================================
   AUTH SCREEN
   ============================================================ */
.auth-screen {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 48px;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0c1620, #0a0e13 70%);
  border-right: 1px solid var(--line);
}
.hero-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  top: -180px;
  right: -160px;
  background: radial-gradient(circle, rgba(31, 209, 144, 0.35), transparent 60%);
  filter: blur(20px);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 50%, #000 30%, transparent 75%);
}
.hero-content {
  position: relative;
  max-width: 460px;
}
.hero-title {
  font-family: Sora, sans-serif;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 30px 0 18px;
}
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 400px;
}
.hero-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.hero-points .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  flex: none;
  box-shadow: 0 0 12px rgba(31, 209, 144, 0.6);
}
.hero-ball {
  position: absolute;
  right: -40px;
  bottom: -60px;
  font-size: 120px;
  opacity: 0.12;
  transform: rotate(-12deg);
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px 28px;
}
.auth-card {
  width: min(400px, 100%);
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-lg);
}
.auth-card-head h2 {
  font-family: Sora, sans-serif;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.auth-card-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px 18px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-right: 1px solid var(--line);
}
.nav {
  display: grid;
  gap: 3px;
}
.nav-section {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding: 6px 14px;
  margin-top: 14px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  transition: all 0.15s;
}
.nav-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}
.nav-item.active {
  color: var(--ink);
  background: rgba(33, 227, 160, 0.12);
  font-weight: 700;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad-brand);
}
.nav-ico {
  width: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.nav-item.active .nav-ico {
  color: var(--lime);
}
/* World Cup: the headline destination — always tinted gold */
.nav-item--feature .nav-ico {
  color: var(--amber);
  font-size: 16px;
}
.nav-item--feature:not(.active) {
  background: rgba(255, 192, 77, 0.06);
}
.nav-ico--live {
  color: var(--coral) !important;
}

.account {
  margin-top: auto;
  padding: 14px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
}
.account-user {
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-weight: 800;
  color: #06120c;
  flex: none;
}
.account-meta {
  min-width: 0;
}
.account-meta strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-meta span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- main ---------- */
.main {
  min-width: 0;
  padding: 28px clamp(20px, 3.5vw, 44px) 64px;
  max-width: var(--maxw);
  width: 100%;
}
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.eyebrow {
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar h1 {
  font-family: Sora, sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}
.status-pill.busy .status-dot {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}
.status-pill.err .status-dot {
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
}

.view {
  animation: rise 0.35s ease both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================ Toolbar / filters ============================ */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.filterbar {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}
.filter {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 9px;
  transition: all 0.15s;
}
.filter.active {
  background: var(--elev);
  color: var(--ink);
}
.toolbar-spacer {
  flex: 1;
}

/* league filter dropdown */
.league-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.league-filter select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--panel-2)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%237e8da0' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 8px 30px 8px 12px;
  border-radius: 10px;
  max-width: 230px;
  cursor: pointer;
}
.league-filter select:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: var(--ring);
}

/* pagination */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 26px 0 8px;
  flex-wrap: wrap;
}
.pager-info {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.pager-info b {
  color: var(--ink);
}

/* ============================ Schedule (day chips) ============================ */
.daychips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
}
.daychip {
  flex: 0 0 auto;
  min-width: 90px;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  transition: all 0.15s;
}
.daychip:hover {
  border-color: var(--lime);
}
.daychip.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #06120c;
}
.dc-label {
  font-weight: 800;
  font-size: 13px;
}
.dc-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.dc-count {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--faint);
}
.daychip.today:not(.active) .dc-label {
  color: var(--lime);
}
.daychip.active .dc-date,
.daychip.active .dc-count {
  color: rgba(6, 18, 12, 0.68);
}
.sched-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
}
.sched-day-head h2 {
  font-family: Sora, sans-serif;
  font-size: 19px;
}
.sched-day-head h2 span {
  font-family: Inter, sans-serif;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.sched-day-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ============================ Match grid / cards ============================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.match-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.match-card:hover {
  border-color: rgba(33, 227, 160, 0.32);
  transform: translateY(-3px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(33, 227, 160, 0.12);
}
.match-card.locked {
  opacity: 0.82;
}
.match-card.predicted {
  box-shadow: inset 0 0 0 1px rgba(210, 251, 82, 0.28), var(--shadow-sm);
}

.match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.match-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kickoff {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.kickoff strong {
  display: block;
  color: var(--ink-soft);
}

/* teams row */
.fixture {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.crest {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.side-name {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.side-country {
  font-size: 11.5px;
  color: var(--muted);
}
.center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.scoreline {
  font-family: Sora, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.scoreline.tbd {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.center-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--faint);
  text-transform: uppercase;
}

/* probability bar */
.prob {
  display: grid;
  gap: 6px;
}
.prob-bar {
  display: flex;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.prob-seg {
  height: 100%;
}
.prob-seg.h {
  background: linear-gradient(90deg, #1fd190, #19b87f);
}
.prob-seg.d {
  background: rgba(255, 255, 255, 0.18);
}
.prob-seg.a {
  background: linear-gradient(90deg, #5a96ff, #4d8dff);
}
.prob-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.prob-legend b {
  color: var(--ink-soft);
}

/* metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.metric {
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  text-align: center;
}
.metric span {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.metric strong {
  font-size: 15px;
}

.match-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.your-pick {
  font-size: 12.5px;
  color: var(--muted);
}
.your-pick b {
  color: var(--lime);
}

/* ============================ Live ============================ */
.chip--live {
  background: rgba(255, 75, 75, 0.14);
  border-color: rgba(255, 75, 75, 0.4);
  color: #ff7a7a;
}
.chip--live::before,
.status-pill.live .status-dot {
  background: #ff4b4b;
  box-shadow: 0 0 10px #ff4b4b;
}
.chip--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: pulse 1.3s infinite;
}
.status-pill.live .status-dot {
  animation: pulse 1.3s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(255, 75, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 75, 75, 0);
  }
}

.match-card.live {
  border-color: rgba(255, 75, 75, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 75, 75, 0.25), 0 0 30px rgba(255, 75, 75, 0.08);
}
.scoreline.live {
  color: #ff7a7a;
}
.center-tag.live-tag {
  color: #ff7a7a;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.center-tag.live-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4b4b;
  animation: pulse 1.3s infinite;
}

.live-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: Sora, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ff7a7a;
  margin: 2px 0 12px;
}
.live-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4b4b;
  animation: pulse 1.3s infinite;
}

/* ============================ Stat band ============================ */
.statband {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.stat .k {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}
.stat .v {
  font-family: Sora, sans-serif;
  font-size: 30px;
  font-weight: 800;
  margin-top: 6px;
}
.stat .v small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* pick cards */
.pick-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}
.pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pick-teams {
  font-weight: 700;
  font-size: 15px;
}
.pts {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(198, 242, 74, 0.12);
  border: 1px solid rgba(198, 242, 74, 0.28);
  color: var(--lime);
  font-weight: 800;
}
.pts small {
  font-size: 11px;
  font-weight: 600;
}
.pts.pending {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--muted);
}
.pts.zero {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.25);
  color: #ff9a9a;
}
.pick-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pick-box {
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.pick-box span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 3px;
}
.pick-box strong {
  font-size: 16px;
}

/* ============================ Leaderboard ============================ */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}
.pod {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 12px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  text-align: center;
}
.pod--1 {
  background: linear-gradient(180deg, rgba(255, 192, 77, 0.16), var(--panel));
  border-color: rgba(255, 192, 77, 0.4);
  padding-top: 28px;
}
.pod--2 {
  background: linear-gradient(180deg, rgba(196, 209, 224, 0.12), var(--panel));
}
.pod--3 {
  background: linear-gradient(180deg, rgba(205, 127, 80, 0.14), var(--panel));
}
.pod .rank {
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.pod--1 .rank {
  color: var(--amber);
}
.pod .pod-pts {
  font-family: Sora, sans-serif;
  font-size: 26px;
  font-weight: 800;
}
.pod .pod-name {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pod .pod-sub {
  font-size: 11.5px;
  color: var(--muted);
}
.crown {
  font-size: 22px;
  position: absolute;
  top: -14px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
}
tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
tbody tr.me {
  background: rgba(198, 242, 74, 0.07);
}
.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  font-size: 13px;
}
.lb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.tag-me {
  font-size: 10px;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: 0.05em;
}
td.num {
  font-family: Sora, sans-serif;
  font-weight: 700;
}

/* ============================ Teams ============================ */
.search {
  position: relative;
  margin-bottom: 18px;
  max-width: 360px;
}
.search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}
.search input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(198, 242, 74, 0.12);
}
.search::before {
  content: "⌕";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 17px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r);
  cursor: pointer;
}
.team-card:hover {
  border-color: rgba(33, 227, 160, 0.32);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.team-card .crest {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 14px;
  flex: none;
}
.tc-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-right: 30px; /* room for the star button */
}
.tc-id {
  min-width: 0;
  flex: 1;
}
.tc-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.tc-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 17px;
}
.tc-rec {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}
.tc-rec.muted {
  color: var(--faint);
  font-weight: 600;
}
.team-card .star-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  font-size: 14px;
}

/* form pills (W/D/L) */
.form-row {
  display: inline-flex;
  gap: 3px;
}
.form-pip {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
  color: #06120c;
}
.form-pip.W {
  background: var(--emerald);
}
.form-pip.D {
  background: #c4d1e0;
}
.form-pip.L {
  background: var(--coral);
  color: #2a0808;
}
.form-pip.live {
  background: #ff4b4b;
  color: #fff;
  animation: pulse 1.3s infinite;
}

/* ============================ Team profile modal ============================ */
.modal--team {
  width: min(560px, calc(100vw - 24px));
}
.team-profile {
  display: grid;
  gap: 18px;
  padding: 22px;
}
.tp-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tp-head .crest {
  width: 60px;
  height: 60px;
  border-radius: 17px;
  font-size: 20px;
}
.tp-head-info {
  flex: 1;
  min-width: 0;
}
.tp-head-info h2 {
  font-family: Sora, sans-serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.tp-head-info .tp-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.tp-rank {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(157, 240, 86, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}
.tp-rank-pos {
  font-family: Sora, sans-serif;
  font-size: 22px;
  font-weight: 700;
}
.tp-rank-meta {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.tp-rank-pts {
  font-family: Sora, sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.tp-rank-pts small {
  font-family: inherit;
  font-size: 10.5px;
  color: var(--muted);
  margin-left: 3px;
}
.tp-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.tp-stats--sub {
  grid-template-columns: repeat(4, 1fr);
}
.tp-stats--sub .tp-stat strong {
  font-size: 17px;
}
.tp-table-wrap {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.tp-table th,
.tp-table td {
  padding: 7px 8px;
  text-align: center;
  white-space: nowrap;
}
.tp-table th {
  position: sticky;
  top: 0;
  background: var(--panel, #14181f);
  color: var(--muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tp-table td.tp-table-name,
.tp-table th:nth-child(2) {
  text-align: left;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-table tbody tr {
  border-top: 1px solid var(--line);
}
.tp-table tr.is-team {
  background: rgba(157, 240, 86, 0.13);
}
.tp-table tr.is-team td {
  font-weight: 700;
}
.tp-stat {
  text-align: center;
  padding: 11px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.tp-stat span {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.tp-stat strong {
  font-family: Sora, sans-serif;
  font-size: 19px;
}
.tp-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tp-list {
  display: grid;
  gap: 7px;
  max-height: 230px;
  overflow: auto;
}
.fx-row {
  display: grid;
  grid-template-columns: 22px 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.fx-row .crest {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 12px;
}
.fx-ha {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}
.fx-opp {
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-right {
  text-align: right;
  white-space: nowrap;
}
.fx-date {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.res-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 8px;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
}
.res-pill.W {
  background: rgba(31, 209, 144, 0.16);
  color: var(--emerald);
}
.res-pill.L {
  background: rgba(255, 107, 107, 0.16);
  color: #ff9a9a;
}
.res-pill.D {
  background: rgba(196, 209, 224, 0.16);
  color: #c4d1e0;
}
.res-pill.live {
  background: rgba(255, 75, 75, 0.18);
  color: #ff7a7a;
}
.star-btn {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.star-btn.on {
  background: rgba(198, 242, 74, 0.14);
  border-color: rgba(198, 242, 74, 0.4);
  color: var(--lime);
}

/* ============================ Empty / skeleton ============================ */
.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--muted);
}
.empty .ico {
  font-size: 34px;
  opacity: 0.6;
}
.empty strong {
  color: var(--ink-soft);
  font-size: 16px;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop {
  background: rgba(4, 7, 11, 0.72);
  backdrop-filter: blur(6px);
}
.modal[open] {
  animation: pop 0.22s ease both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}
.modal-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.modal-head h2 {
  font-family: Sora, sans-serif;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin-top: 3px;
}
.modal-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}
.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.modal-section {
  display: grid;
  gap: 10px;
}
.modal-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.modal-label em {
  color: var(--lime);
  font-weight: 800;
}

.winner-toggle {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  gap: 8px;
}
.wt {
  padding: 12px 8px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  transition: all 0.15s;
}
.wt small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}
.wt.active {
  border-color: transparent;
  background: var(--grad-brand);
  color: #06120c;
}
.wt.active small {
  color: rgba(6, 18, 12, 0.7);
}

.score-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.score-side {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.score-team {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-x {
  font-family: Sora, sans-serif;
  font-size: 22px;
  color: var(--faint);
  font-weight: 800;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.step {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.step:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.stepper input {
  width: 52px;
  height: 48px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  font-family: Sora, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lime), var(--emerald)) no-repeat;
  background-size: 50% 100%;
  background-color: rgba(255, 255, 255, 0.08);
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--lime-deep);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--lime-deep);
  cursor: pointer;
}

.points-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(77, 141, 255, 0.08);
  border: 1px solid rgba(77, 141, 255, 0.2);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.points-hint b {
  color: var(--blue);
}

/* ============================ Toasts ============================ */
.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 60;
  max-width: 340px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 13px;
  background: var(--elev);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 600;
  animation: toastIn 0.28s ease both;
}
.toast.out {
  animation: toastOut 0.25s ease forwards;
}
.toast .bar {
  width: 4px;
  align-self: stretch;
  border-radius: 99px;
  background: var(--lime);
}
.toast.success .bar {
  background: var(--emerald);
}
.toast.error .bar {
  background: var(--coral);
}
.toast.info .bar {
  background: var(--blue);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* ============================ Mobile tabbar ============================ */
.tabbar {
  display: none;
}

/* ---------- link-style button (server settings on auth) ---------- */
.link-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px;
  margin: 2px auto 0;
  display: block;
}
.link-btn:hover {
  color: var(--lime);
}

/* ============================================================
   SPORT CATEGORIES (tabs + grouped sections)
   ============================================================ */
.sporttabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.sporttab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13px;
  transition: all 0.15s;
}
.sporttab:hover {
  color: var(--ink);
  border-color: var(--lime);
}
.sporttab.active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #06120c;
}
.sporttab .st-ico {
  font-size: 15px;
}
.sporttab .st-count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 800;
}
.sporttab.active .st-count {
  background: rgba(0, 0, 0, 0.18);
  color: rgba(6, 18, 12, 0.78);
}

.sport-section {
  margin-bottom: 28px;
}
.sport-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 14px;
}
.sport-head h3 {
  font-family: Sora, sans-serif;
  font-size: 17px;
}
.sport-ico {
  font-size: 20px;
}
.sport-head .sport-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 2px 9px;
  border-radius: 999px;
}
.sport-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.winner-toggle--nodraw {
  grid-template-columns: 1fr 1fr;
}

/* ============================================================
   HELP, TOOLTIPS & MODEL INSIGHT
   ============================================================ */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.help-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 15px;
  transition: all 0.15s;
}
.help-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: var(--ring);
}

/* "?" info chip used inline next to labels/metrics */
.tip {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  cursor: help;
  vertical-align: middle;
  margin-left: 4px;
  transition: all 0.15s;
}
.tip:hover,
.tip:focus-visible {
  color: var(--bg);
  background: var(--lime);
  border-color: transparent;
  outline: none;
}

.insight {
  display: grid;
  gap: 11px;
  padding: 13px;
  border-radius: var(--r);
  background: rgba(91, 151, 255, 0.05);
  border: 1px solid rgba(91, 151, 255, 0.14);
}
.insight-head {
  display: flex;
  align-items: center;
  gap: 4px;
}
.insight-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.prob-cap {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.insight-card {
  display: grid;
  gap: 8px;
}
.insight-lead,
.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.points-hint .ph-ico {
  font-size: 16px;
}
.points-hint b {
  color: var(--lime);
}
.points-hint .ph-break {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 11.5px;
}
.points-hint .tip {
  margin-left: auto;
}

/* ============================================================
   HOW TO PLAY (guide)
   ============================================================ */
.guide {
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.guide .card {
  padding: 22px;
}
.guide-hero {
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(33, 227, 160, 0.14), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
}
.guide-hero h2 {
  font-family: Sora, sans-serif;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.guide-hero p {
  color: var(--ink-soft);
  margin-top: 8px;
  max-width: 60ch;
}
.guide-h {
  font-family: Sora, sans-serif;
  font-size: 17px;
  margin-bottom: 14px;
}
.guide-lead {
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-soft);
}
.steps b {
  color: var(--ink);
}
.steps em {
  color: var(--lime);
  font-weight: 600;
}
.step-n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--bg);
  background: var(--grad-brand);
}
.score-rules {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.score-rules th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0 10px 9px;
}
.score-rules td {
  padding: 10px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.score-rules .eg {
  color: var(--muted);
  font-size: 12.5px;
}
.pts-badge {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--bg);
  background: var(--grad-brand);
}
.note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 192, 77, 0.08);
  border: 1px solid rgba(255, 192, 77, 0.2);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.note b {
  color: var(--amber);
}
.glossary {
  display: grid;
  gap: 10px;
}
.gloss {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.gloss strong {
  font-size: 13.5px;
}
.gloss span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   WELCOME / ONBOARDING
   ============================================================ */
.modal--welcome {
  width: min(440px, calc(100vw - 24px));
  text-align: center;
  overflow: hidden;
}
.welcome {
  position: relative;
  padding: 30px 26px 26px;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.welcome-glow {
  position: absolute;
  inset: -60% 0 auto 0;
  height: 220px;
  background: radial-gradient(closest-side, rgba(33, 227, 160, 0.28), transparent);
  pointer-events: none;
}
.welcome-close {
  position: absolute;
  top: 14px;
  right: 14px;
}
.welcome-title {
  font-family: Sora, sans-serif;
  font-size: 23px;
}
.welcome-sub {
  color: var(--muted);
  margin-top: -6px;
}
.welcome-points {
  list-style: none;
  padding: 0;
  margin: 6px 0;
  display: grid;
  gap: 12px;
  text-align: left;
  width: 100%;
}
.welcome-points li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.welcome-points b {
  color: var(--ink);
}
.wp-ico {
  font-size: 20px;
  flex: none;
}
.welcome-actions {
  display: grid;
  gap: 9px;
  width: 100%;
  margin-top: 4px;
}

/* ============================================================
   WORLD CUP — MAIN EVENT HERO + GROUPS
   ============================================================ */
.wc-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 192, 77, 0.35);
  background:
    radial-gradient(700px 200px at 0% 0%, rgba(255, 192, 77, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(255, 192, 77, 0.12), rgba(33, 227, 160, 0.08)),
    var(--panel);
}
.wc-hero-glow {
  position: absolute;
  inset: -40% 0 auto auto;
  width: 320px;
  height: 220px;
  background: radial-gradient(closest-side, rgba(255, 192, 77, 0.22), transparent);
  pointer-events: none;
}
.wc-hero-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.wc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(255, 192, 77, 0.14);
  border: 1px solid rgba(255, 192, 77, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
}
.wc-title {
  font-family: Sora, sans-serif;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.wc-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.wc-sub b {
  color: var(--ink);
}
.wc-live {
  color: #ff7a7a !important;
}
.wc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wc-next {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.wc-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s;
}
.wc-mini:hover {
  border-color: var(--amber);
}
.wc-mini-side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
}
.wc-mini-side span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc-mini-away {
  justify-content: flex-end;
  text-align: right;
}
.wc-mini .crest {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 9px;
  flex: none;
}
.wc-mini-mid {
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--amber);
  white-space: nowrap;
}

.modal--wide {
  width: min(820px, calc(100vw - 24px));
}
.wc-modal {
  display: grid;
  gap: 16px;
  padding: 22px;
}
.wc-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.wc-group .tp-section-title {
  color: var(--amber);
}
.wc-group .tp-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.wc-qual td {
  background: rgba(33, 227, 160, 0.1);
}
.wc-qual td:first-child {
  box-shadow: inset 3px 0 0 var(--emerald);
}

/* ============================================================
   KICKOFF PREDICTION + GRAPHS
   ============================================================ */
/* compact prediction line on match cards */
.pred-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(164, 135, 255, 0.08);
  border: 1px solid rgba(164, 135, 255, 0.2);
}
.pred-line b {
  color: var(--ink);
}
.pred-conf {
  margin-left: auto;
  font-weight: 800;
  color: var(--violet);
}

/* full prediction panel (match detail, non-football) */
.kpred {
  display: grid;
  gap: 9px;
  padding: 13px;
  border-radius: var(--r);
  background: rgba(164, 135, 255, 0.08);
  border: 1px solid rgba(164, 135, 255, 0.22);
}
.kpred-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kpred-src {
  color: var(--violet);
  font-size: 10px;
  background: rgba(164, 135, 255, 0.15);
  padding: 2px 7px;
  border-radius: 999px;
}
.kpred-pick {
  font-size: 15px;
}
.kpred-pick strong {
  font-family: Sora, sans-serif;
}
.kpred-conf {
  float: right;
  font-weight: 800;
  color: var(--violet);
}
/* one-line pick header (football, above model block) */
.kpred-line {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(164, 135, 255, 0.08);
  border: 1px solid rgba(164, 135, 255, 0.2);
}
.kpred-line .kpred-conf {
  color: var(--violet);
}

/* head-to-head form rows */
.h2h {
  display: grid;
  gap: 7px;
}
.h2h-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.h2h-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h2h-wr {
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--lime);
}
.h2h-none {
  font-size: 11.5px;
  color: var(--faint);
}

/* team profile graphs */
.tp-graphs {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr;
  gap: 10px;
}
.tp-graph {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.tp-graph-cap {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--muted);
}
.tp-graph-none {
  font-size: 11px;
  color: var(--faint);
  padding: 18px 0;
}
.g-spark {
  width: 100%;
  height: 60px;
}
.g-bars {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  height: 70px;
}
.g-bar {
  display: grid;
  justify-items: center;
  gap: 3px;
}
.g-bar-track {
  width: 22px;
  height: 48px;
  display: flex;
  align-items: flex-end;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}
.g-bar-fill {
  width: 100%;
  border-radius: 6px;
  min-height: 3px;
}
.g-bar-fill.gf {
  background: var(--emerald);
}
.g-bar-fill.ga {
  background: var(--coral);
}
.g-bar strong {
  font-family: Sora, sans-serif;
  font-size: 14px;
}
.g-bar small {
  font-size: 10px;
  color: var(--muted);
}
.g-donut {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.g-donut-legend {
  display: flex;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}
.g-donut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.g-donut-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* ============================================================
   MEDIA CHIPS · MATCH DETAIL · NEWS
   ============================================================ */
.chip--tv {
  background: rgba(91, 151, 255, 0.14);
  color: #aac6ff;
  border: 1px solid rgba(91, 151, 255, 0.25);
}
.chip--hl {
  background: rgba(255, 75, 75, 0.14);
  color: #ff9a9a;
  border: 1px solid rgba(255, 75, 75, 0.28);
}

/* match detail modal */
.match-detail {
  display: grid;
  gap: 16px;
  padding: 22px;
}
.md-fixture {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.md-team {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}
.md-team .crest {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: 17px;
}
.md-score {
  font-family: Sora, sans-serif;
  font-size: 30px;
  font-weight: 800;
}
.md-score span {
  color: var(--faint);
}
.md-score.tbd {
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.md-sets {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: -8px;
}
.md-watch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tv-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(91, 151, 255, 0.12);
  border: 1px solid rgba(91, 151, 255, 0.25);
  color: #bcd2ff;
}
.md-clips {
  display: grid;
  gap: 8px;
}
.md-clip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.15s;
}
.md-clip:hover {
  border-color: var(--lime);
  background: rgba(255, 255, 255, 0.05);
}
.md-thumb {
  flex: none;
  width: 76px;
  height: 46px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #000;
  display: grid;
  place-items: center;
  color: #fff;
}
.md-thumb--ph {
  background: var(--grad-cool);
  font-size: 16px;
}
.md-clip-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-soft);
}
.md-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* news page */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.news-card:hover {
  border-color: rgba(33, 227, 160, 0.32);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.news-img {
  display: block;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: var(--panel-2);
}
.news-img--ph {
  display: grid;
  place-items: center;
  font-size: 40px;
  background: var(--grad-cool);
}
.news-body {
  display: grid;
  gap: 7px;
  padding: 14px;
}
.news-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.news-body strong {
  font-size: 14.5px;
  line-height: 1.3;
}
.news-body p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-go {
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  margin-top: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    display: none;
  }
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 20px 16px 96px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: rgba(10, 14, 19, 0.9);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    z-index: 50;
  }
  .tabbar::-webkit-scrollbar {
    display: none;
  }
  .tab {
    flex: 0 0 auto;
    width: 62px;
    display: grid;
    justify-items: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    padding: 6px 0;
  }
  .tab span {
    font-size: 15px;
  }
  .tab.active {
    color: var(--lime);
  }
}

@media (max-width: 460px) {
  .pick-rows {
    grid-template-columns: 1fr;
  }
  .podium {
    grid-template-columns: 1fr;
  }
  .pod {
    flex-direction: row;
  }
}
