/* NanUSD Wallet — sistema de diseño basado en NANUSD Community Venezuela */

@font-face {
  font-family: "Sora";
  src: url("fonts/sora-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/jakarta-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #f2f7fd;
  --bg-2: #e6effa;
  --surface: #ffffff;
  --surface-2: #eaf2fc;
  --line: #b6d0ee;
  --line-2: #d6e4f5;

  --ink: #0b1c2f;
  --ink-2: #29445f;
  --muted: #425d7a;
  --faint: #566f8b;

  --blue: #4a7ac9;
  --blue-2: #5d93dd;
  --blue-deep: #3560a8;
  --blue-soft: #dce9f9;
  --sky: #86b6e7;
  --sky-soft: #eaf1fb;

  --positive: #14795a;
  --positive-soft: #e2f5ee;
  --negative: #bf3a4c;
  --negative-soft: #fdebee;
  --warning: #96620f;
  --warning-soft: #fdf4e3;
  --warning-line: #f0dcb5;

  --radius: 20px;
  --shadow: 0 1px 2px rgba(16, 38, 63, 0.05), 0 10px 20px -14px rgba(16, 38, 63, 0.30);
  --shadow-lg: 0 26px 60px -28px rgba(16, 38, 63, 0.35);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Sora", var(--font);

  --glow-1: rgba(134, 182, 231, 0.30);
  --glow-2: rgba(86, 134, 216, 0.12);
  --glow-3: rgba(134, 182, 231, 0.16);

  --accent: #4374c6;
  --accent-2: #86b6e7;
  --accent-deep: #2f5aa0;
  --accent-soft: #dce9f9;
  --accent-ink: #ffffff;
  --accent-grad: linear-gradient(135deg, #5d93dd 0%, #4374c6 55%, #2f5aa0 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="sepia"]) {
    --bg: #0a1524;
    --bg-2: #0d1c31;
    --surface: #122740;
    --surface-2: #17304f;
    --line: #24405f;
    --line-2: #1d3654;

    --ink: #f2f7fe;
    --ink-2: #c4d9f2;
    --muted: #93aed0;
    --faint: #7793b4;

    --blue: #5d93dd;
    --blue-2: #86b6e7;
    --blue-deep: #a9cbf0;
    --blue-soft: #1b3556;
    --sky: #86b6e7;
    --sky-soft: #16293f;

    --positive: #3fd79f;
    --positive-soft: #12302a;
    --negative: #ff8a96;
    --negative-soft: #331a22;
    --warning: #f0b75e;
    --warning-soft: #2c2314;
    --warning-line: #4a3a1d;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 26px 60px -24px rgba(0, 0, 0, 0.7);

    --glow-1: rgba(93, 147, 221, 0.26);
    --glow-2: rgba(134, 182, 231, 0.12);
    --glow-3: rgba(61, 109, 184, 0.18);

    --accent: #7faded;
    --accent-2: #a9cbf0;
    --accent-deep: #b9d3f2;
    --accent-soft: #1b3556;
    --accent-ink: #071a2f;
    --accent-grad: linear-gradient(135deg, #8fbcef 0%, #6fa3e8 55%, #4c82d2 100%);
  }
}

/* XNO mantiene el azul profundo de la paleta para distinguirse de NanUSD */

body[data-net="xno"] {
  --accent: #2f5fa8;
  --accent-2: #5686d8;
  --accent-deep: #2a5497;
  --accent-soft: #d8e4f5;
  --accent-ink: #ffffff;
  --accent-grad: linear-gradient(135deg, #3d6db8 0%, #2f5fa8 60%, #244b87 100%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="sepia"]) body[data-net="xno"] {
    --accent: #6c9ee0;
    --accent-2: #8fbcef;
    --accent-deep: #b9d3f2;
    --accent-soft: #172b47;
    --accent-ink: #071a2f;
    --accent-grad: linear-gradient(135deg, #7aa9e6 0%, #5d93dd 55%, #3d6db8 100%);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html { scrollbar-gutter: stable; }

body {
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  /* Sin doble toque que haga zoom: la pantalla se queda igual. */
  touch-action: manipulation;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 460px at 88% -8%, var(--glow-1), transparent 62%),
    radial-gradient(620px 420px at 2% 4%, var(--glow-2), transparent 68%),
    radial-gradient(900px 620px at 50% 108%, var(--glow-3), transparent 70%);
  transition: background 0.5s ease;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 448px;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: calc(10px + env(safe-area-inset-top)) 0 0;
}

body[data-screen="onboarding"] .app,
body[data-screen="lock"] .app {
  padding-bottom: 0;
  min-height: 100dvh;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
}

input, textarea, select {
  font-family: inherit;
  color: inherit;
  /* 16px o más: con letra más pequeña el teléfono hace zoom solo al escribir. */
  font-size: 16px;
  touch-action: manipulation;
}

a, .nav-btn, .btn, .chip, .seg button { touch-action: manipulation; }

a { color: var(--accent-deep); text-decoration: none; font-weight: 600; }

svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  flex: 0 0 auto;
}

.hidden { display: none !important; }

/* ---------------------------------- topbar -------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 6px;
  gap: 12px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 1px 1px rgba(16, 38, 63, 0.10), 0 8px 16px -12px color-mix(in srgb, var(--accent) 90%, transparent);
  flex: 0 0 auto;
}

.brand-mark svg { width: 21px; height: 21px; }

.brand-text { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.brand-name, .brand-small { overflow: hidden; text-overflow: ellipsis; }

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--ink);
}

.brand-name span { color: var(--accent-deep); }

.brand-small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
}

/* Cómo va el saldo frente al dólar, dentro de la tarjeta del monedero. */
.vc-delta { margin-top: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.78); }
.vc-delta.up { color: #a8f0c6; }
.vc-delta.down { color: #ffc2c2; }

.top-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }

/* Hora de Venezuela, siempre a la vista en la barra superior. */
.clock {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

/* En teléfonos estrechos no cabe el lema junto al reloj y los dos botones: se
   oculta el lema y se aprieta un poco todo para que "MONEDERO NCV" no se corte. */
@media (max-width: 430px) {
  .topbar { padding: 10px 14px 6px; gap: 8px; }
  .brand-small { display: none; }
  .brand-name { font-size: 15px; }
  .top-actions { gap: 6px; }
  .icon-btn { width: 34px; height: 34px; border-radius: 10px; }
  .icon-btn svg { width: 17px; height: 17px; }
  .clock { font-size: 10.5px; padding: 5px 7px; }
}

@media (max-width: 400px) {
  .topbar { padding: 8px 10px 6px; gap: 5px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .brand-name { font-size: 13.5px; }
  .top-actions { gap: 4px; }
  .icon-btn { width: 30px; height: 30px; border-radius: 9px; }
  .icon-btn svg { width: 16px; height: 16px; }
  .clock { font-size: 10px; padding: 4px 5px; }
}

/* Por debajo de 340 px ya no cabe el logo: se queda el nombre y los controles. */
@media (max-width: 340px) {
  .brand-mark { display: none; }
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; }

/* ------------------------------ network switch ---------------------------- */

.net-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 12px 16px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.net-switch button {
  flex: 1;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.net-switch button .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.net-switch button.active {
  background: var(--accent-grad);
  color: var(--accent-ink);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 90%, transparent);
}

.net-switch button.active .dot { background: currentColor; opacity: 0.9; }


/* ---------------------------------- hero --------------------------------- */

.hero {
  position: relative;
  margin: 14px 16px 0;
  padding: 20px 20px 16px;
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 58%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.hero-tags { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.hero-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.hero-status.on { color: var(--positive); background: var(--positive-soft); }
.hero-status.off { color: var(--muted); background: var(--surface-2); }

.hero-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-label-row { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }

.hero-eye {
  width: 32px;
  height: 32px;
  margin: -6px 0;
  color: var(--muted);
  flex: 0 0 auto;
}

.hero-eye:hover { color: var(--accent-deep); background: var(--surface-2); }

.hero-amount .secret {
  letter-spacing: 0.06em;
  color: var(--faint);
}

.asset-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent-deep);
}

.hero-amount {
  font-family: var(--display);
  font-size: clamp(38px, 11vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 12px 0 2px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--ink);
}

.hero-amount .unknown {
  display: inline-block;
  color: var(--faint);
  font-weight: 600;
  font-size: 0.62em;
  transform: translateY(-0.12em);
}

.hero-amount.compact {
  font-size: clamp(24px, 7.4vw, 32px);
  letter-spacing: -0.03em;
}

.unit-switch {
  display: inline-flex;
  gap: 2px;
  margin: 10px 0 8px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
}

.unit-switch button {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.unit-switch button.active {
  background: var(--accent-grad);
  color: #fff;
}

.hero-amount .sym {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-fiat {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.hero-rate {
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
  margin-top: 4px;
}

.hero-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.addr-chip {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.addr-chip:hover { border-color: var(--line); color: var(--ink); }
.addr-chip .addr-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-chip svg { width: 15px; height: 15px; margin-left: auto; color: var(--muted); }

.pending-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  animation: fadeIn 0.3s ease;
}

.pending-banner .pb-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--accent-deep);
}

.pending-banner .pb-text { flex: 1; min-width: 0; }
.pending-banner strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.pending-banner span { font-size: 12px; color: var(--ink-2); }

.mini-btn {
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  background: var(--accent-grad);
  color: var(--accent-ink);
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.mini-btn:hover { filter: brightness(1.05); }
.mini-btn:active { transform: scale(0.96); }
.mini-btn:disabled { opacity: 0.55; }

/* ---------------------------- instalar como app --------------------------- */

.install-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 14px 16px 0;
  padding: 12px 12px 12px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(15, 40, 70, 0.06);
  animation: fadeIn 0.3s ease;
}

.install-card > img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
}

.install-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.install-text strong { font-size: 13px; color: var(--ink); }
.install-text span { font-size: 11.5px; color: var(--ink-2); line-height: 1.35; }

.install-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--muted);
  background: var(--surface-2);
}

.install-close .icon { width: 14px; height: 14px; }

.install-sheet-icon {
  display: block;
  margin: 0 auto 4px;
  border-radius: 18px;
}

.install-steps {
  margin: 6px 0 2px;
  padding-left: 20px;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.install-steps li::marker { color: var(--accent-deep); font-weight: 800; }

/* ---------------------------------- swap --------------------------------- */

.swap-dir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  text-align: left;
}

.swap-dir:active { transform: scale(0.99); }

.swap-side { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.swap-side b { font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--ink); }
.swap-side small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swap-side.to { align-items: flex-end; text-align: right; }

.swap-arrows {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent-deep);
}

.swap-arrows svg { width: 16px; height: 16px; }

.swap-receive {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.swap-receive .field-label { color: var(--accent-deep); }

.swap-receive-amount {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.swap-receive .amount-note { color: var(--ink-2); }

/* -------------------------------- actions -------------------------------- */

.actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 14px 16px 0;
}

.act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 8px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.2s ease, filter 0.2s ease;
}

.act svg { width: 17px; height: 17px; }
.act:active { transform: scale(0.98); }
.act:hover { background: var(--surface-2); }

.act.primary {
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 85%, transparent);
}

.act.primary:hover { filter: brightness(1.04); background: var(--accent-grad); }

.act:disabled { opacity: 0.45; cursor: not-allowed; }

/* --------------------------------- sections ------------------------------- */

.section { padding: 24px 20px 4px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.link-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tx-list { display: flex; flex-direction: column; }

.tx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  width: 100%;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.tx:last-child { border-bottom: 0; }
.tx:hover { background: var(--surface-2); }

.tx-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--muted);
}

