/* SmartZone Static UI — RTL Persian */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Vazirmatn', sans-serif;
  background: #f1f5f9;
  color: #1a1b23;
  line-height: 1.5;
}
a { color: inherit; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.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;
}

/* ── Cards & common ── */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.card__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.card__header h2 { margin: 0; font-size: 1rem; font-weight: 800; color: #0f172a; }
.card__header p { margin: 0.2rem 0 0; font-size: 0.82rem; color: #64748b; }
.page-title { margin: 0 0 0.25rem; font-size: 1.35rem; font-weight: 800; }
.page-subtitle { margin: 0 0 1.25rem; color: #64748b; font-size: 0.9rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.muted { color: #64748b; font-size: 0.82rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem; background: #2563eb; color: #fff;
  border: none; border-radius: 0.5rem; text-decoration: none;
  font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem; background: rgba(255,255,255,0.12); color: #fff;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 0.5rem;
  font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.75rem; border: 1px solid #cbd5e1; background: #fff;
  color: #334155; border-radius: 0.45rem; font: inherit; font-size: 0.82rem;
  font-weight: 600; cursor: pointer;
}
.link-more { color: #2563eb; text-decoration: none; font-size: 0.82rem; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 0.35rem; color: #2563eb; text-decoration: none; font-size: 0.88rem; font-weight: 600; margin-bottom: 1rem; }

.status-pill { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px; display: inline-block; }
.status-pill[data-status='pending'] { background: #dbeafe; color: #1d4ed8; }
.status-pill[data-status='approved'] { background: #dcfce7; color: #15803d; }
.status-pill[data-status='draft'] { background: #fef3c7; color: #b45309; }
.status-pill[data-status='rejected'] { background: #fee2e2; color: #b91c1c; }
.status-pill[data-status='review'] { background: #ede9fe; color: #6d28d9; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th { text-align: right; padding: 0.65rem; color: #64748b; font-weight: 600; border-bottom: 1px solid #e2e8f0; }
.data-table td { padding: 0.75rem 0.65rem; border-bottom: 1px solid #f1f5f9; }
.data-table .actions { display: flex; gap: 0.65rem; white-space: nowrap; }
.data-table .actions a { color: #2563eb; text-decoration: none; font-weight: 600; font-size: 0.82rem; }

/* ── Login ── */
.login-page {
  height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem; position: relative; color: #fff;
}
.login-page__bg {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0c4a6e 100%);
}
.login-page__footer {
  position: absolute; bottom: 0.75rem; left: 0; right: 0; z-index: 15;
  text-align: center; font-size: 0.72rem; color: rgba(255,255,255,0.88);
}
.login-shell {
  position: relative; z-index: 10; display: flex; flex-direction: column;
  width: 100%; max-width: 80rem; height: calc(100vh - 3rem); max-height: 800px;
  border-radius: 2rem; overflow: hidden;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}
@media (min-width: 1024px) { .login-shell { flex-direction: row; } }
.login-form-side {
  width: 100%; padding: 2rem; display: flex; flex-direction: column; justify-content: center; overflow-y: auto;
}
.login-brand-side {
  display: none; flex: 1; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(37,99,235,0.25), rgba(15,23,42,0.5));
  border-right: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 1024px) { .login-brand-side { display: flex; } }
.login-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.login-brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: #fff; }
.login-brand img { width: 2rem; height: 2rem; }
.login-brand span { font-weight: 800; font-size: 1.1rem; }
.login-topbar nav { display: flex; gap: 1.5rem; font-size: 0.85rem; }
.login-topbar nav a { color: rgba(255,255,255,0.7); text-decoration: none; }
.login-eyebrow { font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.login-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; margin: 0.5rem 0; }
.login-title__dot { color: #60a5fa; }
.login-subtitle { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin: 0 0 0.5rem; }
.login-demo-hint { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin: 0 0 1.5rem; }
.field-label { display: block; font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .role-grid { grid-template-columns: repeat(3, 1fr); } }
.role-card {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.75rem;
  border: 2px solid rgba(255,255,255,0.15); border-radius: 0.75rem;
  background: rgba(255,255,255,0.05); cursor: pointer; transition: all 0.15s;
}
.role-card--active { border-color: #60a5fa; background: rgba(37,99,235,0.25); box-shadow: 0 0 15px rgba(96,165,250,0.3); }
.role-card__icon { width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; }
.role-card__label { font-size: 0.78rem; font-weight: 600; }
.glass-field { margin-bottom: 0.85rem; }
.glass-field label { display: block; font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.65); margin-bottom: 0.35rem; }
.glass-field__row { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 0.65rem; background: rgba(255,255,255,0.08); }
.glass-field--focus .glass-field__row { border-color: #60a5fa; box-shadow: 0 0 0 2px rgba(96,165,250,0.25); }
.glass-input { flex: 1; border: none; background: transparent; color: #fff; font: inherit; font-size: 0.9rem; outline: none; }
.glass-input::placeholder { color: rgba(255,255,255,0.4); }
.ltr-input { direction: ltr; text-align: left; }
.glass-field__icon { color: rgba(255,255,255,0.5); }
.glass-field__toggle { border: none; background: transparent; color: rgba(255,255,255,0.6); cursor: pointer; padding: 0.25rem; }
.forgot-row { text-align: left; margin: 0.5rem 0 1rem; }
.forgot-row a { color: rgba(255,255,255,0.65); font-size: 0.78rem; text-decoration: none; }
.login-actions { display: flex; flex-direction: column; gap: 0.65rem; }
.login-error { background: rgba(220,38,38,0.2); border: 1px solid rgba(248,113,113,0.5); color: #fecaca; padding: 0.65rem 0.85rem; border-radius: 0.5rem; font-size: 0.85rem; margin-bottom: 0.75rem; }
.logo-motion { text-align: center; }
.logo-motion img { width: 120px; height: 120px; animation: logo-float 4s ease-in-out infinite; }
.logo-motion h2 { font-size: 2rem; font-weight: 900; margin: 1rem 0 0.25rem; }
.logo-motion p { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Panel layout ── */
.panel { display: flex; min-height: 100vh; background: #f1f5f9; }
.panel__sidebar {
  width: 16.5rem; flex-shrink: 0; background: #0f172a; color: #e2e8f0;
  display: flex; flex-direction: column; padding: 1rem 0.75rem;
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
}
.panel__brand { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.75rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 0.75rem; }
.panel__brand i { font-size: 1.5rem; color: #60a5fa; }
.panel__brand strong { display: block; font-size: 0.95rem; color: #fff; }
.panel__brand span { font-size: 0.72rem; color: #94a3b8; }
.panel__nav { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; overflow-y: auto; }
.panel__nav-link {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.85rem;
  border-radius: 0.5rem; color: #cbd5e1; text-decoration: none;
  font-size: 0.88rem; font-weight: 500; transition: background 0.15s;
}
.panel__nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.panel__nav-link--active { background: #2563eb; color: #fff; }
.panel__user { padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08); }
.panel__user-info { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; margin-bottom: 0.5rem; }
.panel__logout {
  display: flex; align-items: center; gap: 0.4rem; width: 100%; padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 0.45rem; background: transparent;
  color: #94a3b8; font: inherit; font-size: 0.82rem; cursor: pointer;
}
.panel__logout:hover { background: rgba(255,255,255,0.06); color: #fff; }
.panel__main { flex: 1; margin-right: 16.5rem; min-width: 0; display: flex; flex-direction: column; }
.panel__topbar {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem;
  background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 40;
}
.panel__menu-btn { display: none; border: none; background: transparent; font-size: 1.25rem; cursor: pointer; color: #334155; }
.panel__topbar-title { flex: 1; font-weight: 700; font-size: 0.95rem; color: #0f172a; }
.panel__new-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem;
  background: #2563eb; color: #fff; border-radius: 0.45rem; text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
}
.panel__content { flex: 1; padding: 1.25rem; }
.panel__backdrop { display: none; }
@media (max-width: 768px) {
  .panel__sidebar { transform: translateX(100%); transition: transform 0.25s; }
  .panel--menu-open .panel__sidebar { transform: translateX(0); }
  .panel--menu-open .panel__backdrop {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 45; border: none;
  }
  .panel__main { margin-right: 0; }
  .panel__menu-btn { display: block; }
}

/* ── Dashboard shell (roles/admin) ── */
.dash-shell { min-height: 100vh; background: #f1f5f9; }
.dash-shell__header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.5rem; background: #fff; border-bottom: 1px solid #e2e8f0;
}
.dash-shell__title { display: flex; align-items: center; gap: 0.65rem; font-weight: 800; font-size: 1.05rem; }
.dash-shell__title i { color: #2563eb; }
.dash-shell__user { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.role-badge { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; background: #dbeafe; color: #1d4ed8; }
.dash-shell__content { padding: 1.25rem 1.5rem; max-width: 72rem; margin: 0 auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat-card { display: flex; align-items: center; gap: 0.75rem; }
.stat-card i { font-size: 1.5rem; color: #2563eb; }
.stat-value { margin: 0; font-size: 1.25rem; font-weight: 800; }
.stat-label { margin: 0; font-size: 0.82rem; color: #64748b; }
.section-title { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.module-title { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 700; }
.module-desc { margin: 0 0 0.75rem; font-size: 0.85rem; color: #64748b; line-height: 1.6; }
.module-badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: #f1f5f9; color: #475569; }

/* ── Dashboard hero & KPIs ── */
.dash-hero {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; border-radius: 0.75rem; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 55%, #2563eb); color: #fff;
}
.dash-hero__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem;
  border-radius: 0.45rem; text-decoration: none; font-size: 0.82rem; font-weight: 600;
}
.hero-btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.hero-btn--primary { background: #fff; color: #1d4ed8; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.85rem; margin-bottom: 1rem; }
.kpi-card {
  display: flex; gap: 0.75rem; padding: 1rem; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 0.5rem; border-right: 3px solid var(--accent, #2563eb);
}
.kpi-card__icon { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.kpi-card__value { display: block; font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.kpi-card__label { display: block; font-size: 0.78rem; color: #64748b; margin-top: 0.15rem; }
.kpi-card__hint { display: block; font-size: 0.72rem; color: #94a3b8; margin-top: 0.15rem; }

.charts-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.charts-row--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.charts-row--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.chart-wrap { position: relative; min-height: 180px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.78rem; color: #64748b; }
.dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; margin-left: 0.35rem; }
.dot--green { background: #059669; }
.dot--blue { background: #2563eb; }
.dot--sky { background: #0891b2; }
.doughnut-layout { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.doughnut-chart-box { position: relative; width: 200px; height: 200px; }
.doughnut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.doughnut-center__pct { font-size: 1.25rem; font-weight: 800; }
.doughnut-center__lbl { font-size: 0.72rem; color: #64748b; }
.legend-grid { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.82rem; }
.legend-item { display: flex; align-items: center; gap: 0.4rem; }
.legend-item i { width: 0.5rem; height: 0.5rem; border-radius: 50%; display: inline-block; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid #f1f5f9; }
.list-item--unread { background: #f8fafc; margin: 0 -0.5rem; padding-right: 0.5rem; padding-left: 0.5rem; border-radius: 0.35rem; }
.list-item strong { font-size: 0.88rem; }
.list-item p { margin: 0.15rem 0; font-size: 0.82rem; color: #64748b; }
.list-item small { font-size: 0.72rem; color: #94a3b8; }
.badge { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.badge[data-type='warning'] { background: #fef3c7; color: #b45309; }
.badge[data-type='info'] { background: #dbeafe; color: #1d4ed8; }
.badge[data-type='success'] { background: #dcfce7; color: #15803d; }
.deadline-item { align-items: center; }
.deadline-item--urgent strong { color: #b91c1c; }
.deadline-ring {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid #cbd5e1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.deadline-ring[data-urgent='true'] { border-color: #fca5a5; color: #b91c1c; }
.deadline-ring span { font-size: 0.95rem; font-weight: 800; line-height: 1; }
.deadline-ring small { font-size: 0.55rem; }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; padding-right: 0.5rem; }
.timeline__item { display: flex; gap: 1rem; position: relative; padding-bottom: 1.25rem; }
.timeline__item:not(:last-child)::before {
  content: ''; position: absolute; right: 0.45rem; top: 1.25rem; bottom: 0; width: 2px; background: #e2e8f0;
}
.timeline__dot {
  width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; flex-shrink: 0; z-index: 1;
}
.timeline__item[data-status='done'] .timeline__dot { background: #059669; border-color: #059669; }
.timeline__item[data-status='current'] .timeline__dot { background: #2563eb; border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,0.2); }
.timeline__body strong { display: block; font-size: 0.88rem; }
.timeline__body .note { margin: 0.25rem 0 0; font-size: 0.82rem; color: #64748b; }

/* ── Field grid ── */
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.field-item { padding: 0.65rem; background: #f8fafc; border-radius: 0.45rem; border: 1px solid #f1f5f9; }
.field-item__label { display: block; font-size: 0.72rem; color: #64748b; margin-bottom: 0.15rem; }
.field-item__value { font-size: 0.88rem; font-weight: 600; color: #0f172a; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.meta-label { margin: 0; font-size: 0.78rem; color: #64748b; }
.meta-value { margin: 0.25rem 0 0; font-weight: 700; }

/* ── Map page ── */
.map-placeholder {
  height: 280px; background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
  color: #1d4ed8; font-weight: 700; margin-bottom: 1rem; border: 1px dashed #93c5fd;
}
.map-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: 0.82rem; }
.plot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.85rem; }
.plot-card { padding: 1rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #fff; }
.plot-card--selected { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.plot-card--unavailable { opacity: 0.55; }

/* ── Guide services ── */
.service-group { margin-bottom: 1.5rem; }
.service-group__head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.75rem; }
.service-group__badge { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; color: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem; }
.service-card {
  padding: 1rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #fff;
  text-decoration: none; color: inherit; transition: box-shadow 0.15s;
}
.service-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.service-card--soon { opacity: 0.65; cursor: default; }
.service-card i { font-size: 1.25rem; color: #2563eb; margin-bottom: 0.5rem; display: block; }
.service-card h3 { margin: 0 0 0.35rem; font-size: 0.92rem; }
.service-card p { margin: 0; font-size: 0.82rem; color: #64748b; line-height: 1.6; }

/* ── Support ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
.form-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.form-stack label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; }
.form-stack input, .form-stack textarea, .form-stack select {
  padding: 0.5rem 0.65rem; border: 1px solid #cbd5e1; border-radius: 0.45rem; font: inherit;
}
.faq-item { border-bottom: 1px solid #f1f5f9; padding: 0.65rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.faq-item p { margin: 0.5rem 0 0; color: #64748b; font-size: 0.85rem; line-height: 1.7; }
.success-msg { color: #15803d; font-size: 0.85rem; margin: 0; }

/* ── Wizard ── */
.wizard-layout { display: flex; min-height: 100vh; }
.wizard-sidebar {
  width: 18rem; background: #0f172a; color: #e2e8f0; padding: 1rem;
  position: fixed; top: 0; right: 0; bottom: 0; overflow-y: auto;
}
.wizard-sidebar__brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-weight: 800; color: #fff; }
.wizard-step-menu { display: flex; flex-direction: column; gap: 0.35rem; }
.wizard-step-menu__item {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.75rem;
  border: none; background: transparent; color: #94a3b8; border-radius: 0.45rem;
  font: inherit; font-size: 0.85rem; cursor: pointer; text-align: right; width: 100%;
}
.wizard-step-menu__item--active { background: #2563eb; color: #fff; }
.wizard-step-menu__item--done { color: #86efac; }
.wizard-body { flex: 1; margin-right: 18rem; display: flex; flex-direction: column; min-height: 100vh; }
.wizard-main { flex: 1; padding: 1.25rem; padding-bottom: 5rem; }
.wizard-footer {
  position: fixed; bottom: 0; left: 0; right: 18rem; background: #fff;
  border-top: 1px solid #e2e8f0; padding: 0.75rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; z-index: 30;
}
.wizard-hero {
  padding: 1.1rem 1.25rem; border-radius: 0.5rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff;
}
.wizard-hero__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.wizard-hero__title { margin: 0; font-size: 1.25rem; font-weight: 800; }
.wizard-hero__subtitle { margin: 0.3rem 0 0; font-size: 0.82rem; color: rgba(255,255,255,0.75); }
.wizard-hero__meta { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.82rem; color: rgba(255,255,255,0.8); }
.wizard-stepper { display: flex; align-items: center; gap: 0; margin-bottom: 1.25rem; overflow-x: auto; padding-bottom: 0.5rem; }
.wizard-stepper__item {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  border: none; background: transparent; cursor: pointer; min-width: 5rem; font: inherit;
}
.wizard-stepper__badge {
  width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid #cbd5e1;
  display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; color: #64748b;
}
.wizard-stepper__item--active .wizard-stepper__badge { background: #2563eb; border-color: #2563eb; color: #fff; }
.wizard-stepper__item--done .wizard-stepper__badge { background: #059669; border-color: #059669; color: #fff; }
.wizard-stepper__label { font-size: 0.72rem; color: #64748b; text-align: center; max-width: 5.5rem; }
.wizard-stepper__item--active .wizard-stepper__label { color: #2563eb; font-weight: 700; }
.wizard-stepper__line { flex: 1; height: 2px; background: #e2e8f0; min-width: 1.5rem; }
.wizard-stepper__line--done { background: #059669; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem; }
.form-grid label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; }
.form-grid input, .form-grid select, .form-grid textarea {
  padding: 0.5rem 0.65rem; border: 1px solid #cbd5e1; border-radius: 0.45rem; font: inherit;
}
.required::after { content: ' *'; color: #dc2626; }
.submit-success { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; background: #dcfce7; border-radius: 0.5rem; color: #15803d; }
.submit-success i { font-size: 1.5rem; }
.hint-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
@media (max-width: 768px) { .hint-cards { grid-template-columns: 1fr; } }
.deferral-pill { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px; background: #ede9fe; color: #6d28d9; }
.deferral-pill--full { background: #fffbeb; color: #b45309; }
.progress-bar { height: 0.5rem; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-top: 0.35rem; }
.progress-bar__fill { height: 100%; background: #2563eb; border-radius: 999px; transition: width 0.3s; }
.stage-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; }
.stage-row__label { flex: 1; font-size: 0.85rem; }
.stage-row__pct { font-size: 0.82rem; font-weight: 700; color: #2563eb; min-width: 2.5rem; text-align: left; }
.gauge { text-align: center; padding: 1rem; }
.gauge__value { font-size: 2rem; font-weight: 900; color: #2563eb; }
.gauge__label { font-size: 0.82rem; color: #64748b; }
@media (max-width: 768px) {
  .wizard-sidebar { transform: translateX(100%); }
  .wizard-body { margin-right: 0; }
  .wizard-footer { right: 0; }
}
