/*
 * client.css — FitRock Client Portal
 * Mobile-first. FitRock black/yellow theme.
 * Load standalone — does NOT depend on ../styles.css
 *
 * Created: 2026-05-20
 */

/* --- Reset + Box model -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Design tokens (FitRock brand) -------------------------------------- */
:root {
  --bg:          #0d0d0d;
  --surface:     #1a1a1a;
  --surface2:    #242424;
  --border:      #2e2e2e;
  --yellow:      #FFBD00;
  --yellow-dim:  rgba(255, 189, 0, 0.15);
  --yellow-glow: rgba(255, 189, 0, 0.3);
  --text:        #f0f0f0;
  --muted:       #888;
  --danger:      #e84040;
  --success:     #2db55d;
  --warn:        #f59e0b;
  --radius:      10px;
  --radius-lg:   16px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Boot overlay ------------------------------------------------------- */
#boot-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.boot-logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -1px;
}
.boot-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.boot-msg {
  color: var(--muted);
  font-size: 13px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- App shell ---------------------------------------------------------- */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Top bar ------------------------------------------------------------ */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-bar-logomark {
  display: block;
  border-radius: 8px;
  flex: 0 0 auto;
}
.top-bar-logo {
  font-size: 18px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -0.5px;
}
.top-bar-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.top-bar-action {
  background: none;
  border: none;
  color: var(--muted);
  font: 13px var(--font);
  cursor: pointer;
  padding: 6px 0;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.top-bar-action:hover { color: var(--text); }

/* --- Page content ------------------------------------------------------- */
.page {
  flex: 1;
  padding: 0 16px 100px;
  overflow-y: auto;
}

/* --- Bottom nav --------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
}
.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px 12px;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  min-height: 60px;
  gap: 4px;
  transition: color 0.15s;
}
.nav-tab svg { width: 22px; height: 22px; fill: currentColor; }
.nav-tab.active { color: var(--yellow); }
.nav-tab:hover { color: var(--text); }

/* --- Landing page (unauthenticated) ------------------------------------- */
.landing {
  padding: 32px 16px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.landing-logo {
  font-size: 40px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 4px;
}
.landing-tagline {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.landing-divider {
  width: 48px;
  height: 2px;
  background: var(--yellow);
  border-radius: 999px;
  margin: 0 auto 32px;
}
.landing-headline {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.landing-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 300px;
}

/* --- Auth cards (landing two-track) ------------------------------------- */
.auth-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.auth-card:hover, .auth-card:focus {
  border-color: var(--yellow);
  background: var(--surface2);
  outline: none;
}
.auth-card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.auth-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.auth-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.auth-card.primary {
  border-color: var(--yellow-glow);
  background: var(--yellow-dim);
}
.auth-card.primary .auth-card-title { color: var(--yellow); }

/* --- Forms -------------------------------------------------------------- */
.form-section {
  padding: 24px 0 0;
}
.form-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-section-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: 15px var(--font);
  padding: 12px 14px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--yellow);
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}
.field select option {
  background: var(--surface);
  color: var(--text);
}

/* --- Checkbox grid (goals) ---------------------------------------------- */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 44px;
}
.checkbox-item:hover { border-color: var(--yellow); }
.checkbox-item.checked {
  border-color: var(--yellow);
  background: var(--yellow-dim);
}
.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--yellow);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.checkbox-item span {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.vlastne-input {
  margin-top: 10px;
  display: none;
}
.vlastne-input.visible { display: block; }

/* --- Tabs (intake) ------------------------------------------------------ */
.intake-tabs {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 16px 0 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.intake-tabs::-webkit-scrollbar { display: none; }
.intake-tab {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.intake-tab.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 20px;
  font: 600 15px var(--font);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  min-height: 48px;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--yellow);
  color: #000;
  width: 100%;
}
.btn-success {
  background: var(--success);
  color: #fff;
  font-weight: 700;
}
.btn-success:active {
  background: #26a050;
}
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-ghost {
  background: none;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0;
  min-height: 44px;
}
.btn-ghost:hover { color: var(--text); }
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  min-height: 36px;
}
.btn[disabled] {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

/* --- Card --------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
}
.card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* --- Credit balance card ------------------------------------------------ */
.credit-card {
  background: linear-gradient(135deg, var(--yellow-dim) 0%, var(--surface) 100%);
  border: 1px solid var(--yellow-glow);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.credit-amount {
  font-size: 36px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -1px;
  line-height: 1;
}
.credit-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.credit-card-right {
  text-align: right;
}

/* Credit card compact (smaller, inline) */
.credit-card-compact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.credit-amount-sm {
  font-size: 20px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.5px;
}
.credit-amount-sm.credit-negative {
  color: #ff5a5a;
}

.booking-credit-bar {
  background: linear-gradient(135deg, var(--yellow-dim) 0%, var(--surface) 100%);
  border: 1px solid var(--yellow-glow);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.booking-credit-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.booking-credit-balance {
  color: var(--yellow);
  font-size: 21px;
  font-weight: 900;
  white-space: nowrap;
}
.booking-credit-balance.credit-negative { color: #ff5a5a; }
#booking-topup-btn { flex: 0 0 auto; white-space: nowrap; }

/* --- Rotating entry-pass QR ---------------------------------------------- */
.door-qr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.door-qr-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #fff);
  margin-bottom: 12px;
}
.door-qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  margin: 0 auto;
  width: 204px;
}
.door-qr-box img,
.door-qr-box canvas {
  display: block;
}
.door-qr-msg {
  font-size: 13px;
  color: #555;
  font-family: monospace;
  word-break: break-all;
}
.door-qr-err {
  color: #c0392b;
}
.door-qr-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.credit-label-sm {
  font-size: 13px;
  color: var(--muted);
}

/* --- Membership card ---------------------------------------------------- */
.membership-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.membership-active,
.membership-none {
  display: flex;
  align-items: center;
  gap: 12px;
}
.membership-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.membership-active .membership-icon {
  background: #2e7d32;
  color: #fff;
}
.membership-info {
  flex: 1;
}
.membership-plan {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.membership-validity {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.membership-warning {
  color: #ff9800;
  font-weight: 600;
}
.auto-renew-badge {
  font-size: 11px;
  background: var(--yellow);
  color: var(--bg);
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
}

/* --- Booking session card ----------------------------------------------- */
.session-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.session-card:hover { border-color: var(--yellow); }
.session-time-col {
  min-width: 48px;
  text-align: center;
}
.session-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}
.session-date-small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.session-info {
  flex: 1;
  min-width: 0;
}
.session-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.session-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 56px;
}
.capacity-pill {
  font-size: 11px;
  background: var(--surface2);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
}
.capacity-pill.full { color: var(--danger); }
.capacity-pill.low { color: var(--warn); }
.price-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
}

/* --- Day selector (booking wizard) ------------------------------------- */
.day-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 0 8px;
}
.day-scroll::-webkit-scrollbar { display: none; }
.day-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 10px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 11px;
  color: var(--muted);
  min-height: 64px;
  justify-content: center;
}
.day-chip .day-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 2px;
}
.day-chip.active {
  border-color: var(--yellow);
  background: var(--yellow-dim);
}
.day-chip.active .day-num { color: var(--yellow); }
.day-chip:hover { border-color: var(--yellow); }

