/* ============================================================
   MyBanker PWA — styles.css
   Design System: Luxury Nigerian Fintech
   Fonts: Playfair Display + DM Sans + DM Mono
   ============================================================ */

/* ── CSS VARIABLES (Design Tokens) ──────────────────────────
   Change a colour here and it updates the whole app.
   ──────────────────────────────────────────────────────────── */
:root {
  --navy:         #07111F;
  --navy-2:       #0D1E33;
  --navy-3:       #122540;
  --navy-4:       #1A3050;
  --gold:         #C9972A;
  --gold-light:   #E5B84A;
  --gold-pale:    #F5DFA0;
  --gold-dim:     rgba(201, 151, 42, 0.14);
  --gold-border:  rgba(201, 151, 42, 0.25);
  --white:        #F5F0E8;
  --muted:        #8899AA;
  --green:        #00C896;
  --green-dim:    rgba(0, 200, 150, 0.1);
  --red:          #FF5A5A;
  --red-dim:      rgba(255, 90, 90, 0.1);
  --border:       rgba(255, 255, 255, 0.07);

  /* Spacing */
  --safe-bottom:  env(safe-area-inset-bottom, 0px);

  /* Transitions */
  --transition:   all 0.2s ease;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  /* Subtle noise texture overlay */
  background-image: radial-gradient(ellipse at 20% 50%, rgba(201,151,42,0.04) 0%, transparent 60%);
}

/* ── APP SHELL ──────────────────────────────────────────────── */
#app {
  max-width: 430px;    /* Phone-width even on desktop */
  margin: 0 auto;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

/* ── SCREENS ────────────────────────────────────────────────── */
.screen {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.active { display: flex; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(201,151,42,0.3), 0 0 80px rgba(201,151,42,0.1); }
  50%       { box-shadow: 0 0 60px rgba(201,151,42,0.5), 0 0 100px rgba(201,151,42,0.2); }
}
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30%           { transform: translateY(-6px); opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.fade-in-up { animation: fadeInUp 0.4s ease forwards; }
.fade-in    { animation: fadeIn 0.3s ease forwards; }

/* Staggered children animation */
.stagger > * { opacity: 0; animation: fadeInUp 0.4s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* ── SPLASH SCREEN ──────────────────────────────────────────── */
#screen-splash {
  background: radial-gradient(ellipse at 50% 40%, rgba(201,151,42,0.08) 0%, transparent 60%), var(--navy);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  padding: 40px 32px;
}

.splash-logo {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--navy-3), var(--navy));
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  animation: pulse 2.5s ease-in-out infinite;
}

.splash-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1;
}
.splash-title span { color: var(--gold); }

.splash-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 52px;
  font-weight: 400;
}

.splash-tagline {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 24px;
  opacity: 0.7;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 14px;
  padding: 16px 40px;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 30px rgba(201,151,42,0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,151,42,0.5); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover { background: var(--gold-dim); }

/* ── STATUS BAR ─────────────────────────────────────────────── */
.status-bar {
  height: 44px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.status-time { font-size: 14px; font-weight: 600; }
.status-icons { display: flex; gap: 6px; font-size: 13px; }

/* ── BOTTOM NAV ─────────────────────────────────────────────── */
.bottom-nav {
  height: calc(68px + var(--safe-bottom));
  background: var(--navy-2);
  border-top: 1px solid var(--gold-border);
  display: none;                   /* Hidden on splash, shown after login */
  align-items: flex-start;
  justify-content: space-around;
  padding: 8px 0 0;
  flex-shrink: 0;
}
.bottom-nav.visible { display: flex; }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 14px;
  transition: var(--transition);
  flex: 1;
  max-width: 80px;
  background: none;
  border: none;
}
.nav-item.active { background: var(--gold-dim); }
.nav-icon  { font-size: 21px; line-height: 1; }
.nav-label { font-size: 10px; font-weight: 500; color: var(--muted); font-family: 'DM Sans', sans-serif; }
.nav-item.active .nav-label { color: var(--gold); }

/* ── PAGE HEADERS ───────────────────────────────────────────── */
.page-header {
  background: linear-gradient(160deg, var(--navy-3), var(--navy-2));
  padding: 16px 24px 20px;
  border-bottom: 1px solid var(--gold-border);
  flex-shrink: 0;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
  padding: 0;
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}
.page-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── HOME SCREEN ────────────────────────────────────────────── */
.home-header {
  background: linear-gradient(160deg, var(--navy-3) 0%, var(--navy-2) 100%);
  padding: 20px 24px 28px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.home-header::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,151,42,0.1), transparent 70%);
  pointer-events: none;
}