.tx-icon.in { color: var(--positive); background: var(--positive-soft); }
.tx-icon.out { color: var(--accent-deep); background: var(--accent-soft); }
.tx-icon svg { width: 17px; height: 17px; }

.tx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tx-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.tx-sub {
  font-size: 12px;
  color: var(--faint);
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-amount {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tx-amount.in { color: var(--positive); }
.tx-amount.out { color: var(--ink); }

.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 34px 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.empty svg { width: 22px; height: 22px; opacity: 0.7; }

.notice {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--warning-soft);
  border: 1px solid var(--warning-line);
  font-size: 12px;
  line-height: 1.55;
  color: var(--warning);
}

.notice svg { width: 17px; height: 17px; color: var(--warning); margin-top: 1px; }
.notice.info { background: var(--sky-soft); border-color: color-mix(in srgb, var(--sky) 55%, transparent); color: var(--ink-2); }
.notice.info svg { color: var(--blue-deep); }
.notice .notice-body { flex: 1; }
.notice strong { color: var(--ink); font-weight: 700; }
.notice a { color: var(--blue-deep); font-weight: 700; }

/* ---------------------------------- nav ---------------------------------- */

.nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -26px;
  height: 26px;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 94%, transparent), transparent);
  pointer-events: none;
}

.nav {
  position: sticky;
  bottom: 0;
  width: 100%;
  flex: none;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 0 rgba(16, 38, 63, 0.04);
  z-index: 20;
}

.nav-btn {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 0 5px;
  border-radius: 13px;
  color: var(--faint);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-btn svg { width: 23px; height: 23px; transition: transform 0.14s ease; }
.nav-btn:active svg { transform: scale(1.3); }
.nav-btn.active { color: var(--accent-deep); background: var(--surface-2); }
.nav-btn.active svg { color: var(--accent); transform: scale(1.08); }

/* --------------------------------- sheets -------------------------------- */

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(16, 38, 63, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}

.sheet {
  width: 100%;
  max-width: 448px;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  padding: 8px 20px calc(26px + env(safe-area-inset-bottom));
  box-shadow: 0 -24px 60px -24px rgba(16, 38, 63, 0.4);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: none;
}

.sheet::-webkit-scrollbar { display: none; }

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  margin: 4px auto 14px;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.sheet-head .icon-btn { width: 34px; height: 34px; margin-top: -2px; }

.sheet-title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.sheet-sub { font-size: 13px; color: var(--muted); margin: -10px 0 16px; line-height: 1.5; }

.sheet-body { display: flex; flex-direction: column; gap: 14px; }

/* --------------------------------- fields -------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  font-size: 16px;
  outline: none;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--accent-soft); background: var(--surface); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; letter-spacing: 0.01em; }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.6; }

.amount-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
}

.amount-box:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--surface); }

.amount-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.amount-input::placeholder { color: var(--faint); }
.amount-suffix { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); }

.amount-note { font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; }

/* Botón para escribir el monto en la moneda del monedero o en bolívares. */
.unit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}

.unit-btn:active { background: var(--surface-2); }
.unit-btn .icon { width: 14px; height: 14px; color: var(--muted); }

/* Teclado interno de Enviar y Recibir. */
.pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.pad-key {
  padding: 12px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.15s ease, transform 0.1s ease;
}

.pad-key:active { background: var(--surface-2); transform: scale(0.98); }
.pad-key.is-fn { color: var(--muted); font-size: 16px; }

.hint { font-size: 12px; color: var(--faint); line-height: 1.55; }
.error-text { font-size: 13px; color: var(--negative); line-height: 1.45; font-weight: 600; }

/* --------------------------------- buttons -------------------------------- */

.btn {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.btn:active { transform: scale(0.985); }
.btn svg { width: 18px; height: 18px; }

.btn.primary {
  background: var(--accent-grad);
  color: var(--accent-ink);
  box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--accent) 90%, transparent);
}

.btn.primary:hover { filter: brightness(1.04); }

.btn.ghost {
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn.ghost:hover { background: var(--surface-2); }

.btn.danger { background: var(--negative-soft); border: 1px solid color-mix(in srgb, var(--negative) 30%, transparent); color: var(--negative); }
.btn:disabled, .btn.is-disabled { opacity: 0.45; cursor: not-allowed; transform: none; pointer-events: none; }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* --------------------------------- review -------------------------------- */

.review {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid transparent;
}

.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}

.review-row:last-child { border-bottom: 0; }
.review-label { color: var(--muted); font-size: 13px; }
.review-value { font-weight: 600; text-align: right; color: var(--ink); }
.review-value.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.review-value.accent { color: var(--positive); font-weight: 700; }

/* ---------------------------------- QR ----------------------------------- */

.qr-card {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.qr-card svg { width: 100%; max-width: 218px; height: auto; display: block; border-radius: 8px; }

.addr-full {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
  word-break: break-all;
  text-align: center;
  color: var(--ink-2);
  user-select: all;
}

/* ------------------------------- onboarding ------------------------------ */

.onboard {
  min-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  padding: 20px 22px calc(26px + env(safe-area-inset-bottom));
  animation: fadeIn 0.4s ease;
}

.onboard-top { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 16px 0 8px; }

.hero-logo {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 24px 48px -22px color-mix(in srgb, var(--accent) 90%, transparent);
}

.hero-logo svg { width: 40px; height: 40px; }

.onboard h1 {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 6px 0 0;
  color: var(--ink);
}

.onboard h1 em {
  font-style: normal;
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--accent-2) 75%, transparent) 64%);
  padding: 0 2px;
}

.onboard .lead { font-size: 14px; line-height: 1.62; color: var(--ink-2); margin: 0; max-width: 36ch; }

.feature-list { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 0; }

.feature {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.feature .f-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.feature .f-icon svg { width: 16px; height: 16px; }
.feature strong { display: block; color: var(--ink); font-weight: 700; font-size: 13px; margin-bottom: 1px; }

.onboard-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }

.steps { display: flex; gap: 6px; justify-content: center; padding: 4px 0 14px; }

.steps span { width: 22px; height: 3px; border-radius: 99px; background: var(--line); transition: background 0.3s ease; }
.steps span.on { background: var(--accent); }

.seed-box {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Una sola columna: el orden que se ve es el orden real al copiar.
   El número de grupo es decorativo (::before) y nunca entra en la copia. */
.seed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.55;
  color: var(--ink);
  counter-reset: seedgroup;
  user-select: text;
  -webkit-user-select: text;
}

