/* IBM Plex Sans y Mono, servidas desde el propio binario (licencia OFL,
   fonts/LICENSE-OFL.txt). Es la fuente de la marca MOVALTECH. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-sans-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  --store: #0f766e;
  --ink: #16141a;
  --muted: #6b6772;
  --line: #e6e3ea;
  --bg: #f6f5f8;
  --card: #fff;
  --ok: #0f7b3f;
  --ok-bg: #e7f6ed;
  --warn: #8a5a00;
  --warn-bg: #fff6dd;
  --err: #b42318;
  --err-bg: #fdecea;
  --radius: 14px;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
h1 { font-size: 1.5rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
a { color: var(--store); }
code { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: .92em; word-break: break-all; }
.muted { color: var(--muted); }
.grow { flex: 1; }
[hidden] { display: none !important; }

/* Marca: MOVAL en negrita, PAY normal, pegados. */
.brand { font-weight: 400; white-space: nowrap; }
.brand b { font-weight: 700; }

/* Nombres de red como texto (sin logos). */
.net { font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.net-breb {
  background: linear-gradient(90deg, #12b8f0, #1ee38a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.net-nequi { color: #2a0b3a; }

main.narrow { max-width: 480px; margin: 0 auto; padding: 16px; }
main.wide { max-width: 1080px; margin: 0 auto; padding: 16px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px;
}
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
/* Dentro de un .stack el espacio lo pone el gap: sin márgenes propios que se
   sumen (evita huecos dobles bajo los títulos y entre párrafos). */
.stack > h2, .stack > h3, .stack > p { margin: 0; }
.stack > h3 { margin-top: 8px; }
/* Acciones o formularios justo después de una tabla: con aire. */
.table + .actions, .table + form, .table + p { margin-top: 14px; }
/* Productos dentro de la tarjeta "Orden" del panel: separados de los datos. */
.facts + .items { margin: 14px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); border-bottom: 0; }
.facts + .items li:last-child { padding-bottom: 0; }
/* Los botones de formulario conservan su ancho; solo .block ocupa todo. */
.stack > .btn:not(.block), .stack > button.btn:not(.block) { align-self: flex-start; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 > .card { margin-bottom: 0; } main.wide > .grid2 { margin-bottom: 14px; } }

label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
label .muted, label small { font-weight: 400; }
label > .lbl { display: block; }
input, select, textarea {
  font: inherit; padding: 11px 12px; border: 1px solid #cfcbd6; border-radius: 10px;
  background: #fff; color: inherit; min-height: 44px; width: 100%;
}
input[type=color] { padding: 4px; height: 44px; }
input[type=file] { padding: 9px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--store); outline-offset: 1px; }

.btn {
  font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #cfcbd6;
  background: #fff; color: var(--ink); cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--store); border-color: var(--store); color: #fff; }
.btn.danger { color: var(--err); border-color: #f0b8b2; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: .88rem; }
.btn-link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 8px; }
.btn.copied { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }

.notice { border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.notice p { margin: 0 0 8px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.err { background: var(--err-bg); color: var(--err); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }

.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: #efedf2; color: var(--muted); white-space: nowrap; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.st.status-reportada { background: var(--warn-bg); color: var(--warn); }
.st.status-aprobada { background: var(--ok-bg); color: var(--ok); }
.st.status-rechazada, .st.status-cancelada { background: var(--err-bg); color: var(--err); }
.hook-entregado { background: var(--ok-bg); color: var(--ok); }
.hook-fallido { background: var(--err-bg); color: var(--err); }
.hook-pendiente { background: var(--warn-bg); color: var(--warn); }
.code { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; letter-spacing: .06em; }

/* ---- Checkout ----
   Escritorio: dos columnas, resumen a la izquierda (fondo del color de la
   tienda) y pago a la derecha, como Stripe/Wompi. Celular: una columna. */
.is-public { background: var(--bg); }
main.checkout { max-width: 1040px; margin: 0 auto; padding: 24px 16px; }
.co {
  display: grid; grid-template-columns: 1fr; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(22, 20, 26, .04), 0 8px 28px rgba(22, 20, 26, .06);
}
@media (min-width: 761px) {
  main.checkout { padding: 48px 24px; }
  .co { grid-template-columns: minmax(300px, 380px) 1fr; min-height: 560px; }
}

.co-summary {
  padding: 22px 20px; background: color-mix(in srgb, var(--store) 7%, #fff);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 761px) {
  .co-summary { padding: 36px 32px; border-bottom: 0; border-right: 1px solid var(--line); }
}
/* Encabezado de la tienda: logo (ícono + nombre, o logo ancho solo) o, sin
   logo, el nombre en texto. */
.co-store { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; min-height: 40px; }
.co-store-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.co-logo { height: 44px; width: auto; max-width: 64px; object-fit: contain; border-radius: 10px; flex: none; }
.co-store.wide .co-logo { height: 40px; max-width: 220px; border-radius: 0; }

.logo-field { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.logo-field > .stack { flex: 1; min-width: 240px; }
.logo-preview {
  width: 96px; height: 96px; border: 1px dashed var(--line); border-radius: 12px; background: #fff;
  display: grid; place-items: center; padding: 8px; flex: none;
}
.logo-preview.wide { width: 220px; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.co-total-label { color: var(--muted); font-size: .9rem; }
.co-total { font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 2px 0 8px; }
@media (min-width: 761px) { .co-total { font-size: 2.8rem; } }
.co-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .92rem; }
.co-meta .code { color: var(--ink); }
.co-timer b { color: var(--ink); font-variant-numeric: tabular-nums; }

.co-items { margin-top: 18px; border-top: 1px solid color-mix(in srgb, var(--store) 18%, var(--line)); padding-top: 12px; }
.co-items-title { font-weight: 600; font-size: .95rem; }
.co-items ul { list-style: none; margin: 10px 0 0; padding: 0; }
.co-items li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .95rem; }
.co-items .co-items-total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; }

.co-main { padding: 22px 20px 26px; }
@media (min-width: 761px) { .co-main { padding: 36px 40px; } }

/* Paso 1 · Paga */
.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 20px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.segmented button, .segmented label > span {
  font: inherit; cursor: pointer; border: 0; background: transparent; border-radius: 9px;
  padding: 9px 12px; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--ink);
}
.segmented .net { font-size: 1.05rem; }
.segmented small { color: var(--muted); font-size: .76rem; }
.segmented button[aria-selected=true], .segmented input:checked + span {
  background: #fff; box-shadow: 0 1px 3px rgba(22, 20, 26, .12), 0 0 0 1px var(--line);
}
.segmented button:focus-visible, .segmented input:focus-visible + span { outline: 2px solid var(--store); outline-offset: 1px; }
.segmented-radio { border: 1px solid var(--line); margin: 0; }
.segmented-radio legend { font-weight: 600; font-size: .95rem; padding: 0 4px; }
.segmented-radio label { display: block; font-weight: 400; margin: 0; }
.segmented-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.pay-single { font-size: 1.25rem; margin-bottom: 16px; }
.pay-single small { font-size: .85rem; font-weight: 400; }

.pay-grid { display: grid; gap: 18px; }
@media (min-width: 761px) {
  .pay-grid.has-qr { grid-template-columns: 180px 1fr; align-items: start; gap: 26px; }
}
.pay-qr summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.pay-qr[open] summary { margin-bottom: 10px; }
.pay-qr img { display: block; width: 180px; height: 180px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pay-qr small { display: block; margin-top: 6px; font-size: .8rem; }
@media (min-width: 761px) {
  .pay-qr summary { display: none; }
  .pay-grid.has-qr .pay-qr { order: -1; }
}
@media (max-width: 760px) { .pay-grid { gap: 14px; } .pay-qr { order: 2; } .pay-qr[open] img { margin: 0 auto; } .pay-qr small { text-align: center; } }

.pay-label { color: var(--muted); font-size: .86rem; margin-top: 12px; }
.pay-label:first-child { margin-top: 0; }
.pay-copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.pay-copy b { font-size: 1.2rem; letter-spacing: .01em; word-break: break-all; }
.pay-copy-amount b { font-size: 1.9rem; letter-spacing: -.02em; }
.pay-holder { margin-top: 12px; color: var(--muted); font-size: .92rem; }
.pay-holder b { color: var(--ink); }
.pay-how { color: var(--muted); font-size: .9rem; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
/* Cambio al otro medio: visible, con el nombre de la red en su estilo. */
.link-switch {
  font: inherit; width: 100%; margin-top: 16px; padding: 12px 16px; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px;
}
.link-switch > span:first-child { font-size: 1rem; font-weight: 600; }
.link-switch .net { font-size: 1.1rem; }
.link-switch small { grid-column: 1; color: var(--muted); font-size: .82rem; }
.link-switch-arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 1.2rem; color: var(--muted); transition: transform .15s; }
.link-switch:hover { border-color: var(--ink); }
.link-switch:hover .link-switch-arrow { transform: translateX(3px); color: var(--ink); }
.link-switch:focus-visible { outline: 2px solid var(--store); outline-offset: 2px; }

/* Botón principal: fijo abajo en celular, para tenerlo siempre a la mano. */
.co-cta { margin-top: 22px; }
@media (max-width: 760px) {
  .co-cta {
    position: sticky; bottom: 0; z-index: 5; margin: 22px -20px -26px; padding: 12px 20px 14px;
    background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0));
  }
}

/* Paso 2 · Confirma */
.report { gap: 14px; }
.report-title { font-size: 1.25rem; margin: 0; outline: none; }
.link-back { font: inherit; font-size: .9rem; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; justify-self: start; text-align: left; }
.link-back:hover { color: var(--ink); }
.paid-with { margin: -4px 0 0; color: var(--muted); }
.paid-with b { color: var(--ink); }
.co-extra summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.co-extra .stack { margin-top: 12px; }
.btn.block { width: 100%; min-height: 50px; font-size: 1.02rem; }
.center { text-align: center; }

.co-state { text-align: center; padding: 28px 0; }
.co-state.compact { padding: 0 0 18px; text-align: left; }
.co-state h1 { font-size: 1.35rem; }

/* Compartidos con el panel */
.items { list-style: none; padding: 0; margin: 0 0 12px; border-bottom: 1px dashed var(--line); }
.items li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0 8px; }
.big-value { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; }
.big-value .url { font-size: .95rem; font-weight: 500; word-break: break-all; }

.state-icon { width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 14px; display: grid; place-items: center; }
.state-icon svg { width: 34px; height: 34px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.state-icon.ok { background: var(--ok); }
.state-icon.ok svg { stroke: #fff; }
.state-icon.bad { background: var(--err-bg); box-shadow: inset 0 0 0 3px var(--err); }
.state-icon.bad svg { stroke: var(--err); width: 28px; height: 28px; }
.state-icon.wait { border: 4px solid var(--line); border-top-color: var(--store); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .state-icon.wait { animation: none; } }

.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 8px 16px 28px; }

/* ---- Panel ---- */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 16px;
  background: #16141a; color: #fff;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar-brand { font-size: 1.15rem; }
.topbar-nav { display: flex; gap: 4px 14px; flex-wrap: wrap; flex: 1; }
.topbar-nav a { opacity: .8; padding: 6px 0; }
.topbar-nav a:hover { opacity: 1; }

.login { max-width: 380px; margin: 8vh auto 0; }
.login-brand { font-size: 1.8rem; text-align: center; margin-bottom: 1.2rem; }

.search { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.search label { min-width: 150px; }
.count { color: var(--muted); font-weight: 500; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none;
}
.row:hover { border-color: var(--store); }
.row.match { border-color: var(--ok); background: var(--ok-bg); }
.near .row { background: var(--warn-bg); }
.row .amt { text-align: right; }
.row .bank, .row .when { color: var(--muted); font-size: .9rem; }
.row .when { grid-column: 2 / 4; }
@media (min-width: 760px) {
  .row { grid-template-columns: 90px 1fr 110px 150px 200px auto auto; }
  .row .when { grid-column: auto; }
}

.detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-head h1 { margin: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts .amt { font-weight: 700; font-size: 1.2rem; }
.share-body { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.share-body img { border: 1px solid var(--line); border-radius: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Formulario en fila: campos que se acomodan al ancho de la tarjeta. */
.form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .form-row { grid-template-columns: 200px 200px 1fr; align-items: end; } }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filters a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.filters a.on { border-color: var(--store); color: var(--store); }
.card:has(.table) { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; }
.table .num { text-align: right; }

.accounts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.account { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.account.off { opacity: .55; }
.qr-thumb { border: 1px solid var(--line); border-radius: 6px; image-rendering: pixelated; }
.add-account { border-top: 1px solid var(--line); margin-top: 12px; }

/* ---- Resumen y movimientos ---- */
:root {
  --series-1: #2a78d6; /* Nequi y columnas: un solo tono */
  --series-2: #eb6834; /* Bre-B */
  --series-none: #b9b5c0;
  --grid: #ebe8ef;
  --axis: #77737d;
}
.periodbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.presets, .range { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.range input { width: auto; min-height: 38px; padding: 6px 10px; }
.chip { font: inherit; font-size: .9rem; min-height: 38px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip.on { border-color: var(--store); color: var(--store); font-weight: 600; }

.hero-label { color: var(--muted); }
.hero-value { font-size: 3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.delta { font-weight: 600; font-size: .95rem; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--err); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 14px; }
.tiles .card { margin-bottom: 0; }
.tile-label { color: var(--muted); font-size: .9rem; }
.tile-value { font-size: 1.5rem; font-weight: 600; }
.tile.link { color: inherit; text-decoration: none; }
.tile.link:hover { border-color: var(--store); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.small { font-size: .85rem; }

.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--axis); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .col { fill: var(--series-1); }
.chart .hit { fill: transparent; }
.chart .bar { outline: none; cursor: default; }
.chart .bar:hover .hit, .chart .bar:focus-visible .hit { fill: rgba(42, 120, 214, .07); }
.chart .bar:hover .col, .chart .bar:focus-visible .col { fill: #1f63b6; }
.chart-tip {
  position: absolute; pointer-events: none; transform: translate(-50%, -100%);
  background: #16141a; color: #fff; font-size: .85rem; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
}
.table-view { margin-top: 10px; }
.table-view summary { cursor: pointer; color: var(--muted); font-size: .9rem; }

.split { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.seg { flex-basis: 0; min-width: 2px; }
.ch-nequi { background: var(--series-1); }
.ch-breb { background: var(--series-2); }
.ch-none { background: var(--series-none); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend .share { min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }

/* Una sola grilla para toda la lista: todas las barras arrancan en la misma x. */
.hbars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content 1fr max-content; gap: 10px 12px; align-items: center; }
.hbars li { display: contents; }
.hb-track { height: 10px; }
.hb-fill { display: block; height: 100%; min-width: 2px; background: var(--series-1); border-radius: 0 4px 4px 0; }
.hb-value { font-variant-numeric: tabular-nums; white-space: nowrap; }

.ledger .amt { font-weight: 600; }
.ledger .amt.out { color: var(--muted); }
.kind-cobro { background: var(--ok-bg); color: var(--ok); }
.kind-pago { background: #e8f0fb; color: #1f5fae; }
.kind-ajuste { background: var(--warn-bg); color: var(--warn); }
@media (max-width: 560px) {
  .hero-value { font-size: 2.4rem; }
}
/* El SVG se encoge con la pantalla: en celular el texto del eje se agranda en
   unidades del viewBox para quedar en ~11 px reales. */
@media (max-width: 600px) {
  .chart .axis { font-size: 19px; }
}

/* ---- Modo prueba (sandbox) ---- */
:root { --test: #b45309; --test-bg: #fff4e5; }
.pill.test { background: var(--test-bg); color: var(--test); }
.test-strip { background: var(--test-bg); color: var(--test); padding: 8px 16px; font-size: .9rem; border-bottom: 1px solid #f5d9b3; }
.test-strip code { color: inherit; }
.test-banner {
  margin: 0 0 14px; padding: 10px 16px; border-radius: 12px;
  background: var(--test-bg); color: var(--test); border: 1px dashed #e9b97a; font-size: .95rem;
}
.sim { border: 1px dashed #e9b97a; background: #fffaf2; border-radius: 12px; padding: 16px; }
.co-main > .sim { margin-bottom: 26px; }

.mode-switch button {
  font: inherit; font-size: .88rem; color: #fff; opacity: .85; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px;
}
.mode-switch button:hover { opacity: 1; }
.switch-track { width: 32px; height: 18px; border-radius: 99px; background: #55505d; position: relative; transition: background .15s; }
.switch-dot { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.mode-switch button[aria-checked=true] { opacity: 1; }
.mode-switch button[aria-checked=true] .switch-track { background: #f59e0b; }
.mode-switch button[aria-checked=true] .switch-dot { left: 16px; }

/* ---- Configuración ---- */
/* Sin overflow: el subrayado de la pestaña activa (margin -1px) hacía que el
   navegador mostrara una barra de desplazamiento. En pantallas angostas las
   pestañas pasan a la línea siguiente. */
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 18px; }
.subtabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.subtabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.card-head > p { margin: 0; }
main.wide > .card-head { margin-bottom: 14px; flex-wrap: wrap; }

.acct.active { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.acct-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.acct-head h2 { margin: 0 0 6px; }
.acct-body { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.acct-qrs { display: flex; gap: 14px; }
.acct-qrs figure { margin: 0; text-align: center; font-size: .82rem; color: var(--muted); }
.acct-qrs img { display: block; border: 1px solid var(--line); border-radius: 8px; image-rendering: pixelated; background: #fff; margin-bottom: 4px; }
.qr-empty { width: 96px; height: 96px; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; margin-bottom: 4px; }
.qr-drop { border: 1px dashed #cfcbd6; border-radius: 12px; padding: 14px; background: var(--bg); display: grid; gap: 12px; }
label.inline { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; font-weight: 400; }
label.inline input { width: auto; min-height: 0; }

/* ---- Campanita de avisos ---- */
.bell { position: relative; }
.bell summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; position: relative; color: #fff; }
.bell summary::-webkit-details-marker { display: none; }
.bell summary:hover, .bell[open] summary { background: rgba(255, 255, 255, .12); }
.bell svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell-count {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: #e5484d; color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
  box-shadow: 0 0 0 2px #16141a;
}
.bell-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 24px)); z-index: 30;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(22, 20, 26, .18); overflow: hidden;
}
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bell-head .btn-link { color: var(--store); font-size: .85rem; padding: 0; }
.bell-item { display: grid; gap: 2px; padding: 11px 14px 11px 26px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); position: relative; }
.bell-item:hover { background: var(--bg); }
.bell-item b { font-size: .95rem; }
.bell-item span { font-size: .88rem; color: var(--muted); }
.bell-item small { font-size: .78rem; color: var(--muted); }
.bell-item.unread::before { content: ""; position: absolute; left: 11px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
.bell-item:not(.unread) b { font-weight: 500; }
.bell-empty { padding: 16px 14px; margin: 0; font-size: .9rem; }
.bell-all { display: block; text-align: center; padding: 11px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.notif-list { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.notif-list .bell-item:last-child { border-bottom: 0; }

.toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; max-width: 340px; display: grid; gap: 2px;
  background: #16141a; color: #fff; padding: 12px 16px; border-radius: 12px; text-decoration: none;
  box-shadow: 0 12px 32px rgba(22, 20, 26, .3); animation: toast-in .2s ease-out;
}
.toast span { color: rgba(255, 255, 255, .75); font-size: .9rem; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---- Firma de MOVALPAY (solo el texto; la "M" es solo el favicon) ---- */
.foot { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.foot .brand { font-size: .95rem; color: var(--ink); }
.notify-note { margin: 0; }
.toggle { flex-direction: row !important; align-items: flex-start; gap: 8px; }
.toggle input { margin-top: 3px; }

/* Versión del binario (pie del panel y login). */
.app-version { text-align: center; color: var(--muted); font-size: .78rem; padding: 4px 16px 22px; margin: 0; }
.login .app-version { padding: 14px 0 0; }