.greeting    { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.rm-name     { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 800; }
.rm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 4px 12px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 12px;
  padding: 20px 24px 0;
  flex-shrink: 0;
}
.stat-card {
  flex: 1;
  background: var(--navy-2);
  border-radius: 16px;
  padding: 16px 14px;
  border: 1px solid var(--gold-border);
}
.stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; font-weight: 500; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 800; color: var(--white); }
.stat-change        { font-size: 11px; color: var(--green); margin-top: 4px; font-weight: 500; }
.stat-change.down   { color: var(--red); }
.stat-change.warn   { color: var(--gold); }

/* Alert strip */
.alert-strip {
  margin: 20px 24px 0;
  background: var(--green-dim);
  border: 1px solid rgba(0,200,150,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.alert-strip:hover { border-color: var(--green); }
.alert-icon  { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-text  { font-size: 12px; color: var(--white); line-height: 1.6; }
.alert-text strong { color: var(--green); }

/* Section headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 12px;
}
.section-title { font-size: 16px; font-weight: 700; color: var(--white); }
.section-link  { font-size: 12px; color: var(--gold); cursor: pointer; font-weight: 500; }

/* Module grid */
.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 24px;
}
.module-card {
  background: var(--navy-2);
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid var(--gold-border);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.module-card:hover  { border-color: var(--gold); transform: translateY(-2px); }
.module-card:active { transform: scale(0.97); }
.module-card::before {
  content: '';
  position: absolute;
  top: -10px; right: -10px;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(201,151,42,0.1)), transparent 70%);
  pointer-events: none;
}
.module-icon { font-size: 26px; margin-bottom: 10px; display: block; }
.module-name { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.module-desc { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* Recent clients */
.client-row {
  margin: 0 24px 10px;
  background: var(--navy-2);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--gold-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}
.client-row:hover  { border-color: var(--gold); }
.client-row:active { transform: scale(0.98); }
.client-name   { font-size: 13px; font-weight: 600; color: var(--white); }
.client-meta   { font-size: 11px; color: var(--muted); margin-top: 3px; }
.client-status {
  font-size: 11px;
  font-weight: 600;
  background: rgba(0,0,0,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── INTELLIGENCE SCREEN ────────────────────────────────────── */
.input-section { padding: 24px; flex: 1; }
.input-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
  display: block;
}
.input-field {
  width: 100%;
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--white);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  margin-bottom: 20px;
  transition: var(--transition);
  -webkit-appearance: none;
}
.input-field:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,151,42,0.1); }
.input-field::placeholder { color: var(--muted); }
textarea.input-field { resize: none; }

/* Sector chips */
.sector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.chip {
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.chip:hover  { border-color: var(--gold-light); color: var(--white); }
.chip.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

/* ── RESULTS SCREEN ─────────────────────────────────────────── */
.result-hero {
  background: linear-gradient(135deg, var(--navy-3), var(--navy-2));
  padding: 16px 24px 20px;
  border-bottom: 1px solid var(--gold-border);
  flex-shrink: 0;
}
.result-client-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.result-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}

/* Result tabs */
.result-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 24px 0;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.result-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
  flex-shrink: 0;
}
.tab-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}

/* AI response card */
.result-content { padding: 20px 24px 32px; }
.ai-card {
  background: var(--navy-2);
  border-radius: 18px;
  border: 1px solid var(--gold-border);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
}
.ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.ai-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--navy);
  flex-shrink: 0;
}
.ai-name    { font-size: 13px; font-weight: 700; color: var(--gold); }
.ai-powered { font-size: 11px; color: var(--muted); }

/* Typing indicator */
.typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 4px 0;
}
.typing-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: typing 1.3s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* AI text formatting */
.ai-text { font-size: 13px; line-height: 1.85; color: var(--white); }
.ai-text p          { margin-bottom: 12px; }
.ai-text strong     { color: var(--gold-light); font-weight: 700; }
.ai-text em         { color: var(--muted); font-style: normal; }
.ai-text h3         { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 8px; font-weight: 700; }
.ai-text ul, .ai-text ol { padding-left: 18px; margin-bottom: 12px; }
.ai-text li         { margin-bottom: 6px; }
.ai-text .highlight { background: var(--gold-dim); border-left: 2px solid var(--gold); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 12px 0; }

