/* ============================================
   PORTAL PRODUCTORES · Choque Seguro
   ============================================ */

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

:root {
  --navy: #0A1E3A;
  --navy-2: #10274A;
  --navy-3: #1A3356;
  --orange: #D97845;
  --orange-dark: #B65E30;
  --orange-soft: #E89C75;
  --gold: #C9A267;
  --gold-soft: #2A2F1E;
  --sky: #CBD9E4;
  --sky-2: #1C3863;
  --ink: #F0F4FA;
  --muted: #9AAAC0;
  --muted-2: #6F7E95;
  --bg: #0A1E3A;
  --bg-2: #10274A;
  --surface: #152E57;
  --border: #223F6B;
  --border-2: #2D4E82;
  --green: #6FBE85;
  --green-soft: rgba(47, 132, 73, 0.18);
  --red: #E27575;
  --red-soft: rgba(185, 72, 72, 0.18);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-lg: 16px;
  --sidebar-w: 260px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; color: var(--navy); font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: 0.96rem; }
p { color: var(--muted); font-size: 0.92rem; }
.accent { color: var(--orange); font-style: italic; font-weight: 700; }

/* ============ LOGIN ============ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}
.login-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

.login-left {
  background:
    radial-gradient(ellipse at top left, rgba(217, 120, 69, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(201, 162, 103, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.login-left > * { position: relative; z-index: 1; }

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-logo span { font-family: 'Manrope'; font-size: 1.1rem; letter-spacing: -0.02em; }
.login-logo strong { font-weight: 800; }

.login-hero { max-width: 480px; }
.login-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.login-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 14px;
}
.login-hero h1 .accent { color: var(--orange-soft); }
.login-hero p { color: rgba(255, 255, 255, 0.75); font-size: 1rem; margin-bottom: 30px; }

.login-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}
.login-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
}
.login-features span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.7rem;
}

.login-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.login-stats > div strong {
  display: block;
  font-family: 'Manrope';
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange-soft);
  letter-spacing: -0.03em;
}
.login-stats > div span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.login-bottom small { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; }
.login-bottom a { color: var(--orange-soft); font-weight: 700; }

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--surface);
}
.login-form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-form h2 { font-size: 1.7rem; }
.login-form > p { margin-bottom: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 0.94rem;
  color: var(--navy);
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
}
.field-pass { position: relative; }
.field-pass input { padding-right: 44px; width: 100%; }
.toggle-pass {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.toggle-pass:hover { background: var(--bg-2); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  margin: 4px 0;
}
.remember input { accent-color: var(--orange); }

.forgot {
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  margin-top: -4px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 8px 0;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-terms {
  font-size: 0.76rem;
  color: var(--muted-2);
  text-align: center;
  margin-top: 10px;
}
.login-terms a { color: var(--orange); text-decoration: underline; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(217, 120, 69, 0.3);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost {
  background: var(--surface);
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--muted); }
.btn-ghost.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-lg { padding: 13px 22px; font-size: 0.95rem; }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; }
.btn-full { width: 100%; }
.btn-link { color: var(--orange); font-weight: 700; font-size: 0.88rem; }

/* ============ PORTAL ============ */
.portal {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.side-head { padding: 6px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 16px; }
.side-logo { display: flex; align-items: center; gap: 10px; }
.side-logo strong {
  display: block;
  color: #fff;
  font-family: 'Manrope';
  font-size: 0.96rem;
  line-height: 1.1;
  font-weight: 800;
}
.side-logo span { font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.side-logo small { display: block; color: var(--orange); font-size: 0.62rem; letter-spacing: 0.2em; margin-top: 2px; font-weight: 700; }

.side-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.side-label {
  display: block;
  padding: 12px 12px 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background .18s ease, color .18s ease;
  position: relative;
  width: 100%;
  text-align: left;
}
.side-item > span { flex: 1; }
.side-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.side-item.active {
  background: rgba(217, 120, 69, 0.14);
  color: #fff;
}
.side-item.active::before {
  content: '';
  position: absolute;
  left: -14px; top: 10px; bottom: 10px;
  width: 3px;
  background: var(--orange);
  border-radius: 0 2px 2px 0;
}
.side-item-cta {
  background: var(--orange) !important;
  color: #fff !important;
  margin-top: 4px;
  box-shadow: 0 6px 16px rgba(217, 120, 69, 0.35);
}
.side-item-cta:hover { background: var(--orange-dark) !important; }
.side-count {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}
.side-count-warn { background: rgba(201, 162, 103, 0.18); color: var(--gold); }
.side-count-orange { background: var(--orange); color: #fff; }

.side-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-user { display: flex; align-items: center; gap: 10px; flex: 1; padding: 6px 4px; }
.side-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
}
.side-user strong { color: #fff; font-size: 0.88rem; display: block; }
.side-user small { color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; }
.side-logout {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease;
}
.side-logout:hover { background: var(--orange); color: #fff; }

/* --- Main --- */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-toggle {
  width: 36px; height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--navy);
}
.topbar-title {
  font-family: 'Manrope';
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.topbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}
.topbar-search svg {
  position: absolute;
  left: 14px;
  color: var(--muted);
}
.topbar-search input {
  width: 100%;
  padding: 10px 60px 10px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 0.88rem;
}
.topbar-search input:focus { outline: none; border-color: var(--orange); background: #fff; }
.topbar-search kbd {
  position: absolute;
  right: 12px;
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: 'SF Mono', Consolas, monospace;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topbar-btn {
  padding: 8px 14px;
  background: var(--orange);
  color: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-btn:hover { background: var(--orange-dark); }
.topbar-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--navy);
  display: grid;
  place-items: center;
  position: relative;
}
.topbar-icon:hover { background: var(--sky-2); }
.dot-alert {
  position: absolute;
  top: 8px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px #fff;
}
.topbar-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
}

/* --- Content --- */
.content { padding: 28px; }

.view { display: none; animation: fadeIn .3s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.view-head h1 { margin-bottom: 4px; }

.period-picker { display: flex; gap: 6px; background: var(--surface); padding: 4px; border-radius: 10px; border: 1px solid var(--border); }
.period-picker .btn { border: 0; background: transparent; padding: 6px 12px; }
.period-picker .btn.active { background: var(--navy); color: #fff; }

/* --- KPI cards --- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-grid-3 { grid-template-columns: repeat(3, 1fr); }
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border: 0;
}
.kpi-highlight strong { color: var(--orange-soft); }
.kpi-highlight small { color: rgba(255,255,255,0.7); }
.kpi-highlight .kpi-ico { background: rgba(255,255,255,0.12); }
.kpi-highlight .kpi-trend { background: rgba(217,120,69,0.2); color: var(--orange-soft); }

.kpi-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 8px;
}
.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kpi-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.kpi-ico-blue { background: var(--sky-2); }
.kpi-ico-orange { background: rgba(217, 120, 69, 0.14); }
.kpi-ico-gold { background: var(--gold-soft); }
.kpi-ico-green { background: var(--green-soft); }
.kpi-trend {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-2);
  color: var(--muted);
}
.kpi-trend-up { background: var(--green-soft); color: var(--green); }

.kpi strong {
  display: block;
  font-family: 'Manrope';
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.kpi small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}
.kpi-spark {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 32px;
  margin-top: 12px;
}
.kpi-spark i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--orange), var(--orange-soft));
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}
.kpi-highlight .kpi-spark i { background: linear-gradient(180deg, var(--orange-soft), var(--gold)); }

/* --- Dashboard rows --- */
.dash-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.dash-row-3 { grid-template-columns: 1fr 1fr; }

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 10px;
}
.dash-card-head h3 { margin-bottom: 2px; }
.dash-card-head small { color: var(--muted); font-size: 0.82rem; }
.select-sm {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 0.82rem;
}

.link-link { color: var(--orange); font-size: 0.82rem; font-weight: 700; }

/* Bars chart */
.bars-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  height: 180px;
  padding: 10px 0;
}
.bar {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 100%);
  border-radius: 6px 6px 0 0;
  height: var(--h);
  min-height: 20px;
  transition: transform .2s ease;
}
.bar:hover { transform: scaleY(1.03); }
.bar-active {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-soft) 100%);
}
.bar span {
  position: absolute;
  bottom: -22px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.bar em {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-weight: 800;
  color: var(--navy);
  font-size: 0.88rem;
}

/* Donut */
.donut {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.donut-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.donut-center strong {
  display: block;
  font-family: 'Manrope';
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
}
.donut-center small { color: var(--muted); font-size: 0.75rem; }

.donut-legend { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.donut-legend li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--navy); }
.donut-legend li i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend li span { flex: 1; color: var(--muted); }
.donut-legend li strong { font-weight: 700; color: var(--navy); }

/* Mini list */
.mini-list { display: flex; flex-direction: column; gap: 6px; }
.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .15s ease;
}
.mini-row:hover { background: var(--bg-2); }
.mini-body { flex: 1; }
.mini-body strong { display: block; color: var(--navy); font-size: 0.88rem; }
.mini-body small { color: var(--muted); font-size: 0.76rem; }
.mini-amt { color: var(--navy); font-family: 'Manrope'; font-weight: 800; font-size: 0.92rem; }
.mini-amt-green { color: var(--green); }
.mini-amt-muted { color: var(--muted); font-weight: 500; }

