/* ═══════════════════════════════════════════════════════════════
   S&V Declaraciones de Renta — Design System
   Fuente: Libre Franklin (principal), Roboto Serif (secundaria)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;400;500;600;700;800&family=Roboto+Serif:wght@300;400;600&display=swap');

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --primary:        #7C46DB;
  --primary-light:  #9D72E8;
  --primary-dark:   #5A2BB5;
  --primary-soft:   #F0EAFF;
  --secondary:      #28CEE0;
  --secondary-dark: #192C60;
  --bg-light:       #F7F3FF;
  --white:          #FFFFFF;
  --text:           #1a1a2e;
  --text-muted:     #64748b;
  --border:         #e2d9f3;
  --success:        #10b981;
  --warning:        #f59e0b;
  --error:          #ef4444;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      20px;
  --shadow:         0 4px 24px rgba(124,70,219,.10);
  --shadow-lg:      0 12px 48px rgba(124,70,219,.18);
  --transition:     .2s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Libre Franklin', sans-serif; background: var(--bg-light); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Utilities ─────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.hidden { display: none !important; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--radius); font-weight: 600;
  font-size: .9rem; border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap; line-height: 1;
}
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,70,219,.3); }
.btn-secondary { background: var(--secondary); color: var(--secondary-dark); }
.btn-secondary:hover { background: #1ab5c6; transform: translateY(-1px); }
.btn-outline   { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-ghost     { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: rgba(0,0,0,.05); color: var(--text); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; border-radius: var(--radius-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-block { width: 100%; }

/* ─── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; padding: .25rem .75rem;
  border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1;
}
.badge-purple  { background: var(--primary-soft); color: var(--primary-dark); }
.badge-cyan    { background: rgba(40,206,224,.15); color: #0e7c8a; }
.badge-green   { background: rgba(16,185,129,.12); color: #065f46; }
.badge-yellow  { background: rgba(245,158,11,.12); color: #92400e; }
.badge-gray    { background: #f1f5f9; color: #475569; }
.badge-navy    { background: var(--secondary-dark); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════════ */
.landing-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--secondary-dark);
  background-image: linear-gradient(135deg, #192C60 0%, #2a1a72 60%, #7C46DB 100%);
  position: relative; overflow: hidden;
}
.landing-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/Fondo%201.svg') center/cover no-repeat; opacity: .12;
}
.landing-nav {
  position: relative; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; padding: 1.5rem 2rem;
}
.landing-nav .logo img { height: 48px; }
.landing-nav .nav-cta .btn { font-size: .85rem; padding: .6rem 1.25rem; }

