/* ═══════════════════════════════════════════════════════════
   ReachOut — SaaS Dashboard
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gray-25:  #fcfcfd;
  --gray-50:  #f9fafb;
  --gray-100: #f2f4f7;
  --gray-200: #eaecf0;
  --gray-300: #d0d5dd;
  --gray-400: #98a2b3;
  --gray-500: #667085;
  --gray-600: #475467;
  --gray-700: #344054;
  --gray-800: #1d2939;
  --gray-900: #101828;
  --primary:  #2a9e6e;
  --primary-dark: #228a5e;
  --success:  #12b76a;
  --warning:  #f79009;
  --error:    #f04438;
  --white:    #fff;
  --green-50:  #eef8f4;
  --green-100: #d4eee3;
  --radius:   8px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(16,24,40,0.05);
  --shadow-sm: 0 1px 3px rgba(16,24,40,0.1), 0 1px 2px rgba(16,24,40,0.06);
}

/* ── Geist font — all headings, labels, buttons ── */
.brand-name,
.hero-title,
.hero-step span,
.hero-cta,
.card-header h2,
.card-desc,
.form-group label,
.upload-hint,
.btn-primary,
.nav-link,
.page-title,
.page-subtitle,
.wizard-step-label,
.wizard-title,
.wizard-subtitle,
.wizard-brand-mark,
.wizard-step-bubble,
.btn-wizard-primary,
.btn-wizard-back {
  font-family: 'Geist Variable', 'Geist', sans-serif;
}

body {
  font-family: var(--font);
  background: #edeeed;
  color: var(--gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── App Shell ────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
  padding: 1rem;
  gap: 1rem;
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════ */
.sidebar {
  width: 260px;
  background: #0a0f0b;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 1rem;
  left: 1rem;
  bottom: 1rem;
  z-index: 20;
  overflow-y: auto;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.28);
  isolation: isolate;
}

.sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 1 0 0 0  0 0 0 0 0  0 0.55 0 0 0'/></filter><rect width='200' height='200' filter='url(%23g)'/></svg>");
  background-size: 200px 200px;
  mix-blend-mode: screen;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

/* ── Brand ────────────────────────────────────────────── */
.sidebar-top { padding: 2rem 1.25rem 1rem; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.5rem;
  margin-bottom: 1.75rem;
}

.brand-icon { flex-shrink: 0; }

.brand-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #e8f5ee;
  letter-spacing: -0.02em;
}

/* ── Nav Section ──────────────────────────────────────── */
.nav-section { margin-bottom: 1.5rem; }

.nav-section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: #7aaa91;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.nav-link svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.nav-link:hover {
  background: rgba(255,255,255,0.07);
  color: #d0edd9;
}