.seed-grid span {
  display: flex;
  gap: 12px;
  align-items: baseline;
  white-space: nowrap;
  user-select: text;
  -webkit-user-select: text;
}

.seed-grid span::before {
  counter-increment: seedgroup;
  content: counter(seedgroup);
  min-width: 14px;
  text-align: right;
  color: var(--faint);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  user-select: none;
  -webkit-user-select: none;
}

.check-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}

.check-row input { accent-color: var(--accent); width: 17px; height: 17px; margin: 1px 0 0; flex: 0 0 auto; }

/* ---------------------------------- lock --------------------------------- */

.lock-wrap {
  min-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 24px 24px calc(30px + env(safe-area-inset-bottom));
  animation: fadeIn 0.35s ease;
}

.lock-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: var(--shadow);
}

.lock-icon svg { width: 26px; height: 26px; }
.lock-icon.success { background: var(--positive-soft); color: var(--positive); box-shadow: none; }

.lock-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: lockSpin 0.9s linear infinite;
}

@keyframes lockSpin { to { transform: rotate(360deg); } }

.lock-waiting { justify-content: center; align-items: center; text-align: center; }

.lock-wrap h1 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 4px 0 0;
  font-weight: 800;
  color: var(--ink);
}

/* -------------------------------- settings ------------------------------- */

.settings-group {
  margin: 0 0 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  font-size: 14px;
  transition: background 0.2s ease;
}

.settings-row:last-child { border-bottom: 0; }

.net-toggle { cursor: pointer; }

.net-toggle .switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
}

.net-toggle .switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
}

.net-toggle .track {
  position: relative;
  display: block;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 32%, transparent);
  transition: background 0.2s ease;
}

.net-toggle .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.net-toggle input:checked + .track { background: var(--accent); }

.net-toggle input:checked + .track::after { transform: translateX(18px); }

.net-toggle input:disabled + .track { opacity: 0.45; }

.net-toggle input:disabled { cursor: not-allowed; }
.settings-row:hover { background: var(--surface-2); }
.settings-row .s-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-deep); flex: 0 0 auto; }
.settings-row .s-icon svg { width: 16px; height: 16px; }
.settings-row .s-main { flex: 1; min-width: 0; }
.settings-row .s-title { display: block; font-weight: 700; color: var(--ink); }
.settings-row .s-sub { display: block; font-size: 12px; line-height: 1.4; color: var(--faint); margin-top: 2px; }
.settings-row .s-value { font-size: 12px; color: var(--faint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.settings-row svg.chev { width: 16px; height: 16px; color: var(--faint); }
.settings-row .badge { margin-left: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--surface-2);
  color: var(--muted);
}

.badge.ok { background: var(--positive-soft); color: var(--positive); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }

.divider { height: 1px; background: var(--line); margin: 4px 0; }

.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 0; color: var(--ink); }
.kv span { color: var(--muted); }
.kv b { font-weight: 700; text-align: right; word-break: break-all; }

/* --------------------------------- toast --------------------------------- */

.toast {
  position: fixed;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: fit-content;
  top: calc(12px + env(safe-area-inset-top));
  transform: translateY(-16px);
  z-index: 90;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--ink);
  border: 1px solid transparent;
  box-shadow: 0 22px 50px -20px rgba(16, 38, 63, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--negative); }
/* Aviso tranquilo: fondo claro, sin alarmar. */
.toast.info { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: 0 18px 40px -22px rgba(16, 38, 63, 0.45); }
.toast .toast-inner { display: flex; gap: 9px; align-items: center; }
.toast .toast-inner svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* -------------------------------- spinner -------------------------------- */

.spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
}

/* ------------------------------- animations ------------------------------ */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(28px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.skeleton { animation: pulse 1.6s ease-in-out infinite; color: transparent; background: var(--surface-2); border-radius: 8px; }

@media (min-width: 520px) {
  .app { padding-top: 18px; }
  .topbar { padding-left: 22px; padding-right: 22px; }
}

/* Pantallas angostas: todo se encoge un poco para que nada se salga. */
@media (max-width: 380px) {
  .hero { margin-left: 12px; margin-right: 12px; padding: 16px 16px 14px; }
  .hero-amount { font-size: clamp(32px, 10.5vw, 42px); }
  .nav { padding-left: 4px; padding-right: 4px; }
  .nav-btn { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------ servicios p2p ------------------------------ */

.services { padding-top: 18px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px 11px 11px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: left;
  transition: transform 0.15s ease, background 0.2s ease;
}

.service-card:active { transform: scale(0.98); }
.service-card:hover { background: var(--surface-2); }

.service-ic {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.service-ic svg { width: 16px; height: 16px; }
.service-name { font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em; }
.service-sub { font-size: 10.5px; line-height: 1.25; color: var(--muted); }

.p2p-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
}

.p2p-code-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.p2p-code b {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.06em;
}

.p2p-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p2p-steps li { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); }

.p2p-steps .n {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 14px;
}

.seg button {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.seg button.active { background: var(--accent-grad); color: var(--accent-ink); }

/* Etiqueta con su selector compacto (% / NANUSD) para el monto extra. */
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.label-row .seg { padding: 2px; border-radius: 10px; }

.label-row .seg button { padding: 5px 9px; font-size: 11px; border-radius: 8px; }

.quick-row { display: flex; flex-wrap: wrap; gap: 6px; }

.quick-chip {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
}

.quick-chip:hover { background: var(--surface-2); }

/* Selector del monto extra: barra de 1 % a 9 %, de verde a rojo. */
.extra-range {
  margin-top: 8px;
  padding: 10px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.extra-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.extra-range-side { display: inline-flex; align-items: center; gap: 10px; }

.extra-range-clear {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.extra-range.is-off .extra-range-clear { display: none; }

.extra-range-value { font-size: 12.5px; font-weight: 800; color: var(--extra-tone, #1e9e5a); }

.extra-range.is-off .extra-range-value { color: var(--muted); }

.extra-range-input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 24px;
  margin: 2px 0 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.extra-range.is-off .extra-range-input { opacity: .65; }

.extra-range-input::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e9e5a 0%, #b9b836 45%, #e07a1f 70%, #d63c3c 100%);
}

.extra-range-input::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e9e5a 0%, #b9b836 45%, #e07a1f 70%, #d63c3c 100%);
}

.extra-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--extra-tone, #1e9e5a);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.extra-range-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--extra-tone, #1e9e5a);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.extra-range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}

.pos-csv { display: flex; flex-wrap: wrap; gap: 14px; margin: 2px 0 4px; }
.close-ticket { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px; }
.close-ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.close-ticket-head strong { font-size: 14px; color: var(--ink); }
.close-ticket-head span { font-size: 11.5px; color: var(--muted); text-align: right; }
.close-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.close-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.close-grid .field { margin: 0; }
.close-add { display: flex; gap: 8px; margin-top: 8px; }
.close-add .input { flex: 1; min-width: 0; }
.close-add select.input { max-width: 138px; }
.close-moves { display: flex; flex-direction: column; gap: 6px; }
.close-move { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12.5px; }
.close-move-note { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.close-move-del { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.close-diff { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
.close-diff.is-ok { background: #e8f6ee; color: #14603f; }
.close-diff.is-bad { background: #fdeceb; color: #8f2b26; }
.close-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.faq-block { margin-bottom: 18px; }
.faq-title { margin: 0 0 8px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--blue-deep); }
.faq-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 14px; margin-bottom: 7px; }
.faq-card summary { cursor: pointer; list-style: none; padding: 12px 24px 12px 0; position: relative; font-weight: 700; font-size: 13px; color: var(--ink); }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after { content: "+"; position: absolute; right: 2px; top: 11px; font-size: 17px; font-weight: 700; color: var(--blue-deep); }
.faq-card[open] summary::after { content: "–"; }
.faq-card p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.pawn-photo { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); margin: 4px 0 12px; background: var(--surface-2); }
.pawn-active { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 4px; }
.pawn-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; text-align: left; cursor: pointer; }
.pawn-row:active { background: var(--surface-2); }
.pawn-thumb { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--blue-deep); overflow: hidden; }
.pawn-thumb svg { width: 18px; height: 18px; }
.pawn-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pawn-row-title { font-weight: 700; font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pawn-row-sub { font-size: 11.5px; color: var(--muted); }
.pawn-row-badge { margin-left: auto; font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--blue-deep); white-space: nowrap; }
.pawn-row-badge.warn { background: #fff1db; color: #8a5300; }
.pawn-guide { margin: 16px 0 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 0 14px; }
.pawn-guide summary { cursor: pointer; padding: 12px 0; font-weight: 800; font-size: 13.5px; color: var(--ink); }
.pawn-guide ol { margin: 0 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.pawn-guide p { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.ops { display: flex; flex-direction: column; gap: 6px; }

.ops-title {
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.ops-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12.5px;
}

.ops-row b { font-variant-numeric: tabular-nums; }
.ops-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--muted); }
.ops-right { display: flex; align-items: center; gap: 8px; }

/* --------------------------------- mercado --------------------------------- */

.mk-entry-section { padding-top: 14px; }
.mk-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  transition: background 0.2s ease, transform 0.15s ease;
}
.mk-entry:hover { background: var(--surface-2); }
.mk-entry:active { transform: scale(0.99); }
.mk-entry-ic {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent-deep);
}
.mk-entry-ic svg { width: 19px; height: 19px; }
.mk-entry-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-entry-title { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.mk-entry-sub { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.mk-entry-go { margin-left: auto; flex: 0 0 auto; font-size: 11.5px; font-weight: 800; color: var(--accent-deep); }

/* Tarjeta compacta: la acción primero y luego el servicio. */
.mk-entry.is-compact {
  width: auto;
  min-width: 190px;
  align-self: flex-start;
  max-width: 100%;
  gap: 9px;
  padding: 9px 12px 9px 10px;
  border-radius: 13px;
}
.mk-entry.is-compact .mk-entry-ic {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
}
.mk-entry.is-compact .mk-entry-ic svg { width: 16px; height: 16px; }
.mk-entry.is-compact .mk-entry-body { gap: 1px; }
.mk-entry.is-compact .mk-entry-action {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.mk-entry.is-compact .mk-entry-title { font-size: 12.5px; }
.mk-entry.is-compact .mk-entry-sub { font-size: 10.5px; }

.mk-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.mk-back svg { width: 16px; height: 16px; }
.mk-back:hover { color: var(--ink); }
.mk-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mk-publish { width: auto; flex: 0 0 auto; padding-inline: 14px; font-size: 13px; }
.mk-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 2px;
  scrollbar-width: none;
}
.mk-chips::-webkit-scrollbar { display: none; }
.mk-chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.mk-chip.active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent-deep);
}
.mk-grid { display: grid; gap: 10px; padding-top: 12px; }
.mk-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.mk-card.is-closed { opacity: 0.7; }
.mk-thumb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 24px;
}
.mk-thumb.big { width: 64px; height: 64px; border-radius: 18px; font-size: 30px; }
.mk-thumb.has-photo { padding: 0; overflow: hidden; }
.mk-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.mk-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mk-gallery img {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface-2);
}
.mk-gallery img:first-child { grid-column: 1 / -1; height: 208px; border-radius: 18px; }

.mk-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk-photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.mk-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk-photo-x {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(16, 38, 63, 0.72);
  color: #fff;
}
.mk-photo-x svg { width: 12px; height: 12px; }
.mk-body { display: grid; gap: 3px; min-width: 0; }
.mk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mk-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mk-badge.subasta { background: var(--accent-soft); color: var(--accent-deep); }
.mk-badge.mine { background: var(--positive-soft); color: var(--positive); }
.mk-title { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.mk-price { display: block; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.mk-price small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.mk-meta { font-size: 11.5px; color: var(--muted); }
.mk-skel { display: grid; gap: 10px; padding-top: 12px; }
.mk-skel span {
  height: 78px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2));
  background-size: 200% 100%;
  animation: mk-shimmer 1.4s linear infinite;
}
@keyframes mk-shimmer { to { background-position: -200% 0; } }
.mk-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 30px 18px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  text-align: center;
}
.mk-empty-icon { font-size: 32px; }
.mk-empty strong { font-family: var(--display); font-size: 18px; }
.mk-empty span { max-width: 32ch; font-size: 13px; color: var(--muted); }
.mk-empty .btn { width: auto; margin-top: 8px; padding-inline: 18px; }
.mk-detail-head { display: flex; align-items: center; gap: 12px; }
.mk-detail-title { margin: 6px 0 0; font-family: var(--display); font-size: 21px; letter-spacing: -0.02em; }
.mk-detail-price { margin: 2px 0 0; font-family: var(--display); font-size: 22px; font-weight: 700; }
.mk-detail-price small { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.mk-detail-desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.mk-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-2);
}
.mk-block > * { min-width: 0; }
.mk-bids { display: grid; gap: 6px; }
.mk-bid {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
}
.mk-bid.top { border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.mk-bid strong { font-weight: 800; }
.mk-bid-form { display: grid; gap: 10px; }
.mk-block .input { background: var(--surface); border-color: var(--line); }
.mk-deal { border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.mk-deal .addr-chip { background: var(--surface); }
.mk-deal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-status {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mk-status.pagado { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); }
.mk-status.entregado { background: var(--warning-soft); border-color: transparent; color: var(--warning); }
.mk-status.confirmado { background: var(--positive-soft); border-color: transparent; color: var(--positive); }
.mk-status.cancelado { background: var(--negative-soft); border-color: transparent; color: var(--negative); }
.field select.input {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23818b9b' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* Logotipo de NANUSD arriba en la pantalla de bienvenida. */
.welcome-logo {
  width: 104px;
  height: 104px;
  display: block;
  margin: 2px auto 18px;
  border-radius: 26px;
  box-shadow: 0 20px 36px -20px rgba(16, 38, 63, 0.55);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.welcome-logo.sm-logo {
  width: 84px;
  height: 84px;
  border-radius: 21px;
  margin-bottom: 14px;
}

.welcome-logo.lock-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin-bottom: 16px;
}

/* Nombre de la marca, debajo del logotipo en la bienvenida. */
.welcome-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: -6px 0 2px;
}

.welcome-brand-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.15;
  color: var(--ink);
}

.welcome-brand-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.8;
}

