/* ═══════════════════════════════════════════════════════════════
   ProProfile — Design System
   Version: 2.0
   Last updated: 2026-05-27

   TABLE OF CONTENTS
   1.  Tokens — colors, radii, shadows, transitions
   2.  Typography — scale, weights, families
   3.  Spacing — scale
   4.  Reset
   5.  Base
   6.  Shell — topbar, progress stepper
   7.  Stage — layout containers
   8.  Card
   9.  Form — field groups, inputs, textarea, labels
  10.  Buttons
  11.  Tags & Pills
  12.  Avatar
  13.  Divider
  14.  Feedback — error, success, info, warning
  15.  Utilities
═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────
   1. TOKENS
───────────────────────────────────────── */
:root {

  /* Backgrounds */
  --bg:            #0F0F1A;
  --bg-card:       #161625;
  --bg-card-hover: #1a1a2e;
  --bg-elev:       #1e1e35;
  --bg-input:      rgba(255,255,255,0.05);

  /* Borders */
  --border:          rgba(255,255,255,0.07);
  --border-strong:   rgba(255,255,255,0.12);
  --border-hairline: rgba(255,255,255,0.04);

  /* Text */
  --text:       #E5E7EB;
  --text-strong: #ffffff;
  --text-muted: rgba(255,255,255,0.55);
  --text-dim:   rgba(255,255,255,0.38);
  --text-dimmer:rgba(255,255,255,0.25);
  --text-faint: rgba(255,255,255,0.15);

  /* Blue — primary brand */
  --blue:        #4F6EF7;
  --blue-soft:   #818CF8;
  --blue-bg:     rgba(79,110,247,0.12);
  --blue-border: rgba(79,110,247,0.3);
  --blue-hover:  #3d5ce0;

  /* Green — success */
  --green:        #22C9A5;
  --green-soft:   #3DDBB8;
  --green-bg:     rgba(34,201,165,0.12);
  --green-border: rgba(34,201,165,0.3);

  /* Amber — warning */
  --amber:        #F59E0B;
  --amber-bg:     rgba(245,158,11,0.10);
  --amber-border: rgba(245,158,11,0.25);

  /* Red — error / destructive */
  --red:        #F87171;
  --red-bg:     rgba(239,68,68,0.08);
  --red-border: rgba(239,68,68,0.20);

  /* Violet — AI-generated content signal */
  --violet:        #A78BFA;
  --violet-bg:     rgba(167,139,250,0.12);
  --violet-border: rgba(167,139,250,0.30);

  /* Gradients */
  --hero-grad:   linear-gradient(135deg, #1a1a35 0%, #1e2a4a 50%, #1a2e35 100%);
  --avatar-grad: linear-gradient(135deg, #4F6EF7, #22C9A5);
  --bar-grad:    linear-gradient(90deg,   #4F6EF7, #22C9A5);

  /* Border radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  18px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow-blue:  0 0 0 3px rgba(79,110,247,0.18);
  --shadow-glow-green: 0 0 0 3px rgba(34,201,165,0.15);

  /* Transitions */
  --t-fast:   all 0.12s ease;
  --t-base:   all 0.18s ease;
  --t-slow:   all 0.28s ease;

  /* Z-index scale */
  --z-base:    0;
  --z-above:   10;
  --z-topbar:  100;
  --z-overlay: 200;
  --z-modal:   300;
}


/* ─────────────────────────────────────────
   2. TYPOGRAPHY
───────────────────────────────────────── */
:root {
  /* Font families */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Type scale (desktop-first, fluid at smaller breakpoints) */
  --text-xs:   11px;   /* labels, eyebrows, legal */
  --text-sm:   13px;   /* captions, helper text, badges */
  --text-base: 14px;   /* body default, form inputs */
  --text-md:   15px;   /* slightly larger body */
  --text-lg:   16px;   /* lead paragraphs */
  --text-xl:   18px;   /* small headings */
  --text-2xl:  22px;   /* card titles */
  --text-3xl:  26px;   /* section headings */
  --text-4xl:  32px;   /* page headings */
  --text-5xl:  40px;   /* hero headings */
  --text-6xl:  52px;   /* marketing headings */

  /* Line heights */
  --leading-tight:  1.18;
  --leading-snug:   1.35;
  --leading-normal: 1.55;
  --leading-relaxed:1.7;

  /* Letter spacing */
  --tracking-tight:  -0.5px;
  --tracking-normal: 0;
  --tracking-wide:   0.5px;
  --tracking-wider:  1.5px;
  --tracking-widest: 2px;

  /* Font weights */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
}


/* ─────────────────────────────────────────
   3. SPACING
───────────────────────────────────────── */
:root {
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
}


/* ─────────────────────────────────────────
   4. RESET
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button { cursor: pointer; }
a      { color: inherit; }
img, svg { display: block; }
input, textarea, button, select {
  font: inherit;
}


/* ─────────────────────────────────────────
   5. BASE
───────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* Headings — apply via class, not element, for semantic flexibility */
.h1 {
  font-size: var(--text-5xl);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.h2 {
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.h3 {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.3px;
  color: var(--text-strong);
}
.h4 {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--leading-snug);
  color: var(--text-strong);
}
.h5 {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.h6 {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-faint);
}

.lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}


/* ─────────────────────────────────────────
   6. SHELL — topbar + progress stepper
───────────────────────────────────────── */

/* Topbar */
.shell-topbar {
  background: var(--bg-card);
  border-bottom: 0.5px solid var(--border);
  height: 52px;
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
}
.shell-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  gap: var(--space-4);
}

.shell-logo {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
  letter-spacing: 1px;
  text-decoration: none;
  transition: var(--t-fast);
}
.shell-logo:hover { opacity: 0.85; }
.shell-logo span  { color: var(--blue); }

.shell-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.shell-topbar-skip {
  font-size: var(--text-sm);
  color: var(--text-dim);
  transition: var(--t-fast);
}
.shell-topbar-skip:hover { color: var(--text-muted); }

.shell-topbar-help {
  font-size: var(--text-sm);
  color: var(--text-dim);
  text-decoration: none;
  border: 0.5px solid var(--border-strong);
  padding: 5px 12px;
  border-radius: var(--r-full);
  transition: var(--t-base);
}
.shell-topbar-help:hover {
  color: var(--text-strong);
  border-color: rgba(255,255,255,0.25);
}

/* Progress stepper */
.shell-progress {
  background: var(--bg-card);
  border-bottom: 0.5px solid var(--border);
  padding: var(--space-3) 0 var(--space-4);
}
.shell-progress-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.shell-progress-rail {
  display: flex;
  align-items: flex-start;
  position: relative;
}
.shell-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  position: relative;
}
.shell-step-line {
  position: absolute;
  top: 7px;
  left: 14px;
  right: -50%;
  height: 1px;
  background: var(--border);
  z-index: var(--z-base);
}
.shell-step:last-child .shell-step-line { display: none; }
.shell-step-line.done { background: var(--blue); opacity: 0.5; }

.shell-step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  position: relative;
  z-index: var(--z-above);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--t-base);
}
.shell-step-dot.done {
  background: var(--blue);
  border-color: var(--blue);
}
.shell-step-dot.done::after {
  content: '';
  width: 5px;
  height: 8px;
  border-right: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(45deg) translate(-1px, -1px);
}
.shell-step-dot.current {
  border-color: var(--blue);
  box-shadow: var(--shadow-glow-blue);
}
.shell-step-dot.current::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.shell-step-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--text-faint);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.shell-step.current .shell-step-label {
  color: var(--blue-soft);
  font-weight: var(--fw-semibold);
}
.shell-step.done .shell-step-label { color: var(--text-dim); }


