/* ════════════════════════════════════════════════════════════════════════
   LINKUP Naija — Web/PWA redesign
   Design system per SVP spec: obsidian + frosted glass + electric emerald.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --bg:          #0D0F12;   /* obsidian */
  --bg-elev:     #12151A;
  --bg-elev-2:   #171B21;
  --glass:       rgba(255, 255, 255, 0.05);
  --glass-strong:rgba(255, 255, 255, 0.09);
  --stroke:      rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);

  --em:          #00E676;   /* electric emerald */
  --em-deep:     #10B981;
  --em-dim:      rgba(0, 230, 118, 0.14);
  --em-glow:     rgba(0, 230, 118, 0.35);

  --gold:        #FFC94D;
  --gold-deep:   #E8A800;
  --gold-dim:    rgba(232, 168, 0, 0.14);

  --danger:      #FF5449;
  --danger-dim:  rgba(255, 84, 73, 0.14);

  --text:        #F4F6F5;
  --text-2:      rgba(244, 246, 245, 0.66);
  --text-3:      rgba(244, 246, 245, 0.40);

  /* Shape */
  --r-card: 20px;
  --r-md:   14px;
  --r-sm:   10px;
  --r-pill: 999px;

  /* Layout */
  --nav-h: 64px;
  --page-max: 520px;   /* phone-first canvas, centers on desktop */

  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--em); text-decoration: none; }
[hidden] { display: none !important; }

/* Subtle ambient backdrop — two soft radial glows, cheap to paint */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 420px at 85% -60px, rgba(0, 230, 118, 0.07), transparent 65%),
    radial-gradient(480px 420px at -60px 100%, rgba(232, 168, 0, 0.05), transparent 65%),
    var(--bg);
}

/* ── App frame ─────────────────────────────────────────────────────────── */
#app {
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

.screen { animation: screenIn 0.22s ease both; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen, .sheet, .modal { animation: none !important; }
  .pulse-dot::after, .radar-sweep, .blip { animation: none !important; }
}

/* ── Glass card ────────────────────────────────────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-card);
}
/* backdrop-filter only where supported AND device likely handles it.
   Fallback: slightly more opaque solid — same look, no GPU cost. */
@supports (backdrop-filter: blur(16px)) {
  body:not(.lite) .glass { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
}
body.lite .glass, .glass { background-color: rgba(23, 27, 33, 0.82); }
@supports (backdrop-filter: blur(16px)) {
  body:not(.lite) .glass { background-color: var(--glass); }
}

.card-pad { padding: 16px; }

/* ── Typography ────────────────────────────────────────────────────────── */
.h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; margin: 0; }
.h3 { font-size: 15px; font-weight: 700; margin: 0; }
.sub  { color: var(--text-2); font-size: 13.5px; }
.tiny { color: var(--text-3); font-size: 11.5px; }
.label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--r-pill);
  padding: 12px 22px; font-size: 14.5px; font-weight: 700;
  color: var(--text); background: var(--glass-strong);
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, #00E676 0%, #10B981 100%);
  color: #05130B;
  box-shadow: 0 4px 22px var(--em-glow);
}
.btn-primary:hover { box-shadow: 0 6px 30px var(--em-glow); }

.btn-ghost { background: transparent; border: 1px solid var(--stroke-strong); }
.btn-gold {
  background: linear-gradient(135deg, #FFC94D 0%, #E8A800 100%);
  color: #1B1200;
  box-shadow: 0 4px 22px rgba(232, 168, 0, 0.3);
}
.btn-danger { background: var(--danger-dim); color: var(--danger); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ── Chips ─────────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--stroke);
  color: var(--text-2); font-size: 13px; font-weight: 600;
  transition: all 0.15s ease; user-select: none;
}
.chip.on {
  background: var(--em-dim); border-color: rgba(0, 230, 118, 0.45);
  color: var(--em); box-shadow: 0 0 14px rgba(0, 230, 118, 0.15);
}
.chip-gold { background: var(--gold-dim); border-color: rgba(232,168,0,0.4); color: var(--gold); }

