/* ==========================================================================
   APP PAGES (signup, team, dashboard): phone-first, then 768 / 1100 up.
   Reuses tokens from styles.css; nothing here touches the landing page.
   ========================================================================== */
:root {
  --font-main: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ok: #3ddc84; --wait: #f7c548; --bad: #ff6b6b; --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(14, 18, 28, 0.88);
}
body.app { background: radial-gradient(120% 60% at 50% 0%, #1a1408 0%, var(--bg-deep) 60%) fixed var(--bg-deep); color: #fff; }
.app br { display: initial; } /* styles.css hides <br> on mobile for the landing posters */
.app :focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.nowrap { white-space: nowrap; }
.wrap { overflow-wrap: anywhere; }
.muted { color: var(--silver-mid); font-size: 14px; line-height: 1.5; }

/* header: logout button form */
.nav-logout { display: contents; }
.nav-logout button { font-family: inherit; cursor: pointer; }

/* buttons: fixed px sizes (styles.css sizes these with poster cqw units) */
.app .btn-continue-review { height: 48px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-size: 16px; gap: 10px; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(247, 197, 72, 0.55); background: rgba(36, 26, 11, 0.6); color: var(--gold-light); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-ghost:hover { background: rgba(60, 44, 16, 0.8); }
.btn-danger { border-color: rgba(255, 107, 107, 0.6); color: #ffb3b3; background: rgba(60, 14, 14, 0.5); }
.btn-danger:hover { background: rgba(90, 20, 20, 0.7); }
.btn-block { width: 100%; }

/* layout */
.app-main { padding: 128px 16px 40px; min-height: 100dvh; }
.app-wrap { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.page-title { font-size: 26px; font-weight: 900; font-style: italic; color: var(--gold-bright); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; backdrop-filter: blur(12px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-title { font-size: 22px; font-weight: 900; font-style: italic; color: var(--gold-bright); letter-spacing: 0.02em; margin-bottom: 6px; }

/* flash messages */
.flash-stack { position: fixed; top: 112px; left: 50%; translate: -50% 0; z-index: 90; width: min(100% - 32px, 560px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.flash-stack > * { pointer-events: auto; }
.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; background: #13202c; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.flash-success { border-color: var(--ok); }
.flash-error { border-color: var(--bad); }

/* banners */
.banner { border-radius: 18px; padding: 18px 16px; border: 1px solid; display: flex; flex-direction: column; gap: 8px; }
.banner h2 { font-size: 20px; font-weight: 900; }
.banner p { font-size: 14px; line-height: 1.55; color: #e6ecf5; }
.banner-pay { background: linear-gradient(180deg, rgba(60, 44, 12, 0.9), rgba(24, 18, 8, 0.92)); border-color: rgba(247, 197, 72, 0.6); }
.banner-pay h2 { color: var(--gold-bright); }
.banner-wait { background: rgba(40, 34, 12, 0.88); border-color: rgba(247, 197, 72, 0.4); }
.banner-wait h2 { color: var(--wait); }
.banner-ok { background: rgba(10, 44, 28, 0.9); border-color: rgba(61, 220, 132, 0.6); }
.banner-ok h2 { color: var(--ok); }
.banner-bad { background: rgba(52, 14, 14, 0.9); border-color: rgba(255, 107, 107, 0.6); }
.banner-bad h2 { color: var(--bad); }
.banner-note { font-weight: 800; font-style: italic; color: #ffd0d0 !important; }
.banner-info { font-size: 13px; line-height: 1.5; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px dashed var(--line); color: var(--silver-mid); }
.banner-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.inline-more > summary { list-style: none; }
.inline-more > summary::-webkit-details-marker { display: none; }
.inline-more[open] > summary { margin-bottom: 10px; }
.pay-options { display: grid; gap: 12px; margin-top: 4px; }
.pay-opt { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pay-opt h3 { font-size: 16px; font-weight: 800; color: #fff; }
.pay-opt form { margin-top: auto; }

/* file input */
.whish-form { display: flex; flex-direction: column; gap: 10px; }
.file-drop { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px; border-radius: 12px; border: 1px dashed rgba(247, 197, 72, 0.6); background: rgba(0, 0, 0, 0.3); cursor: pointer; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn { flex: none; padding: 8px 12px; border-radius: 9px; background: rgba(247, 197, 72, 0.18); color: var(--gold-light); font-size: 14px; font-weight: 700; }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--silver-mid); }
.file-drop:focus-within { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* forms */
.app-form { display: flex; flex-direction: column; gap: 12px; }
.login-panel.app-form { gap: 10px; width: min(100%, 460px); }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f > label, .f legend { font-size: 13px; font-weight: 700; color: #e2e8f2; }
.f input:not([type=radio]):not([type=checkbox]):not([type=file]), .f textarea, .f select {
  width: 100%; min-height: 48px; border-radius: 12px; background: rgba(24, 28, 36, 0.9); border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 14px; color: #fff; font: inherit; font-size: 16px; /* 16px: stops iOS zoom-on-focus */ outline: none; color-scheme: dark; }
.f textarea { resize: vertical; min-height: 72px; }
.f input:focus, .f textarea:focus { border-color: var(--gold-bright); box-shadow: 0 0 10px rgba(247, 197, 72, 0.35); }
.f-err input:not([type=radio]), .f-err textarea { border-color: var(--bad); }
.f-error { font-size: 13px; color: #ff9c9c; font-weight: 600; }
.f-phone { display: flex; align-items: stretch; }
.f-prefix { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px 0 0 12px; background: rgba(247, 197, 72, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); border-right: 0; font-weight: 700; font-size: 15px; color: var(--gold-light); }
.f-phone input { border-radius: 0 12px 12px 0 !important; }
.f-radio { border: 0; padding: 0; min-width: 0; }
.f-radio legend { margin-bottom: 6px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-col { flex-direction: column; margin: 12px 0; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(24, 28, 36, 0.9); font-size: 15px; font-weight: 600; cursor: pointer; }
.chip input:checked + span { border-color: var(--gold-bright); background: rgba(247, 197, 72, 0.18); color: var(--gold-light); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.f-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.f-check input { width: 22px; height: 22px; flex: none; accent-color: var(--gold-bright); margin-top: 1px; }

/* players accordion */
.players { display: grid; gap: 12px; }
.player { border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, 0.25); overflow: hidden; }
.player > summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; cursor: pointer; list-style: none; font-weight: 800; }
.player > summary::-webkit-details-marker { display: none; }
.player > summary::after { content: '▾'; margin-left: auto; color: var(--gold-bright); transition: rotate 0.2s; }
.player[open] > summary::after { rotate: 180deg; }
.p-num { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: linear-gradient(180deg, #ffe787, #c98612); color: #161004; font-weight: 900; }
.p-title { flex: 1; }
.p-bad { color: var(--bad); font-style: normal; font-size: 12px; margin-left: 6px; }
.p-done { opacity: 0; color: var(--ok); font-weight: 900; }
.player.is-done .p-done { opacity: 1; }
.p-fields { display: grid; gap: 12px; padding: 4px 14px 16px; }
.sticky-bar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; margin: 4px -16px -18px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(5, 10, 20, 0), rgba(5, 10, 20, 0.96) 30%); border-radius: 0 0 18px 18px; }
.sticky-bar .btn-continue-review { flex: 1; }

/* read-only roster */
.roster { display: grid; gap: 12px; }
.p-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(0, 0, 0, 0.25); }
.p-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.p-card h3 { font-size: 16px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.tag { margin-left: auto; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 999px; background: rgba(247, 197, 72, 0.18); color: var(--gold-light); }
.p-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.p-card dl .span { grid-column: 1 / -1; }
.p-card dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--silver-dark); }
.p-card dd { font-size: 14px; color: #eef2f8; }
.p-card dd.warn { color: #ffcf7a; font-weight: 700; }
.p-card a, .pc-info a, .agenda a { color: var(--gold-light); }

/* calendar */
.cal-hint { margin-bottom: 12px; }
.booked { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(10, 44, 28, 0.7); border: 1px solid rgba(61, 220, 132, 0.5); margin: 8px 0 12px; }
.booked-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ok); font-weight: 800; }
.booked-when { font-size: 20px; font-weight: 900; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 10px; margin: 0 -4px; scrollbar-width: thin; }
.day-chip { flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 1px; width: 68px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: #fff; text-decoration: none; }
.day-chip.is-on { border-color: var(--gold-bright); background: rgba(247, 197, 72, 0.2); box-shadow: 0 0 12px rgba(247, 197, 72, 0.35); }
.day-chip.is-full .dc-free { color: var(--bad); }
.dc-dow, .dc-mon { font-size: 11px; text-transform: uppercase; color: var(--silver-mid); }
.dc-num { font-size: 22px; font-weight: 900; line-height: 1.1; }
.dc-free { font-size: 10px; color: var(--ok); font-weight: 700; }
.slot-day { font-size: 16px; font-weight: 800; margin: 8px 0 10px; }
.slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.slot-btn { width: 100%; min-height: 60px; border-radius: 14px; border: 1px solid rgba(247, 197, 72, 0.55); background: rgba(36, 26, 11, 0.7); color: #fff; font: inherit; font-size: 22px; font-weight: 900; cursor: pointer; display: inline-flex; align-items: baseline; justify-content: center; gap: 4px; }
.slot-btn small { font-size: 12px; color: var(--gold-light); }
.slot-btn:hover { background: rgba(247, 197, 72, 0.25); }

/* admin */
.dash-tiles { display: grid; gap: 14px; }
.dash-tile { display: grid; gap: 6px; padding: 22px 18px; border-radius: 18px; background: var(--panel); border: 1px solid rgba(247, 197, 72, 0.45); color: #fff; text-decoration: none; }
.dash-tile:hover { border-color: var(--gold-bright); box-shadow: 0 0 22px rgba(247, 197, 72, 0.25); }
.dash-tile svg { width: 44px; height: 44px; }
.dt-title { font-size: 24px; font-weight: 900; font-style: italic; color: var(--gold-bright); }
.dt-meta { font-size: 14px; color: var(--silver-mid); }
.dash-nav, .tab-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.dash-nav a, .tab-strip a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; }
.dash-nav a { font-size: 16px; }
.dash-nav a.is-on, .tab-strip a.is-on { border-color: var(--gold-bright); background: rgba(247, 197, 72, 0.2); color: var(--gold-light); }
.tab-strip b { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 12px; text-align: center; }
.pay-card { display: flex; flex-direction: column; gap: 12px; }
.pc-main { display: flex; gap: 14px; align-items: flex-start; }
.pc-info { display: grid; gap: 4px; min-width: 0; }
.pc-info h2 { font-size: 20px; font-weight: 900; color: var(--gold-bright); overflow-wrap: anywhere; }
.pc-info p { font-size: 14px; }
.shot-thumb { flex: none; width: 76px; height: 120px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid rgba(247, 197, 72, 0.5); background: #000; cursor: zoom-in; }
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shot-full { display: block; max-width: 100%; max-height: 78vh; margin: 24px auto 0; border-radius: 10px; }
.roster-more > summary, .team-row > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--gold-light); font-size: 14px; }
.roster-more[open] > summary { margin-bottom: 8px; }
.pc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-actions > * { flex: 1 1 140px; }
.pc-actions form button { width: 100%; }
.agenda { list-style: none; display: grid; gap: 8px; }
.agenda li { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.agenda li.is-booked { border-color: rgba(247, 197, 72, 0.5); background: rgba(36, 26, 11, 0.7); }
.ag-time { flex: none; width: 78px; font-weight: 900; }
.ag-team { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.team-list { display: grid; gap: 8px; }
.team-row { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; background: rgba(0, 0, 0, 0.25); }
.team-row > summary { flex-wrap: wrap; gap: 4px 10px; color: #fff; padding: 6px 0; }
.team-row[open] { padding-bottom: 14px; }
.tr-name { font-weight: 800; flex: 1 1 100%; }
.tr-slot { font-size: 13px; }
.status { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.status-verified { background: rgba(61, 220, 132, 0.18); color: var(--ok); }
.status-rejected { background: rgba(255, 107, 107, 0.18); color: var(--bad); }
.status-pending_whish, .status-pending_in_person { background: rgba(247, 197, 72, 0.18); color: var(--wait); }

/* ---------- tablet & up ---------- */
@media (min-width: 768px) {
  .app-main { padding: 120px 24px 56px; }
  .card, .banner { padding: 24px; }
  .sticky-bar { margin: 4px -24px -24px; padding: 14px 24px; justify-content: flex-end; }
  .sticky-bar .btn-continue-review { flex: 0 0 auto; min-width: 240px; }
  .pay-options { grid-template-columns: 1fr 1fr; }
  .p-fields { grid-template-columns: 1fr 1fr; }
  .p-fields .f-wide { grid-column: 1 / -1; }
  .roster { grid-template-columns: 1fr 1fr; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .booked { flex-direction: row; align-items: center; justify-content: space-between; }
  .dash-tiles { grid-template-columns: 1fr 1fr; }
  .dash-tile { padding: 32px 28px; }
  .shot-thumb { width: 96px; height: 150px; }
  .tr-name { flex: 0 1 auto; }
  .team-row > summary { flex-wrap: nowrap; }
  .tr-slot { margin-left: auto; }
}

/* ---------- desktop (Windows laptops & monitors) ---------- */
@media (min-width: 1100px) {
  .players { grid-template-columns: 1fr 1fr; align-items: start; }
  .player > summary { cursor: default; }
  .slot-grid { grid-template-columns: repeat(6, 1fr); }
  .roster { grid-template-columns: repeat(4, 1fr); }
  .roster-more .roster, .team-row .roster { grid-template-columns: repeat(4, 1fr); }
  .pc-main { gap: 20px; }
}



/* ==========================================================================
   TERMS MODAL, CAPTCHA & RATE LIMIT STYLING (Registration)
   ========================================================================== */
.terms-dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(14, 18, 28, 0.98);
  backdrop-filter: blur(16px);
  color: #fff;
  max-width: 620px;
  width: min(94vw, 620px);
  max-height: 85vh;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(247, 197, 72, 0.15);
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.terms-dialog:not([open]) {
  display: none;
}
.terms-dialog::backdrop {
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(8px);
}
.terms-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(24, 28, 36, 0.75);
}
.terms-modal-head h2 {
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  color: var(--gold-bright);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.03em;
}
.terms-modal-close {
  background: none;
  border: 0;
  color: var(--silver-mid);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.terms-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.terms-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #d8e0ec;
  flex: 1 1 auto;
}
.terms-rule-card {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.terms-rule-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-light);
  margin: 0 0 5px;
}
.terms-rule-card p {
  margin: 0;
}
.terms-modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(24, 28, 36, 0.75);
}
.terms-modal-foot .btn-continue-review {
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}
.terms-modal-foot .btn-ghost {
  min-height: 44px;
}

/* Captcha box */
.captcha-group {
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}
.captcha-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.captcha-display {
  display: flex;
  align-items: center;
  gap: 10px;
}
#captchaCanvas {
  border-radius: 10px;
  background: #0f141f;
  border: 1px solid rgba(247, 197, 72, 0.4);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.btn-refresh-captcha {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-light);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn-refresh-captcha:hover {
  background: rgba(247, 197, 72, 0.18);
  transform: rotate(45deg);
}
#captchaInput {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* Rate limit notice */
.rate-limit-badge {
  font-size: 13px;
  font-weight: 700;
  color: #ffcf7a;
  background: rgba(60, 44, 12, 0.85);
  border: 1px solid rgba(247, 197, 72, 0.55);
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* Disabled button state & shake animation */
.btn-disabled, button:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.3);
}
@keyframes shake-f {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}
.shake {
  animation: shake-f 0.4s ease-in-out;
}


/* Contact popup */
.nav-btn { background: none; border: 0; font-family: inherit; cursor: pointer; }
.contact-dlg { border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: #0b1424; color: #fff; padding: 24px; width: min(90vw, 340px); text-align: center; margin: auto; }
.contact-dlg::backdrop { background: rgba(0,0,0,.7); }
.contact-dlg h3 { margin: 0 0 16px; }
.contact-dlg p { margin: 16px 0; }
.contact-dlg a { color: inherit; }
.contact-dlg .btn-header-cta { display: inline-flex; color: #fff; }
.dlg-close { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-family: inherit; }

/* Floating WhatsApp support button */
.wa-fab{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:60;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:#25d366;color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.45);transition:transform .15s}
.wa-fab:hover,.wa-fab:focus-visible{transform:scale(1.08)}
body:has(.sticky-bar) .wa-fab{bottom:calc(84px + env(safe-area-inset-bottom))}

/* ==========================================================================
   ADMIN DASHBOARD (mobile first): nav, search, tiles, cards, results rows
   ========================================================================== */
.dash-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; }
.dash-nav a { justify-content: center; font-size: 15px; min-height: 46px; padding: 0 10px; border-radius: 14px; }
.tab-strip { flex-wrap: wrap; overflow: visible; }
.section-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--silver-mid); margin: 4px 0 -4px; }

.search-bar { display: flex; gap: 8px; }
.search-bar input[type=search] { flex: 1; min-width: 0; min-height: 48px; border-radius: 12px; background: rgba(24, 28, 36, 0.9); border: 1px solid rgba(255, 255, 255, 0.22); padding: 0 14px; color: #fff; font: inherit; font-size: 16px; outline: none; color-scheme: dark; }
.search-bar input[type=search]:focus { border-color: var(--gold-bright); box-shadow: 0 0 10px rgba(247, 197, 72, 0.35); }

/* home tiles: big number first */
.dash-tile .dt-num { font-size: 48px; font-weight: 900; line-height: 1; color: #fff; }
.dash-tile.is-alert { border-color: var(--gold-bright); background: linear-gradient(180deg, rgba(60, 44, 12, 0.9), rgba(24, 18, 8, 0.92)); }
.dash-tile.is-alert .dt-num { color: var(--gold-bright); }
.dash-tiles-sm .dash-tile { padding: 16px 18px; }
.dash-tiles-sm .dt-title { font-size: 18px; }

/* payment cards */
.pay-card .status { display: inline-block; }
.pay-card .pc-actions { align-items: stretch; }
.pay-card .pc-actions .btn-continue-review { width: 100%; }
.more-menu > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--silver-mid); list-style: none; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu > summary::after { content: '▾'; margin-left: 8px; }
.more-menu[open] > summary::after { content: '▴'; }
.more-actions { display: grid; gap: 8px; padding-bottom: 4px; }
.more-actions .btn-ghost { width: 100%; }

/* time entry (payments + results) */
.result-form { display: flex; gap: 8px; align-items: stretch; }
.result-form input[data-time] { flex: 1; min-width: 0; width: 100%; min-height: 48px; border-radius: 12px; background: rgba(24, 28, 36, 0.9); border: 1px solid rgba(255, 255, 255, 0.22); padding: 0 14px; color: #fff; font: inherit; font-size: 22px; font-weight: 900; letter-spacing: 0.05em; text-align: center; outline: none; color-scheme: dark; }
.result-form input[data-time]:focus { border-color: var(--gold-bright); box-shadow: 0 0 10px rgba(247, 197, 72, 0.35); }
.result-form .btn-ghost { flex: none; min-width: 104px; min-height: 48px; }

/* results rows */
.res-row { display: grid; gap: 12px; }
.res-info { display: grid; gap: 2px; min-width: 0; }
.res-slot { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--wait); }
.res-info h2 { font-size: 20px; font-weight: 900; color: var(--gold-bright); overflow-wrap: anywhere; }
.res-info a { color: var(--gold-light); }

@media (min-width: 768px) {
  .dash-nav { display: flex; }
  .dash-nav a { padding: 0 20px; border-radius: 999px; }
  .search-bar { max-width: 480px; }
  .res-row { grid-template-columns: 1fr minmax(260px, 340px); align-items: center; }
  .pay-card .pc-actions > form { flex: 0 1 220px; }
}

/* admin polish: no customer-support bubble over admin buttons; comfortable tap targets */
body:has(.dash-nav) .wa-fab, body:has(.page-title + .section-label) .wa-fab { display: none; }
.res-info a[href^="tel"], .pc-info a[href^="tel"] { display: inline-flex; align-items: center; min-height: 40px; }
.tab-strip a { padding: 0 13px; min-height: 42px; }
.pc-actions > .result-form { flex: 1 1 100%; min-width: 0; }
.pc-actions .result-form button { width: auto; }