/* ── SECTOR HUB ─────────────────────────────────────────────── */
.sector-list {
  padding: 16px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sector-item {
  background: var(--navy-2);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.sector-item:hover  { border-color: var(--gold); transform: translateX(3px); }
.sector-item:active { transform: scale(0.98); }
.sector-emoji {
  width: 52px; height: 52px;
  background: var(--gold-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.sector-info    { flex: 1; min-width: 0; }
.sector-name    { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.sector-size    { font-size: 11px; color: var(--muted); }
.sector-growth  { color: var(--green); font-weight: 600; }
.sector-arrow   { font-size: 18px; color: var(--muted); flex-shrink: 0; }

/* ── PITCH BUILDER ──────────────────────────────────────────── */
/* (reuses input-section, input-label, input-field, btn-primary, ai-card) */

/* ── PROFILE SCREEN ─────────────────────────────────────────── */
.profile-header {
  padding: 32px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 14px;
  border: 2.5px solid var(--gold);
  box-shadow: 0 0 24px rgba(201,151,42,0.3);
}
.profile-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; }
.profile-role { font-size: 12px; color: var(--muted); margin-top: 4px; }
.profile-bank { font-size: 13px; color: var(--gold); margin-top: 6px; font-weight: 600; }

.profile-list { padding: 20px 24px 32px; display: flex; flex-direction: column; gap: 10px; }
.profile-item {
  background: var(--navy-2);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}
.profile-item:hover { border-color: var(--gold-border); }
.profile-item-left  { display: flex; align-items: center; gap: 14px; }
.profile-item-icon  { font-size: 20px; width: 36px; text-align: center; }
.profile-item-name  { font-size: 14px; font-weight: 500; color: var(--white); }
.profile-item-right { font-size: 18px; color: var(--muted); }
.profile-item.danger .profile-item-name { color: var(--red); }

.profile-divider { height: 1px; background: var(--border); margin: 4px 0; }

.version-note {
  text-align: center;
  padding: 8px 24px 20px;
  font-size: 11px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  line-height: 1.8;
}

/* ── INSTALL PROMPT BANNER ──────────────────────────────────── */
#install-banner {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-3);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 999;
  max-width: 360px;
  width: calc(100% - 48px);
  animation: fadeInUp 0.3s ease;
}
#install-banner.show { display: flex; align-items: center; gap: 14px; }
.install-text { font-size: 13px; color: var(--white); flex: 1; line-height: 1.5; }
.install-text strong { color: var(--gold); }
.install-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ── OFFLINE TOAST ──────────────────────────────────────────── */
#offline-toast {
  display: none;
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  z-index: 1000;
  white-space: nowrap;
  animation: fadeInUp 0.3s ease;
}
#offline-toast.show { display: block; }

/* ── LOADING OVERLAY ────────────────────────────────────────── */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,17,31,0.8);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  gap: 16px;
  backdrop-filter: blur(4px);
  border-radius: 18px;
}
.loading-overlay.show { display: flex; }
.spinner {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-border);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}
.loading-text { font-size: 13px; color: var(--muted); }

/* ── SCROLLABLE CONTENT AREA ────────────────────────────────── */
.scroll-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.scroll-content::-webkit-scrollbar { display: none; }
.pb-nav { padding-bottom: 24px; } /* Space above nav bar */

/* ── UTILITY ────────────────────────────────────────────────── */
.hidden  { display: none !important; }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }
.px-24   { padding-left: 24px; padding-right: 24px; }
.text-gold  { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.fw-700     { font-weight: 700; }

/* ── RESPONSIVE: desktop gets the phone-frame feel ─────────── */
@media (min-width: 480px) {
  body {
    background: #020A14;
    background-image:
      radial-gradient(ellipse at 20% 50%, rgba(201,151,42,0.05) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 20%, rgba(0,200,150,0.03) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }
  #app {
    height: 90vh;
    max-height: 900px;
    border-radius: 44px;
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.08),
      0 40px 120px rgba(0,0,0,0.9),
      0 0 80px rgba(201,151,42,0.08);
  }
  #install-banner { bottom: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   AUTH SCREENS — styles added for Phase 2 authentication
   ============================================================ */

/* ── AUTH WRAPPER ────────────────────────────────────────────── */
.auth-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 20%, rgba(201,151,42,0.07) 0%, transparent 60%), var(--navy);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.auth-screen::-webkit-scrollbar { display: none; }

