/* =====================================================
   DESIGN SYSTEM v3 — "Synk Soul" editorial-premium theme
   Aubergine ink, warm ivory paper, deep wine + antique
   gold accents. Fraunces (serif, display) + Inter (sans,
   UI/body). Signature mark: interlocking gold rings.

   Every selector previously used by js/*.js and every
   *.html file is preserved — only visual treatment
   changes. No IDs, class names, or markup structure that
   scripts depend on have been renamed or removed.
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Ink & paper */
  --ink: #241726;
  --ink-soft: #6C5C6E;
  --ink-faint: #A6919A;
  --ink-deep: #1A0F1C;

  --bg: #FBF6EF;
  --bg-soft: #F5EEE1;
  --bg-soft-2: #EEE0C9;
  --surface: #FFFDF8;
  --border: #E8DCC7;
  --border-strong: #D7C2A0;

  /* Brand accent: deep wine + antique gold */
  --accent: #6E1E3A;
  --accent-2: #B8863E;
  --accent-hover: #551730;
  --accent-soft: #F5E7EA;
  --accent-soft-text: #6E1E3A;
  --gold: #B8863E;
  --gold-soft: #F1E2BF;
  --gold-line: rgba(184,134,62,0.35);

  --gradient: linear-gradient(135deg, #6E1E3A 0%, #7F2745 55%, #B8863E 135%);
  --gradient-text: linear-gradient(90deg, #6E1E3A 0%, #93304F 55%, #B8863E 100%);

  --success: #3F7A52;
  --success-soft: #ECF3EB;
  --warning: #A3701F;
  --warning-soft: #FBF1DF;
  --danger: #A23B3B;
  --danger-soft: #FBECEA;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 11px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(36,23,38,0.07), 0 1px 1px rgba(36,23,38,0.05);
  --shadow: 0 10px 30px rgba(36,23,38,0.10);
  --shadow-lg: 0 28px 68px rgba(36,23,38,0.18);
  --shadow-glow: 0 10px 32px rgba(110,30,58,0.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.14;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Scroll reveal (progressive enhancement; safe no-op if JS absent) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.page-section { padding: 92px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } .page-section { padding: 56px 0; } }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 239, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-nav.scrolled { box-shadow: 0 4px 24px rgba(36,23,38,0.08); background: rgba(251,246,239,0.94); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 74px; flex-wrap: nowrap; gap: 16px; }

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Signature mark: two interlocking gold rings on an ink medallion —
   echoes "Synk Soul" and a bond/connection motif. Reused (in spirit)
   on the results score-ring. Pure CSS, no image asset required. */
.brand .seam {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink-deep);
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 14px rgba(26,15,28,0.38);
  border: 1px solid var(--gold-line);
}
.brand .seam::before,
.brand .seam::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 1.6px solid var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
}
.brand .seam::before { left: 5px; }
.brand .seam::after { left: 12px; }

