/* QvaCodex · tema "azul marino": cabecera con degradado, tarjetas de acción y barra inferior.
   Se carga DESPUÉS de styles.css. Para volver al diseño anterior basta con quitar el <link> de theme.css en index.html. */
:root {
  --bg: #eef2f9;
  --bg-grad-1: rgba(31, 107, 255, .10);
  --bg-grad-2: rgba(109, 74, 240, .08);
  --card: rgba(255, 255, 255, .96);
  --card-solid: #ffffff;
  --fill: rgba(31, 70, 160, .07);
  --fill-strong: rgba(31, 70, 160, .13);
  --line: rgba(20, 40, 90, .09);
  --text: #0c1730;
  --muted: #56658a;
  --accent: #1f6bff;
  --accent-2: #6d4af0;
  --shadow: 0 1px 2px rgba(15, 35, 90, .05), 0 10px 30px rgba(15, 35, 90, .08);
  --radius: 20px;
  --navy-1: #0a1a44;
  --navy-2: #13357f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060b18;
    --bg-grad-1: rgba(31, 107, 255, .18);
    --bg-grad-2: rgba(109, 74, 240, .14);
    --card: rgba(14, 23, 48, .96);
    --card-solid: #0e1730;
    --fill: rgba(120, 150, 255, .10);
    --fill-strong: rgba(120, 150, 255, .18);
    --line: rgba(120, 150, 255, .14);
    --text: #eef2ff;
    --muted: #8d9bbd;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 36px rgba(0, 0, 0, .45);
    --navy-1: #07122e;
    --navy-2: #0f2a6b;
  }
}
:root[data-theme="dark"] {
  --bg: #060b18;
  --bg-grad-1: rgba(31, 107, 255, .18);
  --bg-grad-2: rgba(109, 74, 240, .14);
  --card: rgba(14, 23, 48, .96);
  --card-solid: #0e1730;
  --fill: rgba(120, 150, 255, .10);
  --fill-strong: rgba(120, 150, 255, .18);
  --line: rgba(120, 150, 255, .14);
  --text: #eef2ff;
  --muted: #8d9bbd;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 36px rgba(0, 0, 0, .45);
  --navy-1: #07122e;
  --navy-2: #0f2a6b;
}

html { scroll-behavior: smooth; }
main { padding-bottom: 20px; }
#home, #buy-card, #orders-card, #referral, #ledger-card { scroll-margin-top: 78px; }

/* ---------- portal de acceso (entrar / crear cuenta / recuperar / verificar) ----------
   Una sola tarjeta sobria: título, pestañas, campos con etiqueta y un botón principal. */
.auth { max-width: 424px; margin: clamp(8px, 6vh, 56px) auto 28px; padding: 36px 32px 26px; border-radius: 24px; }
.auth h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.auth .muted, .auth-sub { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.auth-sub { margin: 8px auto 0; max-width: 36ch; text-wrap: balance; }
.auth .hero-icon { width: 60px; height: 60px; margin-bottom: 18px; border-radius: 18px; animation: none; box-shadow: 0 8px 20px rgba(31, 107, 255, .28); }
.auth .hero-icon svg { width: 28px; height: 28px; }
.hero-logo { margin-bottom: 12px; }

#auth .tabs { margin: 26px 0 24px; padding: 4px; border-radius: 12px; }
#auth .tabs::before { top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; box-shadow: 0 1px 3px rgba(10, 25, 70, .16); }
#auth .tab { padding: 9px 8px; font-size: 14px; border-radius: 9px; }
#auth .tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

#auth .field { margin-bottom: 16px; }
#auth .field label { display: block; margin: 0 0 6px 2px; font-size: 13px; font-weight: 600; color: var(--text); }
#auth input[type=email], #auth input[type=password], #auth input[type=text] {
  margin: 0; padding: 13px 14px; border-radius: 12px; font-size: 16px;
  background: var(--fill); border: 1px solid var(--line);
}
#auth .pw input { padding-right: 50px; }
#auth input:focus { background: var(--card-solid); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 107, 255, .16); }
#auth input.bad-field { border-color: var(--danger); }
#auth input.ok-field { border-color: var(--ok); }
#auth .eye { top: 50%; right: 5px; margin-top: -19px; }
#auth .field-note { margin: 6px 2px 0; }

/* recordarme + olvidé la contraseña, en una sola fila */
#auth .opts { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 22px; }
#auth .opts[hidden] { display: none; }
#auth .opts .switch { margin: 0; gap: 10px; font-size: 14px; color: var(--muted); }
#auth .opts .switch i { width: 40px; height: 24px; }
#auth .opts .switch i::after { top: 2px; left: 2px; width: 20px; height: 20px; }
#auth .opts .switch:active i::after { width: 24px; }
#auth .opts .switch input:checked + i::after { transform: translateX(16px); }
#auth .opts .switch:active input:checked + i::after { transform: translateX(12px); }
#auth .opts .forgot { margin: 0; text-align: right; }
#auth .opts .link { padding: 4px 0; font-size: 13.5px; font-weight: 600; }
#auth .opts .link:hover { text-decoration: underline; }