.auth-logo-bar {
  padding: 48px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.auth-logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.auth-logo-title span { color: var(--gold); }
.auth-screen-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.auth-card {
  margin: 0 20px 40px;
  background: var(--navy-2);
  border-radius: 24px;
  padding: 28px 24px;
  border: 1px solid var(--gold-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.auth-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.auth-card-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Input fields in auth forms */
.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 7px;
}
.auth-input {
  width: 100%;
  background: var(--navy-3);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--white);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}
.auth-input:focus {
  border-color: var(--gold);
  background: var(--navy-4);
  box-shadow: 0 0 0 3px rgba(201,151,42,0.1);
}
.auth-input::placeholder { color: var(--muted); }
.auth-input.error { border-color: var(--red); }

select.auth-input { cursor: pointer; }

/* Two column row for auth forms */
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Password field with show/hide toggle */
.password-wrap { position: relative; }
.password-wrap .auth-input { padding-right: 48px; }
.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.pw-toggle:hover { color: var(--gold); }

/* Error message */
.auth-error {
  background: var(--red-dim);
  border: 1px solid rgba(255,90,90,0.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 16px;
  line-height: 1.5;
  display: none;
}
.auth-error.show { display: block; }

/* Success message */
.auth-success {
  background: var(--green-dim);
  border: 1px solid rgba(0,200,150,0.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 16px;
  line-height: 1.5;
  display: none;
}
.auth-success.show { display: block; }

/* Auth footer link */
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.auth-footer a, .auth-link {
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Tier badge on sign up */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* Loading spinner inside button */
.btn-primary.loading {
  opacity: 0.8;
  pointer-events: none;
}
.btn-primary.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(7,17,31,0.3);
  border-top-color: var(--navy);
  animation: spin 0.7s linear infinite;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}

/* ── WELCOME SCREEN ──────────────────────────────────────────── */
.welcome-hero {
  padding: 48px 32px 0;
  text-align: center;
}
.welcome-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  margin: 24px 0 12px;
}
.welcome-title span { color: var(--gold); }
.welcome-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
}
.welcome-features {
  margin: 0 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.welcome-feature {
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.welcome-feature-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  background: var(--gold-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.welcome-feature-text { font-size: 13px; color: var(--white); line-height: 1.5; }
.welcome-feature-text strong { color: var(--gold-light); font-size: 14px; display: block; margin-bottom: 2px; }
.welcome-actions {
  padding: 0 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-secondary {
  background: var(--navy-2);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 16px 40px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: center;
}
.btn-secondary:hover { border-color: var(--gold); background: var(--gold-dim); }

/* ── PROFILE EDIT FORM ──────────────────────────────────────── */
.profile-edit-section {
  padding: 20px 24px;
}
.profile-edit-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

/* ── SUBSCRIPTION TIER CARD (teaser) ────────────────────────── */
.tier-card {
  margin: 0 24px 16px;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.tier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.tier-card-label {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'DM Mono', monospace;
}
.tier-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.tier-card-price { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.tier-card-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.tier-feature {
  font-size: 13px;
  color: var(--white);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.tier-feature::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── USAGE INDICATOR (free tier) ────────────────────────────── */
.usage-bar-wrap {
  margin: 0 24px 20px;
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 16px;
}
.usage-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 10px;
}
.usage-bar-label span:first-child { color: var(--muted); }
.usage-bar-label span:last-child  { color: var(--gold); font-weight: 700; font-family: 'DM Mono', monospace; }
.usage-bar-track {
  height: 6px;
  background: var(--navy-3);
  border-radius: 3px;
  overflow: hidden;
}
.usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 0.6s ease;
}
.usage-bar-fill.full { background: linear-gradient(90deg, var(--red), #ff8a8a); }

/* ============================================================
   UTILITIES MODULE — Phase 3 styles
   ============================================================ */

/* ── UTILITIES HUB GRID ────────────────────────────────────── */
.utilities-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
}

.utility-card {
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: left;
  width: 100%;
}
.utility-card:hover  { border-color: var(--gold); transform: translateX(3px); }
.utility-card:active { transform: scale(0.98); }
.utility-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity 0.2s;
}
.utility-card:hover::before { opacity: 1; }

.utility-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.utility-info    { flex: 1; min-width: 0; }
.utility-name    { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.utility-desc    { font-size: 12px; color: var(--muted); line-height: 1.5; }
.utility-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 8px;
  display: inline-block;
}
.utility-badge.ai  { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold-border); }
.utility-badge.calc{ background: rgba(0,200,150,0.1); color: var(--green); border: 1px solid rgba(0,200,150,0.2); }
.utility-arrow { font-size: 20px; color: var(--muted); align-self: center; flex-shrink: 0; }

/* ── UTILITY TOOL SCREENS ──────────────────────────────────── */
.tool-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Parameter inputs */
.param-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.param-grid.single { grid-template-columns: 1fr; }
.param-grid.three  { grid-template-columns: 1fr 1fr 1fr; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--gold-border);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(201,151,42,0.03);
  margin-bottom: 16px;
  position: relative;
}
.upload-zone:hover { border-color: var(--gold); background: var(--gold-dim); }
.upload-zone.has-file { border-color: var(--green); background: var(--green-dim); }
.upload-zone input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.upload-icon  { font-size: 36px; margin-bottom: 10px; }
.upload-title { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.upload-sub   { font-size: 12px; color: var(--muted); }
.upload-file-name { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 8px; }

/* Method toggle */
.method-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--navy-3);
  border-radius: 12px;
  padding: 4px;
}
.method-btn {
  flex: 1;
  padding: 10px;
  border-radius: 9px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--muted);
  background: transparent;
}
.method-btn.active {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

/* Results table */
.schedule-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--gold-border);
  margin-bottom: 16px;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  min-width: 500px;
}
.schedule-table th {
  background: var(--navy-3);
  color: var(--gold);
  padding: 10px 12px;
  text-align: right;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  white-space: nowrap;
}
.schedule-table th:first-child { text-align: left; }
.schedule-table td {
  padding: 9px 12px;
  color: var(--white);
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.schedule-table td:first-child { text-align: left; color: var(--muted); }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.schedule-table .total-row td {
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 700;
  border-top: 1px solid var(--gold-border);
}

/* Summary cards row */
.summary-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.summary-pill {
  flex: 1;
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.summary-pill-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; font-weight: 500; }
.summary-pill-value { font-size: 13px; font-weight: 700; color: var(--white); font-family: 'DM Mono', monospace; }
.summary-pill-value.gold { color: var(--gold); }

/* Download buttons */
.download-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.btn-download {
  flex: 1;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--gold-border);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-download.excel {
  background: rgba(0,200,150,0.08);
  color: var(--green);
  border-color: rgba(0,200,150,0.25);
}
.btn-download.excel:hover { background: rgba(0,200,150,0.15); }
.btn-download.pdf {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(255,90,90,0.25);
}
.btn-download.pdf:hover { background: rgba(255,90,90,0.12); }

/* CAM output */
.cam-output {
  background: var(--navy-2);
  border-radius: 18px;
  border: 1px solid var(--gold-border);
  padding: 20px;
  margin-bottom: 20px;
}
.cam-section-title {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin: 16px 0 8px;
  font-family: 'DM Mono', monospace;
}
.cam-section-title:first-child { margin-top: 0; }

/* Ratio result cards */
.ratio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.ratio-card {
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 14px;
}
.ratio-name  { font-size: 11px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.ratio-value { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; color: var(--white); }
.ratio-signal { font-size: 11px; margin-top: 4px; font-weight: 600; }
.ratio-signal.good { color: var(--green); }
.ratio-signal.warn { color: var(--gold); }
.ratio-signal.bad  { color: var(--red); }

/* Progress indicator for AI tools */
.ai-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 20px;
}
.ai-progress-icon { font-size: 36px; animation: pulse 1.5s ease-in-out infinite; }
.ai-progress-text { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; }
.ai-progress-text strong { color: var(--white); display: block; margin-bottom: 4px; font-size: 15px; }

/* ============================================================
   PHASE D — DATA PERSISTENCE STYLES
   ============================================================ */

/* ── SAVE BUTTON on results screen ──────────────────────────── */
.result-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 12px;
}
.btn-save {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-save:hover  { background: rgba(201,151,42,0.2); border-color: var(--gold); }
.btn-save.saved  { background: rgba(0,200,150,0.1); color: var(--green); border-color: rgba(0,200,150,0.3); }
.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--gold-border);
  background: var(--navy-2);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-share:hover { border-color: var(--gold); color: var(--gold); }

/* ── NOTES TAB content ───────────────────────────────────────── */
.notes-area {
  padding: 16px 20px;
}
.notes-textarea {
  width: 100%;
  min-height: 160px;
  background: var(--navy-3);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  resize: none;
  transition: var(--transition);
  -webkit-appearance: none;
}
.notes-textarea:focus { border-color: var(--gold); background: var(--navy-4); }
.notes-textarea::placeholder { color: var(--muted); }
.notes-save-btn {
  margin-top: 10px;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.notes-save-btn:hover { background: rgba(201,151,42,0.2); }
.notes-saved-at {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* ── TOAST NOTIFICATION ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-3);
  border: 1px solid var(--gold-border);
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: rgba(0,200,150,0.4); color: var(--green); }
.toast.error   { border-color: rgba(255,90,90,0.4);  color: var(--red);   }

/* ── SAVED BRIEFS SCREEN ─────────────────────────────────────── */
.saved-search-bar {
  margin: 0 20px 16px;
  position: relative;
}
.saved-search-input {
  width: 100%;
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 12px 16px 12px 40px;
  color: var(--white);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: var(--transition);
}
.saved-search-input:focus { border-color: var(--gold); }
.saved-search-input::placeholder { color: var(--muted); }
.saved-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
}

