@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* =====================================================================
   Meridiano — sistema de diseño
   Lenguaje de la landing (navy profundo + dorado, sans geométrica pesada,
   superficies muy redondeadas, botones píldora) llevado a producto, con
   patrones de wallet (saldo protagonista, acciones rápidas, listas).
   ===================================================================== */
:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f5f6f9;
  --surface-3: #eceef3;
  --ink: #111a2e;
  --ink-2: #4d5870;
  --ink-3: #8a93a8;
  --line: #e7e9ef;
  --line-2: #d6dae3;

  --navy: #131c35;
  --navy-2: #1b2748;
  --navy-3: #26396a;
  --hero: linear-gradient(135deg, #121a33 0%, #1b2a52 55%, #27407a 100%);

  --gold: #c9a04a;
  --gold-2: #d8b25f;
  --gold-ink: #8a6418;
  --gold-weak: #fbf2df;

  --accent: var(--gold);          /* compat con estilos previos */
  --accent-ink: var(--gold-ink);
  --accent-weak: var(--gold-weak);

  --good: #16875a;  --good-bg: #e2f5ec;
  --amber: #9a6a07; --amber-bg: #fbf0d6;
  --red: #b3363a;   --red-bg: #fbe8e8;

  --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-xl: 32px;
  --shadow: 0 1px 2px rgba(17,26,46,.04), 0 6px 24px -12px rgba(17,26,46,.10);
  --shadow-lg: 0 24px 60px -24px rgba(17,26,46,.35);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-serif: var(--font-sans); /* compat: ya no usamos serif */
  --sidebar-w: 256px;
}

/* Modo oscuro: superficies casi negras con tinte navy (a lo Bitso), mismo dorado. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0d16; --surface: #121827; --surface-2: #171e30; --surface-3: #1e2740;
    --ink: #eef1f8; --ink-2: #a7b0c5; --ink-3: #6e7892; --line: #212a40; --line-2: #2c3753;
    --navy: #0e1427; --navy-2: #151d36; --navy-3: #1f2c52;
    --hero: linear-gradient(135deg, #141d3c 0%, #1d2d5e 55%, #2b4390 100%);
    --gold: #d6ad55; --gold-2: #e2bf70; --gold-ink: #e2bf70; --gold-weak: rgba(214,173,85,.12);
    --good: #45c98f; --good-bg: rgba(69,201,143,.12); --amber: #e8b33c; --amber-bg: rgba(232,179,60,.12);
    --red: #f08482; --red-bg: rgba(240,132,130,.12);
    --shadow: 0 1px 0 rgba(255,255,255,.02), 0 8px 28px -14px rgba(0,0,0,.6);
    --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0d16; --surface: #121827; --surface-2: #171e30; --surface-3: #1e2740;
  --ink: #eef1f8; --ink-2: #a7b0c5; --ink-3: #6e7892; --line: #212a40; --line-2: #2c3753;
  --navy: #0e1427; --navy-2: #151d36; --navy-3: #1f2c52;
  --hero: linear-gradient(135deg, #141d3c 0%, #1d2d5e 55%, #2b4390 100%);
  --gold: #d6ad55; --gold-2: #e2bf70; --gold-ink: #e2bf70; --gold-weak: rgba(214,173,85,.12);
  --good: #45c98f; --good-bg: rgba(69,201,143,.12); --amber: #e8b33c; --amber-bg: rgba(232,179,60,.12);
  --red: #f08482; --red-bg: rgba(240,132,130,.12);
  --shadow: 0 1px 0 rgba(255,255,255,.02), 0 8px 28px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans); background: var(--bg); color: var(--ink);
  font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-sans); font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.mono { font-family: var(--font-mono); }
.tbl .amt, .num { font-variant-numeric: tabular-nums; }
.ico { flex: none; display: block; }
button { font-family: inherit; }
::selection { background: var(--gold-weak); }

/* ---------- Eyebrow (título chico con punto dorado, como la landing) ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.eyebrow.on-dark { color: rgba(255,255,255,.62); }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; padding: 28px 40px 64px; }
.main-inner { max-width: 1180px; margin: 0 auto; }

/* Sidebar */
.sidebar { width: var(--sidebar-w); flex: none; background: var(--surface); border-right: 1px solid var(--line);
  padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.sidebar .brand { padding: 4px 10px 22px; }
.brand .mk { flex: none; }
.side-cta { margin: 0 4px 14px; }
.side-cta .btn { width: 100%; justify-content: center; height: 46px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 16px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--ink-2); cursor: pointer; font-weight: 600; border: none; background: none; width: 100%;
  text-align: left; font-size: 14px; transition: background .15s, color .15s; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--navy); color: #fff; }
