:root {
  --bg-main: #090d16;
  --bg-surface: #111827;
  --bg-elevated: #172033;
  --bg-input: #0d1322;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent-primary: #10b981;
  --accent-primary-hover: #059669;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.28);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Modo Discreto / Privacidad Financiera */
body.privacy-blur-active .money-sensitive {
  filter: blur(8px);
  user-select: none;
  transition: filter 0.2s ease;
}
body.privacy-blur-active .money-sensitive:hover {
  filter: blur(0);
}

/* Top Bar — Más limpia y despejada */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}

.brand-title h1 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-title span {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
}

.top-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.control-group select {
  background: transparent;
  color: var(--text-main);
  border: none;
  font-weight: 600;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.control-group select option {
  background: var(--bg-surface);
  color: var(--text-main);
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.8rem;
  user-select: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.36rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-online {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-local {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot-online { background: #10b981; box-shadow: 0 0 8px #10b981; }
.dot-local { background: #3b82f6; }

/* Navigation Tabs */
.nav-tabs-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 1.75rem;
  background: rgba(17, 24, 39, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.nav-tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab-btn.active {
  background: var(--bg-surface);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Main Container */
.app-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 3.5rem;
}

/* KPI Grid — Minimalista y limpia */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1150px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.2rem 1.35rem;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  overflow: hidden;
}

.kpi-primary {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.12), var(--bg-surface) 70%);
  border-color: rgba(16, 185, 129, 0.35);
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-tag {
  font-size: 0.68rem;
  padding: 0.14rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  white-space: nowrap;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-sub, .kpi-split-bars {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
}

/* Panels & Layouts */
.summary-strip-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.stack-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

@media (max-width: 1100px) {
  .summary-strip-grid,
  .two-col-layout {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.panel-header h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.panel-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.18rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: #04130d;
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--accent-primary-hover);
  color: #fff;
}

.btn-secondary {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.28);
}
.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.22);
}

.btn-whatsapp {
  background: #22c55e;
  color: #04130d;
  font-weight: 700;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.btn-active-accent {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fcd34d !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.summary-matrix-table,
.cc-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.summary-matrix-table th,
.summary-matrix-table td,
.cc-items-table th,
.cc-items-table td {
  padding: 0.6rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.summary-matrix-table th,
.cc-items-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.18);
}

.row-highlight {
  background: rgba(16, 185, 129, 0.08);
}

/* Mini Categories */
.mini-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mini-cat-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent-primary);
}
.progress-bar-fill.status-ok { background: #10b981; }
.progress-bar-fill.status-warn { background: #f59e0b; }
.progress-bar-fill.status-over { background: #ef4444; }
.status-over-text { color: #f87171; font-weight: 600; }
.status-warn-text { color: #fbbf24; }
.status-ok-text { color: #34d399; }

/* Card Filter Bar */
.cards-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.44rem 0.85rem;
  border-radius: 999px;
  font-size: 0.79rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.card-pill:hover {
  border-color: var(--border-strong);
}

.card-pill.active {
  background: var(--bg-elevated);
  color: var(--text-main);
  border-color: var(--pill-color, var(--accent-primary));
  box-shadow: 0 0 0 1px var(--pill-color, var(--accent-primary));
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.search-box input {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  min-width: 280px;
  font-size: 0.82rem;
  outline: none;
}
.search-box input:focus {
  border-color: var(--accent-primary);
}

/* ============================================================================
   5 TARJETAS DE CRÉDITO — DISEÑO LIMPIO CON IMPORTES 100% DENTRO DEL RECUADRO
   ============================================================================ */
.five-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.15rem;
  align-items: start;
}

.five-cards-grid.single-card-expanded {
  grid-template-columns: 1fr;
  max-width: 860px;
}

.credit-card-column {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--card-accent, var(--accent-blue));
  border-radius: var(--radius-xl);
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  max-width: 100%;
  overflow: hidden; /* Garantiza que nada salga jamás del recuadro */
}

.cc-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cc-owner-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.1rem;
}

.cc-col-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.cc-col-total {
  text-align: right;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.cc-col-total small {
  display: block;
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.cc-col-total strong {
  font-size: 0.98rem;
  color: #34d399;
  font-family: 'JetBrains Mono', Consolas, monospace;
}

.cc-subblock {
  margin-bottom: 1rem;
}
.cc-subblock:last-child {
  margin-bottom: 0;
}

.cc-subblock-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

/* Lista limpia de movimientos dentro de cada tarjeta (Reemplaza tabla ancha que desbordaba) */
.cc-movement-list {
  display: flex;
  flex-direction: column;
}

.cc-movement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.52rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  min-width: 0;
  transition: background 0.12s ease;
}

.cc-movement-row:last-child {
  border-bottom: none;
}

.cc-movement-row:hover {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 6px;
}

.cc-mov-left {
  flex: 1;
  min-width: 0; /* Permite truncar textos largos sin empujar el importe fuera del recuadro */
}

.cc-mov-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-mov-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.16rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cc-mov-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0; /* Mantiene el importe siempre firme adentro del recuadro */
  text-align: right;
}

.cc-mov-amount {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.cc-empty, .empty-state-box {
  padding: 0.9rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-md);
}

.cat-chip {
  display: inline-block;
  padding: 0.08rem 0.42rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.69rem;
  white-space: nowrap;
}

.cuota-badge {
  display: inline-block;
  padding: 0.08rem 0.4rem;
  border-radius: 5px;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
}

.note-badge {
  color: #fbbf24;
  font-size: 0.7rem;
}

.btn-icon-del {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  opacity: 0.45;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.cc-movement-row:hover .btn-icon-del,
tr:hover .btn-icon-del {
  opacity: 1;
}
.btn-icon-del:hover {
  color: var(--danger);
}

/* WhatsApp Quick Box */
.whatsapp-quick-box {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: var(--radius-lg);
  padding: 0.95rem;
  margin-bottom: 1rem;
}

.wa-box-header {
  font-size: 0.8rem;
  color: #4ade80;
  margin-bottom: 0.5rem;
}

.wa-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wa-input-row input[type="text"] {
  flex: 1;
  min-width: 220px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.52rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
}

.wa-hint {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

/* Forms */
.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.form-group label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea,
.inline-add-row input,
.inline-add-row select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
}

.inline-edit-input,
.inline-edit-number {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid transparent;
  color: var(--text-main);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  font-size: 0.82rem;
}
.inline-edit-number {
  text-align: right;
  width: 110px;
  font-family: 'JetBrains Mono', Consolas, monospace;
}
.inline-edit-input:focus,
.inline-edit-number:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.inline-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.inline-add-row input {
  flex: 1;
}

.manual-cash-details summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #60a5fa;
  padding: 0.4rem 0;
}

.badge-total {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Upload Dropzone */
.upload-dropzone {
  border: 1.5px dashed rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.04);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-top: 0.8rem;
}
.dropzone-icon {
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}

/* Steps Guide */
.steps-guide {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.step-item {
  display: flex;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem;
  border-radius: var(--radius-md);
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #04130d;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-item h4 {
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}
.step-item p {
  font-size: 0.79rem;
  color: var(--text-muted);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  width: 100%;
  max-width: 660px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
}

.pin-lock-card {
  max-width: 360px;
  text-align: center;
}
.lock-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.pin-input-center {
  text-align: center;
  font-size: 1.35rem !important;
  letter-spacing: 0.35em;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-footer-full {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
}

/* Chart */
.chart-wrapper {
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}
.chart-legend {
  display: flex;
  gap: 1.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
}
.evo-svg {
  width: 100%;
  height: auto;
}

.finishing-cuotas-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.finishing-cuotas-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(16, 185, 129, 0.06);
  border-radius: 8px;
  font-size: 0.8rem;
}

/* Utilities */
.text-right { text-align: right !important; }
.font-mono { font-family: 'JetBrains Mono', Consolas, monospace; }
.font-bold { font-weight: 700; }
.text-accent { color: #34d399; }
.text-success { color: #34d399; }
.text-danger { color: #f87171; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.85rem; }

/* Toasts */
#toast-container {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: #1e293b;
  border-left: 4px solid var(--accent-primary);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-error { border-left-color: var(--danger); }
.toast-info { border-left-color: var(--accent-blue); }
.toast-hide { opacity: 0; transform: translateY(10px); }

body.vault-locked .top-navbar, body.vault-locked .nav-tabs-bar { display: none !important; }
