/* DeepLeads sports app. Glacier palette from deepleads.ai. */

:root {
  --bg: #070B12;
  --surface: #0C1320;
  --line: #19243A;
  --line2: #2A3A55;
  --text: #EAF1F8;
  --text2: #A3B4C8;
  --muted: #7F91A8;
  --acc: #8BE3FF;
  --on-acc: #06121C;
  --path: #6F8DB0;
  --tint: rgba(139, 227, 255, 0.08);
  --ring: rgba(139, 227, 255, 0.28);
  --danger: #FF9F9F;
  --danger-bg: rgba(255, 112, 112, 0.08);
  --warn: #F2C572;
  --warn-bg: rgba(242, 197, 114, 0.08);
  --ok: #86E5BD;
  --ok-bg: rgba(134, 229, 189, 0.08);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
h1:focus, h1:focus-visible { outline: none; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }
.logo-line { stroke: var(--text); }
.logo-acc { stroke: var(--acc); }
.logo-dot { fill: var(--acc); }
.logo-word { font-size: 18px; font-weight: 600; letter-spacing: -0.025em; }

/* Sign-in pages */
.auth {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.fan { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.fan-path { fill: none; stroke: var(--path); stroke-width: 1.1; }
.fan-accent { fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-opacity: 0.55; }
.auth::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(7, 11, 18, 0.7), rgba(7, 11, 18, 0) 28%, rgba(7, 11, 18, 0) 72%, rgba(7, 11, 18, 0.7));
}
.auth-top { padding: 18px clamp(16px, 4vw, 48px); }
.auth-main { flex: 1; display: grid; place-items: center; padding: 16px 16px 48px; }
.auth-foot { padding: 18px clamp(16px, 4vw, 48px); color: var(--muted); font-size: 13px; }
.card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: rgba(12, 19, 32, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.card .sub { margin: 8px 0 0; color: var(--text2); overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .card { padding: 24px 20px; border-radius: 16px; }
}

/* Forms */
.oauth { margin-top: 24px; }
.form { display: grid; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text2); }
.input-wrap { position: relative; }
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--ring); }
.input.has-toggle { padding-right: 68px; }
.input.code { font-family: var(--mono); font-size: 22px; letter-spacing: 0.32em; text-align: center; }
.toggle-pw {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.toggle-pw:hover { color: var(--text); }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.link-quiet { font-size: 13px; color: var(--text2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, background-color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--acc); color: var(--on-acc); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-secondary { background: transparent; border-color: var(--line2); color: var(--text); }
.btn-secondary:hover { border-color: var(--text2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; }
/* Google's dark-theme button: #131314 fill, #8E918F stroke, #E3E3E3 text. */
.btn-google { width: 100%; background: #131314; border-color: #8E918F; color: #E3E3E3; font-weight: 500; }
.btn-google:hover { background: #1C1C1E; }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.oauth + .form { margin-top: 20px; }
.switch { margin: 24px 0 0; color: var(--text2); font-size: 14px; text-align: center; }
.switch + .switch { margin-top: 8px; }
.text-btn { padding: 0; border: 0; background: none; color: var(--acc); font-size: 14px; cursor: pointer; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-btn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }

.alert, .notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid;
}
.alert, .notice.error { background: var(--danger-bg); border-color: rgba(255, 159, 159, 0.25); color: var(--danger); }
.alert a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.notice { background: var(--tint); border-color: rgba(139, 227, 255, 0.22); color: var(--text); }
.notice.ok { background: var(--ok-bg); border-color: rgba(134, 229, 189, 0.25); color: var(--ok); }
.notice.warn { background: var(--warn-bg); border-color: rgba(242, 197, 114, 0.25); color: var(--warn); }
.card .notice { margin-top: 20px; }

.spinner {
  width: 28px;
  height: 28px;
  margin: 28px auto 4px;
  border: 2px solid var(--line2);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* App shell */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 11, 18, 0.88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.topbar-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
}
.sports { display: flex; flex: 1; min-width: 0; gap: 6px; }
.sport {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
}
.sport:hover { color: var(--text); text-decoration: none; }
.sport.on { color: var(--acc); background: var(--tint); border-color: rgba(139, 227, 255, 0.22); }
.account { position: relative; }
.avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px 0 4px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
}
.avatar-btn:hover, .avatar-btn[aria-expanded='true'] { border-color: var(--text2); color: var(--text); }
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--acc);
  font-size: 13px;
  font-weight: 600;
}
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 32px));
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.menu-head { display: grid; gap: 2px; padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu-label { font-size: 12px; color: var(--muted); }
.menu-email { font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--tint); outline: none; text-decoration: none; }

