/* QvaCodex · diseño v2 de la zona de cliente (2026-10-29): neutro y limpio, acento violeta, tarjeta de saldo con degradado, claro y oscuro.
   Se activa con <html class="ui-client"> (el panel de administración lo quita y usa admin.css). Se carga DESPUÉS de styles.css y theme.css.
   Para volver al diseño anterior: quitar el <link> de client.css y la clase ui-client de <html> (y el botón #tab-fab, la tarjeta #home-spend y los iconos .hs-ic de index.html).
   Los modos oscuros están duplicados (data-theme + media query) igual que en styles.css. */
html.ui-client {
  --bg: #f3f3f8;
  --bg-grad-1: rgba(90, 72, 240, .07);
  --bg-grad-2: rgba(90, 72, 240, .03);
  --card: #ffffff;
  --card-solid: #ffffff;
  --fill: rgba(18, 18, 40, .045);
  --fill-strong: rgba(18, 18, 40, .09);
  --line: rgba(18, 18, 40, .07);
  --text: #12121c;
  --muted: #6a6a80;
  --accent: #5a48f0;
  --accent-2: #8b5cf6;
  --btn: #5a48f0;
  --soft: rgba(90, 72, 240, .1);
  --glow: rgba(90, 72, 240, .32);
  --track: #e8e8f1;
  --tab: #ffffff;
  --hero1: #4b39e6;
  --hero2: #8b5cf6;
  --ok: #14804f;
  --oksoft: rgba(20, 128, 79, .11);
  --warn: #8a5a00;
  --warnsoft: rgba(224, 142, 0, .14);
  --danger: #c62f3c;
  --bad: #c62f3c;
  --badsoft: rgba(224, 61, 74, .1);
  --shadow: 0 1px 2px rgba(18, 18, 40, .04), 0 12px 32px rgba(18, 18, 40, .07);
  --radius: 28px;
  --navy-1: #ffffff;
  --navy-2: #ffffff;
}
html.ui-client[data-theme="dark"] {
  --bg: #0b0b10;
  --bg-grad-1: rgba(122, 99, 255, .12);
  --bg-grad-2: rgba(122, 99, 255, .04);
  --card: #15151d;
  --card-solid: #15151d;
  --fill: rgba(255, 255, 255, .06);
  --fill-strong: rgba(255, 255, 255, .11);
  --line: rgba(255, 255, 255, .08);
  --text: #f2f2f8;
  --muted: #a4a4b9;
  --accent: #a99bff;
  --accent-2: #c1b5ff;
  --btn: #6c58ff;
  --soft: rgba(169, 155, 255, .15);
  --glow: rgba(108, 88, 255, .4);
  --track: #1c1c27;
  --tab: #2a2a3a;
  --hero1: #3a2bc2;
  --hero2: #6a47e6;
  --ok: #4fd69b;
  --oksoft: rgba(79, 214, 155, .13);
  --warn: #f2b13d;
  --warnsoft: rgba(242, 177, 61, .14);
  --danger: #ff6b76;
  --bad: #ff6b76;
  --badsoft: rgba(255, 107, 118, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .4);
  --navy-1: #15151d;
  --navy-2: #15151d;
}
@media (prefers-color-scheme: dark) {
  html.ui-client:not([data-theme="light"]) {
    --bg: #0b0b10;
    --bg-grad-1: rgba(122, 99, 255, .12);
    --bg-grad-2: rgba(122, 99, 255, .04);
    --card: #15151d;
    --card-solid: #15151d;
    --fill: rgba(255, 255, 255, .06);
    --fill-strong: rgba(255, 255, 255, .11);
    --line: rgba(255, 255, 255, .08);
    --text: #f2f2f8;
    --muted: #a4a4b9;
    --accent: #a99bff;
    --accent-2: #c1b5ff;
    --btn: #6c58ff;
    --soft: rgba(169, 155, 255, .15);
    --glow: rgba(108, 88, 255, .4);
    --track: #1c1c27;
    --tab: #2a2a3a;
    --hero1: #3a2bc2;
    --hero2: #6a47e6;
    --ok: #4fd69b;
    --oksoft: rgba(79, 214, 155, .13);
    --warn: #f2b13d;
    --warnsoft: rgba(242, 177, 61, .14);
    --danger: #ff6b76;
    --bad: #ff6b76;
    --badsoft: rgba(255, 107, 118, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .4);
    --navy-1: #15151d;
    --navy-2: #15151d;
  }
}

