/* ══════════════════════════════════════════════════════════════════════════
   STEPPINAI — Dark / Dusk / Light
   ══════════════════════════════════════════════════════════════════════════ */

/* Dark Mode (default) */
:root, [data-theme="dark"] {
  --bg: #1d2125;
  --panel: #22272b;
  --panel-2: #2c333a;
  --border: #2c333a;
  --text: #c7d1db;
  --muted: #9fadbc;
  --accent: #579dff;
  --accent-2: #85b8ff;
  --success: #4bce97;
  --warning: #f5cd47;
  --danger: #f87462;
  --shadow: 0 3px 6px rgba(3,4,4,.55),0 0 1px rgba(3,4,4,.45);
  --surface: #22272b;
  --surface2: #2c333a;
  --surface3: #38414a;
  --border2: #454f59;
  --text-2: #9fadbc;
  --text-3: #8c9bab;
  --blue: #579dff;
  --blue-2: #85b8ff;
  --green: #4bce97;
  --amber: #f5cd47;
  --red: #f87462;
  --teal: #4bce97;
  --indigo: #85b8ff;
  --violet: #85b8ff;
  --radius: 6px;
  --radius-lg: 8px;
  --header-glow: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(87,157,255,.15) 0%, transparent 70%);
}

/* Light Mode — clean crisp white/black/gray */
[data-theme="light"] {
  --bg: #f7f8f9;
  --panel: #ffffff;
  --panel-2: #f1f2f4;
  --border: #dfe1e6;
  --text: #172b4d;
  --muted: #626f86;
  --accent: #0c66e4;
  --accent-2: #0055cc;
  --success: #22a06b;
  --warning: #b38600;
  --danger: #c9372c;
  --shadow: 0 1px 1px rgba(9,30,66,.25),0 0 1px rgba(9,30,66,.13);
  --surface: #ffffff;
  --surface2: #f1f2f4;
  --surface3: #e9ebee;
  --border2: #c1c7d0;
  --text-2: #626f86;
  --text-3: #8590a2;
  --blue: #0c66e4;
  --blue-2: #0055cc;
  --green: #22a06b;
  --amber: #b38600;
  --red: #c9372c;
  --teal: #22a06b;
  --indigo: #0c66e4;
  --violet: #0c66e4;
  --radius: 6px;
  --radius-lg: 8px;
  --header-glow: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(12,102,228,.08) 0%, transparent 70%);
}

/* Dusk Mode — twilight between dark and light */
[data-theme="dusk"] {
  --bg: #1a2035;
  --panel: #212a42;
  --panel-2: #283350;
  --border: #344060;
  --text: #d8dff0;
  --muted: #8893ad;
  --accent: #7db4ff;
  --accent-2: #a78bfa;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 4px 20px rgba(0,0,0,.2);
  --surface: #212a42;
  --surface2: #283350;
  --surface3: #303d5e;
  --border2: #3f506e;
  --text-2: #9ca8c0;
  --text-3: #6b7a96;
  --blue: #7db4ff;
  --blue-2: #a0d0ff;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #fb7185;
  --teal: #5eead4;
  --indigo: #a5b4fc;
  --violet: #c4b5fd;
  --radius: 6px;
  --radius-lg: 8px;
  --header-glow: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(125,180,255,.12) 0%, transparent 70%);
}

/* Dawn Mode — warm sunrise, soft amber/peach */
[data-theme="dawn"] {
  --bg: #2a1f1e;
  --panel: #352826;
  --panel-2: #3e302d;
  --border: #5a4540;
  --text: #f0e0d6;
  --muted: #ad9185;
  --accent: #f0a060;
  --accent-2: #e8845a;
  --success: #6dca72;
  --warning: #f5c842;
  --danger: #f07070;
  --shadow: 0 4px 20px rgba(20,10,5,.25);
  --surface: #352826;
  --surface2: #3e302d;
  --surface3: #4a3a36;
  --border2: #6b5550;
  --text-2: #c4a89c;
  --text-3: #8a716a;
  --blue: #82b8e0;
  --blue-2: #a0d0f0;
  --green: #6dca72;
  --amber: #f5c842;
  --red: #f07070;
  --teal: #60c4b0;
  --indigo: #a098d8;
  --violet: #c8a0e0;
  --radius: 6px;
  --radius-lg: 8px;
  --header-glow: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(240,160,96,.12) 0%, transparent 70%);
}