/* --- Branch selector --------------------------------------------------- */
.branch-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.branch-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.branch-card:hover { border-color: var(--yellow); }
.branch-card.active {
  border-color: var(--yellow);
  background: var(--yellow-dim);
}
.branch-card-name {
  font-size: 15px;
  font-weight: 700;
}
.branch-card-addr {
  font-size: 11px;
  color: var(--muted);
}

/* --- Section header ----------------------------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
}
.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

/* --- Streak/level mini widget ------------------------------------------ */
.streak-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.streak-flame {
  font-size: 28px;
  line-height: 1;
}
.streak-count {
  font-size: 26px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.streak-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.level-chip {
  background: var(--yellow);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.xp-bar-wrap {
  flex: 1;
}
.xp-bar-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}
.xp-bar {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.xp-bar-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* --- History tabs ------------------------------------------------------- */
.hist-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  margin-top: 16px;
}
.hist-tab {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  transition: color 0.15s, border-color 0.15s;
}
.hist-tab.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* --- Transaction row --------------------------------------------------- */
.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.tx-row:last-child { border-bottom: none; }
.tx-left { flex: 1; min-width: 0; }
.tx-reason {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-date { font-size: 12px; color: var(--muted); }
.tx-amount {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 12px;
}
.tx-amount.debit { color: var(--danger); }
.tx-amount.credit { color: var(--success); }

/* --- Toast -------------------------------------------------------------- */
#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e1e;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  max-width: 320px;
  text-align: center;
}
#toast.visible { opacity: 1; }
#toast.success { border-color: var(--success); }
#toast.error { border-color: var(--danger); }

/* --- Modal -------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 8000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px 20px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.modal-body {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Empty state -------------------------------------------------------- */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-sub { font-size: 13px; line-height: 1.4; }

/* --- Utility ------------------------------------------------------------ */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-muted { color: var(--muted); }
.text-yellow { color: var(--yellow); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Status chips ------------------------------------------------------- */
.status-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.chip-booked { background: rgba(0, 120, 255, 0.15); color: #60a5fa; }
.chip-attended { background: rgba(45, 181, 93, 0.15); color: var(--success); }
.chip-missed { background: rgba(232,64,64,0.15); color: var(--danger); }
.chip-cancelled { background: rgba(100,100,100,0.15); color: var(--muted); }
.chip-late-cancel { background: rgba(232,64,64,0.15); color: var(--danger); }
.chip-lead { background: rgba(245, 158, 11, 0.15); color: var(--warn); }

/* --- Responsive (tablet+) ---------------------------------------------- */
@media (min-width: 500px) {
  #app {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* --- Signup consent row -------------------------------------------------- */
/* Avoids the form's full-width input rule destroying the checkbox layout. */
.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
  padding: 12px 14px;
  background: #1a1a1a;
  border-radius: 10px;
}
.consent-checkbox {
  appearance: auto;
  -webkit-appearance: auto;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0;
  accent-color: #ffd400;
  cursor: pointer;
}
.consent-label {
  flex: 1;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.consent-label a {
  color: #ffd400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.consent-label a:hover { text-decoration-thickness: 2px; }

/* --- Top-up demo sheet (Dobiť kredit) ----------------------------------- */
.topup-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex; align-items: flex-end; justify-content: center;
}
.topup-sheet {
  background: var(--surface);
  width: 100%; max-width: 480px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}
.topup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.topup-head h3 { margin: 0; font-size: 18px; color: var(--text); }
.topup-x {
  background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer;
  min-width: 44px; min-height: 44px;
}
.topup-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.topup-amt {
  padding: 14px 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface2); color: var(--text); font: 700 16px var(--font); cursor: pointer;
}
.topup-amt.sel { border-color: var(--yellow); background: var(--yellow-dim); color: var(--yellow); }
.topup-pay { display: flex; flex-direction: column; gap: 10px; }
.topup-wallet { padding: 15px; border-radius: var(--radius); border: none; font: 700 15px var(--font); cursor: pointer; }
.topup-wallet.gpay { background: #fff; color: #000; }
.topup-wallet.apay { background: #000; color: #fff; border: 1px solid #3a3a3a; }
.topup-wallet.card { background: var(--yellow); color: #1a1a1a; }
.topup-note { color: var(--muted); font-size: 12px; text-align: center; margin: 16px 0 0; }
.topup-demo-tag {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  background: var(--warn); color: #1a1a1a; font: 800 10px var(--font);
  letter-spacing: 0.5px; padding: 2px 7px; border-radius: 6px;
}
.topup-demo-pill {
  display: inline-block; margin-left: 6px;
  background: rgba(0, 0, 0, 0.18); font: 700 10px var(--font);
  text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 6px; border-radius: 5px; opacity: 0.85;
}
.topup-wallet.apay .topup-demo-pill { background: rgba(255, 255, 255, 0.18); }
