/* =====================================================================
 * VYRO · Sistema de diseño "Midnight Mint"
 * Oscuro por defecto, modo claro con [data-theme="light"].
 * ===================================================================== */

:root {
  /* Superficies */
  --bg: #06080d;
  --bg-elev: #0b0f17;
  --surface: #0f141e;
  --surface-2: #151b28;
  --surface-3: #1c2433;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .13);
  --scrim: rgba(2, 4, 8, .72);

  /* Texto */
  --text: #eef2f8;
  --text-2: #a3aec0;
  --text-3: #6d7a90;

  /* Marca */
  --brand: #2ee6a6;
  --brand-2: #19c2e6;
  --brand-ink: #03140d;
  --brand-soft: rgba(46, 230, 166, .12);
  --brand-glow: rgba(46, 230, 166, .35);
  --grad: linear-gradient(135deg, #2ee6a6 0%, #19c2e6 100%);

  /* Semánticos */
  --buy: #2ee6a6;
  --buy-soft: rgba(46, 230, 166, .12);
  --sell: #ff5c7a;
  --sell-soft: rgba(255, 92, 122, .12);
  --warn: #ffb547;
  --warn-soft: rgba(255, 181, 71, .12);
  --info: #6aa9ff;
  --info-soft: rgba(106, 169, 255, .12);

  /* Forma y profundidad */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 12px 32px -12px rgba(0, 0, 0, .7);
  --shadow-3: 0 30px 80px -20px rgba(0, 0, 0, .8);

  /* Tipografía */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Movimiento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --t-fast: 140ms;
  --t: 220ms;

  /* Capas */
  --z-nav: 20;
  --z-modal: 50;
  --z-toast: 60;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-elev: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --surface-3: #e9edf3;
  --border: rgba(12, 20, 36, .08);
  --border-strong: rgba(12, 20, 36, .16);
  --scrim: rgba(10, 16, 28, .45);

  --text: #0b1220;
  --text-2: #475467;
  --text-3: #667085;

  --brand: #059669;
  --brand-2: #0891b2;
  --brand-ink: #ffffff;
  --brand-soft: rgba(5, 150, 105, .10);
  --brand-glow: rgba(5, 150, 105, .25);
  --grad: linear-gradient(135deg, #10b981 0%, #0891b2 100%);

  --buy: #059669;
  --buy-soft: rgba(5, 150, 105, .10);
  --sell: #e11d48;
  --sell-soft: rgba(225, 29, 72, .08);
  --warn: #b45309;
  --warn-soft: rgba(245, 158, 11, .12);
  --info: #1d4ed8;
  --info-soft: rgba(29, 78, 216, .08);

  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-2: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -16px rgba(16, 24, 40, .18);
  --shadow-3: 0 30px 80px -20px rgba(16, 24, 40, .35);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  touch-action: manipulation;
}
/* Brillo ambiental de fondo */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(25, 194, 230, .10), transparent 60%),
    radial-gradient(50rem 28rem at -10% 10%, rgba(46, 230, 166, .09), transparent 60%);
}
:root[data-theme="light"] body::before {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(8, 145, 178, .08), transparent 60%),
    radial-gradient(50rem 28rem at -10% 10%, rgba(16, 185, 129, .08), transparent 60%);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -.03em; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { flex: none; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { width: 100%; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #03140d; box-shadow: 0 6px 20px -6px var(--brand-glow); }
.logo svg { width: 20px; height: 20px; }
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: -.045em; text-transform: lowercase; }
.wordmark::after { content: "."; color: var(--brand); }
.nav { display: none; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 550; font-size: 14px; transition: color var(--t-fast), background var(--t-fast); }
.nav a svg { width: 16px; height: 16px; }
.nav a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-3); box-shadow: var(--shadow-1); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.user-chip { display: none; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; }
.user-chip:hover { text-decoration: none; border-color: var(--border-strong); }
.user-chip .avatar { width: 30px; height: 30px; font-size: 12px; }

/* ---------- Navegación inferior (móvil) ---------- */
.tabbar {
  position: fixed; inset: auto 12px calc(10px + env(safe-area-inset-bottom)) 12px; z-index: var(--z-nav);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-3);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; border-radius: 16px; color: var(--text-3); font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
  transition: color var(--t-fast), background var(--t-fast);
}
.tabbar a:hover { text-decoration: none; color: var(--text-2); }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--brand); background: var(--brand-soft); }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 20px 16px 32px; outline: none; }
.narrow { max-width: 760px; margin: 0 auto; }
.page { animation: page-in .35s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 24px; }
.stack-sm { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; color: var(--text-3); }
.right { text-align: right; }
.center { text-align: center; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; color: var(--text-2); font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; font-weight: 550; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--text); text-decoration: none; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.split { display: grid; gap: 16px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } .split > .sticky { position: sticky; top: 84px; } }

@media (min-width: 900px) {
  .nav { display: flex; }
  .user-chip { display: inline-flex; }
  .tabbar { display: none; }
  body { padding-bottom: 0; }
  .container { padding: 32px 24px 64px; }
}

/* ---------- Tarjetas ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-2);
}
.card-sm { padding: 16px; border-radius: var(--r); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { display: flex; align-items: center; gap: 10px; }
.card-flat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; }
.divider { height: 1px; background: var(--border); margin: 4px 0; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; }

/* ---------- Hero del mercado ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: 28px 22px;
  background:
    radial-gradient(40rem 18rem at 100% 0%, rgba(25, 194, 230, .22), transparent 60%),
    radial-gradient(36rem 18rem at 0% 100%, rgba(46, 230, 166, .18), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.05; max-width: 16ch; text-wrap: balance; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 12px; color: var(--text-2); font-size: 15px; max-width: 46ch; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 16px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--buy); box-shadow: 0 0 0 0 var(--brand-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--brand-glow); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.stat { padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1px solid var(--border); backdrop-filter: blur(6px); }
.stat .label { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.stat .value { margin-top: 4px; font-family: var(--mono); font-size: clamp(15px, 2.6vw, 20px); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.stat .value small { font-family: var(--font); font-size: 11px; color: var(--text-3); font-weight: 600; margin-left: 3px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.trust svg { width: 16px; height: 16px; color: var(--brand); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.calc { display: none; }
@media (min-width: 900px) {
  .hero { padding: 44px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .85fr); gap: 48px; }
  .calc { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--border-strong); box-shadow: var(--shadow-3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.calc-swap { display: grid; place-items: center; width: 36px; height: 36px; margin: -6px auto; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--brand); }
.calc-swap svg { width: 16px; height: 16px; }
.calc-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 14px; border-radius: 14px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.calc-out { font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px;
  border: 1px solid transparent; background: var(--brand); color: var(--brand-ink);
  font-weight: 650; font-size: 14.5px; letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 24px -10px var(--brand-glow);
  transition: transform var(--t-fast) var(--ease-out), filter var(--t-fast), box-shadow var(--t), background var(--t-fast);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn-grad { background: var(--grad); color: #03140d; }
.btn-buy { background: var(--buy); color: var(--brand-ink); }
.btn-sell { background: var(--sell); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 8px 24px -10px rgba(255, 92, 122, .5); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-3); filter: none; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); box-shadow: none; }
.btn-outline:hover { background: var(--surface-2); filter: none; }
.btn-danger { background: transparent; color: var(--sell); border-color: color-mix(in srgb, var(--sell) 35%, transparent); box-shadow: none; }
.btn-danger:hover { background: var(--sell-soft); filter: none; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
.btn-lg { min-height: 54px; padding: 0 22px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 7px; }
.field > .label, .field > span:first-child { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field > span.hint, .hint { font-size: 12px; font-weight: 400; color: var(--text-3); line-height: 1.45; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--border-strong); background: var(--bg-elev); outline: none;
  font-size: 16px; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
.input[readonly] { color: var(--text-2); background: var(--surface-2); }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238893a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input-group { position: relative; }
.input-group .input { padding-right: 70px; }
.input-group .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-weight: 650; font-size: 13px; pointer-events: none; }
.input-xl { min-height: 64px; font-size: 26px; font-family: var(--mono); font-weight: 600; letter-spacing: -.02em; }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 14px; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.check:hover { border-color: color-mix(in srgb, var(--text) 25%, transparent); }
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 52px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-3); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.pass-toggle:hover { color: var(--text); }
.pass-toggle svg { width: 18px; height: 18px; }

/* ---------- Segmentado ---------- */
.segmented { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.segmented button { border: 0; background: transparent; min-height: 44px; padding: 8px 12px; border-radius: 12px; font-weight: 650; font-size: 14.5px; color: var(--text-2); cursor: pointer; transition: color var(--t-fast), background var(--t), box-shadow var(--t); }
.segmented button:hover { color: var(--text); }
.segmented button.on { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-1); }
.segmented button.on.buy { background: var(--buy-soft); color: var(--buy); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--buy) 35%, transparent); }
.segmented button.on.sell { background: var(--sell-soft); color: var(--sell); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sell) 35%, transparent); }

/* ---------- Filtros ---------- */
.toolbar { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; }
.toolbar-note { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 720px) { .toolbar { grid-template-columns: auto 190px 170px auto 1fr; } .toolbar-note { grid-column: auto; justify-self: end; } }

