:root {
  --bg: #0B1410;
  --surface: #13201A;
  --surface-2: #14261C;
  --line: #1E2E26;
  --line-2: #2A3D33;
  --text: #F2F5F3;
  --muted: #A9B8B0;
  --soft: #C9D4CE;
  --green: #22C55E;
  --green-ink: #052E16;
  --green-soft: #86EFAC;
  --green-bg: #14351F;
  --gold: #F5B33B;
  --gold-ink: #1A1203;
  --gold-bg: #3A2C0B;
  --red-soft: #FCA5A5;
  --red-bg: #3A1616;
  --display: 'Barlow Condensed', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Barlow, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--green-soft); outline-offset: 2px; }

.loading, .notice { max-width: 480px; margin: 0 auto; padding: 48px 24px; color: var(--soft); line-height: 1.6; }
.notice h1 { font-family: var(--display); font-size: 32px; color: var(--text); margin: 0 0 12px; }

.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 16px 20px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.01em; }
.pill { display: flex; align-items: center; gap: 6px; background: var(--surface-2); padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.pill b { font-size: 15px; color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.main { flex: 1; padding: 16px 16px 170px; display: flex; flex-direction: column; gap: 14px; }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; }
.sub { font-size: 14px; color: var(--muted); }
.head { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.section-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 6px 4px 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.card.flush { padding: 0; gap: 0; }
.card.dashed { border-style: dashed; border-color: var(--line-2); padding: 22px; align-items: flex-start; }
.match-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.match-top b { font-size: 16px; }
.match-top span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.odd { height: 52px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.odd span { font-size: 12px; opacity: 0.8; }
.odd b { font-size: 16px; }
.odd.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.market { display: flex; flex-direction: column; gap: 6px; }
.market-title { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.status-line { font-size: 14px; color: var(--soft); }

.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; background: transparent; border-left: 0; border-right: 0; border-top: 0; }
.row:last-child { border-bottom: 0; }
.row.me { background: var(--green-bg); }
.row .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row .grow b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .grow span { font-size: 12px; color: var(--muted); }
.rank { font-family: var(--display); font-weight: 800; font-size: 20px; width: 30px; color: var(--muted); }
.rank.top { color: var(--gold); }
.num { font-weight: 700; font-size: 15px; min-width: 64px; text-align: right; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }

.badge { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.badge.won { background: var(--green-bg); color: var(--green-soft); }
.badge.lost { background: var(--red-bg); color: var(--red-soft); }
.badge.open { background: var(--surface-2); color: var(--soft); }
.badge.void { background: var(--surface-2); color: var(--muted); }
.badge.prize { background: var(--gold-bg); color: var(--gold); font-size: 11px; letter-spacing: 0.06em; }

.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chip { height: 44px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); font-size: 15px; font-weight: 600; }
.chip.on { background: var(--green); border-color: var(--green); color: var(--green-ink); }

.sum { display: flex; justify-content: space-between; font-size: 15px; }
.sum span { color: var(--muted); }
.sum .big { font-size: 20px; color: var(--green-soft); }

.btn { height: 52px; border-radius: 14px; border: 0; background: var(--green); color: var(--green-ink); font-size: 17px; font-weight: 700; padding: 0 20px; }
.btn.small { height: 44px; border-radius: 12px; font-size: 15px; }
.btn.ghost { background: transparent; border: 1px solid var(--green); color: var(--green-soft); }
.btn.danger { background: transparent; border: 1px solid #7F1D1D; color: var(--red-soft); }
.btn.block { width: 100%; }

.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--surface); padding: 4px; border-radius: 12px; }
.seg button { height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--soft); font-weight: 600; }
.seg button.on { background: var(--green); color: var(--green-ink); }

.profile-head { display: flex; align-items: center; gap: 14px; padding: 4px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 28px; flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font-family: var(--display); font-size: 34px; }
.uid { font-size: 12px; color: var(--muted); word-break: break-all; user-select: all; background: var(--surface); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }

.form { display: flex; flex-direction: column; gap: 10px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.form input { height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 12px; color: var(--text); font-size: 15px; }
.form .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.form .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions .chip { height: 40px; padding: 0 14px; font-size: 14px; }

.selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 74px; width: 100%; max-width: 480px; z-index: 6; padding: 10px 16px; background: var(--surface-2); border-top: 1px solid var(--green); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.selbar div { display: flex; flex-direction: column; gap: 1px; }
.selbar span { font-size: 13px; color: var(--muted); }

.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 6; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); background: #0E1913; padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); }
.nav button { min-height: 52px; border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; }
.nav button span { font-size: 12px; font-weight: 600; }
.nav button.on { color: #4ADE80; }
.nav .count { position: absolute; top: 4px; right: calc(50% - 22px); background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.login { flex: 1; padding: 36px 24px 32px; display: flex; flex-direction: column; gap: 22px; }
.login .eyebrow { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; color: #4ADE80; }
.login h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 50px; line-height: 0.95; }
.login p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--soft); }
.steps { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.steps div { display: flex; gap: 12px; align-items: center; }
.steps b { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--gold); width: 22px; }
.login .btn { margin-top: auto; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.5; }

.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

/* Aylık ödül kartı */
.prize-card { border-color: var(--gold-bg); background: linear-gradient(180deg, var(--gold-bg), var(--surface) 70%); }
.prize-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prize-item { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.prize-medal { font-size: 22px; line-height: 1; }
.prize-rank { font-size: 12px; color: var(--muted); }
.prize-amt { font-family: var(--display); font-size: 20px; color: var(--gold); }

/* Kupon içindeki maç bazlı sonuç işaretleri */
.row .grow .pick-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.row .grow .pick-line { display: flex; align-items: center; gap: 8px; }
.pk { font-style: normal; font-weight: 800; font-size: 12px; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pk.hit { background: var(--green); color: var(--green-ink); }
.pk.miss { background: var(--red-bg); color: var(--red-soft); }
.pk.void { background: var(--surface-2); color: var(--muted); font-size: 10px; font-weight: 700; }
.pk.wait { background: transparent; font-size: 11px; }

/* Maç arama */
.search { position: relative; display: flex; align-items: center; }
.search > svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 44px 0 38px; color: var(--text); font-size: 16px; }
.search input:focus { outline: none; border-color: var(--text); }
.search input::-webkit-search-cancel-button { display: none; }
.search .icon-btn { position: absolute; right: 4px; }
.search .icon-btn[hidden] { display: none; }
.search-info { padding: 0 4px; }