.hero-content {
  flex: 1; position: relative; z-index: 10; display: flex; align-items: center;
  padding: 4rem 2rem 3rem;
  max-width: 1100px; margin: 0 auto; width: 100%;
  gap: 3rem;
}
.hero-text { flex: 1; }
.hero-tagline {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(40,206,224,.15); border: 1px solid rgba(40,206,224,.3);
  color: var(--secondary); border-radius: 999px; padding: .4rem 1rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: #fff;
  line-height: 1.1; margin-bottom: 1.25rem;
  font-family: 'Roboto Serif', serif;
}
.hero-title span { color: var(--secondary); }
.hero-subtitle { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 480px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { flex: 0 0 auto; display: none; }
@media (min-width: 900px) { .hero-visual { display: block; } }

.hero-features {
  position: relative; z-index: 10; padding: 2rem;
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
}
.feature-card {
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
  padding: 1.5rem; color: #fff; transition: var(--transition);
}
.feature-card:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.feature-icon { width: 40px; height: 40px; margin-bottom: 1rem; opacity: .9; }
.feature-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p  { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.5; }

/* ─── Verifier Popup ────────────────────────────────────────── */
.popup-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(25,44,96,.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.popup-overlay.active { opacity: 1; pointer-events: auto; }
.popup-card {
  background: #fff; border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  max-width: 540px; width: 100%; box-shadow: var(--shadow-lg);
  transform: translateY(20px); transition: transform .3s;
  max-height: 90vh; overflow-y: auto;
}
.popup-overlay.active .popup-card { transform: translateY(0); }
.popup-logo { height: 36px; margin: 0 auto 1.5rem; }
.popup-title { font-size: 1.4rem; font-weight: 800; text-align: center; color: var(--secondary-dark); margin-bottom: .5rem; }
.popup-subtitle { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }

.verifier-question { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: .75rem; }
.verifier-options  { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.verifier-opt {
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition); font-size: .9rem;
}
.verifier-opt:hover { border-color: var(--primary-light); background: var(--primary-soft); }
.verifier-opt input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }
.verifier-opt.selected { border-color: var(--primary); background: var(--primary-soft); }

.verifier-result {
  padding: 1.25rem; border-radius: var(--radius-sm); margin: 1rem 0;
  animation: fadeIn .3s;
}
.verifier-result.must-declare   { background: rgba(124,70,219,.1); border-left: 4px solid var(--primary); }
.verifier-result.no-declare     { background: rgba(16,185,129,.1); border-left: 4px solid var(--success); }
.verifier-result.maybe-declare  { background: rgba(245,158,11,.1); border-left: 4px solid var(--warning); }
.verifier-result h4 { font-weight: 700; margin-bottom: .4rem; font-size: .95rem; }
.verifier-result p  { font-size: .85rem; color: var(--text-muted); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES (login / change-password)
   ═══════════════════════════════════════════════════════════════ */
.auth-layout {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .auth-layout { grid-template-columns: 420px 1fr; }
}
.auth-sidebar {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  padding: 3rem 2.5rem; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-sidebar::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/Fondo%202.svg') center/cover no-repeat; opacity: .08;
}
.auth-sidebar-logo { position: relative; z-index: 2; margin-bottom: auto; }
.auth-sidebar-logo img { height: 44px; }
.auth-sidebar-text { position: relative; z-index: 2; margin-top: 3rem; }
.auth-sidebar-text h2 { color: #fff; font-size: 1.8rem; font-weight: 800; line-height: 1.2; margin-bottom: .75rem; font-family: 'Roboto Serif', serif; }
.auth-sidebar-text p  { color: rgba(255,255,255,.7); font-size: .9rem; }
.auth-sidebar-slogan  { position: relative; z-index: 2; margin-top: 3rem; color: rgba(255,255,255,.4); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem; background: #fff; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 1.5rem; font-weight: 800; color: var(--secondary-dark); margin-bottom: .4rem; }
.auth-box .auth-subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: .85rem; color: var(--secondary-dark); margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .8rem 1rem; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: .95rem; transition: var(--transition);
  background: #fff; color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,70,219,.12); }
.form-control.error { border-color: var(--error); }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }
.form-error { font-size: .82rem; color: var(--error); margin-top: .3rem; font-weight: 500; }

.doc-select-row { display: grid; grid-template-columns: 130px 1fr; gap: .75rem; }

.alert {
  padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .88rem;
  margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: .6rem; line-height: 1.5;
}
.alert-error   { background: rgba(239,68,68,.08); color: #b91c1c; border-left: 3px solid var(--error); }
.alert-success { background: rgba(16,185,129,.08); color: #065f46; border-left: 3px solid var(--success); }
.alert-info    { background: var(--primary-soft); color: var(--primary-dark); border-left: 3px solid var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   APP SHELL (dashboard, form, payment)
   ═══════════════════════════════════════════════════════════════ */
.app-layout { min-height: 100vh; display: flex; flex-direction: column; }

.app-header {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 1.5rem; height: 64px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(124,70,219,.06);
}
.app-header .logo img { height: 36px; }
.app-header-right { display: flex; align-items: center; gap: 1rem; }
.user-menu { display: flex; align-items: center; gap: .6rem; color: var(--text-muted); font-size: .88rem; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.user-name { font-weight: 600; color: var(--text); }
.app-body { flex: 1; }

/* ─── Dashboard ─────────────────────────────────────────────── */
.dashboard-hero {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
  padding: 2.5rem 1.5rem 6rem; position: relative; overflow: hidden;
}
.dashboard-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/Fondo%203.svg') right bottom/auto 100% no-repeat; opacity: .07;
}
.dashboard-hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 2; }
.dashboard-greeting { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: .25rem; }
.dashboard-name { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1.5rem; font-family: 'Roboto Serif', serif; }
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.info-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
  padding: 1.25rem;
}
.info-card-label { color: rgba(255,255,255,.6); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: .4rem; }
.info-card-value { color: #fff; font-size: 1rem; font-weight: 700; }
.info-card-value.deadline-soon { color: #fbbf24; }
.info-card-value.deadline-urgent { color: #f87171; }

.dashboard-main { max-width: 860px; margin: -3rem auto 3rem; padding: 0 1.5rem; position: relative; z-index: 3; }
.dashboard-progress-card {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-lg); margin-bottom: 1.5rem;
}
.progress-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem; }
.progress-title { font-weight: 700; font-size: 1.05rem; color: var(--secondary-dark); }
.progress-pct { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.progress-bar-wrap { background: #f1f5f9; border-radius: 999px; height: 10px; overflow: hidden; margin-bottom: 1.5rem; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%); border-radius: 999px; transition: width .6s cubic-bezier(.4,0,.2,1); }

.section-progress-list { display: flex; flex-direction: column; gap: .75rem; }
.section-progress-item { display: flex; align-items: center; gap: 1rem; }
.section-progress-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.section-progress-icon img { width: 20px; height: 20px; }
.section-progress-info { flex: 1; min-width: 0; }
.section-progress-name { font-weight: 600; font-size: .88rem; color: var(--text); }
.section-mini-bar { height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden; margin-top: 4px; }
.section-mini-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .5s; }
.section-mini-fill.done { background: var(--success); }
.section-progress-count { font-size: .8rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

.action-card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.action-card-text h3 { font-weight: 700; margin-bottom: .25rem; color: var(--secondary-dark); }
.action-card-text p  { font-size: .88rem; color: var(--text-muted); }
.submit-btn-wrap { text-align: center; margin-top: 1rem; }
.submit-btn-wrap .btn { min-width: 260px; }
.submit-hint { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; }

/* ═══════════════════════════════════════════════════════════════
   WIZARD FORM
   ═══════════════════════════════════════════════════════════════ */
.wizard-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 64px);
}
@media (min-width: 900px) {
  .wizard-layout { grid-template-columns: 280px 1fr; }
}

/* Sidebar */
.wizard-sidebar {
  background: var(--secondary-dark); padding: 2rem 1.5rem;
  display: none; flex-direction: column; gap: 2rem;
  position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto;
}
@media (min-width: 900px) { .wizard-sidebar { display: flex; } }

.wizard-sidebar-title { color: rgba(255,255,255,.5); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: .75rem; }
.wizard-sections { display: flex; flex-direction: column; gap: .5rem; }
.wizard-section-item {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem;
  border-radius: var(--radius-sm); transition: var(--transition);
  cursor: default;
}
.wizard-section-item.active { background: rgba(255,255,255,.12); }
.wizard-section-item.done   { opacity: .6; }
.wsection-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wsection-icon img { width: 16px; height: 16px; filter: brightness(10); }
.wsection-info { flex: 1; min-width: 0; }
.wsection-name  { color: #fff; font-weight: 600; font-size: .82rem; }
.wsection-count { color: rgba(255,255,255,.5); font-size: .72rem; margin-top: 1px; }
.wsection-check { width: 18px; height: 18px; border-radius: 50%; background: var(--success); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.wizard-overall { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; margin-top: auto; }
.wizard-overall-label { color: rgba(255,255,255,.5); font-size: .75rem; margin-bottom: .5rem; }
.wizard-overall-pct   { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: .75rem; }
.wizard-overall-bar   { height: 6px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.wizard-overall-fill  { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--secondary)); border-radius: 999px; transition: width .5s; }

/* Step content */
.wizard-main { display: flex; flex-direction: column; min-height: calc(100vh - 64px); }
.wizard-top-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.wizard-breadcrumb { color: var(--text-muted); font-size: .8rem; }
.wizard-breadcrumb strong { color: var(--primary); }
.wizard-step-counter { margin-left: auto; color: var(--text-muted); font-size: .82rem; font-weight: 600; }
.wizard-progress-mini { flex: 0 0 120px; }
.wizard-progress-mini-bar { height: 4px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.wizard-progress-mini-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .4s; }

.wizard-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem; animation: stepIn .35s cubic-bezier(.4,0,.2,1);
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}
.wizard-step.slide-back { animation: stepBack .35s cubic-bezier(.4,0,.2,1); }
@keyframes stepBack {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: none; }
}

.step-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 2.5rem 2rem; max-width: 680px; width: 100%;
}
.step-section-badge {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.25rem;
}
.step-section-badge .badge { font-size: .72rem; }
.step-item-title { font-size: 1.6rem; font-weight: 800; color: var(--secondary-dark); margin-bottom: .6rem; line-height: 1.2; }
.step-item-desc  { color: var(--text-muted); font-size: .95rem; margin-bottom: 2rem; line-height: 1.6; }

/* Status buttons */
.step-options { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-bottom: 1.75rem; }
@media (min-width: 500px) { .step-options { grid-template-columns: repeat(3, 1fr); } }

.step-option {
  position: relative; padding: 1.25rem 1rem; border-radius: var(--radius);
  border: 2.5px solid var(--border); background: #fff; text-align: center;
  cursor: pointer; transition: var(--transition); user-select: none;
}
.step-option:hover { border-color: var(--primary-light); background: var(--primary-soft); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(124,70,219,.12); }
.step-option.selected-complete { border-color: var(--success); background: rgba(16,185,129,.07); }
.step-option.selected-partial  { border-color: var(--warning); background: rgba(245,158,11,.07); }
.step-option.selected-na       { border-color: #94a3b8; background: #f8fafc; }
.step-option-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.step-option-label { font-weight: 700; font-size: .9rem; color: var(--text); margin-bottom: .25rem; }
.step-option-desc  { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }
.step-option-check {
  position: absolute; top: -.5rem; right: -.5rem; width: 22px; height: 22px;
  border-radius: 50%; display: none; align-items: center; justify-content: center;
  background: var(--success); color: #fff; font-size: .65rem; font-weight: 700;
}
.step-option.selected-complete .step-option-check,
.step-option.selected-partial  .step-option-check,
.step-option.selected-na       .step-option-check { display: flex; }
.step-option.selected-na .step-option-check { background: #94a3b8; }
.step-option.selected-partial .step-option-check { background: var(--warning); }

/* Upload zone */
.upload-zone-wrapper { margin-bottom: 1.75rem; }
.upload-zone-wrapper.hidden { display: none; }
.upload-zone-label { font-weight: 600; font-size: .85rem; color: var(--secondary-dark); margin-bottom: .6rem; display: flex; align-items: center; gap: .4rem; }
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.5rem;
  text-align: center; cursor: pointer; transition: var(--transition);
  background: #fafafa; position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--primary); background: var(--primary-soft);
}
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-zone-icon { font-size: 2rem; color: var(--primary-light); margin-bottom: .4rem; }
.upload-zone-text { font-size: .85rem; color: var(--text-muted); }
.upload-zone-text strong { color: var(--primary); }
.upload-zone-formats { font-size: .72rem; color: var(--text-muted); margin-top: .3rem; }

.uploaded-files { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.uploaded-file {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem;
  background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .82rem;
}
.uploaded-file-icon { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
.uploaded-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.uploaded-file-size { color: var(--text-muted); flex-shrink: 0; }
.uploaded-file-del  { background: none; border: none; color: #ef4444; padding: .2rem; border-radius: 4px; cursor: pointer; flex-shrink: 0; font-size: 1rem; }
.uploaded-file-del:hover { background: rgba(239,68,68,.1); }
.uploading-indicator { color: var(--primary); font-size: .82rem; display: flex; align-items: center; gap: .4rem; }

/* Help accordion */
.step-help { margin-bottom: 1.75rem; }
.step-help-toggle {
  display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left;
  background: var(--primary-soft); border: 1px solid rgba(124,70,219,.15);
  border-radius: var(--radius-sm); padding: .7rem 1rem; font-size: .85rem;
  font-weight: 600; color: var(--primary); cursor: pointer; transition: var(--transition);
}
.step-help-toggle:hover { background: rgba(124,70,219,.12); }
.step-help-arrow { margin-left: auto; transition: transform .25s; }
.step-help-toggle.open .step-help-arrow { transform: rotate(180deg); }
.step-help-body {
  background: #fff; border: 1px solid rgba(124,70,219,.15); border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 1rem;
  display: none; font-size: .85rem; line-height: 1.7; color: var(--text);
}
.step-help-body.open { display: block; }
.step-help-where { background: var(--bg-light); border-radius: var(--radius-sm); padding: .75rem 1rem; margin-top: .75rem; font-size: .82rem; }
.step-help-where strong { display: block; color: var(--secondary-dark); margin-bottom: .25rem; font-weight: 700; }

/* Wizard nav */
.wizard-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border); margin-top: .5rem;
  flex-wrap: wrap;
}
.wizard-nav-left  { display: flex; align-items: center; gap: .75rem; }
.wizard-nav-right { display: flex; align-items: center; gap: .75rem; }
.save-indicator { font-size: .78rem; color: var(--success); display: none; align-items: center; gap: .3rem; }
.save-indicator.show { display: flex; animation: fadeIn .3s; }

/* Mobile step bar */
.wizard-mobile-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; background: #fff; border-top: 1px solid var(--border);
  position: sticky; bottom: 0; z-index: 50;
}
@media (min-width: 900px) { .wizard-mobile-bar { display: none; } }
.mobile-progress-info { font-size: .8rem; color: var(--text-muted); }
.mobile-progress-info strong { color: var(--primary); font-weight: 700; }

/* ─── Welcome / Complete steps ──────────────────────────────── */
.wizard-welcome, .wizard-complete {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.welcome-card, .complete-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem; max-width: 560px; width: 100%; text-align: center;
}
.welcome-icon, .complete-icon { font-size: 4rem; margin-bottom: 1rem; }
.welcome-card h2, .complete-card h2 { font-size: 1.75rem; font-weight: 800; color: var(--secondary-dark); margin-bottom: .75rem; }
.welcome-card p , .complete-card p  { color: var(--text-muted); margin-bottom: 1.5rem; font-size: .95rem; }
.welcome-list { text-align: left; margin-bottom: 2rem; display: flex; flex-direction: column; gap: .6rem; }
.welcome-list-item { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.welcome-list-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   PAYMENT PAGE
   ═══════════════════════════════════════════════════════════════ */
.payment-layout {
  max-width: 700px; margin: 2.5rem auto; padding: 0 1.5rem 4rem;
}
.payment-header { text-align: center; margin-bottom: 2rem; }
.payment-header h1 { font-size: 1.75rem; font-weight: 800; color: var(--secondary-dark); margin-bottom: .4rem; }
.payment-header p  { color: var(--text-muted); }

.payment-amount-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg); padding: 2rem; text-align: center; margin-bottom: 1.5rem;
  color: #fff;
}
.payment-amount-label { font-size: .85rem; opacity: .8; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.payment-amount-value { font-size: 2.5rem; font-weight: 800; margin-bottom: .25rem; }
.payment-amount-note  { font-size: .82rem; opacity: .75; }

.payment-card {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.payment-card h3 { font-weight: 700; color: var(--secondary-dark); margin-bottom: 1.25rem; font-size: 1rem; }

.bank-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.bank-info-item label { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.bank-info-item span { display: block; font-size: .95rem; font-weight: 600; color: var(--text); margin-top: .15rem; }

.payment-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.payment-method {
  border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 1rem;
  text-align: center; cursor: pointer; transition: var(--transition);
}
.payment-method:hover { border-color: var(--primary-light); background: var(--primary-soft); }
.payment-method.selected { border-color: var(--primary); background: var(--primary-soft); }
.payment-method input { display: none; }
.payment-method-icon { font-size: 1.5rem; margin-bottom: .4rem; }
.payment-method-name { font-size: .85rem; font-weight: 600; color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════════ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--secondary-dark); flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-logo { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-logo img { height: 36px; }
.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav-section { padding: .5rem 1.25rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); font-weight: 700; margin-top: .75rem; }
.admin-nav-link {
  display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem;
  color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 500;
  transition: var(--transition); text-decoration: none;
}
.admin-nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav-link.active { background: rgba(124,70,219,.4); color: #fff; border-right: 3px solid var(--primary-light); }
.admin-nav-icon { width: 18px; text-align: center; flex-shrink: 0; }
.admin-main { flex: 1; min-width: 0; background: #f8f9fc; }

.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 700; color: var(--secondary-dark); }
.admin-content { padding: 1.5rem; }

/* Kanban */
.kanban-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; align-items: start; }
.kanban-col { background: #f1f5f9; border-radius: var(--radius); overflow: hidden; }
.kanban-col-header {
  padding: .9rem 1rem; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; justify-content: space-between;
}
.kanban-count { background: rgba(0,0,0,.15); color: inherit; border-radius: 999px; padding: .1rem .5rem; font-size: .7rem; }
.kanban-cards { padding: .5rem; display: flex; flex-direction: column; gap: .5rem; min-height: 80px; }
.kanban-card {
  background: #fff; border-radius: var(--radius-sm); padding: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); cursor: pointer;
  transition: var(--transition); border-left: 3px solid transparent;
  text-decoration: none; display: block;
}
.kanban-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.kanban-card-name { font-weight: 700; font-size: .88rem; color: var(--text); margin-bottom: .3rem; }
.kanban-card-doc  { font-size: .75rem; color: var(--text-muted); margin-bottom: .5rem; }
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem; }
.kanban-card-pct  { font-size: .75rem; font-weight: 700; color: var(--primary); }
.kanban-card-deadline { font-size: .72rem; color: var(--text-muted); }

/* Client detail */
.client-detail-header {
  background: #fff; border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  box-shadow: var(--shadow); margin-bottom: 1.5rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.client-detail-info h2 { font-size: 1.3rem; font-weight: 800; color: var(--secondary-dark); margin-bottom: .25rem; }
.client-detail-info p  { font-size: .88rem; color: var(--text-muted); }
.status-select {
  display: flex; gap: .5rem; flex-wrap: wrap;
}
.status-btn {
  padding: .5rem .9rem; border-radius: var(--radius-sm); font-size: .78rem;
  font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: var(--transition);
  background: #f1f5f9; color: var(--text-muted);
}
.status-btn:hover { border-color: currentColor; }
.status-btn.active { background: var(--secondary-dark); color: #fff; }

.client-section-accordion { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1rem; }
.client-section-header { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; cursor: pointer; border-bottom: 1px solid transparent; transition: var(--transition); }
.client-section-header:hover { background: var(--bg-light); }
.client-section-header.open { border-bottom-color: var(--border); }
.client-section-title { font-weight: 700; font-size: .92rem; color: var(--secondary-dark); flex: 1; }
.client-items-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.client-items-table th { padding: .6rem 1.25rem; text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; background: #f8fafc; border-bottom: 1px solid var(--border); }
.client-items-table td { padding: .75rem 1.25rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.client-items-table tr:last-child td { border-bottom: none; }
.doc-download { display: inline-flex; align-items: center; gap: .3rem; color: var(--primary); font-size: .78rem; font-weight: 600; }
.doc-download:hover { color: var(--primary-dark); }

/* Admin tables */
.admin-table-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.admin-table-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.admin-table-header h3 { font-weight: 700; color: var(--secondary-dark); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th { padding: .7rem 1.25rem; text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; background: #f8fafc; border-bottom: 1px solid var(--border); }
.admin-table td { padding: .85rem 1.25rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }

/* Search bar */
.search-bar { position: relative; }
.search-bar input { padding-left: 2.25rem; padding-right: 1rem; min-width: 220px; }
.search-bar-icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: .9rem; }

/* Modals */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(25,44,96,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  max-width: 460px; width: 100%; box-shadow: var(--shadow-lg);
  transform: scale(.96); transition: transform .25s;
}
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-title { font-size: 1.1rem; font-weight: 800; color: var(--secondary-dark); margin-bottom: 1.25rem; }
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; flex-wrap: wrap; }

/* ─── Spinner ───────────────────────────────────────────────── */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
.spinner.dark { border-color: rgba(0,0,0,.15); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-sidebar { display: none; }
  .admin-main { width: 100%; }
}
@media (max-width: 600px) {
  .step-card { padding: 1.75rem 1.25rem; }
  .wizard-step { padding: 1.5rem 1rem; }
  .welcome-card, .complete-card { padding: 2rem 1.25rem; }
  .dashboard-hero { padding-bottom: 5rem; }
}
