/* ============================================================
   ALEXZANDER — PROTOTYPE STYLESHEET
   Design tokens: deep teal (trust/calm) + warm gold (verified/
   warmth) + dusty rose (like/heart), Fraunces display serif +
   Inter body sans. Every class below is one actually emitted by
   index.html or app.js — see the two files for usage.
   ============================================================ */
:root {
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --surface-sunken: #F1EDE3;
  --ink: #23302D;
  --ink-soft: #5C6A65;
  --ink-faint: #8B968F;
  --primary: #2B4A47;
  --primary-dark: #1C3432;
  --primary-tint: #E4EBE9;
  --accent-gold: #B8863C;
  --accent-gold-tint: #F3E7D0;
  --accent-rose: #A8505F;
  --accent-rose-tint: #F5E1E3;
  --border: #E3DCCC;
  --border-strong: #CFC6B0;
  --danger: #A93E3E;
  --danger-tint: #F5E2E0;
  --success: #3C6E56;
  --success-tint: #E1EDE4;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 10px 30px rgba(28, 40, 37, 0.10);
  --shadow-pop: 0 18px 48px rgba(28, 40, 37, 0.24);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #E9E4D6;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.hidden { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }

/* ============================================================
   DEMO BAR
   ============================================================ */
.demo-bar {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; background: var(--primary-dark); color: #F4EFE2; font-size: 13px;
}
.demo-bar-label { font-weight: 600; letter-spacing: 0.02em; }
.demo-bar-actions { display: flex; gap: 8px; }
.demo-chip {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #F4EFE2; padding: 6px 12px; border-radius: 20px; font-size: 12px;
}
.demo-chip:hover { background: rgba(255,255,255,0.2); }

.stage {
  min-height: calc(100vh - 40px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px;
}

/* ============================================================
   PHONE FRAME
   ============================================================ */
.phone-frame {
  position: relative; width: 390px; height: 844px;
  background: var(--bg); border-radius: 44px;
  box-shadow: var(--shadow-pop), 0 0 0 10px #16211f, 0 0 0 11px #37433f;
  overflow: hidden; flex-shrink: 0;
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #16211f; border-radius: 0 0 16px 16px; z-index: 50;
}
.phone-screen { position: relative; width: 100%; height: 100%; }

.screen {
  position: absolute; inset: 0; display: none; flex-direction: column; background: var(--bg);
}
.screen.active { display: flex; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 40px 12px 14px; background: var(--bg); flex-shrink: 0;
}
.topbar h1 {
  flex: 1; font-family: var(--font-display); font-size: 18px; font-weight: 500;
  margin: 0; text-align: center;
}
.topbar.plain { padding-top: 40px; }
.topbar-spacer { width: 36px; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.app-topbar { justify-content: space-between; padding-top: 44px; }
.app-topbar h1 { text-align: left; flex: none; font-size: 22px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: transparent;
  font-size: 18px; display: flex; align-items: center; justify-content: center; color: var(--ink);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-sunken); }
.browse-counter {
  font-size: 12px; color: var(--ink-soft); background: var(--surface-sunken);
  padding: 5px 10px; border-radius: 20px; white-space: nowrap;
}

/* ============================================================
   SCREEN CONTENT / FOOTER
   ============================================================ */
.screen-content { flex: 1; overflow-y: auto; padding: 6px 20px 24px; }
.screen-content.no-pad { padding: 0; }
.screen-content.center-content {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 28px;
}
.tab-screen .screen-content { padding-bottom: 12px; }
.screen-footer { flex-shrink: 0; padding: 14px 20px 26px; background: var(--bg); border-top: 1px solid var(--border); }
.screen-footer.stacked { display: flex; flex-direction: column; gap: 10px; }
.screen-footer.row { display: flex; justify-content: center; gap: 24px; border-top: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { border: none; border-radius: 100px; padding: 14px 22px; font-size: 15px; font-weight: 600; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: scale(0.98); }
.btn.full { width: 100%; }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.round { width: 44px; height: 44px; border-radius: 50%; padding: 0; }
.btn-primary { background: var(--primary); color: #FBF8F1; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { background: var(--border-strong); color: #fff; cursor: not-allowed; }
.btn-secondary { background: var(--primary-tint); color: var(--primary-dark); }
.btn-secondary:hover { background: #d7e3e0; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f3333; }
.btn-text { background: transparent; color: var(--primary); font-weight: 600; }
.btn-text.danger { color: var(--danger); }
.btn-social {
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink);
  border-radius: 100px; padding: 13px 22px; font-weight: 500; margin-bottom: 10px; width: 100%;
}
.btn-link {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--primary); font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.btn-link.danger { color: var(--danger); }

.round-btn {
  width: 60px; height: 60px; border-radius: 50%; border: none; font-size: 24px;
  box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.round-btn.pass { background: #fff; color: var(--danger); border: 1px solid var(--border); }
.round-btn.like { background: var(--accent-rose); color: #fff; }
.round-btn:active { transform: scale(0.92); }
.round-btn:disabled { opacity: 0.4; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--ink-faint); }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="month"], input[type="file"], select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 15px; color: var(--ink);
}
textarea { resize: vertical; font-family: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
.field-error { color: var(--danger); font-size: 13px; margin: -8px 0 10px; min-height: 16px; }
.hint { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin: 6px 0 16px; }
.legal-note { color: var(--ink-faint); font-size: 12px; line-height: 1.5; text-align: center; margin-top: 14px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); padding: 12px 0; }
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); }
.checkbox-row.emphasis { background: var(--primary-tint); padding: 14px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; }

.segmented { display: flex; background: var(--surface-sunken); border-radius: 100px; padding: 4px; margin-bottom: 18px; }
.segment { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 100px; font-weight: 600; color: var(--ink-soft); }
.segment.active { background: var(--primary); color: #fff; }
.conditional-block.hidden { display: none; }

.option-list { display: flex; flex-direction: column; gap: 8px; }
.option-list.small .option-row { padding: 10px 14px; font-size: 13px; }
.option-row {
  text-align: left; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 15px; color: var(--ink); width: 100%;
}
.option-row.active { border-color: var(--primary); background: var(--primary-tint); color: var(--primary-dark); font-weight: 600; }
.option-row.danger { color: var(--danger); }
.option-list.multi { flex-direction: row; flex-wrap: wrap; }
.option-list.multi .option-row { border-radius: 100px; padding: 10px 16px; width: auto; }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--border-strong); border-radius: 100px; transition: .15s; }
.slider::before { content:""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ============================================================
   WELCOME
   ============================================================ */
.welcome-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 32px; text-align: center; }
.welcome-mark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #F4EFE2;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 28px;
  margin-bottom: 20px; box-shadow: 0 0 0 8px var(--accent-gold-tint);
}
.welcome-mark.small { width: 48px; height: 48px; font-size: 20px; margin: 0 auto 14px; }
.welcome-title { font-size: 34px; font-weight: 500; margin: 0 0 14px; color: var(--primary-dark); }
.welcome-sub { color: var(--ink-soft); font-size: 15px; line-height: 1.6; max-width: 300px; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: var(--accent-gold); font-weight: 700; margin: 10px 0 6px; }
.section-title { font-size: 22px; margin: 0 0 12px; color: var(--primary-dark); }
.body-text { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; margin-bottom: 14px; }
.guideline-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 14px; }
.guideline-list li { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.guideline-list li strong { color: var(--ink); }
.benefit-list { padding-left: 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.9; }
.notice-box { background: var(--accent-gold-tint); border: 1px solid #e2cfa0; border-radius: var(--radius-sm); padding: 14px; font-size: 13.5px; color: #6b4f1f; margin-bottom: 16px; line-height: 1.55; }
.notice-box.success-box { background: var(--success-tint); border-color: #b9d8c4; color: var(--success); margin-bottom: 18px; }

/* ============================================================
   PROGRESS
   ============================================================ */
.progress-track { height: 4px; background: var(--surface-sunken); border-radius: 4px; margin: 4px 0 18px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent-gold); transition: width .2s ease; }

/* ============================================================
   PHOTO GRID (profile setup)
   ============================================================ */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-slot {
  aspect-ratio: 3/4; border-radius: var(--radius-sm); border: 2px dashed var(--border-strong);
  background: var(--surface-sunken); display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--ink-faint); position: relative; overflow: hidden; cursor: pointer;
}
.photo-slot.filled { border-style: solid; border-color: var(--border); cursor: default; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.remove-photo { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; border: none; font-size: 12px; }
.primary-tag { position: absolute; bottom: 4px; left: 4px; background: rgba(0,0,0,0.55); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 6px; }

/* ============================================================
   GUIDED BIO PROMPTS
   ============================================================ */
.prompt-list { display: flex; flex-direction: column; gap: 10px; }
.prompt-item { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--surface); cursor: pointer; }
.prompt-item.answered { border-color: var(--primary); background: var(--primary-tint); }
.prompt-item-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prompt-item-prompt { font-size: 14px; font-weight: 500; color: var(--ink); flex: 1; }
.prompt-item-answer { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); font-style: italic; }
.prompt-add-btn { font-size: 15px; font-weight: 700; color: var(--primary); background: none; border: none; width: 24px; height: 24px; flex-shrink: 0; }