/* ─────────────────────────────────────────
   7. STAGE — layout containers
───────────────────────────────────────── */
.stage {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-14) var(--space-8) var(--space-20);
  position: relative;
}
.stage-narrow  { max-width: 540px;  margin: 0 auto; }
.stage-medium  { max-width: 720px;  margin: 0 auto; }
.stage-wide    { max-width: 1100px; margin: 0 auto; }

/* Eyebrow / title / sub within a stage */
.stage-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-3);
  text-align: center;
}
.stage-eyebrow.left { text-align: left; }

.stage-title {
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
  text-align: center;
}
.stage-title.left { text-align: left; }

.stage-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-10);
  text-align: center;
}
.stage-sub.left { text-align: left; }

/* Ambient glow accents */
.stage-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,110,247,0.10) 0%, transparent 70%);
  top: -120px;
  right: -80px;
  pointer-events: none;
  z-index: -1;
}
.stage-glow2 {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,201,165,0.07) 0%, transparent 70%);
  bottom: -60px;
  left: 10%;
  pointer-events: none;
  z-index: -1;
}


/* ─────────────────────────────────────────
   8. CARD
───────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.card-pad    { padding: var(--space-7); }
.card-pad-lg { padding: var(--space-10) - 4px; padding: 36px; }

/* Card header bar */
.card-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 0.5px solid var(--border);
}
.card-ttl {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-dim);
}
.card-act {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--blue);
  background: transparent;
  border: 0.5px solid var(--blue-border);
  border-radius: var(--r-full);
  padding: 4px 11px;
  cursor: pointer;
  transition: var(--t-base);
}
.card-act:hover { background: var(--blue-bg); }