/* ---------- Insignias ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--buy-soft); color: var(--buy); border-color: color-mix(in srgb, var(--buy) 25%, transparent); }
.badge-bad { background: var(--sell-soft); color: var(--sell); border-color: color-mix(in srgb, var(--sell) 25%, transparent); }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.badge-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.badge-muted { background: var(--surface-2); color: var(--text-3); border-color: var(--border); }
.badge-plain::before { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.chip::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--grad); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.verified { display: inline-flex; color: var(--brand); }
.verified svg { width: 15px; height: 15px; }

/* ---------- Avatar ---------- */
.avatar { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; font-weight: 700; font-size: 15px; color: var(--text); flex: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 30%, var(--surface-3)), color-mix(in srgb, var(--brand-2) 26%, var(--surface-3)));
  border: 1px solid var(--border-strong); }
.avatar.online::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--buy); border: 2px solid var(--surface); }
.avatar-lg { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; }

/* ---------- Ofertas ---------- */
.offers { display: grid; gap: 12px; }
.offers-head { display: none; }
.offer { display: grid; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); transition: border-color var(--t), transform var(--t) var(--ease-out), box-shadow var(--t); animation: rise .45s var(--ease-out) both; }
.offer:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.offer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.trader { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trader-name { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.trader-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.trader-meta > span { white-space: nowrap; }
.trader-meta b { color: var(--text-2); font-weight: 600; }
.price { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.price small { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.price-label { font-size: 11px; color: var(--text-3); font-weight: 600; margin-bottom: 6px; text-align: right; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin: 0; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.offer-cta { display: flex; gap: 10px; align-items: center; }
.offer-cta .btn { flex: 1; }
@media (min-width: 900px) {
  .offers-head { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1.2fr 140px; gap: 20px; padding: 0 20px; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
  .offer { grid-template-columns: 1.6fr 1fr 1.4fr 1.2fr 140px; gap: 20px; align-items: center; padding: 18px 20px; }
  .offer-top { display: contents; }
  .offer .price-label { display: none; }
  .offer .kv { grid-template-columns: auto 1fr; }
  .offer-cta .btn { flex: none; width: 100%; }
}

/* ---------- Orden ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tl-step { display: grid; gap: 8px; }
.tl-bar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.tl-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width .6s var(--ease-out); }
.tl-step.done .tl-bar i { width: 100%; }
.tl-step.current .tl-bar i { width: 55%; }
.tl-label { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.tl-step.done .tl-label, .tl-step.current .tl-label { color: var(--text); }
.amount-hero { text-align: center; padding: 10px 0 4px; }
.amount-hero .big { font-family: var(--mono); font-size: clamp(30px, 7vw, 42px); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.amount-hero .big small { font-family: var(--font); font-size: .45em; color: var(--text-3); font-weight: 650; letter-spacing: 0; margin-left: 6px; }
.timer { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.ring { --p: 100; position: relative; width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--warn) calc(var(--p) * 1%), color-mix(in srgb, var(--warn) 15%, transparent) 0); transition: background .9s linear; }
.ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.ring svg { position: absolute; inset: 0; margin: auto; z-index: 1; width: 20px; height: 20px; color: var(--warn); }
.countdown { font-family: var(--mono); font-weight: 600; font-size: 26px; letter-spacing: -.02em; color: var(--warn); }
.pay-box { display: grid; gap: 2px; padding: 6px; border-radius: var(--r); background: var(--bg-elev); border: 1px solid var(--border-strong); }
.pay-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.pay-line:hover { background: var(--surface-2); }
.pay-line .k { color: var(--text-3); font-size: 13px; }
.pay-line .v { font-family: var(--mono); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; text-align: right; }
.pay-line.total { background: var(--brand-soft); }
.pay-line.total .v { color: var(--brand); font-size: 17px; }
.copy { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 9px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text-2); flex: none; transition: color var(--t-fast), border-color var(--t-fast); }
.copy:hover { color: var(--text); border-color: var(--brand); }
.copy svg { width: 14px; height: 14px; }
.copy.done { color: var(--brand); border-color: var(--brand); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: 13.5px; line-height: 1.5; border: 1px solid transparent; }
.alert svg { width: 18px; height: 18px; margin-top: 1px; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 22%, transparent); }
.alert-bad { background: var(--sell-soft); color: var(--sell); border-color: color-mix(in srgb, var(--sell) 22%, transparent); }
.alert-ok { background: var(--buy-soft); color: var(--buy); border-color: color-mix(in srgb, var(--buy) 22%, transparent); }
.alert b { font-weight: 700; }

.success-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: var(--buy-soft); color: var(--buy); box-shadow: 0 0 0 8px color-mix(in srgb, var(--buy) 6%, transparent); animation: pop .5s var(--ease-out) both; }
.success-mark svg { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 420px; min-height: 140px; overflow-y: auto; padding: 4px 2px; scroll-behavior: smooth; }
.msg { max-width: 84%; padding: 9px 13px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .25s var(--ease-out) both; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-color: transparent; border-bottom-right-radius: 5px; }
.msg.them { align-self: flex-start; border-bottom-left-radius: 5px; }
.msg time { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; }
.chat-empty { margin: auto; text-align: center; color: var(--text-3); font-size: 13px; max-width: 30ch; display: grid; gap: 8px; justify-items: center; }
.chat-empty svg { width: 28px; height: 28px; opacity: .6; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding-top: 12px; border-top: 1px solid var(--border); }
.composer .textarea { min-height: 48px; max-height: 140px; }
.composer .btn { width: 48px; padding: 0; flex: none; }

/* ---------- Listas ---------- */
.list { display: grid; }
.list > * { padding: 14px 0; border-bottom: 1px solid var(--border); }
.list > *:first-child { padding-top: 0; }
.list > *:last-child { border-bottom: 0; padding-bottom: 0; }
.list a.item { color: inherit; display: flex; justify-content: space-between; gap: 12px; align-items: center; border-radius: 12px; transition: background var(--t-fast); }
.list a.item:hover { text-decoration: none; }
.list a.item:hover .item-title { color: var(--brand); }
.item-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.item-icon svg { width: 18px; height: 18px; }
.item-icon.buy { background: var(--buy-soft); color: var(--buy); }
.item-icon.sell { background: var(--sell-soft); color: var(--sell); }
.item-icon.neutral { background: var(--surface-2); color: var(--text-2); }
.item-title { font-weight: 600; transition: color var(--t-fast); }
.pos { color: var(--buy); }
.neg { color: var(--sell); }

/* ---------- Billetera ---------- */
.balance-card { overflow: hidden; padding: 26px 22px; border-radius: var(--r-xl); border: 1px solid var(--border-strong);
  background:
    radial-gradient(30rem 14rem at 100% 0%, rgba(25, 194, 230, .25), transparent 60%),
    radial-gradient(28rem 14rem at 0% 120%, rgba(46, 230, 166, .22), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-2); }
.balance { font-family: var(--mono); font-size: clamp(34px, 8vw, 48px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; margin-top: 6px; }
.balance small { font-family: var(--font); font-size: 16px; color: var(--text-2); font-weight: 650; letter-spacing: 0; margin-left: 8px; }
.balance-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.token { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.token-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #26a17b; color: #fff; font-size: 13px; font-weight: 800; }

/* ---------- Estados vacíos y carga ---------- */
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 40px 16px; color: var(--text-3); }
.empty-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.empty-icon svg { width: 24px; height: 24px; }
.empty strong { color: var(--text); font-size: 16px; font-weight: 650; }
.empty p { max-width: 36ch; font-size: 14px; }
.skeleton { height: 96px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; border: 1px solid var(--border); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Autenticación ---------- */
.auth { display: grid; gap: 24px; max-width: 1040px; margin: 8px auto; align-items: center; }
.auth-aside { display: none; }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-card .card { padding: 28px 24px; }
.auth-title { text-align: center; margin-bottom: 22px; }
.auth-title .logo { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 16px; }
.auth-title .logo svg { width: 28px; height: 28px; }
.auth-title p { color: var(--text-2); margin-top: 6px; font-size: 14px; }
@media (min-width: 960px) {
  .auth { grid-template-columns: 1.1fr 1fr; gap: 48px; min-height: calc(100dvh - 160px); }
  .auth-aside { display: grid; gap: 24px; }
  .auth-aside h1 { font-size: 48px; line-height: 1.04; max-width: 13ch; }
  .auth-aside h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .auth-title .logo { display: none; }
}
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); flex: none; }
.feature-icon svg { width: 20px; height: 20px; }
.feature b { display: block; font-weight: 650; }
.feature span { color: var(--text-2); font-size: 14px; }

/* ---------- Modal (hoja inferior en móvil) ---------- */
.backdrop { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--scrim); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; align-items: end; justify-items: center; animation: fade .2s ease-out both; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border-strong); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 26px 18px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 16px; box-shadow: var(--shadow-3); animation: sheet .38s var(--ease-out) both; }
.modal::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 560px) {
  .backdrop { align-items: center; padding: 24px; }
  .modal { border-radius: 26px; border-bottom: 1px solid var(--border-strong); padding: 26px; animation-name: zoom; }
  .modal::before { display: none; }
}
@keyframes zoom { from { transform: scale(.96) translateY(8px); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); }
.modal-icon svg { width: 22px; height: 22px; }
.modal-icon.ok { background: var(--buy-soft); color: var(--buy); }
.modal-icon.bad { background: var(--sell-soft); color: var(--sell); }
.modal-icon.warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- Toasts ---------- */
#toasts { position: fixed; z-index: var(--z-toast); left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top)); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-3); color: var(--text); border: 1px solid var(--border-strong); font-size: 14px; font-weight: 550; box-shadow: var(--shadow-3); animation: toast-in .35s var(--ease-out) both; pointer-events: auto; }
.toast svg { width: 18px; height: 18px; }
.toast.ok svg { color: var(--buy); }
.toast.bad svg { color: var(--sell); }
.toast.out { animation: toast-out .2s var(--ease-in) both; }
@keyframes toast-in { from { transform: translateY(-12px) scale(.98); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(-8px); opacity: 0; } }

.demo-banner { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: 600; padding: 7px 12px; border-bottom: 1px solid color-mix(in srgb, var(--warn) 20%, transparent); }
.demo-banner svg { width: 14px; height: 14px; }

.footer { max-width: 1180px; margin: 0 auto; padding: 8px 16px 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: var(--text-3); font-size: 12.5px; }
.footer span { display: inline-flex; align-items: center; gap: 6px; }
.footer svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Inicio ---------- */
.home-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .home-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.action { display: grid; justify-items: center; gap: 8px; padding: 10px 2px; border: 0; border-radius: 16px; background: transparent; color: var(--text); cursor: pointer; font: inherit; transition: background var(--t-fast); }
.action:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.action:active .action-icon { transform: scale(.94); }
.action-icon { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text); transition: transform var(--t-fast) var(--ease-out); }
.action-icon svg { width: 22px; height: 22px; }
.action.primary .action-icon { background: var(--grad); color: #03140d; border-color: transparent; box-shadow: 0 10px 24px -10px var(--brand-glow); }
.action-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.rate { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.rate .v { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.rate .v small { font-family: var(--font); font-size: 12px; color: var(--text-3); font-weight: 600; }
.rate .v.buy { color: var(--buy); }
.rate .v.sell { color: var(--sell); }
a.badge:hover { text-decoration: none; filter: brightness(1.1); }

/* ---------- Sub-navegación P2P ---------- */
.subnav { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: 1; text-align: center; padding: 10px 14px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: color var(--t-fast), background var(--t-fast); }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.active { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-1); }
@media (min-width: 720px) { .subnav { align-self: start; width: max-content; } .subnav a { flex: none; } }

/* ---------- Publicar anuncio ---------- */
.rate-preview { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--bg-elev); border: 1px dashed var(--border-strong); }
.rate-big { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.rate-big small { font-family: var(--font); font-size: 13px; color: var(--text-3); font-weight: 600; letter-spacing: 0; }
.adv { border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; background: var(--surface-2); }
.adv summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-2); list-style-position: inside; }
.adv[open] summary { color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; font-size: inherit; cursor: pointer; }

/* ---------- Comprobante y espera ---------- */
.upload { display: grid; justify-items: center; gap: 6px; padding: 22px 16px; border-radius: var(--r); border: 1.5px dashed var(--border-strong); background: var(--bg-elev); cursor: pointer; text-align: center; transition: border-color var(--t-fast), background var(--t-fast); }
.upload:hover, .upload.done { border-color: var(--brand); background: var(--brand-soft); }
.upload-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--brand); }
.upload-icon svg { width: 22px; height: 22px; }
.proof-img { display: block; width: 100%; max-height: 60dvh; object-fit: contain; border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--bg-elev); }
.waiting { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--info) 22%, transparent); }
.waiting strong { display: block; margin-bottom: 2px; }
.waiting-dot { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--info); flex: none; animation: pulse-info 1.8s infinite; }
@keyframes pulse-info { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--info) 50%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Filtros compactos ---------- */
.input-sm, .select-sm { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 14px; border-radius: 12px; }
.select-sm { padding-right: 34px; background-position: right 10px center; }
.toolbar .input-group .suffix { right: 12px; font-size: 12px; }
.toolbar .input-group .input { padding-right: 44px; }
.toolbar .btn-sm { min-height: 40px; }
@media (max-width: 480px) { .hide-sm { display: none; } .toolbar .btn-sm { width: 44px; padding: 0; } }
@media (min-width: 720px) { .segmented { max-width: 420px; } }
.segmented button { min-height: 40px; font-size: 14px; }

