/* ==========================================================================
   HotSignals by Stockliga — log in, sign up and My bets
   ========================================================================== */

/* --- Log in / sign up ------------------------------------------------------ */

.auth-main { display: grid; place-items: start center; padding: 48px 16px 80px; }
.auth-card {
  width: min(440px, 100%); display: grid; gap: 14px; padding: 28px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.auth-card h1 { font-size: 2rem; font-weight: 800; font-stretch: 72%; line-height: 1.05; text-wrap: balance; }
.auth-card p { margin: 0; }
.auth-card .btn { height: 42px; font-size: 1rem; }
.auth-switch { font-size: .92rem; color: var(--muted); }
.auth-switch a { color: var(--text); font-weight: 600; }
.auth-fine { font-size: .8rem; color: var(--muted); }
.perks { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; color: var(--muted); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 8px; color: #fff; background: #C4262B; font-weight: 600; }
.note-ok { padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--won) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--won) 50%, transparent); }
.note-ok a { color: var(--text); font-weight: 700; }
.auth-card .check { align-self: auto; height: auto; }

/* --- My bets --------------------------------------------------------------- */

.acct-main { max-width: 1080px; margin: 0 auto; padding: 28px 24px 80px; display: grid; gap: 28px; }
.acct-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; font-stretch: 70%; line-height: 1.02; text-wrap: balance; }
.acct-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 18px; }
.tile { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tile span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.tile b { font-size: 2.1rem; font-weight: 800; font-stretch: 70%; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile small { font-size: .78rem; color: var(--muted); }
.tile.pos b { color: var(--mark-won); }
.tile.neg b { color: var(--mark-lost); }

.bets-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bets-head h2, .acct-settings h2 { font-size: 1.4rem; font-stretch: 75%; }
.seg a { display: inline-grid; place-items: center; padding: 0 14px; height: 34px; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a.on { background: var(--text); color: var(--bg); }

.empty-bets { padding: 22px; border-radius: 12px; border: 1px dashed var(--line); background: var(--surface); }
.empty-bets p { margin: 0; color: var(--muted); max-width: 70ch; }
.empty-bets a { color: var(--text); font-weight: 600; }

.bet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bet { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); }
.bet.won { border-left-color: var(--mark-won); }
.bet.lost { border-left-color: var(--mark-lost); }
.bet.open { border-left-color: var(--flare); }
.bet-main { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; }
.bet-tag { justify-self: start; padding: 3px 9px; border-radius: 99px; font-size: .75rem; font-weight: 800; background: var(--line); color: var(--text); }
.bet.won .bet-tag { background: var(--mark-won); color: #fff; }
.bet.lost .bet-tag { background: var(--mark-lost); color: #fff; }
.bet.open .bet-tag { background: var(--flare); color: var(--flare-ink); }
.bet-text { display: grid; gap: 1px; min-width: 0; }
.bet-text span { color: var(--text); }
.bet-text small { color: var(--muted); font-size: .8rem; }
.bet-money { display: grid; justify-items: end; gap: 2px; font-family: var(--mono); font-size: .86rem; color: var(--muted); text-align: right; }
.bet-money strong { font-size: 1.1rem; color: var(--text); }
.bet-money .pos { color: var(--mark-won); }
.bet-money .neg { color: var(--mark-lost); }
.bet-edit { padding: 0 14px 12px; }
.bet-edit summary { cursor: pointer; font-size: .85rem; color: var(--muted); font-weight: 600; width: max-content; }
.bet-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 10px; }
.bet-form .field { flex: 1 1 120px; }
.bet-remove { margin-top: 8px; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.set-card { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.set-card h3 { color: var(--text); font-size: 1rem; }
.set-card p { margin: 0; font-size: .86rem; }
.set-card.danger { border-color: color-mix(in srgb, #C4262B 45%, var(--line)); }

@media (max-width: 640px) {
  .acct-main { padding: 18px 16px 60px; }
  .bet-main { grid-template-columns: minmax(0, 1fr) auto; }
  .bet-tag { grid-column: 1 / -1; }
}

.other-cur { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.other-cur .oc { white-space: nowrap; }
.other-cur b { font-variant-numeric: tabular-nums; }
.other-cur .pos { color: var(--mark-won); }
.other-cur .neg { color: var(--mark-lost); }

.tz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.set-card .field { min-width: 0; }
.set-card select { width: 100%; max-width: 100%; min-width: 0; }
