:root {
  --blue: #1d58a8;
  --blue-dark: #164278;
  --ink: #1c2434;
  --muted: #8b93a7;
  --line: #c5d0de;
  --soft: #e8eef5;
  --hdp: #e7f0ff;
  --ads: #f3f0e8;
  --gray: #c5c9d2;
  --black: #1e2128;
  --ok: #128a4e;
  --danger: #d14343;
  --star: #f5b400;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "Noto Sans Myanmar", "Myanmar Text", Pyidaungsu, Padauk, system-ui, sans-serif;
  color: var(--ink);
  background: #e7edf8;
  -webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: 0.65; cursor: not-allowed; }
[hidden] { display: none !important; }

.app {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  position: relative;
}
@media (min-width: 760px) {
  .app { box-shadow: 0 0 0 1px #d5deef, 0 18px 50px rgba(28, 45, 100, 0.12); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  background: #fff;
  border-bottom: 1px solid #c5d0de;
}
.topbar::before { content: none; }
.logo {
  border: none;
  background: none;
  padding: 0;
  min-width: 0;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.download-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wallet-label { color: var(--blue); font-size: 12px; font-weight: 700; }

.wallet-card {
  position: relative;
  margin: 10px 0 12px;
  padding: 18px 18px 12px;
  overflow: hidden;
  border: 1px solid #c5d0de;
  border-radius: 24px;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(32, 56, 120, 0.06);
}
.wallet-card-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.wallet-refresh {
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wallet-refresh.is-spin i { animation: wallet-spin 0.6s linear; }
@keyframes wallet-spin { to { transform: rotate(360deg); } }
.wallet-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
}
.wallet-card-amt {
  position: relative;
  margin: 8px 0 12px;
  line-height: 1;
}
.wallet-card-amt strong {
  color: #172033;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.2px;
}
.wallet-card-amt span {
  margin-left: 4px;
  font-size: 15px;
  font-weight: 700;
}
.wallet-card-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 10px 12px;
  border: 1px solid #c5d0de;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.wallet-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.wallet-stat b {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
}
.wallet-stat small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}
.wallet-staked {
  padding-left: 12px;
  border-left: 1px solid #d5e0f8;
}
.wallet-card-row > i { font-size: 13px; }

.view { padding: 2px 16px 168px; }
body:not([data-route="ticket"]) .app:has(.slip-dock:not([hidden])) .view { padding-bottom: 228px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 10px;
}
.section-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}
.result-link { white-space: nowrap; }
.star { color: var(--star); font-size: 16px; }
.result-link {
  border: none;
  background: none;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  padding: 0;
}

.match-card, .card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(32, 56, 120, 0.04);
}
.match-card { padding: 12px; margin-bottom: 14px; }
.match-card.is-small {
  background: #eef1f4;
  border-color: #c3ccd6;
}
.popular-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -16px 14px;
  padding: 2px 16px 10px;
}
.popular-scroll::-webkit-scrollbar { display: none; }
.popular-scroll .match-card,
#popular-list .match-card {
  background: #e7f2fc;
  border: 1px solid #9dc0e6;
  box-shadow: 0 8px 18px rgba(29, 88, 168, 0.08);
}
.popular-scroll .match-card.is-small,
#popular-list .match-card.is-small {
  background: #eef1f4;
  border-color: #c3ccd6;
  box-shadow: 0 8px 18px rgba(32, 56, 120, 0.04);
}
#popular-list .side-btn,
#popular-list .odd {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
#popular-list .side-btn.is-on,
#popular-list .odd.is-on {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 16px rgba(29, 88, 168, 0.28);
}
#popular-list .side-btn.is-on .hdp-chip {
  background: #fff;
  color: var(--blue);
  border-color: transparent;
}
.popular-scroll .match-card {
  flex: 0 0 92%;
  scroll-snap-align: center;
  margin-bottom: 0;
}
.match-stack .match-card:last-child { margin-bottom: 4px; }
.banner-slider { margin: 8px 0 14px; }
.banner-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 92px;
  border-radius: 16px;
  padding: 14px 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.banner-slide p { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; opacity: 0.82; }
