/* Member pages: forms, dashboard tables, status messages. Builds on style.css tokens. */
.auth { padding-block: 56px 80px; }
.auth .wrap { max-width: 480px; display: grid; gap: 18px; }
.auth h1 { font-size: clamp(32px, 6vw, 44px); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=password] {
  min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--navy-700); color: var(--text); font: 16px var(--sans); width: 100%;
}
.field input:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #d3dee4; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
.form button { border: 0; cursor: pointer; justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--navy-700); }
.notice.err { border-color: #7a3a44; color: #F5B5B5; }
.notice.ok { border-color: var(--green-soft); color: #bfeee3; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.switch { font-size: 15px; color: var(--muted); }

.member { padding-block: 32px 72px; }
.member .wrap { display: grid; gap: 22px; }
.member .topline { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; }
.member h1 { font-size: clamp(30px, 5vw, 40px); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 15px; }
.tabs a.on { background: var(--green); border-color: var(--green); color: var(--navy-900); font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--navy-700); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.kpi .v { font: 600 24px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.kpi .k { font-size: 13px; color: var(--muted); }
.pos { color: var(--green); } .neg { color: #F29A9A; }
.tbl { overflow-x: auto; background: var(--navy-700); border: 1px solid var(--line); border-radius: 12px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { font: 600 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tbl td.n, .tbl th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .lg { display: block; font-size: 12px; color: var(--muted); }
.pill { font: 700 11px/1 var(--mono); padding: 5px 8px; border-radius: 6px; }
.pill.won { background: var(--green); color: var(--navy-900); }
.pill.lost { background: #3A2430; color: #F29A9A; }
.empty { background: var(--navy-700); border: 1px dashed var(--line); border-radius: 12px; padding: 22px; color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }

/* Tips of the day */
.tips { display: grid; gap: 14px; }
.tips-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tips h2, .sub-h { font-size: 24px; font-style: italic; text-transform: uppercase; margin: 0; }
.sub-h { margin-top: 12px; }
.tip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tip { background: var(--navy-700); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 12px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.tip-meta { display: flex; justify-content: space-between; gap: 8px; font: 600 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tip-match { font-size: 18px; font-weight: 700; }
.tip-pick { display: flex; align-items: baseline; gap: 10px; }
.tip-pick .k { font: 600 12px/1 var(--mono); text-transform: uppercase; color: var(--muted); }
.tip-pick .v { font-size: 20px; font-weight: 800; color: var(--green); }
.tip-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.tip-nums div { background: var(--navy-800); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; min-width: 0; }
.tip-nums dt { font-size: 11px; color: var(--muted); }
.tip-nums dd { margin: 0; font: 600 15px/1.2 var(--mono); overflow-wrap: anywhere; }
.disclaimer-box { margin: 0; font-size: 13px; color: var(--muted); background: rgba(242,176,74,.08); border: 1px solid rgba(242,176,74,.35); border-radius: 10px; padding: 10px 14px; }
.disclaimer-box strong { color: var(--amber); }
.tips { padding: 0; }
.nav a.btn-ghost, .nav a.btn-ghost:hover { color: var(--text); }
.tip-nums { grid-template-columns: auto minmax(0, 1fr) auto; }
.tip-nums dd { white-space: nowrap; font-size: 14px; }
.tip-meta { flex-wrap: wrap; }

/* Quieter disclaimer */
.disclaimer-box { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0 0; font-size: 12px; }
.disclaimer-box strong { color: var(--muted); font-weight: 600; }
.fineprint { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin: 0; max-width: 70ch; }

/* Matches */
.matches-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.matches-head .small { max-width: 60ch; margin: 0; }
.league-filter { display: flex; align-items: center; gap: 8px; }
.league-filter select { min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--navy-700); color: var(--text); font: 15px var(--sans); max-width: 240px; }
.match-list { display: grid; gap: 8px; }
.day-h { font-size: 18px; font-style: normal; text-transform: none; color: var(--muted); margin: 14px 0 2px; }
.match { background: var(--navy-700); border: 1px solid var(--line); border-radius: 12px; }
.match[open] { border-color: var(--green-soft); }
.match summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 16px; }
.match summary::-webkit-details-marker { display: none; }
.match summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 12px; }
.m-time { font: 600 15px/1 var(--mono); color: var(--muted); }
.m-teams { font-weight: 700; min-width: 0; }
.m-teams .lg { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.m-probs { display: flex; gap: 6px; }
.m-probs span { font: 13px/1 var(--mono); font-variant-numeric: tabular-nums; background: var(--navy-800); border-radius: 6px; padding: 6px 8px; white-space: nowrap; }
.m-probs b { color: var(--muted); font-weight: 600; margin-right: 2px; }
.m-value { font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; background: var(--green); color: var(--navy-900); padding: 6px 8px; border-radius: 6px; }
.m-body { padding: 4px 16px 16px; display: grid; gap: 14px; }
.m-tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.m-tip { background: var(--navy-800); border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; min-width: 0; }
.m-tip .k { font: 600 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.m-tip .v { font-weight: 700; overflow-wrap: anywhere; }
.m-tip .p { font: 13px/1.2 var(--mono); color: var(--green); }
.m-tip.val { border: 1px solid var(--green); }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mk { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.mk h3 { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; }
.mk .row { display: grid; grid-template-columns: minmax(0, 1fr) 56px 48px; gap: 6px; font-size: 14px; align-items: baseline; }
.mk .row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk .row.head span { font: 11px/1 var(--mono); color: var(--muted); text-transform: uppercase; }
.mk .n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mk .sub { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .match summary { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .m-probs { grid-column: 2 / -1; }
  .m-value { grid-column: 3; grid-row: 1; }
}
.mk .sym { font-family: var(--mono); font-weight: 700; color: var(--text); }

/* Tip chips in the match row */
.m-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip-tip { font: 13px/1 var(--sans); font-variant-numeric: tabular-nums; background: var(--navy-800); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; white-space: nowrap; color: var(--muted); }
.chip-tip b { color: var(--text); font-weight: 700; }
.m-tip .p { color: var(--muted); }
.m-tip .v { font-size: 17px; font-weight: 800; color: var(--green); }
.m-tip.val .v { color: var(--green); }
@media (max-width: 640px) {
  .m-chips { grid-column: 2 / -1; justify-content: flex-start; }
}

/* Top tips v2 and tip table */
.tip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tip-grid { grid-template-columns: 1fr; } }
.tip-pick { flex-wrap: wrap; }
.tip-pick .k { flex-basis: 100%; }
.tag-value { font: 700 11px/1 var(--mono); text-transform: uppercase; background: var(--green); color: var(--navy-900); padding: 5px 7px; border-radius: 5px; align-self: center; }
.tip.is-value { border-top-color: var(--amber); }
.tip-nums { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.tip-table td.tc { line-height: 1.25; }
.tip-table td.tc b { display: block; font-weight: 700; }
.tip-table td.tc span { display: block; font: 12px/1.3 var(--mono); color: var(--muted); }
.tip-table td.mt { white-space: normal; min-width: 170px; }
.tip-table th { white-space: nowrap; }
.tip-book { margin: 0; font-size: 13px; color: var(--muted); }
.tip-table tr.league-row th { background: var(--navy-800); color: var(--green); font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 10px 12px; }