/* ─────────────────────────────────────────
   9. FORM
───────────────────────────────────────── */

/* Field grouping */
.field-group {
  margin-bottom: var(--space-5);
}
.field-group:last-of-type { margin-bottom: 0; }

/* Horizontal field row */
.field-row {
  display: flex;
  gap: var(--space-3);
}
.field-row .field-group { flex: 1; }

/* Label */
.field-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-2);
}

/* Helper text */
.field-help {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: var(--leading-normal);
}

/* Text input */
.input {
  width: 100%;
  background: var(--bg-input);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--text-strong);
  outline: none;
  transition: var(--t-base);
}
.input:focus {
  border-color: var(--blue-border);
  background: rgba(79,110,247,0.06);
}
.input::placeholder { color: var(--text-dimmer); }
.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Input with left prefix (+1, emoji flags, etc.) */
.input-prefix-wrap { position: relative; }
.input-prefix-wrap .input { padding-left: 46px; }
.input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-base);
  color: var(--text-dim);
  font-weight: var(--fw-medium);
  pointer-events: none;
  user-select: none;
}

/* Textarea */
.textarea {
  width: 100%;
  background: var(--bg-input);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-strong);
  resize: vertical;
  outline: none;
  transition: var(--t-base);
  line-height: var(--leading-normal);
  min-height: 100px;
}
.textarea:focus      { border-color: var(--blue-border); }
.textarea::placeholder { color: var(--text-dimmer); }

/* OTP cells — used on verify-phone step */
.otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.otp-cell {
  width: 50px;
  height: 60px;
  border-radius: var(--r-md);
  background: var(--bg-input);
  border: 0.5px solid var(--border-strong);
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: var(--fw-bold);
  text-align: center;
  outline: none;
  transition: var(--t-base);
  caret-color: var(--blue);
}
.otp-cell:focus {
  border-color: var(--blue);
  background: rgba(79,110,247,0.08);
  box-shadow: 0 0 0 3px rgba(79,110,247,0.15);
}
.otp-cell.filled { border-color: rgba(79,110,247,0.4); }
.otp-cell.error  {
  border-color: var(--red);
  background: var(--red-bg);
  animation: otp-shake 0.3s ease;
}
@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