.banner-slide h3 { margin: 0; font-size: 18px; font-weight: 800; }
.banner-slide span { font-size: 13px; font-weight: 600; line-height: 1.45; }
.banner-slide.has-image { padding: 0; overflow: hidden; }
.banner-slide.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-slide.tone-blue { background: linear-gradient(135deg, #2a6ec0, #1d58a8); }
.banner-slide.tone-green { background: linear-gradient(135deg, #1aa36a, #128a4e); }
.banner-slide.tone-ink { background: linear-gradient(135deg, #31415c, #1c2434); }
.live-time { gap: 8px; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ff3b30;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.live-pill i { font-size: 7px; animation: live-pulse 1.2s ease infinite; }
.live-score, .live-vs {
  color: #d14343;
  font-weight: 800;
}
.live-vs {
  min-width: 42px;
  justify-content: center;
  background: #fff1f1;
  border-radius: 8px;
  padding: 0 4px;
}
.score-flash { animation: score-flash 0.6s ease; }
@keyframes live-pulse { 50% { opacity: 0.35; } }
@keyframes score-flash { 40% { transform: scale(1.12); } }
.card { padding: 12px; }
.match-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.league-ico {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #eef3f8;
  color: #5d6b82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex: 0 0 auto;
}
.match-time {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 10px;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
}
.match-time i { color: var(--blue); }
.match-time .live-pill i { color: #fff; }
.popular-scroll .match-card.is-board,
#popular-list .match-card.is-board {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.live-flag { margin: 8px 0 0; }
.live-board {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  align-content: center;
}
.live-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}
.live-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.live-logo-empty { display: block; }
.live-team b {
  max-width: 100%;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
}
.live-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
}
.play-time {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.live-score {
  background: #fff1f1;
  color: #d14343;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 18px;
  line-height: 1;
}
.pick-row,
.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}
.score-row { align-items: center; min-height: 52px; }
.score-name {
  min-width: 0;
  color: #243044;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
.score-row .teams-score { font-size: 18px; }
.side-btn {
  min-height: 52px;
  border: 1px solid #c5d0de;
  border-radius: 12px;
  background: #e7eef6;
  color: #243044;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}
.side-btn.has-chip.side-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
}
.side-btn.has-chip.side-away {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: stretch;
}
.side-name {
  min-width: 0;
  overflow: visible;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}
.side-btn.is-on {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.teams-score,
.vs {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  text-align: center;
  line-height: 1;
}
.teams-score {
  color: #d14343;
  font-size: 14px;
  font-weight: 800;
}
.vs {
  color: #9aa6b8;
  font-size: 13px;
  font-weight: 700;
}
.hdp-chip {
  height: 28px;
  padding: 0 10px;
  border: 1.5px solid #8eb4ef;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}
.side-btn.is-on .hdp-chip { background: #fff; color: var(--blue); }
.odds-row {
  display: grid;
  grid-template-columns: 1.15fr 0.72fr 1.15fr;
  gap: 8px;
  margin-top: 10px;
}
.odd, .price-pill {
  min-height: 52px;
  height: auto;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.odd {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border: 1px solid #c5d0de;
  background: #e7eef6;
  color: #243044;
  text-align: center;
  overflow: visible;
  transition: background 0.15s ease, transform 0.15s ease;
}
.odd span {
  display: block;
  max-width: 100%;
  line-height: 1.45;
}
.price-pill {
  background: #164278;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.odd:disabled { opacity: 0.4; }
.odd.is-on { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 6px 14px rgba(29, 88, 168, 0.28); }
.odd:active { transform: scale(0.98); }

.ads-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 48px;
  margin: 0 0 16px;
}
.ads {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #c5d0de;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: none;
}
.ads-viewport {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ads-result {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 8px 16px rgba(29, 88, 168, 0.32);
}
.ads-track {
  display: flex;
  width: max-content;
  animation: ads-marquee 22s linear infinite;
}
.ads-track span {
  padding-right: 64px;
  color: var(--blue);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}
@keyframes ads-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ads-track { animation: none; }
}

.modes {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  margin: 0;
  border-bottom: 1px solid #e7edf4;
  background: transparent;
  min-width: 0;
}
.mode {
  height: auto;
  padding: 8px 4px 10px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #8b93a7;
  font-family: "Noto Sans Myanmar", Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
  position: relative;
}
.mode.on, .mode.is-active { color: var(--blue); background: transparent; }
.mode.on::after, .mode.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 42px;
  margin: 6px 0 14px;
  padding: 3px;
  border-radius: 999px;
  background: #e7f0fb;
  border: 1px solid #9dc0e6;
}
.switch-opt {
  min-width: 0;
  height: 100%;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #5d7190;
  padding: 0 8px;
  font-family: "Noto Sans Myanmar", Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.switch-opt.on {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(29, 88, 168, 0.28);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.toolbar .modes { height: 42px; }
.filter-btn, .seg-btn {
  height: 42px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.filter-btn {
  width: 100%;
  background: #fff;
  color: #243044;
  border: 1px solid #c5d0de;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(32, 56, 120, 0.04);
}
.filter-btn { font-size: 13px; white-space: nowrap; }
.filter-btn i { color: var(--blue); font-size: 13px; }
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 42px;
  padding: 3px;
  background: #fff;
  border: 1px solid #c5d0de;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(32, 56, 120, 0.04);
  gap: 3px;
}
.seg-btn {
  min-width: 0;
  height: 100%;
  background: transparent;
  color: #66758b;
  padding: 0 6px;
  font-size: 13px;
  border-radius: 9px;
  white-space: nowrap;
}
.seg-btn i { font-size: 12px; }
.seg-btn.is-active { background: var(--blue); color: #fff; }

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  height: calc(74px + env(safe-area-inset-bottom));
  padding: 8px 6px calc(18px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e7edf4;
  box-shadow: 0 -6px 16px rgba(28, 45, 80, 0.04);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  overflow: visible;
  z-index: 30;
}
.tab {
  border: none;
  background: transparent;
  color: #6e8eaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: auto;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
}
.tab-ico { position: relative; display: inline-flex; line-height: 1; }
.tab-ico > i { font-size: 18px; }
.tab.is-active { color: var(--blue); }
.slip-dock {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 28;
  width: min(398px, calc(100% - 16px));
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(90deg, #1d58a8 0%, #2a6ec0 100%);
  box-shadow: 0 14px 28px rgba(47, 111, 228, 0.32);
}
.dock-x, .dock-count {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.dock-x { border: none; background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 16px; }
.dock-count { background: #fff; color: var(--blue); font-weight: 800; font-size: 18px; }
.dock-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.dock-copy b { font-size: 15px; }
.dock-copy small { font-size: 12px; opacity: 0.88; }
.dock-go {
  border: none;
  background: #fff;
  color: var(--blue);
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
body[data-route="slip"] .slip-dock,
body[data-route="ticket"] .slip-dock { display: none !important; }
.slip-count {
  position: absolute;
  top: -7px;
  right: -11px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #ff3b30;
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slip-count.pop { animation: pop 0.25s ease; }
@keyframes pop { 50% { transform: scale(1.2); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%) translateY(8px);
  width: min(360px, calc(100% - 32px));
  max-width: 398px;
  background: #1c2434;
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 70;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.login-app {
  display: flex;
  flex-direction: column;
  background: var(--blue);
  overflow: auto;
}
.login-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34vh;
  padding: 36px 20px 56px;
  text-align: center;
  background: var(--blue);
}
.login-logo {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.login-sheet {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: -28px;
  padding: 34px 22px calc(28px + env(safe-area-inset-bottom));
  border-radius: 32px 32px 0 0;
  background: #fff;
  box-shadow: 0 -10px 28px rgba(22, 66, 120, 0.16);
  text-align: center;
}
.login-sheet h2 { margin: 4px 0 8px; font-size: 30px; font-weight: 800; letter-spacing: -0.4px; }
.login-lead { margin: 0 0 22px; color: #7d8798; font-size: 15px; font-weight: 600; }
.login-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  height: 46px;
  min-height: 0;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d7e0ec;
  border-radius: 14px;
  background: #fff;
  text-align: left;
}
.login-field > i { width: 18px; color: var(--blue); text-align: center; }
.login-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.login-field:focus-within,
.login-field input:focus {
  border-color: #d7e0ec;
  outline: none;
  box-shadow: none;
}
.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out;
}
.login-field .eye {
  border: none;
  background: none;
  color: #8b93a7;
  padding: 4px;
}
.login-app .auth-form { gap: 14px; }
.login-app .primary-btn {
  height: 54px;
  margin-top: 4px;
  border-radius: 16px;
  background: var(--blue);
  font-size: 17px;
}
.login-app .text-link { display: block; width: 100%; padding: 16px 0 4px; color: #6b778c; text-align: center; font-weight: 700; }
.login-app .fine { margin: 8px 0 0; color: #8b93a7; font-size: 12.5px; text-align: center; }
.login-note { margin: 14px 0 0; color: #6b778c; font-size: 13px; font-weight: 600; line-height: 1.5; }
.login-app .form-error:empty { display: none; }
.result-card .match-time { align-items: flex-start; }
.result-card .match-time span { line-height: 1.4; }
@media (max-height: 700px) {
  .login-hero { min-height: 24vh; padding: 24px 18px 44px; }
  .login-sheet h2 { font-size: 26px; }
}
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #f7f8fb;
}
.field i { color: var(--blue); width: 18px; text-align: center; }
.field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
}
.eye { border: none; background: none; color: var(--muted); padding: 4px; }
.form-error { min-height: 18px; margin: 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.primary-btn, .ghost-btn, .danger-btn {
  height: 50px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary-btn { border: none; background: var(--blue); color: #fff; }
.primary-btn:active { background: var(--blue-dark); }
.ghost-btn { border: 1.5px solid #d7dde8; background: #fff; color: var(--ink); }
.danger-btn { width: 100%; border: 1.5px solid #f0c2c2; background: #fff; color: var(--danger); }
.full { width: 100%; }
.auth-form .primary-btn, .login-wrap .ghost-btn { width: 100%; }
.text-link, .text-btn {
  border: none;
  background: none;
  color: var(--blue);
  font-weight: 700;
  padding: 12px 0;
}
.text-btn { display: inline-flex; align-items: center; gap: 6px; }
.fine { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.shake { animation: shake 0.35s linear; }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.page-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px;
}
.page-head h1 { margin: 0; font-size: 20px; font-weight: 800; }
.page-head > i { color: var(--blue); }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.subhead { margin: 18px 0 8px; font-size: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.note {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f6f7fb;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}
.empty { text-align: center; color: #98a0b0; padding: 28px 10px 18px; }
.empty i { display: block; margin-bottom: 8px; color: #c5ccd8; font-size: 32px; }
.empty.mini { padding: 16px 8px; }
.empty .primary-btn { margin-top: 8px; }

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 8px;
}
.ticket-head h1 { margin: 0; font-size: 18px; font-weight: 800; }
.ticket-clear {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #243044;
  font-size: 16px;
}
.ticket-card {
  background: #f6f8fc;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.ticket-card.is-changed {
  animation: odds-blink 0.8s steps(1, end) infinite;
}
@keyframes odds-blink {
  0%, 45% { background: #ffe14a; }
  50%, 100% { background: #f6f8fc; }
}
.ticket-top, .ticket-line, .ticket-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ticket-top { color: #8b93a7; font-size: 11px; font-weight: 700; }
.ticket-card .pick-x {
  position: static;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
}
.ticket-teams { margin: 4px 0 2px; font-weight: 800; font-size: 14px; }
.ticket-teams span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-teams span:last-child { text-align: right; }
.ticket-vs { color: #98a2b3; font-size: 11px; letter-spacing: 0.3px; flex: 0 0 auto; }
.ticket-line { color: #526074; font-size: 12.5px; font-weight: 700; }
.ticket-line span { min-width: 0; }
.ticket-line .is-pick { color: var(--blue); }
.ticket-line b { color: var(--blue); font-size: 14px; flex: 0 0 auto; }
body[data-route="ticket"] .app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body[data-route="ticket"] .view {
  flex: 1;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2px 16px calc(108px + env(safe-area-inset-bottom));
}
.slip-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.slip-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.ticket-sheet {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 4px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #c5d0de;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 -8px 20px rgba(28, 45, 80, 0.06);
}
.sheet-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 16px;
  border: none;
  background: transparent;
  padding: 0;
}
.sheet-grab {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: #d5dbe6;
}
.sheet-mini { display: none; align-items: center; gap: 10px; }
.ticket-sheet.is-collapsed .sheet-mini { display: flex; }
.ticket-sheet.is-collapsed .sheet-extra { display: none; }
.mini-copy { flex: 1; min-width: 0; }
.mini-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #243044;
  font-size: 18px;
  font-weight: 800;
}
.mini-count i { color: var(--blue); font-size: 16px; }
.mini-odds { margin: 1px 0 0; color: #5d6b82; font-size: 14px; font-weight: 700; }
.mini-odds strong { color: #1c2434; font-size: 16px; }
.sheet-gear {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #f3f6fb;
  color: var(--blue);
  font-size: 16px;
  flex: 0 0 auto;
}
.ticket-meta { display: flex; align-items: center; gap: 10px; }
.ticket-meta .count {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e7eef8;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}
.ticket-meta small { display: block; color: #8b93a7; font-size: 11px; line-height: 1.2; }
.ticket-meta strong, .ticket-bal b { font-size: 14px; }
.ticket-bal { margin-left: auto; text-align: right; }
.stake-step {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  justify-items: center;
  background: #eef3f8;
  border-radius: 12px;
  min-height: 46px;
  padding: 4px;
}
.stake-step button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #243044;
  font-size: 18px;
  font-weight: 600;
}
.ticket-sheet #stake {
  width: 100%;
  height: 34px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}
.stake-range { margin: 0; text-align: center; color: #98a2b3; font-size: 11px; }
.payout-grid { display: flex; flex-direction: column; gap: 6px; }
.payout-grid .potential {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f6f8fc;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}
.payout-grid .potential span { white-space: nowrap; }
.payout-grid .potential b {
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}
.bet-go {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #21a35a;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.bet-go:active { background: #1b8c4c; }
.quick-row.ticket-quick { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.quick-row.ticket-quick button {
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
}
.ticket-sheet .hint { font-size: 12px; line-height: 1.35; text-align: center; }
.hist-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  border-bottom: 1px solid #e7edf4;
}
.hist-tabs { display: flex; gap: 18px; }
.hist-tab {
  border: none;
  background: transparent;
  color: #8b93a7;
  font-size: 16px;
  font-weight: 800;
  padding: 8px 2px 10px;
  position: relative;
}
.hist-tab.is-active { color: var(--blue); }
.hist-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
}
.date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #526074;
}
.date-filter input {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 8px;
  color: var(--ink);
  font-weight: 700;
  background: #fff;
}
.date-clear {
  border: none;
  background: none;
  color: var(--blue);
  font-weight: 700;
  padding: 0 0 10px;
}
.hist-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}
.hist-list { display: flex; flex-direction: column; }
.hist-item {
  width: 100%;
  border: none;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  text-align: left;
  padding: 14px 2px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hist-when, .hist-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hist-when { color: #98a2b3; font-size: 12.5px; font-weight: 700; }
.hist-line { color: #526074; font-size: 14px; font-weight: 600; }
.hist-line b { color: var(--ink); font-weight: 800; }
.hist-status {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
.hist-status.won { color: var(--ok); }
.hist-status.lost, .hist-status.partial { color: var(--danger); }
.hist-status.refund { color: #667085; }
.detail-when, .detail-no, .event-league, .event-time { margin: 0; }
.detail-when { color: #98a2b3; font-size: 13px; font-weight: 700; }
.detail-no { margin: 4px 0 12px; font-weight: 700; }
.detail-sheet, .event-card {
  background: #f4f7fb;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.voucher-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px 12px 20px;
  background: rgba(18, 36, 63, 0.45);
  overflow: auto;
}
.voucher-dialog {
  width: min(430px, 100%);
  max-height: calc(100dvh - 24px);
  margin: auto;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 10px 14px 16px;
  box-shadow: 0 18px 50px rgba(18, 36, 63, 0.22);
}
.voucher-bar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 4px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  padding-bottom: 6px;
}
.voucher-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.voucher-x, .voucher-cam {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: #eef4fc;
  color: var(--blue);
  font-size: 16px;
}
.voucher-cam { justify-self: end; }
.voucher {
  background: #fff;
  padding: 4px 2px 0;
}
.voucher h2 {
  margin: 0 0 12px;
  text-align: center;
  color: var(--blue);
  font-size: 22px;
}
.voucher-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.voucher-meta p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.voucher-meta span { color: #7b8798; font-size: 12px; font-weight: 700; }
.voucher-meta b { color: #1d2a3a; font-size: 13.5px; }
.voucher-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 14px; }
.voucher-table th {
  text-align: left;
  color: var(--blue);
  font-size: 13px;
  padding: 8px 4px;
  border-bottom: 2px solid #1d58a8;
}
.voucher-table th:nth-child(1) { width: 38%; }
.voucher-table th:nth-child(2) { width: 28%; }
.voucher-table th:nth-child(3) { width: 16%; text-align: center; }
.voucher-table th:nth-child(4) { width: 18%; text-align: center; }
.voucher-table td {
  vertical-align: top;
  padding: 12px 4px;
  border-bottom: 1px solid #e7eef6;
  font-size: 12.5px;
  font-weight: 700;
  overflow-wrap: break-word;
}
.v-league { margin: 0 0 4px; color: #1d2a3a; font-size: 11px; font-weight: 600; }
.v-teams { margin: 0; color: #1d2a3a; font-size: 13.5px; font-weight: 800; }
.v-pick { color: var(--blue); }
.v-pick small { display: block; margin-top: 3px; color: var(--blue); font-weight: 700; }
.voucher-win {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 2px 2px;
  padding-top: 12px;
  border-top: 2px solid #1d58a8;
  font-weight: 800;
}
.voucher-win span { color: #526074; }
.voucher-win b { color: #128a4e; font-size: 18px; }
.v-mark, .v-state { text-align: center; white-space: nowrap; }
.leg-ok { color: #128a4e; font-size: 16px; }
.leg-bad { color: #c53636; font-size: 16px; }
.leg-wait { color: #98a2b3; }
.event-league { font-weight: 800; }
.event-time { color: #98a2b3; font-size: 12.5px; font-weight: 700; }
.slip-pick { position: relative; padding-right: 36px; }
.pick-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: #f2f4f8;
  color: #667085;
}
.pick-league, .pick-match, .pick-title, .pick-odds { margin: 0; }
.pick-league { color: var(--muted); font-size: 12px; font-weight: 700; }
.pick-match { margin-top: 3px; font-weight: 800; }
.pick-title { margin-top: 4px; font-weight: 700; }
.pick-odds { margin-top: 2px; color: var(--blue); font-weight: 800; }
.stake-box { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.bal-line, .stake-label, .hint { margin: 0; }
.bal-line { color: #526074; font-size: 13px; }
.stake-label { font-size: 13px; font-weight: 700; color: #526074; }
#stake {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-row button {
  height: 36px;
  border: none;
  border-radius: 9px;
  background: #eef1ff;
  color: var(--blue);
  font-weight: 800;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 13.5px;
}
.sum-row span { color: #667085; }
.hint { color: #667085; font-size: 13px; line-height: 1.45; }
.warn { color: var(--danger); font-weight: 700; }
.pos { color: var(--ok); }
.neg { color: var(--danger); }

.chips { display: flex; gap: 8px; overflow: auto; margin-bottom: 12px; }
.chip {
  border: none;
  background: #eef1f6;
  color: #526074;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.chip.is-active { background: var(--blue); color: #fff; }
.hist-top, .tx { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mode-badge, .pill {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}
.mode-badge { background: #eef1ff; color: var(--blue); }
.pill.pending { background: #fff6e5; color: #b7791f; }
.pill.won { background: #e5f8ee; color: var(--ok); }
.pill.lost { background: #fdecec; color: var(--danger); }
.pill.refund { background: #e8f0ff; color: var(--blue); }
.pill.partial { background: #fff1e6; color: #c45d12; }
.legs { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.legs li { display: flex; flex-direction: column; }
.legs small { color: #667085; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat i { color: var(--blue); }
.stat b { font-size: 22px; }
.stat span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.split-bar {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #eef1f6;
  margin-bottom: 12px;
}
.split-bar .win { background: var(--ok); }
.split-bar .lose { background: #f0a8a8; }
.money-list { display: flex; flex-direction: column; gap: 10px; }
.report-title { margin: 16px 0 10px; font-size: 18px; }
.report-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.report-filter label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.report-filter input { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: #fff; color: var(--ink); }
.user-report { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.user-report table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.user-report th, .user-report td { padding: 8px 10px; border: 1px solid #e4ebf5; text-align: right; }
.user-report th { background: #4b5563; color: #fff; text-align: center; font-size: 11px; }
.user-report td.is-text { text-align: left; }
.user-report .is-neg { color: #c53636; font-weight: 800; }
.user-report .is-pos { color: #128a4e; font-weight: 800; }
.user-report .is-total td { font-weight: 800; background: #f8fafc; }

.scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.scoreline span { font-size: 13px; font-weight: 700; }
.scoreline span:last-child { text-align: right; }
.scoreline strong {
  background: #eef1ff;
  color: var(--blue);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 18px;
}
.scoreline.pending strong { background: var(--soft); color: #98a0b0; }
.scoreline.live strong { background: #fff1f1; color: #d14343; }
.scoreline span { min-width: 0; }
.score-side {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.score-side.is-away { justify-content: flex-end; }
.score-side b {
  min-width: 0;
  overflow: visible;
  white-space: normal;
  font-size: 13px;
}
.team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}
.score-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin: 0 0 12px;
  padding: 0 12px;
  border: 1px solid #c5d0de;
  border-radius: 12px;
  background: #fff;
}
.score-search i { color: #8b93a7; font-size: 14px; }
.score-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.score-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.score-day {
  height: 40px;
  border: 1px solid #c5d0de;
  border-radius: 12px;
  background: #fff;
  color: #243044;
  font-weight: 800;
}
.score-day.is-on { background: var(--blue); border-color: transparent; color: #fff; }
.score-more { margin: 8px 0 14px; }
.result-card { margin-bottom: 10px; }
.result-card .fine, .profile-card .fine { text-align: left; margin-top: 8px; }

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.profile-hero h2 { margin: 0; font-size: 22px; }
.profile-hero p { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #e7f0ff;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-pill {
  display: inline-flex;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}
.profile-balance {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 40px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  color: var(--ink);
}
.profile-balance span { display: block; color: var(--blue); font-size: 12px; font-weight: 800; }
.profile-balance strong { display: block; margin-top: 4px; font-size: 28px; }
.profile-balance small { display: block; margin-top: 2px; color: var(--muted); font-weight: 700; }
.profile-balance > i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.profile-stats button {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px 4px;
  color: var(--ink);
}
.profile-stats b { display: block; font-size: 18px; }
.profile-stats span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
.profile-menu {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.profile-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  color: var(--ink);
}
.profile-menu .profile-row:last-child { border-bottom: none; }
.profile-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #e7f0ff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.profile-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.profile-copy b { font-size: 15px; }
.profile-copy small { color: var(--muted); font-weight: 650; }
.profile-row > .fa-chevron-right { color: var(--muted); font-size: 12px; }
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(18, 24, 38, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dialog {
  width: min(380px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
}
.dialog .stack { margin-top: 14px; }
.dialog .primary-btn { width: 100%; }

.balance-hero { text-align: center; padding: 8px 0 14px; }
.balance-hero strong { display: block; margin-top: 4px; color: var(--blue); font-size: 36px; font-weight: 800; }
.topup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topup {
  height: 52px;
  border: 1.5px solid #d9e0ff;
  border-radius: 12px;
  background: #f7f8ff;
  color: var(--blue);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tx-list { display: flex; flex-direction: column; gap: 12px; }
.tx i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef1ff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.tx div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tx small { color: var(--muted); }
.tx em { font-style: normal; font-weight: 800; white-space: nowrap; }

.league-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  font-size: 13px;
  color: #526074;
}
.league-group i { color: var(--blue); }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(18, 24, 38, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: min(430px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
}
.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 4px auto 12px;
  border-radius: 4px;
  background: #e1e5ee;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h3 { margin: 0; font-size: 18px; }
.league-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.league-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  color: #526074;
}
.league-opt.is-on { border-color: #cdd6ff; background: #f7f8ff; color: var(--ink); }
.league-opt i { color: var(--blue); }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
body.sheet-open { overflow: hidden; }

@media (hover: hover) {
  .odd-side:hover { background: #dce6f2; }
  .side-btn:hover { background: #dce6f2; }
  .side-btn.is-on:hover { background: var(--blue-dark); }
  .odd.is-on:hover { background: var(--blue-dark); }
  .primary-btn:hover { background: var(--blue-dark); }
  .match-card:hover { border-color: #d5def0; }
}