.mini-date {
  width: 44px;
  padding: 4px;
  border-radius: 8px;
  background: var(--bg-2);
  text-align: center;
  border: 1px solid var(--border);
}
.mini-date b { display: block; font-family: 'Manrope'; font-weight: 800; color: var(--navy); font-size: 0.92rem; line-height: 1; }
.mini-date u { text-decoration: none; color: var(--orange); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; }

/* Tags */
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-block;
}
.tag-orange { background: rgba(217, 120, 69, 0.14); color: var(--orange-dark); }
.tag-blue   { background: var(--sky-2); color: var(--navy); }
.tag-green  { background: var(--green-soft); color: var(--green); }
.tag-gray   { background: var(--bg-2); color: var(--muted); }
.tag-gold   { background: var(--gold-soft); color: var(--orange-dark); }

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.qa:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.qa-ico {
  width: 42px; height: 42px;
  background: var(--sky-2);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.qa strong { display: block; color: var(--navy); font-size: 0.92rem; }
.qa small { color: var(--muted); font-size: 0.76rem; }

/* --- Toolbar, pills, table --- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pill:hover { border-color: var(--muted); color: var(--navy); }
.pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.toolbar-right { display: flex; gap: 8px; }
.search-sm {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.84rem;
  width: 220px;
}
.search-sm:focus { outline: none; border-color: var(--orange); }

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table th, .table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.88rem;
}
.table th {
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s ease;
}
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-2); }
.table td strong { color: var(--navy); font-weight: 700; }

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
}
.pagination small { color: var(--muted); font-size: 0.82rem; }
.pag-btns { display: flex; gap: 4px; }
.pag-btns button {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}
.pag-btns button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pag-btns button:hover:not(.active) { border-color: var(--orange); color: var(--orange); }

/* --- Wizard --- */
.wiz-progress { margin-bottom: 24px; }
.wiz-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}
.wiz-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.45;
  transition: opacity .25s ease;
}
.wiz-step.active { opacity: 1; }
.wiz-step.done { opacity: 0.8; }
.wiz-step span {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--muted);
  font-size: 0.82rem;
}
.wiz-step.active span { background: var(--orange); border-color: var(--orange); color: #fff; }
.wiz-step.done span { background: var(--green); border-color: var(--green); color: #fff; }
.wiz-step b { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.wiz-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.wiz-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  border-radius: 2px;
  transition: width .3s ease;
}

.wiz-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.wiz-panel { display: none; animation: fadeIn .3s ease; }
.wiz-panel.active { display: block; }
.wiz-panel h3 { margin-bottom: 4px; }
.wiz-panel > p { color: var(--muted); margin-bottom: 18px; font-size: 0.9rem; }
.wiz-panel .field { margin-bottom: 14px; }

.upload {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  background: var(--bg-2);
  margin-bottom: 14px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.upload:hover { border-color: var(--orange); background: #FFF5EB; }
.upload-ico { font-size: 2.2rem; margin-bottom: 6px; }
.upload strong { display: block; color: var(--navy); }
.upload small { color: var(--muted); font-size: 0.82rem; }

.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
}
.doc-item span { flex: 1; color: var(--navy); font-weight: 600; }
.doc-item small { color: var(--muted); font-size: 0.76rem; }
.doc-item button {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 1rem;
}
.doc-item button:hover { background: var(--red-soft); color: var(--red); }

.review { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.review-sec {
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: 10px;
  border-left: 3px solid var(--orange);
}
.review-sec h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 3px; }
.review-sec p { color: var(--navy); font-size: 0.92rem; }
.review-commission { color: var(--green) !important; font-weight: 800 !important; font-size: 1.1rem !important; }

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--bg-2);
  border-radius: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
}
.terms-check input { margin-top: 3px; accent-color: var(--orange); }

.wiz-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
}