.nav-link:hover svg { opacity: 1; color: #d0edd9; }

.nav-link.active {
  background: rgba(42,158,110,0.22);
  color: #5fd49a;
  font-weight: 600;
}

.nav-link.active svg { opacity: 1; color: #5fd49a; }

/* ── Sidebar Bottom ───────────────────────────────────── */
.sidebar-bottom {
  margin-top: auto;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #8ab5a0;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
}

.user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #c5dfd0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.75rem;
  color: #5a8a72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sign-out {
  color: rgba(255,255,255,0.28) !important;
  margin-top: 0.25rem;
}

.sign-out:hover { color: #ff8888 !important; }

/* ══════════════════════════════════════════════════════════
   MAIN AREA
   ══════════════════════════════════════════════════════════ */
.main-area {
  flex: 1;
  margin-left: calc(260px + 2rem);
  margin-right: 1rem;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 2rem);
  overflow: hidden;
  position: sticky;
  top: 1rem;
}

/* ── Page Content ─────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 2rem 2.5rem 3rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.page-content::-webkit-scrollbar { display: none; }

/* ── Flash ────────────────────────────────────────────── */
.flash-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flash {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(16,24,40,0.12);
  max-width: 320px;
  animation: toast-in 0.25s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash.toast-hide {
  opacity: 0;
  transform: translateY(6px);
}

.flash-notice {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #a6f4c5;
}

.flash-alert {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page Header ──────────────────────────────────────── */
.page-header {
  margin-bottom: 1.75rem;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  margin-top: 0.375rem;
  margin-bottom: 1.5rem;
}

/* ── Hero Banner ──────────────────────────────────────── */
.hero-banner {
  background: #080d09;
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(61,191,136,0.1), 0 4px 24px rgba(0,0,0,0.22);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* radial glow removed */
.hero-banner::before {
  display: none;
}

/* green grain overlay */
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 1 0 0 0  0 0 0 0 0  0 0.55 0 0 0'/></filter><rect width='200' height='200' filter='url(%23g)'/></svg>");
  background-size: 200px 200px;
  mix-blend-mode: screen;
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
}

/* hero banner content must sit above both pseudo-elements */
.hero-banner > * {
  position: relative;
  z-index: 2;
}

.completeness-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e8f5ee;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.completeness-subtext {
  font-size: 0.9375rem;
  color: #6ba888;
}

/* ── Completeness track ── */
.completeness-track-wrap {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.completeness-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.completeness-fill {
  height: 100%;
  background: linear-gradient(90deg, #2a9e6e, #3dbf88);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.completeness-pct {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4dd896;
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

/* ── Completeness chips ── */
.completeness-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.completeness-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.completeness-chip.chip-done {
  background: rgba(61,191,136,0.15);
  color: #4dd896;
  border: 1px solid rgba(61,191,136,0.25);
}

.completeness-chip.chip-empty {
  background: rgba(255,255,255,0.06);
  color: #6ba888;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── CTA button with shine ── */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.5rem;
  background: linear-gradient(135deg, #1a7a52, #2a9e6e, #3dbf88);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(42, 158, 110, 0.22);
  transition: box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80%);
  animation: cta-shine 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-shine {
  0%        { left: -100%; }
  28%, 100% { left: 150%; }
}

.hero-cta:hover {
  box-shadow: 0 0 18px rgba(42, 158, 110, 0.35);
  transform: translateY(-1px);
}


/* ══════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.375rem 1.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.055);
}

.card-header h2 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.card-body {
  padding: 1.375rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ══════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2d3d36;
  letter-spacing: -0.005em;
}

.required {
  color: #f04438;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid #e2e6e4;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--gray-900);
  background: #fafcfb;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  resize: vertical;
}

.form-control::placeholder {
  color: #b0beba;
}

.form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 158, 110, 0.1);
}

textarea.form-control {
  min-height: 80px;
}


.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ── Dropzone ─────────────────────────────────────────── */
.upload-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-400);
  margin-left: 0.375rem;
}

.dropzone {
  position: relative;
  border: 1.5px dashed #d0d8d4;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  margin-top: -0.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fafcfb;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(42, 158, 110, 0.03);
}

.dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  font-size: 0;
}

.dropzone-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.dropzone-icon {
  color: var(--primary);
}

.dropzone-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

.dropzone-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dropzone-files {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.dropzone-files li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.375rem 0.75rem;
  text-align: left;
}

.dropzone-files li svg {
  flex-shrink: 0;
  color: var(--primary);
}

.dropzone-files .remove-file {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0;
  line-height: 1;
  font-size: 1rem;
}

.dropzone-files .remove-file:hover {
  color: var(--gray-700);
}

.dropzone-files .cv-on-file {
  color: var(--success, #16a34a);
  justify-content: space-between;
}

.dropzone-files .cv-on-file .cv-delete-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
  line-height: 1;
  margin-left: auto;
  text-decoration: none;
}

.dropzone-files .cv-on-file .cv-delete-btn:hover {
  color: var(--gray-700);
}

.dropzone-notice {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ── Step 2: two-column layout ── */
.wizard-step2-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
  max-width: 940px;
}

.step2-dropzone-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step2-dropzone {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  border: 2px dashed var(--gray-300);
  border-radius: 16px;
  padding: 2.5rem 2rem 1.5rem;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.step2-dropzone:hover,
.step2-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(42, 158, 110, 0.03);
}

.step2-dropzone .dropzone-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.step2-upload-icon {
  color: var(--primary);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.step2-drop-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.step2-or {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  margin: 0.25rem 0;
}

.step2-upload-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}

.step2-dropzone:hover .step2-upload-btn {
  background: var(--primary-dark);
}

.step2-file-types {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
  margin: 0;
}

.step2-content-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0.25rem;
}

/* ── Form Actions ─────────────────────────────────────── */
.form-actions {
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  background: #0d1812;
  color: #e8f5ee;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: #1a2e20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

/* ── Inline Form Actions ──────────────────────────────── */
.form-actions-inline {
  margin-top: 1.5rem;
}

/* ── Field Error ──────────────────────────────────────── */
.field-error {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--error);
}

/* ── Plan / Billing ───────────────────────────────────── */
.plan-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ── Pricing grid ──────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  position: relative;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
}

.pricing-card.current-plan {
  background: var(--gray-50);
}

.pricing-card.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(42, 158, 110, 0.12);
}

.pricing-card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
}

