/* ── AUTH SCREEN ── */
#screen-auth { background: #18181B; }
.auth-wrap { display: flex; flex-direction: column; height: 100%; justify-content: flex-end; }
.auth-hero { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 26px 28px; position: relative; overflow: hidden; }
.auth-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(26,58,92,0.5) 0%, transparent 65%); pointer-events: none; }
.auth-logo { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: #fff; letter-spacing: -0.5px; margin-bottom: 8px; position: relative; z-index: 1; line-height: 1.1; }
.auth-logo em { color: #6FA3C8; font-style: italic; }
.auth-tagline { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.4); line-height: 1.65; position: relative; z-index: 1; max-width: 260px; margin-bottom: 0; }
.auth-dots { display: none; }

.auth-panel { background: var(--surface); border-radius: 16px 16px 0 0; padding: 24px 22px; padding-bottom: calc(24px + max(var(--safe-bottom), 20px)); flex-shrink: 1; min-height: 0; overflow-y: auto; border-top: 1px solid var(--border); }
.auth-tabs { display: flex; background: var(--bg); border-radius: var(--r-sm); padding: 3px; margin-bottom: 18px; }
.auth-tab { flex: 1; height: 31px; border-radius: 4px; border: none; background: none; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--ink-muted); cursor: pointer; transition: all 0.15s; }
.auth-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }

.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-field { display: flex; flex-direction: column; gap: 4px; }
.auth-label { font-size: 11px; font-weight: 600; color: var(--ink-muted); letter-spacing: 0.7px; text-transform: uppercase; }
.auth-input { height: 40px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0 12px; font-family: var(--font-body); font-size: 14px; color: var(--ink); outline: none; transition: border-color 0.18s; }
.auth-input:focus { border-color: var(--accent-mid); box-shadow: 0 0 0 3px rgba(26,58,92,0.09); background: var(--surface); }
.auth-btn { height: 42px; background: var(--accent); color: #fff; border: none; border-radius: var(--r-sm); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 4px; letter-spacing: 0.1px; transition: all 0.15s; }
.auth-btn:hover { background: var(--accent-dark); }
.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.social-btn:active { transform: scale(0.97); }

.otp-inputs { display: flex; gap: 8px; justify-content: center; }
.otp-input { width: 42px; height: 48px; text-align: center; font-size: 20px; font-weight: 600; font-family: var(--font-body); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--ink); outline: none; }
.otp-input:focus { border-color: var(--accent-mid); box-shadow: 0 0 0 3px rgba(26,58,92,0.09); }

/* ── PROFILE SETUP ── */
.setup-wrap { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.setup-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; }
.setup-sub { font-size: 13px; color: var(--ink-muted); line-height: 1.6; margin-top: -6px; }

.browse-loc-dropdown::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }/* ── TERMS OF SERVICE ── */
.tos-wrap {
  display: none; flex-direction: column; gap: 10px;
  margin-top: 2px;
}
.tos-wrap.visible { display: flex; }
.tos-scroll-box {
  position: absolute; inset: 0;
  overflow-y: auto;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 14px;
  font-size: 12px; color: var(--ink-muted); line-height: 1.7;
}
.tos-scroll-box::-webkit-scrollbar { width: 3px; }
.tos-scroll-box::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
.tos-scroll-box h4 { font-size: 11px; font-weight: 600; color: var(--ink); margin: 10px 0 4px; letter-spacing: 0.3px; text-transform: uppercase; }
.tos-scroll-box h4:first-child { margin-top: 0; }
.tos-scroll-box p { margin-bottom: 6px; }
.tos-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 48px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  pointer-events: none; transition: opacity 0.3s;
  z-index: 2;
}
.tos-fade.gone { opacity: 0; pointer-events: none; }
.auth-field-hint {
  font-size: 11px; color: var(--ink-muted); margin-top: 1px; line-height: 1.4;
}
.signup-only { display: none; }

.tos-scroll-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #92400E;
  background: #FEF3C7; border: 1px solid #FDE68A;
  border-radius: var(--r-sm); padding: 8px 12px; text-align: center;
}
.tos-check-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  opacity: 0.4; transition: opacity 0.25s;
}
.tos-check-row.unlocked { opacity: 1; }
.tos-checkbox {
  width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface); cursor: not-allowed;
  flex-shrink: 0; margin-top: 1px; appearance: none;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; outline: none;
}
.tos-check-row.unlocked .tos-checkbox { cursor: pointer; }
.tos-checkbox:checked { background: var(--accent); border-color: var(--accent); }
.tos-checkbox:checked::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.tos-check-label { font-size: 12px; color: var(--ink-mid); line-height: 1.5; }
.tos-check-label strong { color: var(--ink); font-weight: 600; }