/* código de referido: plegado para no ocupar sitio */
.ref-details { margin: -4px 0 20px; }
.ref-details summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--accent); padding: 4px 2px; }
.ref-details summary::-webkit-details-marker { display: none; }
.ref-details summary::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.ref-details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.ref-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ref-details .field { margin: 8px 0 0; }
.ref-details[hidden] { display: none; }

#auth form > .btn.primary { min-height: 50px; padding: 13px; border-radius: 12px; font-size: 16px; letter-spacing: .005em; box-shadow: 0 6px 16px rgba(31, 107, 255, .28); }
#auth form > .btn.primary:hover { filter: brightness(1.05); }
#auth .legal-note { margin: 16px 4px 0; }

#auth .ref-banner { margin: 20px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; }

/* pie de la tarjeta: garantías, estado del servicio y enlaces, todo en gris discreto */
.auth-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.auth-trust li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.auth-trust li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .75; }
#auth .sys-status { margin: 14px auto 0; padding: 0; background: none; font-size: 12px; font-weight: 500; }
#auth .svc-links { margin-top: 12px; padding-top: 0; border-top: 0; gap: 2px 14px; font-size: 12.5px; }
#auth .svc-links span { margin-bottom: 2px; }
#auth .svc-links a { color: var(--muted); font-weight: 500; }
#auth .svc-links a:hover { color: var(--accent); }
/* idioma en la pantalla de entrada: tres botones discretos al pie */
.auth-lang { display: flex; justify-content: center; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: .5px solid var(--line); }
.auth-lang button, .auth-lang a { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 500; padding: 6px 11px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: background .2s, color .2s; }
.auth-lang button:hover, .auth-lang a:hover { color: var(--text); }
.auth-lang button.on, .auth-lang a.on { color: var(--text); background: var(--fill); font-weight: 600; }
.doc-card .auth-lang { margin-top: 22px; }   /* páginas SEO: enlaces a la misma página en otros idiomas */

@media (max-width: 480px) {
  .auth { margin-top: 4px; padding: 28px 20px 22px; border-radius: 22px; }
  .auth h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .reg-only:not([hidden]), .login-only:not([hidden]) { animation: none; } }