/* --- Clientes grid --- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.client-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.client-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.client-info strong { color: var(--navy); display: block; }
.client-info small { color: var(--muted); font-size: 0.78rem; }
.client-meta { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--muted); }
.client-meta strong { color: var(--navy); }

/* --- Recursos --- */
.sec-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 22px 0 12px;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.res-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.res-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.res-ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--sky-2);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.res-card h4 { color: var(--navy); }
.res-card small { color: var(--muted); font-size: 0.78rem; margin-bottom: 6px; }
.res-card .btn { align-self: flex-start; margin-top: auto; }

.res-card-img .res-img {
  aspect-ratio: 16/10;
  border-radius: 10px;
  margin: -2px -2px 4px;
}
.res-img-1 { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.res-img-2 { background: linear-gradient(135deg, var(--orange), var(--orange-soft)); }
.res-img-3 { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); }
.res-img-4 { background: linear-gradient(135deg, var(--sky), var(--sky-2)); }

/* --- Reportes --- */
.report-gen {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  max-width: 640px;
  margin-bottom: 20px;
}
.report-gen h3 { margin-bottom: 14px; }
.report-gen .field { margin-bottom: 14px; }
.format-row { display: flex; gap: 10px; margin-top: 4px; }
.fmt {
  flex: 1;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease;
}
.fmt input { display: none; }
.fmt:has(input:checked) { border-color: var(--orange); background: #FFF5EB; color: var(--orange-dark); }

/* --- Notifs --- */
.notifs-list { display: flex; flex-direction: column; gap: 8px; }
.notif {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.notif.unread { border-left: 3px solid var(--orange); }
.notif-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.bg-orange { background: rgba(217, 120, 69, 0.14); }
.bg-blue   { background: var(--sky-2); }
.bg-green  { background: var(--green-soft); }
.bg-gold   { background: var(--gold-soft); }
.notif strong { display: block; color: var(--navy); font-size: 0.92rem; }
.notif small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.notif > div:nth-child(2) { flex: 1; }

/* --- Ayuda --- */
.help-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 38px;
  border-radius: 14px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.help-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 120, 69, 0.4) 0%, transparent 70%);
}
.help-hero input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 0;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.95);
  position: relative;
  z-index: 1;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.help-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
  cursor: pointer;
}
.help-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.help-card .help-ico {
  width: 52px; height: 52px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: var(--sky-2);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.help-card h4 { color: var(--navy); font-size: 0.9rem; }
.help-card small { color: var(--muted); font-size: 0.76rem; }

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--orange); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--sky-2);
  position: relative;
  transition: background .2s ease, transform .3s ease;
}
.faq-plus::before, .faq-plus::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 2px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  border-radius: 1px;
  transition: transform .3s ease, background .2s ease;
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--orange); transform: rotate(180deg); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: #fff; }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-body { padding: 0 20px 18px; }
.faq-body p { font-size: 0.92rem; line-height: 1.55; color: var(--muted); }
.faq-body strong { color: var(--navy); }

