/* ============================================================
   VOUCHED — Main Stylesheet
   Brand: Midnight #0A0612 | Rose #D45068 | Violet #6030B8
          Blush #D4A0C8 | Champagne Gold #D4A850
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: #0a0612;
  color: rgba(220,195,210,0.88);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── CSS VARIABLES ── */
:root {
  --midnight:    #0a0612;
  --rose:        #d45068;
  --rose-light:  #e8887a;
  --violet:      #6030b8;
  --violet-light:#9060d8;
  --blush:       #d4a0c8;
  --gold:        #d4a850;
  --gold-light:  #e8c880;
  --surface:     rgba(255,255,255,0.04);
  --surface-hover: rgba(180,80,160,0.10);
  --border:      rgba(200,140,180,0.18);
  --border-hover:rgba(200,140,180,0.42);
  --text-primary: rgba(240,225,210,0.95);
  --text-secondary: rgba(200,175,195,0.75);
  --text-muted:  rgba(200,165,190,0.55);
  --gradient-text: linear-gradient(105deg,#e8c89a 0%,#f0dcc0 22%,#d4a0c8 52%,#b880e8 76%,#d4a0c8 100%);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --nav-h:       64px;
}

/* ── AMBIENT BACKGROUND ── */
.amb {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 50% at 25% 35%, rgba(180,70,120,0.20) 0%, transparent 65%),
    radial-gradient(ellipse 50% 55% at 78% 68%, rgba(100,50,200,0.20) 0%, transparent 65%),
    radial-gradient(ellipse 40% 38% at 58% 12%, rgba(220,145,65,0.11) 0%, transparent 65%);
}

/* ── ANIMATIONS ── */
@keyframes shimmer   { 0%,100%{background-position:0% center} 50%{background-position:100% center} }
@keyframes orbit1    { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes orbit2    { from{transform:rotate(0deg)} to{transform:rotate(-360deg)} }
@keyframes beat      { 0%,100%{transform:scale(1)} 15%{transform:scale(1.12)} 30%{transform:scale(1)} 45%{transform:scale(1.07)} 60%{transform:scale(1)} }
@keyframes glow      { 0%,100%{box-shadow:0 0 28px rgba(180,75,140,0.30),0 0 60px rgba(120,55,200,0.15),inset 0 1px 0 rgba(255,215,160,0.10)} 50%{box-shadow:0 0 42px rgba(180,75,140,0.50),0 0 80px rgba(120,55,200,0.25),inset 0 1px 0 rgba(255,215,160,0.18)} }
@keyframes float     { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes fadeUp    { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse     { 0%,100%{opacity:1} 50%{opacity:0.35} }
@keyframes slideIn   { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes ripple    { to{transform:scale(4);opacity:0} }

/* ── GRADIENT TEXT ── */
.grad-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 5s ease-in-out infinite;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-weight: 600; color: var(--text-primary); }
p { line-height: 1.7; }

/* ── PAGE WRAPPER ── */
.page { position: relative; z-index: 1; }

/* ── EMBLEM (logo mark) ── */
.emblem-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid transparent; }
.ring-1 { border-top-color: rgba(220,138,95,0.65); border-right-color: rgba(175,95,210,0.40); animation: orbit1 9s linear infinite; }
.ring-2 { border-top-color: rgba(175,95,210,0.50); border-left-color: rgba(220,158,80,0.35); animation: orbit2 13s linear infinite; }
.ring-3 { border-bottom-color: rgba(220,195,110,0.30); border-right-color: rgba(200,100,180,0.25); animation: orbit1 18s linear infinite; }
.emblem-core {
  border-radius: 50%;
  background: linear-gradient(148deg, #1c0f30 0%, #110820 65%);
  border: 1.5px solid rgba(220,148,100,0.42);
  display: flex; align-items: center; justify-content: center;
  animation: glow 4s ease-in-out infinite;
}
.heart-icon { animation: beat 3.8s ease-in-out infinite; filter: drop-shadow(0 0 9px rgba(200,95,150,0.75)); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-lg); font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; border: none; transition: all 0.3s ease; position: relative; overflow: hidden;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--rose-light), var(--rose), var(--violet));
  color: rgba(255,240,235,0.95);
  box-shadow: 0 4px 24px rgba(180,70,130,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(180,70,130,0.50); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--blush);
}
.btn-outline:hover { background: var(--surface-hover); border-color: rgba(200,140,180,0.6); }

.btn-ghost { background: transparent; color: var(--text-muted); font-size: 12px; }
.btn-ghost:hover { color: var(--blush); }