.page {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 40px) 64px;
}
.app-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 40px) 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* Picks */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.page-head h1, .narrow h1 { margin: 0; font-size: clamp(28px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.meta { margin: 6px 0 0; color: var(--text2); font-size: 14px; }
.odds { display: flex; align-items: center; gap: 10px; }
.odds-label { font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line2); border-radius: 999px; }
.seg button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed='true'] { background: var(--tint); color: var(--acc); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: none;
  color: var(--text2);
  font-size: 14px;
  cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--text2); }
.chip-n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.chip[aria-pressed='true'] { border-color: rgba(139, 227, 255, 0.35); background: var(--tint); color: var(--text); }
.chip[aria-pressed='true'] .chip-n { color: var(--acc); }
.search { position: relative; flex: 0 1 300px; min-width: 220px; }
.search .input { height: 40px; padding-left: 38px; border-radius: 999px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.legend { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.legend b { color: var(--text2); font-weight: 500; }
.page .notice { margin-top: 20px; }

.day { margin-top: 32px; }
.day-head {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 200px 96px;
  gap: 0 24px;
  align-items: end;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.day-title { grid-column: 1 / 3; margin: 0; font-size: inherit; font-weight: 400; color: var(--text2); }
.day-title b { color: var(--text); font-weight: 500; }
.col-win, .col-back { text-align: right; white-space: nowrap; }
.narrow-only { display: none; }

.match {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0 24px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.match:hover { background: rgba(139, 227, 255, 0.025); }
.match.started { opacity: 0.5; }
.when { display: grid; align-content: start; gap: 2px; padding-top: 1px; }
.when time { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.rel { font-size: 12px; color: var(--muted); }
.rel.soon { color: var(--acc); }
.event { margin-bottom: 6px; color: var(--text2); font-size: 13px; }
.round { color: var(--muted); }
.player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px 96px;
  align-items: center;
  gap: 24px;
  min-height: 34px;
}
.pname { overflow: hidden; font-size: 16px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.win { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; gap: 12px; }
.bar { height: 4px; overflow: hidden; border-radius: 2px; background: var(--line); }
.bar i { display: block; height: 100%; border-radius: 2px; background: var(--path); }
.player.fav .bar i { background: var(--acc); }
.prob { color: var(--text2); font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.player.fav .prob { color: var(--text); }
.back { font-family: var(--mono); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.back.none { color: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 400; }

.skeleton {
  height: 84px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent 0%, rgba(139, 227, 255, 0.05) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeletons { margin-top: 32px; border-top: 1px solid var(--line); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.state {
  margin-top: 32px;
  padding: 48px 24px;
  border: 1px dashed var(--line2);
  border-radius: 16px;
  color: var(--text2);
  text-align: center;
}
.state h2 { margin: 0; color: var(--text); font-size: 18px; font-weight: 600; }
.state p { margin: 8px 0 0; }
.state .btn { margin-top: 20px; }

@media (max-width: 760px) {
  .day-head { grid-template-columns: minmax(0, 1fr) 64px 72px; gap: 0 12px; padding: 0 2px 8px; }
  .day-title { grid-column: 1; }
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .match { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 2px; }
  .when { display: flex; align-items: baseline; gap: 8px; padding: 0; }
  .event { margin-bottom: 4px; }
  .player { grid-template-columns: minmax(0, 1fr) 64px 72px; gap: 12px; }
  .win { grid-template-columns: minmax(0, 1fr); }
  .bar { display: none; }
  .pname { font-size: 15px; }
  .search { flex: 1 1 100%; }
  .odds { width: 100%; justify-content: space-between; }
}

/* Account */
.narrow { max-width: 560px; }
.narrow > .notice { margin-top: 20px; }
.panel { margin-top: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.panel h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.panel > p { margin: 8px 0 0; color: var(--text2); }
.panel .form { margin-top: 20px; }
.panel .btn-secondary { margin-top: 16px; }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; margin: 16px 0 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .skeleton, .spinner { animation: none; }
  * { transition: none !important; }
}