.saved-empty {
  text-align: center;
  padding: 60px 32px;
  color: var(--muted);
}
.saved-empty-icon { font-size: 48px; margin-bottom: 16px; }
.saved-empty-title { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.saved-empty-sub   { font-size: 13px; line-height: 1.6; }

.saved-client-group { margin-bottom: 24px; }
.saved-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 10px;
}
.saved-group-name   { font-size: 15px; font-weight: 700; color: var(--white); }
.saved-group-sector { font-size: 11px; color: var(--gold); background: var(--gold-dim); border: 1px solid var(--gold-border); border-radius: 20px; padding: 2px 10px; font-weight: 600; }
.saved-group-count  { font-size: 11px; color: var(--muted); margin-left: auto; }

.saved-brief-card {
  margin: 0 20px 8px;
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.saved-brief-card:hover { border-color: var(--gold); transform: translateX(2px); }
.saved-brief-tab-icon   { font-size: 20px; width: 36px; height: 36px; background: var(--gold-dim); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.saved-brief-info       { flex: 1; min-width: 0; }
.saved-brief-tab-name   { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.saved-brief-date       { font-size: 11px; color: var(--muted); }
.saved-brief-preview    { font-size: 11px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-brief-delete {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,90,90,0.2);
  background: rgba(255,90,90,0.06);
  color: var(--red);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.saved-brief-delete:hover { background: rgba(255,90,90,0.15); }

/* ── BRIEF VIEWER SCREEN ─────────────────────────────────────── */
.brief-viewer-meta {
  padding: 0 20px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.brief-meta-chip {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 600;
}

/* ── RECENT SEARCHES on Intel screen ─────────────────────────── */
.recent-searches {
  margin-bottom: 20px;
}
.recent-searches-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 10px;
}
.recent-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.recent-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid var(--gold-border);
  background: var(--navy-2);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.recent-chip:hover { border-color: var(--gold); background: var(--gold-dim); color: var(--gold); }
.recent-chip-icon  { font-size: 13px; }

/* ── HOME recent clients (real data) ─────────────────────────── */
.client-row-live .client-status {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
}

/* ============================================================
   PHASE E — PORTFOLIO, LOAN ALERTS, SUBSCRIPTIONS
   ============================================================ */

/* ── STAT CARDS — now tappable ───────────────────────────────── */
.stat-card {
  cursor: pointer;
  position: relative;
}
.stat-card:hover  { border-color: var(--gold); transform: translateY(-2px); }
.stat-card:active { transform: scale(0.97); }
.stat-card::after {
  content: '✏️';
  position: absolute;
  top: 6px; right: 8px;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}
.stat-card:hover::after { opacity: 0.6; }

/* ── BOTTOM SHEET MODAL ──────────────────────────────────────── */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.sheet-backdrop.open { opacity: 1; pointer-events: all; }

.bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy-2);
  border-top: 1px solid var(--gold-border);
  border-radius: 24px 24px 0 0;
  padding: 20px 24px 40px;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.bottom-sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 36px; height: 4px;
  background: var(--gold-border);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.sheet-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.sheet-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── LOAN ALERT STRIP ───────────────────────────────────────── */
.loan-alerts-section { margin: 0 0 4px; }

.loan-alert-card {
  margin: 0 0 8px;
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.loan-alert-card.urgent {
  border-left-color: var(--red);
  background: var(--red-dim);
}
.loan-alert-card.soon {
  border-left-color: var(--gold);
}
.loan-alert-icon { font-size: 20px; flex-shrink: 0; }
.loan-alert-info { flex: 1; min-width: 0; }
.loan-alert-name { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loan-alert-detail { font-size: 11px; color: var(--muted); }
.loan-alert-days {
  font-size: 11px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.loan-alert-days.urgent { background: rgba(255,90,90,0.15); color: var(--red); }
.loan-alert-days.soon   { background: var(--gold-dim); color: var(--gold); }

/* ── SAVED LOANS LIST ───────────────────────────────────────── */
.saved-loan-card {
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.saved-loan-icon { font-size: 22px; width: 40px; height: 40px; background: var(--gold-dim); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.saved-loan-info { flex: 1; min-width: 0; }
.saved-loan-name   { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.saved-loan-detail { font-size: 11px; color: var(--muted); line-height: 1.6; }
.saved-loan-delete { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,90,90,0.2); background: rgba(255,90,90,0.06); color: var(--red); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.saved-loan-delete:hover { background: rgba(255,90,90,0.15); }

/* ── SUBSCRIPTION PLANS ─────────────────────────────────────── */
.plans-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 24px 20px;
}
.plan-card {
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.plan-card.popular {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--navy-3), var(--navy-2));
}
.plan-card.popular::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.plan-badge.free       { background: rgba(136,153,170,0.15); color: var(--muted); }
.plan-badge.popular-b  { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold-border); }
.plan-badge.enterprise { background: rgba(180,100,255,0.1); color: #c084fc; border: 1px solid rgba(180,100,255,0.2); }
.plan-name  { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.plan-price { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.plan-price strong { font-size: 24px; color: var(--white); font-family: 'DM Mono', monospace; }
.plan-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.plan-feature {
  font-size: 13px;
  color: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.plan-feature .check      { color: var(--green);  font-weight: 700; flex-shrink: 0; }
.plan-feature .cross      { color: var(--muted);  font-weight: 700; flex-shrink: 0; }
.plan-feature.dim         { color: var(--muted); }
.plan-current-badge {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  padding: 10px;
  background: rgba(0,200,150,0.08);
  border-radius: 10px;
  border: 1px solid rgba(0,200,150,0.2);
}
.btn-upgrade {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-upgrade.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}
.btn-upgrade.gold:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-upgrade.purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
}
.btn-upgrade.purple:hover { opacity: 0.9; }

/* ── PAYSTACK PROCESSING OVERLAY ────────────────────────────── */
.payment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,17,31,0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  display: none;
}
.payment-overlay.show { display: flex; }
.payment-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--gold-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.payment-overlay-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--white); }
.payment-overlay-sub   { font-size: 13px; color: var(--muted); text-align: center; max-width: 260px; line-height: 1.6; }

/* ============================================================
   PHASE C+E — SUBSCRIPTIONS, PORTFOLIO STATS, LOAN ALERTS
   ============================================================ */

/* ── STAT CARDS — now tappable ───────────────────────────────── */
.stat-card {
  cursor: pointer;
  position: relative;
}
.stat-card:hover  { border-color: var(--gold); transform: translateY(-2px); }
.stat-card:active { transform: scale(0.96); }
.stat-edit-hint {
  position: absolute;
  top: 7px; right: 8px;
  font-size: 10px;
  color: var(--gold);
  opacity: 0.6;
}

/* ── BOTTOM SHEET MODAL ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-sheet {
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 24px 24px 0 0;
  padding: 24px 24px 40px;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.show .modal-sheet { transform: translateY(0); }
.modal-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }

/* ── LOAN ALERT STRIP ───────────────────────────────────────── */
.loan-alert-strip {
  background: linear-gradient(135deg, rgba(255,90,90,0.1), rgba(255,90,90,0.05));
  border: 1px solid rgba(255,90,90,0.25);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 12px;
  cursor: pointer;
  transition: var(--transition);
}
.loan-alert-strip:hover { border-color: rgba(255,90,90,0.5); }
.loan-alert-strip.warn {
  background: linear-gradient(135deg, rgba(255,150,0,0.1), rgba(255,150,0,0.05));
  border-color: rgba(255,150,0,0.25);
}
.loan-alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.loan-alert-icon { font-size: 16px; }
.loan-alert-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  flex: 1;
}
.loan-alert-count {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,90,90,0.2);
  color: #ff8a8a;
}
.loan-alert-strip.warn .loan-alert-count {
  background: rgba(255,150,0,0.2);
  color: #ffaa44;
}
.loan-alert-items { display: flex; flex-direction: column; gap: 5px; }
.loan-alert-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.loan-alert-item strong { color: var(--white); }
.loan-alert-item span  { color: #ff8a8a; font-family: 'DM Mono', monospace; font-weight: 600; }
.loan-alert-strip.warn .loan-alert-item span { color: #ffaa44; }

/* ── SAVED LOANS LIST ───────────────────────────────────────── */
.saved-loan-card {
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.saved-loan-icon {
  width: 40px; height: 40px;
  background: var(--gold-dim);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.saved-loan-info    { flex: 1; min-width: 0; }
.saved-loan-name    { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.saved-loan-meta    { font-size: 11px; color: var(--muted); }
.saved-loan-due     { font-size: 11px; font-weight: 700; font-family: 'DM Mono', monospace; }
.saved-loan-due.urgent { color: var(--red); }
.saved-loan-due.warn   { color: var(--gold); }
.saved-loan-due.ok     { color: var(--green); }
.saved-loan-delete {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,90,90,0.2);
  background: rgba(255,90,90,0.06);
  color: var(--red); font-size: 13px;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.saved-loan-delete:hover { background: rgba(255,90,90,0.15); }

/* ── PAYSTACK UPGRADE SCREEN ────────────────────────────────── */
.upgrade-hero {
  text-align: center;
  padding: 32px 24px 20px;
}
.upgrade-hero-icon { font-size: 48px; margin-bottom: 16px; }
.upgrade-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 900; margin-bottom: 8px;
}
.upgrade-hero-sub { font-size: 13px; color: var(--muted); line-height: 1.6; }

.plan-cards { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.plan-card {
  background: var(--navy-2);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.plan-card:hover  { border-color: var(--gold); }
.plan-card.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity 0.2s;
}
.plan-card.active::before { opacity: 1; }
.plan-card-popular {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 20px;
  padding: 3px 10px;
}
.plan-name  { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.plan-price {
  font-size: 28px; font-weight: 900;
  font-family: 'DM Mono', monospace;
  color: var(--gold); margin-bottom: 14px;
}
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan-feature-list { display: flex; flex-direction: column; gap: 7px; }
.plan-feature {
  font-size: 13px; color: var(--white);
  display: flex; gap: 8px; align-items: flex-start;
}
.plan-feature::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

.upgrade-cta { padding: 0 20px 40px; }
.upgrade-note {
  font-size: 11px; color: var(--muted);
  text-align: center; margin-top: 12px; line-height: 1.7;
}

/* ── PAYMENT STATUS STATES ──────────────────────────────────── */
.payment-processing {
  text-align: center;
  padding: 60px 32px;
}
.payment-processing-icon { font-size: 56px; margin-bottom: 20px; animation: pulse 1.5s ease-in-out infinite; }
.payment-processing-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.payment-processing-sub   { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   TERMS & CONSENT SCREEN — NDPA 2023 / GDPR Compliant
   ============================================================ */

#screen-terms {
  background: var(--navy-1);
  z-index: 200; /* sits above everything */
}

.terms-header {
  padding: 48px 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--gold-border);
  background: var(--navy-2);
}
.terms-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}
.terms-logo span { color: var(--gold); }
.terms-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.terms-header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.terms-header-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.terms-version {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  font-family: 'DM Mono', monospace;
}

/* Scrollable document body */
.terms-body {
  padding: 24px 24px 0;
  overflow-y: auto;
  flex: 1;
}

.terms-section {
  margin-bottom: 24px;
}
.terms-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'DM Mono', monospace;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold-border);
}
.terms-text {
  font-size: 13px;
  color: #b8c8d8;
  line-height: 1.8;
}
.terms-text strong {
  color: var(--white);
  font-weight: 600;
}
.terms-text ul {
  margin: 10px 0 10px 16px;
  padding: 0;
}
.terms-text ul li {
  margin-bottom: 6px;
  color: #b8c8d8;
}

.terms-highlight {
  background: rgba(201,151,42,0.07);
  border: 1px solid var(--gold-border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.terms-highlight strong { color: var(--gold); }

.terms-warning {
  background: rgba(255,90,90,0.06);
  border: 1px solid rgba(255,90,90,0.2);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.terms-warning strong { color: var(--red); }

/* Scroll progress indicator */
.terms-scroll-hint {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 12px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* Consent checkboxes */
.terms-footer {
  background: var(--navy-2);
  border-top: 1px solid var(--gold-border);
  padding: 20px 24px 36px;
  flex-shrink: 0;
}
.consent-checks {
  margin-bottom: 18px;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}
.consent-check:last-child { border-bottom: none; }
.consent-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--gold-border);
  background: var(--navy-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
  margin-top: 1px;
  cursor: pointer;
}
.consent-checkbox.checked {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}
.consent-label {
  font-size: 12px;
  color: #b8c8d8;
  line-height: 1.6;
}
.consent-label strong { color: var(--white); }

/* Accept button — disabled until all boxes checked */
.btn-accept-terms {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #C9972A, #E5B84A);
  border: none;
  color: #07111F;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.4;
  pointer-events: none;
  letter-spacing: 0.3px;
}
.btn-accept-terms.ready {
  opacity: 1;
  pointer-events: all;
  box-shadow: 0 6px 24px rgba(201,151,42,0.35);
}
.btn-accept-terms.ready:hover  { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(201,151,42,0.45); }
.btn-accept-terms.ready:active { transform: scale(0.98); }

.terms-decline-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
}
.terms-decline-link:hover { color: var(--red); }

.terms-already-accepted {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
}