/* ============================================================
   PROFILE CARD (discovery detail + preview + admin doc context)
   ============================================================ */
.profile-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.profile-card-photo {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--primary-tint), var(--accent-gold-tint));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
.profile-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.verified-badge {
  position: absolute; top: 14px; left: 14px; background: rgba(27, 42, 40, 0.85); color: #F3E7D0;
  padding: 5px 11px; border-radius: 100px; font-size: 11px; font-weight: 700;
}
.verified-badge::before { content: "\2713 "; }
.priority-flag {
  position: absolute; top: 14px; right: 14px; background: var(--accent-gold); color: #fff;
  padding: 5px 11px; border-radius: 100px; font-size: 10px; font-weight: 700; letter-spacing: 0.03em;
}
.profile-card-body { padding: 18px 20px 22px; }
.profile-card-name { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--primary-dark); }
.profile-card-loc { font-size: 13px; color: var(--ink-soft); margin-top: 2px; margin-bottom: 6px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.tag { background: var(--surface-sunken); color: var(--ink-soft); font-size: 12px; padding: 5px 11px; border-radius: 100px; }
.tag.gold { background: var(--accent-gold-tint); color: #6b4f1f; }
.info-block { margin-bottom: 16px; }
.info-block-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 700; margin-bottom: 4px; }
.info-block-value { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.bio-answer-block { padding: 14px 0; border-top: 1px solid var(--border); }
.bio-answer-block .q { font-size: 12.5px; font-weight: 700; color: var(--accent-gold); margin-bottom: 4px; }
.bio-answer-block .a { font-size: 15px; color: var(--ink); line-height: 1.55; font-family: var(--font-display); }

/* ============================================================
   DISCOVERY CARD STACK
   ============================================================ */
.card-stack-area { position: relative; height: calc(100% - 100px); padding: 14px 20px 0; display: flex; }
.swipe-card {
  flex: 1; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card); transition: transform .2s ease, opacity .2s ease;
}
.swipe-card.exit-like { transform: translateX(130%) rotate(14deg); opacity: 0; }
.swipe-card.exit-pass { transform: translateX(-130%) rotate(-14deg); opacity: 0; }
.swipe-card-info { padding: 16px 18px; }
.swipe-card-name { font-family: var(--font-display); font-size: 20px; color: var(--primary-dark); }
.swipe-card-meta { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.swipe-actions { display: flex; justify-content: center; gap: 28px; padding: 16px 0 20px; flex-shrink: 0; }

.discovery-empty, .upgrade-lock, .list-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px 30px; color: var(--ink-soft); width: 100%;
}
.discovery-empty .emoji, .list-empty .emoji, .upgrade-lock .paywall-icon { font-size: 40px; margin-bottom: 14px; }
.discovery-empty h3, .list-empty h3 { font-size: 19px; color: var(--primary-dark); margin: 0 0 8px; }
.discovery-empty p, .list-empty p { font-size: 13.5px; margin: 0 0 6px; }
.list-empty { padding: 60px 24px; }
.upgrade-lock { padding: 40px 30px; }

/* ============================================================
   LISTS: matches / messages / blocked
   ============================================================ */
.menu-section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 700; margin: 18px 0 8px; }
.new-match-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 16px; }
.new-match-avatar { flex-shrink: 0; width: 74px; text-align: center; cursor: pointer; }
.new-match-avatar img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-gold); margin-bottom: 6px; }
.new-match-avatar span { display: block; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.list-row img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-sunken); }
.list-row-body { flex: 1; min-width: 0; }
.list-row-name { font-weight: 600; font-size: 15px; }
.list-row-sub { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-verified { color: var(--accent-gold); font-size: 12px; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-rose); flex-shrink: 0; }