.btn-full { width: 100%; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a0e2e;
  box-shadow: 0 4px 20px rgba(200,170,60,0.30);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(200,170,60,0.45); }

/* ── FORM ELEMENTS ── */
.field { position: relative; margin-bottom: 16px; }
.field label {
  display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px; font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 300;
  outline: none;
  transition: all 0.3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(180,100,200,0.55);
  background: rgba(180,80,160,0.08);
  box-shadow: 0 0 0 3px rgba(180,80,160,0.12);
}
.field input::placeholder { color: var(--text-muted); }

/* Password field with eye toggle */
.field-password { position: relative; }
.field-password input { padding-right: 48px; }
.eye-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; padding: 4px;
  transition: color 0.2s;
}
.eye-toggle:hover { color: var(--blush); }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.3s ease;
}
.card:hover { border-color: var(--border-hover); background: var(--surface-hover); }

/* ── PILL LABEL ── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: 20px;
  background: rgba(180,80,160,0.12); border: 1px solid rgba(200,120,180,0.30);
  font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(210,165,200,0.75); font-weight: 500;
}
.pill-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, #d4a0c8, #9060d8);
  animation: pulse 2s ease-in-out infinite;
}

/* ── DIVIDER RULE ── */
.rule {
  width: 100%; height: 1px; position: relative; margin: 20px 0;
  background: linear-gradient(90deg, transparent 0%, rgba(220,138,95,0.4) 25%, rgba(175,95,220,0.65) 50%, rgba(220,138,95,0.4) 75%, transparent 100%);
}
.rule::before {
  content: ''; position: absolute; top: -3.5px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #e8b870, #c870d8);
  box-shadow: 0 0 12px rgba(200,115,200,0.85);
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: linear-gradient(180deg, rgba(10,6,18,0.85) 0%, rgba(18,8,35,0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(200,140,180,0.15);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.2s ease; text-decoration: none; color: var(--text-muted);
  border: none; background: none; font-family: 'Montserrat', sans-serif;
}
.nav-item.active { color: var(--blush); }
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-label { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; }

/* ── SCREEN LAYOUT ── */
.screen { min-height: 100dvh; padding-bottom: calc(var(--nav-h) + 20px); }
.screen-padded { padding: 20px; }
.screen-header {
  padding: 20px 20px 0;
  display: flex; align-items: center; justify-content: space-between;
}

/* ── MATCH CARD ── */
.match-card {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(160deg, rgba(28,15,48,0.95) 0%, rgba(17,8,32,0.98) 100%);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}
.match-card:hover { transform: translateY(-3px); border-color: var(--border-hover); box-shadow: 0 12px 40px rgba(180,75,140,0.20); }

.match-avatar {
  width: 100%; height: 240px;
  background: linear-gradient(160deg, rgba(180,80,160,0.25) 0%, rgba(100,50,200,0.20) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.avatar-initials {
  font-size: 64px; font-weight: 700; letter-spacing: -2px;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 200% auto; animation: shimmer 5s ease-in-out infinite;
}
.verified-badge {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 20px;
  background: rgba(212,168,80,0.20); border: 1px solid rgba(212,168,80,0.45);
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}

.match-info { padding: 18px 20px 20px; }
.match-name { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.match-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; font-weight: 300; }
.match-trust { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.trust-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.trust-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--rose), var(--violet-light)); }
.trust-score { font-size: 11px; font-weight: 600; color: var(--blush); letter-spacing: 0.5px; }

/* ── TRUST THREAD ── */
.thread-node {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; position: relative;
}
.thread-node:not(:last-child)::after {
  content: ''; position: absolute; left: 19px; top: 54px;
  width: 2px; height: calc(100% - 14px);
  background: linear-gradient(180deg, rgba(200,120,180,0.5), rgba(120,60,200,0.3));
}
.node-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; position: relative; z-index: 1;
}
.node-you { background: linear-gradient(135deg, rgba(220,138,95,0.3), rgba(180,80,160,0.3)); border: 1.5px solid rgba(220,138,95,0.55); color: var(--gold); }
.node-d1   { background: linear-gradient(135deg, rgba(212,80,104,0.25), rgba(180,80,160,0.25)); border: 1px solid rgba(212,80,104,0.45); color: var(--rose); }
.node-d2   { background: linear-gradient(135deg, rgba(144,96,216,0.25), rgba(100,50,200,0.20)); border: 1px solid rgba(144,96,216,0.40); color: var(--violet-light); }
.node-d3   { background: linear-gradient(135deg, rgba(212,160,200,0.20), rgba(160,100,200,0.18)); border: 1px solid rgba(212,160,200,0.35); color: var(--blush); }
.node-info { flex: 1; }
.node-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.node-rel  { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-weight: 300; }
.degree-badge {
  padding: 3px 10px; border-radius: 12px; font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 600;
}
.d1-badge { background: rgba(212,80,104,0.15); border: 1px solid rgba(212,80,104,0.35); color: rgba(232,136,122,0.9); }
.d2-badge { background: rgba(144,96,216,0.15); border: 1px solid rgba(144,96,216,0.35); color: rgba(176,128,232,0.9); }
.d3-badge { background: rgba(212,160,200,0.12); border: 1px solid rgba(212,160,200,0.30); color: rgba(212,160,200,0.8); }

/* ── RADIUS SLIDER ── */
.radius-wrap { padding: 20px 0; }
.radius-value {
  font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 400; line-height: 1;
  background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200% auto; animation: shimmer 5s ease-in-out infinite;
  text-align: center; margin-bottom: 4px;
}
.radius-unit { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); text-align: center; margin-bottom: 24px; }
.radius-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--rose) 0%, var(--violet-light) 50%, rgba(255,255,255,0.12) 50%);
}
.radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  cursor: pointer; border: 2px solid rgba(10,6,18,0.8);
  box-shadow: 0 0 12px rgba(200,170,60,0.55);
}
.radius-markers { display: flex; justify-content: space-between; margin-top: 10px; }
.radius-markers span { font-size: 9px; letter-spacing: 1px; color: var(--text-muted); }