.nav-item.active .ico { color: var(--gold-2); }
:root[data-theme="dark"] .nav-item.active { background: var(--surface-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-item.active { background: var(--surface-3); } }
.badge-count { margin-left: auto; background: var(--gold); color: #1c1305; font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 11px; padding: 8px 8px 12px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--gold-weak); color: var(--gold-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 13.5px; flex: none; letter-spacing: .02em; border: none; }
.me .who { min-width: 0; }
.me .name { font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .org { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-actions { display: flex; gap: 6px; padding: 0 4px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.lang-toggle { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-toggle button { border: none; background: none; height: 28px; min-width: 40px; padding: 0 10px; border-radius: 999px;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink-3, var(--ink-2)); cursor: pointer; }
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(17,26,46,.12); }
.side-lang { display: flex; margin: 8px 4px 0; }
.side-lang button { flex: 1; }
.foot-actions .icon-btn.wide { flex: 1; width: auto; display: flex; gap: 8px; justify-content: center; font-size: 13px; font-weight: 600; }

/* Barra superior (solo mobile) y navegación flotante inferior con botón de acción */
.topbar { display: none; }
.bottom-nav, .fab, .sheet, .sheet-scrim { display: none; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { padding: 14px 16px 120px; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 14px; }
  .topbar .brand { font-size: 18px; }
  .bottom-nav { display: flex; position: fixed; left: 14px; right: 88px; bottom: 16px; z-index: 50; height: 64px;
    background: rgba(17,24,39,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 26px; padding: 6px;
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.06); }
  .bottom-nav button { flex: 1; border: none; background: none; color: #9aa4bb; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; border-radius: 20px; cursor: pointer; }
  .bottom-nav button.active { background: rgba(255,255,255,.1); color: #fff; }
  .bottom-nav button.active .ico { color: var(--gold-2); }
  .fab { display: grid; place-items: center; position: fixed; right: 14px; bottom: 16px; z-index: 50; width: 64px; height: 64px;
    border-radius: 50%; border: none; background: var(--gold); color: #1c1305; box-shadow: 0 14px 34px -10px rgba(201,160,74,.75); cursor: pointer; }
  .sheet-scrim { display: block; position: fixed; inset: 0; background: rgba(8,12,24,.55); z-index: 60; animation: fade .18s both; }
  .sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--surface);
    border-radius: 28px 28px 0 0; padding: 10px 16px 28px; animation: sheetin .24s cubic-bezier(.2,.8,.2,1) both; max-height: 80vh; overflow-y: auto; }
  .sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 14px; }
}
@keyframes sheetin { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.page-head h2 { font-size: 32px; margin: 0; line-height: 1.1; }
.page-head .eyebrow { margin-bottom: 10px; }
.mode-pill { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--amber-bg);
  color: var(--amber); text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-mono); }
.mode-pill.live { background: var(--good-bg); color: var(--good); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 24px 26px; margin-bottom: 22px; }
.card h3 { font-size: 18px; margin: 0 0 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }

.grid { display: grid; gap: 16px; }
.metrics { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 22px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow); }
.metric .label { color: var(--ink-2); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.metric .value { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.metric .hint { color: var(--ink-3); font-size: 12.5px; margin-top: 6px; }

/* Tile de ícono (fondo crema, ícono dorado — como las cards "Why Meridiano") */
.icon-tile { width: 44px; height: 44px; border-radius: 14px; background: var(--gold-weak); color: var(--gold-ink); display: grid; place-items: center; flex: none; }

/* ---------- Forms ---------- */
label.field { display: block; margin-bottom: 16px; }
label.field .lab { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
input, select { width: 100%; height: 46px; border: 1px solid var(--line-2); border-radius: 14px; padding: 0 14px;
  font-size: 14.5px; background: var(--surface); color: var(--ink); font-family: var(--font-sans); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-weak); }
input:disabled, select:disabled { background: var(--surface-2); color: var(--ink-3); }
textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; font-size: 13.5px;
  font-family: var(--font-mono); background: var(--surface); color: var(--ink); resize: vertical; line-height: 1.6; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- Buttons (píldora, como la landing) ---------- */
.btn { height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, transform .08s, box-shadow .15s, filter .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1c1305; }
.btn.gold:hover { filter: brightness(1.05); background: var(--gold); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
/* En oscuro el navy no contrasta: el primario pasa a dorado. */
:root[data-theme="dark"] .btn.primary { background: var(--gold); border-color: var(--gold); color: #1c1305; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--gold); border-color: var(--gold); color: #1c1305; } }

/* ---------- Quote strip ---------- */
.quote { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--surface-2);
  border-radius: 16px; padding: 14px 18px; margin: 6px 0 18px; font-size: 13.5px; color: var(--ink-2); }
.quote b { color: var(--ink); }
.quote .arrives { margin-left: auto; color: var(--ink); font-weight: 800; font-size: 15px; }

/* ---------- Table ---------- */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; color: var(--ink-3); font-weight: 700; padding: 10px 12px;
  border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .1em; }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tbl tr:last-child td { border-bottom: none; }
.muted { color: var(--ink-3); font-size: 12.5px; }

/* ---------- Badges / status pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--good-bg); color: var(--good); }
.badge.pending { background: var(--amber-bg); color: var(--amber); }
.badge.fail { background: var(--red-bg); color: var(--red); }
.badge.wait { background: var(--gold-weak); color: var(--gold-ink); }

/* ---------- Misc ---------- */
.alert { padding: 13px 16px; border-radius: 14px; font-size: 13.5px; margin-bottom: 16px; }
.alert.err { background: var(--red-bg); color: var(--red); }
.alert.ok { background: var(--good-bg); color: var(--good); }
.empty { text-align: center; color: var(--ink-3); padding: 40px 20px; font-size: 13.5px; }
.spinner { color: var(--ink-3); font-size: 13.5px; padding: 24px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.summary-line { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 14px; }
.summary-line b { font-variant-numeric: tabular-nums; }
.link { color: var(--gold-ink); cursor: pointer; background: none; border: none; font-size: 13.5px; padding: 0; font-weight: 700; }
.link:hover { text-decoration: underline; }
.link:disabled { opacity: .5; cursor: not-allowed; text-decoration: none; }
.sect-title { font-size: 15px; font-weight: 800; margin: 22px 0 4px; color: var(--ink); letter-spacing: -.01em; }
.sect-note { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }
.pos { color: var(--good); }
.neg { color: var(--red); }
code { font-family: var(--font-mono); font-size: .92em; }

/* ---------- Login / pantallas sin sesión ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); }
.auth-art { position: relative; margin: 14px; border-radius: var(--r-xl); background: var(--hero); color: #fff;
  padding: 44px 52px; display: flex; flex-direction: column; overflow: hidden; }
.auth-art .brand { color: #fff; position: relative; }
.auth-art .eyebrow { position: relative; }
.auth-art h2 { color: #fff; font-size: clamp(36px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -.045em; margin: 16px 0 14px; max-width: 12ch; position: relative; }
.auth-art h2 em { font-style: normal; color: var(--gold-2); }
.auth-art p { color: rgba(255,255,255,.66); font-size: 16px; max-width: 42ch; margin: 0; position: relative; }
.auth-art .art-foot { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 600; font-size: 13.5px; background: rgba(255,255,255,.04); }
.chip .rail-code { font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,.55); }
.globe-deco { pointer-events: none; color: #c3ccdb; }
.globe-deco .wire { stroke-width: 1.2; opacity: .9; }
.globe-deco .meridian-line { stroke: var(--gold); stroke-width: 2.4; opacity: .9; }
.globe-deco .spin { transform-box: view-box; transform-origin: 200px 200px; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .globe-deco .spin { animation: none !important; } }

/* Globo del login: grande, centrado en el panel, girando como en la landing */
.auth-stage { position: relative; flex: 1; display: grid; place-items: center; padding: 24px 0; min-height: 0; }
.auth-globe { width: min(440px, 80%); height: auto; aspect-ratio: 1; }
.auth-globe .wire { opacity: .32; }
.auth-globe .meridian-line { opacity: .95; stroke-width: 3; }
@media (max-height: 780px) { .auth-stage { display: none; } .auth-art .eyebrow { margin-top: auto; } }
.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-lang { position: absolute; top: 20px; right: 20px; }
.login-card { width: 100%; max-width: 400px; }
.login-card .brand { margin-bottom: 36px; }
.login-card h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -.04em; }
.login-card .sub { color: var(--ink-2); margin: 0 0 28px; font-size: 15px; }
.login-card .btn { width: 100%; justify-content: center; height: 50px; font-size: 15px; }
.login-hint { margin-top: 22px; font-size: 12px; color: var(--ink-3); text-align: center; font-family: var(--font-mono); line-height: 1.8; }
.login-forgot { margin: -6px 0 18px; text-align: right; }
.login-switch { margin: 20px 0 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.login-switch .btn { width: auto; }
.invite-link { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.invite-link code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (min-width: 901px) { .login-card .brand { display: none; } }

/* ---------- Dashboard: hero de saldo ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero); color: #fff; border-radius: var(--r-xl);
  padding: 28px 34px 28px; margin-bottom: 22px; box-shadow: var(--shadow-lg); }
.hero .globe-deco { position: absolute; right: -60px; top: -80px; width: 340px; height: 340px; color: #fff; }
.hero .globe-deco .wire { opacity: .09; }
.hero .globe-deco .meridian-line { opacity: .35; }
.hero .globe-deco > circle { opacity: .5; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; }
.hero-hello { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 22px; position: relative; color: #fff; }
.hero-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; position: relative; }
.bal-label { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.66); font-size: 14px; font-weight: 600; }
.bal-label button { background: none; border: none; color: inherit; cursor: pointer; padding: 4px; display: grid; place-items: center; border-radius: 8px; }
.bal-label button:hover { color: #fff; background: rgba(255,255,255,.08); }
.bal { font-size: clamp(40px, 5.2vw, 62px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin: 6px 0 10px; }
.bal .cents { font-size: .5em; color: rgba(255,255,255,.5); letter-spacing: -.02em; }
.bal-sub { color: rgba(255,255,255,.58); font-size: 13.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill-glass { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); }
.pill-glass .dot { width: 7px; height: 7px; border-radius: 50%; background: #45c98f; }
.pill-glass.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.actions { display: flex; gap: 12px; align-items: flex-start; }
.action { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 9px; background: none; border: none; color: #fff;
  cursor: pointer; font-size: 12.5px; font-weight: 600; width: 78px; padding: 0; line-height: 1.2; }
.action .circle { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); transition: background .15s, transform .12s; }
.action:hover .circle { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.action.main .circle { background: var(--gold); border-color: var(--gold); color: #1c1305; box-shadow: 0 12px 26px -10px rgba(201,160,74,.8); }
.action.main:hover .circle { background: var(--gold-2); }
.hero-alert { position: relative; margin-top: 24px; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 14px;
  border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); cursor: pointer; width: 100%;
  color: #fff; text-align: left; font-size: 14px; font-weight: 600; }
.hero-alert:hover { background: rgba(255,255,255,.11); }
.hero-alert .ring { width: 36px; height: 36px; border-radius: 12px; background: var(--gold); color: #1c1305; display: grid; place-items: center; flex: none; }
.hero-alert .txt { flex: 1; }
.hero-alert .txt small { display: block; color: rgba(255,255,255,.6); font-size: 12.5px; font-weight: 500; }
@media (max-width: 900px) {
  .hero { padding: 22px 20px 20px; border-radius: 28px; }
  .hero .globe-deco { display: none; }
  .hero-hello { font-size: 21px; margin: 10px 0 16px; }
  .actions { width: 100%; justify-content: space-between; gap: 6px; }
  .action { width: auto; flex: 1; }
  .action .circle { width: 54px; height: 54px; }
}

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px; text-align: left; font: inherit; color: inherit; }
button.stat { cursor: pointer; transition: border-color .15s, transform .12s; }
button.stat:hover { border-color: var(--line-2); transform: translateY(-1px); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.stat .value { font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.stat .foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.delta.up { background: var(--good-bg); color: var(--good); }
.delta.down { background: var(--red-bg); color: var(--red); }
@media (max-width: 900px) {
  .stats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; gap: 12px; margin: 0 -16px 8px; padding: 2px 16px 8px; scrollbar-width: none; }
  .stats::-webkit-scrollbar { display: none; }
  .stats > .stat { flex: 0 0 72%; scroll-snap-align: start; padding: 18px; gap: 12px; }
  .stat .value { font-size: 26px; }
  .corridors { margin: 0 -16px; padding: 2px 16px 10px; scroll-padding: 0 16px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -26px 4px; padding: 0 26px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .seg { flex-wrap: nowrap; flex: none; }
  .seg button { white-space: nowrap; }
  .filters select { flex: none; min-width: 0; }
  .card { padding: 20px 18px; border-radius: 22px; }
}

/* Section header (eyebrow + título) */
.sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 14px; flex-wrap: wrap; }
.sec h3 { font-size: 22px; margin: 8px 0 0; }

/* Corredores: cards horizontales con sparkline (a lo "Mercado cripto") */
.corridors { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; margin: 0 -2px; scrollbar-width: none; }
.corridors > .cor { flex: 1 1 0; min-width: 190px; }
.corridors > .cor.soon { flex: 0 0 168px; min-width: 168px; }
.corridors::-webkit-scrollbar { display: none; }
.cor { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 18px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 204px; }
.cor-head { display: flex; align-items: center; gap: 10px; }
.flag { font-size: 20px; line-height: 1; }
.cor-name { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.rail { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); background: var(--surface-2); border-radius: 7px; padding: 3px 8px; margin-left: auto; }
.cor-vol { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 0; }
.cor-meta { font-size: 12.5px; color: var(--ink-3); }
.cor .spark { margin: auto -2px 0; }
.cor-rate { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
.cor-rate b { color: var(--ink-2); font-weight: 700; }
.cor.soon { border-style: dashed; background: transparent; box-shadow: none; justify-content: center; align-items: flex-start; gap: 8px; color: var(--ink-3); }
.cor.soon .cor-name { color: var(--ink-2); }
@media (max-width: 900px) { .corridors > .cor { flex: 0 0 76%; } .corridors > .cor.soon { flex-basis: 56%; } }

/* Gráfico de volumen */
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 24px 16px; margin-bottom: 22px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.chart-head h3 { font-size: 20px; margin: 8px 0 0; }
.chart-kpis { display: flex; gap: 28px; }
.chart-kpis div { text-align: right; }
.chart-kpis .k { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.chart-kpis .v { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.chart .axis { fill: var(--ink-3); font-size: 11px; font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .xhair { stroke: var(--line-2); stroke-width: 1; }
.tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 16px)); background: var(--navy);
  color: #fff; border-radius: 12px; padding: 8px 12px; font-size: 12.5px; white-space: nowrap; box-shadow: var(--shadow-lg); z-index: 2; }
.tip b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.tip span { color: rgba(255,255,255,.62); }
:root[data-theme="dark"] .tip { background: #f4f5f8; color: #131c35; }
:root[data-theme="dark"] .tip span { color: #5b6478; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tip { background: #f4f5f8; color: #131c35; } :root:not([data-theme="light"]) .tip span { color: #5b6478; } }
.charts-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
@media (max-width: 820px) { .charts-2 { grid-template-columns: 1fr; } .chart-kpis { gap: 18px; } .chart-kpis div { text-align: left; } }
/* compat (barras simples) */
.bar-row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; margin: 10px 0; font-size: 13.5px; }
.bar-row .cur { color: var(--ink-2); font-weight: 600; }
.bar-track { background: var(--surface-2); border-radius: 6px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--gold); border-radius: 0 4px 4px 0; }
.bar-row .val { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Actividad: lista agrupada por día */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: none; background: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(17,26,46,.12); }
:root[data-theme="dark"] .seg button.on { background: var(--surface-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button.on { background: var(--surface-3); } }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.filters select { width: auto; height: 42px; min-width: 150px; font-size: 13.5px; border-radius: 999px; padding: 0 16px; }
.filters .sp { margin-left: auto; }
.day { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; padding: 18px 10px 6px; }
.tx { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 16px; cursor: pointer; width: 100%;
  background: none; border: none; text-align: left; color: inherit; font: inherit; transition: background .12s; }
.tx:hover { background: var(--surface-2); }
.tx-ava { width: 46px; height: 46px; border-radius: 15px; background: var(--gold-weak); color: var(--gold-ink); display: grid; place-items: center;
  font-weight: 800; font-size: 14px; flex: none; position: relative; letter-spacing: .02em; }
.tx-ava .fl { position: absolute; right: -5px; bottom: -5px; font-size: 13px; line-height: 1; background: var(--surface); border-radius: 50%; padding: 3px; }
.tx-main { flex: 1; min-width: 0; }
.tx-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-sub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-amt { text-align: right; flex: none; }
.tx-amt .usd { font-weight: 800; font-size: 15px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tx-amt .loc { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tx .badge { flex: none; min-width: 104px; justify-content: center; }
.tx .chev { color: var(--ink-3); flex: none; }
@media (max-width: 640px) { .tx .badge, .tx .chev { display: none; } .tx-dot { display: inline-block !important; } }
.tx-dot { display: none; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.tx-dot.ok { color: var(--good); } .tx-dot.pending { color: var(--amber); } .tx-dot.fail { color: var(--red); } .tx-dot.wait { color: var(--gold); }
.more-row { display: flex; justify-content: center; padding-top: 14px; }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast { background: var(--navy); color: #eef2f8; padding: 13px 18px; border-radius: 16px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; max-width: 360px; display: flex; align-items: center; gap: 10px; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #45c98f; flex: none; }
.toast.err::before { background: #f08482; }
.toast.in { opacity: 1; transform: translateY(0); }
:root[data-theme="dark"] .toast { background: var(--surface-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: var(--surface-3); } }
@media (max-width: 900px) { .toast-wrap { left: 16px; right: 16px; bottom: 96px; } .toast { max-width: none; } }

/* ---------- Drawer (detalle de pago) ---------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(8,12,24,.5); z-index: 90; opacity: 0; animation: fade .18s forwards; }
@keyframes fade { to { opacity: 1; } }
.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; width: 460px; max-width: calc(100vw - 24px); background: var(--surface);
  border-radius: var(--r-xl); z-index: 91; box-shadow: var(--shadow-lg); padding: 28px; overflow-y: auto;
  transform: translateX(110%); animation: slidein .26s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes slidein { to { transform: translateX(0); } }
.drawer .dclose { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 12px; background: var(--surface-2);
  border: none; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.drawer h3 { font-size: 21px; margin: 0; }
.drawer-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-right: 44px; }
.drawer-amt { background: var(--surface-2); border-radius: 20px; padding: 18px 20px; margin-bottom: 6px; }
.drawer-amt .usd { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.drawer-amt .loc { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.drawer-amt .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 16px 0; font-size: 13.5px; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; word-break: break-word; font-weight: 600; }
@media (max-width: 900px) { .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; max-height: 88vh;
  border-radius: 28px 28px 0 0; transform: translateY(100%); animation: sheetin .26s cubic-bezier(.2,.8,.2,1) forwards; } }

/* Aprobaciones: panel de decisión */
.tbl tr.row-open td { border-bottom: none; }
.decision-row td { background: var(--surface-2); }
.decision { padding: 6px 6px 10px; max-width: 640px; }
.dl.dl-inline { margin: 4px 0 12px; }
.dl.dl-inline dd { text-align: left; }
.tbl .note { font-style: italic; margin-top: 3px; max-width: 280px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 14px 0 0; }
.timeline li { position: relative; padding: 0 0 20px 28px; }
.timeline li:before { content: ""; position: absolute; left: 3px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-2); box-sizing: border-box; }
.timeline li.done:before { background: var(--good); border-color: var(--good); }
.timeline li.fail:before { background: var(--red); border-color: var(--red); }
.timeline li.active:before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-weak); }
.timeline li:not(:last-child):after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 2px; width: 2px; background: var(--line); border-radius: 1px; }
.timeline .tl-lab { font-size: 14px; font-weight: 700; color: var(--ink); }
.timeline .tl-sub { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Nuevo envío (flujo wallet) ---------- */
.send { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.send-side { position: sticky; top: 24px; min-width: 0; }
.send-main { min-width: 0; }
.pick .tx-main { min-width: 0; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-head h3 { margin: 0; }
.step-n { width: 30px; height: 30px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13.5px; flex: none; }
:root[data-theme="dark"] .step-n { background: var(--surface-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step-n { background: var(--surface-3); } }
.card.dim { opacity: .55; }
.search { margin-bottom: 12px; border-radius: 999px; padding: 0 18px; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.pick { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; width: 100%; text-align: left; color: inherit; font: inherit; transition: border-color .15s, background .15s; }
.pick:hover { border-color: var(--line-2); background: var(--surface-2); }
.pick.on { border-color: var(--gold); background: var(--gold-weak); }
.pick-cur { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); flex: none; }
.pick-check { width: 22px; flex: none; color: var(--gold-ink); }
.amount-box { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 26px 12px 18px; border-radius: 22px;
  background: var(--surface-2); cursor: text; }
.cur-sym { font-size: 38px; font-weight: 800; color: var(--ink-3); letter-spacing: -.03em; }
.amount-wrap { display: inline-grid; font-size: clamp(44px, 6vw, 64px); font-weight: 800; letter-spacing: -.045em; }
/* El clon invisible del valor define el ancho: el campo mide exactamente lo que se escribió. */
.amount-wrap::after { content: attr(data-value); visibility: hidden; white-space: pre; grid-area: 1 / 1; font: inherit; letter-spacing: inherit; padding: 0 2px; }
.amount-input { grid-area: 1 / 1; width: 0; min-width: 100%; border: none !important; background: transparent !important; box-shadow: none !important;
  height: auto; padding: 0 2px; font: inherit; letter-spacing: inherit; color: var(--ink); text-align: left; }
.amount-input::placeholder { color: var(--line-2); }
.cur-code { font-size: 15px; font-weight: 700; color: var(--ink-3); }
.amount-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); margin: 12px 4px 14px; flex-wrap: wrap; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.qchip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font-weight: 700; font-size: 13.5px; cursor: pointer; }
.qchip:hover { background: var(--surface-2); }
.qchip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.qchip:disabled { opacity: .5; cursor: not-allowed; }
.summary { background: var(--hero); color: #fff; border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-lg); }
.sum-to { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; }
.sum-to .tx-ava { background: rgba(255,255,255,.1); color: #fff; }
.sum-to .tx-ava .fl { background: var(--navy-2); }
.sum-name { font-weight: 800; font-size: 16px; }
.sum-meta { font-size: 12.5px; color: rgba(255,255,255,.58); }
.sum-empty { color: rgba(255,255,255,.6); font-size: 14px; margin: 16px 0 6px; }
.sum-rows { margin: 16px 0; display: grid; gap: 10px; font-size: 13.5px; }
.sum-rows div { display: flex; justify-content: space-between; gap: 12px; }
.sum-rows span { color: rgba(255,255,255,.6); }
.sum-rows b { font-weight: 700; text-align: right; }
.sum-arrives { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }
.sum-arrives span { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 600; }
.sum-arrives .big { font-size: 32px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; margin-top: 2px; color: var(--gold-2); word-break: break-word; }
.sum-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; padding: 11px 13px; border-radius: 14px; background: rgba(255,255,255,.08);
  font-size: 12.5px; color: rgba(255,255,255,.85); line-height: 1.45; }
.sum-note .ico { margin-top: 1px; color: var(--gold-2); }
.send-btn { width: 100%; justify-content: center; height: 52px; font-size: 15.5px; margin-top: 18px; }
.btn.gold:disabled { opacity: .4; }
.sum-foot { font-size: 12px; color: rgba(255,255,255,.5); text-align: center; margin-top: 12px; }
.send-done { max-width: 560px; margin: 10px auto; text-align: center; padding: 40px 32px; }
.send-done h2 { font-size: 30px; margin: 18px 0 8px; }
.send-done .sub { color: var(--ink-2); margin: 0 auto 22px; max-width: 42ch; }
.send-done-icon { width: 76px; height: 76px; border-radius: 26px; margin: 0 auto; display: grid; place-items: center; background: var(--good-bg); color: var(--good); }
.send-done-icon.wait { background: var(--gold-weak); color: var(--gold-ink); }
.send-done-amt { display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--surface-2); border-radius: 20px; padding: 18px; margin-bottom: 10px; flex-wrap: wrap; }
.send-done-amt .usd { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.send-done-amt .loc { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--gold-ink); }
.send-done-amt .arrow { color: var(--ink-3); }
.empty-state { text-align: center; padding: 44px 28px; max-width: 560px; }
.empty-state .icon-tile { margin: 0 auto 14px; }
.empty-state .sub { color: var(--ink-2); margin: 6px 0 20px; }
@media (max-width: 980px) {
  .send { grid-template-columns: minmax(0, 1fr); }
  .send-side { position: static; }
}

/* ---------- Fondos ---------- */
.fund-hero .bal { margin-top: 8px; }
.pill-glass.flash { background: rgba(69,201,143,.18); border-color: rgba(69,201,143,.35); color: #b9f0d6; }
.fund-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.fund-step { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px; padding: 14px; }
.fund-step .n { width: 28px; height: 28px; border-radius: 9px; background: var(--gold); color: #1c1305; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.fund-step b { display: block; font-size: 14px; }
.fund-step span:not(.n) { font-size: 12.5px; color: rgba(255,255,255,.6); }
.fund-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.bank { display: grid; gap: 10px; }
.bank-field { background: var(--surface-2); border-radius: 16px; padding: 12px 12px 12px 16px; }
.bank-lab { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.bank-row { display: flex; align-items: center; gap: 12px; }
.bank-val { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 16px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.copy-pill { height: 34px; padding: 0 16px; border-radius: 999px; border: none; background: var(--gold); color: #1c1305; font-weight: 800; font-size: 13px; cursor: pointer; flex: none; transition: filter .15s; }
.copy-pill:hover { filter: brightness(1.05); }
.copy-pill.ok { background: var(--good-bg); color: var(--good); }
.rails { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.rails .rail { margin: 0; }
.tx-ava.dep { background: var(--good-bg); color: var(--good); }
.card.sandbox { border-style: dashed; box-shadow: none; background: transparent; }
.fund-tabs { margin: 0 0 18px; }
.danger-note { display: flex; gap: 11px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; margin-bottom: 18px;
  background: var(--red-bg); color: var(--red); font-size: 13.5px; line-height: 1.5; border: 1px solid color-mix(in srgb, var(--red) 25%, transparent); }
.danger-note .ico { margin-top: 1px; }
.addr-box { display: flex; gap: 22px; align-items: center; background: var(--surface-2); border-radius: 20px; padding: 18px; }
.qr { width: 168px; height: 168px; flex: none; border-radius: 14px; background: #fff; }
.addr-info { min-width: 0; flex: 1; }
.addr-val { font-size: 15px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; line-height: 1.5; margin-top: 4px; }
.addr-empty { text-align: center; padding: 28px 16px; background: var(--surface-2); border-radius: 20px; }
.addr-empty p { color: var(--ink-2); margin: 0 0 14px; }
@media (max-width: 640px) { .addr-box { flex-direction: column; align-items: stretch; } .qr { align-self: center; } }
@media (max-width: 980px) { .fund-grid { grid-template-columns: minmax(0, 1fr); } .fund-steps { grid-template-columns: 1fr; } }

/* ---------- Beneficiarios ---------- */
.cur-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cur-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.cur-chip .rail { margin: 0; }
.cur-chip:hover { border-color: var(--line-2); }
.cur-chip.on { border-color: var(--gold); background: var(--gold-weak); }
.ben-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ben { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; }
.ben-top { display: flex; align-items: center; gap: 12px; }
.ben-top .tx-main { min-width: 0; }
.ben-dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 16px 0; font-size: 13px; padding: 14px; background: var(--surface-2); border-radius: 16px; }
.ben-dl dt { color: var(--ink-3); }
.ben-dl dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.ben-actions { display: flex; gap: 8px; margin-top: auto; }
.ben-actions .btn.primary { flex: 1; justify-content: center; }
@media (max-width: 640px) { .filters .search { max-width: none !important; flex: none; width: 100%; } }

/* Beneficiario wallet: validación en vivo y advertencia de red */
.addr-check { display: block; font-size: 12.5px; font-weight: 600; margin-top: 7px; }
.addr-check.ok { color: var(--good); }
.addr-check.bad { color: var(--red); }
.warn-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--amber-bg);
  color: var(--amber); font-size: 13px; line-height: 1.45; margin-bottom: 16px; }
.warn-note .ico { margin-top: 1px; }

.endorsements { display: grid; gap: 8px; }
.endorsement { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Acción a la derecha del encabezado de un paso (Nuevo beneficiario, Envío USD / Recibe) */
.step-head { flex-wrap: wrap; }
.step-head .step-action { margin-left: auto; }
.step-head .seg button { height: 32px; padding: 0 12px; font-size: 12.5px; }
.amount-equiv { text-align: center; font-size: 14px; color: var(--ink-2); margin: 12px 0 2px; }
.amount-equiv b { color: var(--ink); }
.cur-sym.flag-sym { font-size: 30px; align-self: center; }

/* Pop-up (Modal) */
.modal-scrim { position: fixed; inset: 0; background: rgba(8,12,24,.55); z-index: 95; animation: fade .18s both; }
.modal { position: fixed; z-index: 96; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(780px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); overflow-y: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: modalin .2s cubic-bezier(.2,.8,.2,1) both; }
.modal > .card { margin: 0; max-width: none !important; box-shadow: none; }
.modal-close { position: absolute; top: 18px; right: 18px; z-index: 1; width: 36px; height: 36px; border-radius: 12px; border: none;
  background: var(--surface-2); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.modal .card-head { padding-right: 48px; }
@keyframes modalin { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (max-width: 900px) {
  .modal { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 90vh; transform: none; border-radius: 28px 28px 0 0; animation: sheetin .24s cubic-bezier(.2,.8,.2,1) both; }
  .modal > .card { border-radius: 28px 28px 0 0; }
}

tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