/* ============================================================
   CHAT
   ============================================================ */
.chat-topbar-identity { flex: 1; display: flex; align-items: center; gap: 10px; }
.chat-topbar-identity img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.chat-topbar-identity span { font-weight: 600; font-size: 15px; }
.chat-body { padding: 16px 16px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.msg { max-width: 76%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; }
.msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--primary); color: #FBF8F1; border-bottom-right-radius: 4px; }
.chat-hello-prompt { text-align: center; padding: 40px 30px; color: var(--ink-soft); font-size: 13.5px; margin: auto; }
.chat-composer { display: flex; gap: 10px; padding: 10px 14px 20px; border-top: 1px solid var(--border); background: var(--bg); flex-shrink: 0; }
.chat-composer input { flex: 1; border-radius: 100px; }
.chat-composer input:disabled { background: var(--surface-sunken); color: var(--ink-faint); }
.chat-limit-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--accent-gold-tint); padding: 10px 14px; font-size: 12.5px; color: #6b4f1f; flex-shrink: 0; }

/* ============================================================
   PROFILE / MENU TAB
   ============================================================ */
.profile-header-card { display: flex; align-items: center; gap: 14px; padding: 10px 0 20px; }
.profile-header-card img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profile-header-name { font-family: var(--font-display); font-size: 20px; }
.profile-header-sub { font-size: 13px; color: var(--ink-soft); margin: 2px 0 6px; }