/* ── MAP VISUAL ── */
.map-visual {
  width: 100%; aspect-ratio: 1; max-width: 320px; margin: 0 auto;
  border-radius: 50%; position: relative;
  background: radial-gradient(circle, rgba(180,80,160,0.12) 0%, rgba(100,50,200,0.08) 60%, transparent 100%);
  border: 1px solid var(--border);
}
.map-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.map-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  animation: pulse 3s ease-in-out infinite;
}
.map-center { width: 12px; height: 12px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 16px rgba(212,80,104,0.8); }

/* ── TOGGLE / SWITCH ── */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(200,140,180,0.08); }
.toggle-info { flex: 1; }
.toggle-label { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.toggle-sub   { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-weight: 300; }
.toggle {
  position: relative; width: 48px; height: 26px; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 13px; cursor: pointer;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.toggle input:checked + .toggle-track {
  background: linear-gradient(135deg, var(--rose), var(--violet));
  border-color: transparent;
  box-shadow: 0 0 12px rgba(180,70,130,0.40);
}
.toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(220,195,210,0.9);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.toggle input:checked + .toggle-track::after { transform: translateX(22px); background: white; }

/* ── BIOMETRIC BUTTON ── */
.biometric-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.3s ease; width: 100%;
  font-family: 'Montserrat', sans-serif;
}
.biometric-btn:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.biometric-icon { width: 48px; height: 48px; color: var(--blush); }
.biometric-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%; transform: translateX(-50%) translateY(100px);
  background: rgba(28,15,48,0.97); border: 1px solid rgba(200,140,180,0.3);
  border-radius: var(--radius-md); padding: 12px 20px; z-index: 999;
  font-size: 12px; color: var(--blush); letter-spacing: 0.5px;
  backdrop-filter: blur(12px); white-space: nowrap;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── ONBOARDING / AUTH SCREENS ── */
.auth-screen {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 40px 24px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 32px;
  backdrop-filter: blur(12px);
}
.auth-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-sub   { font-size: 12px; color: var(--text-muted); text-align: center; letter-spacing: 1px; margin-bottom: 28px; font-weight: 300; }

.or-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.or-line { flex: 1; height: 1px; background: var(--border); }
.or-text { font-size: 10px; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; }

/* ── PROFILE PHOTO PLACEHOLDER ── */
.profile-photo {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(212,80,104,0.25), rgba(100,50,200,0.25));
  border: 2px solid rgba(200,140,180,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
  background-size: 200% auto; animation: shimmer 5s ease-in-out infinite;
  position: relative; cursor: pointer;
}
.photo-edit {
  position: absolute; bottom: 0; right: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--midnight);
}

/* ── RESPONSIVE ── */
@media (max-width: 390px) {
  .auth-card { padding: 28px 20px; }
  .wordmark-lg { font-size: 40px; }
}
@media (min-width: 768px) {
  .auth-card { box-shadow: 0 24px 80px rgba(180,75,140,0.18); }
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500; margin-bottom: 14px;
}