.pricing-card-label svg {
  color: var(--gray-400);
}

.pricing-card-price {
  font-family: 'Geist Variable', 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
}

.pricing-card-period {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gray-500);
}

.pricing-card-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.pricing-card-current {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
}

.pricing-card-cta {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.5;
}

.pricing-card-cta-dark {
  background: var(--gray-900);
}

.pricing-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--gray-100);
}

.pricing-card-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.pricing-card-features li svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* ── Usage bar ─────────────────────────────────────────── */
.usage-section {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.usage-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.usage-label {
  font-family: 'Geist Variable', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
}

.usage-count {
  font-family: 'Geist Variable', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
}

.usage-track {
  height: 8px;
  background: var(--gray-200);
  border-radius: 0;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 0;
  transition: width 0.4s ease;
  min-width: 0;
}

.usage-reset {
  font-size: 0.775rem;
  color: var(--gray-400);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #1a7a52, #2a9e6e, #3dbf88);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  box-shadow: 0 0 16px rgba(42, 158, 110, 0.45);
  transition: opacity 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-cta:hover {
  opacity: 0.9;
  box-shadow: 0 0 22px rgba(42, 158, 110, 0.6);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════
   ONBOARDING WIZARD
   ══════════════════════════════════════════════════════════ */

/* ── Two-column layout ── */
.wizard-layout {
  display: flex;
  min-height: 100vh;
  background: #fff;
}

/* ── Left sidebar ── */
.wizard-sidebar {
  width: 88px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 180px;
}

.wizard-brand-mark {
  display: none;
}

/* ── Vertical step nav ── */
.wizard-steps-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wizard-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wizard-step-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gray-300);
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.wizard-step-item.active .wizard-step-bubble {
  border-color: var(--primary);
  border-width: 2.5px;
  color: var(--primary);
  background: #f0faf5;
  box-shadow: 0 0 0 5px rgba(42,158,110,0.12);
}

.wizard-step-item.done .wizard-step-bubble {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.wizard-step-line {
  width: 2px;
  height: 80px;
  background: var(--gray-200);
  transition: background 0.2s;
}

.wizard-step-line.done {
  background: var(--primary);
}

/* ── Main content area ── */
.wizard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 3rem 4rem;
  max-width: 940px;
}

/* ── Step header typography ── */
.wizard-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f1a14;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.wizard-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 680px;
}

/* ── Form ── */
.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 680px;
}

.wizard-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wizard-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-400);
  margin-left: 0.375rem;
}

.wizard-field-hint {
  font-size: 0.75rem;
  color: var(--gray-400);
  line-height: 1.4;
}

/* ── Actions ── */
.wizard-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
}

.btn-wizard-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-wizard-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(42,158,110,0.3);
}

.btn-wizard-back {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  text-decoration: none;
  cursor: pointer;
}

.btn-wizard-back:hover { color: var(--gray-700); }

/* ── Wizard form labels — more prominent than dashboard ── */
.wizard-form .form-group label {
  font-size: 1rem;
  font-weight: 700;
  color: #0f1a14;
  letter-spacing: -0.01em;
}

/* ── Objective cards ── */
.objective-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.objective-card {
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  user-select: none;
  background: #fafcfb;
}

.objective-card:hover {
  border-color: #2a9e6e;
  background: #f6fdf9;
  box-shadow: 0 0 0 3px rgba(42, 158, 110, 0.07);
}

.objective-card.selected {
  border-color: #2a9e6e;
  background: #f0faf5;
  box-shadow: 0 0 0 3px rgba(42, 158, 110, 0.1);
}