/* ---------- barra superior azul marino ---------- */
.top {
  background: linear-gradient(135deg, var(--navy-1), var(--navy-2));
  border-bottom: 0; color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 6px 20px rgba(5, 15, 50, .25);
}
.brand { color: #fff; }
.brand span { color: #7db2ff; }
#userbox { color: rgba(255, 255, 255, .85); }
#userbox .muted { color: rgba(255, 255, 255, .6); }
.top .balance { background: rgba(255, 255, 255, .14); color: #fff; }
.top .wallet { background: rgba(255, 255, 255, .12); }
.top .wallet .balance { background: none; }
.top .btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.top .recharge { background: linear-gradient(145deg, #1d5df0, #3b8bff); }

/* ---------- botones ---------- */
.btn.primary { background: linear-gradient(145deg, #1d5df0, #3b8bff); box-shadow: 0 6px 18px rgba(31, 107, 255, .35); }
.card { backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--line); }

/* ---------- cabecera de bienvenida ---------- */
.hero {
  position: relative; overflow: hidden; margin-bottom: 14px; padding: 20px;
  border-radius: 26px; color: #fff;
  background:
    radial-gradient(260px 200px at 92% 8%, rgba(70, 140, 255, .55), transparent 70%),
    repeating-linear-gradient(125deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 26px),
    linear-gradient(160deg, var(--navy-1), var(--navy-2));
  box-shadow: 0 18px 40px rgba(10, 26, 68, .35);
  animation: rise .6s var(--ease) backwards;
}
.hero::after {
  content: ''; position: absolute; right: -58px; top: 18px; width: 190px; height: 190px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .10); box-shadow: 0 0 0 26px rgba(255, 255, 255, .03), 0 0 0 54px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.hero-user { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.avatar {
  flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font: 700 24px -apple-system, BlinkMacSystemFont, 'Inter', sans-serif; color: #fff;
  background: linear-gradient(145deg, #3b8bff, #6d4af0); border: 2px solid rgba(255, 255, 255, .55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}
.hero-id { min-width: 0; }
.hero h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-id p { margin: 2px 0 0; font-size: 13px; color: rgba(255, 255, 255, .7); }
.hero-wallet {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding: 14px 14px 14px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hero-wallet span { display: block; font-size: 12px; color: rgba(255, 255, 255, .72); }
.hero-wallet b { display: block; font: 700 30px/1.15 ui-monospace, 'SF Mono', 'JetBrains Mono', monospace; letter-spacing: -.03em; }
/* efecto al subir el saldo: el número brilla en verde, la tarjeta destella y flota un "+$X" */
.hero-wallet b { transform-origin: left center; transition: transform .35s var(--spring), color .35s, text-shadow .35s; }
.hero-wallet b.counting { color: #7dffb0; transform: scale(1.1); text-shadow: 0 0 22px rgba(80, 255, 160, .65); }
.hero-wallet.credited { animation: credit-flash 1.9s ease-out; }
@keyframes credit-flash {
  0% { box-shadow: 0 0 0 0 rgba(80, 255, 160, .55), inset 0 0 0 1px rgba(125, 255, 176, .8); background: rgba(80, 255, 160, .16); }
  100% { box-shadow: 0 0 0 26px rgba(80, 255, 160, 0), inset 0 0 0 1px rgba(125, 255, 176, 0); background: rgba(255, 255, 255, .09); }
}
.bal-plus {
  position: absolute; left: 18px; top: 4px; z-index: 2; pointer-events: none;
  font: 700 15px ui-monospace, 'SF Mono', 'JetBrains Mono', monospace; color: #7dffb0; text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  animation: bal-plus 2s var(--ease) forwards;
}
@keyframes bal-plus { 0% { opacity: 0; transform: translateY(14px) scale(.8); } 15% { opacity: 1; transform: translateY(0) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-wallet.credited, .bal-plus { animation: none; } .hero-wallet b.counting { transform: none; } }
.hero-recharge {
  flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
  padding: 12px 18px; border-radius: 14px; color: #fff; font: 700 15px -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  background: linear-gradient(145deg, #1d5df0, #4d97ff); box-shadow: 0 8px 20px rgba(29, 93, 240, .5);
  transition: transform .25s var(--spring), filter .2s;
}
.hero-recharge i { font-style: normal; font-size: 19px; line-height: 1; margin-top: -1px; }
.hero-recharge:hover { filter: brightness(1.08); }
.hero-recharge:active { transform: scale(.94); }

/* ---------- tarjetas de acción ---------- */
.actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.action {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 140px;
  padding: 16px; border: 0; border-radius: 22px; color: #fff; text-align: left; text-decoration: none; cursor: pointer;
  font: inherit; overflow: hidden; animation: rise .6s var(--ease) .08s backwards;
  transition: transform .3s var(--spring), box-shadow .3s;
}
.action::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); pointer-events: none;
}
.action.blue { background: linear-gradient(145deg, #1d5df0, #3b8bff); box-shadow: 0 12px 28px rgba(29, 93, 240, .38); }
.action.purple { background: linear-gradient(145deg, #5b34e0, #8f63f7); box-shadow: 0 12px 28px rgba(91, 52, 224, .38); animation-delay: .14s; }
.action:hover { transform: translateY(-3px); }
.action:active { transform: scale(.96); }
.action .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; background: rgba(255, 255, 255, .2); }
.action .ico svg { width: 24px; height: 24px; }
.action b { font-size: 17px; letter-spacing: -.01em; }
.action small { font-size: 13px; color: rgba(255, 255, 255, .8); }
.action .go {
  position: absolute; right: 14px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 22px; line-height: 1; padding-bottom: 2px; background: rgba(255, 255, 255, .24);
}

/* ---------- resumen (compacto) ---------- */
.summary { margin-bottom: 12px; padding: 10px 6px; animation-delay: .18s; }
.sum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sum-grid > div, .sum-grid > button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 6px; border-left: .5px solid var(--line); }
.sum-grid > div:first-child, .sum-grid > button:first-child { border-left: 0; }
.sum-grid > button { background: none; border-top: 0; border-right: 0; border-bottom: 0; color: inherit; font: inherit; cursor: pointer; border-radius: 12px; transition: background .2s; }
.sum-grid > button:active { background: var(--fill-strong); }
.sum-grid b { font: 700 22px/1.15 ui-monospace, 'SF Mono', 'JetBrains Mono', monospace; letter-spacing: -.03em; color: var(--text); }
.sum-grid span { font-size: 11.5px; color: var(--muted); }
/* ---------- guía y resto de tarjetas ---------- */
details.card.guide { padding: 0; margin-bottom: 12px; }
.guide summary { color: var(--text); padding: 12px 46px 12px 18px; font-size: 15px; line-height: 1.3; }
.guide summary::after { right: 18px; }
.guide-steps li::before { background: linear-gradient(145deg, #1d5df0, #3b8bff); }
.chip.active { box-shadow: 0 6px 18px rgba(31, 107, 255, .28); }
h2 .step {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-right: 8px;
  font-size: 14px; color: #fff; background: linear-gradient(145deg, #1d5df0, #3b8bff); vertical-align: 2px;
}

/* ---------- navegación de la tienda: pestañas arriba (escritorio) y barra inferior (móvil) ---------- */
.view { animation: rise .45s var(--ease) backwards; }
.tabbar {
  position: sticky; top: 66px; z-index: 15; display: flex; gap: 4px; max-width: 520px; margin: 0 0 16px; padding: 4px;
  background: var(--card-solid); border: .5px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.tabbar button {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 6px;
  border: 0; border-radius: 14px; background: none; color: var(--muted); font: 600 14px -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  cursor: pointer; transition: color .2s, background .2s;
}
.tabbar button svg { width: 20px; height: 20px; flex: none; }
.tabbar button:hover { color: var(--text); }
.tabbar button.on { color: #fff; background: linear-gradient(145deg, #1d5df0, #3b8bff); box-shadow: 0 6px 16px rgba(31, 107, 255, .35); }
#view-friends, [data-view="friends"] .card, [data-view="ledger"] .card { max-width: 640px; }
@media (max-width: 820px) {
  body:has(#shop:not([hidden])) .site-footer { padding-bottom: calc(142px + env(safe-area-inset-bottom)); }   /* la última línea queda por encima de la barra y del botón de soporte */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 25; max-width: none; margin: 0; gap: 0;
    padding: 6px 8px max(8px, env(safe-area-inset-bottom)); border: 0; border-top: .5px solid var(--line); border-radius: 0;
    box-shadow: 0 -8px 24px rgba(10, 26, 68, .10);
  }
  .tabbar button { flex-direction: column; gap: 3px; padding: 8px 0 4px; font-size: 11px; background: none !important; box-shadow: none !important; border-radius: 0; }
  .tabbar button svg { width: 24px; height: 24px; }
  .tabbar button.on { color: var(--accent); }
  .tabbar button.on::before {
    content: ''; position: absolute; top: -7px; left: 50%; width: 34px; height: 3px; margin-left: -17px; border-radius: 0 0 4px 4px; background: var(--accent);
  }
  body:has(#shop:not([hidden])) .fab-support { bottom: calc(82px + env(safe-area-inset-bottom)); }
}@media (max-width: 560px) {
  /* el saldo y "Recargar" ya están en la cabecera de bienvenida: se quita el duplicado de la barra superior */
  body:has(#shop:not([hidden])) .top .wallet { display: none; }
}
@media (max-width: 420px) {
  .hero-wallet b { font-size: 26px; }
  .hero-recharge { padding: 11px 14px; }
}

/* ---------- canal de Telegram (dentro de "Avisos por Telegram") ---------- */
.tg-channel {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: .5px solid var(--line);
}
.tg-channel > div { flex: 1 1 160px; min-width: 0; }
.tg-channel b { display: block; font-size: 15px; }
.tg-channel span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.btn.tg-join {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff;
  background: linear-gradient(145deg, #1f95d6, #34b0f0); box-shadow: 0 6px 16px rgba(31, 149, 214, .38);
}
.btn.tg-join svg { width: 18px; height: 18px; flex: none; }

/* ---------- anuncio superior: más pequeño; solo pasa a 2 líneas si no cabe en una ---------- */
.announce { font-size: 12.5px; line-height: 1.35; padding-top: 7px; padding-bottom: 7px; font-weight: 500; text-wrap: pretty; }

/* =====================================================================
   Pulido de marca, accesibilidad y nuevos bloques (2026-10-27)
   ===================================================================== */

/* ---------- accesibilidad ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.btn:focus-visible, .chip:focus-visible, .tabbar button:focus-visible, .action:focus-visible { outline-offset: 3px; }
input:focus-visible { outline: none; }
.top :focus-visible, .hero :focus-visible { outline-color: #fff; }

/* ---------- tipografía y detalles de marca ---------- */
.price, .balance, .mv-amt, .hero-wallet b, .sum-grid b, .stat b { font-variant-numeric: tabular-nums; }
h1, h2 { text-wrap: balance; }
.card { transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
@media (hover: hover) { .card:not(.auth):hover { box-shadow: 0 2px 4px rgba(15, 35, 90, .06), 0 16px 38px rgba(15, 35, 90, .12); } }
::selection { background: rgba(31, 107, 255, .25); }

/* ---------- aviso de mantenimiento (aparece solo si /api/status está degradado) ---------- */
.banner.maint { padding: 12px 16px; line-height: 1.45; font-size: 13.5px; }
.banner.maint[hidden] { display: none !important; }
.maint-dot { display: inline-block; width: 8px; height: 8px; margin: 0 5px 1px 1px; border-radius: 50%; background: #30b350; }

/* ---------- indicador «Todo operativo» ---------- */
.sys-status {
  display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #1c8a3a; background: rgba(48, 179, 80, .14);
}
.sys-status[hidden] { display: none !important; }
.sys-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: sys-ping 2.4s ease-out infinite; }
.sys-status.bad { color: #b45f00; background: rgba(255, 159, 10, .16); }
.sys-status.bad i { animation: none; }
.sys-status.on-dark { position: relative; z-index: 1; margin-top: 14px; color: #8cf0a9; background: rgba(80, 255, 160, .12); }
.sys-status.on-dark.bad { color: #ffd08a; background: rgba(255, 159, 10, .18); }
#auth .sys-status { display: flex; width: fit-content; margin: 0 auto 14px; }
@keyframes sys-ping { 0% { box-shadow: 0 0 0 0 rgba(48, 179, 80, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(48, 179, 80, 0); } }
:root[data-theme="dark"] .sys-status:not(.on-dark) { color: #5be37d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sys-status:not(.on-dark):not(.bad) { color: #5be37d; } :root:not([data-theme="light"]) .sys-status.bad:not(.on-dark) { color: #ffb347; } }
:root[data-theme="dark"] .sys-status.bad:not(.on-dark) { color: #ffb347; }

/* ---------- garantía de reembolso ---------- */
.guarantee {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: 18px;
  background: rgba(48, 179, 80, .12); border: 1px solid rgba(48, 179, 80, .28); animation: rise .5s var(--ease) backwards;
}
.guarantee svg { flex: none; width: 28px; height: 28px; color: #1c8a3a; }
.guarantee b { display: block; font-size: 14.5px; }
.guarantee span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
:root[data-theme="dark"] .guarantee svg { color: #5be37d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .guarantee svg { color: #5be37d; } }
.order-note {
  display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12.5px; line-height: 1.35; color: var(--muted);
}
.order-note .shield { flex: none; width: 15px; height: 15px; color: #1c8a3a; }
.order-note.ok { color: #1c8a3a; font-weight: 600; }
:root[data-theme="dark"] .order-note .shield, :root[data-theme="dark"] .order-note.ok { color: #5be37d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .order-note .shield, :root:not([data-theme="light"]) .order-note.ok { color: #5be37d; } }

/* ---------- estados vacíos con acción ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px 22px; text-align: center; animation: rise .5s var(--ease) backwards; }
.empty-state .es-ico {
  width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 6px;
  color: var(--accent); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line);
}
.empty-state .es-ico svg { width: 30px; height: 30px; }
.empty-state b { font-size: 16px; letter-spacing: -.01em; }
.empty-state p { margin: 0 0 10px; max-width: 34ch; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---------- selector de apariencia ---------- */
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--fill); }
.theme-seg button {
  border: 0; padding: 10px 6px; border-radius: 11px; background: none; color: var(--muted); cursor: pointer;
  font: 600 14px inherit; font-family: inherit; transition: background .25s, color .25s, box-shadow .25s;
}
.theme-seg button.on { background: var(--card-solid); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }

/* ---------- enlaces a las páginas por servicio (pantalla de entrada) ---------- */
.svc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 18px; padding-top: 14px; border-top: .5px solid var(--line); font-size: 13px; }
.svc-links span { width: 100%; color: var(--muted); font-size: 12px; }
.svc-links a { color: var(--accent); text-decoration: none; font-weight: 600; padding: 4px 0; }
.svc-links a:hover { text-decoration: underline; }

/* ---------- páginas por servicio (/numero-virtual/…) ---------- */
.lp-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.lp-hero .logo-tile { width: 64px; height: 64px; border-radius: 18px; flex: none; }
.lp-hero h1 { margin: 0; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 6px; }
.lp-cta .btn { text-decoration: none; display: inline-block; }
.doc-card a.btn.primary { color: #fff; text-decoration: none; }
.lp-points { list-style: none; padding: 0 !important; display: grid; gap: 10px; margin: 14px 0; }
.lp-points li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--fill); margin: 0; }
.lp-points li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 12px; font-weight: 700; }
.lp-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lp-more a { padding: 8px 14px; border-radius: 999px; background: var(--fill); color: var(--text) !important; font-size: 14px; font-weight: 600; }
.lp-more a:hover { background: var(--fill-strong); text-decoration: none !important; }
.top a.btn { text-decoration: none; }


/* =====================================================================
   Pestaña Comprar al estilo de la app: servicios -> países -> hoja de compra
   ===================================================================== */
.store { max-width: 720px; }
[data-view="orders"] .store { max-width: 720px; }
.search-box { position: relative; margin-bottom: 4px; }
.search-box svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 42px; margin: 0; border-radius: 16px; background: var(--card-solid); border: .5px solid var(--line); }
h3.sec { margin: 22px 4px 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* favoritos y recientes */
.svc-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.svc-chips::-webkit-scrollbar { display: none; }
.svc-chip {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; cursor: pointer;
  background: var(--card-solid); border: .5px solid var(--line); color: var(--text); font: 600 13px inherit; font-family: inherit; white-space: nowrap;
  transition: transform .25s var(--spring), box-shadow .2s;
}
.svc-chip:active { transform: scale(.94); }
.svc-chip .logo-tile { width: 28px; height: 28px; border-radius: 9px; }
.svc-chip .logo-tile i { width: 16px; height: 16px; }
.svc-chip .logo-tile.letter { font-size: 13px; }

/* populares: cuadrícula de logos grandes */
.pop-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px 4px; border-radius: 20px; background: var(--card-solid); border: .5px solid var(--line); box-shadow: var(--shadow); animation: rise .5s var(--ease) backwards; }
.pop-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 8px 2px; border: 0; border-radius: 14px; background: none; cursor: pointer;
  color: var(--text); font: 500 11.5px inherit; font-family: inherit; transition: transform .25s var(--spring), background .2s;
}
.pop-item span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.pop-item .logo-tile { width: 44px; height: 44px; border-radius: 13px; }
.pop-item .logo-tile i { width: 24px; height: 24px; }
.pop-item .logo-tile.letter { font-size: 18px; }
.pop-item:active { transform: scale(.93); }
@media (hover: hover) { .pop-item:hover { background: var(--fill); } .pop-item:hover .logo-tile { transform: scale(1.06); } }
@media (min-width: 700px) { .pop-card { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* todos los servicios: fila con logo, nombre, estrella y flecha */
.svc-all-list { max-height: none; overflow: visible; }
.item.svc-row { padding: 0 12px 0 0; gap: 0; }
.svc-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 9px 6px 9px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.svc-pick:active { background: var(--fill-strong); }
.svc-pick .logo-tile { width: 38px; height: 38px; border-radius: 11px; }
.svc-pick .logo-tile i { width: 21px; height: 21px; }
.star { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); opacity: .55; cursor: pointer; transition: transform .25s var(--spring), color .2s, opacity .2s; }
.star svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.star.on { color: var(--warn); opacity: 1; }
.star.on svg { fill: currentColor; }
.star:active { transform: scale(.82); }

/* países */
.store-back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 4px -6px; padding: 8px 12px 8px 4px; border: 0; background: none; color: var(--accent); font: 500 17px inherit; font-family: inherit; cursor: pointer; }
.store-back svg { width: 24px; height: 24px; }
.svc-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.svc-head .logo-tile { width: 54px; height: 54px; border-radius: 15px; }
.svc-head .logo-tile i { width: 28px; height: 28px; }
.sh-txt { flex: 1; min-width: 0; }
.sh-txt h2 { margin: 0; font-size: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-txt p { margin: 0; font-size: 13px; }
.item.country-row { width: 100%; border: 0; border-bottom: .5px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.item.country-row:active { background: var(--fill-strong); }
.item.country-row .price { color: var(--accent); font-size: 17px; font-weight: 700; flex: none; }
.item .nm .tag { margin-left: 8px; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; vertical-align: 1px; }
/* países: el nombre puede ocupar dos líneas («Estados Unidos (virtual)») y la etiqueta nunca se corta */
.item.country-row .nm { white-space: normal; overflow: visible; max-width: none; line-height: 1.3; }
.item.country-row .nm .tag { display: inline-block; white-space: nowrap; margin-left: 6px; }
.tag.ok { color: #1c8a3a; background: rgba(48, 179, 80, .16); }
.tag.acc { color: var(--accent); background: rgba(31, 107, 255, .14); }
:root[data-theme="dark"] .tag.ok { color: #5be37d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.ok { color: #5be37d; } }

/* hoja de compra */
.bs-logos { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 4px; }
.bs-logos .logo-tile { width: 58px; height: 58px; border-radius: 16px; }
.bs-logos .logo-tile i { width: 30px; height: 30px; }
.bs-logos .av.flag { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 3px 10px rgba(0, 0, 0, .22); }
.bs-logos span.av { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.bs-title { margin: 14px 0 16px; text-align: center; font-size: 21px; }
.bs-group { max-height: none; overflow: visible; }
.bs-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: .5px solid var(--line); }
.bs-row:last-child { border-bottom: 0; }
.bs-row b.ok { color: var(--ok); } .bs-row b.bad { color: var(--danger); }
.bs-note { margin: 10px 6px 18px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.bs-note.bad { color: var(--danger); }
.bs-main { width: 100%; padding: 15px; font-size: 16px; }
.bs-cancel { width: 100%; margin-top: 8px; }
.bs-done { display: flex; flex-direction: column; align-items: center; padding: 34px 0 26px; text-align: center; }
.bs-done h2 { margin: 18px 0 4px; }
.bs-done p { margin: 0; }
.bs-check { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); animation: pop .6s var(--spring) backwards; }
.bs-check svg { width: 50px; height: 50px; }

/* =====================================================================
   Pestaña Cuenta al estilo de la app: filas agrupadas con icono de color
   ===================================================================== */
.acc { max-width: 640px; }
.acc h3.sec { margin-top: 24px; }
.ac-group { margin-bottom: 14px; border-radius: 18px; overflow: hidden; background: var(--card-solid); border: .5px solid var(--line); box-shadow: var(--shadow); animation: rise .5s var(--ease) backwards; }
.ac-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 16px; margin: 0;
  border: 0; background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: background .2s;
}
div.ac-row { cursor: default; }
.ac-row:not([hidden]) ~ .ac-row:not([hidden]) { border-top: .5px solid var(--line); }
a.ac-row:active, button.ac-row:active, label.ac-row:active { background: var(--fill-strong); }
@media (hover: hover) { a.ac-row:hover, button.ac-row:hover, label.ac-row:hover { background: var(--fill); } }
.ac-row:focus-visible { outline-offset: -3px; border-radius: 0; }
.ac-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ac-t { font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.ac-s { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.ac-t.danger, .ac-row .danger { color: var(--danger); }
.ac-end { flex: none; color: var(--accent); font-size: 15px; font-weight: 500; }
.ac-row .chev { color: var(--muted); opacity: .7; }
.ac-row .switch { margin: 0; flex: none; }
.ac-badge { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.ac-badge svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bg-pink { background: linear-gradient(145deg, #ff5a7e, #ff2d55); }
.bg-green { background: linear-gradient(145deg, #4ad66d, #30b350); }
.bg-blue { background: linear-gradient(145deg, #3b9bff, #0a84ff); }
.bg-deep { background: linear-gradient(145deg, #7a78ff, #5e5ce6); }
.bg-red { background: linear-gradient(145deg, #ff6b61, #ff453a); }
.bg-teal { background: linear-gradient(145deg, #4fd2d8, #26a7b0); }
.bg-orange { background: linear-gradient(145deg, #ffb340, #ff9f0a); }
.bg-grey { background: linear-gradient(145deg, #a2a2a8, #7c7c82); }
.bg-tg { background: linear-gradient(145deg, #34b0f0, #1f95d6); }

/* perfil */
.acc-profile .ac-row { padding: 16px; gap: 14px; }
.acc-profile .avatar { width: 58px; height: 58px; font-size: 25px; }
.acc-profile .ac-t { font-size: 17px; font-weight: 600; }

/* apariencia: fila con selector debajo */
/* filas de una sola línea (sin subtítulo: avisos por correo, Ayuda, Legal, Cerrar sesión): más juntas */
.ac-row:not(.stack):not(:has(.ac-s)) { min-height: 50px; padding-top: 7px; padding-bottom: 7px; }
.ac-row.stack { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 14px; }
.ac-line { display: flex; align-items: center; gap: 12px; }
.ac-row.stack .theme-seg { margin: 0; }

/* movimientos: fila en Cuenta que abre su propia pantalla con el historial completo */
#ledger { max-height: none; }
.ledger-day { padding: 12px 14px 6px; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); background: var(--fill); }
.ledger-day:first-child { padding-top: 10px; }

.acc-logout { margin-top: 22px; }
.acc-ver { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* escudo de cuenta verificada */
.acc-verified { display: inline-flex; align-items: center; gap: 5px; }
.vshield { flex: none; width: 16px; height: 16px; filter: drop-shadow(0 1px 2px rgba(48, 179, 80, .45)); }
/* el botón de descarga es ahora el único de la cabecera: en móvil cabe con su texto completo */
@media (max-width: 380px) { .dl-app { font-size: 12px; padding-left: 10px; padding-right: 10px; } }


/* con la sesión iniciada, los enlaces legales ya están en Cuenta > Legal: se quitan del pie (visitantes y páginas legales los siguen viendo) */
body:has(#shop:not([hidden])) .site-footer .legal-link { display: none; }


/* inicio: queda solo «Comprar número» (recargar está junto al saldo) */
.view[data-view="home"] > .actions { grid-template-columns: minmax(0, 1fr); }


/* =====================================================================
   Pestaña Números: tarjetas compactas (dos columnas en escritorio)
   ===================================================================== */
[data-view="orders"] .store { max-width: 860px; }
#orders-card { padding: 0; background: none; border: 0; box-shadow: none; }
#orders-card > .row { margin-bottom: 10px; padding: 0 2px; }
#orders-card > .row h2 { margin: 0; }
#orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; align-items: start; }
#orders > .empty-state, #orders > p { grid-column: 1 / -1; }

.order { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 18px; box-shadow: var(--shadow); }
.o-head { display: flex; align-items: center; gap: 10px; }
.o-head .logo-tile { width: 36px; height: 36px; border-radius: 10px; }
.o-head .logo-tile i { width: 20px; height: 20px; }
.o-head .logo-tile.letter { font-size: 16px; }
.o-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; line-height: 1.3; }
.o-title b { font-size: 15px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-title small { font-size: 12px; color: var(--muted); }
.o-head .pill { flex: none; padding: 3px 9px; font-size: 11.5px; }

.o-pair { display: flex; flex-wrap: wrap; gap: 8px; }
.o-block { flex: 1 1 140px; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 7px 11px; border-radius: 12px; background: var(--fill); }
.o-block > small { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.o-phone { cursor: pointer; transition: background .2s; }
.o-phone:active { background: var(--fill-strong); }
.o-phone > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.o-copy { flex: none; width: 16px; height: 16px; color: var(--muted); }
.order .phone { font-size: 17px; white-space: nowrap; }
.o-phone { flex-basis: 185px; }   /* en móviles estrechos el código pasa a otra línea en vez de partir el número */
.o-code { cursor: pointer; background: rgba(48, 179, 80, .11); transition: background .2s; }
.o-code:active { background: rgba(48, 179, 80, .22); }
.o-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.o-code .o-copy { color: var(--ok); }
@media (hover: hover) { .o-code:hover, .o-phone:hover { background: rgba(48, 179, 80, .18); } .o-phone:hover { background: var(--fill-strong); } }
.order .code { margin: 0; padding: 0; background: none; font-size: 22px; text-align: left; letter-spacing: .14em; }
.o-block[data-exp] { flex: none; padding: 0 2px; background: none; gap: 0; }
.o-block[data-exp] .progress { margin-top: 6px; }
.o-block[data-exp] .order-note { margin-top: 8px; }
.order > .order-note { margin-top: 0; padding: 0 2px; }

.order .actions { margin: 0; padding: 0; border: 0; gap: 8px; }
.order .actions .btn { flex: 1 1 0; padding: 8px 12px; font-size: 13.5px; }
@media (max-width: 560px) { .order .code { font-size: 22px; letter-spacing: .12em; } }


/* =====================================================================
   Inicio: novedades, saldo bajo, números activos, compra rápida, última actividad
   ===================================================================== */
.home-announce {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 14px 16px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(109, 74, 240, .14), rgba(31, 107, 255, .14)); border: 1px solid rgba(109, 74, 240, .25);
  animation: rise .5s var(--ease) backwards;
}
.home-announce[hidden] { display: none; }
.ha-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7a58f5, #1f6bff); }
.ha-ico svg { width: 20px; height: 20px; }
.home-announce b { display: block; font-size: 14.5px; }
.home-announce p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }

.low-balance {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 18px;
  background: rgba(255, 159, 10, .14); border: 1px solid rgba(255, 159, 10, .35); animation: rise .5s var(--ease) backwards;
}
.low-balance[hidden] { display: none; }
.low-balance > svg { flex: none; width: 26px; height: 26px; color: #c77700; }
.low-balance > div { flex: 1; min-width: 0; }
.low-balance b { display: block; font-size: 14.5px; }
.low-balance span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
:root[data-theme="dark"] .low-balance > svg { color: #ffb347; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .low-balance > svg { color: #ffb347; } }

#home-active h3.sec, #home-quick h3.sec { margin-top: 4px; }
.ha-list { display: grid; gap: 8px; margin-bottom: 14px; }
.ha-item { display: flex; align-items: stretch; gap: 8px; padding: 8px; border-radius: 18px; background: var(--card-solid); border: .5px solid var(--line); box-shadow: var(--shadow); animation: rise .45s var(--ease) backwards; }
.ha-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 2px 4px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ha-main .logo-tile { width: 38px; height: 38px; border-radius: 11px; }
.ha-main .logo-tile i { width: 21px; height: 21px; }
.ha-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ha-txt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ha-txt small { font: 500 12.5px ui-monospace, 'SF Mono', monospace; color: var(--muted); }
.ha-wait { flex: none; width: 104px; display: flex; flex-direction: column; align-items: flex-end; }
.ha-wait .countdown { font-size: 12px; }
.ha-wait .progress { width: 100%; margin-top: 6px; display: block; }
.ha-got { flex: none; font-size: 12px; font-weight: 600; color: var(--ok); }
.ha-code {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; border-radius: 14px; cursor: pointer;
  color: var(--ok); background: rgba(48, 179, 80, .13); font: 700 19px ui-monospace, 'SF Mono', monospace; letter-spacing: .1em; transition: transform .2s var(--spring);
}
.ha-code:active { transform: scale(.95); }
.ha-code .o-copy { width: 16px; height: 16px; color: var(--ok); }
:root[data-theme="dark"] .ha-got { color: #5be37d; }
@media (max-width: 420px) { .ha-wait { width: 84px; } .ha-code { padding: 0 10px; font-size: 17px; } }

#home-quick { margin-bottom: 6px; }

.home-last {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 12px 16px; border: .5px solid var(--line); border-radius: 16px;
  background: var(--card-solid); color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer;
}
.home-last[hidden] { display: none; }
.hl-k { flex: none; color: var(--muted); font-size: 12px; }
.hl-v { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.hl-v b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-v em { flex: none; }
.hl-v em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.hl-v em.in { color: var(--ok); }
.home-last small { flex: none; color: var(--muted); font-size: 12px; }
@media (max-width: 520px) { .hl-k { display: none; } }


/* resumen (Números, Códigos, En espera) dentro de la tarjeta del saldo */
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.hero-stats > div {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-left: .5px solid rgba(255, 255, 255, .18); color: #fff;
}
.hero-stats > div:first-child { border-left: 0; }
.hero-stats b { font: 700 20px/1.15 ui-monospace, 'SF Mono', 'JetBrains Mono', monospace; letter-spacing: -.03em; }
.hero-stats span { font-size: 11.5px; color: rgba(255, 255, 255, .72); }


/* pie de página: más separación respecto al contenido */
.site-footer { padding-top: 40px; }