.status-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; margin-top: 4px; margin-right: 4px; }
.status-chip.free { background: var(--surface-sunken); color: var(--ink-soft); }
.status-chip.premium { background: var(--accent-gold-tint); color: #6b4f1f; }
.status-chip.verified, .status-chip.approved { background: var(--success-tint); color: var(--success); }
.status-chip.pending { background: #EFE6CE; color: #7a6222; }
.status-chip.rejected { background: var(--danger-tint); color: var(--danger); }

.menu-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 8px; font-size: 14.5px; color: var(--ink); text-align: left;
}
.menu-row .chev { color: var(--ink-faint); }
.menu-row.highlight { background: var(--primary-tint); border-color: var(--primary-tint); font-weight: 600; color: var(--primary-dark); }

.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.settings-row.toggle-row { padding-right: 2px; }
.settings-value { color: var(--ink-soft); font-size: 13px; }

.edit-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface);
}
.edit-row-label { font-weight: 700; font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.edit-row-value { font-size: 14px; color: var(--ink-soft); margin-top: 3px; }
.edit-row button { background: none; border: 1px solid var(--border-strong); color: var(--primary); font-weight: 600; font-size: 12.5px; padding: 7px 14px; border-radius: 100px; flex-shrink: 0; }

/* ============================================================
   VERIFY / SUBSCRIPTION
   ============================================================ */
.verify-badge-preview { align-self: center; margin: 10px auto 22px; width: fit-content; background: var(--success-tint); color: var(--success); font-weight: 700; padding: 10px 20px; border-radius: 100px; font-size: 14px; }
.status-badge { display: inline-block; padding: 8px 18px; border-radius: 100px; font-weight: 700; font-size: 13px; margin-bottom: 18px; }
.status-badge.pending { background: #EFE6CE; color: #7a6222; }
.status-badge.approved { background: var(--success-tint); color: var(--success); }
.status-badge.rejected { background: var(--danger-tint); color: var(--danger); }

.upload-box { border: 2px dashed var(--border-strong); border-radius: var(--radius-md); padding: 30px 20px; text-align: center; background: var(--surface-sunken); margin-bottom: 14px; }
.upload-box label.btn { display: inline-block; margin: 10px 0; }
.file-chip { display: flex; align-items: center; gap: 8px; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 10px 16px; font-size: 13.5px; }
.file-chip button { border: none; background: none; color: var(--ink-faint); font-size: 13px; }

.paywall-icon { font-size: 32px; color: var(--accent-gold); margin-bottom: 10px; }

.plan-card { border: 2px solid var(--border-strong); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 12px; position: relative; background: var(--surface); }
.plan-card.active { border-color: var(--primary); background: var(--primary-tint); }
.plan-badge { position: absolute; top: -10px; right: 16px; background: var(--accent-gold); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.plan-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.plan-name { font-weight: 700; font-size: 15px; }
.plan-price { font-family: var(--font-display); font-size: 18px; color: var(--primary-dark); }
.plan-price small { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.plan-desc { margin: 0; font-size: 13px; color: var(--ink-soft); }

.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .8s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-check { width: 64px; height: 64px; border-radius: 50%; background: var(--success-tint); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 16px; }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav { flex-shrink: 0; display: flex; border-top: 1px solid var(--border); background: var(--surface); padding: 8px 8px 22px; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; color: var(--ink-faint); font-size: 10.5px; font-weight: 600; padding: 6px 0; }
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--primary); }
.nav-item.active svg { stroke: var(--primary); }

/* ============================================================
   OVERLAYS / SHEETS / TOASTS
   ============================================================ */
.overlay { position: fixed; inset: 0; z-index: 900; background: rgba(20, 28, 26, 0.6); display: flex; align-items: center; justify-content: center; padding: 24px; }
.match-celebration { background: var(--bg); border-radius: var(--radius-lg); padding: 34px 26px; text-align: center; max-width: 340px; width: 100%; box-shadow: var(--shadow-pop); }
.match-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--accent-gold); font-weight: 700; margin: 0 0 14px; }
.match-photos { display: flex; justify-content: center; margin-bottom: 18px; position: relative; height: 100px; }
.match-photos img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); box-shadow: 0 0 0 3px var(--accent-gold); position: absolute; }
.match-photos img:first-child { left: calc(50% - 84px); }
.match-photos img:last-child { left: calc(50% - 12px); }
.match-celebration h2 { font-size: 24px; margin: 0 0 8px; color: var(--primary-dark); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(20, 28, 26, 0.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 430px; border-radius: 24px 24px 0 0; padding: 12px 22px 30px; max-height: 82vh; overflow-y: auto; box-shadow: var(--shadow-pop); }
.sheet.small { max-width: 380px; border-radius: 20px; margin-bottom: 40px; }
.sheet-handle { width: 40px; height: 4px; background: var(--border-strong); border-radius: 4px; margin: 6px auto 16px; }
.sheet h2 { font-size: 19px; margin: 0 0 12px; color: var(--primary-dark); }
.sheet-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.char-count { text-align: right; font-size: 11px; color: var(--ink-faint); margin-top: 4px; }

.toast-stack { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--primary-dark); color: #F4EFE2; padding: 12px 20px; border-radius: 100px; font-size: 13.5px; box-shadow: var(--shadow-card); animation: toast-in .2s ease; max-width: 300px; text-align: center; }
.toast.success { background: var(--success); }
.toast.danger { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-app { position: fixed; inset: 0; z-index: 800; background: var(--bg); overflow-y: auto; }
.admin-screen { display: none; }
.admin-screen.active { display: block; }
.admin-login-box { max-width: 360px; margin: 90px auto; background: var(--surface); border-radius: var(--radius-lg); padding: 40px 32px; box-shadow: var(--shadow-card); text-align: center; }
.admin-login-box h1 { font-size: 22px; margin: 0 0 6px; }
.admin-login-box .form-group { text-align: left; margin-top: 16px; }

.admin-shell { display: flex; min-height: 100vh; }
.admin-shell.hidden { display: none; }
.admin-sidebar { width: 232px; flex-shrink: 0; background: var(--primary-dark); color: #EDE7D8; padding: 26px 18px; display: flex; flex-direction: column; min-height: 100vh; }
.admin-brand { font-family: var(--font-display); font-size: 19px; margin-bottom: 26px; }
.admin-brand span { opacity: 0.6; font-size: 13px; font-family: var(--font-body); display: block; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav-item { text-align: left; background: none; border: none; color: #C9CFC6; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.admin-nav-item:hover { background: rgba(255,255,255,0.06); }
.admin-nav-item.active { background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; }

.admin-main { flex: 1; padding: 40px 46px; max-width: 980px; }
.admin-main h1 { font-size: 26px; margin: 0 0 20px; color: var(--primary-dark); }
.admin-metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.admin-metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.admin-metric-num { font-family: var(--font-display); font-size: 30px; color: var(--primary-dark); }
.admin-metric-label { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.admin-quick-links { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.admin-quick-link { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; color: var(--primary-dark); font-weight: 600; }
.admin-quick-link:hover { background: var(--primary-tint); }

.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.admin-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); padding: 12px 16px; background: var(--surface-sunken); }
.admin-table td { padding: 13px 16px; font-size: 13.5px; border-top: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--primary-tint); }
.admin-table td.row-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.admin-table td.row-name img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.table-link-btn { background: var(--primary); color: #fff; border: none; padding: 7px 14px; border-radius: 100px; font-size: 12px; font-weight: 600; }

.admin-content-list { list-style: none; padding: 0; margin: 0 0 20px; }
.admin-content-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 8px; font-size: 13.5px; }

.verify-detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; margin-top: 16px; align-items: start; }
.verify-detail-actions { display: flex; gap: 10px; margin-top: 18px; }
.verify-detail-doc { background: var(--surface-sunken); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: 46px 20px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.doc-icon { font-size: 34px; margin-bottom: 10px; }
@media (max-width: 760px) { .verify-detail-grid { grid-template-columns: 1fr; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 460px) {
  .stage { padding: 0; }
  .demo-bar { position: fixed; top: 0; left: 0; right: 0; }
  .stage { padding-top: 40px; }
  .phone-frame { width: 100vw; height: calc(100vh - 40px); border-radius: 0; box-shadow: none; }
}
@media (max-width: 900px) {
  .admin-sidebar { width: 180px; padding: 20px 12px; }
  .admin-main { padding: 28px 22px; }
  .admin-metric-grid { grid-template-columns: 1fr; }
}