/* OAuth buttons — social sign-in */
.oauth-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--bg-input);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--text-strong);
  cursor: pointer;
  transition: var(--t-base);
  text-align: left;
}
.oauth-btn + .oauth-btn { margin-top: 10px; }
.oauth-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
.oauth-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.oauth-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Password strength bars */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: var(--space-2);
}
.password-strength-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.2s;
}
.password-strength-bar.active        { background: var(--text-dim); }
.password-strength-bar.active.weak   { background: var(--red); }
.password-strength-bar.active.medium { background: var(--amber); }
.password-strength-bar.active.strong { background: var(--green); }
.password-strength-label {
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-top: var(--space-1);
}


/* ─────────────────────────────────────────
   10. BUTTONS
───────────────────────────────────────── */
.btn {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  padding: 12px 22px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: var(--t-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Primary */
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover    { background: var(--blue-hover); }
.btn-primary:disabled { background: rgba(79,110,247,0.3); color: rgba(255,255,255,0.5); cursor: not-allowed; }

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 0.5px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--text-strong); }

/* Tertiary (text-only) */
.btn-tertiary { background: transparent; color: var(--text-muted); border: none; }
.btn-tertiary:hover { color: var(--text-strong); }

/* Danger */
.btn-danger { background: var(--red-bg); color: var(--red); border: 0.5px solid var(--red-border); }
.btn-danger:hover { background: rgba(239,68,68,0.15); }

/* Size modifiers */
.btn-sm { font-size: var(--text-xs); padding: 7px 13px; border-radius: var(--r-sm); }
.btn-lg { font-size: var(--text-md);  padding: 15px 28px; border-radius: var(--r-lg); }

/* Shape modifier */
.btn-pill { border-radius: var(--r-full); }

/* Layout helpers */
.btn-row            { display: flex; gap: var(--space-3); align-items: center; }
.btn-row.between    { justify-content: space-between; }
.btn-row.end        { justify-content: flex-end; }
.btn-row.center     { justify-content: center; }

/* Action footer — sticky bottom of a stage or form */
.action-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 0.5px solid var(--border);
}


/* ─────────────────────────────────────────
   11. TAGS & PILLS
───────────────────────────────────────── */

/* Step eyebrow — "Step 1 of 6" */
.eyebrow-step {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: var(--space-3);
}
.eyebrow-step::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* Status tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: 3px 9px;
  border-radius: var(--r-full);
  white-space: nowrap;
  line-height: 1.6;
}
.tag-green   { background: var(--green-bg);   border: 0.5px solid var(--green-border);   color: var(--green); }
.tag-blue    { background: var(--blue-bg);    border: 0.5px solid var(--blue-border);    color: var(--blue-soft); }
.tag-amber   { background: var(--amber-bg);   border: 0.5px solid var(--amber-border);   color: var(--amber); }
.tag-red     { background: var(--red-bg);     border: 0.5px solid var(--red-border);     color: var(--red); }
.tag-violet  { background: var(--violet-bg);  border: 0.5px solid var(--violet-border);  color: var(--violet); }
.tag-neutral { background: rgba(255,255,255,0.04); border: 0.5px solid var(--border); color: var(--text-muted); }

/* AI provenance pill — marks AI-generated content regions */
.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--violet-bg);
  border: 0.5px solid var(--violet-border);
  color: var(--violet);
  letter-spacing: 0.3px;
}
.ai-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 6px var(--violet);
  flex-shrink: 0;
}