/* Floating stat chip (profile hero) */
.stat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(13, 15, 18, 0.6); border: 1px solid var(--stroke);
  font-size: 12.5px; font-weight: 700;
  color: var(--text);
}
/* Over a photo the translucent version loses contrast — darken it. */
.hero .stat-chip { background: rgba(8, 12, 10, 0.78); border-color: var(--stroke-strong); }
@supports (backdrop-filter: blur(10px)) {
  body:not(.lite) .stat-chip { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

/* ── Micro-glass badge (Gold / Premium pill on photos) ─────────────────── */
.badge-glass {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 5px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 800; letter-spacing: 0.03em;
  background: rgba(13, 15, 18, 0.55); border: 1px solid var(--stroke-strong);
  display: inline-flex; align-items: center; gap: 4px;
}
@supports (backdrop-filter: blur(8px)) {
  body:not(.lite) .badge-glass { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.badge-glass.gold { color: var(--gold); border-color: rgba(232, 168, 0, 0.45); }
.badge-glass.em   { color: var(--em);   border-color: rgba(0, 230, 118, 0.45); }

/* ── Avatars & gradient initials ───────────────────────────────────────── */
.avatar {
  border-radius: 50%; object-fit: cover; background: var(--bg-elev-2);
  flex-shrink: 0;
}
.avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 800; flex-shrink: 0;
  text-transform: uppercase;
}
/* gradient set — assigned by name hash in JS via .g0..g5 */
.g0 { background: linear-gradient(135deg, #00E676, #007E5B); }
.g1 { background: linear-gradient(135deg, #FFC94D, #C25E00); }
.g2 { background: linear-gradient(135deg, #7C4DFF, #3D1EA8); }
.g3 { background: linear-gradient(135deg, #FF5FA2, #B4257C); }
.g4 { background: linear-gradient(135deg, #29B6F6, #0B5FA8); }
.g5 { background: linear-gradient(135deg, #FF8A65, #C33A12); }

/* Online pulse dot */
.pulse-dot {
  position: relative; width: 12px; height: 12px; border-radius: 50%;
  background: var(--em); border: 2px solid var(--bg);
}
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--em); opacity: 0;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.8; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}
.dot-away { background: var(--gold); }

/* ── Top bar ───────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 10px;
  background: linear-gradient(to bottom, rgba(13,15,18,0.92) 60%, transparent);
}
.topbar .brand {
  font-size: 17px; font-weight: 800; letter-spacing: 0.14em;
}
.brand .brand-up { color: var(--em); }

/* ── Bottom navigation (blurred, 5 tabs, micro-badges) ─────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(15, 18, 22, 0.88);
  border-top: 1px solid var(--stroke);
  display: flex; justify-content: center;
}
@supports (backdrop-filter: blur(18px)) {
  body:not(.lite) .bottom-nav { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(15, 18, 22, 0.7); }
}
.bottom-nav .nav-inner {
  width: 100%; max-width: var(--page-max);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.nav-tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; background: none; border: 0; color: var(--text-3);
  font-size: 10px; font-weight: 700; padding-top: 8px;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-tab svg { width: 23px; height: 23px; }
.nav-emoji { font-size: 22px; line-height: 1; filter: saturate(1.05); }
.nav-tab:not(.on) .nav-emoji { opacity: 0.8; }
.nav-tab.on { color: var(--em); }
.nav-tab.on .nav-glow {
  position: absolute; top: 2px; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,230,118,0.22), transparent 70%);
}
.nav-badge {
  position: absolute; top: 4px; right: calc(50% - 20px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--em); color: #05130B;
  font-size: 9.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ── Story-style progress bars (Circle daily intake) ───────────────────── */
.story-bars { display: flex; gap: 5px; }
.story-bars .bar {
  flex: 1; height: 3.5px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.16); overflow: hidden;
}
.story-bars .bar > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--em), #7CFFB5);
  border-radius: 2px; transition: width 0.5s ease;
}
.story-bars .bar.done > i { width: 100%; }

/* ── Edge-to-edge media cards (Circle grid) ────────────────────────────── */
.media-card {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--bg-elev-2);
  border: 1px solid var(--stroke);
}
/* Matches img, video AND the letter-fallback div. Scoping this to img/video
   left the fallback in normal flow: it stretched the card past its 3/4 box,
   which pushed the centred "View profile" veil down onto the name. */
.media-card .ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.media-card .shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 12, 0.88) 0%, rgba(8,10,12,0.25) 42%, transparent 65%);
}
.media-card .meta {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
}
.media-card .name { font-size: 15.5px; font-weight: 800; }
.media-card .iq {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px; padding: 3px 9px; border-radius: var(--r-pill);
  background: rgba(0, 230, 118, 0.16); border: 1px solid rgba(0,230,118,0.35);
  color: var(--em); font-size: 11px; font-weight: 800;
}
.media-card .watched-veil {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(13, 15, 18, 0.45);
  /* Centre within the area ABOVE the meta block (name + MatchIQ + button),
     otherwise the label sits on top of the name on narrow two-up cards. */
  padding-bottom: 96px;
}
.media-card .play-glass {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(13,15,18,0.55); border: 1px solid var(--stroke-strong);
  display: flex; align-items: center; justify-content: center;
}
@supports (backdrop-filter: blur(8px)) {
  body:not(.lite) .play-glass { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

/* ── Grids ─────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Bento grid for Matches: first item spans 2 cols */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bento > .media-card:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

/* ── Story tray (Messages: Active Matches) ─────────────────────────────── */
.story-tray {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 18px 12px;
  scrollbar-width: none;
}
.story-tray::-webkit-scrollbar { display: none; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 62px; flex-shrink: 0; }
.story-ring {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%; padding: 2.5px;
  background: linear-gradient(135deg, var(--em), var(--gold));
}
.story-ring .avatar, .story-ring .avatar-fallback { width: 100%; height: 100%; border: 2.5px solid var(--bg); }
.story-item .nm {
  font-size: 11px; color: var(--text-2); font-weight: 600;
  max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.story-ring .pulse-dot { position: absolute; bottom: 2px; right: 2px; }

/* ── Thread rows ───────────────────────────────────────────────────────── */
.thread {
  display: flex; align-items: center; gap: 15px;
  padding: 16px; border-radius: var(--r-card); width: 100%;
  text-align: left; color: inherit; margin-bottom: 10px;
  background: var(--glass); border: 1px solid var(--stroke);
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.thread:hover, .thread:active { background: var(--glass-strong); border-color: var(--stroke-strong); }
.thread .avatar, .thread .avatar-fallback { width: 62px; height: 62px; font-size: 23px; }
.thread .t-body { flex: 1; min-width: 0; }
.thread .t-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.thread .t-name { font-weight: 700; font-size: 16.5px; }
.thread .t-time { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.thread .t-msg {
  color: var(--text-2); font-size: 14.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.thread.unread .t-name, .thread.unread .t-msg { color: var(--text); font-weight: 800; }
.thread .unread-pill {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--em); color: #05130B; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.thread .avatar-wrap { position: relative; flex-shrink: 0; }
.thread .avatar-wrap .pulse-dot { position: absolute; bottom: 1px; right: 1px; }

/* ── Chat ──────────────────────────────────────────────────────────────── */
.chat-scroll { padding: 12px 18px; display: flex; flex-direction: column; gap: 8px; }
.bubble {
  max-width: 78%; padding: 10px 14px; font-size: 14.5px;
  border-radius: 18px; word-wrap: break-word;
}
.bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0,230,118,0.9), rgba(16,185,129,0.9));
  color: #05130B; border-bottom-right-radius: 6px; font-weight: 600;
}
.bubble.them {
  align-self: flex-start; background: var(--glass-strong);
  border: 1px solid var(--stroke); border-bottom-left-radius: 6px;
}
.bubble .bt { display: block; font-size: 10px; opacity: 0.55; margin-top: 3px; }
.chat-input-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 18, 22, 0.9); border-top: 1px solid var(--stroke);
  display: flex; justify-content: center; gap: 10px;
}
@supports (backdrop-filter: blur(18px)) {
  body:not(.lite) .chat-input-bar { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}
.chat-input-bar .inner { display: flex; gap: 10px; width: 100%; max-width: var(--page-max); }
.chat-input-bar input {
  flex: 1; border: 1px solid var(--stroke-strong); border-radius: var(--r-pill);
  background: var(--glass); color: var(--text);
  padding: 12px 18px; font-size: 14.5px; font-family: inherit; outline: none;
}
.chat-input-bar input:focus { border-color: rgba(0, 230, 118, 0.5); }
.send-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; flex-shrink: 0;
  background: linear-gradient(135deg, #00E676, #10B981);
  color: #05130B; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 16px var(--em-glow);
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.input {
  width: 100%; padding: 13px 16px; font-size: 15px; font-family: inherit;
  background: var(--glass); border: 1px solid var(--stroke-strong);
  border-radius: var(--r-md); color: var(--text); outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { border-color: rgba(0,230,118,0.55); box-shadow: 0 0 0 3px rgba(0,230,118,0.12); }
.input::placeholder { color: var(--text-3); }
select.input { appearance: none; }

/* ── Gradient-border hero (Spotlight) ──────────────────────────────────── */
.glow-border {
  position: relative; border-radius: var(--r-card); padding: 1.5px;
  background: linear-gradient(135deg, var(--gold) 0%, transparent 30%, transparent 65%, var(--em) 100%);
}
.glow-border > .gb-inner {
  border-radius: calc(var(--r-card) - 1.5px);
  background: linear-gradient(160deg, #14181D 0%, #0F1318 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.gb-inner .sheen {
  position: absolute; top: -60%; right: -20%; width: 70%; height: 160%;
  background: radial-gradient(closest-side, rgba(232, 168, 0, 0.12), transparent);
  pointer-events: none;
}

/* ── Radar empty state (Spotlight) ─────────────────────────────────────── */
.radar {
  position: relative; width: 210px; height: 210px; margin: 20px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0,230,118,0.06) 0%, transparent 70%);
}
.radar .ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(0, 230, 118, 0.16);
}
.radar .ring.r1 { inset: 0; }
.radar .ring.r2 { inset: 17%; }
.radar .ring.r3 { inset: 34%; }
.radar .core {
  position: absolute; inset: 46%; border-radius: 50%;
  background: var(--em); box-shadow: 0 0 18px var(--em-glow);
}
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 230, 118, 0.28), transparent 70deg, transparent 360deg);
  animation: sweep 3.6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.blip {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--em); opacity: 0;
  animation: blip 3.6s ease-out infinite;
}
.blip.gold { background: var(--gold); }
@keyframes blip {
  0%, 12% { opacity: 0; transform: scale(0.4); }
  18%     { opacity: 1; transform: scale(1.15); }
  55%     { opacity: 0.85; transform: scale(1); }
  100%    { opacity: 0; transform: scale(0.9); }
}

/* ── Circular gauges (Naija Vibe) ──────────────────────────────────────── */
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gauge { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gauge svg { width: 82px; height: 82px; transform: rotate(-90deg); }
.gauge .track { fill: none; stroke: rgba(255,255,255,0.09); stroke-width: 7; }
.gauge .val {
  fill: none; stroke: url(#gaugeGrad); stroke-width: 7; stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}
.gauge .pct { font-size: 15px; font-weight: 800; margin-top: -58px; height: 42px; display:flex; align-items:center; }
.gauge .glabel { font-size: 11px; color: var(--text-2); text-align: center; font-weight: 600; }

/* ── Profile hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative; height: 280px; overflow: hidden;
  border-radius: 0 0 28px 28px;
}
.hero .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .cover.blurred { filter: blur(14px) brightness(0.6); transform: scale(1.15); }
.hero .hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, rgba(13,15,18,0.35) 45%, rgba(13,15,18,0.25));
}
.hero .hero-content {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero .avatar-xl { width: 108px; height: 108px; border: 3px solid rgba(255,255,255,0.85); box-shadow: 0 6px 30px rgba(0,0,0,0.5); }
.hero .stat-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* Full-bleed app-style hero (Me page) */
.hero-tall { height: min(62vh, 480px); border-radius: 0; }
.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.tier-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold); color: #1B4020;
  padding: 5px 14px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 800; letter-spacing: 0.05em;
}
.hero-name {
  font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.hero-age { font-size: 20px; font-weight: 700; vertical-align: super; opacity: 0.9; }

/* ── Slide-over sheet (Me → account) ───────────────────────────────────── */
.sheet-veil {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 6, 8, 0.6); opacity: 0; transition: opacity 0.22s ease;
}
.sheet-veil.show { opacity: 1; }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(320px, 86vw);
  background: rgba(18, 21, 26, 0.97);
  border-left: 1px solid var(--stroke);
  transform: translateX(100%); transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}
@supports (backdrop-filter: blur(24px)) {
  body:not(.lite) .sheet { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); background: rgba(18, 21, 26, 0.85); }
}
.sheet.show { transform: translateX(0); }
/* Unscoped: these rows are used both inside the account sheet AND on the
   Settings screen. Scoping them to `.sheet` left the Settings copies with
   no styling at all, so the browser painted default white buttons. */
.sheet-row {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 13px 10px; border: 0; background: none; color: var(--text);
  font-size: 15px; font-weight: 600; text-align: left; border-radius: var(--r-md);
  cursor: pointer; font-family: inherit;
}
.sheet-row:hover { background: var(--glass); }
.sheet-row svg { width: 20px; height: 20px; color: var(--text-2); }
.sheet-row.danger, .sheet-row.danger svg { color: var(--danger); }
.sheet-row .tiny { color: var(--text-2); font-weight: 500; margin-top: 2px; }
.sheet hr { border: 0; border-top: 1px solid var(--stroke); margin: 10px 0; }

/* ── Bottom-sheet modal (viewer, pickers) ──────────────────────────────── */
.modal-veil {
  position: fixed; inset: 0; z-index: 80; background: rgba(5,6,8,0.65);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  width: 100%; max-width: var(--page-max);
  background: #14181D; border-radius: 24px 24px 0 0;
  border: 1px solid var(--stroke); border-bottom: 0;
  padding: 10px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  animation: sheetUp 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 86dvh; overflow-y: auto;
}
@keyframes sheetUp { from { transform: translateY(40%); opacity: 0.5; } }
.modal .handle {
  width: 42px; height: 4.5px; border-radius: 3px;
  background: var(--stroke-strong); margin: 4px auto 14px;
}

/* ── Skeletons / empty / toast ─────────────────────────────────────────── */
.skel {
  background: linear-gradient(90deg, var(--glass) 25%, var(--glass-strong) 50%, var(--glass) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { text-align: center; padding: 46px 30px; color: var(--text-2); }
.empty .big { font-size: 44px; margin-bottom: 10px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 26px); z-index: 99;
  transform: translateX(-50%);
  background: #1B2026; border: 1px solid var(--stroke-strong);
  border-radius: var(--r-pill); padding: 11px 20px;
  font-size: 13.5px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: toastIn 0.25s ease;
  max-width: 88vw; text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.toast.em { border-color: rgba(0,230,118,0.4); color: var(--em); }
.toast.err { border-color: rgba(255,84,73,0.45); color: var(--danger); }

/* ── Auth screens ──────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100dvh; display: flex; flex-direction: column;
  justify-content: center; padding: 28px 22px 40px;
  max-width: 440px; margin: 0 auto;
}
.auth-logo { text-align: center; margin-bottom: 26px; }
.auth-logo .mark {
  width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 14px;
  background: linear-gradient(135deg, #00E676, #0B7A4B);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: #05130B;
  box-shadow: 0 8px 34px var(--em-glow);
}
.auth-tag { color: var(--text-2); font-size: 14px; }
.auth-tag b { color: var(--gold); font-weight: 700; }

/* OTP boxes */
.otp-row { display: flex; gap: 10px; justify-content: center; }
.otp-box {
  width: 48px; height: 56px; text-align: center; font-size: 22px; font-weight: 800;
  background: var(--glass); border: 1px solid var(--stroke-strong);
  border-radius: var(--r-md); color: var(--text); outline: none;
}
.otp-box:focus { border-color: rgba(0,230,118,0.6); box-shadow: 0 0 0 3px rgba(0,230,118,0.12); }

/* ── Section helpers ───────────────────────────────────────────────────── */
.px { padding-left: 18px; padding-right: 18px; }
.section { margin-top: 22px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.row { display: flex; align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.center { text-align: center; }

/* Progress pill sliders (Naija Vibe alt) */
.vibe-pill { margin-bottom: 12px; }
.vibe-pill .vp-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.vibe-pill .vp-top .pc { color: var(--em); }
.vibe-pill .track { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.08); overflow: hidden; }
.vibe-pill .fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #10B981, #00E676);
  transition: width 0.7s ease;
}
.vibe-pill.hot .fill { box-shadow: 0 0 12px rgba(0, 230, 118, 0.6); }

/* Video upload widget */
.upload-zone {
  border: 1.5px dashed rgba(0, 230, 118, 0.35); border-radius: var(--r-card);
  padding: 26px 18px; text-align: center; color: var(--text-2);
  background: rgba(0, 230, 118, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-zone:hover { border-color: rgba(0,230,118,0.6); background: rgba(0,230,118,0.07); }
.verify-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 800;
}
.verify-tag.ok { background: var(--em-dim); color: var(--em); }
.verify-tag.wait { background: var(--gold-dim); color: var(--gold); }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid .ph-cell {
  position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-elev-2); border: 1px solid var(--stroke);
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

/* Desktop: keep the phone canvas centered with a soft vignette */
@media (min-width: 720px) {
  body { background: #090B0D; }
  .ambient { background:
    radial-gradient(700px 500px at 80% -80px, rgba(0,230,118,0.05), transparent 65%),
    #090B0D; }
  #app {
    border-left: 1px solid var(--stroke); border-right: 1px solid var(--stroke);
    background: var(--bg); min-height: 100vh;
  }
}

/* ── Image cropper ──────────────────────────────────────────────────── */
.crop-veil {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(3, 8, 5, 0.86); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: cropIn 0.16s ease;
}
@keyframes cropIn { from { opacity: 0 } to { opacity: 1 } }
.crop-panel {
  width: 100%; max-width: 460px; background: var(--bg-elev-1);
  border: 1px solid var(--stroke-strong); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
}
.crop-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--stroke);
}
.crop-title { flex: 1; text-align: center; font-weight: 800; font-size: 15px; color: var(--text); }
.crop-x {
  background: none; border: 0; color: var(--text-dim); font-size: 18px;
  cursor: pointer; padding: 4px 8px; border-radius: 8px; line-height: 1;
}
.crop-x:hover { color: var(--text); background: var(--bg-elev-2); }
.crop-save {
  background: linear-gradient(135deg, var(--em-2), var(--em)); color: #05130B;
  border: 0; font-weight: 800; font-size: 13.5px; padding: 8px 18px;
  border-radius: var(--r-pill); cursor: pointer;
}
.crop-save:active { transform: scale(0.97); }
.crop-stage {
  position: relative; height: min(58vh, 380px); background: #000;
  display: flex; align-items: center; justify-content: center;
  touch-action: none; cursor: grab; overflow: hidden;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage canvas { display: block; }
.crop-mask {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.crop-mask.is-round { border-radius: 50%; }
.crop-tools {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px 4px;
}
.crop-ico { font-size: 13px; opacity: 0.5; }
.crop-ico-lg { font-size: 19px; }
.crop-tools input[type="range"] {
  flex: 1; accent-color: var(--em); height: 4px; cursor: pointer;
}
.crop-hint {
  text-align: center; font-size: 11.5px; color: var(--text-dim);
  padding: 6px 16px 16px;
}

/* ── Photo tile actions ─────────────────────────────────────────────── */
.photo-grid .ph-cell.is-editable { cursor: pointer; }
.ph-actions {
  position: absolute; inset: auto 0 0 0;
  display: flex; gap: 6px; padding: 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  opacity: 0; transition: opacity 0.15s ease;
}
.ph-cell:hover .ph-actions, .ph-cell:focus-within .ph-actions { opacity: 1; }
@media (hover: none) { .ph-actions { opacity: 1; } }
.ph-act {
  flex: 1; border: 0; border-radius: 8px; padding: 5px 0; cursor: pointer;
  font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.16);
  color: #fff; backdrop-filter: blur(4px);
}
.ph-act:hover { background: rgba(255,255,255,0.28); }
.ph-act.danger:hover { background: rgba(239,68,68,0.85); }
.ph-badge {
  position: absolute; top: 6px; left: 6px; z-index: 1;
  background: var(--em); color: #05130B; font-size: 10px; font-weight: 800;
  padding: 3px 7px; border-radius: var(--r-pill);
}

/* Hero camera affordance on the Me page */
.hero-cam {
  /* Sits under the Account chip, top-right. Anchoring it to the bottom
     collided with the gender chip once the name/place row got long. */
  position: absolute; top: 58px; right: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(8,14,10,0.72); border: 1px solid var(--stroke-strong);
  color: var(--text); font-size: 12.5px; font-weight: 700;
  padding: 8px 13px; border-radius: var(--r-pill); cursor: pointer;
  backdrop-filter: blur(8px);
}
.hero-cam:hover { background: rgba(8,14,10,0.9); border-color: var(--em); }

/* ── Add-to-home-screen prompt ──────────────────────────────────────── */
.install-host {
  position: fixed; left: 0; right: 0; z-index: 240;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 10px);
  display: flex; justify-content: center; padding: 0 12px;
  transform: translateY(140%); opacity: 0;
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), opacity 0.2s ease;
  pointer-events: none;
}
.install-host.in { transform: none; opacity: 1; pointer-events: auto; }
.install-card {
  width: 100%; max-width: var(--page-max);
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 18px;
  background: rgba(20, 24, 29, 0.94); border: 1px solid var(--stroke-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}
@supports (backdrop-filter: blur(14px)) {
  body:not(.lite) .install-card { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.install-icon { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; }
.install-icon.lg { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px; }
.install-copy { flex: 1; min-width: 0; }
.install-title { font-size: 13.5px; font-weight: 800; color: var(--text); line-height: 1.25; }
.install-sub { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.install-acts { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.install-go {
  background: linear-gradient(135deg, var(--em), var(--em-deep)); color: #05130B;
  border: 0; border-radius: var(--r-pill); padding: 8px 16px;
  font-size: 13px; font-weight: 800; cursor: pointer;
}
.install-go:active { transform: scale(0.97); }
.install-no {
  background: none; border: 0; color: var(--text-3);
  font-size: 11px; font-weight: 600; cursor: pointer; padding: 2px;
}
.install-no:hover { color: var(--text-2); }

/* iOS instruction sheet */
.install-veil {
  position: fixed; inset: 0; z-index: 260;
  background: rgba(3, 8, 5, 0.72); display: flex; align-items: flex-end;
  animation: cropIn 0.18s ease;
}
@supports (backdrop-filter: blur(6px)) {
  body:not(.lite) .install-veil { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
.install-sheet {
  width: 100%; max-width: var(--page-max); margin: 0 auto;
  background: var(--bg-elev); border: 1px solid var(--stroke-strong);
  border-radius: 26px 26px 0 0; text-align: center;
  padding: 12px 22px calc(26px + env(safe-area-inset-bottom, 0px));
  animation: sheetUp 0.3s cubic-bezier(.22,1,.36,1);
}
@keyframes sheetUp { from { transform: translateY(100%) } to { transform: none } }
.install-grab {
  width: 40px; height: 4px; border-radius: 2px; background: var(--stroke-strong);
  margin: 0 auto 16px;
}
.install-h { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.install-steps {
  text-align: left; margin: 0 0 20px; padding-left: 22px;
  color: var(--text-2); font-size: 14px; line-height: 1.6;
}
.install-steps li { margin-bottom: 9px; }
.install-steps b { color: var(--text); }

/* ── Why-this-score sheet ──────────────────────────────────────────────── */
.why-tappable { cursor: pointer; }
.why-tappable::after { content: ' ⓘ'; font-size: 0.85em; opacity: 0.75; }
.why-tappable:active { opacity: 0.7; }

.why-modal { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

.why-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.why-headline { font-size: 19px; font-weight: 800; line-height: 1.2; }

/* Score ring — conic gradient, no SVG needed. */
.why-ring {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(var(--em) var(--deg), var(--glass-strong) 0);
  display: grid; place-items: center;
}
.why-ring-in {
  width: 52px; height: 52px; border-radius: 50%; background: #14181D;
  display: grid; place-items: center; line-height: 1;
}
.why-ring-in span { font-size: 20px; font-weight: 800; color: var(--em); }
.why-ring-in small { font-size: 9px; font-weight: 700; color: var(--text-2); margin-top: 1px; }

.why-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-2); margin: 4px 0 8px;
}
.why-list { list-style: none; margin: 0 0 18px; padding: 0; }
.why-list li {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 10px 0; font-size: 14.5px; font-weight: 600;
  border-bottom: 1px solid var(--stroke);
}
.why-list li:last-child { border-bottom: 0; }
.why-ic { flex: 0 0 20px; text-align: center; font-size: 15px; line-height: 1.4; }
.why-list.improve li { cursor: pointer; color: var(--text); }
.why-list.improve li:hover { background: var(--glass); border-radius: var(--r-md); }
.why-list.improve li span:nth-child(2) { flex: 1; }
.why-go { color: var(--text-2); font-size: 18px; font-weight: 700; }
.why-list-empty { margin-bottom: 18px; line-height: 1.55; }
.why-foot { line-height: 1.55; opacity: 0.8; border-top: 1px solid var(--stroke); padding-top: 12px; }