/* Old theme names — all map to dark or light */
/* No trace of old themes. Just dark and light. */

html, body {
  margin: 0; padding: 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'JetBrains Mono', monospace; letter-spacing: -0.02em; }
button, input, textarea, select {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
button {
  cursor: pointer;
  padding: 8px 14px;
  font-weight: 600;
  transition: all .15s ease;
}
button:hover { border-color: var(--accent); color: var(--accent); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--surface3);
}
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface2);
}
textarea { min-height: 100px; resize: vertical; }
.mono { font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace; }
::selection { background: rgba(110,168,254,.25); color: var(--text); }

/* Scrollbar — command mode style */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}
.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.brand-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 4px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--surface3);
  border: 1px solid var(--border2);
  color: var(--accent);
  font-weight: 700;
  box-shadow: none;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
  border-radius: 6px;
}
.brand-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-title em {
  font-style: normal;
  color: var(--accent);
}
.brand-subtitle {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-list { display: grid; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  position: relative;
}
.nav-item:hover {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text);
}
.nav-item.active {
  background: var(--surface3);
  border-color: var(--border2);
  color: var(--accent);
}

/* ── Icon Badge System ─────────────────────────────────────────────── */
.icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}

/* Color variants */
.icon-blue   { background: rgba(110,168,254,.1); }
.icon-blue   svg { stroke: #579dff; }
.icon-teal   { background: rgba(77,216,200,.1); }
.icon-teal   svg { stroke: #4dd8c8; }
.icon-green  { background: rgba(93,211,158,.1); }
.icon-green  svg { stroke: #5dd39e; }
.icon-amber  { background: rgba(255,202,107,.1); }
.icon-amber  svg { stroke: #ffca6b; }
.icon-red    { background: rgba(255,143,143,.1); }
.icon-red    svg { stroke: #ff8f8f; }
.icon-violet { background: rgba(192,132,252,.1); }
.icon-violet svg { stroke: #c084fc; }
.icon-indigo { background: rgba(139,147,255,.1); }
.icon-indigo svg { stroke: #8b93ff; }
.icon-rose   { background: rgba(251,113,133,.1); }
.icon-rose   svg { stroke: #fb7185; }
.icon-orange { background: rgba(251,146,60,.1); }
.icon-orange svg { stroke: #fb923c; }
.icon-cyan   { background: rgba(34,211,238,.1); }
.icon-cyan   svg { stroke: #22d3ee; }

/* Hover glow */
.nav-item:hover .icon-blue   { background: rgba(110,168,254,.2); box-shadow: 0 0 6px rgba(110,168,254,.2); }
.nav-item:hover .icon-teal   { background: rgba(77,216,200,.2);  box-shadow: 0 0 6px rgba(77,216,200,.2); }
.nav-item:hover .icon-green  { background: rgba(93,211,158,.2);  box-shadow: 0 0 6px rgba(93,211,158,.2); }
.nav-item:hover .icon-amber  { background: rgba(255,202,107,.2); box-shadow: 0 0 6px rgba(255,202,107,.2); }
.nav-item:hover .icon-red    { background: rgba(255,143,143,.2); box-shadow: 0 0 6px rgba(255,143,143,.2); }
.nav-item:hover .icon-violet { background: rgba(192,132,252,.2); box-shadow: 0 0 6px rgba(192,132,252,.2); }
.nav-item:hover .icon-indigo { background: rgba(139,147,255,.2); box-shadow: 0 0 6px rgba(139,147,255,.2); }
.nav-item:hover .icon-rose   { background: rgba(251,113,133,.2); box-shadow: 0 0 6px rgba(251,113,133,.2); }
.nav-item:hover .icon-orange { background: rgba(251,146,60,.2);  box-shadow: 0 0 6px rgba(251,146,60,.2); }
.nav-item:hover .icon-cyan   { background: rgba(34,211,238,.2);  box-shadow: 0 0 6px rgba(34,211,238,.2); }

/* Nav section labels */
.nav-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 16px 12px 8px;
}

/* Section heads */
.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.sec-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.sec-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Section accents — card headers */
.sec-accent { width: 3px; height: 16px; border-radius: 2px; flex-shrink: 0; }
.a-blue   { background: linear-gradient(180deg, #579dff, #85b8ff); box-shadow: 0 0 6px rgba(87,157,255,.5); }
.a-teal   { background: linear-gradient(180deg, #4dd8c8, #6ee7e0); box-shadow: 0 0 6px rgba(77,216,200,.5); }
.a-green  { background: linear-gradient(180deg, #5dd39e, #86efac); box-shadow: 0 0 6px rgba(93,211,158,.5); }
.a-amber  { background: linear-gradient(180deg, #ffca6b, #fde68a); box-shadow: 0 0 6px rgba(255,202,107,.5); }
.a-red    { background: linear-gradient(180deg, #ff8f8f, #fca5a5); box-shadow: 0 0 6px rgba(255,143,143,.5); }
.a-violet { background: linear-gradient(180deg, #c084fc, #d8b4fe); box-shadow: 0 0 6px rgba(192,132,252,.5); }
.a-indigo { background: linear-gradient(180deg, #8b93ff, #a5b4fc); box-shadow: 0 0 6px rgba(139,147,255,.5); }
.a-rose   { background: linear-gradient(180deg, #fb7185, #fda4af); box-shadow: 0 0 6px rgba(251,113,133,.5); }
.a-orange { background: linear-gradient(180deg, #fb923c, #fdba74); box-shadow: 0 0 6px rgba(251,146,60,.5); }
.a-cyan   { background: linear-gradient(180deg, #22d3ee, #67e8f9); box-shadow: 0 0 6px rgba(34,211,238,.5); }


.main-panel {
  display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden;
  position: relative;
  background: var(--bg);
  min-width: 0;
}
.main-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 300px;
  background: var(--header-glow);
  pointer-events: none;
  z-index: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(110,168,254,.06);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.nav-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  transition: all .15s;
}
.nav-btn:hover {
  background: var(--surface3);
  border-color: var(--accent);
  color: var(--text);
}
.page-kicker { color: var(--accent); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.page-title {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
}

/* Entry animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card { animation: fadeInUp .25s ease-out both; }
.card:nth-child(2) { animation-delay: .04s; }
.card:nth-child(3) { animation-delay: .08s; }
.card:nth-child(4) { animation-delay: .12s; }
.card:nth-child(5) { animation-delay: .16s; }
.card:nth-child(6) { animation-delay: .2s; }
.theme-toggle {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
}
/* Theme toggle is a simple button — no dropdown needed */
/* Dark/Light toggle buttons (website + portal fallback) */
.theme-toggle {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  min-width: 100px; display: flex; align-items: center;
  gap: 8px; padding: 6px 12px; border-radius: 8px; font-size: 12px;
}
.t-btn {
  padding: 5px 12px; border-radius: 8px; font-size: 11px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; background: transparent;
  color: var(--muted); transition: all .15s;
}
.t-btn.on { background: var(--panel); color: var(--text); border-color: var(--border); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.t-btn:hover { color: var(--text); transform: none; }
.content-wrap { padding: 24px 28px 32px; flex: 1; display: grid; gap: 14px; align-content: start; position: relative; z-index: 1; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 18px;
  transition: all .2s;
}
.card:hover {
  border-color: var(--border2);
}
.card h2, .card h3 { margin-top: 0; font-family: 'JetBrains Mono', monospace; }
.grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity .2s;
}
.stat:hover {
  border-color: var(--border2);
  background: var(--surface3);
}
.stat:hover::before { opacity: 1; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.stat-value { font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; color: var(--text); }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
th { color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-bottom-color: rgba(110,168,254,.12); }
tr { transition: background .15s; }
tr:hover td { background: rgba(255,255,255,.06); }
td { font-size: 14px; border-bottom-color: rgba(255,255,255,.04); }
.form-grid { display: grid; gap: 14px; }
label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 6px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
.b-green { background: rgba(93,211,158,.08); border-color: rgba(93,211,158,.2); color: var(--success); }
.b-amber { background: rgba(255,202,107,.08); border-color: rgba(255,202,107,.2); color: var(--warning); }
.b-red   { background: rgba(255,143,143,.08); border-color: rgba(255,143,143,.2); color: var(--danger); }
.b-blue  { background: rgba(110,168,254,.08); border-color: rgba(110,168,254,.2); color: var(--accent); }
.b-pro   { background: rgba(139,147,255,.08); border-color: rgba(139,147,255,.2); color: var(--indigo); }
.list-clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.list-clean li {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  transition: all .15s;
  font-size: 12px;
}
.list-clean li:hover {
  border-color: var(--border2);
  background: var(--surface3);
}

/* Status badges */
.status-running { color: var(--success); font-weight: 600; }
.status-stopped { color: var(--danger); font-weight: 600; }
.status-pending { color: var(--warning); font-weight: 600; }

/* Floating AI Assistant */
#ai-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--surface3);
  border: 1px solid var(--border2);
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all .2s ease;
}
#ai-fab:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ai-panel {
  position: fixed;
  bottom: 92px;
  right: 28px;
  width: 360px;
  max-height: 500px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 999;
  transition: opacity .2s ease, transform .2s ease;
}
.ai-panel.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.ai-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}
.ai-close-btn {
  background: transparent;
  border: none;
  color: white;
  padding: 4px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  min-width: unset;
}
.ai-close-btn:hover { background: rgba(255,255,255,0.2); transform: none; border-color: transparent; }
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-msg {
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 90%;
}
.ai-msg.user {
  background: var(--accent);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ai-msg.assistant {
  background: var(--panel-2);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ai-msg.thinking {
  color: var(--muted);
  font-style: italic;
  background: transparent;
  border: none;
  padding: 4px 0;
}
.ai-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.ai-input-row input {
  flex: 1;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 13px;
}
.ai-input-row button {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  background: var(--accent);
  border: none;
  color: white;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  min-width: unset;
}
.ai-input-row button:hover { background: var(--accent-2); transform: none; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .main-panel { padding: 18px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .ai-panel { width: calc(100vw - 40px); right: 20px; }
}

/* ── Lucide Icon Integration ────────────────────────────────────────────── */
/* Icons inside .icon badge containers */
.icon i[data-lucide] {
  display: block;
  width: 15px;
  height: 15px;
}
.icon-blue   i[data-lucide] { stroke: #579dff; }
.icon-teal   i[data-lucide] { stroke: #4dd8c8; }
.icon-green  i[data-lucide] { stroke: #5dd39e; }
.icon-amber  i[data-lucide] { stroke: #ffca6b; }
.icon-red    i[data-lucide] { stroke: #ff8f8f; }
.icon-violet i[data-lucide] { stroke: #c084fc; }
.icon-indigo i[data-lucide] { stroke: #8b93ff; }
.icon-cyan   i[data-lucide] { stroke: #22d3ee; }
.icon-orange i[data-lucide] { stroke: #fb923c; }
.icon-rose   i[data-lucide] { stroke: #fb7185; }

/* Inline icons in text/buttons */
.icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.icon-inline i[data-lucide] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Status icon badges */
.status-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
}
.status-icon i[data-lucide] { width: 11px; height: 11px; }
.status-icon.success { background: rgba(93,211,158,.1);  color: var(--success); }
.status-icon.success i[data-lucide] { stroke: var(--success); }
.status-icon.danger  { background: rgba(255,143,143,.1); color: var(--danger); }
.status-icon.danger  i[data-lucide] { stroke: var(--danger); }
.status-icon.warning { background: rgba(255,202,107,.1); color: var(--warning); }
.status-icon.warning i[data-lucide] { stroke: var(--warning); }
.status-icon.accent  { background: rgba(110,168,254,.1); color: var(--accent); }
.status-icon.accent  i[data-lucide] { stroke: var(--accent); }
.status-icon.muted   { background: var(--surface3);      color: var(--muted); }
.status-icon.muted   i[data-lucide] { stroke: var(--muted); }

/* Empty state icons */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}
.empty-state i[data-lucide] {
  width: 48px;
  height: 48px;
  stroke: var(--border2);
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.empty-state h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
}

/* Button icons */
.btn i[data-lucide],
.btn-primary i[data-lucide] {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface2); color: var(--text);
  transition: all .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(110,168,254,.06); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  border: none; box-shadow: 0 2px 12px rgba(110,168,254,.25);
  transition: all .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(110,168,254,.35); }
.btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,143,143,.3); background: rgba(255,143,143,.06); color: var(--danger);
  transition: all .15s;
}
.btn-danger:hover { background: rgba(255,143,143,.12); border-color: var(--danger); }

/* Nav active state enhancement */
.nav-item.active i[data-lucide] { stroke: var(--accent) !important; }

/* ── Password Eye Toggle ───────────────────────────────────────────────────── */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-wrap input[type="password"],
.pw-wrap input[type="text"] {
  width: 100%;
  padding-right: 42px !important;
}
.pw-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color .15s;
  z-index: 2;
}
.pw-eye:hover { color: var(--text); }


/* No old themes. Dark and light only. */