/* ---------- Ofertas destacadas ---------- */
.offer { position: relative; overflow: hidden; }
.offer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--buy); opacity: .55; transition: opacity var(--t); }
.offer-sell::before { background: var(--sell); }
.offer:hover { transform: translateY(-2px); }
.offer:hover::before { opacity: 1; }
.offer .price { font-size: 26px; }
.price.buy { color: var(--buy); }
.price.sell { color: var(--sell); }
.offer-price { text-align: right; }
.offer.best { border-color: color-mix(in srgb, var(--buy) 45%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--buy) 7%, var(--surface)), var(--surface) 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--buy) 18%, transparent), 0 18px 50px -24px color-mix(in srgb, var(--buy) 55%, transparent); padding-top: 34px; }
.offer-sell.best { border-color: color-mix(in srgb, var(--sell) 45%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--sell) 7%, var(--surface)), var(--surface) 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sell) 18%, transparent), 0 18px 50px -24px color-mix(in srgb, var(--sell) 55%, transparent); }
.offer.best::before { opacity: 1; }
.offer-ribbon { position: absolute; top: 0; left: 18px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 5px; border-radius: 0 0 10px 10px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--buy); color: var(--brand-ink); }
.offer-sell .offer-ribbon { background: var(--sell); color: #fff; }
.offer-ribbon svg { fill: currentColor; }
.offer-cta .btn { gap: 6px; }
@media (min-width: 900px) {
  .offer.best { padding-top: 30px; }
  .offer-price { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .offer:hover { transform: none; } }

/* ---------- Nombre de usuario ---------- */
.handle { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--brand); margin-top: 2px; }
.at-group .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-weight: 700; font-family: var(--mono); pointer-events: none; }
.at-group .input { padding-left: 32px; padding-right: 14px; font-family: var(--mono); }
.hint-ok { color: var(--buy) !important; }
.hint-bad { color: var(--sell) !important; }
.handle-card { display: grid; justify-items: center; gap: 8px; padding: 20px 16px; border-radius: var(--r); text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, var(--surface-2)), color-mix(in srgb, var(--brand-2) 10%, var(--surface-2))); border: 1px solid var(--border-strong); }
.handle-big { font-family: var(--mono); font-size: 28px; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.nudge { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: var(--r); cursor: pointer; text-align: left; color: var(--text); font: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border)); transition: border-color var(--t-fast), transform var(--t-fast); }
.nudge:hover { border-color: var(--brand); }
.nudge strong { display: block; }
.nudge .tiny { display: block; }
.nudge > svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }

/* ---------- Orden a una columna + chat flotante ---------- */
.order-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding-bottom: 72px; }
.chat-fab { position: fixed; z-index: calc(var(--z-nav) + 1); right: 16px; bottom: calc(96px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; height: 56px; min-width: 56px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: var(--brand-ink); font-weight: 700; font-size: 15px; box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--brand) 70%, transparent), var(--shadow-2);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t); animation: pop .4s var(--ease-out) both; }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab:hover { transform: translateY(-2px) scale(1.03); }
.chat-fab:active { transform: scale(.96); }
.chat-fab.on { transform: scale(.92); opacity: 0; pointer-events: none; }
.fab-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: var(--sell); color: #fff; font-size: 12px; font-weight: 800; border: 2px solid var(--bg); animation: pop .3s var(--ease-out) both; }
.fab-badge[hidden] { display: none; }
.chat-panel { position: fixed; z-index: var(--z-modal); left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); height: min(72dvh, 620px);
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-3);
  animation: sheet .32s var(--ease-out) both; }
.chat-panel[hidden] { display: none; }
.chat-panel-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.chat-panel-head .avatar { width: 38px; height: 38px; border-radius: 12px; }
.chat-panel-head .avatar svg { width: 18px; height: 18px; }
.chat-panel .chat { flex: 1; max-height: none; min-height: 0; }
.chat-panel .composer { padding-top: 10px; }
.chat-safe { display: flex; align-items: center; justify-content: center; gap: 5px; margin: -2px 0 0; }
@media (max-width: 899px) { body.chat-open .tabbar { visibility: hidden; } }
@media (min-width: 900px) {
  .chat-fab { right: 28px; bottom: 28px; }
  .chat-panel { left: auto; right: 28px; bottom: 28px; width: 390px; height: min(620px, calc(100dvh - 120px)); }
}
@media (prefers-reduced-motion: reduce) { .chat-fab, .chat-panel, .fab-badge { animation: none; } .chat-fab:hover { transform: none; } }

/* ---------- Selector de moneda ---------- */
.cur-pills { grid-column: 1 / -1; display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); justify-self: start; }
.cur-pills button { min-width: 52px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: color var(--t-fast), background var(--t-fast); }
.cur-pills button:hover { color: var(--text); }
.cur-pills button.on { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent); }
@media (min-width: 720px) { .cur-pills { grid-column: auto; } }