.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; flex-shrink: 0; }
.nav-links a:not(.btn) {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:not(.btn):hover { background: var(--bg-soft-2); color: var(--ink); text-decoration: none; }

/* Mobile hamburger toggle — only appears/functions where a page actually
   includes a #navToggle button (index.html's fuller nav). Scoped to
   #navLinks so pages with a single simple nav link are never affected. */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tighter desktop range (small laptop windows, browser zoom 110-125%,
   1024px-class screens) — shrink spacing before the hamburger kicks in,
   so nothing overlaps or squishes in between. */
@media (max-width: 1040px) and (min-width: 981px) {
  .nav-links { gap: 2px; }
  .nav-links a:not(.btn) { padding: 9px 10px; font-size: 13.5px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  #navLinks.nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 22px;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  #navLinks.nav-links.open { max-height: 420px; opacity: 1; }
  #navLinks.nav-links a:not(.btn) { padding: 13px 6px; }
  #navLinks.nav-links .btn { width: 100%; justify-content: center; margin-top: 8px; }
}

/* Safety net for the simpler single-link navs on other pages — just wrap
   gracefully rather than overflow on very narrow screens. */
@media (max-width: 400px) {
  .site-nav .container, .app-header .container { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 8px; }
  .brand { font-size: 17px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  position: relative;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary { background: var(--gradient); color: var(--bg); box-shadow: var(--shadow-glow); }
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 12px 34px rgba(110,30,58,0.4); text-decoration: none; transform: translateY(-1px); }

.btn-secondary { background: var(--ink-deep); color: var(--bg); }
.btn-secondary:hover { background: #2A1A2C; text-decoration: none; }

.btn-outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-hover); background: var(--accent-soft); text-decoration: none; }
.btn-danger { color: #8B2E2E; border-color: #E3B9B0; padding: 6px 16px; font-size: 13px; }
.btn-danger:hover { border-color: #8B2E2E; color: #fff; background: #8B2E2E; text-decoration: none; }
.btn-solid-danger { background: linear-gradient(135deg, #8B2E2E 0%, #A23B3B 100%); color: #fff; box-shadow: 0 10px 28px rgba(139,46,46,0.28); }
.btn-solid-danger:hover { filter: brightness(1.08); box-shadow: 0 12px 32px rgba(139,46,46,0.38); text-decoration: none; transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--ink-deep); }
.btn-gold:hover { background: #C79749; text-decoration: none; }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); padding: 138px 0 100px; }
.hero-seam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 440px at 10% -12%, rgba(110,30,58,0.10), transparent 62%),
    radial-gradient(520px 420px at 94% 8%, rgba(184,134,62,0.14), transparent 60%),
    radial-gradient(640px 520px at 50% 118%, rgba(110,30,58,0.06), transparent 60%);
}
.hero .container { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--accent-soft-text);
  background: var(--accent-soft);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
  border: 1px solid rgba(110,30,58,0.14);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.hero h1 { font-size: clamp(38px, 5vw, 60px); max-width: 780px; font-weight: 600; }
.hero .lede { font-size: 18px; max-width: 560px; margin-bottom: 38px; color: var(--ink-soft); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 68px; align-items: center; }
.hero-cta .btn-outline { border-color: var(--border-strong); }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.hero-copy .meld-bar { margin-bottom: 0; }

.hero-visual { position: relative; height: 380px; }
.hv-card {
  position: absolute;
  width: 232px;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.hv-you {
  top: 8px; left: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 2;
}
.hv-partner {
  bottom: 8px; right: 6px;
  background: var(--ink-deep);
  border: 1px solid var(--gold-line);
  color: var(--bg);
  z-index: 1;
}
.hv-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  background: var(--gradient); color: var(--bg);
  margin-bottom: 12px;
}
.hv-partner .hv-avatar { background: var(--gold); color: var(--ink-deep); }
.hv-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.hv-you .hv-name { color: var(--ink); }
.hv-partner .hv-name { color: var(--gold-soft); }
.hv-lines { display: flex; flex-direction: column; gap: 8px; }
.hv-lines span { display: block; height: 7px; width: 100%; border-radius: 4px; background: var(--bg-soft-2); }
.hv-partner .hv-lines span { background: rgba(251,246,239,0.16); }

.hv-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 116px; height: 116px;
  border-radius: 50%;
  z-index: 3;
  background: conic-gradient(var(--gold) 92%, var(--bg-soft-2) 0);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow), 0 0 0 6px var(--bg);
}
.hv-ring-inner {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--ink-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.hv-pct { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--gold-soft); line-height: 1.1; }
.hv-lbl { font-size: 9.5px; color: rgba(251,246,239,0.62); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { height: 320px; max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) {
  .hv-card { width: 76%; padding: 16px; }
  .hero-visual { height: 280px; }
  .hv-ring { width: 92px; height: 92px; }
  .hv-ring-inner { width: 72px; height: 72px; }
  .hv-pct { font-size: 18px; }
}

/* Signature element: process handoff card, styled as an ink "invitation strip" */
.meld-bar {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-line);
  background: var(--ink-deep);
}
.meld-side {
  flex: 1;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15.5px;
  color: rgba(251,246,239,0.92);
}
.meld-you, .meld-partner { background: transparent; }
.meld-seam-mark {
  width: 108px;
  background: linear-gradient(180deg, var(--gold) 0%, #A5762F 100%);
  color: var(--ink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .hero { padding: 100px 0 60px; }
  .hero-cta { margin-bottom: 44px; }
  .meld-bar { flex-direction: column; }
  .meld-side { padding: 20px 22px; font-size: 14.5px; }
  .meld-seam-mark { width: 100%; padding: 10px 0; font-size: 18px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card-flat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.trust-note {
  margin-top: 20px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(110,30,58,0.14);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.trust-note strong { display: block; margin-bottom: 4px; color: var(--accent-soft-text); font-size: 13px; font-family: var(--font-display); font-weight: 600; }
.trust-note p { margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card { border-radius: var(--radius); padding: 32px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); opacity: 0; transition: opacity 0.2s ease; }
.feature-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }
.feature-card .icon-dot {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; color: var(--bg);
  margin-bottom: 20px; font-size: 16px;
  background: var(--gradient) !important;
  box-shadow: 0 8px 18px rgba(110,30,58,0.28);
}

/* ---------- Forms ---------- */
.auth-wrap { min-height: calc(100vh - 74px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; background: var(--bg-soft); position: relative; overflow: hidden; }
.auth-wrap::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 380px at 12% 8%, rgba(110,30,58,0.08), transparent 60%),
              radial-gradient(500px 380px at 92% 92%, rgba(184,134,62,0.12), transparent 60%);
}
.auth-card { position: relative; width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.auth-card h1 { font-size: 27px; }
.auth-card .sub { margin-bottom: 28px; }

.form-row { margin-bottom: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.radio-group { display: flex; gap: 10px; }
.radio-pill { flex: 1; text-align: center; padding: 11px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); cursor: pointer; font-size: 13.5px; font-weight: 500; position: relative; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill.checked { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }

.form-msg { font-size: 13.5px; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; display: none; border: 1px solid transparent; }
.form-msg.error { display: block; background: var(--danger-soft); color: var(--danger); border-color: rgba(162,59,59,0.2); }
.form-msg.success { display: block; background: var(--success-soft); color: var(--success); border-color: rgba(63,122,82,0.2); }

.auth-footer-link { margin-top: 24px; text-align: center; font-size: 13.5px; color: var(--ink-soft); }

/* Registration email-OTP step */
.otp-step #otp {
  letter-spacing: 6px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}
.otp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}
.btn-link:hover { color: var(--accent-hover); }
.btn-link[disabled] { color: var(--ink-faint); cursor: not-allowed; text-decoration: none; }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--ink-faint); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.google-btn-wrap { display: flex; justify-content: center; }

@media (max-width: 480px) {
  .auth-wrap { padding: 28px 14px; }
  .auth-card { padding: 30px 22px; }
  .auth-card h1 { font-size: 23px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ---------- Dashboard ---------- */
.app-shell { min-height: 100vh; background: var(--bg-soft); }
.app-header { background: rgba(251,246,239,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.app-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.user-chip { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.avatar-badge {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient);
  color: var(--bg); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  box-shadow: 0 4px 12px rgba(110,30,58,0.32);
}

.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px; }
.status-locked { background: var(--bg-soft-2); color: var(--ink-soft); }
.status-waiting { background: var(--warning-soft); color: var(--warning); }
.status-active { background: var(--accent-soft); color: var(--accent-hover); }
.status-done { background: var(--success-soft); color: var(--success); }

.share-box { display: flex; gap: 10px; align-items: center; background: var(--bg-soft-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.share-box input { flex: 1; border: none; background: transparent; font-size: 13.5px; color: var(--ink); }
.share-box input:focus { outline: none; box-shadow: none; }

.progress-track { height: 7px; border-radius: 999px; background: var(--bg-soft-2); overflow: hidden; margin: 10px 0 4px; }
.progress-fill { height: 100%; background: var(--gradient); border-radius: 999px; transition: width 0.5s cubic-bezier(.2,.7,.2,1); }

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 680px; margin: 0 auto; padding: 52px 20px 88px; }
.question-card { margin-bottom: 18px; }
.question-card .qnum { font-size: 12px; font-weight: 700; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.question-card h3 { font-size: 19.5px; margin-bottom: 18px; font-weight: 600; }

.option-list { display: flex; flex-direction: column; gap: 9px; }
.option-item { border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; font-size: 14.5px; transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease; color: var(--ink); background: var(--surface); }
.option-item:hover { border-color: var(--accent); transform: translateX(2px); }
.option-item.selected { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; color: var(--accent-hover); }
.option-item input { display: none; }

.quiz-progress-bar { position: sticky; top: 74px; z-index: 20; background: rgba(245,238,225,0.92); backdrop-filter: blur(8px); padding: 15px 0; border-bottom: 1px solid var(--border); }

/* ---------- Results ---------- */
.result-wrap { max-width: 720px; margin: 0 auto; padding: 72px 20px 100px; text-align: center; position: relative; }
.result-wrap::before {
  content: '';
  position: absolute; top: -30px; left: 0; right: 0; height: 460px;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(560px 380px at 12% 0%, rgba(110,30,58,0.09), transparent 62%),
    radial-gradient(520px 380px at 92% 6%, rgba(184,134,62,0.15), transparent 60%);
}

.result-hero { margin-bottom: 8px; }
.result-names { font-size: clamp(30px, 4.4vw, 44px); }
.result-lede { font-size: 16.5px; max-width: 440px; margin: 0 auto 36px; }

.score-ring {
  width: 208px; height: 208px; border-radius: 50%; margin: 0 auto 40px;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--gold) calc(var(--pct) * 1%), var(--bg-soft-2) 0);
  transition: background 1.1s cubic-bezier(.2,.7,.2,1);
  box-shadow: var(--shadow-glow);
  position: relative;
}
.score-ring::after {
  content: '';
  position: absolute; top: -7px; right: -7px; bottom: -7px; left: -7px; border-radius: 50%;
  border: 1px solid var(--gold-line);
  pointer-events: none;
}
.score-ring-inner {
  width: 164px; height: 164px; border-radius: 50%; background: var(--ink-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.score-ring-inner .num { font-family: var(--font-display); font-size: 44px; font-weight: 600; color: var(--gold-soft); }
.score-ring-inner .lbl { font-size: 11.5px; color: rgba(251,246,239,0.62); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* ---------- Result section framing ---------- */
.result-section { text-align: left; margin-top: 40px; }
.result-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.result-section-head h2 { font-size: 21px; margin-bottom: 2px; }
.result-section-head p { margin: 0; font-size: 13px; }

/* ---------- Insight rows (compatibility breakdown) ---------- */
.insight-group { margin-bottom: 22px; }
.insight-group h3 { font-size: 15px; margin-bottom: 3px; }
.insight-group > p { font-size: 12.5px; margin-bottom: 10px; }
.insight-grid { display: flex; flex-direction: column; gap: 9px; }
.insight-row {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.insight-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.insight-row .icon-dot-sm {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft-2); color: var(--ink-soft);
}
.insight-row.tier-strength .icon-dot-sm { background: var(--success-soft); color: var(--success); }
.insight-row.tier-growth .icon-dot-sm { background: var(--warning-soft); color: var(--warning); }
.insight-row.tier-balanced .icon-dot-sm { background: var(--accent-soft); color: var(--accent-hover); }
.insight-row .insight-cat { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.insight-row .insight-tag { font-size: 12px; color: var(--ink-faint); display: block; font-weight: 500; }
.insight-row .insight-score { font-size: 13px; font-weight: 700; font-family: var(--font-display); }
.insight-row.tier-strength .insight-score { color: var(--success); }
.insight-row.tier-growth .insight-score { color: var(--warning); }
.insight-row.tier-balanced .insight-score { color: var(--accent-hover); }

/* ---------- Full PDF report CTA ---------- */
.report-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.report-cta-copy { flex: 1; min-width: 220px; }
.report-cta-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.report-cta .muted { font-size: 13px; margin: 0; }
.report-msg { margin-top: 10px; font-size: 12.5px; min-height: 16px; }

/* ---------- Share card feature ---------- */
.share-section { text-align: center; margin-top: 44px; }
.share-section-head { margin-bottom: 24px; }
.share-section-head h2 { font-size: 21px; margin-bottom: 6px; }
.share-section-head p { font-size: 13.5px; max-width: 380px; margin: 0 auto; }

.share-card-stage { display: flex; justify-content: center; margin-bottom: 22px; }
.share-card {
  width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  background: var(--ink-deep);
  position: relative;
  overflow: hidden;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-line);
}
.share-card::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background:
    radial-gradient(320px 260px at 8% -8%, rgba(184,134,62,0.32), transparent 60%),
    radial-gradient(320px 260px at 98% 106%, rgba(110,30,58,0.5), transparent 60%);
}
.share-card-brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 14.5px; color: var(--bg); position: relative;
}
.share-card-brand .seam { width: 24px; height: 24px; }
.share-card-brand .seam::before, .share-card-brand .seam::after { width: 10px; height: 10px; }
.share-card-brand .seam::before { left: 4px; }
.share-card-brand .seam::after { left: 9px; }

.share-card-mid {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; gap: 16px; text-align: center;
}
.share-card-ringwrap { width: 150px; height: 150px; position: relative; }
.share-card-ringwrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.share-card-ringwrap .track { stroke: rgba(251,246,239,0.14); fill: none; }
.share-card-ringwrap .fill { stroke: var(--gold); fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1); }
.share-card-score { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.share-card-score .num { font-family: var(--font-display); font-size: 38px; font-weight: 600; color: var(--gold-soft); }
.share-card-score .lbl { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(251,246,239,0.6); font-weight: 600; }

.share-card-names { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--bg); }
.share-card-tagline { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--gold-soft); max-width: 220px; line-height: 1.4; }

.share-card-foot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(251,246,239,0.52); font-weight: 600; position: relative;
}
.share-card-foot .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.share-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-msg { margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); min-height: 18px; }

.result-footer-links { margin-top: 48px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 480px) {
  .share-card { width: 100%; max-width: 300px; }
  .result-section-head { flex-direction: column; align-items: flex-start; gap: 2px; }
}

@keyframes resultFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.result-fade { animation: resultFadeUp 0.6s cubic-bezier(.2,.7,.2,1) both; }

/* ---------- Admin ---------- */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.admin-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.admin-table th, .admin-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.admin-table th { background: var(--bg-soft); font-weight: 600; color: var(--ink-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-table tr { transition: background 0.12s ease; }
.admin-table tr:hover td { background: var(--bg-soft); }
.admin-table tr:last-child td { border-bottom: none; }

/* Payment history table collapses into stacked cards on small screens
   instead of forcing horizontal scrolling — each cell becomes a labeled
   row using its data-label attribute. Scoped to .payment-table only so
   the admin dashboard's tables are unaffected. */
@media (max-width: 700px) {
  .payment-table.admin-table { min-width: 0; box-shadow: none; border: none; background: transparent; }
  .payment-table.admin-table thead { display: none; }
  .payment-table.admin-table, .payment-table.admin-table tbody, .payment-table.admin-table tr, .payment-table.admin-table td { display: block; width: 100%; }
  .payment-table.admin-table tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 6px 16px; margin-bottom: 14px; }
  .payment-table.admin-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: right; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .payment-table.admin-table td:last-child { border-bottom: none; }
  .payment-table.admin-table td::before { content: attr(data-label); font-weight: 600; color: var(--ink-soft); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; text-align: left; }
  .payment-table-wrap .table-scroll { overflow-x: visible; }
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin-bottom: 38px; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--gradient); }
.stat-card .num { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.stat-card .lbl { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }

.opt-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.opt-row input { flex: 1; }

.matrix-table { min-width: 0; }
.matrix-table th, .matrix-table td.matrix-cell { text-align: center; padding: 6px; width: 44px; }
.matrix-table thead th:first-child, .matrix-table tbody th { width: 32px; }
.matrix-input {
  width: 52px;
  padding: 6px 4px;
  text-align: center;
  border-radius: 8px;
  border: 1.5px solid var(--border-strong);
  font-size: 13px;
}
.matrix-cell-mirror { color: var(--ink-faint); background: var(--bg-soft); border-radius: 8px; font-size: 13px; }
.matrix-input-diag { background: var(--bg-soft-2); font-weight: 600; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--danger); font-size: 18px; padding: 4px 8px; border-radius: 6px; transition: background 0.15s ease; }
.icon-btn:hover { background: var(--danger-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 42px 0; text-align: center; color: var(--ink-faint); font-size: 13px; background: var(--bg-soft); font-family: var(--font-display); font-style: italic; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.spacer-32 { height: 32px; }
.loading-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.empty-state { text-align: center; padding: 54px 20px; color: var(--ink-soft); }

/* ---------- Landing page extras ---------- */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); padding: 26px 0; }
.trust-strip .container { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.trust-item svg { flex-shrink: 0; color: var(--gold); }

.section-head { max-width: 620px; margin: 0 auto 50px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 12px; }

.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-deep); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 20px; box-shadow: 0 6px 16px rgba(26,15,28,0.28); border: 1px solid var(--gold-line); }

.pricing-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 42px; box-shadow: var(--shadow-lg); overflow: hidden; }
.pricing-card::before { content: ''; position: absolute; top: -60%; right: -30%; width: 260px; height: 260px; border-radius: 50%; background: var(--gradient); opacity: 0.09; filter: blur(20px); }
.price-figure { font-family: var(--font-display); font-size: 50px; font-weight: 600; margin: 12px 0 4px; letter-spacing: -0.01em; }
.price-list { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 13px; position: relative; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.price-list svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

.cta-band { position: relative; background: var(--ink-deep); border-radius: var(--radius-lg); padding: 64px 40px; text-align: center; color: var(--bg); overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(440px 320px at 18% 18%, rgba(184,134,62,0.28), transparent 60%), radial-gradient(440px 320px at 85% 88%, rgba(110,30,58,0.4), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--bg); }
.cta-band p { color: rgba(251,246,239,0.72); }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
@media (max-width: 700px) { .stats-row { grid-template-columns: 1fr; } }
.stats-row .stat { text-align: center; }
.stats-row .stat .figure { font-family: var(--font-display); font-size: 38px; font-weight: 600; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-row .stat .lbl { font-size: 13px; color: var(--ink-soft); font-weight: 500; margin-top: 4px; }

.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.testimonial-card .quote-mark { font-family: var(--font-display); font-style: italic; font-size: 46px; color: var(--gold); opacity: 0.55; line-height: 1; margin-bottom: 4px; }
.testimonial-card p { color: var(--ink); font-size: 15.5px; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-card .who .avatar-badge { width: 38px; height: 38px; font-size: 14px; }
.testimonial-card .who .name { font-weight: 600; font-size: 13.5px; color: var(--ink); font-family: var(--font-display); }
.testimonial-card .who .role { font-size: 12.5px; color: var(--ink-faint); }

@media (max-width: 640px) {
  .trust-strip .container { gap: 22px; }
  .pricing-card { padding: 28px 22px; }
  .price-figure { font-size: 42px; }
  .testimonial-card { padding: 24px 20px; }
  .cta-band { padding: 44px 24px; }
  .stat-card { padding: 18px; }
  .stat-card .num { font-size: 26px; }
}

.faq-item { border-bottom: 1px solid var(--border); padding: 21px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.faq-question .chev { transition: transform 0.2s ease; color: var(--gold); flex-shrink: 0; }
.faq-item.open .faq-question .chev { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer p { padding-top: 12px; margin-bottom: 0; font-size: 14.5px; }

/* ---------- Dashboard sidebar layout ---------- */
body.no-scroll { overflow: hidden; }
.dash-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--ink-deep);
  border-right: 1px solid var(--gold-line);
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand { margin-bottom: 32px; padding: 0 6px; color: var(--bg); }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  color: rgba(251,246,239,0.66);
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-link svg { flex-shrink: 0; }
.sidebar-link:hover { background: rgba(251,246,239,0.06); color: var(--bg); text-decoration: none; }
.sidebar-link.active { background: rgba(184,134,62,0.16); color: var(--gold-soft); font-weight: 600; box-shadow: inset 0 0 0 1px var(--gold-line); }

.sidebar-footer { border-top: 1px solid rgba(251,246,239,0.14); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.sidebar-footer .user-chip { padding: 0 4px; color: rgba(251,246,239,0.75); }

.sidebar .btn-outline { background: transparent; color: var(--bg); border-color: rgba(251,246,239,0.26); }
.sidebar .btn-outline:hover { background: rgba(251,246,239,0.08); border-color: var(--gold); color: var(--gold-soft); }

.dash-main { flex: 1; min-width: 0; overflow-y: auto; }
.dash-main-inner { max-width: 760px; padding: 50px 44px; margin: 0 auto; }

/* Mobile top bar — hamburger + the Synk Soul logo, shown only on
   mobile (this block only ever applies inside the max-width:900px
   query below, and .dash-topbar itself is display:none on desktop). */
.dash-topbar {
  display: none;
  align-items: center;
  gap: 14px;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--gold-line);
  padding: 10px 18px;
  position: sticky;
  top: 0;
  z-index: 60;
}
.dash-topbar .brand { color: var(--bg); margin: 0; font-size: 17px; }

.sidebar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.sidebar-toggle span { display: block; width: 22px; height: 2px; background: var(--bg); border-radius: 2px; margin: 0 auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.sidebar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle.active span:nth-child(2) { opacity: 0; }
.sidebar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,10,16,0.5);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.sidebar-backdrop.open { opacity: 1; visibility: visible; }

@media (max-width: 900px) {
  .dash-layout { flex-direction: column; }
  .dash-topbar { display: flex; }
  .sidebar-backdrop { display: block; }

  /* The sidebar becomes a fixed, off-canvas drawer that slides in from
     the left over the content, instead of squeezing into a cramped
     horizontal strip. `dvh` (where supported) accounts for mobile
     browser toolbars so the footer (user chip + logout) never ends up
     hidden behind them; overflow-y is a safety net on very short
     screens so that footer is always reachable by scrolling. */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 264px;
    max-width: 82vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 24px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    gap: 0;
    z-index: 100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 8px 0 32px rgba(0,0,0,0.28);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar .brand { margin-bottom: 28px; }
  .sidebar-nav { flex-direction: column; flex: none; }
  .sidebar-footer { flex-direction: column; border-top: 1px solid rgba(251,246,239,0.14); padding-top: 20px; margin-left: 0; margin-top: 24px; }
  .sidebar-footer .btn-block { width: 100%; }
  .dash-main-inner { padding: 28px 18px; }
}

/* ===================== Confirm modal ===================== */
/* Replaces native window.confirm()/alert() with something that matches
   the site's look — used for payment confirmations, deletions, etc. */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,15,28,0.55);
  backdrop-filter: blur(6px) saturate(120%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  animation: modalOverlayIn 0.22s ease forwards;
}
.modal-overlay.closing { animation: modalOverlayOut 0.16s ease forwards; }
@keyframes modalOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalOverlayOut { from { opacity: 1; } to { opacity: 0; } }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 34px 30px;
  text-align: center;
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  animation: modalCardIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.02s forwards;
}
.modal-overlay.closing .modal-card { animation: modalCardOut 0.16s ease forwards; }
@keyframes modalCardIn { to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes modalCardOut { from { transform: translateY(0) scale(1); opacity: 1; } to { transform: translateY(8px) scale(0.97); opacity: 0; } }

.modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: var(--shadow-glow), 0 0 0 6px var(--surface);
}
.modal-card.modal-danger::before {
  background: linear-gradient(135deg, #8B2E2E 0%, #A23B3B 100%);
  box-shadow: 0 10px 28px rgba(139,46,46,0.28), 0 0 0 6px var(--surface);
}
.modal-card.modal-danger .modal-eyebrow { color: #A23B3B; }
.modal-icon {
  position: relative;
  width: 64px; height: 64px;
  margin: -32px auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  z-index: 1;
}
.modal-icon svg { width: 28px; height: 28px; }

.modal-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.25;
}
.modal-body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 8px;
}
.modal-amount {
  display: inline-block;
  margin: 14px 0 20px;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  font-weight: 600;
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.modal-actions .btn { flex: 1; justify-content: center; }
.modal-close-x {
  position: absolute;
  top: 16px; right: 16px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close-x:hover { background: var(--bg-soft); color: var(--ink); }

@media (max-width: 480px) {
  .modal-card { padding: 30px 22px 24px; }
  .modal-title { font-size: 21px; }
  .modal-amount { font-size: 27px; }
  .modal-actions { flex-direction: column-reverse; }
}