/* ─────────────────────────────────────────
   12. AVATAR
───────────────────────────────────────── */
.avatar {
  background: var(--avatar-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  color: white;
  flex-shrink: 0;
  /* Size set by modifier or inline */
  width: 96px;
  height: 96px;
  border-radius: var(--r-2xl);
  font-size: 32px;
}
.avatar-sm  { width: 32px; height: 32px; border-radius: var(--r-sm);  font-size: 13px; }
.avatar-md  { width: 44px; height: 44px; border-radius: var(--r-md);  font-size: 16px; }
.avatar-lg  { width: 72px; height: 72px; border-radius: var(--r-xl);  font-size: 26px; }
.avatar-xl  { width: 96px; height: 96px; border-radius: var(--r-2xl); font-size: 32px; }


/* ─────────────────────────────────────────
   13. DIVIDER
───────────────────────────────────────── */
.divider {
  height: 0.5px;
  background: var(--border);
  margin: var(--space-6) 0;
}

/* "— or —" divider */
.divider-or {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.divider-or-line {
  flex: 1;
  height: 0.5px;
  background: var(--border);
}
.divider-or-text {
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────
   14. FEEDBACK — error, success, info, warning
───────────────────────────────────────── */

/* Shared feedback message base */
.msg {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  border: 0.5px solid transparent;
}
.msg.visible { display: flex; }
.msg svg     { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* Variants */
.msg-error   { background: var(--red-bg);    border-color: var(--red-border);    color: var(--red); }
.msg-success { background: var(--green-bg);  border-color: var(--green-border);  color: var(--green); }
.msg-warning { background: var(--amber-bg);  border-color: var(--amber-border);  color: var(--amber); }
.msg-info    { background: var(--blue-bg);   border-color: var(--blue-border);   color: var(--blue-soft); }

/* Legacy aliases — keep so existing HTML doesn't break */
.error-message   { display: none; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); font-size: var(--text-sm); background: var(--red-bg);   border: 0.5px solid var(--red-border);   color: var(--red); }
.success-message { display: none; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); font-size: var(--text-sm); background: var(--green-bg); border: 0.5px solid var(--green-border); color: var(--green); }
.error-message.visible, .success-message.visible { display: flex; }

/* Info note — contextual explanation boxes */
.info-note {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(167,139,250,0.06);
  border: 0.5px solid var(--violet-border);
  border-radius: var(--r-md);
  font-size: 12.5px;
  color: var(--violet);
  line-height: var(--leading-relaxed);
}
.info-note strong { color: var(--text-strong); font-weight: var(--fw-medium); }
.info-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
  margin-top: 6px;
  flex-shrink: 0;
}

/* Why-note — blue-tinted info callout */
.why-note {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(79,110,247,0.06);
  border: 0.5px solid var(--blue-border);
  border-radius: var(--r-md);
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  line-height: var(--leading-relaxed);
}
.why-note svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.why-note .hl { color: var(--text-strong); font-weight: var(--fw-medium); }


/* ─────────────────────────────────────────
   15. UTILITIES
───────────────────────────────────────── */

/* Text colors */
.text-strong  { color: var(--text-strong); }
.text-muted   { color: var(--text-muted); }
.text-dim     { color: var(--text-dim); }
.text-blue    { color: var(--blue-soft); }
.text-green   { color: var(--green); }
.text-amber   { color: var(--amber); }
.text-red     { color: var(--red); }
.text-violet  { color: var(--violet); }

/* Text alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Font weight */
.fw-medium   { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold     { font-weight: var(--fw-bold); }

/* Display */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Inline link */
.link {
  color: var(--blue-soft);
  text-decoration: none;
  cursor: pointer;
  transition: var(--t-fast);
}
.link:hover { color: var(--blue); text-decoration: underline; }
.link-sm { font-size: var(--text-sm); }

/* Margin top */
.mt-1  { margin-top: var(--space-1); }
.mt-2  { margin-top: var(--space-2); }
.mt-3  { margin-top: var(--space-3); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }

/* Margin bottom */
.mb-1  { margin-bottom: var(--space-1); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-3  { margin-bottom: var(--space-3); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* Gap */
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Flex layouts */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }

/* Width */
.w-full { width: 100%; }

/* Responsive: hide on small screens */
@media (max-width: 880px) {
  .hide-mobile { display: none !important; }
  .stage { padding: var(--space-8) var(--space-5) var(--space-12); }
  .shell-topbar-inner { padding: 0 var(--space-5); }
  .shell-progress-inner { padding: 0 var(--space-5); }
}