/* ---------- Ofertas compactas ---------- */
.offers { gap: 8px; }
.offer { gap: 10px; padding: 14px 14px 14px 16px; border-radius: 16px; }
.offer .avatar { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
.offer .trader { gap: 10px; }
.offer .trader-name { font-size: 14px; }
.offer .trader-meta { font-size: 11.5px; gap: 6px; margin-top: 1px; }
.offer .price { font-size: 20px; }
.offer .price small { font-size: 11px; }
.offer .price-label { font-size: 10.5px; margin-bottom: 3px; }
.offer .kv { font-size: 12.5px; gap: 3px 12px; }
.offer .chip { padding: 3px 8px; font-size: 11.5px; }
.offer-cta .btn { min-height: 40px; font-size: 14px; border-radius: 12px; }
.offer:hover { transform: none; }
@media (min-width: 900px) {
  .offer { padding: 12px 16px 12px 18px; gap: 16px; }
  .offers-head { gap: 16px; padding: 0 18px; }
  .offer-cta .btn { min-height: 38px; }
}

/* Pie de la oferta: métodos + botón en una fila (móvil) */
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.offer-foot .chips { min-width: 0; }
.offer-foot .offer-cta { flex: none; }
.offer-foot .offer-cta .btn { min-height: 36px; padding: 0 14px; }
@media (max-width: 899px) {
  .offer .price-label { display: none; }
  .offer-top { align-items: center; }
  .offer .kv { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
}
@media (min-width: 900px) { .offer-foot { display: contents; } .offer-foot .offer-cta .btn { width: 100%; } }

/* Ofertas aún más compactas */
.offers { gap: 6px; }
.offer { gap: 8px; padding: 10px 12px 10px 14px; border-radius: 14px; }
.offer .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.offer .trader { gap: 8px; }
.offer .trader-name { font-size: 13.5px; }
.offer .trader-meta { font-size: 11px; }
.offer .verified svg { width: 13px; height: 13px; }
.offer .price { font-size: 18px; }
.offer .price small { font-size: 10.5px; }
.offer .kv { font-size: 12px; gap: 2px 10px; }
.offer .chip { padding: 2px 7px; font-size: 11px; }
.offer-foot .offer-cta .btn { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
@media (max-width: 899px) { .offer .kv { padding: 6px 9px; border-radius: 9px; } }
@media (min-width: 900px) { .offer { padding: 9px 14px 9px 16px; } .offer-foot .offer-cta .btn { min-height: 32px; } }

/* =====================================================================
 * v9 · Fotos de perfil, P2P en lista, botón $, envío estilo Cash App, Ajustes
 * ===================================================================== */

/* ---------- Avatares con foto ---------- */
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar-md { width: 40px; height: 40px; border-radius: 50%; font-size: 14px; }
.avatar-xl { width: 96px; height: 96px; border-radius: 50%; font-size: 34px; }
.user-chip .avatar { border-radius: 50%; }

/* ---------- Barra inferior con botón $ ---------- */
.tabbar { grid-auto-columns: 1fr; }
.tab-cash { overflow: visible; }
.tab-cash:hover, .tab-cash.active { background: transparent !important; }
.tab-cash-btn { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -26px; border-radius: 50%; background: var(--grad); color: var(--brand-ink);
  box-shadow: 0 10px 26px -8px var(--brand-glow), 0 0 0 5px var(--bg); transition: transform var(--t-fast) var(--ease-out); }
.tab-cash-btn svg { width: 24px !important; height: 24px !important; }
.tab-cash:active .tab-cash-btn { transform: scale(.92); }
.tab-cash.active > span:last-child { color: var(--brand); }
.nav .tab-cash-btn { display: contents; }
.nav .tab-cash-btn svg { width: 16px !important; height: 16px !important; }

/* ---------- P2P en lista ---------- */
.p2p-page { gap: 14px; }
.p2p-top { display: flex; align-items: center; gap: 10px; }
.p2p-me .avatar { width: 44px; height: 44px; border-radius: 50%; }
.side-switch { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); max-width: 320px; }
.side-switch > * { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.side-switch > *:hover { color: var(--text); text-decoration: none; }
.side-switch .on { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-1); }
.side-switch .on.buy { background: var(--buy); color: var(--brand-ink); }
.side-switch .on.sell { background: var(--sell); color: #fff; }
.side-switch-wide { max-width: none; flex: none; }
.side-switch .count { margin: 0; }
.count-hot { background: var(--sell) !important; color: #fff !important; }
.p2p-tools { display: flex; gap: 6px; margin-left: auto; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); }
.tool-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); background: transparent; border: 0; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); flex: none; }
.p2p-top > .tool-btn { background: var(--surface); border: 1px solid var(--border-strong); }
.tool-btn:hover { color: var(--text); background: var(--surface-3); text-decoration: none; }
.tool-btn svg { width: 20px; height: 20px; }
.tool-primary { background: var(--grad); color: var(--brand-ink); }
.tool-primary:hover { background: var(--grad); color: var(--brand-ink); filter: brightness(1.08); }

.m-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
.m-chips::-webkit-scrollbar { display: none; }
.m-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.m-chip:hover { color: var(--text); }
.m-chip small { font-size: 11px; font-weight: 700; color: var(--text-3); }
.m-chip.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 50%, transparent); color: var(--text); }
.m-chip.on small { color: var(--brand); }
.m-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: -.02em; flex: none; }

.p2p-list { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-1); }
.p2p-list > .skeleton, .p2p-list > .stack { margin: 14px; }
.p2p-list > .empty { padding: 28px 16px; }
.p2p-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--border); animation: rise .35s var(--ease-out) both; }
.p2p-row:last-child { border-bottom: 0; }
.p2p-main { display: grid; gap: 7px; min-width: 0; }
.p2p-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.p2p-who > div { min-width: 0; }
.p2p-name { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 15.5px; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p2p-name .verified svg { width: 15px; height: 15px; }
.crown { display: inline-flex; color: #fbbf24; }
.crown svg { width: 15px; height: 15px; fill: currentColor; }
.p2p-stats { display: flex; gap: 10px; font-size: 12px; color: var(--text-3); font-weight: 600; white-space: nowrap; overflow: hidden; }
.p2p-stats span { display: inline-flex; align-items: center; gap: 3px; }
.p2p-stats svg { width: 12px; height: 12px; }
.p2p-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.p2p-rate { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.p2p-pct { font-size: 12.5px; font-weight: 700; }
.p2p-pct.up { color: var(--sell); }
.p2p-pct.down { color: var(--buy); }
.p2p-method { display: flex; align-items: center; gap: 6px; font-size: 14px; min-width: 0; }
.p2p-method strong { font-weight: 650; white-space: nowrap; }
.p2p-more { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.p2p-kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 2px 0 0; font-size: 13px; }
.p2p-kv dt { color: var(--text-3); }
.p2p-kv dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p2p-terms { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--text-3); min-width: 0; }
.p2p-terms svg { width: 14px; height: 14px; flex: none; color: var(--info); }
.p2p-terms span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p2p-side { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 50px; }
.p2p-side .btn { min-height: 40px; padding: 0 10px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.btn-manage { background: var(--info-soft); color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); }
.btn-manage:hover { text-decoration: none; filter: brightness(1.1); }
.p2p-date { text-align: center; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.p2p-bar { height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.p2p-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
@media (min-width: 720px) {
  .p2p-row { grid-template-columns: minmax(0, 1fr) 150px; padding: 16px 20px; }
  .p2p-main { grid-template-columns: minmax(180px, 1.2fr) 1fr 1fr; align-items: center; column-gap: 20px; }
  .p2p-who { grid-column: 1; grid-row: 1 / span 2; }
  .p2p-price { grid-column: 2; margin: 0; }
  .p2p-method { grid-column: 2; }
  .p2p-kv { grid-column: 3; grid-row: 1 / span 2; }
  .p2p-terms { grid-column: 1 / -1; }
  .p2p-side { padding-top: 0; justify-content: center; }
}

/* ---------- Inicio ---------- */
.home { max-width: 720px; margin: 0 auto; width: 100%; }
.home-head { display: flex; align-items: center; gap: 12px; }
.home-head h1 { font-size: 24px; }
.balance-card { display: grid; gap: 10px; padding: 24px 22px 26px; }
.balance-handle { font-size: 13px; color: var(--text-2); }
.actions-row { margin-top: -6px; padding: 6px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }

/* ---------- Enviar (estilo Cash App) ---------- */
.cash { max-width: 440px; margin: 0 auto; width: 100%; }
.cash-step { display: grid; gap: 18px; }
.cash-step[hidden] { display: none; }
.cash-display { display: grid; justify-items: center; gap: 6px; padding: 18px 0 6px; }
.cash-amount { display: flex; align-items: baseline; justify-content: center; gap: 4px; font-family: var(--mono); font-size: clamp(56px, 18vw, 80px); font-weight: 700; letter-spacing: -.05em; line-height: 1; transition: color var(--t-fast); }
.cash-amount.long { font-size: clamp(40px, 12vw, 58px); }
.cash-amount.over { color: var(--sell); animation: shake .3s; }
.cash-unit { font-size: .45em; color: var(--brand); margin-right: 2px; transform: translateY(-.45em); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.cash-sub { font-size: 13px; color: var(--text-3); font-weight: 600; }
.cash-sub.bad { color: var(--sell); }
.cash-max { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.cash-max:hover { color: var(--text); }
.cash-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cash-key { min-height: 62px; border: 0; border-radius: 18px; background: transparent; color: var(--text); font-family: var(--mono); font-size: 28px; font-weight: 600; cursor: pointer; display: grid; place-items: center; transition: background var(--t-fast), transform var(--t-fast); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cash-key:hover { background: var(--surface); }
.cash-key:active { background: var(--surface-2); transform: scale(.95); }
.cash-key svg { width: 26px; height: 26px; }
.cash-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cash-actions .btn { min-height: 56px; border-radius: 999px; font-size: 17px; font-weight: 800; }
.cash-alt { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.cash-go { background: var(--grad); color: var(--brand-ink); }
.cash-go:disabled { opacity: .45; }
.cash-tag { font-family: var(--mono); font-weight: 700; font-size: 18px; padding: 8px 16px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.cash-contacts { display: grid; gap: 8px; }
.cash-person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border)); }
.cash-person strong { display: inline-flex; align-items: center; gap: 5px; }
.cash-person .ok-icon { width: 22px; height: 22px; color: var(--brand); flex: none; }
.cash-done { justify-items: center; text-align: center; padding-top: 30px; }
.cash-done .grid-2 { width: 100%; }

/* ---------- Ajustes ---------- */
.settings h1 { font-size: 26px; }
.profile-hero { display: grid; justify-items: center; gap: 14px; padding: 26px 18px 20px; border-radius: var(--r-xl); text-align: center; border: 1px solid var(--border-strong);
  background: radial-gradient(26rem 12rem at 50% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%), var(--surface); box-shadow: var(--shadow-2); }
.profile-hero h2 { font-size: 22px; }
.photo-edit { position: relative; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.photo-edit .avatar { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--brand) 55%, transparent); }
.photo-cam { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--brand-ink); border: 3px solid var(--surface); }
.photo-cam svg { width: 16px; height: 16px; }
.photo-edit.loading .avatar { opacity: .4; }
.photo-edit.loading .photo-cam { animation: spin 1s linear infinite; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-top: 1px solid var(--border); padding-top: 14px; }
.profile-stats > div { display: grid; gap: 2px; }
.profile-stats > div + div { border-left: 1px solid var(--border); }
.profile-stats b { font-family: var(--mono); font-size: 16px; }
.profile-stats span { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.set-group { display: grid; gap: 8px; }
.set-group > h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; padding: 0 6px; }
.set-card { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; text-align: left; }
.set-row:last-child { border-bottom: 0; }
button.set-row { cursor: pointer; transition: background var(--t-fast); }
button.set-row:hover { background: var(--surface-2); }
.set-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--brand); flex: none; }
.set-icon svg { width: 18px; height: 18px; }
.set-title { display: block; font-weight: 650; font-size: 15px; }
.set-sub { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 1px; overflow-wrap: anywhere; }
.set-chev { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.set-row.danger, .set-row.danger .set-icon { color: var(--sell); }
.set-row.danger .set-icon { background: var(--sell-soft); }
.switch { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); flex: none; transition: background var(--t-fast); }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform var(--t) var(--ease-out); }
.switch.on { background: var(--brand); border-color: transparent; }
.switch.on i { transform: translateX(18px); }
@media (prefers-reduced-motion: reduce) { .cash-amount.over, .photo-edit.loading .photo-cam { animation: none; } }
.p2p-method { overflow: hidden; }
.p2p-method strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.p2p-method > span:not(.m-badge):not(.p2p-more) { flex: none; white-space: nowrap; }
.p2p-more { flex: none; }
.nav .tab-cash-btn { color: inherit; }
.balance-label { font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }

/* ---------- Marca VYRO ---------- */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 32px; width: auto; display: block; }
.brand-logo .on-light { display: none; }
[data-theme="light"] .brand-logo .on-dark { display: none; }
[data-theme="light"] .brand-logo .on-light { display: block; }
.logo { background: none; box-shadow: none; overflow: hidden; }
.logo img { width: 100%; height: 100%; display: block; }

