/* ==========================================================================
   Mis Cuentas por Pagar — PWA (recordatorios de cuentas mensuales)
   Look PREMIUM oscuro (fintech). Suite hermana de la app de pasajes.
   CSS puro · mobile-first · sin frameworks · sin imágenes · stack del sistema
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --brand: #7c5cff;
  --brand-2: #9b87ff;
  --brand-soft: rgba(124, 92, 255, .14);
  --brand-soft-border: rgba(124, 92, 255, .30);

  /* Superficies */
  --bg: #0b0c10;
  --card: #15161d;
  --card-2: #1d1e27;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .12);

  /* Texto */
  --ink: #f2f2f7;
  --muted: #8a8a99;

  /* Semánticos */
  --income: #2dc896;
  --income-soft: rgba(45, 200, 150, .14);
  --expense: #e95459;
  --expense-soft: rgba(233, 84, 89, .14);
  --warn: #e0a23a;
  --warn-soft: rgba(224, 162, 58, .13);

  /* Radios */
  --r: 16px;
  --r-sm: 10px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Sombras suaves difusas */
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
  --shadow-brand: 0 10px 28px rgba(124, 92, 255, .32);

  /* Tipografía system stack */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  /* Layout */
  --maxw: 780px;
  --gap: 14px;
  --pad: 16px;
}

/* ---------- Reset mínimo ---------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  /* halo violeta muy sutil arriba */
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(124, 92, 255, .10), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1, h2, p, ol, li { margin: 0; }

button { font-family: inherit; }

[hidden] { display: none !important; }

body.modal-open { overflow: hidden; }

/* ---------- Foco visible ---------- */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand);
  border-radius: var(--r-sm);
}

/* ==========================================================================
   APP shell
   ========================================================================== */
#app {
  width: 100%;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--pad);
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(124, 92, 255, .07), rgba(11, 12, 16, .9));
  background-color: rgba(11, 12, 16, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.topbar-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  border-radius: 13px;
}

.brand-text { min-width: 0; }

.brand-text h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Icon button ---------- */
.icon-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  background: var(--card-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.icon-btn:hover { background: var(--brand-soft); border-color: var(--brand-soft-border); }
.icon-btn:active { transform: scale(.94); }

/* ==========================================================================
   Card base
   ========================================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Tarjeta de notificaciones (banner clave)
   ========================================================================== */
.notif-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-color: var(--brand-soft-border);
  background:
    linear-gradient(180deg, var(--brand-soft), transparent 70%),
    var(--card);
  box-shadow: var(--shadow);
}

/* acento lateral */
.notif-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand);
}

.notif-card.notif-ok {
  border-color: rgba(45, 200, 150, .32);
  background: linear-gradient(180deg, var(--income-soft), transparent 70%), var(--card);
}
.notif-card.notif-ok::before { background: var(--income); }

.notif-card.notif-warn {
  border-color: rgba(224, 162, 58, .34);
  background: linear-gradient(180deg, var(--warn-soft), transparent 70%), var(--card);
}
.notif-card.notif-warn::before { background: var(--warn); }

.notif-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notif-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  border-radius: 14px;
}

.notif-ok .notif-icon { background: var(--income-soft); border-color: rgba(45, 200, 150, .32); }
.notif-warn .notif-icon { background: var(--warn-soft); border-color: rgba(224, 162, 58, .34); }

.notif-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.notif-text strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.notif-text span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  background: var(--card-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  text-align: center;
  transition: background .15s ease, border-color .15s ease, transform .1s ease,
    box-shadow .15s ease, opacity .15s ease;
}

.btn:active { transform: scale(.98); }

.btn:disabled,
.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* Primario: violeta gradiente */
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { filter: brightness(.96); }

/* Ghost */
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--card-2); }

/* Bloque full-width */
.btn-block { width: 100%; }

/* Danger ghost */
.btn-danger-ghost {
  background: transparent;
  color: var(--expense);
  border-color: rgba(233, 84, 89, .35);
}
.btn-danger-ghost:hover { background: var(--expense-soft); }

/* Agregar cuenta — destacado */
.btn-add {
  min-height: 50px;
  font-size: 16px;
  letter-spacing: .01em;
}

/* ==========================================================================
   KPI grid
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.kpi {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-value {
  font-size: clamp(18px, 5.4vw, 26px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.kpi-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* KPI primaria — tinte violeta sutil (no bloque plano) */
.kpi.kpi-primary {
  border-color: var(--brand-soft-border);
  background:
    linear-gradient(160deg, var(--brand-soft), transparent 65%),
    var(--card);
}
.kpi.kpi-primary .kpi-label { color: var(--brand-2); }

/* Colores de monto */
.val-income { color: var(--income); }
.val-expense { color: var(--expense); }

/* ==========================================================================
   Lista de cuentas
   ========================================================================== */
.list-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  flex: 1 1 auto;
}

#searchInput {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 260px;
  margin-left: auto;
}

/* Lista contenedor */
.cuentas-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Tarjeta de cuenta ---------- */
.cuenta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: background .15s ease, border-color .15s ease, opacity .2s ease;
}

.cuenta-card:hover {
  border-color: var(--line-strong);
  background: #20212c;
}

/* Vence hoy — resaltada con acento */
.cuenta-card.due {
  border-color: rgba(233, 84, 89, .4);
  background:
    linear-gradient(135deg, var(--expense-soft), transparent 60%),
    var(--card-2);
}

/* Pagada — atenuada */
.cuenta-card.paid {
  opacity: .62;
  border-color: rgba(45, 200, 150, .26);
}

/* Badge día (izquierda) */
.cuenta-day {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  border-radius: 12px;
  text-align: center;
}