.ui-client body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; }
.ui-client ::selection { background: var(--soft); }

/* ---------- barra superior ---------- */
.ui-client .top { background: var(--card-solid); color: var(--text); box-shadow: none; border-bottom: 1px solid var(--line); }
.ui-client .brand { color: var(--text); }
.ui-client .brand span { color: var(--accent); }
.ui-client .brand .logo-img { box-shadow: none; }
.ui-client #userbox { color: var(--text); }
.ui-client #userbox .muted { color: var(--muted); }
.ui-client .top .balance, .ui-client .top .wallet { background: var(--fill); color: var(--text); }
.ui-client .top .wallet .balance { background: none; }
.ui-client .top .btn.ghost { background: var(--fill); color: var(--text); }
.ui-client .top .recharge, .ui-client .wallet .recharge { background: var(--btn); color: #fff; }
.ui-client .top :focus-visible, .ui-client .hero :focus-visible { outline-color: var(--accent); }
.ui-client .banner { background: var(--warnsoft); color: var(--warn); border-radius: 18px; }
.ui-client .announce { background: var(--soft); }

/* ---------- tarjetas, botones y campos ---------- */
.ui-client .card { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (hover: hover) { .ui-client .card:not(.auth):hover { box-shadow: var(--shadow); } }
@media (max-width: 560px) { .ui-client .card { padding: 18px; border-radius: 26px; } }
.ui-client .btn.primary { background: var(--btn); color: #fff; box-shadow: 0 6px 16px var(--glow); }
.ui-client .btn.small { border-radius: 999px; }
.ui-client .btn.danger { background: var(--badsoft); color: var(--bad); }
.ui-client input, .ui-client textarea { font-family: inherit; }
.ui-client input:focus, .ui-client textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--soft); }
.ui-client #auth input:focus { box-shadow: 0 0 0 4px var(--soft); }
.ui-client .switch input:checked + i { background: var(--btn); }
.ui-client .switch input:focus-visible + i { box-shadow: 0 0 0 4px var(--soft); }
.ui-client .skip-link { background: var(--btn); }
.ui-client .search-box input { height: 50px; border-radius: 999px; border: 0; background: var(--card-solid); box-shadow: var(--shadow); padding-left: 44px; }
.ui-client .tag.acc { background: var(--soft); color: var(--accent); }
.ui-client .tag.ok { background: var(--oksoft); color: var(--ok); }
.ui-client .pill { background: var(--fill); }
.ui-client .pill.waiting { color: var(--warn); background: var(--warnsoft); }
.ui-client .pill.received, .ui-client .pill.done { color: var(--ok); background: var(--oksoft); }
.ui-client .pill.warn { color: var(--bad); background: var(--badsoft); }
.ui-client .countdown { color: var(--warn); }
.ui-client .countdown.low { color: var(--bad); }
.ui-client .star.on { color: #e0a100; }

/* números y códigos en la misma letra que el resto */
.ui-client .order .phone, .ui-client .ha-txt small, .ui-client .mv-amt, .ui-client .item .price,
.ui-client .balance, .ui-client .hero-stats b, .ui-client .stat b { font-family: 'Inter', system-ui, sans-serif; }

/* ---------- inicio: saludo, tarjeta de saldo con degradado e indicadores ---------- */
.ui-client .hero { background: none; color: var(--text); border: 0; box-shadow: none; padding: 0; margin-bottom: 12px; overflow: visible; }
.ui-client .hero::after { display: none; }
.ui-client .hero-user { margin: 0 4px 14px; }
.ui-client .hero h1 { color: var(--text); font-size: 20px; letter-spacing: -.025em; }
.ui-client .hero-id p { color: var(--muted); }
.ui-client .avatar { background: var(--soft); color: var(--accent); border: 0; box-shadow: none; width: 46px; height: 46px; font-size: 18px; }
.ui-client .acc-profile .avatar { width: 58px; height: 58px; font-size: 25px; }
.ui-client .hero-wallet {
  margin: 0; padding: 18px 18px 18px 20px; border: 0; border-radius: 30px; color: #fff;
  background: radial-gradient(260px 180px at 90% 0%, rgba(255, 255, 255, .22), transparent 70%), linear-gradient(135deg, var(--hero1), var(--hero2));
  box-shadow: 0 18px 40px var(--glow); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.ui-client .hero-wallet span { color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 500; }
.ui-client .hero-wallet b { font: 700 40px/1.1 'Inter', system-ui, sans-serif; letter-spacing: -.04em; color: #fff; }
.ui-client .hero-wallet b.counting { color: #b9ffd9; text-shadow: none; }
.ui-client .hero-wallet.credited { animation: credit-flash-n 1.9s ease-out; }
@keyframes credit-flash-n { 0% { box-shadow: 0 0 0 0 rgba(79, 214, 155, .6), 0 18px 40px var(--glow); } 100% { box-shadow: 0 0 0 26px rgba(79, 214, 155, 0), 0 18px 40px var(--glow); } }
.ui-client .bal-plus { color: #b9ffd9; text-shadow: none; left: 20px; }
.ui-client .hero-recharge { background: #fff; color: #3a2bc2; border-radius: 999px; box-shadow: none; padding: 12px 16px; font-size: 14px; }
.ui-client .hero-recharge i { font-size: 18px; }
.ui-client .hero-stats { gap: 10px; margin-top: 12px; }
.ui-client .hero-stats > div {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; text-align: left;
  background: var(--card-solid); border: 0; border-radius: 18px; padding: 9px 10px; box-shadow: var(--shadow); color: var(--text);
}
.ui-client .hs-ic { grid-row: 1 / 3; grid-column: 1; width: 16px; height: 16px; padding: 5px; box-sizing: content-box; color: var(--accent); background: var(--soft); border-radius: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-client .hero-stats b { grid-column: 2; grid-row: 1; font-weight: 600; font-size: 18px; line-height: 1.15; letter-spacing: -.025em; }
.ui-client .hero-stats span { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 11.5px; line-height: 1.2; white-space: nowrap; }
.ui-client .sys-status.on-dark { color: var(--ok); background: var(--oksoft); }
.ui-client .sys-status.on-dark.bad { color: var(--warn); background: var(--warnsoft); }

/* gasto de los últimos 7 días */
.ui-client .home-spend { margin-bottom: 12px; padding: 18px; }
.ui-client .hs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ui-client .hs-k { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.ui-client .hs-head b { display: block; font: 700 30px/1.15 'Inter', system-ui, sans-serif; letter-spacing: -.035em; color: var(--accent); }
.ui-client .hs-range { flex: none; background: var(--fill); color: var(--muted); font-size: 12px; font-weight: 500; padding: 7px 13px; border-radius: 999px; }
.ui-client .hs-chart { position: relative; margin-top: 6px; }
.ui-client .hs-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ui-client .hs-grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.ui-client .hs-s1 { stop-color: var(--btn); stop-opacity: .3; }
.ui-client .hs-s2 { stop-color: var(--btn); stop-opacity: 0; }
.ui-client .hs-fill { fill: url(#hsg); }
.ui-client .hs-line { fill: none; stroke: var(--btn); stroke-width: 2.4; stroke-linecap: round; }
.ui-client .hs-dot { fill: var(--card-solid); stroke: var(--btn); stroke-width: 2.5; }
.ui-client .hs-tag { position: absolute; transform: translate(-50%, -165%); background: var(--btn); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 8px; white-space: nowrap; box-shadow: 0 4px 12px var(--glow); pointer-events: none; }
.ui-client .hs-tag.l { transform: translate(-10%, -165%); }
.ui-client .hs-tag.r { transform: translate(-90%, -165%); }
.ui-client .hs-x { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 6px; text-transform: capitalize; }

/* ---------- inicio: avisos, números activos, compra rápida ---------- */
.ui-client .home-announce { background: var(--soft); border: 0; border-radius: 24px; }
.ui-client .ha-ico { background: var(--btn); }
.ui-client .low-balance { background: var(--warnsoft); border: 0; border-radius: 24px; }
.ui-client .low-balance > svg { color: var(--warn); }
.ui-client .ha-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 24px; box-shadow: var(--shadow); }
.ui-client .ha-ic .logo-tile { width: 42px; height: 42px; border-radius: 14px; }
.ui-client .ha-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ui-client .ha-link { display: flex; flex-direction: column; max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ui-client .ha-link b { font-size: 15px; letter-spacing: -.01em; }
.ui-client .ha-link small { font: 500 12.5px 'Inter', system-ui, sans-serif; color: var(--muted); }
.ui-client .ha-code { margin-top: 6px; padding: 5px 9px; gap: 6px; border-radius: 10px; background: var(--oksoft); color: var(--ok); font: 700 13.5px 'Inter', system-ui, sans-serif; letter-spacing: .08em; }
.ui-client .ha-code .o-copy { width: 12px; height: 12px; }
.ui-client .ha-waiting { margin-top: 3px; font-style: normal; font-size: 12px; color: var(--muted); }
.ui-client .home-last { border: 0; border-radius: 22px; box-shadow: var(--shadow); }
.ui-client .guarantee { background: var(--oksoft); border: 0; border-radius: 22px; }
.ui-client .guarantee span { color: var(--text); opacity: .8; }
.ui-client .guide-steps li::before, .ui-client h2 .step { background: var(--btn); }
.ui-client .mv-ico.out { background: var(--btn); }
@media (max-width: 480px) { .ui-client .ha-got { display: none; } }

/* anillo de cuenta atrás: encierra el tiempo y cambia de verde a amarillo y rojo */
.ui-client .rg { position: relative; width: 58px; height: 58px; flex: none; }
.ui-client .rg svg { position: absolute; inset: 0; width: 58px; height: 58px; transform: rotate(-90deg); }
.ui-client .rg-t { fill: none; stroke: var(--track); stroke-width: 4; }
.ui-client .rg-f { fill: none; stroke: hsl(145 78% 43%); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 163.4 163.4; transition: stroke .6s, stroke-dasharray 1s linear; }
.ui-client .rg b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 12.5px 'Inter', system-ui, sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ui-client .rg.low { animation: pulse 1s ease-in-out infinite; }

/* ---------- comprar ---------- */
.ui-client .svc-chip { border: 0; box-shadow: var(--shadow); }
.ui-client .pop-card { background: none; border: 0; box-shadow: none; padding: 4px 0; gap: 14px 8px; animation: none; }
.ui-client .pop-item { padding: 2px 0; }
.ui-client .pop-item:hover { background: none; }
.ui-client .pop-item .logo-tile { width: 52px; height: 52px; border-radius: 17px; box-shadow: 0 12px 20px -6px rgba(0, 0, 0, .34), 0 3px 6px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .28); }
.ui-client .pop-item .logo-tile i { width: 28px; height: 28px; }
.ui-client .pop-item .logo-tile.letter { font-size: 20px; }
/* favoritos y recientes: icono con sombra y nombre, sin contenedor */
.ui-client #svc-fav .svc-chips, .ui-client #svc-rec .svc-chips { gap: 18px; padding: 4px 4px 8px; }
.ui-client #svc-fav .svc-chip, .ui-client #svc-rec .svc-chip { background: none; border: 0; box-shadow: none; padding: 2px 0; gap: 9px; font-size: 14px; letter-spacing: -.01em; }
.ui-client #svc-fav .svc-chip .logo-tile, .ui-client #svc-rec .svc-chip .logo-tile { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 7px 12px -4px rgba(0, 0, 0, .34), 0 2px 4px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .28); }
.ui-client #svc-fav .svc-chip .logo-tile i, .ui-client #svc-rec .svc-chip .logo-tile i { width: 19px; height: 19px; }
.ui-client .list { border-radius: 24px; }
.ui-client .item:hover { background: var(--fill); }
.ui-client .item.country-row .price { color: var(--accent); }
.ui-client .chip.active { box-shadow: 0 6px 18px var(--glow); }
.ui-client .svc-picked { box-shadow: 0 6px 18px var(--glow); }

/* ---------- números ---------- */
.ui-client .order { border-radius: var(--radius); border: 1px solid var(--line); padding: 16px; gap: 12px; box-shadow: var(--shadow); }
.ui-client .o-head { gap: 12px; }
.ui-client .o-head .logo-tile { width: 42px; height: 42px; border-radius: 14px; }
.ui-client .o-numline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ui-client .o-numline .phone { font: 600 18px 'Inter', system-ui, sans-serif; letter-spacing: -.015em; }
.ui-client .o-phonebtn { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.ui-client .o-phonebtn .o-copy { width: 16px; height: 16px; color: var(--muted); }
.ui-client .o-codechip { display: inline-flex; align-items: center; gap: 6px; flex: none; border: 0; border-radius: 12px; padding: 6px 10px; cursor: pointer; background: var(--oksoft); color: var(--ok); font: 700 14.5px 'Inter', system-ui, sans-serif; letter-spacing: .08em; animation: pop .5s var(--spring) backwards; }
.ui-client .o-codechip .o-copy { width: 13px; height: 13px; color: var(--ok); }
.ui-client .o-numline.is-wait { background: var(--fill); border-radius: 16px; padding: 12px 14px; }
.ui-client .o-wait { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.ui-client .o-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2.5px solid var(--track); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.ui-client .order .actions { gap: 8px; }
.ui-client .order .actions .btn { flex: 1 1 0; padding: 9px 6px; font-size: 12.5px; white-space: normal; line-height: 1.2; }
.ui-client .order .actions .btn.primary { box-shadow: none; }

/* ---------- cuenta ---------- */
.ui-client .ac-group { border-radius: var(--radius); border: 1px solid var(--line); }
.ui-client .ac-badge { background: var(--soft); color: var(--accent); box-shadow: none; border-radius: 11px; }
.ui-client .bg-green, .ui-client .bg-teal { background: var(--oksoft); color: var(--ok); }
.ui-client .bg-red { background: var(--badsoft); color: var(--bad); }
.ui-client .bg-orange { background: var(--warnsoft); color: var(--warn); }
.ui-client .bg-tg { background: rgba(42, 143, 214, .14); color: #3ba3e0; }
.ui-client .bg-pink { background: rgba(214, 60, 140, .13); color: #d6428f; }
.ui-client .bg-grey { background: var(--fill); color: var(--muted); }
.ui-client .ac-row[data-go="friends"] { background: linear-gradient(135deg, var(--hero1), var(--hero2)); color: #fff; }
.ui-client .ac-row[data-go="friends"] .ac-s, .ui-client .ac-row[data-go="friends"] .chev { color: rgba(255, 255, 255, .9); }
.ui-client .ac-row[data-go="friends"] .ac-badge { background: rgba(255, 255, 255, .2); color: #fff; }
.ui-client .theme-seg { background: var(--track); border-radius: 999px; }
.ui-client .theme-seg button { border-radius: 999px; }
.ui-client .theme-seg button.on { background: var(--tab); box-shadow: 0 1px 2px rgba(20, 20, 50, .1); }
.ui-client .ledger-day { background: var(--fill); }

/* ---------- ventanas flotantes ---------- */
.ui-client .sheet-panel { background: var(--card-solid); border-radius: 32px 32px 0 0; }
@media (min-width: 700px) { .ui-client .sheet-panel { border-radius: 30px; } }
.ui-client .amount-chips { margin: 16px 0 12px; }
.ui-client .amount-chips button { border-radius: 16px; }
.ui-client .amount-chips button.on { background: var(--soft); border-color: var(--accent); color: var(--accent); }

/* recarga: aviso USDT/BEP20, monto editable, deslizador */
.ui-client .net-warn { gap: 10px; padding: 14px; background: var(--warnsoft); color: var(--text); border-radius: 22px; margin-top: 12px; }
.ui-client .nw-head { display: flex; align-items: center; gap: 12px; }
.ui-client .nw-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 8px 16px -4px rgba(38, 161, 123, .55); }
.ui-client .nw-ico svg { display: block; width: 46px; height: 46px; }
.ui-client .net-warn b { display: block; font-size: 16px; letter-spacing: -.015em; color: var(--text); }
.ui-client .nw-head span { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ui-client .nw-head > span.nw-ico { display: block; }
.ui-client .net-warn p { margin: 0; font-size: 12.5px; line-height: 1.45; opacity: .85; }
.ui-client .tp-amt { text-align: center; margin: 14px 0 2px; }
.ui-client .tp-row { display: inline-flex; align-items: baseline; gap: 2px; padding: 0 14px 4px; border-bottom: 2px dashed var(--line); }
.ui-client .tp-row:focus-within { border-bottom-color: var(--accent); }
.ui-client .tp-cur { font-size: 34px; font-weight: 700; letter-spacing: -.04em; color: var(--accent); }
.ui-client #topup-form .tp-row input, .ui-client #topup-form .tp-row input:focus {
  width: 1.3ch; min-width: 1.3ch; max-width: 260px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; text-align: center;
  font: 700 50px/1.1 'Inter', system-ui, sans-serif; letter-spacing: -.045em; color: var(--accent);
}
.ui-client .tp-row small { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.ui-client .tp-tag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.ui-client .tp-tag.min { color: var(--ok); background: var(--oksoft); }
.ui-client .tp-tag.mid { color: var(--muted); background: var(--fill); }
.ui-client .tp-tag.err { color: var(--bad); background: var(--badsoft); }
.ui-client .tp-sl { margin-top: 12px; }
.ui-client #topup-form .tp-sl input {
  -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; cursor: pointer;
}
.ui-client .tp-sl input::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--btn) 0, var(--hero2) var(--p, 0%), var(--track) var(--p, 0%)); }
.ui-client .tp-sl input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .28), 0 0 0 6px var(--soft); }
.ui-client .tp-sl input::-moz-range-track { height: 10px; border-radius: 999px; background: var(--track); }
.ui-client .tp-sl input::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--btn); }
.ui-client .tp-sl input::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .28), 0 0 0 6px var(--soft); }
.ui-client .tp-ticks { position: relative; height: 18px; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.ui-client .tp-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.ui-client .tp-ticks span:first-child { transform: none; }
.ui-client .tp-ticks span:last-child { transform: translateX(-100%); }
.ui-client .tp-after { margin: 10px 2px 0; font-size: 12.5px; text-align: center; }
.ui-client #tp-pay:disabled { opacity: .55; box-shadow: none; }

/* ---------- acceso ---------- */
.ui-client .auth { border-radius: var(--radius); }
.ui-client .tabs, .ui-client #auth .tabs { background: var(--track); border-radius: 999px; }
.ui-client .tabs::before, .ui-client #auth .tabs::before { background: var(--tab); border-radius: 999px; box-shadow: 0 1px 2px rgba(20, 20, 50, .1); }
.ui-client .tab, .ui-client #auth .tab { border-radius: 999px; }
.ui-client #auth form > .btn.primary { border-radius: 999px; box-shadow: 0 8px 20px var(--glow); }
.ui-client .hero-icon { background: var(--btn); box-shadow: 0 10px 24px var(--glow); }
.ui-client .hero-logo { filter: drop-shadow(0 12px 26px var(--glow)); }

/* ---------- navegación: píldora con la pestaña activa en blanco (y botón + en móvil) ---------- */
.ui-client .tabbar { background: var(--track); border: 0; border-radius: 999px; padding: 5px; box-shadow: none; }
.ui-client .tabbar button { border-radius: 999px; color: var(--muted); }
.ui-client .tabbar button.on { background: var(--tab); color: var(--text); box-shadow: 0 1px 2px rgba(20, 20, 50, .08), 0 4px 14px rgba(20, 20, 50, .08); }
.ui-client .tab-fab { display: none; }
.ui-client .svc-tabs { display: flex; gap: 4px; background: var(--track); border-radius: 999px; padding: 4px; margin: 4px 0 16px; }
.ui-client .svc-tabs[hidden] { display: none; }
.ui-client .svc-tabs button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 9px 6px; font: 600 13.5px inherit; font-family: inherit; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.ui-client .svc-tabs button.on { background: var(--tab); color: var(--text); box-shadow: 0 1px 2px rgba(20, 20, 50, .08), 0 4px 14px rgba(20, 20, 50, .08); }
.ui-client .svc-tab-empty { text-align: center; padding: 22px 12px; }
@media (min-width: 821px) {
  .ui-client .hs-chart { max-width: 460px; margin: 6px auto 0; }
  .ui-client #shop > .view { max-width: 760px; margin-left: auto; margin-right: auto; }
  .ui-client .tabbar { margin-left: auto; margin-right: auto; }
}
/* ---- Escritorio (≥1024 px): panel con menú lateral a la izquierda y contenido a la derecha; en móvil y tableta nada de esto aplica ---- */
.ui-client .home-col { display: contents; }
.ui-client .tab-fab span { display: none; }
@media (min-width: 1024px) {
  .ui-client body:has(#shop:not([hidden])) main { max-width: 1240px; }
  .ui-client #shop { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 0 36px; align-items: start; padding-top: 8px; min-height: calc(100vh - 220px); }
  .ui-client #shop > .view { grid-column: 2; grid-row: 1; min-width: 0; max-width: none; margin: 0; }
  .ui-client #shop > .view[data-view="friends"],
  .ui-client #shop > .view[data-view="ledger"] { max-width: 720px; }

  /* menú lateral */
  .ui-client .tabbar {
    grid-column: 1; grid-row: 1; position: sticky; top: 88px; flex-direction: column; align-items: stretch; gap: 4px; max-width: none; margin: 0; padding: 10px;
    background: var(--card-solid); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
  }
  .ui-client .tabbar button { flex: none; justify-content: flex-start; gap: 13px; padding: 13px 16px; border-radius: 17px; font-size: 15px; font-weight: 600; }
  .ui-client .tabbar button svg { width: 22px; height: 22px; }
  .ui-client .tabbar button:hover { background: var(--fill); color: var(--text); }
  .ui-client .tabbar button.on { background: var(--soft); color: var(--accent); box-shadow: none; }
  .ui-client .tabbar button.on::before { display: none; }
  .ui-client .tab-fab {
    display: flex; align-items: center; gap: 13px; grid-column: 1; grid-row: 1; align-self: end; position: sticky; bottom: 24px; z-index: 15; width: 232px; box-sizing: border-box;
    padding: 13px 20px; border-radius: 20px; background: var(--card-solid) none; border: 1px solid var(--line); box-shadow: var(--shadow);
    color: var(--text); font: 600 15px 'Inter', system-ui, sans-serif; text-decoration: none; transition: transform .2s var(--ease), background .2s;
  }
  .ui-client .tab-fab:hover { background: var(--fill); transform: translateY(-1px); }
  .ui-client .tab-fab svg { width: 22px; height: 22px; fill: #229ed9; flex: none; }
  .ui-client .tab-fab span { display: inline; }
  .ui-client body:has(#shop:not([hidden])) .fab-support { display: none; }

  /* Inicio: saldo + resumen arriba a todo el ancho; debajo, tarjetas en dos columnas */
  .ui-client .view[data-view="home"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .ui-client .view[data-view="home"] > .home-col { display: contents; }
  .ui-client .view[data-view="home"] .hero,
  .ui-client .view[data-view="home"] #home-spend,
  .ui-client .view[data-view="home"] #low-balance,
  .ui-client .view[data-view="home"] #home-announce,
  .ui-client .view[data-view="home"] #home-active,
  .ui-client .view[data-view="home"] #home-quick,
  .ui-client .view[data-view="home"] #home-last,
  .ui-client .view[data-view="home"] #guide { margin: 0; }
  .ui-client .view[data-view="home"] .hero,
  .ui-client .view[data-view="home"] #low-balance,
  .ui-client .view[data-view="home"] #home-announce,
  .ui-client .view[data-view="home"] #guide,
  .ui-client .view[data-view="home"] #home-last { grid-column: 1 / -1; }
  .ui-client .hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 20px; align-items: stretch; }
  .ui-client .hero-user, .ui-client .hero .sys-status { grid-column: 1 / -1; }
  .ui-client .hero .sys-status { justify-self: start; margin-top: 12px; }
  .ui-client #home-quick .svc-chips { flex-wrap: wrap; overflow: visible; }
  .ui-client .hero-wallet { grid-column: 1; align-self: stretch; }
  .ui-client .hero-stats { grid-column: 2; margin-top: 0; align-content: stretch; }
  .ui-client .hero-stats > div { height: 100%; }
  .ui-client .hs-chart { max-width: none; }

  /* Comprar */
  .ui-client .pop-card { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .ui-client [data-view="buy"] .store, .ui-client [data-view="orders"] .store { max-width: none; }

  /* Números: pedidos en dos columnas */
  .ui-client #orders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .ui-client #orders > :not(.order) { grid-column: 1 / -1; }

  /* Cuenta: grupos en dos columnas */
  .ui-client .acc { max-width: none; columns: 2; column-gap: 28px; }
  .ui-client .acc > * { break-inside: avoid; }
  .ui-client .acc > h3.sec { break-after: avoid; margin-top: 4px; }
}@media (max-width: 820px) {
  .ui-client .tabbar {
    position: fixed; left: 14px; right: 88px; bottom: max(18px, env(safe-area-inset-bottom)); top: auto; z-index: 25; max-width: none; margin: 0;
    padding: 6px; gap: 0; justify-content: space-between; border: 0; border-radius: 999px; box-shadow: 0 10px 30px rgba(20, 20, 50, .16);
  }
  .ui-client .tabbar button { flex: 0 0 auto; flex-direction: row; gap: 8px; padding: 13px 15px; font-size: 14px; border-radius: 999px; }
  .ui-client .tabbar button svg { width: 22px; height: 22px; }
  .ui-client .tabbar button.on { color: var(--text); background: var(--tab) !important; box-shadow: 0 1px 2px rgba(20, 20, 50, .08), 0 4px 14px rgba(20, 20, 50, .1) !important; }
  .ui-client .tabbar button.on::before { display: none; }
  .ui-client .tabbar button:not(.on) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ui-client .tab-fab {
    display: grid; place-items: center; position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 26;
    width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: var(--btn); box-shadow: 0 10px 24px var(--glow);
    transition: transform .25s var(--spring);
  }
  .ui-client .tab-fab:active { transform: scale(.92); }
  .ui-client .tab-fab svg { width: 26px; height: 26px; fill: currentColor; }
  .ui-client body:has(#shop:not([hidden])) .fab-support { display: none; }   /* el botón redondo de la barra ya es el soporte */
}

/* «Todo operativo» en la barra superior, al extremo derecho (solo en móvil/tableta con sesión); en escritorio sigue en la tarjeta de saldo */
.ui-client .sys-top { display: none; }
@media (max-width: 820px) {
  .ui-client body:has(#shop:not([hidden])) .sys-top { display: inline-flex; margin: 0 0 0 8px; padding: 6px 11px; font-size: 12px; white-space: nowrap; }
  .ui-client body:has(#shop:not([hidden])) .hero .sys-status { display: none !important; }
}

/* ---- Páginas de texto (preguntas frecuentes, contacto, términos, reembolsos, privacidad, eliminar cuenta) con el mismo diseño de la tienda ---- */
.ui-client .doc { max-width: 860px; padding-top: 30px; }
.ui-client .doc-card { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px 42px; }
.ui-client .doc-card h1 { font: 700 34px/1.15 'Inter', system-ui, sans-serif; letter-spacing: -.035em; margin-bottom: 6px; }
.ui-client .doc-card h2 { font: 650 18px/1.3 'Inter', system-ui, sans-serif; letter-spacing: -.02em; margin: 32px 0 8px; }
.ui-client .doc-card > .muted:first-of-type, .ui-client .doc-card h1 + .muted { color: var(--muted); font-size: 15px; }
.ui-client .doc-card p, .ui-client .doc-card li { color: var(--text); line-height: 1.65; }
.ui-client .doc-card li::marker { color: var(--accent); }
.ui-client .doc-card a { color: var(--accent); }
.ui-client .callout { background: var(--fill); border-radius: 18px; }
.ui-client .callout.ok { background: var(--oksoft); }
.ui-client .callout.warn { background: var(--warnsoft); }
.ui-client .faq { gap: 12px; }
.ui-client .faq details { background: var(--fill); border: 1px solid transparent; border-radius: 20px; }
.ui-client .faq details[open] { background: var(--card-solid); border-color: var(--line); box-shadow: var(--shadow); }
.ui-client .faq summary { padding: 17px 52px 17px 20px; }
.ui-client .faq summary::after { border-color: var(--accent); }
.ui-client .faq details > div { padding: 0 20px 18px; }
.ui-client .contact-grid { gap: 14px; }
.ui-client .contact-card { background: var(--fill); border-radius: 22px; padding: 18px; }
.ui-client .contact-card:hover { background: var(--fill-strong); }
.ui-client .ci { border-radius: 16px; box-shadow: 0 8px 14px -4px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .28); }
.ui-client .doc-card .auth-lang a { color: var(--muted); }
@media (max-width: 560px) {
  .ui-client .doc { padding-top: 18px; }
  .ui-client .doc-card { padding: 24px 20px; border-radius: 24px; }
  .ui-client .doc-card h1 { font-size: 28px; }
}
.ui-client .fab-support { background: var(--btn); color: #fff; box-shadow: 0 10px 24px var(--glow); }
.ui-client .pop-item .pop-from { display: block; margin-top: 1px; font-size: 11px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ui-client .doc-card a.btn { color: #fff; background: var(--btn); border-radius: 999px; box-shadow: 0 10px 24px var(--glow); text-decoration: none; font-weight: 600; }
.ui-client .doc-card code { background: var(--fill); border-radius: 10px; padding: 8px 10px; display: block; font-size: 12.5px; }
.ui-client .doc-card > img:first-child { box-shadow: 0 14px 28px -8px rgba(0, 0, 0, .3); }

/* «Todo operativo» también en la barra superior de la pantalla de entrada (login y registro), en todos los tamaños */
.ui-client body:has(#auth:not([hidden])) .sys-top { display: inline-flex; margin: 0 0 0 8px; padding: 6px 11px; font-size: 12px; white-space: nowrap; }
.ui-client #auth .sys-status { display: none !important; }