/* ---------- Notificaciones ---------- */
.bell-btn { position: relative; }
.bell-dot { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--sell); color: #fff; font-size: 11px; font-weight: 800; border: 2px solid var(--bg); }
.bell-dot[hidden] { display: none; }
.item-icon.warn { background: var(--warn-soft); color: var(--warn); }
.notif-list { display: grid; gap: 4px; margin: 0 -8px; }
.notif { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; color: var(--text); }
.notif:hover { background: var(--surface-2); text-decoration: none; }
.notif strong { display: block; font-size: 14px; font-weight: 650; }
.notif .tiny { display: block; }
.notif.new strong::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--brand); vertical-align: 2px; }

/* ---------- Ventana centrada (notificaciones) ---------- */
.backdrop.center { align-items: center; padding: 16px; }
.backdrop.center .modal { border-radius: 24px; border-bottom: 1px solid var(--border-strong); padding: 18px 16px 16px; max-width: 420px; max-height: 80dvh; animation-name: zoom; gap: 12px; }
.backdrop.center .modal::before { display: none; }
.notif-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.notif-head h2 { font-size: 19px; }
.notif-bell { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.notif-bell svg { width: 20px; height: 20px; }
.notif-box .notif-list { max-height: 52dvh; overflow-y: auto; margin: 0 -6px; }
.notif-time { flex: none; align-self: flex-start; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; margin-top: 2px; }
.notif.new { background: color-mix(in srgb, var(--brand) 6%, transparent); }

/* ---------- Actividad ---------- */
.act-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.act-summary > * { display: grid; gap: 4px; padding: 14px 12px; color: var(--text); }
.act-summary > * + * { border-left: 1px solid var(--border); }
.act-summary a:hover { background: var(--surface-2); text-decoration: none; }
.act-summary b { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.act-group { display: grid; gap: 8px; }
.act-group > h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; padding: 0 6px; }
.notif-box, .notif-box .notif { text-align: left; }

/* ---------- Métodos de pago ---------- */
.pm-icon { background: var(--surface-2); }
.pm-icon .m-badge { min-width: 24px; height: 24px; font-size: 11px; }
.pm-cur { margin-left: 8px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); vertical-align: 1px; }
.m-chips.wrap { flex-wrap: wrap; overflow: visible; }

/* ---------- Depositar ---------- */
.dep-card { align-items: stretch; }
.dep-step { display: flex; align-items: center; gap: 12px; }
.dep-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 14px; flex: none; }
.dep-qr { justify-self: center; align-self: center; margin: 4px auto; padding: 12px; border-radius: 18px; background: #fff; width: 200px; height: 200px; display: grid; place-items: center; }
.dep-qr img, .dep-qr canvas { display: block; width: 176px !important; height: 176px !important; }
.dep-addr-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px dashed var(--border-strong); }
.dep-addr { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; line-height: 1.5; }
.dep-tx { overflow-wrap: anywhere; color: var(--info); }
.adv-card > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
.adv-card > summary::-webkit-details-marker { display: none; }

/* Foto del usuario arriba a la derecha (en móvil solo la foto) */
.user-chip { display: inline-flex; }
@media (max-width: 899px) {
  .user-chip { padding: 0; border: 0; background: none; }
  .user-chip .chip-name { display: none; }
  .user-chip .avatar { width: 40px; height: 40px; font-size: 14px; box-shadow: 0 0 0 2px var(--border-strong); }
}
.top-actions { gap: 10px; }

/* =====================================================================
 * Panel de administración (menú lateral + resumen)
 * ===================================================================== */