.welcome-brand-community {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Mascota de recordatorios y de la tarjeta del despertador */
.mascot {
  width: min(56%, 210px);
  height: auto;
  display: block;
  margin: 0 auto -6px;
  /* La ilustración viene sobre fondo blanco: en el tema claro se funde con la pantalla. */
  mix-blend-mode: multiply;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.mascot.sm { width: min(42%, 150px); margin-bottom: -2px; }

@media (prefers-color-scheme: dark) {
  .mascot {
    mix-blend-mode: normal;
    background: #f7fbff;
    border-radius: 26px;
    padding: 8px;
    box-sizing: border-box;
  }
}

/* ---------------------------------- temas ---------------------------------- */
/* El acento de la marca se mantiene; cada tema cambia superficies y texto.
   "auto" sigue el modo del teléfono. */

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="sepia"] { color-scheme: light; }

html[data-theme="dark"] {
  --bg: #0a1524;
  --bg-2: #0d1c31;
  --surface: #122740;
  --surface-2: #17304f;
  --line: #24405f;
  --line-2: #1d3654;

  --ink: #f2f7fe;
  --ink-2: #c4d9f2;
  --muted: #93aed0;
  --faint: #7793b4;

  --blue: #5d93dd;
  --blue-2: #86b6e7;
  --blue-deep: #a9cbf0;
  --blue-soft: #1b3556;
  --sky: #86b6e7;
  --sky-soft: #16293f;

  --positive: #3fd79f;
  --positive-soft: #12302a;
  --negative: #ff8a96;
  --negative-soft: #331a22;
  --warning: #f0b75e;
  --warning-soft: #2c2314;
  --warning-line: #4a3a1d;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 26px 60px -24px rgba(0, 0, 0, 0.7);

  --glow-1: rgba(93, 147, 221, 0.26);
  --glow-2: rgba(134, 182, 231, 0.12);
  --glow-3: rgba(61, 109, 184, 0.18);

  --accent: #7faded;
  --accent-2: #a9cbf0;
  --accent-deep: #b9d3f2;
  --accent-soft: #1b3556;
  --accent-ink: #071a2f;
  --accent-grad: linear-gradient(135deg, #8fbcef 0%, #6fa3e8 55%, #4c82d2 100%);
}

html[data-theme="dark"] body[data-net="xno"] {
  --accent: #6c9ee0;
  --accent-2: #8fbcef;
  --accent-deep: #b9d3f2;
  --accent-soft: #172b47;
  --accent-ink: #071a2f;
  --accent-grad: linear-gradient(135deg, #7aa9e6 0%, #5d93dd 55%, #3d6db8 100%);
}

html[data-theme="sepia"] {
  --bg: #f4ead6;
  --bg-2: #ece0c8;
  --surface: #fdf7e9;
  --surface-2: #f3e8d3;
  --line: #dbc9a7;
  --line-2: #e8dabd;

  --ink: #3a2e1f;
  --ink-2: #55452f;
  --muted: #6c5940;
  --faint: #7e6a51;

  --blue: #4a6fa5;
  --blue-2: #6b8cbe;
  --blue-deep: #33557f;
  --blue-soft: #ece0c9;
  --sky: #a9bccd;
  --sky-soft: #f1e7d3;

  --positive: #4b6b3c;
  --positive-soft: #e8e5ce;
  --negative: #96453b;
  --negative-soft: #f5e2d9;
  --warning: #8a5a12;
  --warning-soft: #f8ebd0;
  --warning-line: #e3cfa6;

  --shadow: 0 1px 2px rgba(74, 58, 34, 0.06), 0 10px 20px -14px rgba(74, 58, 34, 0.28);
  --shadow-lg: 0 26px 60px -28px rgba(74, 58, 34, 0.34);

  --glow-1: rgba(199, 168, 112, 0.30);
  --glow-2: rgba(160, 130, 80, 0.12);
  --glow-3: rgba(199, 168, 112, 0.16);

  --accent-soft: #e9dfc9;
}

/* Selector de tema en Ajustes */
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.theme-chip i {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.theme-chip[data-theme-id="auto"] i { background: linear-gradient(135deg, #f2f7fd 50%, #0a1524 50%); }
.theme-chip[data-theme-id="light"] i { background: #f2f7fd; }
.theme-chip[data-theme-id="dark"] i { background: #0a1524; }
.theme-chip[data-theme-id="sepia"] i { background: #f4ead6; }
.theme-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }

/* ---------------------------------- arcade --------------------------------- */

.arcade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.arcade-group {
  margin: 18px 0 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Cabecera de bloque del inicio con su botón para ocultarlo. */
.section-head.rec-head { align-items: center; margin: 18px 0 8px; }
.rec-head .arcade-group { margin: 0; }

.arcade-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: left;
}
.arcade-card:hover { background: var(--surface-2); }
.arcade-art { font-size: 28px; line-height: 1.1; margin-bottom: 2px; }
.arcade-name { font-size: 14px; font-weight: 800; }
.arcade-desc { font-size: 11.5px; line-height: 1.35; color: var(--muted); }

.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.game-title { margin: 0; font-family: var(--display); font-size: 20px; color: var(--ink); }
.game-score { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.game-frame { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #0b1a2e; box-shadow: var(--shadow); }
.game-canvas { display: block; width: 100%; height: auto; touch-action: none; }
.slot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot-reel {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  font-size: 40px;
  line-height: 1;
}
.slot-reel span { font-family: var(--display); font-weight: 800; }

.flip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.flip-btn {
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  touch-action: none;
  user-select: none;
}
.flip-btn:active { border-color: var(--accent); background: var(--accent-soft); }

.dpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 250px; margin: 12px auto 0; }
.dpad-btn {
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  touch-action: none;
  user-select: none;
}
.dpad-btn:active { border-color: var(--accent); background: var(--accent-soft); }
.dpad-btn.up { grid-column: 2; }
.dpad-btn.left { grid-column: 1; grid-row: 2; }
.dpad-btn.right { grid-column: 3; grid-row: 2; }
.dpad-btn.down { grid-column: 2; grid-row: 3; }

.move-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.move-btn {
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  touch-action: none;
  user-select: none;
}
.move-btn:active { border-color: var(--accent); background: var(--accent-soft); }

/* Juegos de pantalla (dados, bingo, lotería y memoria) */
.dom-game {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.game-msg {
  min-height: 18px;
  margin: 0 0 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent-deep);
}
.game-btns { display: flex; gap: 8px; margin-top: 12px; }
.game-btns .btn { flex: 1; }
.dom-game .btn.wide { width: 100%; margin-top: 10px; }

.dice-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.die {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
}
.die-face { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; }
.die-tag { font-size: 8.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.die.locked { border-color: var(--accent); background: var(--accent-soft); }
.die.locked .die-face { color: var(--accent-deep); }

.bingo-card {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}
.bingo-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}
.bingo-cell.free { font-size: 9px; color: var(--muted); }
.bingo-cell.marked { background: var(--accent); border-color: var(--accent-deep); color: #ffffff; }
.bingo-recent {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  margin-top: 10px;
  scrollbar-width: thin;
}
.bingo-ball {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.bingo-ball.off { color: var(--faint); }

.lotto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lotto-num {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}
.lotto-num.picked { border-color: transparent; background: var(--accent-grad); color: #ffffff; }
.lotto-draw { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.lotto-ball {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}
.lotto-ball.hit { border-color: var(--positive); background: var(--positive-soft); color: var(--positive); }

.memo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.memo-card {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--accent-deep);
}
.memo-card.up { border-color: var(--accent); background: var(--surface); }
.memo-card.matched { border-color: var(--positive); background: var(--positive-soft); }

/* ------------------------------ recordatorios ------------------------------ */
/* Despertador con la mascota: lista de horas, formulario y tarjeta que suena. */

.alarm-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.alarm-mascot { width: 84px; flex: 0 0 auto; margin: 0; }
.alarm-hero-title { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: var(--ink); }
.alarm-hero-text { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.alarm-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.alarm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.alarm-row.off { opacity: 0.55; }
.alarm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.alarm-time { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.alarm-meta { font-size: 12px; line-height: 1.4; color: var(--faint); }
.alarm-del { width: 32px; height: 32px; color: var(--muted); flex: 0 0 auto; }
.alarm-del:hover { color: var(--negative); background: var(--negative-soft); }
.alarm-form { display: flex; flex-direction: column; gap: 10px; }
.alarm-fields { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; }
.alarm-fields .input { min-width: 0; padding-left: 10px; padding-right: 4px; }
.alarm-daily { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.alarm-daily input { width: 18px; height: 18px; accent-color: var(--accent); }
.alarm-tools { margin-top: 6px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }

.ring-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 20, 36, 0.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fadeIn 0.18s ease;
}

.ring-card {
  width: 100%;
  max-width: 360px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.ring-mascot { width: min(46%, 150px); margin: 0 auto 4px; }
.ring-time { margin: 0; font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.ring-title { margin: 2px 0 6px; font-size: 16px; font-weight: 800; color: var(--ink); }
.ring-text { margin: 0 0 16px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ring-card .btn { width: 100%; }
.ring-card .btn + .btn { margin-top: 8px; }
body.ringing { overflow: hidden; }


/* Entrada a PODDIO en la pestaña Jugar */
.poddio-entry {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(145deg, #1e1310, #101521 65%);
  border: 1px solid #3a241b; color: var(--ink);
}
.poddio-entry-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, #ff8a5c, #b8412a); color: #160f0b;
  font-weight: 900; font-size: 20px;
}
.poddio-entry-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.poddio-entry-text b { font-size: 16px; letter-spacing: .12em; }
.poddio-entry-text small { font-size: 11.5px; color: var(--muted); }
.poddio-entry-go { font-size: 18px; color: #ffb08a; }

/* ---------------------------- entretenimiento --------------------------- */

.ent-modules { display: flex; flex-direction: column; gap: 10px; }
.ent-modules .mk-entry { font: inherit; cursor: pointer; }

/* Recreativos en dos columnas, con tarjetas compactas. */
.ent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ent-grid .mk-entry { font: inherit; cursor: pointer; }
.ent-grid .mk-entry.is-compact {
  min-width: 0;
  width: 100%;
  gap: 8px;
  padding: 9px 10px;
}
.ent-grid .mk-entry.is-compact .mk-entry-ic {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 8px;
}
.ent-grid .mk-entry.is-compact .mk-entry-title { font-size: 11.5px; white-space: nowrap; }
.ent-grid .mk-entry.is-compact .mk-entry-sub { font-size: 10px; }

/* eventos */
.event-credits {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.event-credits > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.event-credits strong {
  margin-left: auto;
  font-family: var(--display);
  font-size: 19px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.event-credits small { font-size: 11px; font-weight: 700; color: var(--muted); }
.event-credits .link-btn { flex: 0 0 auto; }

.event-list { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.event-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.event-art {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--surface-2);
}
.event-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.event-name { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.event-owned {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 800;
  vertical-align: 1px;
}
.event-meta { font-size: 11.5px; color: var(--muted); }
.event-desc { font-size: 11.5px; line-height: 1.35; color: var(--ink-2); }
.event-price {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}
.event-price small { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.event-buy {
  flex: 0 0 auto;
  align-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
}
.event-buy:disabled { opacity: 0.5; }
.event-subhead { margin: 20px 0 6px; font-size: 13px; font-weight: 800; color: var(--ink); }
.event-org { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.event-tabs button { font-size: 11.5px; padding: 10px 4px; }

.ticket-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--surface);
}
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-event { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.ticket-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ticket-meta { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.ticket-actions { display: flex; gap: 8px; margin-top: 12px; }
.ticket-actions .btn { flex: 1; min-width: 0; padding: 10px 6px; font-size: 11.5px; }

/* radio */
.radio-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.radio-screen {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(160deg, #0b1a2e, #132a44);
  color: #d7ecff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.radio-state { color: #7ee0a8; }
.radio-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.radio-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--accent-grad);
  transition: width 0.08s linear;
}
.radio-ptt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}
.radio-ptt svg { width: 30px; height: 30px; }
.radio-ptt.talking { background: var(--accent-grad); color: var(--accent-ink); animation: radioPulse 1.1s ease-in-out infinite; }
@keyframes radioPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* --------------------------------- cajeros --------------------------------- */
.cashier-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 2px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface-2);
}
.cashier-list { display: flex; flex-direction: column; gap: 8px; }
.cashier-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.cashier-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cashier-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.cashier-mine { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--blue-deep); }
.cashier-meta { font-size: 12px; color: var(--muted); }
.cashier-use { flex: 0 0 auto; }
.cashier-empty { font-size: 13px; color: var(--muted); margin: 0; }
.cashier-ad {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.cashier-ad strong { display: block; font-size: 14px; }
.cashier-ad-text span { display: block; font-size: 12px; color: var(--muted); }
.cashier-ad-ic {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.cashier-req {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--blue-soft);
  color: var(--ink-2);
  font-size: 13px;
}
.cashier-req-amount { font-size: 20px; font-weight: 800; color: var(--blue-deep); letter-spacing: -0.01em; }

/* ------------------------- referidos y afiliados -------------------------- */
.ref-link {
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}
.ref-list { display: flex; flex-direction: column; gap: 6px; }
.ref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
}
.ref-row b { color: var(--ink); font-weight: 600; }
.ref-row span { color: var(--muted); font-size: 12px; }

/* --------------------------- tarjetas virtuales --------------------------- */

.cards { margin: 14px 16px 0; }

.cards-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 8px;
}

.cards-tools { display: flex; align-items: center; gap: 6px; }

.vc-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.vc-track::-webkit-scrollbar { display: none; }
.vc-track .vcard { flex: 1 0 100%; min-width: 0; }
.vc-track.multi .vcard { flex: 0 0 88%; }

.vcard {
  position: relative;
  overflow: hidden;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 202px;
  padding: 18px;
  border-radius: 22px;
  color: #fff;
  text-align: left;
  background: linear-gradient(142deg, #2f5aa0 0%, #4478c9 46%, #86b6e7 100%);
  box-shadow: 0 20px 36px -22px rgba(20, 52, 96, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.vcard.xno { background: linear-gradient(142deg, #08182a 0%, #1b3a5e 50%, #3560a8 100%); }

.vcard::after {
  content: "";
  position: absolute;
  top: -46%;
  right: -22%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 62%);
  pointer-events: none;
}

/* La marca del monedero va de fondo, como marca de agua. */
.vc-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  height: 88%;
  width: auto;
  transform: translate(-50%, -50%);
  opacity: 0.13;
  pointer-events: none;
  user-select: none;
}

/* El dólar de NanUSD se dibuja a tamaño completo en su archivo: se ajusta para verse igual que la N de Nano. */
.vcard.nanusd .vc-watermark { height: 68%; }


.vcard.active { box-shadow: 0 24px 42px -20px rgba(20, 52, 96, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
.vcard:not(.active) { opacity: 0.9; }
.vcard[data-action] { cursor: pointer; }
.vcard[data-action]:active { transform: scale(0.985); }

.vc-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vc-brand { font-size: 10.5px; font-weight: 800; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.9); }
.vc-brand b { font-weight: 800; }

.vc-kind {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  white-space: nowrap;
}

.vc-mid { position: relative; z-index: 1; }
.vc-net-pill {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.vc-label { font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }

.vc-amount {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 3px;
  font-family: var(--display);
  font-size: clamp(27px, 8.4vw, 33px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.vc-amount.compact { font-size: clamp(21px, 6.4vw, 26px); }
.vc-amount span { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.76); }
.vc-sub { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, 0.82); overflow-wrap: anywhere; }

.vc-foot { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 14px; }
.vc-addr { min-width: 0; cursor: pointer; border-radius: 8px; transition: opacity 0.15s ease; -webkit-tap-highlight-color: transparent; }
.vc-addr:active { opacity: 0.62; }
.vc-addr-label {
  display: block;
  margin-bottom: 3px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.vc-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.vc-status i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.vc-status.on i { background: #7df0c5; box-shadow: 0 0 0 3px rgba(125, 240, 197, 0.18); }

.cards-under { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 4px 0; }
.cards-under .unit-switch { margin: 0; }
.cards .hero-foot { margin: 10px 0 0; }

/* ----------------------- acceso con cara o huella ------------------------ */

.face-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  background: var(--accent-grad);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 18px 30px -20px color-mix(in srgb, var(--accent) 92%, transparent);
  transition: filter 0.2s ease, transform 0.15s ease;
}

.face-btn .icon { width: 21px; height: 21px; }
.face-btn span { font-size: 11px; font-weight: 600; opacity: 0.85; }
.face-btn:active { transform: scale(0.985); }

.or-line { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; color: var(--faint); }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* --------------------------------- dividir -------------------------------- */
.split-people { display: flex; align-items: center; gap: 10px; }
.split-step {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.split-step:active { transform: scale(0.96); }
.split-count { min-width: 22px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.split-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12.5px;
}
.split-row-name { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-row-amount { font-variant-numeric: tabular-nums; }
.split-row-state { font-size: 11px; font-weight: 700; color: var(--muted); }
.split-row-state.paid { color: var(--positive); }
.split-row .link-btn { font-size: 12px; }
.split-open { width: 100%; text-align: left; }

/* --------------------------------- comunidad ------------------------------ */

.cm-chips {
  flex-wrap: wrap;
}

.cm-adopcion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 11px;
  background: var(--surface-2, #eef5fb);
  border: 1px solid var(--line, #d9e6f2);
  color: var(--blue, #1f6fd0);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.cm-signed {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}

.cm-signed strong {
  color: var(--ink);
}

.cm-feed {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.cm-post {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cm-post-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cm-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.cm-who {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cm-who strong {
  font-size: 13.5px;
  color: var(--ink);
}

.cm-who small {
  font-size: 11.5px;
  color: var(--faint);
}

.cm-mine {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.cm-tag {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
}

.cm-body {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.cm-act {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  transition: background 0.2s ease, color 0.2s ease;
}

.cm-act.is-on {
  color: #fff;
  background: var(--accent);
}

.cm-act.danger {
  color: var(--negative);
  background: var(--negative-soft);
}

.cm-comments {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
}

.cm-comment {
  display: grid;
  gap: 2px;
}

.cm-comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
}

.cm-comment-head small {
  font-weight: 500;
  color: var(--faint);
}

.cm-comment-del {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--negative);
}

.cm-comment-body {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.cm-compose-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cm-compose-row .input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding: 11px 13px;
  font-size: 16px;
}

.cm-compose-row .btn {
  flex: 0 0 auto;
  width: auto;
  padding: 11px 16px;
  font-size: 13.5px;
}

/* comunidad: buscador, miembros, fotos y destacadas */

.cm-search {
  margin-top: 12px;
}

.cm-search .input {
  padding: 12px 14px;
  font-size: 16px;
}

.cm-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.cm-pin {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  background: var(--warning-soft);
  border: 1px solid var(--warning-line);
  white-space: nowrap;
}

.cm-name {
  font: inherit;
  color: var(--ink);
  text-align: left;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 800;
}

.cm-name:active {
  opacity: 0.6;
}

.cm-photo {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
}

.cm-members {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cm-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cm-member-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cm-member-body strong {
  font-size: 13.5px;
  color: var(--ink);
}

.cm-member-body small {
  font-size: 11.5px;
  color: var(--faint);
}

.cm-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
}

.cm-avatar-lg {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  font-size: 15px;
}

.cm-profile-info {
  display: grid;
  gap: 3px;
}

.cm-profile-info strong {
  font-size: 15px;
  color: var(--ink);
}

.cm-profile-info small {
  font-size: 12px;
  color: var(--faint);
}

.cm-member-posts {
  display: grid;
  gap: 8px;
}

.cm-mini {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.cm-mini-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cm-mini p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cm-photo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px dashed var(--line);
  background: var(--surface-2);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.cm-photo-pick {
  display: grid;
  gap: 8px;
}

.cm-photo-pick img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line-2);
}

/* ------------------------------ punto de venta ----------------------------- */

.pos-form, .pos-ticket { padding: 16px; }

/* Teclado del cobro: moneda, monto grande y botones como un datafono. */
.pos-cur { display: flex; gap: 8px; margin-bottom: 12px; }
.pos-cur-chip {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pos-cur-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.pos-display {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 4px 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.pos-display-cur { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.pos-display strong {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pos-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pos-key {
  padding: 16px 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.pos-key:active { background: var(--surface-2); }
.pos-key.is-fn { color: var(--muted); font-size: 18px; }
.pos-key.is-wide { grid-column: span 3; color: var(--negative); }

/* Referencia del cobro en dólares y bolívares. */
.pos-ref {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.pos-ref b { color: var(--ink); font-weight: 800; }

/* Productos de la caja y su cuenta. */
.pos-modes { margin-bottom: 12px; }
.pos-products, .pos-cart { padding: 16px; }
.pos-prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pos-prod {
  position: relative;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.pos-prod.is-paused { opacity: 0.55; }
.pos-prod-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 10px;
  text-align: left;
  color: var(--ink);
}
.pos-prod-photo { width: 100%; height: 88px; object-fit: cover; border-radius: 11px; display: block; }
.pos-prod-photo.is-empty {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--faint);
}
.pos-prod-photo.is-empty svg { width: 22px; height: 22px; }
.pos-prod-name { font-size: 13px; font-weight: 700; line-height: 1.25; }
.pos-prod-desc { font-size: 11px; color: var(--faint); line-height: 1.25; }
.pos-prod-price { font-size: 12px; font-weight: 800; color: var(--accent-deep); }
.pos-prod-paused { font-size: 11px; font-weight: 700; color: var(--negative); }
.pos-prod-edit {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}
.pos-cart-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pos-cart-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-qty { display: flex; align-items: center; gap: 6px; }
.pos-qty button {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 800;
  color: var(--ink);
}
.pos-qty b { min-width: 16px; text-align: center; font-size: 13px; }
.pos-cart-line strong { font-family: var(--display); font-size: 14px; }
.pos-cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 0; }
.pos-cart-total span { font-size: 13px; font-weight: 700; color: var(--muted); }
.pos-cart-total strong { font-family: var(--display); font-size: 20px; color: var(--ink); }

/* Foto del producto en su hoja de edición. */
.pos-photo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.pos-photo-preview { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.pos-photo-preview.is-empty {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  color: var(--faint);
}
.pos-photo-preview.is-empty svg { width: 24px; height: 24px; }
.pos-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.pos-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.pos-amount {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 38px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pos-amount span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}

.pos-ticket .qr-card { margin: 0 0 12px; }

.pos-wait {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-deep);
}

.pos-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  animation: posPulse 1.4s ease-in-out infinite;
}

@keyframes posPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.pos-ticket.is-paid .pos-amount { color: var(--positive); }

.pos-ticket .addr-full {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  word-break: break-all;
  color: var(--muted);
}

.pos-day {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pos-day strong {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}

.pos-sale {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}

.pos-sale:last-child { border-bottom: 0; }

.pos-sale-time {
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.pos-sale-note {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-sale strong { font-family: var(--display); color: var(--ink); }

/* ------------------------------ cinta de precios --------------------------- */
.tape {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
}
.tape::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--surface-2));
}
.tape-track { display: flex; width: max-content; animation: tape-scroll 26s linear infinite; }
.tape-group { display: flex; align-items: center; gap: 20px; padding: 7px 20px 7px 14px; }
.tape-item { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; font-size: 12px; }
.tape-item b {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-2);
}
.tape-code { font-size: 9.5px; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.tape-item [data-usd] { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tape-chg { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--faint); }
.tape-chg.up { color: var(--positive); }
.tape-chg.down { color: var(--negative); }
.tape-sep { color: var(--line); font-size: 10px; }
@keyframes tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tape:hover .tape-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .tape { overflow-x: auto; }
  .tape-track { animation: none; }
  .tape::after { display: none; }
}

/* --------------------------- NANU, la mascota bot --------------------------- */

.bot { position: fixed; right: 18px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.bot-fab { position: relative; width: 62px; height: 62px; padding: 0; border: 3px solid #fff; border-radius: 50%; overflow: hidden; background: #eaf2fc; box-shadow: 0 14px 30px -12px rgba(11, 28, 47, 0.5); cursor: pointer; }
.bot-fab img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bot-dot { position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #35c07a; border: 2px solid #fff; }
.bot-panel { width: min(360px, calc(100vw - 32px)); max-height: min(520px, 72vh); display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #d6e4f5; border-radius: 20px; box-shadow: 0 26px 60px -26px rgba(11, 28, 47, 0.55); }
.bot-panel[hidden] { display: none; }
.bot-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #0b1c2f; color: #fff; }
.bot-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.bot-head strong { display: block; font-size: 14px; letter-spacing: 0.01em; }
.bot-head span { display: block; font-size: 11px; color: #9fc0e8; }
.bot-x { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.bot-log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow-y: auto; background: #f7fafe; min-height: 140px; }
.bot-msg { max-width: 86%; margin: 0; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; }
.bot-msg--bot { align-self: flex-start; background: #eaf2fc; color: #0b1c2f; border-bottom-left-radius: 4px; }
.bot-msg--me { align-self: flex-end; background: #3560a8; color: #fff; border-bottom-right-radius: 4px; }
.bot-typing { opacity: 0.7; font-style: italic; }
.bot-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #d6e4f5; }
.bot-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #d6e4f5; border-radius: 12px; font: inherit; font-size: 14px; color: #0b1c2f; background: #fff; }
.bot-form button { width: 44px; border: 0; border-radius: 12px; background: #3560a8; color: #fff; font-size: 16px; cursor: pointer; }
.bot-form button:disabled { opacity: 0.6; }
.bot-note { margin: 0; padding: 0 12px 10px; font-size: 10.5px; line-height: 1.35; color: #6b839d; }
.support-log { max-height: 300px; }
@media (max-width: 480px) {
  .bot { right: 12px; bottom: 14px; }
  .bot-fab { width: 56px; height: 56px; }
}
.pos-prod-stock { font-size: 10.5px; color: var(--muted); font-weight: 600; }

/* NCV en Movimiento */
.mov-budget { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.mov-budget > div { background: var(--card, rgba(127, 127, 127, .08)); border: 1px solid var(--line, rgba(127, 127, 127, .18)); border-radius: 12px; padding: 9px 10px; }
.mov-budget span { display: block; font-size: 10.5px; color: var(--muted); }
.mov-budget b { display: block; font-size: 14px; margin-top: 2px; }
.mov-wait { background: rgba(240, 180, 60, .12); border: 1px solid rgba(240, 180, 60, .3); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; margin: 0 0 12px; }
.mov-title { font-size: 14px; margin: 16px 0 6px; }
.mov-days { display: grid; gap: 6px; }
.mov-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line, rgba(127, 127, 127, .2)); border-radius: 10px; padding: 6px 10px; }
.mov-day span { font-size: 12.5px; text-transform: capitalize; }
.mov-day input { width: 96px; text-align: right; border: 0; background: transparent; color: inherit; font-size: 14px; font-weight: 600; }
.mov-file { width: 100%; font-size: 12.5px; margin-bottom: 10px; }
.mov-claims { display: grid; gap: 6px; margin-top: 4px; }
.mov-claim { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line, rgba(127, 127, 127, .2)); border-radius: 10px; padding: 8px 10px; }
.mov-claim > div { display: grid; gap: 1px; }
.mov-claim b { font-size: 13px; }
.mov-claim span { font-size: 11px; color: var(--muted); }
.mov-claim-right { text-align: right; }

/* Pagar, proyectos y donaciones */
.causa-list { display: grid; gap: 8px; margin-top: 10px; }
.causa-card { display: grid; gap: 4px; text-align: left; border: 1px solid var(--line, rgba(127, 127, 127, .2)); border-radius: 12px; padding: 11px 12px; background: transparent; color: inherit; }
.causa-card-title { font-size: 14px; font-weight: 700; }
.causa-card-sub { font-size: 11.5px; color: var(--muted); }
.causa-card-figures { font-size: 11px; color: var(--muted); }
.causa-bar { height: 7px; border-radius: 99px; background: rgba(127, 127, 127, .18); overflow: hidden; }
.causa-bar span { display: block; height: 100%; border-radius: 99px; background: var(--accent, #3ddc84); }
.causa-progress { display: grid; gap: 6px; margin-bottom: 10px; }
.causa-figures { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.causa-figures b { font-size: 18px; color: inherit; }
.causa-story { font-size: 13px; line-height: 1.5; white-space: pre-wrap; }

/* Iconos recreativos con el mismo estilo que los servicios transaccionales */
.arcade-card .service-ic.arcade-ic { margin-bottom: 4px; }
.rec-entry .mk-entry-ic {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.game-title-ic {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  vertical-align: -6px;
  margin-right: 6px;
}
.game-title-ic svg { width: 15px; height: 15px; }

/* Tarjeta y banda de métricas de la comunidad */
.cm-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 15px 16px 13px;
  margin-top: 14px;
  color: #f3f8ff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(90, 160, 255, .32), transparent 55%),
    linear-gradient(135deg, #102a49, #0a1728 70%);
  border: 1px solid rgba(110, 165, 255, .28);
  box-shadow: var(--shadow);
}
.cm-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(80, 150, 255, .12);
  pointer-events: none;
}
.cm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-card-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #9fc4f5; }
.cm-card-code { font-family: ui-monospace, monospace; font-size: 11px; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.cm-card-name { display: block; font-family: var(--display); font-size: 23px; letter-spacing: -.02em; margin-top: 12px; }
.cm-card-meta { display: block; font-size: 12px; color: #a9c2dd; margin-top: 2px; }
.cm-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; position: relative; z-index: 1; }
.cm-card-foot > span { font-size: 11px; color: #9fc4f5; }
.cm-card-btn { width: auto; border: 1px solid rgba(160, 200, 255, .35); background: rgba(255, 255, 255, .08); color: #eaf3ff; border-radius: 10px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.cm-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 2px; }
.cm-metrics > div { padding: 9px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.cm-metrics b { display: block; font-family: var(--display); font-size: 17px; letter-spacing: -.02em; }
.cm-metrics span { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* Encargos y anuncios de marcas */
.ad-feed { display: grid; gap: 14px; margin-top: 12px; }
.ad-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.ad-video-wrap { position: relative; aspect-ratio: 9 / 16; background: #000; }
.ad-video-wrap video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-cart {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 0;
  border-radius: 99px;
  background: #ff5c00;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(255, 92, 0, .38);
}
.ad-cart svg { width: 16px; height: 16px; }
.ad-info { padding: 10px 12px 12px; display: grid; gap: 2px; }
.ad-info b { font-size: 13px; }
.ad-info .ad-title { font-size: 12.5px; color: var(--ink); }
.ad-info p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.ad-entry .mk-entry-ic { color: #ff7a1a; }

/* Transmisiones NCV */
.live-entry .mk-entry-ic { color: #e11d48; }
.live-feed { display: grid; gap: 12px; margin-top: 12px; }
.live-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); padding: 12px; display: grid; gap: 6px; }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--chip); color: var(--muted); }
.live-badge.is-live { background: #e11d48; color: #fff; }
.live-when { font-size: 11.5px; color: var(--muted); }
.live-title { margin: 0; font-size: 15px; }
.live-host { margin: 0; font-size: 12px; color: var(--muted); }
.live-desc { margin: 2px 0 0; font-size: 12.5px; color: var(--ink); }
.live-products { display: grid; gap: 6px; margin: 6px 0 2px; }
.live-buy { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 11px; border: 1px solid #ffd0b8; border-radius: 12px; background: #fff5ef; color: #b53d00; font-size: 12.5px; font-weight: 700; text-align: left; }
.live-buy svg { width: 15px; height: 15px; flex: 0 0 auto; }
.live-buy b { margin-left: auto; font-size: 12px; }
.live-watch { width: 100%; text-align: center; margin-top: 4px; text-decoration: none; }
.rules-list { margin: 6px 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.rules-list li { position: relative; padding: 7px 10px 7px 28px; border-radius: 10px; background: #fff1f2; color: #9f1239; font-size: 12px; font-weight: 600; }
.rules-list li::before { content: "×"; position: absolute; left: 10px; top: 5px; font-size: 14px; font-weight: 800; }
.rules-foot { margin-top: 14px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.check-row { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 12px; font-size: 12.5px; color: var(--ink); }
.check-row input { margin-top: 2px; width: 16px; height: 16px; }

/* Tarjeta de miembro de la comunidad */
.mcard {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 14px 16px 13px;
  border-radius: 18px;
  color: #f3f8ff;
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(90, 160, 255, .34), transparent 56%),
    radial-gradient(90% 120% at 0% 100%, rgba(255, 150, 60, .16), transparent 60%),
    linear-gradient(135deg, #102a49, #08131f 72%);
  border: 1px solid rgba(110, 165, 255, .3);
  box-shadow: 0 12px 28px rgba(6, 20, 38, .28);
}
.mcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.mcard::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -86px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 22px solid rgba(80, 150, 255, .1);
  pointer-events: none;
}
.mcard-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mcard-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a9c9f0; }
.mcard-brand svg { width: 13px; height: 13px; }
.mcard-kind { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #0a1728; background: #cfe4ff; padding: 4px 9px; border-radius: 99px; }
.mcard-main { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.mcard-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .02em;
  color: #0a1728;
  background: linear-gradient(145deg, #eaf3ff, #a9c9f0);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.mcard-id { min-width: 0; flex: 1 1 auto; }
.mcard-label { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #8fb2d6; }
.mcard-name { display: block; font-family: var(--display); font-size: 21px; line-height: 1.15; letter-spacing: -.02em; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard-city { display: block; font-size: 11.5px; color: #a9c2dd; margin-top: 1px; }
.mcard-seal {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px dashed rgba(190, 220, 255, .45);
  color: #cfe4ff;
  transform: rotate(-8deg);
}
.mcard-seal b { display: block; font-family: var(--display); font-size: 13px; letter-spacing: .08em; line-height: 1; }
.mcard-seal span { display: block; font-size: 6.5px; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.mcard-foot { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 14px; margin-top: 14px; padding-top: 11px; border-top: 1px solid rgba(160, 200, 255, .18); }
.mcard-field { min-width: 0; }
.mcard-field span { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fb2d6; }
.mcard-field b { display: block; font-family: ui-monospace, monospace; font-size: 11.5px; margin-top: 2px; color: #eaf3ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-status { color: #9fc4f5; }
.mcard-status.on { color: #7ee2a8; }
.mcard-btn { margin-left: auto; border: 1px solid rgba(160, 200, 255, .38); background: rgba(255, 255, 255, .09); color: #eaf3ff; border-radius: 10px; padding: 8px 11px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }

/* QR y acciones de la tarjeta de miembro */
.mcard-qr {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(3, 12, 24, .35);
}
.mcard-qr svg { display: block; }
.mcard-actions { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 10px; }
.mcard-actions .mcard-btn { flex: 1 1 0; margin-left: 0; text-align: center; }
.mcard-btn.is-primary { background: #cfe4ff; border-color: #cfe4ff; color: #0a1728; }

/* Logo de la N sola en la tarjeta de miembro */
.mcard-logo { width: 18px; height: 18px; border-radius: 5px; display: block; }

/* Segunda cinta: métricas financieras del proyecto */
.metrics-tape { background: var(--surface-2); border-top: 1px solid var(--line); }
.metrics-tape .tape-track { animation-duration: 32s; }
.metrics-tape .tape-item b { color: var(--accent-deep); }
.metrics-tape .tape-item span { color: var(--ink); font-variant-numeric: tabular-nums; }
.met-entry .mk-entry-ic { color: #1f9c68; }
.met-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.met-card { padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.met-card > span { display: block; font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.met-card b { display: block; font-family: var(--display); font-size: 18px; letter-spacing: -.02em; margin-top: 3px; }
.met-card b i { font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: 0; }
.met-card small { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
.met-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 11px; color: var(--muted); }

/* La banda de métricas corre en sentido contrario a la de precios. */
.metrics-tape .tape-track { animation-direction: reverse; }

.met-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Gráficos del dashboard: barras redondeadas con un color por métrica. */
.met-charts { display: grid; gap: 10px; margin-top: 12px; }
.met-chart { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.met-chart-title { margin: 0 0 10px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--blue-deep); }
.met-bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 8px; }
.met-bar-label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.met-bar-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.met-bar-fill { display: block; height: 100%; border-radius: 999px; transition: width .35s ease; }
.met-bar-value { font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.met-chart-empty { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }

/* Donas del dashboard: repartición de finanzas y comunidad. */
.met-donuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.met-donut { padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.met-donut .met-chart-title { margin-bottom: 8px; }
.met-donut-ring { display: grid; place-items: center; width: 104px; height: 104px; margin: 0 auto 10px; border-radius: 50%; }
.met-donut-hole { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); }
.met-donut-hole b { font-family: var(--display); font-size: 14px; line-height: 1; color: var(--ink); }
.met-donut-hole small { font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.met-donut-legend { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; }
.met-donut-legend li { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-2); }
.met-donut-legend i { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; }
.met-donut-legend span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.met-donut-legend b { font-size: 10.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }

/* La banda de métricas abre el dashboard al tocarla. */
button.metrics-tape { display: block; width: 100%; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--line); text-align: left; font: inherit; color: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
button.metrics-tape:active { filter: brightness(.97); }
button.metrics-tape:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Banda de métricas oculta: el dashboard sigue disponible en Servicios especiales. */
.metrics-tape { display: none !important; }

/* Nanu en Atención y soporte: parpadea, se balancea y saluda. */
.support-nanu { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 10px 12px; border-radius: 16px; background: #eef4fc; }
.support-nanu .nanu { position: relative; flex: 0 0 auto; width: 48px; height: 48px; animation: nanu-sway 4.6s ease-in-out infinite; transform-origin: 50% 96%; }
.support-nanu .nanu img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.support-nanu .nanu-lid { position: absolute; z-index: 1; width: 20.8%; height: 20.8%; border-radius: 50%; background: #070a0f; transform: scaleY(0); transform-origin: center; animation: nanu-blink 5.2s infinite; }
.support-nanu .nanu-lid--l { left: 25.2%; top: 42.9%; }
.support-nanu .nanu-lid--r { left: 54.1%; top: 42.7%; animation-delay: 0.02s; }
.support-nanu-main { min-width: 0; }
.support-nanu-main strong { display: block; font-size: 14px; color: #0b1c2f; }
.support-nanu-sub { display: block; font-size: 11.5px; color: #425d7a; }
.support-hi { position: absolute; right: 12px; top: 12px; padding: 4px 9px; border-radius: 10px; background: #fff; color: #0b1c2f; font-size: 11.5px; font-weight: 700; line-height: 1; box-shadow: 0 6px 14px -8px rgba(11, 28, 47, 0.45); opacity: 0; transform: translateY(4px) scale(0.92); pointer-events: none; animation: nanu-hi 9s ease-in-out infinite; }
@keyframes nanu-blink {
  0%, 90%, 100% { transform: scaleY(0); }
  92%, 94% { transform: scaleY(1); }
}
@keyframes nanu-sway {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  30% { transform: rotate(-2.2deg) translateY(-1px); }
  60% { transform: rotate(1.8deg) translateY(0); }
}
@keyframes nanu-hi {
  0%, 72%, 100% { opacity: 0; transform: translateY(4px) scale(0.92); }
  76%, 90% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .support-nanu .nanu, .support-nanu .nanu-lid, .support-hi { animation: none; }
  .support-hi { display: none; }
}