.help-contact {
  background: var(--bg-2);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}
.help-contact h3 { margin-bottom: 4px; }
.help-contact p { margin-bottom: 16px; }
.help-contact-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* --- Config --- */
.config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.config-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.config-card h3 { margin-bottom: 14px; }
.config-card .field { margin-bottom: 12px; }
.config-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.config-switch:first-of-type { border-top: 0; }
.config-switch strong { display: block; color: var(--navy); font-size: 0.9rem; }
.config-switch small { color: var(--muted); font-size: 0.78rem; }
.switch { position: relative; width: 42px; height: 24px; }
.switch input { position: absolute; opacity: 0; }
.switch span {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: background .2s ease;
}
.switch span::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span::before { transform: translateX(18px); }

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 100px);
  background: var(--green);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 18px 40px rgba(47, 132, 73, 0.4);
  z-index: 1000;
  opacity: 0;
  transition: opacity .3s ease, transform .4s cubic-bezier(.3,1.5,.5,1);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --- Responsive --- */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .dash-row, .dash-row-3 { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .resources-grid, .help-grid { grid-template-columns: 1fr 1fr; }
  .config-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .login-split { grid-template-columns: 1fr; }
  .login-left { padding: 32px 24px; }
  .login-right { padding: 32px 20px; }

  .portal { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    width: 80%; max-width: 320px;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); }
  .topbar-toggle { display: flex; }
  .topbar-search { display: none; }
  .topbar-btn span { display: none; }
  .content { padding: 18px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .wiz-steps { overflow-x: auto; }
  .wiz-step b { display: none; }
  .view-head { flex-direction: column; align-items: flex-start; }
  .toolbar-right { width: 100%; }
  .search-sm { flex: 1; width: auto; }
  .format-row { flex-direction: column; }
  .table { font-size: 0.8rem; }
  .table th, .table td { padding: 10px 12px; }
}