.cuenta-card.due .cuenta-day {
  background: var(--expense-soft);
  border-color: rgba(233, 84, 89, .4);
}

.cuenta-card.paid .cuenta-day {
  background: var(--income-soft);
  border-color: rgba(45, 200, 150, .3);
}

.cd-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-2);
  font-variant-numeric: tabular-nums;
}
.cuenta-card.due .cd-num { color: var(--expense); }
.cuenta-card.paid .cd-num { color: var(--income); }

.cd-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 2px;
}

/* Info central */
.cuenta-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cuenta-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cuenta-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}

.cuenta-nota {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Pills de estado dentro de meta */
.due-today,
.due-soon,
.paid-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.due-today {
  color: var(--expense);
  background: var(--expense-soft);
  border: 1px solid rgba(233, 84, 89, .3);
}

.due-soon {
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid rgba(224, 162, 58, .3);
}

.paid-badge {
  color: var(--income);
  background: var(--income-soft);
  border: 1px solid rgba(45, 200, 150, .3);
}

/* Lado derecho */
.cuenta-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.cuenta-monto {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.1;
}

/* Pill marcar pagado */
.pay-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease,
    transform .1s ease;
}
.pay-toggle:hover { background: var(--card); border-color: var(--brand-soft-border); color: var(--ink); }
.pay-toggle:active { transform: scale(.96); }

.pay-toggle.on {
  color: var(--income);
  background: var(--income-soft);
  border-color: rgba(45, 200, 150, .4);
}
.pay-toggle.on:hover { filter: brightness(1.08); }

/* Botón editar (✎) */
.cuenta-edit {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.cuenta-edit:hover {
  color: var(--brand-2);
  background: var(--brand-soft);
  border-color: var(--brand-soft-border);
}
.cuenta-edit:active { transform: scale(.92); }

/* ==========================================================================
   Estado vacío
   ========================================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 32px 16px;
}

.empty-emoji {
  font-size: 46px;
  line-height: 1;
  filter: grayscale(.15);
}

.empty-state p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 320px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-actions {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
}

.cloud-status {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cloud-status:hover { border-color: var(--line-strong); color: var(--ink); }

.cloud-status.ok {
  color: var(--income);
  background: var(--income-soft);
  border-color: rgba(45, 200, 150, .3);
}

.cloud-status.off {
  color: var(--expense);
  background: var(--expense-soft);
  border-color: rgba(233, 84, 89, .3);
}

/* ==========================================================================
   Modales
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFade .18s ease;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  width: 100%;
  max-width: var(--maxw);
  max-height: calc(100vh - env(safe-area-inset-top) - 24px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow-lg);
  padding: 18px var(--pad) calc(18px + env(safe-area-inset-bottom));
  animation: modalSlide .22s cubic-bezier(.2, .8, .2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-content.modal-sm { max-width: 480px; }

@keyframes modalSlide {
  from { transform: translateY(28px); opacity: .4; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.modal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.foot-spacer { flex: 1 1 auto; }

/* ==========================================================================
   Formulario de edición
   ========================================================================== */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edit-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.lbl-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.edit-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.edit-row label { gap: 7px; }

/* Inputs y selects */
input[type="text"],
input[type="number"],
input[type="search"],
select {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 16px; /* evita zoom iOS */
  font-weight: 500;
  color: var(--ink);
  background: var(--card-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input::placeholder { color: var(--muted); opacity: .85; }

input[type="text"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

input[type="number"] { font-variant-numeric: tabular-nums; }

input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Select con caret propio */
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select option { color: #15161d; background: #fff; }

/* ==========================================================================
   Info list / hint
   ========================================================================== */
.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: info;
  padding: 0;
}

.info-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.info-list b { font-weight: 700; color: var(--brand-2); }

.hint {
  margin-top: 16px;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 200;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #2a2b36;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast.error {
  background: var(--expense);
  border-color: rgba(233, 84, 89, .6);
}

/* ==========================================================================
   Responsive — ≥640px (tablet / desktop)
   ========================================================================== */
@media (min-width: 640px) {
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .modal {
    align-items: center;
    padding: 24px;
  }
  .modal-content {
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    padding: 22px;
    max-height: calc(100vh - 48px);
  }
  @keyframes modalSlide {
    from { transform: translateY(12px) scale(.98); opacity: .4; }
    to { transform: translateY(0) scale(1); opacity: 1; }
  }
}

/* ==========================================================================
   Tema claro
   ========================================================================== */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f8;
    --card: #ffffff;
    --card-2: #f0f1f5;
    --line: rgba(0, 0, 0, .08);
    --line-strong: rgba(0, 0, 0, .14);
    --ink: #15161d;
    --muted: #6b6b78;

    --brand-soft: rgba(124, 92, 255, .12);
    --income-soft: rgba(45, 200, 150, .14);
    --expense-soft: rgba(233, 84, 89, .12);
    --warn-soft: rgba(224, 162, 58, .15);

    --shadow: 0 8px 24px rgba(20, 22, 40, .10);
    --shadow-sm: 0 1px 4px rgba(20, 22, 40, .07);
    --shadow-lg: 0 18px 48px rgba(20, 22, 40, .18);
    --shadow-brand: 0 10px 26px rgba(124, 92, 255, .28);
  }

  body {
    background-image:
      radial-gradient(120% 60% at 50% -10%, rgba(124, 92, 255, .08), transparent 60%);
  }

  .topbar {
    background-color: rgba(244, 245, 248, .85);
    background-image: linear-gradient(180deg, rgba(124, 92, 255, .05), rgba(244, 245, 248, .9));
  }

  .icon-btn { background: var(--card-2); }

  .cuenta-card:hover { background: #eceef4; }

  .toast { background: #15161d; color: #fff; }

  select option { color: #15161d; background: #fff; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