.admin-layout { display: grid; gap: 16px; }
.admin-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-weight: 650; font-size: 14px; white-space: nowrap; }
.admin-nav a:hover { color: var(--text); text-decoration: none; }
.admin-nav a.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 50%, transparent); color: var(--text); }
.admin-nav a svg { width: 17px; height: 17px; }
.admin-brand { display: none; }
.pill-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--sell); color: #fff; font-size: 11px; font-weight: 800; }
@media (min-width: 900px) {
  .admin-layout { grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 24px; }
  .admin-nav { position: sticky; top: 84px; flex-direction: column; gap: 4px; padding: 12px; margin: 0; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); overflow: visible; }
  .admin-nav a { border: 0; background: transparent; border-radius: 12px; min-height: 42px; }
  .admin-nav a:hover { background: var(--surface-2); }
  .admin-nav a.on { background: var(--brand-soft); color: var(--brand); }
  .admin-nav a .pill-count { margin-left: auto; }
  .admin-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 16px; }
  .admin-brand .logo { width: 30px; height: 30px; border-radius: 9px; }
}
.admin-body { min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text); min-width: 0; }
a.kpi:hover { border-color: var(--border-strong); text-decoration: none; }
.kpi-label { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.kpi-value { font-size: clamp(20px, 3.4vw, 28px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.kpi-sub { font-size: 11.5px; color: var(--text-3); }
.kpi.up .kpi-sub { color: var(--buy); }
.kpi.down .kpi-sub { color: var(--sell); }
.kpi.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.kpi.warn .kpi-value { color: var(--warn); }
.admin-grid { display: grid; gap: 14px; }
@media (min-width: 1000px) { .admin-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; } }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 190px; padding-top: 6px; }
.bar-col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; height: 100%; min-width: 0; }
.bar-col > .bar { align-self: end; width: 100%; max-width: 46px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--brand) 45%, var(--surface-3)); transition: background var(--t-fast); }
.bar-col:hover > .bar { background: var(--brand); }
.bar.today { background: var(--grad); }
.bar-val { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.bar-day { font-size: 11.5px; color: var(--text-3); text-transform: capitalize; }
.split-row { display: grid; gap: 5px; }
.split-track { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.split-track i { display: block; height: 100%; border-radius: inherit; }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
@media (min-width: 900px) { .mini-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mini-stats > * { display: grid; gap: 3px; padding: 14px 16px; color: var(--text); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.mini-stats a:hover { background: var(--surface-2); text-decoration: none; }
.mini-stats b { font-size: 18px; font-weight: 600; }
body.is-admin .container { max-width: 1240px; }

/* ---------- Publicar anuncio estilo intercambio ---------- */
.new-offer { display: grid; gap: 14px; padding-bottom: 96px; }
.swap { gap: 12px; }
.swap-sides { min-height: 52px; }
.swap-sides > * { min-height: 44px; font-size: 16px; }
.swap-pair { position: relative; display: grid; gap: 8px; }
.swap-card { padding: 16px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.swap-label { font-size: 15px; font-weight: 600; color: var(--text-2); }
.swap-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.swap-input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 38px; font-weight: 700; letter-spacing: -.03em; padding: 0; outline: none; }
.swap-input::placeholder { color: var(--text-3); }
.swap-input.over { color: var(--sell); }
.swap-card:focus-within { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.swap-bal { text-align: right; font-size: 12.5px; color: var(--text-3); margin-top: 6px; min-height: 16px; }
.swap-quick { display: flex; gap: 6px; }
.quick-chip { border: 0; border-radius: 9px; padding: 5px 10px; background: var(--brand-soft); color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.quick-chip:hover { filter: brightness(1.15); }
.token-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--bg-elev, var(--surface-2)); border: 1px solid var(--border-strong); font-weight: 750; font-size: 15px; color: var(--text); white-space: nowrap; }
.token-pill .token-icon, .token-pill .m-badge, .token-pill .pill-ph { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.token-pill .pill-ph { background: var(--brand-soft); color: var(--brand); }
.token-pill .pill-ph svg { width: 15px; height: 15px; }
.token-pill small { font-size: 11px; color: var(--text-3); font-weight: 700; }
.token-pill.pick { cursor: pointer; font: inherit; font-weight: 750; font-size: 15px; }
.token-pill.pick:hover { border-color: var(--brand); }
.pill-chev { width: 16px; height: 16px; transform: rotate(90deg); color: var(--text-3); }
.swap-arrow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); border: 4px solid var(--bg); color: var(--brand); z-index: 1; }
.swap-arrow svg { width: 18px; height: 18px; }
.swap-rate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; font-size: 13.5px; }
.swap-acc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.swap-toggle { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; padding: 0; }
.swap-toggle strong { display: block; font-size: 15.5px; }
.swap-toggle .tiny { display: block; margin-top: 2px; }
.swap-adv > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; }
.swap-adv > summary::-webkit-details-marker { display: none; }
.swap-adv > summary svg { width: 18px; height: 18px; }
.swap-adv[open] .adv-chev { transform: rotate(180deg); }
.swap-footer { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 2; padding-top: 6px; }
.swap-submit { min-height: 56px; font-size: 17px; font-weight: 800; border-radius: 18px; }
.swap-submit:disabled { opacity: .45; }
.set-row.picked { background: var(--brand-soft); }
@media (min-width: 900px) { .swap-footer { bottom: 20px; } }
.new-offer { grid-template-columns: minmax(0, 1fr); }
.swap-input { width: 100%; }
.swap-card [hidden], .new-offer [hidden] { display: none !important; }
.swap-bal { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.swap-bal svg { color: var(--text-3); }
.cur-sym, .cur-icon { font-family: var(--mono); font-weight: 800; font-size: 13px; color: var(--brand); background: var(--brand-soft); }
.swap-acc .link-btn { font-size: 14px; flex: none; }

/* ---------- Seleccionar moneda (hoja) y detalles adicionales ---------- */
.modal.sheet { gap: 14px; }
@media (max-width: 559px) { .modal.sheet { max-height: 88dvh; } }
.sheet-search-wrap { display: flex; align-items: center; }
.sheet-search-wrap > svg { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--text-3); pointer-events: none; }
.sheet-search { padding-left: 46px; border-radius: 16px; background: var(--surface-2); }
.sheet-list { display: grid; gap: 8px; }
.sheet-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.sheet-row:hover { border-color: var(--border-strong); }
.sheet-row.picked { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: var(--brand-soft); }
.sheet-ic .m-badge { min-width: 40px; height: 40px; font-size: 14px; }
.sheet-name { display: block; font-weight: 700; font-size: 16.5px; }
.sheet-sub { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 600; margin-top: 1px; }
.pill-name { letter-spacing: .02em; }
.details-title { font-size: 17px; font-weight: 700; color: var(--text-2); }
.details-in { min-height: 54px; border-radius: 16px; background: var(--surface); }
.book-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 0; background: var(--brand-soft); color: var(--brand); cursor: pointer; }
.book-btn svg { width: 20px; height: 20px; }
.swap-rate-in { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; min-height: 18px; font-size: 14px; font-weight: 600; color: var(--text-3); }
.swap-rate-in:empty { margin-top: 0; min-height: 0; }
.rate-pct { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.rate-pct.ok { background: var(--buy-soft); color: var(--buy); }
.rate-pct.warn { background: var(--warn-soft); color: var(--warn); }
.swap-rate-in { flex-wrap: nowrap; justify-content: space-between; }
.swap-rate-in > .mono { margin-left: auto; font-family: var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate-pct { white-space: nowrap; }
.offer-actions { gap: 8px; }
.offer-actions .btn { flex: 1; min-width: 96px; }
.side-switch button:disabled { opacity: .4; cursor: not-allowed; }
.err-log { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.err-line { font-size: 11.5px; line-height: 1.5; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); overflow-wrap: anywhere; }

/* ---------- Gestionar anuncio ---------- */
.manage { padding-bottom: 110px; }
.manage .p2p-rate { font-size: 30px; }
.pd-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.pd-title svg { width: 16px; height: 16px; }
.pd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.pd-k { display: inline-flex; align-items: center; gap: 10px; color: var(--text-3); font-weight: 600; font-size: 14px; }
.pd-k svg { width: 18px; height: 18px; }
.pd-v { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-align: right; overflow-wrap: anywhere; }
.pd-v .copy { padding: 4px 8px; }
.mo-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mo-stats span { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 650; }
.mo-stats b { display: block; font-family: var(--mono); font-size: clamp(14px, 4vw, 19px); font-weight: 700; margin-top: 2px; overflow-wrap: anywhere; }
.mo-list { display: grid; }
.mo-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.mo-row:last-child { border-bottom: 0; }
.mo-row:hover { text-decoration: none; }
.mo-name { font-weight: 700; font-size: 15px; }
.mo-sub { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.fab-row { position: fixed; z-index: calc(var(--z-nav) + 1); right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.fab-sq { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow-2); }
.fab-sq svg { width: 24px; height: 24px; }
.fab-sq.primary { background: var(--grad); color: var(--brand-ink); border-color: transparent; }
.fab-sq:active { transform: scale(.95); }
@media (min-width: 900px) { .fab-row { right: 28px; bottom: 28px; } }
.manage, .manage > .card { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.manage .card { overflow: hidden; }
.pd-row { min-width: 0; }
.pd-k { flex: 0 1 auto; min-width: 0; }
.pd-v { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.pd-v .copy span { display: none; }
.pd-v .copy { flex: none; padding: 6px; }
.manage .p2p-top h1 { text-align: center; }
.manage .p2p-kv dd { white-space: normal; overflow: visible; } .manage .p2p-bar { flex: none; width: 30% !important; }
.backdrop.center .modal { text-align: left; }

/* ---------- Estrellas ---------- */
.stars { display: inline-flex; gap: 3px; flex: none; }
.star { display: inline-grid; place-items: center; padding: 0; border: 0; background: none; color: var(--text-3); opacity: .55; }
.star svg { width: 100%; height: 100%; }
.star.on { color: #fbbf24; opacity: 1; }
.star.on svg { fill: currentColor; }
.stars.pick .star { cursor: pointer; transition: transform var(--t-fast); }
.stars.pick .star:hover { transform: scale(1.12); }
.rate-card .stars { justify-content: center; gap: 10px; padding: 6px 0; }
.rate-card > strong { font-size: 16px; }
.rating-mini { color: #fbbf24 !important; font-weight: 700; }
.rating-mini svg { fill: currentColor; }

/* ---------- Orden compacta (todo visible en el celular) ---------- */
.order-head { gap: 10px; }
.order-title { font-size: 20px; }
.amount-hero.left { text-align: left; padding: 0; }
.amount-hero.left .big { font-size: clamp(28px, 8vw, 34px); }
.mini-timer { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); flex: none; }
.mini-timer .ring { width: 36px; height: 36px; }
.mini-timer .ring svg { width: 15px; height: 15px; }
.mini-timer .countdown { font-size: 20px; line-height: 1; }
.mini-timer .tiny { color: var(--warn); }
.order-more > summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--text-3); list-style: none; }
.order-more > summary::-webkit-details-marker { display: none; }
.order-more > summary::after { content: " ▾"; }
.order-more[open] > summary::after { content: " ▴"; }
.pay-card { gap: 10px; }
.pay-card .pay-line { padding: 7px 0; }
.pay-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.pay-hint svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--info); }
.pay-hint.warn svg { color: var(--warn); }
.order-actions { display: grid; gap: 8px; }
.order-actions.pair { grid-template-columns: 1fr auto; }
.order-actions.pair .btn-cancel-order { width: auto; padding: 0 18px; }
@media (max-width: 899px) { .order-wrap .page, .order-wrap { padding-bottom: 72px; } }
/* Botones de la orden siempre visibles encima de la barra de abajo */
.order-actions { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 3; padding: 10px; margin: 0 -10px; border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (min-width: 900px) { .order-actions { bottom: 16px; } }
body:has(.order-actions) .chat-fab { bottom: calc(168px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body:has(.order-actions) .chat-fab { bottom: 96px; } }
.pay-card .copy span { display: none; }
.pay-card .copy { padding: 6px 8px; }
.pay-card .pay-line .v { overflow-wrap: anywhere; }
.order-wrap > .stack > * + * { margin-top: 0; }
.page > .back { margin-bottom: -4px; }
body:has(.order-actions) .chat-fab { width: 52px; height: 52px; min-width: 52px; padding: 0; justify-content: center; }
body:has(.order-actions) .chat-fab .fab-label { display: none; }

/* ---------- Orden estilo "Pasos" ---------- */
.order-steps { gap: 10px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps i { height: 5px; border-radius: 999px; background: var(--surface-3); }
.steps i.on { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.steps i.done { background: var(--brand); }
.step-line { align-items: center; min-height: 40px; }
.step-line .tiny { font-size: 13px; font-weight: 650; color: var(--text-2); }
.order-who { gap: 10px; }
.order-who .row strong { font-size: 15.5px; }
.ow-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--text-3); font-weight: 600; }
.ow-line b { color: var(--text); font-size: 16px; }
.ow-line .big-num { font-size: 24px; letter-spacing: -.02em; }
.pay-card .m-badge { min-width: 24px; height: 24px; }
.pay-vals { display: grid; gap: 2px; }
.pv-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.pv-row:last-child { border-bottom: 0; }
.pv-row > svg { width: 17px; height: 17px; color: var(--text-3); flex: none; }
.pv { flex: 1; min-width: 0; font-weight: 650; font-size: 14.5px; overflow-wrap: anywhere; }
.pv-row .copy span, .order-who .copy span { display: none; }
.pv-row .copy, .order-who .copy { padding: 6px 8px; flex: none; }
.rating-mini { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; }
.rating-mini svg { width: 14px; height: 14px; }
.order-who { padding: 14px 16px; gap: 8px; }
.ow-line .big-num { font-size: 22px; }
.step-line { min-height: 36px; }

/* ---------- Correcciones: filas que se salían de la pantalla ---------- */
.list .item, .list > .row-between { min-width: 0; gap: 10px; }
.item .row.grow, .item .grow, .row-between > .row.grow, .row-between > .grow { min-width: 0; }
.item .badge, .row-between > .badge { flex: none; }
.item .tiny.ellipsis { display: block; }
.card, .card-flat { min-width: 0; }
.page > * { min-width: 0; }
.tabbar[hidden] { display: none !important; }
body.no-tabbar { padding-bottom: 0; }
body.no-tabbar .chat-fab, body.no-tabbar .fab-row { bottom: calc(20px + env(safe-area-inset-bottom)); }

/* ---------- VYRO Gold ---------- */
.btn-gold { background: linear-gradient(135deg, #f7d774, #e8a923); color: #3a2600; border: 0; box-shadow: 0 10px 28px -12px rgba(232, 169, 35, .7); }
.btn-gold:hover { filter: brightness(1.05); }
.gold-hero { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 18px; border-radius: var(--r-xl);
  background: radial-gradient(24rem 12rem at 50% 0%, rgba(247, 215, 116, .28), transparent 70%), var(--surface); border: 1px solid rgba(232, 169, 35, .45); }
.gold-hero h2 { font-size: 26px; background: linear-gradient(135deg, #f7d774, #e8a923); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold-hero p { color: var(--text-2); margin: 0; }
.gold-crown { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #f7d774, #e8a923); color: #3a2600; }
.gold-crown svg { width: 32px; height: 32px; fill: currentColor; }
.gold-price b { font-size: 30px; }
.gold-price span { color: var(--text-3); font-weight: 650; }
.perk { display: flex; gap: 12px; align-items: flex-start; }
.perk strong { display: block; }
.perk .tiny { display: block; }
.perk-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(232, 169, 35, .14); color: #e8a923; flex: none; }
.perk-ic svg { width: 18px; height: 18px; }
.gold-tag { display: inline-flex; align-items: center; gap: 4px; color: #e8a923; font-weight: 700; }
.gold-tag svg { width: 13px; height: 13px; fill: currentColor; }
.mo-list { grid-template-columns: minmax(0, 1fr); }
.mo-row { min-width: 0; }
.mo-row > .grow { min-width: 0; overflow: hidden; }
.mo-row .badge, .mo-row .stars { flex: none; }
.mo-sub.ellipsis { display: block; }

/* ---------- Contador sin reloj, chat en la fila, verificación ---------- */
.mini-timer { padding: 8px 14px; }
.mini-timer .countdown { font-size: 24px; letter-spacing: .02em; }
.countdown.urgent { color: var(--sell); }
.mini-timer:has(.urgent) { background: var(--sell-soft); }
.order-actions { display: grid; }
.chat-inline { width: 56px; padding: 0; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); }
.chat-inline svg { width: 22px; height: 22px; }
body:has(.order-actions .chat-inline) .chat-fab { display: none !important; }
.kyc-hero { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); background: radial-gradient(24rem 12rem at 50% 0%, var(--brand-soft), transparent 70%), var(--surface); }
.kyc-hero h2 { background: none; color: var(--text); -webkit-background-clip: initial; background-clip: initial; }
.kyc-ic { background: var(--grad); color: var(--brand-ink); }
.kyc-ic svg { fill: none; }
.kyc-up { width: 100%; }
.kyc-thumb { width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; }
.cash-usdt { font-size: .3em; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }

/* Chat flotante en la orden: redondo, a la derecha y por encima de los botones fijos */
body:has(.order-actions) .chat-fab { display: inline-flex !important; width: 54px; height: 54px; min-width: 54px; padding: 0; justify-content: center;
  bottom: calc(176px + env(safe-area-inset-bottom)); right: 14px; }
body:has(.order-actions) .chat-fab .fab-label { display: none; }
@media (min-width: 900px) { body:has(.order-actions) .chat-fab { bottom: 104px; right: 28px; } }

/* ---------- PC: Inicio en dos columnas y anchos cómodos ---------- */
@media (min-width: 1000px) {
  .home { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 24px; }
  .home > .nudge, .home > .balance-card, .home > .actions-row { grid-column: 1; }
  .home > section.card { grid-column: 2; }
  .home > .balance-card { grid-row: 1; }
  .home > .actions-row { grid-row: 2; }
  .home > section.card:first-of-type { grid-row: 1 / span 2; }
}
.narrow { width: 100%; }
.manage.narrow, .new-offer.narrow { max-width: 680px; }

/* Calificación: resumen centrado + ventana en el centro */
.rate-summary { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.rate-summary .stars { padding: 0; }
.rate-modal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; max-width: 400px; position: relative; }
.rate-modal .textarea { width: 100%; }
.rate-modal .stars { justify-content: center; gap: 10px; padding: 4px 0; }
.rate-modal-title { font-size: 18px; }
.rate-modal-x { position: absolute; top: 10px; right: 10px; }

/* Botones Entrar / Crear cuenta arriba cuando no hay sesión */
.auth-btns { display: flex; gap: 8px; align-items: center; }
.auth-btns .btn { white-space: nowrap; }
@media (max-width: 420px) { .auth-btns .hide-sm { display: none; } }

/* Nombre con check de verificado y corona Gold */
.name-line { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.profile-hero .crown svg { width: 20px; height: 20px; }
.profile-hero .verified svg { width: 20px; height: 20px; }
.stat-rating { display: flex !important; align-items: center; justify-content: center; gap: 4px; }
.stat-rating svg { width: 15px; height: 15px; color: #fbbf24; fill: #fbbf24; }
.gold-prio { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; color: #e8a923; background: rgba(232,169,35,.12); }
.gold-prio svg { width: 13px; height: 13px; fill: currentColor; }

/* Planes de VYRO Gold */
.gold-plans-title { font-size: 17px; margin: 4px 0 -6px; }
.gold-plans { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.gold-plan { position: relative; display: grid; gap: 4px; text-align: left; padding: 18px 14px 14px; border-radius: var(--r-lg, 16px);
  background: var(--surface); border: 1.5px solid var(--border); color: var(--text); cursor: pointer; font: inherit;
  transition: border-color .15s, background .15s, transform .1s; }
.gold-plan:active { transform: scale(.98); }
.gold-plan.on { border-color: #e8a923; background: linear-gradient(160deg, rgba(247,215,116,.12), rgba(232,169,35,.04)); }
.gold-plan-radio { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2, var(--border)); }
.gold-plan.on .gold-plan-radio { border-color: #e8a923; box-shadow: inset 0 0 0 4px var(--surface); background: #e8a923; }
.gold-plan-name { font-weight: 700; font-size: 15px; }
.gold-plan-price b { font-size: 24px; }
.gold-plan-price small { color: var(--text-2); font-size: 12px; }
.gold-plan-sub { font-size: 12px; color: var(--text-2); }
.gold-plan-tag { position: absolute; top: -10px; left: 12px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: #1a1204; background: linear-gradient(135deg, #f7d774, #e8a923); }
@media (max-width: 340px) { .gold-plans { grid-template-columns: minmax(0,1fr); } }

/* Pago de membresía Gold en la actividad */
.item-icon.gold { color: #e8a923; background: rgba(232,169,35,.14); }
.item-icon.gold svg { fill: currentColor; }

/* Textos legales */
.legal .card { gap: 18px; }
.legal-sec h2 { font-size: 16px; margin: 0 0 6px; }
.legal-sec p, .legal-list { color: var(--text-2); font-size: 14px; line-height: 1.6; margin: 0 0 6px; }
.legal-list { padding-left: 20px; display: grid; gap: 4px; }
.foot-links { display: inline-flex; gap: 14px; }
.foot-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.perk-ic.kyc-step { font-weight: 800; font-size: 15px; }
.check a { text-decoration: underline; }

/* Verificación internacional */
.kyc-sec { font-size: 15px; margin: 0; color: var(--text); }
.kyc-facts { display: grid; gap: 2px; font-size: 13px; color: var(--text-2); }
.kyc-facts b { color: var(--text); font-weight: 600; }

/* Inicio: monedas con las que se opera */
.coin-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 4px; }
.coin-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border-radius: 16px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); transition: border-color .15s, transform .1s, background .15s; }
.coin-card:hover { border-color: var(--border-2, var(--border)); }
.coin-card:active { transform: scale(.98); }
.coin-card.on { border-color: var(--brand, #2ee6a6); background: color-mix(in srgb, var(--brand, #2ee6a6) 9%, var(--surface)); }
.coin-sym { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; font-size: 16px; color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.coin-ves { background: linear-gradient(135deg, #f5c518, #e0461f 60%, #1f4fbf); font-size: 14px; }
.coin-usd { background: linear-gradient(135deg, #34d399, #0f8a5f); }
.coin-eur { background: linear-gradient(135deg, #5b8cff, #1d3fb8); }
.coin-txt { display: grid; min-width: 0; }
.coin-txt strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-txt span { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-curs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.calc-curs button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px; cursor: pointer; min-height: 28px; }
.calc-curs button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cur-flag { font-size: 13px; line-height: 1; }
@media (max-width: 560px) {
  .coin-row { grid-template-columns: minmax(0, 1fr); }
  .coin-card { padding: 10px 12px; }
}
.coin-txt .cur-flag { margin-right: 6px; font-size: 14px; color: inherit; }

/* Inicio global (sin monedas fijas) */
.g-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.g-feat { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); }
.g-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  color: var(--brand, #2ee6a6); background: color-mix(in srgb, var(--brand, #2ee6a6) 14%, transparent); }
.g-ic svg { width: 20px; height: 20px; }
.g-feat > span:last-child { display: grid; min-width: 0; }
.g-feat strong { font-size: 14px; }
.g-feat strong + span { font-size: 12px; color: var(--text-2); }
.calc-cur { flex: none; max-width: 46%; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; padding: 0 10px; cursor: pointer; }
.calc-cur option { color: #111; }
@media (max-width: 560px) { .g-feats { grid-template-columns: minmax(0, 1fr); } }

/* Portada: moneda de la calculadora y cinta de banderas */
.calc .field > .row-between label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.calc-cur { max-width: none; border: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
  padding: 5px 12px; font-size: 13px; min-height: 32px; }
.fm { position: relative; overflow: hidden; margin-top: 18px; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.fm-track { display: flex; gap: 8px; width: max-content; animation: fm-scroll 60s linear infinite; }
.fm:hover .fm-track { animation-play-state: paused; }
.fm-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--text-2); background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--border); }
.fm-flag { font-size: 15px; line-height: 1; }
@keyframes fm-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .fm-track { animation: none; flex-wrap: wrap; width: auto; } }
/* Brillo suave detrás del título */
.hero h1 .grad { position: relative; }
.hero::before { content: ''; position: absolute; inset: auto auto -30% -10%; width: 60%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand, #2ee6a6) 16%, transparent), transparent 70%); filter: blur(10px); }
.hero-grid > * { min-width: 0; }
.fm { max-width: 100%; }
@media (max-width: 560px) {
  .g-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .g-feat { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; }
  .g-feat strong { font-size: 12.5px; line-height: 1.25; }
  .g-feat strong + span { display: none; }
}

/* Depósitos y retiros estilo Cash App */
.cash-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; min-height: 44px; }
.cash-head > strong { text-align: center; font-size: 17px; }
.cash-head > span:empty { width: 44px; }
.chip-net { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); cursor: pointer; }
.chip-net.sm { padding: 3px 9px; font-size: 11px; cursor: default; color: var(--text-2); background: var(--surface-2); border-color: var(--border); }
.chip-net .chev-down { width: 14px; height: 14px; transform: rotate(90deg); }
.set-row.sel { border-color: var(--brand); }
.pend-banner { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.pend-banner svg:last-child { width: 16px; height: 16px; }
.cash .cash-go.btn-block { min-height: 56px; border-radius: 999px; font-size: 17px; font-weight: 800; }
.cash .link-btn.center { justify-self: center; }
.hist-list { max-height: 60vh; overflow: auto; }
.addr-row { cursor: pointer; }
.addr-row:hover, .add-row:hover { border-color: var(--border-strong); }
.add-row { width: 100%; font: inherit; color: var(--brand); cursor: pointer; text-align: left; }
.status-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; }
.status-ic svg { width: 34px; height: 34px; }
.status-ic.ok { background: var(--brand-soft); color: var(--brand); }
.status-ic.wait { background: color-mix(in srgb, #f5b73b 16%, transparent); color: #f5b73b; }
.status-ic.bad { background: color-mix(in srgb, var(--sell) 16%, transparent); color: var(--sell); }
.status-title { font-size: 22px; margin: 0; }
.muted-amt { color: var(--text-3); text-decoration: line-through; }
.tl { display: grid; gap: 12px; text-align: left; }
.tl-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-3); }
.tl-row.done, .tl-row.now { color: var(--text); }
.tl-row.bad { color: var(--sell); }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--border-strong); }
.tl-dot svg { width: 14px; height: 14px; }
.tl-row.done .tl-dot { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tl-row.now .tl-dot { border-color: #f5b73b; }
.tl-row.bad .tl-dot { border-color: var(--sell); color: var(--sell); }
.tl-dot .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #f5b73b; border-right-color: transparent; animation: tl-spin .9s linear infinite; }
@keyframes tl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tl-dot .spin { animation: none; } }
@media (max-height: 860px) { .cash .cash-key { min-height: 50px; font-size: 24px; } .cash .cash-display { padding-top: 8px; } .cash-step { gap: 14px; } }
.cash [hidden] { display: none !important; }

/* ===== Cash App más grande (Enviar, Depositar, Retirar) ===== */
.cash { max-width: 520px; }
.cash .cash-step { gap: 16px; }
.cash .cash-display { padding: 14px 0 4px; gap: 8px; }
.cash .cash-amount { font-size: clamp(76px, 25vw, 120px); }
.cash .cash-amount.long { font-size: clamp(54px, 16vw, 86px); }
.cash .cash-usdt { font-size: .28em; }
.cash .cash-sub { font-size: 15px; }
.cash .cash-max { font-size: 14px; padding: 8px 18px; }
.cash .cash-pad { gap: 8px; }
.cash .cash-key { min-height: clamp(54px, 7.6dvh, 74px); font-size: 32px; border-radius: 20px; }
.cash .cash-key svg { width: 30px; height: 30px; }
.cash .cash-actions .btn, .cash .cash-go.btn-block { min-height: 62px; font-size: 18px; }
.cash .cash-head > strong { font-size: 20px; }
.cash .chip-net { font-size: 14px; padding: 8px 14px; }
.cash .cash-tag { font-size: 22px; padding: 10px 20px; }
.cash .status-ic { width: 88px; height: 88px; }
.cash .status-ic svg { width: 42px; height: 42px; }
.cash .status-title { font-size: 26px; }
@media (min-width: 900px) {
  .cash { max-width: 580px; padding: 28px 36px 32px; border-radius: 32px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-2); }
  .cash .cash-key { min-height: 76px; font-size: 36px; }
  .cash .cash-key:hover { background: var(--surface-2); }
  .cash .cash-amount { font-size: 128px; }
  .cash .cash-amount.long { font-size: 92px; }
}
@media (min-width: 900px) {
  .cash { padding: 22px 36px 26px; margin-top: 4px; }
  .cash .cash-key { min-height: clamp(54px, 7.4dvh, 76px); }
  .cash .cash-amount { font-size: clamp(88px, 12.5dvh, 128px); }
  .cash .cash-amount.long { font-size: clamp(64px, 9dvh, 92px); }
  .cash .cash-display { padding-top: 6px; }
}
/* Depositar y Retirar a pantalla completa en el móvil (se cierran con la X) */
body.flow-full .tabbar { display: none !important; }
@media (max-width: 899px) { body.flow-full main, body.flow-full #app { padding-bottom: calc(20px + env(safe-area-inset-bottom)); } body.flow-full .footer, body.flow-full #footer { display: none; } }

/* Cash App en el móvil: cada paso llena toda la pantalla (teclado estirado y botón abajo) */
@media (max-width: 899px) {
  .cash > .cash-step:not([hidden]):not(.cash-done) {
    display: flex; flex-direction: column;
    min-height: calc(100dvh - 188px - env(safe-area-inset-bottom)); /* con la barra de abajo (Enviar) */
  }
  body.flow-full .cash > .cash-step:not([hidden]):not(.cash-done) {
    min-height: calc(100dvh - 104px - env(safe-area-inset-bottom)); /* Depositar / Retirar: sin barra */
  }
  .cash > .cash-step > .cash-display { flex: 1 0 auto; justify-content: center; align-content: center; }
  .cash > .cash-step > .cash-pad { flex: 1.6 1 auto; grid-auto-rows: 1fr; }
  .cash > .cash-step > .cash-pad .cash-key { min-height: 56px; height: 100%; }
  .cash > .cash-step > .cash-go, .cash > .cash-step > .cash-actions { margin-top: auto; }
  .cash > .cash-step > .cash-pad ~ .cash-go, .cash > .cash-step > .cash-pad ~ .cash-actions { margin-top: 0; }
}
@media (max-width: 899px) { body.flow-full { padding-bottom: 0 !important; } }
@media (max-width: 899px) { body:has(.cash) #footer, body:has(.cash) .footer { display: none; } }
@media (max-width: 899px) and (max-height: 760px) {
  .cash .cash-step { gap: 10px; }
  .cash .cash-display { padding: 4px 0 0; gap: 4px; }
  .cash .cash-amount { font-size: clamp(56px, 11dvh, 84px); }
  .cash .cash-amount.long { font-size: clamp(44px, 8dvh, 64px); }
  .cash > .cash-step > .cash-pad .cash-key { min-height: 44px; font-size: 26px; }
  .cash .cash-actions .btn, .cash .cash-go.btn-block { min-height: 52px; }
  .cash .cash-max { padding: 6px 14px; }
  .cash .cash-head { min-height: 38px; }
}