/* ============================================
   V2 — TEMA NAVY/ORANGE: override de fondos blancos
   ============================================ */

body { background: var(--bg); color: var(--ink); }

/* Force all card-like elements to navy surface */
.kpi, .dash-card, .table, .qa, .client-card, .res-card,
.report-gen, .config-card, .help-card, .help-contact,
.notif, .faq-item, .wiz-body, .stat-box {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: #F0F4FA !important;
}

/* Headings light */
h1, h2, h3, h4, h5,
.kpi strong, .dash-card h3, .qa strong, .client-info strong,
.res-card h4, .help-card h4, .notif strong, .config-card h3,
.review-sec p, .table strong, .login-form h2 {
  color: #F0F4FA !important;
}

/* Body text */
p, .kpi small, .dash-card small, .qa small, .client-info small,
.res-card small, .help-card small, .notif small, .review-sec h4 {
  color: rgba(240, 244, 250, 0.72) !important;
}

/* Tables */
.table thead, .table th { background: var(--bg-2) !important; color: rgba(240, 244, 250, 0.7) !important; border-color: var(--border) !important; }
.table tbody tr { border-bottom-color: var(--border) !important; }
.table tbody tr:hover { background: var(--bg-2) !important; }
.table td { color: var(--ink) !important; }

/* Inputs */
.field input, .field select, .field textarea,
.search-sm, .select-sm, input[type='date'], input[type='time'],
input[type='text'], input[type='email'], input[type='password'], input[type='tel'] {
  background: var(--navy) !important;
  border-color: var(--border) !important;
  color: #fff !important;
}
.field input:focus, .field select:focus, .field textarea:focus,
.search-sm:focus, .select-sm:focus {
  border-color: var(--orange) !important;
  background: var(--navy-2) !important;
}
.field label { color: rgba(240, 244, 250, 0.7) !important; }