.objective-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.objective-icon {
  font-size: 1.375rem;
  line-height: 1;
}

.objective-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.objective-card.selected .objective-check {
  background: #2a9e6e;
  border-color: #2a9e6e;
  color: #fff;
}

.objective-label {
  font-family: 'Geist Variable', 'Geist', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f1a14;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.objective-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ── Coming-soon cards ── */
.objective-card.coming-soon {
  cursor: default;
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

.objective-card.coming-soon > *:not(.coming-soon-badge) {
  filter: blur(3px);
  opacity: 0.45;
  user-select: none;
}

.coming-soon-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: rgba(255,255,255,0.55);
  pointer-events: none;
}

/* ── Done screen ── */
.wizard-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.wizard-done-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0faf5;
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════════════════════
   AUTH PAGES (login / signup)
   ══════════════════════════════════════════════════════════ */
.auth-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: #fff;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(16,24,40,0.10), 0 2px 10px rgba(16,24,40,0.06);
  padding: 2.25rem 2.25rem 2rem;
}

/* ── Geist font for all auth headings & labels ── */
.auth-card-brand,
.auth-title,
.auth-subtitle,
.form-section-label,
.auth-form .form-label,
.forgot-link,
.auth-footer,
.auth-link {
  font-family: 'Geist Variable', 'Geist', sans-serif;
}

/* ── Logo inside card ── */
.auth-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.auth-card-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f1a14;
  letter-spacing: -0.03em;
}

/* ── Heading ── */
.auth-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: #0f1a14;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
}

.auth-brand-accent {
  color: #2a9e6e;
}

.auth-subtitle {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #5a7367;
  line-height: 1.5;
  margin: -0.875rem 0 1.5rem;
}

.auth-header {
  margin-bottom: 0;
}

/* ── Section label above fields ── */
.form-section-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f1a14;
  margin: 0;
}

/* ── Form ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.auth-form .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f1a14;
  margin-bottom: 0.3rem;
}

/* ── Input with eye toggle wrapper ── */
.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-wrapper .form-input {
  padding-right: 2.75rem;
}

.form-eye-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #a0b8ac;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.form-eye-btn:hover,
.form-eye-btn.active { color: #5a7367; }

/* ── Inputs ── */
.auth-form .form-input {
  width: 100%;
  padding: 0.8125rem 1.125rem;
  font-size: 0.9375rem;
  font-family: var(--font);
  color: #0f1a14;
  background: #fff;
  border: 1.5px solid #d4e8de;
  border-radius: 100px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}

.auth-form .form-input::placeholder {
  color: #a0b8ac;
}

.auth-form .form-input:focus {
  border-color: #2a9e6e;
  box-shadow: 0 0 0 3px rgba(42, 158, 110, 0.12);
}

.auth-field-hint {
  font-size: 0.75rem;
  color: #5a7367;
  margin-top: 0.3rem;
  padding-left: 0.25rem;
}

/* ── Forgot password ── */
.forgot-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #5a7367;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: center;
  margin-top: -0.125rem;
}

.forgot-link:hover { color: #0f1a14; }

/* ── Remember me toggle ── */
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.remember-label {
  font-size: 0.9375rem;
  color: var(--gray-400);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-200);
  border-radius: 999px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.toggle-input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* ── Submit button ── */
.btn-login {
  width: 100%;
  padding: 0.9375rem;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  color: #fff;
  background: linear-gradient(135deg, #1a7a52, #2a9e6e, #3dbf88);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
  margin-top: 0.625rem;
}

.btn-login:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── Footer ── */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #5a7367;
}

.auth-link {
  font-weight: 600;
  color: #0f1a14;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-link:hover { color: #2a9e6e; }

/* ── Error messages ── */
.auth-form #error_explanation {
  background: #fff1f0;
  border: 1px solid #ffa39e;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--error);
}

.auth-form #error_explanation h2 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.auth-form #error_explanation ul { padding-left: 1.25rem; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .app-shell { padding: 0; gap: 0; }
  .sidebar { display: none; }
  .main-area { margin-left: 0; border-radius: 0; height: 100vh; top: 0; }
  .page-content { padding: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
}