/* Pills (filters) */
.pill {
  background: var(--bg-2) !important;
  color: rgba(240, 244, 250, 0.7) !important;
  border-color: var(--border) !important;
}
.pill:hover { color: #fff !important; border-color: var(--orange) !important; }
.pill.active {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
}

/* Pagination buttons */
.pag-btns button {
  background: var(--bg-2) !important;
  border-color: var(--border) !important;
  color: rgba(240, 244, 250, 0.7) !important;
}
.pag-btns button.active { background: var(--orange) !important; border-color: var(--orange) !important; color: #fff !important; }

/* KPI icons */
.kpi-ico-blue { background: rgba(203, 217, 228, 0.16) !important; }
.kpi-ico-orange { background: rgba(217, 120, 69, 0.18) !important; }
.kpi-ico-gold { background: rgba(201, 162, 103, 0.18) !important; }
.kpi-ico-green { background: rgba(47, 132, 73, 0.2) !important; }

/* Bars chart */
.bars-chart .bar:not(.bar-active) {
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2)) !important;
}
.bar span { color: rgba(240, 244, 250, 0.55) !important; }
.bar em { color: var(--orange-soft) !important; }

/* Donut empty stroke */
.donut svg circle:first-of-type { stroke: var(--bg-2) !important; }
.donut-center strong { color: #F0F4FA !important; }
.donut-center small { color: rgba(240, 244, 250, 0.6) !important; }
.donut-legend li { color: #F0F4FA !important; }
.donut-legend li span { color: rgba(240, 244, 250, 0.7) !important; }

/* Mini list rows */
.mini-row:hover { background: var(--bg-2) !important; }
.mini-body strong { color: #F0F4FA !important; }
.mini-body small { color: rgba(240, 244, 250, 0.65) !important; }
.mini-amt { color: var(--orange-soft) !important; }
.mini-amt-green { color: var(--green) !important; }
.mini-amt-muted { color: rgba(240, 244, 250, 0.4) !important; }
.mini-date {
  background: var(--bg-2) !important;
  border-color: var(--border) !important;
}
.mini-date b { color: #F0F4FA !important; }

/* Tags */
.tag-orange { background: rgba(217, 120, 69, 0.18) !important; color: var(--orange-soft) !important; }
.tag-blue   { background: rgba(203, 217, 228, 0.16) !important; color: #8FC3E8 !important; }
.tag-green  { background: rgba(47, 132, 73, 0.2) !important; color: var(--green) !important; }
.tag-gray   { background: rgba(255, 255, 255, 0.06) !important; color: rgba(255, 255, 255, 0.55) !important; }
.tag-gold   { background: rgba(201, 162, 103, 0.2) !important; color: var(--gold) !important; }

/* QA quick actions */
.qa-ico { background: rgba(217, 120, 69, 0.18) !important; }
.qa:hover { border-color: var(--orange) !important; }

/* Buttons */
.btn-ghost {
  background: transparent !important;
  color: #F0F4FA !important;
  border: 1.5px solid var(--border) !important;
}
.btn-ghost:hover { background: var(--bg-2) !important; border-color: var(--orange) !important; }
.btn-ghost.active { background: var(--orange) !important; border-color: var(--orange) !important; color: #fff !important; }

/* Period picker */
.period-picker { background: var(--surface) !important; border-color: var(--border) !important; }
.period-picker .btn { color: rgba(240, 244, 250, 0.7) !important; }
.period-picker .btn.active { background: var(--orange) !important; color: #fff !important; }

/* Topbar */
.topbar { background: var(--surface) !important; border-bottom-color: var(--border) !important; }
.topbar-title { color: #F0F4FA !important; }
.topbar-search input { background: var(--bg-2) !important; border-color: var(--border) !important; color: #fff !important; }
.topbar-search input::placeholder { color: rgba(240, 244, 250, 0.4); }
.topbar-search kbd { background: var(--surface) !important; border-color: var(--border) !important; color: rgba(240, 244, 250, 0.6) !important; }
.topbar-icon { background: var(--bg-2) !important; color: #F0F4FA !important; }
.topbar-icon:hover { background: var(--orange) !important; color: #fff !important; }
.topbar-avatar { background: var(--orange) !important; }
.topbar-toggle { color: #F0F4FA !important; }
.topbar-toggle:hover { background: var(--bg-2) !important; }
.dot-alert { background: var(--orange) !important; box-shadow: 0 0 0 2px var(--surface) !important; }

/* Wizard */
.wiz-step span { background: var(--bg-2) !important; border-color: var(--border) !important; color: rgba(240, 244, 250, 0.6) !important; }
.wiz-step.active span { background: var(--orange) !important; border-color: var(--orange) !important; color: #fff !important; }
.wiz-step b { color: #F0F4FA !important; }
.upload {
  background: var(--bg-2) !important;
  border-color: var(--border) !important;
}
.upload:hover { background: rgba(217, 120, 69, 0.08) !important; border-color: var(--orange) !important; }
.upload strong { color: #F0F4FA !important; }
.upload small { color: rgba(240, 244, 250, 0.6) !important; }
.doc-item { background: var(--bg-2) !important; border-color: var(--border) !important; }
.doc-item span { color: #F0F4FA !important; }
.doc-item small { color: rgba(240, 244, 250, 0.6) !important; }
.review-sec { background: var(--bg-2) !important; }
.terms-check { background: var(--bg-2) !important; color: rgba(240, 244, 250, 0.7) !important; }

/* Format radios */
.fmt { background: var(--bg-2) !important; border-color: var(--border) !important; color: #F0F4FA !important; }
.fmt:has(input:checked) { background: rgba(217, 120, 69, 0.18) !important; border-color: var(--orange) !important; color: var(--orange-soft) !important; }

/* Help */
.help-hero { background: linear-gradient(135deg, var(--navy-2), var(--navy-3)) !important; }
.help-hero input { background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; }
.help-hero input::placeholder { color: rgba(255, 255, 255, 0.6); }
.help-card .help-ico { background: rgba(217, 120, 69, 0.18) !important; }
.help-contact { background: var(--bg-2) !important; }

/* FAQ */
.faq-item summary { color: #F0F4FA !important; }
.faq-plus { background: var(--bg-2) !important; }
.faq-plus::before, .faq-plus::after { background: var(--orange) !important; }
.faq-item[open] .faq-plus { background: var(--orange) !important; }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: #fff !important; }
.faq-body p { color: rgba(240, 244, 250, 0.75) !important; }
.faq-body strong { color: #F0F4FA !important; }

/* Resource cards */
.res-ico { background: rgba(217, 120, 69, 0.18) !important; }

/* Notifs */
.notif-ico.bg-orange { background: rgba(217, 120, 69, 0.18) !important; }
.notif-ico.bg-blue   { background: rgba(203, 217, 228, 0.16) !important; }
.notif-ico.bg-green  { background: rgba(47, 132, 73, 0.2) !important; }
.notif-ico.bg-gold   { background: rgba(201, 162, 103, 0.2) !important; }

/* Switch */
.switch span { background: var(--border) !important; }
.switch input:checked + span { background: var(--orange) !important; }

/* Login (right panel was white) */
.login-right { background: var(--bg-2) !important; }
.login-form h2 { color: #F0F4FA !important; }
.login-form > p { color: rgba(240, 244, 250, 0.7) !important; }
.toggle-pass { color: rgba(240, 244, 250, 0.55) !important; }
.toggle-pass:hover { background: var(--surface) !important; }
.remember { color: rgba(240, 244, 250, 0.7) !important; }
.login-divider { color: rgba(240, 244, 250, 0.5) !important; }
.login-divider::before, .login-divider::after { background: var(--border) !important; }
.login-terms { color: rgba(240, 244, 250, 0.5) !important; }
.forgot { color: var(--orange-soft) !important; }

/* Section title */
.sec-title { color: rgba(240, 244, 250, 0.65) !important; }

/* Sidebar avatar text */
.side-user strong { color: #F0F4FA !important; }
.side-user small { color: rgba(240, 244, 250, 0.5) !important; }

/* Toast */
.toast { background: var(--orange) !important; }

/* Stats summary col borders */
.client-meta { border-top-color: var(--border) !important; }
.case-stats { border-top-color: var(--border) !important; }
