/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"Inter","arguments":[{"subsets":["latin"],"variable":"--font-body","display":"swap"}],"variableName":"body"} ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_d8ebd1';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_d8ebd1';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_d8ebd1';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_d8ebd1';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_d8ebd1';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_d8ebd1';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_d8ebd1';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Inter_Fallback_d8ebd1';src: local("Arial");ascent-override: 90.49%;descent-override: 22.56%;line-gap-override: 0.00%;size-adjust: 107.06%
}.__className_d8ebd1 {font-family: '__Inter_d8ebd1', '__Inter_Fallback_d8ebd1';font-style: normal
}.__variable_d8ebd1 {--font-body: '__Inter_d8ebd1', '__Inter_Fallback_d8ebd1'
}

/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"Sora","arguments":[{"subsets":["latin"],"variable":"--font-display","display":"swap","weight":["300","400","600","700"]}],"variableName":"display"} ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* latin-ext */
@font-face {
  font-family: '__Sora_324572';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_next/static/media/1d4eaed977255102-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Sora_324572';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_next/static/media/f3f7e95f2dbc4fe4-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: '__Sora_324572';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/1d4eaed977255102-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Sora_324572';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/f3f7e95f2dbc4fe4-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: '__Sora_324572';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/1d4eaed977255102-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Sora_324572';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/f3f7e95f2dbc4fe4-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: '__Sora_324572';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/1d4eaed977255102-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Sora_324572';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/f3f7e95f2dbc4fe4-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Sora_Fallback_324572';src: local("Arial");ascent-override: 85.29%;descent-override: 25.50%;line-gap-override: 0.00%;size-adjust: 113.73%
}.__className_324572 {font-family: '__Sora_324572', '__Sora_Fallback_324572';font-style: normal
}.__variable_324572 {--font-display: '__Sora_324572', '__Sora_Fallback_324572'
}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* ═══════════════════════════════════════════════════════════════
   ZEVIAQ — sistema visual (manual de marca)
   Negro premium · verde esmeralda · oro premium · arena digital.
   Sora para títulos, Inter para interfaz y tablas. Dark UI, acentos premium, datos claros.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Paleta oficial */
  --zv-emerald: #00C896;      /* Verde esmeralda */
  --zv-gold: #D4AF37;         /* Oro premium */
  --zv-deep: #0B3D2E;         /* Verde profundo */
  --zv-sand: #F4EBD0;         /* Arena digital */
  --zv-black: #0A0A0A;        /* Negro premium */
  --zv-gold-dark: #8E6D14;
  --zv-gold-light: #F5D77A;
  /* Degradados oficiales */
  --g-emerald: linear-gradient(90deg, #0B3D2E, #00C896);                 /* Emerald Flow */
  --g-gold: linear-gradient(90deg, #8E6D14, #D4AF37 50%, #F5D77A);       /* Gold Glow */
  --g-premium: linear-gradient(90deg, #D4AF37, #00C896);                 /* Premium Blend */

  --bg: #0A0A0A;
  --bg-2: #0D0F0E;
  --panel: #111413;
  --panel-2: #161A18;
  --panel-3: #1C211F;
  --line: #222826;
  --line-2: #2D3532;
  --grid: rgba(244, 235, 208, 0.035);
  --text: #F2EFE6;
  --muted: #9C9F96;
  --faint: #646962;
  --accent: #00C896;
  --accent-rgb: 0, 200, 150;
  --accent-2: #00A87E;
  --accent-ink: #03231A;
  --accent-soft: rgba(0, 200, 150, 0.12);
  --gold: #D4AF37;
  --gold-rgb: 212, 175, 55;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --gold-ink: #1E1604;
  --up: #00C896;
  --up-soft: rgba(0, 200, 150, 0.13);
  --down: #F6465D;
  --down-soft: rgba(246, 70, 93, 0.13);
  --warn: #E8B44A;
  --warn-soft: rgba(232, 180, 74, 0.13);
  --info: #6EA8FF;
  --info-soft: rgba(110, 168, 255, 0.13);
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 10px 40px rgba(212, 175, 55, 0.12);
  --glow-emerald: 0 0 0 1px rgba(0, 200, 150, 0.35), 0 10px 40px rgba(0, 200, 150, 0.12);
  /* --font-body/--font-display los define next/font en <html> */
  --f-body: var(--font-body, Inter), system-ui, sans-serif;
  --f-display: var(--font-display, Sora), var(--f-body);
  --f-mono: var(--f-body);
  --sidebar: 252px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
h1 { font-size: 26px; font-weight: 600; }
h2 { font-size: 30px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ── utilidades ── */
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1, "tnum"; letter-spacing: -0.005em; }
.up { color: var(--up); }
.down { color: var(--down); }
.accent { color: var(--accent); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1; min-width: 0; }
.full { width: 100%; }
.mt { margin-top: 14px; }
.pad { padding: 16px 18px; }
.pad-x { padding: 12px 18px 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.wrap { flex-wrap: wrap; }
.gap-s { gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-s { display: flex; flex-direction: column; gap: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }
.grid-2.gap { gap: 18px; margin-bottom: 18px; }
.ellipsis { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flip { transform: rotate(180deg); }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; }
.icon { flex-shrink: 0; }
.only-mobile { display: none !important; }

/* ── botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--radius-s);
  border: 1px solid transparent; cursor: pointer; font-weight: 650; font-size: 14px;
  transition: background 0.15s, border-color 0.15s, transform 0.05s, opacity 0.15s;
  white-space: nowrap; text-decoration: none !important; -webkit-user-select: none; -moz-user-select: none; user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-outline { border-color: var(--line-2); background: transparent; color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: var(--muted); background: var(--panel-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--panel-2); }
.btn-danger { background: var(--down-soft); color: var(--down); border-color: rgba(246, 70, 93, 0.35); }
.btn-danger:hover:not(:disabled) { background: rgba(246, 70, 93, 0.22); }
.btn-buy { background: var(--up); color: #03140d; }
.btn-buy:hover:not(:disabled) { filter: brightness(1.08); }
.btn-sell { background: var(--down); color: #fff; }
.btn-sell:hover:not(:disabled) { filter: brightness(1.08); }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  border: none; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── formularios ── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--muted); display: block; }
.field-label .row { width: 100%; }
.field-error { font-size: 12.5px; color: var(--down); }
.field-hint { font-size: 12px; color: var(--faint); }
.input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--radius-s);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--faint); }
.input:hover:not(:disabled) { border-color: var(--line-2); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input:disabled { opacity: 0.6; }
.has-error .input { border-color: var(--down); }
.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; line-height: 1.5; }
.select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.input[type='date'], .input[type='datetime-local'] { color-scheme: dark; }
/* Listas desplegables: Windows dibuja las opciones con fondo blanco; se fuerzan los colores del tema oscuro */
select, .select { color-scheme: dark; }
select option, select optgroup { background-color: #161A18; color: #F2EFE6; }
select option:checked { background-color: #2D3532; color: #F5D77A; }
select option:disabled { color: #646962; }
.check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; color: var(--muted); font-size: 13px; }
.check input { accent-color: var(--accent); margin-top: 3px; }

.otp { display: flex; gap: 8px; }
.otp-cell {
  width: 46px; height: 54px; text-align: center; font-size: 22px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
}
.otp-cell:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ── tarjetas ── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-h h3 { display: flex; align-items: center; gap: 8px; }
.card-actions { display: flex; align-items: center; gap: 8px; }
.card-b { padding: 18px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h p { margin-top: 6px; max-width: 680px; }
.page-actions { display: flex; gap: 8px; }

/* ── badges y alertas ── */
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
  background: var(--panel-3); color: var(--muted);
}
.badge-up { background: var(--up-soft); color: var(--up); }
.badge-down { background: var(--down-soft); color: var(--down); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: var(--radius-s); font-size: 13.5px; border: 1px solid; }
.alert .icon { margin-top: 2px; }
.alert-info { background: var(--info-soft); border-color: rgba(110, 168, 255, 0.25); color: #c4dbff; }
.alert-ok { background: var(--up-soft); border-color: rgba(var(--accent-rgb), 0.3); color: #b8f0da; }
.alert-warn { background: var(--warn-soft); border-color: rgba(240, 184, 74, 0.3); color: #f6deaa; }
.alert-error { background: var(--down-soft); border-color: rgba(246, 70, 93, 0.3); color: #ffc2ca; }

/* ── estadísticas ── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.stat-top { display: flex; justify-content: space-between; color: var(--muted); }
.stat-label { font-size: 12.5px; font-weight: 600; }
.stat-value { font-size: 22px; font-weight: 600; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-sub { font-size: 12px; color: var(--faint); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-accent { background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.1), var(--panel) 60%); border-color: rgba(var(--accent-rgb), 0.28); }
.stat-accent .stat-value { color: var(--accent); }
.stat-up .stat-value { color: var(--up); }

/* ── tablas ── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
.table .num { text-align: right; }
.table.compact td, .table.compact th { padding: 8px 14px; }
.table th:first-child, .table td:first-child { padding-left: 18px; }
.table th:last-child, .table td:last-child { padding-right: 18px; }
.row-hot td { background: rgba(var(--accent-rgb), 0.04); }
.cell-low { color: var(--up) !important; font-weight: 600; }
.cell-high { color: var(--gold) !important; font-weight: 600; }

/* ── pestañas ── */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs-sm { margin-bottom: 12px; }
.tab { border: none; background: transparent; color: var(--muted); padding: 7px 13px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.tabs-sm .tab { padding: 5px 10px; font-size: 12.5px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs-scroll { overflow-x: auto; scrollbar-width: none; }
.tabs-scroll .tabs { flex-wrap: nowrap; }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0 16px; font-size: 13px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 16px; color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; color: var(--faint); }
.empty strong { color: var(--text); font-weight: 600; }
.empty p { max-width: 420px; }

/* ── modal ── */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(4, 6, 10, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade 0.15s; }
.modal { width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); max-height: calc(100vh - 32px); overflow: auto; animation: pop 0.18s ease-out; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-b { padding: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* ── toasts ── */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13.5px; animation: pop 0.2s; }
.toast-ok .icon { color: var(--up); }
.toast-error .icon { color: var(--down); }
.toast-info .icon { color: var(--info); }

/* ── logo ── */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo-text { font-family: var(--f-display); font-size: 17px; letter-spacing: -0.02em; font-weight: 500; }
.logo-text b { font-weight: 700; color: var(--accent); margin-left: 2px; }
a:hover .logo, .logo:hover { text-decoration: none; }

/* ═════════════ Shell del panel ═════════════ */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
  background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px;
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 22px; }
.sidebar-top a:hover { text-decoration: none; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none !important;
  background: transparent; border: none; cursor: pointer; width: 100%; text-align: left;
}
.nav-item:hover { color: var(--text); background: var(--panel); }
.nav-item.active { color: var(--text); background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent); }
.nav-item.active .icon { color: var(--accent); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.secure-note { display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px; border-radius: 10px; background: var(--accent-soft); color: #bff2e3; font-size: 12px; line-height: 1.4; }
.scrim { display: none; }
.main { flex: 1 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: -webkit-sticky;
  position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 12px;
  padding: 0 26px; background: rgba(10, 13, 19, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-spacer { flex: 1 1; }
.balance-chip { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 13px; }
.balance-chip:hover { text-decoration: none; border-color: var(--line-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--panel-3); color: var(--accent); font-weight: 700; border: 1px solid var(--line-2); flex-shrink: 0; }
.avatar:hover { text-decoration: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 76px; height: 76px; font-size: 28px; }
.content { padding: 26px; max-width: 1440px; width: 100%; margin: 0 auto; }

/* ── dashboard ── */
.grid-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-gap: 18px; gap: 18px; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; margin-bottom: 14px; }
.mini-stat { display: flex; flex-direction: column; padding: 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); }
.mini-stat:hover { text-decoration: none; border-color: var(--line-2); }
.mini-stat strong { font-size: 20px; }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.list-row .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 var(--up); animation: pulse 1.6s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); } 70% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }

/* ── mercados ── */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); grid-gap: 18px; gap: 18px; }
.market-card { margin-bottom: 0; }
.asset-title { display: flex; align-items: center; gap: 9px; }
.asset-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--f-display); font-weight: 700; font-size: 13px; }
.asset-dot.lg { width: 42px; height: 42px; font-size: 18px; }
.market-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; background: var(--bg-2); border-radius: 0 0 var(--radius) var(--radius); }
.legend { margin-top: 14px; }
.clickable:hover td { background: rgba(var(--accent-rgb), 0.03); }

.mk-top { margin-bottom: 16px; }
.mk-title { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; flex-wrap: wrap; }
.mk-stats { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; }
.mk-stats > div { display: flex; flex-direction: column; }
.mk-stats strong { font-size: 15px; }
.mk-selectors { display: flex; gap: 10px; flex-wrap: wrap; }
.mk-selectors .tabs { margin-bottom: 0; }
.mk-layout {
  display: grid; grid-gap: 16px; gap: 16px; margin-bottom: 18px;
  grid-template-columns: minmax(0, 1fr) 300px 300px;
  grid-template-areas: 'chart book trade';
}
.mk-chart { grid-area: chart; margin: 0; overflow: hidden; }
.mk-book { grid-area: book; margin: 0; }
.mk-trade { grid-area: trade; margin: 0; }
.chart-toolbar { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.seg button { display: inline-flex; align-items: center; gap: 4px; border: none; background: transparent; color: var(--muted); padding: 4px 9px; border-radius: 6px; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--panel-3); color: var(--accent); }
.date-range { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.date-range .input { width: auto; height: 32px; }
.chart-box { height: 480px; width: 100%; position: relative; }
.center-msg { display: grid; place-items: center; }

.ob { font-size: 12.5px; }
.ob-head, .ob-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-gap: 6px; gap: 6px; padding: 3px 14px; }
.ob-head { padding-top: 10px; padding-bottom: 6px; font-size: 11px; }
.ob-head span:not(:first-child), .ob-row span:not(:first-child) { text-align: right; }
.ob-row { position: relative; }
.ob-row i { position: absolute; right: 0; top: 1px; bottom: 1px; opacity: 0.14; pointer-events: none; }
.ob-row.ask i { background: var(--down); }
.ob-row.bid i { background: var(--up); }
.ob-row span { position: relative; }
.ob-mid { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; margin: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ob-mid strong { font-size: 16px; }
.ob-empty { padding: 30px 14px; text-align: center; }

.side-toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.side-toggle button { border: none; background: transparent; padding: 8px; border-radius: 7px; font-weight: 700; color: var(--muted); cursor: pointer; }
.side-toggle .buy.active { background: var(--up); color: #03140d; }
.side-toggle .sell.active { background: var(--down); color: #fff; }
.pct-row { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 6px; gap: 6px; }
.pct-row button { border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); border-radius: 7px; padding: 5px; font-size: 12px; font-weight: 600; cursor: pointer; }
.pct-row button:hover { color: var(--text); border-color: var(--line-2); }

/* ── arbitraje ── */
.filters { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.route-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.route-summary > div { display: flex; flex-direction: column; }
.route-summary .icon { color: var(--accent); }

/* ── cuenta ── */
.quick { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; }
.quick-btn { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-weight: 600; cursor: pointer; text-align: left; }
.quick-btn:hover { border-color: var(--accent); text-decoration: none; }
.quick-btn .icon { color: var(--accent); }
.wallet-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.addr { word-break: break-all; padding: 10px 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; margin: 4px 0 8px; }
.net-pick { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; gap: 8px; }
.net-pick button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; text-align: left; }
.net-pick button.active { border-color: var(--accent); background: var(--accent-soft); }
.net-pick button:disabled { cursor: default; opacity: 0.55; }
.pay { display: grid; grid-template-columns: auto 1fr; grid-gap: 18px; gap: 18px; align-items: start; }
.pay-amount { font-size: 26px; font-weight: 600; color: var(--accent); }
.pay-amount small { font-size: 14px; color: var(--muted); }
.qr { background: #fff; border-radius: 12px; padding: 8px; display: grid; place-items: center; color: #0a0d13; }
.qr img { width: 100%; height: 100%; }
.timer { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 13px; color: var(--warn); }
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; grid-gap: 8px 16px; gap: 8px 16px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; text-align: right; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.check-list .icon { color: var(--accent); margin-top: 1px; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-form .grid-2 { gap: 14px; }

.twofa { display: flex; flex-direction: column; gap: 14px; }
.twofa-steps { display: flex; align-items: center; gap: 8px; }
.tf-step { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--faint); padding: 5px 10px; border-radius: 20px; border: 1px solid var(--line); }
.tf-step.active { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.4); background: var(--accent-soft); }
.tf-step.done { color: var(--up); border-color: rgba(var(--accent-rgb), 0.35); }
.tf-line { flex: 1 1; height: 1px; background: var(--line-2); }

/* ── operaciones ── */
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; grid-gap: 12px; gap: 12px; align-items: end; }
.filter-actions { padding-bottom: 1px; }

/* ── soporte ── */
.ticket-list { display: flex; flex-direction: column; }
.ticket-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--text); }
.ticket-row:hover { background: rgba(255, 255, 255, 0.02); text-decoration: none; }
.ticket-row .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ticket-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-3); color: var(--accent); flex-shrink: 0; }
.thread { display: flex; flex-direction: column; gap: 14px; padding: 18px; max-height: 60vh; overflow-y: auto; }
.bubble { max-width: 78%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.from-user { align-self: flex-end; background: var(--panel-3); border-bottom-right-radius: 4px; }
.from-admin { align-self: flex-start; background: var(--accent-soft); border-color: rgba(var(--accent-rgb), 0.25); border-bottom-left-radius: 4px; }
.bubble-h { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.bubble-text { white-space: pre-wrap; word-break: break-word; }
.bubble-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb { width: 84px; height: 84px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.reply { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.attach { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 20px; background: var(--panel-3); border: 1px solid var(--line-2); font-size: 12px; color: var(--text); }
.chip button { border: none; background: none; color: var(--muted); cursor: pointer; display: grid; padding: 0; }

/* ═════════════ Autenticación ═════════════ */
.auth { display: grid; grid-template-columns: minmax(340px, 0.9fr) 1.1fr; min-height: 100vh; }
.auth-side {
  display: flex; flex-direction: column; justify-content: space-between; padding: 36px 44px;
  background: radial-gradient(900px 500px at -10% 110%, rgba(var(--accent-rgb), 0.12), transparent 60%), var(--bg-2);
  border-right: 1px solid var(--line);
}
.auth-side a:hover { text-decoration: none; }
.auth-pitch h2 { font-size: 30px; margin-bottom: 26px; max-width: 420px; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 28px; }
.steps-mini { display: flex; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.steps-mini span { padding: 4px 9px; border-radius: 20px; border: 1px solid var(--line); }
.steps-mini .active { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.4); }
.steps-mini .done { color: var(--up); }

/* ═════════════ Landing ═════════════ */
.lp { background: radial-gradient(1200px 600px at 85% -10%, rgba(var(--accent-rgb), 0.1), transparent 60%), var(--bg); }
.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(16px, 4vw, 56px); }
.lp-links { display: flex; gap: 28px; }
.lp-links a { color: var(--muted); font-weight: 600; }
.lp-links a:hover { color: var(--text); text-decoration: none; }
.ticker-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker-track { display: flex; gap: 40px; padding: 10px 0; width: max-content; animation: marquee 40s linear infinite; }
.ticker-item { display: inline-flex; gap: 10px; font-size: 13px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.lp-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; grid-gap: 50px; gap: 50px; align-items: center; padding: 70px clamp(16px, 4vw, 56px) 60px; max-width: 1280px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; margin-bottom: 20px; }
.lp-hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 20px; }
.lead { font-size: 17px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.lp-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.lp-trust li { display: flex; gap: 7px; align-items: center; }
.lp-trust .icon { color: var(--accent); }
.lp-hero-card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.route-demo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.route-node { flex: 1 1; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.route-node strong { font-family: var(--f-display); font-size: 20px; }
.route-node .mono { font-size: 12px; color: var(--muted); }
.route-arrow { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--accent); font-size: 12px; }
.lp-section { max-width: 1280px; margin: 0 auto; padding: 50px clamp(16px, 4vw, 56px); }
.lp-section-h { margin-bottom: 24px; }
.lp-section-h p { margin-top: 8px; max-width: none; }
.lp-section .table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 18px; gap: 18px; }
.lp-step { padding: 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.lp-step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 16px; }
.lp-step h3 { font-size: 18px; margin-bottom: 8px; }
.lp-security { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 40px; gap: 40px; align-items: center; }
.lp-security h2 { margin-bottom: 14px; }
.lp-exchanges { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-family: var(--f-display); font-size: 22px; font-weight: 600; color: var(--faint); }
.lp-cta { text-align: center; padding: 70px 20px; display: flex; flex-direction: column; align-items: center; gap: 22px; border-top: 1px solid var(--line); background: radial-gradient(600px 300px at 50% 120%, rgba(var(--accent-rgb), 0.12), transparent 70%); }
.lp-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 20px 40px; border-top: 1px solid var(--line); text-align: center; }
.lp-foot p { max-width: 960px; }
.matrix td:first-child { white-space: nowrap; }

/* ═════════════ Responsive ═════════════ */
@media (max-width: 1280px) {
  .mk-layout { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: 'chart chart' 'book trade'; }
}
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .lp-hero, .lp-security { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .only-mobile { display: inline-grid !important; }
  .sidebar { transform: translateX(-100%); transition: transform 0.2s; box-shadow: var(--shadow); width: min(284px, 88vw); }
  .sidebar-top { gap: 10px; }
  .nav-open .sidebar { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 35; }
  .main { margin-left: 0; }
  .topbar { padding: 0 14px; }
  .content { padding: 18px 14px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-2.gap { grid-template-columns: 1fr; }
  .mk-layout { grid-template-columns: 1fr; grid-template-areas: 'chart' 'trade' 'book'; }
  .mk-stats { margin-left: 0; gap: 18px; }
  .chart-box { height: 360px; }
  .lp-links { display: none; }
  .lp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .hide-s { display: none; }
  .pay { grid-template-columns: 1fr; justify-items: center; }
  .quick { grid-template-columns: 1fr; }
  .balance-chip .muted { display: none; }
  .bubble { max-width: 92%; }
  .otp-cell { width: 40px; height: 48px; }
  .lp-nav .btn-ghost { display: none; }
  .route-demo { flex-direction: column; }
  .route-arrow .icon { transform: rotate(90deg); }
}

/* ═════════════ Mercados tipo exchange ═════════════ */
.strong { font-weight: 700; }
.markets-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px 0; flex-wrap: wrap; }
.markets-toolbar .tabs { margin-bottom: 0; }
.markets-search { position: relative; display: flex; align-items: center; min-width: 220px; }
.markets-search .icon { position: absolute; left: 11px; color: var(--faint); pointer-events: none; }
.markets-search .input { padding-left: 32px; height: 36px; }
.table.markets { margin-top: 12px; }
.table.markets td { padding-top: 12px; padding-bottom: 12px; }
.table th.sortable { cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.table th.sortable:hover, .table th.sortable.active { color: var(--text); }
.sort-dir { font-size: 9px; margin-left: 4px; color: var(--accent); }
.coin-cell { display: flex; align-items: center; gap: 11px; min-width: 180px; }
.coin-cell strong { font-weight: 650; }
.coin-cell .badge { margin-left: 6px; height: 18px; font-size: 10.5px; }
.coin-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--panel-3); flex-shrink: 0; }
.coin-logo.fallback { display: inline-grid; place-items: center; color: var(--accent); font-family: var(--f-display); font-weight: 700; font-size: 14px; background: var(--accent-soft); }
.spark { display: inline-block; vertical-align: middle; }
.spark.up { color: var(--up); }
.spark.down { color: var(--down); }
.table.markets tr.clickable { cursor: pointer; }

/* ═════════════ Portafolio de arbitrajes ═════════════ */
.market-card.highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 40px rgba(var(--accent-rgb), 0.08); }
.market-card td .badge { margin-left: 8px; height: 18px; font-size: 10.5px; }
.portfolio-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg-2); border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
.portfolio-route { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }

/* ═════════════ Modal de operación de arbitraje ═════════════ */
.route-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--accent); }
.balance-box { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.1), var(--bg-2) 70%); border: 1px solid rgba(var(--accent-rgb), 0.28); }
.balance-box strong { font-size: 22px; color: var(--accent); }
.balance-box small { font-size: 12px; color: var(--muted); }
.input-max { position: relative; display: flex; }
.input-max .input { padding-right: 64px; }
.input-max button { position: absolute; right: 6px; top: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel-3); color: var(--accent); font-weight: 700; font-size: 12px; cursor: pointer; }
.kv.estimate { gap: 9px 16px; }
.kv.estimate dt.strong { color: var(--text); }

/* Veredicto gana / pierde */
.verdict { display: inline-flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.verdict b { font-size: 12.5px; font-family: var(--f-mono); }
.verdict small { font-size: 11.5px; color: var(--muted); }
.verdict b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.verdict.win b { color: var(--up); }
.verdict.win b::before { background: var(--up); }
.verdict.lose b { color: var(--down); }
.verdict.lose b::before { background: var(--down); }
.verdict.warn b { color: var(--warn); }
.verdict.warn b::before { background: var(--warn); }

/* Rendimiento real */
.perf-stats { margin-bottom: 0; }
.perf-stats .stat { background: var(--bg-2); }
.perf-bar { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.perf-bar i { display: block; height: 8px; border-radius: 4px; min-width: 2px; max-width: 110px; flex-shrink: 0; }
.perf-bar i.pos { background: var(--up); }
.perf-bar i.neg { background: var(--down); }

/* Balance comprometido */
.committed-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.stats-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 50%; }
.stats-mini .stat-value { font-size: 17px; }
@media (max-width: 1100px) { .stats-mini { max-width: none; } }

/* ═════════════ Análisis de trader ═════════════ */
.analysis-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 16px; gap: 16px; }
.analysis-meta > div { display: flex; flex-direction: column; gap: 2px; }
.analysis-meta strong { font-size: 16px; }
.analysis-filters { margin-bottom: 14px; }
.analysis-filters .tabs { margin-bottom: 0; }
.conclusions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; margin-bottom: 14px; }
.conclusion { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.conclusion.sirve { border-color: rgba(var(--accent-rgb), 0.45); background: linear-gradient(160deg, var(--up-soft), var(--panel) 60%); }
.conclusion.no-sirve { border-color: rgba(246, 70, 93, 0.35); }
.conclusion .badge { align-self: flex-start; }
.conclusion strong { font-size: 20px; }
.conclusion strong small { font-size: 12px; font-weight: 500; }
.code-block { margin: 0 18px 18px; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 12.5px; color: var(--accent); white-space: pre-wrap; }
@media (max-width: 1100px) { .conclusions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .conclusions, .analysis-meta { grid-template-columns: 1fr; } }


/* ═════════════ Capa de marca ZEVIAQ ═════════════ */
body { font-size: 14.5px; }
h1, h2, h3 { letter-spacing: -0.01em; }
h1 { font-weight: 600; }
.code-block { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Botón principal: Gold Glow, como en las aplicaciones del manual */
.btn-primary { background: var(--g-gold); color: var(--gold-ink); box-shadow: 0 6px 22px rgba(212, 175, 55, 0.18); }
.btn-primary:disabled { box-shadow: none; }
.btn-outline { border-color: rgba(212, 175, 55, 0.45); color: var(--zv-sand); }
.btn-outline:hover:not(:disabled) { border-color: var(--gold); background: var(--gold-soft); }
.btn-buy { background: var(--accent); color: var(--accent-ink); }
.btn-lg { border-radius: 12px; }

/* Texto con degradado */
.text-gold { background: var(--g-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-premium { background: var(--g-premium); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-emerald { color: var(--accent); }
.rule { display: block; width: 56px; height: 2px; border-radius: 2px; background: var(--g-premium); }

/* Logo */
.logo { gap: 11px; }
.logo-words { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-text { display: inline-flex; align-items: center; font-family: var(--f-display); font-weight: 600; letter-spacing: 0.16em; color: var(--text); }
.logo-lambda { height: 0.74em; width: 0.68em; margin: 0 0.16em 0 0.02em; color: var(--accent); }
.logo-tag { font-family: var(--f-display); font-size: 8.5px; letter-spacing: 0.32em; color: var(--gold); margin-top: 5px; }
.zmark { flex-shrink: 0; }
.zmark.glow { filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.35)) drop-shadow(0 0 40px rgba(0, 200, 150, 0.2)); }

/* Tarjetas: borde con un toque dorado al pasar */
.card, .stat { background: linear-gradient(180deg, rgba(244, 235, 208, 0.018), transparent 40%), var(--panel); }
.stat-accent { background: linear-gradient(160deg, rgba(var(--gold-rgb), 0.1), var(--panel) 60%); border-color: rgba(var(--gold-rgb), 0.32); }
.stat-accent .stat-value { color: var(--zv-gold-light); }
.table th { color: var(--muted); letter-spacing: 0.08em; font-size: 11px; }
.tab.active { background: var(--panel-3); color: var(--zv-sand); box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.35); }
.seg button.active { color: var(--zv-gold-light); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }

/* Barra lateral y superior */
.sidebar { background: linear-gradient(180deg, #0D100F, #0A0A0A); }
.nav-item.active { background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), transparent 85%); box-shadow: inset 3px 0 0 var(--accent); }
.secure-note { background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.12), rgba(var(--accent-rgb), 0.08)); color: var(--zv-sand); border: 1px solid rgba(var(--gold-rgb), 0.22); }
.secure-note .icon { color: var(--gold); }
.topbar { background: rgba(10, 10, 10, 0.82); }
.balance-chip strong, .balance-chip .mono { color: var(--zv-gold-light); }

/* Fondo con haces de luz (oro y esmeralda) y dunas */
.zv-bg { position: relative; isolation: isolate; overflow: hidden; }
.zv-bg::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 46%, rgba(212, 175, 55, 0.22) 49.6%, transparent 52%) no-repeat,
    linear-gradient(118deg, transparent 58%, rgba(0, 200, 150, 0.16) 60.5%, transparent 62.5%) no-repeat,
    linear-gradient(62deg, transparent 70%, rgba(212, 175, 55, 0.14) 72%, transparent 74%) no-repeat,
    radial-gradient(900px 420px at 88% -8%, rgba(212, 175, 55, 0.14), transparent 65%),
    radial-gradient(800px 420px at 8% 108%, rgba(0, 200, 150, 0.14), transparent 65%);
}
.zv-dunes::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90px at 30% 100%, rgba(212, 175, 55, 0.22), transparent 70%),
    radial-gradient(90% 70px at 78% 100%, rgba(0, 200, 150, 0.2), transparent 70%);
}

/* Variante suave del fondo (detrás de formularios) */
.zv-bg.soft::before { opacity: 0.45; }

/* Autenticación: una sola escena (mismo fondo de lado a lado) y tarjeta protagonista */
.auth.zv-bg { background: var(--zv-black); }
.auth { grid-template-columns: minmax(380px, 1fr) minmax(460px, 1fr); }
.auth-side { background: transparent; border-right: none; justify-content: space-between; gap: 28px; padding: 40px 56px; }
.auth-pitch { max-width: 480px; }
.auth-pitch .eyebrow { margin-bottom: 22px; }
.auth-pitch h2 { font-weight: 300; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.14; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 22px; max-width: none; }
.auth-pitch h2 span { font-weight: 600; }
.auth-pitch .rule { margin-bottom: 26px; }
.auth-pitch .check-list li { color: var(--zv-sand); opacity: 0.86; font-size: 15px; }
.auth-pitch .check-list .icon { color: var(--gold); }
.faint { color: var(--faint); }
.auth-main { padding: 40px 56px 40px 20px; }

.auth-card {
  position: relative; max-width: 470px; gap: 16px; padding: 34px 36px 30px;
  border-radius: 24px; border: 1px solid rgba(var(--gold-rgb), 0.26);
  background: linear-gradient(180deg, rgba(24, 29, 27, 0.9), rgba(11, 13, 12, 0.94));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 0 70px rgba(var(--gold-rgb), 0.07);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.auth-card::before {
  content: ''; position: absolute; top: -1px; left: 12%; right: 12%; height: 2px; border-radius: 2px;
  background: var(--g-premium); box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.5);
}
.auth-card:has(.grid-2) { max-width: 580px; }
.auth-card-top { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 4px; }
.auth-card-top:hover { text-decoration: none; }
.auth-card-top .logo { display: none; }
.auth-card-top .logo-words { align-items: center; }
.auth-head { text-align: center; display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; }
.auth-head::after { content: ''; display: block; width: 44px; height: 2px; margin: 10px auto 0; border-radius: 2px; background: var(--g-premium); }
.auth-card h1 { font-family: var(--f-display); font-weight: 600; font-size: 30px; letter-spacing: 0.01em; }
.auth-card .input { height: 48px; background: rgba(244, 235, 208, 0.035); border-color: var(--line-2); border-radius: 12px; }
.auth-card .input:focus { border-color: rgba(var(--gold-rgb), 0.7); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.14); }
.auth-card .btn-lg { height: 52px; border-radius: 12px; letter-spacing: 0.04em; }
.auth-card .steps-mini { justify-content: center; }
.auth-mobile-brand { display: none; }

/* Campo con ícono */
.input-icon { position: relative; display: block; }
.input-icon > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; transition: color 0.15s; }
.input-icon > .input { padding-left: 42px; width: 100%; }
.input-icon:focus-within > .icon { color: var(--gold); }

/* Landing */
.lp { background: var(--zv-black); }
.lp-nav { position: relative; z-index: 2; }
.lp-nav .btn-primary { border-radius: 999px; }
.lp-hero h1 { font-weight: 300; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(34px, 5vw, 60px); line-height: 1.08; }
.lp-hero h1 .gold { font-weight: 600; }
.lp-hero .lead { font-size: 16px; line-height: 1.65; }
.eyebrow { background: var(--gold-soft); color: var(--zv-gold-light); border: 1px solid rgba(var(--gold-rgb), 0.3); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }
.lp-hero-card { background: linear-gradient(180deg, rgba(244, 235, 208, 0.03), transparent), var(--panel); border-color: rgba(var(--gold-rgb), 0.28); box-shadow: var(--glow-gold); }
.lp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px) 30px; }
.lp-kpi { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(17, 20, 19, 0.85); border: 1px solid var(--line-2); }
.lp-kpi .icon { color: var(--gold); }
.lp-kpi strong { display: block; font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.lp-kpi span { font-size: 12px; color: var(--muted); }
.lp-section-h h2, .lp-cta h2, .lp-security h2 { font-weight: 300; text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(24px, 3vw, 34px); }
.lp-section-h .rule, .lp-cta .rule { margin-top: 14px; }
.lp-step { background: linear-gradient(180deg, rgba(244, 235, 208, 0.02), transparent), var(--panel); }
.lp-step-n { background: var(--g-gold); color: var(--gold-ink); }
.lp-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 0; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-pillar { padding: 26px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lp-pillar + .lp-pillar { border-left: 1px solid var(--line); }
.lp-pillar .icon { color: var(--gold); }
.lp-pillar h3 { font-family: var(--f-display); font-size: 13px; letter-spacing: 0.24em; font-weight: 600; text-transform: uppercase; }
.lp-pillar p { font-size: 13.5px; color: var(--muted); max-width: 220px; }
.lp-cta { background: transparent; }
.lp-foot .slogan { font-family: var(--f-display); letter-spacing: 0.3em; font-size: 11px; color: var(--muted); }
@media (max-width: 1100px) { .lp-kpis, .lp-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-pillar:nth-child(3) { border-left: none; } }
@media (max-width: 1100px) { .auth-side { padding: 36px 36px; } .auth-main { padding-right: 36px; } }
@media (max-width: 900px) {
  .auth-main { padding: 28px 16px; }
  .auth-card { padding: 28px 20px 24px; border-radius: 20px; }
  .auth-card-top .logo { display: inline-flex; }
}
@media (max-width: 600px) { .lp-kpis, .lp-pillars { grid-template-columns: 1fr; } .lp-pillar + .lp-pillar { border-left: none; border-top: 1px solid var(--line); } }

/* Selector de idioma con bandera */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(244, 235, 208, 0.03); color: var(--text); font: inherit; font-size: 13px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.lang-btn:hover, .lang-btn[aria-expanded='true'] { border-color: rgba(var(--gold-rgb), 0.55); background: rgba(var(--gold-rgb), 0.06); }
.lang-code { font-weight: 700; letter-spacing: 0.06em; font-size: 12px; }
.lang-name { color: var(--muted); }
.lang-caret { color: var(--muted); }
.flag { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); flex-shrink: 0; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px; list-style: none; margin: 0; padding: 6px;
  border-radius: 14px; background: var(--panel-2); border: 1px solid rgba(var(--gold-rgb), 0.28); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: none; border-radius: 10px;
  background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-align: left;
}
.lang-menu button span { flex: 1 1; }
.lang-menu button:hover { background: rgba(244, 235, 208, 0.05); }
.lang-menu button.active { color: var(--zv-gold-light); }
.auth { position: relative; }
.auth-lang { position: absolute; top: 22px; right: 28px; z-index: 5; }
@media (max-width: 900px) { .auth-lang { top: 14px; right: 14px; } }

/* ═════════════ Referidos (unilevel) ═════════════ */
.ref { display: flex; flex-direction: column; gap: 18px; }
.dot-sep { margin: 0 8px; color: var(--faint); }

/* Cabecera: enlace + números */
.ref-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-gap: 26px; gap: 26px; padding: 28px;
  border-radius: 20px; border: 1px solid rgba(var(--gold-rgb), 0.3);
  background: radial-gradient(600px 260px at 0% 0%, rgba(var(--gold-rgb), 0.12), transparent 70%),
    radial-gradient(520px 260px at 100% 100%, rgba(var(--accent-rgb), 0.12), transparent 70%), var(--panel);
}
.ref-hero::before { content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 2px; background: var(--g-premium); }
.ref-hero .eyebrow { margin-bottom: 14px; }
.ref-hero h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
.ref-hero-lead { color: var(--muted); margin-top: 8px; max-width: 560px; line-height: 1.55; }
.ref-link {
  display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 8px 8px 14px; border-radius: 14px;
  background: rgba(10, 10, 10, 0.55); border: 1px dashed rgba(var(--gold-rgb), 0.5); color: var(--gold);
}
.ref-link-url { flex: 1 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--zv-sand); font-size: 13.5px; }
.ref-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ref-share-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.ref-share-btn:hover { text-decoration: none; border-color: rgba(var(--gold-rgb), 0.5); }
.ref-share-btn.wa { color: #25D366; border-color: rgba(37, 211, 102, 0.35); }
.ref-share-btn.tg { color: #2AABEE; border-color: rgba(42, 171, 238, 0.35); }
.ref-hero-foot { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.ref-hero-stats { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; align-content: center; }
.ref-kpi {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px;
  background: rgba(10, 10, 10, 0.45); border: 1px solid var(--line-2); color: var(--accent);
}
.ref-kpi strong { font-family: var(--f-display); font-size: 26px; font-weight: 600; color: var(--text); margin-top: 6px; }
.ref-kpi span { font-size: 12.5px; color: var(--muted); }
.ref-kpi.gold { color: var(--gold); border-color: rgba(var(--gold-rgb), 0.35); background: linear-gradient(160deg, rgba(var(--gold-rgb), 0.12), rgba(10, 10, 10, 0.45)); }
.ref-kpi.gold strong { color: var(--zv-gold-light); }
.ref-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ¿Qué es unilevel? */
.ref-how { padding: 0; overflow: hidden; }
.ref-how-h {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: none; background: none;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.ref-how-h > span:nth-child(2) { flex: 1 1; display: flex; flex-direction: column; gap: 2px; }
.ref-how-h b { font-family: var(--f-display); font-size: 17px; font-weight: 600; }
.ref-how-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); }
.ref-how-toggle { font-size: 13px; font-weight: 600; color: var(--accent); }
.ref-how-body { padding: 0 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.ref-simple {
  font-size: 15.5px; line-height: 1.6; color: var(--zv-sand); padding: 14px 16px; border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.07); border-left: 3px solid var(--accent);
}
.ref-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; counter-reset: s; }
.ref-steps li {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 16px; border-radius: 14px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--accent);
}
.ref-steps li b { color: var(--text); font-size: 15px; }
.ref-steps li span:last-child { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ref-step-n {
  position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--g-gold); color: var(--gold-ink); font-weight: 700; font-size: 13px;
}
.ref-steps li + li::before {
  content: ''; position: absolute; left: -12px; top: 50%; width: 12px; height: 2px; background: rgba(var(--gold-rgb), 0.5);
}
.ref-example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-gap: 18px; gap: 18px; align-items: center; }
.ref-tree { width: 100%; max-width: 380px; height: auto; justify-self: center; }
.ref-tree-you { font: 700 10px var(--f-body); fill: var(--gold-ink); }
.ref-tree-l { font: 700 11px var(--f-body); fill: var(--muted); }
.ref-tree-more { font: 500 12px var(--f-body); fill: var(--muted); }
.ref-calc { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line-2); }
.ref-calc h4 { font-family: var(--f-display); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.ref-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ref-chips button {
  min-width: 44px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-3);
  color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.ref-chips button.on { background: var(--g-gold); color: var(--gold-ink); border-color: transparent; }
.ref-result {
  display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--gold-rgb), 0.08)); border: 1px solid rgba(var(--accent-rgb), 0.35);
}
.ref-result span { font-size: 13px; color: var(--muted); }
.ref-result strong { font-family: var(--f-display); font-size: 28px; color: var(--accent); }
.ref-result small { font-size: 13px; color: var(--zv-sand); line-height: 1.5; }
.ref-result.none { background: var(--panel-3); border-color: var(--line-2); }
.ref-glossary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; margin: 0; }
.ref-glossary div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.ref-glossary dt { font-weight: 700; color: var(--gold); font-size: 13.5px; }
.ref-glossary dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* Escalera de 10 niveles + equipo */
.ref-grid { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); grid-gap: 18px; gap: 18px; align-items: start; }
.ref-ladder { padding-bottom: 8px; }
.ref-ladder ul { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-direction: column; gap: 4px; }
.ref-ladder-head, .ref-lvl { display: grid; grid-template-columns: 40px minmax(0, 1fr) 68px 80px; align-items: center; grid-gap: 12px; gap: 12px; }
.ref-ladder-head { padding: 0 20px 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.ref-ladder-head span:nth-child(3), .ref-ladder-head span:nth-child(4) { text-align: right; }
.ref-lvl {
  width: 100%; padding: 10px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.ref-lvl:hover { background: rgba(244, 235, 208, 0.03); }
.ref-lvl.on { background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.1), rgba(var(--accent-rgb), 0.04)); border-color: rgba(var(--gold-rgb), 0.4); }
.ref-lvl-n {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 16px;
  color: var(--accent-ink); background: rgb(calc(0 + 212 * var(--depth)), calc(200 - 25 * var(--depth)), calc(150 - 95 * var(--depth)));
}
.ref-lvl.empty .ref-lvl-n { opacity: 0.45; }
.ref-lvl-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ref-lvl-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ref-lvl-top b { font-size: 14.5px; white-space: nowrap; }
.ref-lvl-hint { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-bar { display: block; height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; }
.ref-bar i { display: block; height: 100%; border-radius: 6px; background: var(--g-premium); }
.ref-lvl-count { font-size: 12.5px; color: var(--muted); }
.ref-lvl-pct { justify-self: end; padding: 4px 9px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--gold-soft); color: var(--zv-gold-light); }
.ref-lvl-pct.off { background: none; color: var(--faint); }
.ref-lvl-earned { text-align: right; font-size: 13.5px; }
.ref-search { width: min(280px, 100%); }
.ref-search .input { height: 38px; }
.ref-members { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-direction: column; }
.ref-member {
  display: grid; grid-template-columns: 42px minmax(0, 1.3fr) minmax(0, 1.4fr) auto 90px; grid-gap: 12px; gap: 12px; align-items: center;
  padding: 12px 10px; border-bottom: 1px solid var(--line);
}
.ref-member:last-child { border-bottom: none; }
.ref-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: var(--f-display);
  background: var(--panel-3); color: var(--muted); border: 2px solid var(--line-2);
}
.ref-avatar.on { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); border-color: rgba(var(--accent-rgb), 0.5); }
.ref-member-who { display: flex; flex-direction: column; min-width: 0; }
.ref-member-who b, .ref-member-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-member-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ref-member-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ref-member-earned { display: flex; flex-direction: column; align-items: flex-end; }

@media (max-width: 1180px) {
  .ref-grid { grid-template-columns: 1fr; }
  .ref-steps, .ref-glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-steps li + li::before { display: none; }
}
@media (max-width: 900px) {
  .ref-hero { grid-template-columns: 1fr; padding: 22px 18px; }
  .ref-example { grid-template-columns: 1fr; }
  .ref-member { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .ref-member-meta { grid-column: 2 / -1; }
  .ref-member-status { grid-column: 2; grid-row: 3; }
  .ref-member-earned { grid-column: 3; grid-row: 1; }
}
@media (max-width: 560px) {
  .ref-steps, .ref-glossary { grid-template-columns: 1fr; }
  .ref-hero-stats { grid-template-columns: 1fr 1fr; }
  .ref-kpi strong { font-size: 21px; }
  .ref-ladder-head, .ref-lvl { grid-template-columns: 36px minmax(0, 1fr) 62px 66px; gap: 8px; }
  .ref-lvl-n { width: 36px; height: 36px; }
  .ref-lvl-hint { display: none; }
  .ref-link { flex-wrap: wrap; }
  .ref-link-url { flex-basis: calc(100% - 30px); }
}
.ref-team .card-h, .ref-comm .card-h { flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .ref-search { width: 100%; } }

/* ═════════════════════════════════════════════════════════════
   CAPA CORPORATIVA ZEVIAQ PARA TODO EL PANEL
   Misma línea gráfica que el ingreso: negro premium, haces de luz
   oro/esmeralda, vidrio con borde dorado, Sora en títulos.
   ═════════════════════════════════════════════════════════════ */
body { background: var(--zv-black); }

/* Fondo de la escena: haces de luz y dunas, fijos detrás del contenido */
.main { position: relative; isolation: isolate; }
.main::before {
  content: ''; position: fixed; inset: 0 0 0 var(--sidebar); z-index: -1; pointer-events: none; opacity: 0.55;
  background:
    linear-gradient(112deg, transparent 54%, rgba(212, 175, 55, 0.13) 56.5%, transparent 59%) no-repeat,
    linear-gradient(116deg, transparent 66%, rgba(0, 200, 150, 0.1) 68%, transparent 70%) no-repeat,
    radial-gradient(900px 420px at 100% -10%, rgba(212, 175, 55, 0.12), transparent 65%),
    radial-gradient(800px 380px at 0% 110%, rgba(0, 200, 150, 0.1), transparent 65%);
}
.main::after {
  content: ''; position: fixed; left: var(--sidebar); right: 0; bottom: 0; height: 140px; z-index: -1; pointer-events: none; opacity: 0.5;
  background: radial-gradient(120% 80px at 30% 100%, rgba(212, 175, 55, 0.18), transparent 70%), radial-gradient(90% 60px at 80% 100%, rgba(0, 200, 150, 0.16), transparent 70%);
}
@media (max-width: 900px) { .main::before, .main::after { left: 0; inset-inline-start: 0; } }

/* Barra lateral */
.sidebar {
  background:
    radial-gradient(260px 220px at 0% 100%, rgba(0, 200, 150, 0.1), transparent 70%),
    radial-gradient(260px 200px at 100% 0%, rgba(212, 175, 55, 0.08), transparent 70%),
    linear-gradient(180deg, #0D100F, #090A0A);
  border-right: 1px solid rgba(var(--gold-rgb), 0.14);
}
.sidebar-top { padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.nav-item { border-radius: 12px; font-weight: 500; transition: background 0.15s, color 0.15s; }
.nav-item .icon { transition: color 0.15s; }
.nav-item:hover { background: rgba(244, 235, 208, 0.04); }
.nav-item.active {
  color: var(--zv-sand); font-weight: 600;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.16), rgba(var(--accent-rgb), 0.06) 70%, transparent);
  box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px rgba(var(--gold-rgb), 0.18);
}
.nav-item.active .icon { color: var(--gold); }

/* Barra superior: vidrio con filo dorado */
.topbar {
  background: rgba(10, 10, 10, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(var(--gold-rgb), 0.35), rgba(var(--accent-rgb), 0.25), transparent) 1;
}
.balance-chip { border-radius: 999px; border-color: rgba(var(--gold-rgb), 0.3); background: rgba(var(--gold-rgb), 0.06); }
.avatar { box-shadow: 0 0 0 2px rgba(var(--gold-rgb), 0.45); }

/* Cabecera de cada vista */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; align-items: center;
  padding: 26px 30px; margin-bottom: 22px; border-radius: 20px;
  border: 1px solid rgba(var(--gold-rgb), 0.24);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(var(--gold-rgb), 0.12), transparent 70%),
    radial-gradient(520px 240px at 100% 100%, rgba(var(--accent-rgb), 0.1), transparent 70%),
    linear-gradient(180deg, rgba(24, 29, 27, 0.9), rgba(12, 14, 13, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.page-hero::before { content: ''; position: absolute; top: 0; left: 6%; right: 6%; height: 2px; background: var(--g-premium); box-shadow: 0 0 16px rgba(var(--gold-rgb), 0.45); }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 58%, rgba(212, 175, 55, 0.1) 61%, transparent 64%) no-repeat;
}
.page-hero-mark { position: absolute; right: 28px; top: 50%; transform: translateY(-50%) rotate(-4deg); opacity: 0.11; filter: blur(0.3px); z-index: -1; pointer-events: none; }
.page-hero-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}
.page-hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: 0.005em; }
.page-hero .rule { margin: 2px 0 2px; }
.page-hero p { margin: 0; max-width: 720px; color: var(--muted); line-height: 1.55; }
.page-hero .page-actions { position: relative; }

/* Tarjetas: vidrio oscuro con filo dorado */
.card, .stat {
  background: linear-gradient(180deg, rgba(24, 29, 27, 0.88), rgba(13, 15, 14, 0.92));
  border: 1px solid rgba(var(--gold-rgb), 0.13); border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(244, 235, 208, 0.04);
}
.card { overflow: hidden; }
.card-h { padding: 16px 20px; border-bottom: 1px solid rgba(var(--gold-rgb), 0.1); }
.card-h h3 { font-family: var(--f-display); font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em; }
.card-h h3::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--zv-gold-light), var(--gold) 45%, var(--accent)); flex-shrink: 0; }
.card-h h3 .icon { color: var(--gold); }
.card-b { padding: 20px; }

/* Indicadores */
.stat { position: relative; overflow: hidden; padding: 18px 20px; }
.stat-top { align-items: center; }
.stat-top .icon { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); box-sizing: border-box; }
.stat-label { letter-spacing: 0.02em; }
.stat-value { font-family: var(--f-display); font-size: 24px; letter-spacing: -0.01em; }
.stat-accent { background: linear-gradient(150deg, rgba(var(--gold-rgb), 0.16), rgba(13, 15, 14, 0.94) 65%); border-color: rgba(var(--gold-rgb), 0.38); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 40px rgba(var(--gold-rgb), 0.06); }
.stat-accent .stat-top .icon { background: rgba(var(--gold-rgb), 0.14); color: var(--gold); }
.stat-accent::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 2px; background: var(--g-gold); }

/* Pestañas: cápsula con la activa en oro */
.tabs { background: rgba(10, 10, 10, 0.55); border-color: rgba(var(--gold-rgb), 0.16); border-radius: 14px; padding: 5px; }
.tab { border-radius: 10px; }
.tab.active { background: var(--g-gold); color: var(--gold-ink); box-shadow: 0 6px 18px rgba(var(--gold-rgb), 0.18); }
.tab.active:hover { color: var(--gold-ink); }

/* Botones */
.btn { border-radius: 12px; }
.btn-sm { border-radius: 10px; }
.btn-primary { box-shadow: 0 8px 22px rgba(var(--gold-rgb), 0.18); }
.btn-outline:hover:not(:disabled) { border-color: rgba(var(--gold-rgb), 0.6); background: rgba(var(--gold-rgb), 0.06); }

/* Campos: los mismos del ingreso */
.input { height: 44px; border-radius: 12px; background: rgba(244, 235, 208, 0.035); border-color: var(--line-2); }
.textarea.input, textarea.input { height: auto; }
.input:focus { border-color: rgba(var(--gold-rgb), 0.7); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.14); }

/* Tablas */
.table th { color: rgba(var(--gold-rgb), 0.75); font-size: 10.5px; letter-spacing: 0.14em; background: rgba(10, 10, 10, 0.25); border-bottom-color: rgba(var(--gold-rgb), 0.12); }
.table td { border-bottom-color: rgba(255, 255, 255, 0.045); }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover td { background: rgba(var(--gold-rgb), 0.035); }

/* Etiquetas */
.badge { border-radius: 999px; padding-inline: 10px; border: 1px solid transparent; }
.badge-up { border-color: rgba(var(--accent-rgb), 0.25); }
.badge-warn { border-color: rgba(var(--gold-rgb), 0.3); }
.badge-accent { border-color: rgba(var(--accent-rgb), 0.3); }

/* Vacío y carga */
.empty-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--gold); background: rgba(var(--gold-rgb), 0.08); border: 1px solid rgba(var(--gold-rgb), 0.22); margin-bottom: 4px; }
.empty strong { font-family: var(--f-display); font-size: 15.5px; }

/* Ventanas */
.modal {
  position: relative; border-radius: 20px; border-color: rgba(var(--gold-rgb), 0.28);
  background: linear-gradient(180deg, rgba(24, 29, 27, 0.97), rgba(12, 14, 13, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(var(--gold-rgb), 0.06);
}
.modal::before { content: ''; position: -webkit-sticky; position: sticky; display: block; top: 0; height: 2px; margin: 0 12%; background: var(--g-premium); z-index: 1; }
.modal-h h3, .modal-h h2 { font-family: var(--f-display); }

/* Nota de seguridad de la barra lateral */
.secure-note { border-radius: 14px; }

/* ═════════════ Arte de marca (globo, haces de luz, dunas, Z con volumen) ═════════════ */
.zv-globe { display: block; width: 100%; height: 100%; }
.zv-lights { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.zv-dunesart { display: block; width: 100%; height: 100%; pointer-events: none; }
.zv-emblem { display: block; overflow: visible; }
.ring-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--zv-gold-light);
  background: radial-gradient(circle at 50% 40%, rgba(var(--gold-rgb), 0.16), rgba(10, 10, 10, 0.6) 70%);
  box-shadow: inset 0 0 0 1.5px rgba(var(--gold-rgb), 0.75), 0 0 18px rgba(var(--gold-rgb), 0.22);
}
.ring-icon.lg { width: 60px; height: 60px; }
.ring-icon .icon { color: inherit; }

/* Portada: haces de luz, globo y dunas */
.lp-top { position: relative; isolation: isolate; overflow: hidden; }
.lp-hero { position: relative; }
.lp-hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: center; }
.lp-globe { position: absolute; inset: -8%; width: 116%; height: 116%; }
.lp-hero-art .lp-hero-card {
  position: absolute; left: -6%; right: 18%; bottom: -2%; padding: 18px 20px;
  background: linear-gradient(180deg, rgba(24, 29, 27, 0.82), rgba(10, 12, 11, 0.9)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--gold-rgb), 0.35); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--gold-rgb), 0.08);
}
.lp-hero-art .route-demo { gap: 10px; }
.lp-kpis { position: relative; z-index: 1; }
.lp-kpi { background: linear-gradient(180deg, rgba(24, 29, 27, 0.78), rgba(10, 12, 11, 0.85)); border-color: rgba(var(--gold-rgb), 0.2); border-radius: 16px; padding: 14px 18px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lp-dunes { height: 170px; margin-top: -90px; position: relative; z-index: 0; pointer-events: none; }
.lp-pillar { gap: 14px; }
.lp-cta-art { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 150px; border-top: 1px solid rgba(var(--gold-rgb), 0.15); }
.lp-cta-dunes { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; pointer-events: none; }
.lp-cta-art h2 { margin-top: -6px; }

/* Ingreso y registro */
.auth.auth-art { position: relative; isolation: isolate; overflow: hidden; background: var(--zv-black); }
.auth-dunes { position: absolute; left: 0; right: 0; bottom: 0; height: 210px; z-index: -1; pointer-events: none; }
.auth-card-top { gap: 6px; }
.auth-card-top .zv-emblem { margin: -12px 0 -6px; }

/* Panel: fondo con haces de luz y dunas (fijo detrás del contenido) */
.main::before, .main::after { content: none; }
.panel-art { position: fixed; top: 0; bottom: 0; left: var(--sidebar); right: 0; z-index: -1; pointer-events: none; isolation: isolate; }
.panel-art .zv-lights { opacity: 0.7; }
.panel-dunes { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; opacity: 0.55; }
.main { position: relative; z-index: auto; isolation: auto; }
@media (max-width: 900px) { .panel-art { left: 0; } }

/* Cabeceras: haces de luz y Z con volumen */
.page-hero::after { content: none; }
.page-hero { padding-right: 200px; min-height: 150px; }
.page-hero .zv-lights { opacity: 0.9; }
.page-hero-mark { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); opacity: 1; z-index: 0; filter: drop-shadow(0 0 24px rgba(var(--gold-rgb), 0.25)); }
.page-hero-copy, .page-hero .page-actions { position: relative; z-index: 1; }
.page-hero:has(.page-actions) .page-hero-mark { opacity: 0.22; right: 10px; }
.page-hero:has(.page-actions) { padding-right: 30px; }
@media (max-width: 700px) {
  .page-hero { padding: 22px 18px; padding-right: 18px; min-height: 0; }
  .page-hero-mark { right: -14px; opacity: 0.22; transform: translateY(-50%) scale(0.8); }
}
@media (max-width: 760px) {
  .lp-hero-art { aspect-ratio: auto; padding-top: 88%; max-width: 480px; }
  .lp-globe { inset: auto; top: -6%; left: -6%; width: 112%; height: auto; aspect-ratio: 1 / 1; }
  .lp-hero-art .lp-hero-card { position: relative; left: auto; right: auto; bottom: auto; margin-top: 8px; }
  .lp-dunes { height: 110px; margin-top: -50px; }
}

/* ═════════════ Paquetes ═════════════ */
.pkg-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); grid-gap: 18px; gap: 18px; align-items: stretch; margin-bottom: 18px; }
.pkg-grid .pkg-buy, .pkg-grid .stats, .pkg-grid .pkg-overall { margin-bottom: 0; }
.pkg-grid .pkg-overall { margin-top: 14px; }
.pkg-buy .stack { gap: 14px; }
.pkg-balance { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: rgba(var(--gold-rgb), 0.08); border: 1px solid rgba(var(--gold-rgb), 0.25); }
.pkg-balance strong { font-family: var(--f-display); font-size: 22px; color: var(--zv-gold-light); }
.pkg-balance small { font-size: 12px; color: var(--muted); }
.pkg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pkg-dates { display: flex; align-items: center; gap: 8px; }
.pkg-dates .input { height: 38px; width: 150px; }
.pkg-confirm { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border-radius: 16px; background: linear-gradient(150deg, rgba(var(--gold-rgb), 0.14), rgba(13, 15, 14, 0.9)); border: 1px solid rgba(var(--gold-rgb), 0.3); }
.pkg-confirm strong { font-family: var(--f-display); font-size: 30px; color: var(--zv-gold-light); }
.pkg-dl { margin: 0; display: flex; flex-direction: column; }
.pkg-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.pkg-dl div:last-child { border-bottom: none; }
.pkg-dl dt { color: var(--muted); }
.pkg-dl dd { margin: 0; font-weight: 600; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:focus-visible td { outline: none; background: rgba(var(--gold-rgb), 0.06); }
@media (max-width: 1100px) { .pkg-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pkg-dates { flex-wrap: wrap; } .pkg-dates .input { width: 100%; flex: 1 1; } }

/* Planes ZQ: selector de compra y etiqueta en las listas */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 8px; gap: 8px; }
.plan-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; text-align: left; cursor: pointer; color: var(--text); background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(13, 15, 14, 0.6)); border: 1px solid var(--line-2); transition: border-color .15s, background .15s, transform .15s; }
.plan-card:hover { border-color: rgba(var(--gold-rgb), 0.5); transform: translateY(-1px); }
.plan-card:focus-visible { outline: 2px solid var(--zv-gold-light); outline-offset: 2px; }
.plan-card.on { border-color: var(--zv-gold-light); background: linear-gradient(160deg, rgba(var(--gold-rgb), 0.22), rgba(13, 15, 14, 0.9)); box-shadow: 0 0 0 1px rgba(var(--gold-rgb), 0.35), 0 10px 24px -14px rgba(var(--gold-rgb), 0.7); }
.plan-card.short { cursor: not-allowed; background: rgba(255, 255, 255, 0.015); border-style: dashed; }
.plan-card.short:hover { transform: none; border-color: var(--line-2); }
.plan-card.short .plan-name { color: rgba(245, 215, 122, 0.62); }
.plan-card.short .plan-amount { color: var(--muted); }
.plan-need { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.pkg-side { display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.pkg-side > .stats, .pkg-side > .card { margin: 0 !important; }
.pkg-side > .plan-guide { flex: 1 1; display: flex; flex-direction: column; }
.plan-guide .plan-steps { flex: 1 1; align-content: center; }
.plan-steps { list-style: none; margin: 0; padding: 6px 20px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; }
.plan-steps li { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: linear-gradient(160deg, rgba(var(--gold-rgb), 0.07), rgba(13, 15, 14, 0.4)); border: 1px solid var(--line); }
.plan-steps li > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.plan-steps b { font-family: var(--f-display); font-size: 14.5px; }
.plan-step-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--zv-gold-light); background: rgba(var(--gold-rgb), 0.12); border: 1px solid rgba(var(--gold-rgb), 0.3); }
@media (max-width: 760px) { .plan-steps { grid-template-columns: 1fr; } }
.plan-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.plan-name { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; color: var(--zv-gold-light); }
.plan-amount { font-size: 13px; font-weight: 600; }
.plan-amount small, .plan-max { color: var(--muted); }
.plan-max { font-size: 11.5px; }
.plan-tick { position: absolute; top: 10px; right: 10px; color: var(--zv-gold-light); }
.plan-title { font-family: var(--f-display); letter-spacing: 0.02em; }
.plan-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: 0.03em; color: var(--zv-gold-light); background: rgba(var(--gold-rgb), 0.12); border: 1px solid rgba(var(--gold-rgb), 0.35); white-space: nowrap; }
.plan-cell { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.plan-cell .mono { font-size: 12px; color: var(--muted); }

/* Referidos: equipo completo, filtros, ficha y compras de la red */
.ref-lvl-n.all { background: var(--g-gold); color: var(--gold-ink); }
.ref-lvl-all { margin-bottom: 4px; border-color: rgba(var(--gold-rgb), 0.18); }
.ref-team .tabs { margin: 10px 0 2px; }
.ref-members li { border-bottom: 1px solid var(--line); }
.ref-members li:last-child { border-bottom: none; }
button.ref-member {
  width: 100%; border: none; border-bottom: none; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  border-radius: 12px; transition: background 0.15s;
}
button.ref-member:hover { background: rgba(var(--gold-rgb), 0.05); }
.ref-avatar.lg { width: 54px; height: 54px; font-size: 20px; }
.ref-mm-head { display: flex; align-items: center; gap: 14px; }
.ref-mm-head > div { flex: 1 1; min-width: 0; }
.ref-mm-name { font-family: var(--f-display); font-size: 18px; }
.ref-mm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; }
.ref-mm-grid div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: rgba(10, 10, 10, 0.4); border: 1px solid var(--line-2); }
.ref-mm-grid span { font-size: 12px; color: var(--muted); }
.ref-mm-sub { font-family: var(--f-display); font-size: 14px; margin-top: 4px; }
.ref-pk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px 4px; }
.ref-pk-filters .tabs { margin: 0; }
@media (max-width: 560px) { .ref-mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Avance de un paquete: lo ganado sobre su máximo */
.pkg-prog { display: inline-flex; align-items: center; gap: 10px; min-width: 150px; width: 100%; }
.pkg-prog b { font-size: 12.5px; min-width: 40px; text-align: right; color: var(--zv-sand); }
.pkg-bar { position: relative; flex: 1 1; display: block; height: 8px; border-radius: 99px; background: rgba(244, 235, 208, 0.07); box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.12); overflow: hidden; }
.pkg-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #0B7A5C, var(--accent) 55%, var(--zv-gold-light)); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.45); transition: width 0.6s ease; }
.pkg-bar.done i { background: var(--g-gold); box-shadow: 0 0 12px rgba(var(--gold-rgb), 0.5); }
.pkg-bar.lg { height: 14px; }
.pkg-prog-full .pkg-bar { flex: none; width: 100%; }
.pkg-col-prog { min-width: 170px; }
.pkg-prog-full { display: flex; flex-direction: column; gap: 10px; }
.pkg-prog-top { display: flex; justify-content: space-between; align-items: baseline; }
.pkg-prog-top span { font-size: 13px; color: var(--muted); font-weight: 600; }
.pkg-prog-top b { font-family: var(--f-display); font-size: 22px; color: var(--accent); }
.pkg-prog-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.pkg-prog-legend b { color: var(--text); margin-left: 4px; }
.pkg-prog-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.pkg-prog-legend .dot.earned { background: var(--accent); }
.pkg-prog-legend .dot.left { background: rgba(244, 235, 208, 0.2); }
.pkg-overall { margin-bottom: 18px; }
.pkg-confirm .badge { margin-top: 4px; }
.ref-pk-status.input { height: 38px; width: auto; min-width: 150px; }

/* Paquetes en el teléfono: tarjetas con la barra visible en lugar de la tabla */
.pkg-cards { display: none; list-style: none; margin: 0; padding: 4px 12px; }
.pkg-card {
  width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px 6px; border: none; border-bottom: 1px solid var(--line);
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.pkg-cards li:last-child .pkg-card { border-bottom: none; }
.pkg-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pkg-card-top > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.pkg-card-top b { font-family: var(--f-display); font-size: 17px; }
.pkg-card-foot { display: flex; justify-content: space-between; color: var(--muted); }
@media (max-width: 700px) {
  .pkg-cards { display: block; }
  .pkg-table { display: none; }
  .pkg-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pkg-stats .stat-value { font-size: 18px; }
  .card-h:has(.pkg-dates) { flex-wrap: wrap; }
}
@media (max-width: 420px) { .pkg-stats { grid-template-columns: 1fr; } }

/* ═════════════ Portada: mapa global de liquidez ═════════════ */
.lp-section-h .eyebrow { margin-bottom: 14px; }
.gf-map {
  position: relative; margin-top: 28px; border-radius: 22px; overflow: hidden; padding: 6px;
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  background: radial-gradient(70% 90% at 50% 40%, rgba(0, 200, 150, 0.08), transparent 70%), linear-gradient(180deg, rgba(16, 20, 18, 0.9), rgba(8, 10, 9, 0.95));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.gf-map::before { content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 2px; background: var(--g-premium); box-shadow: 0 0 16px rgba(var(--gold-rgb), 0.45); }
.gf-map svg { display: block; width: 100%; height: auto; }
.gf-region rect { fill: transparent; }
.gf-region.am rect { fill: url(#gf-e); opacity: 0.035; }
.gf-region.eu rect { fill: rgba(212, 175, 55, 0.04); }
.gf-region.as rect { fill: rgba(0, 200, 150, 0.035); }
.gf-reg-title { font: 600 11px var(--f-display); letter-spacing: 0.22em; text-transform: uppercase; fill: var(--zv-gold-light); }
.gf-reg-sub { font: 500 10.5px var(--f-body); fill: var(--muted); }
.gf-grid line { stroke: rgba(0, 200, 150, 0.07); stroke-dasharray: 2 6; }
.gf-land { fill: rgba(212, 175, 55, 0.34); }
.gf-arc { fill: none; stroke-width: 1.4; stroke-dasharray: 5 7; animation: gf-dash 2.6s linear infinite; }
.gf-arc-glow { fill: none; stroke-width: 5; opacity: 0.22; }
.gf-arc-glow.g { stroke: #D4AF37; }
.gf-arc-glow.e { stroke: #00C896; }
.gf-pulse.g { fill: #FFF1C2; filter: drop-shadow(0 0 4px #F5D77A); }
.gf-pulse.e { fill: #B8FFEA; filter: drop-shadow(0 0 4px #00C896); }
.gf-dot { fill: #FFF1C2; stroke: #0A0A0A; stroke-width: 1; }
.gf-hub.am .gf-dot { fill: #8DFFE0; }
.gf-halo { animation: gf-pulse 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.gf-label { font: 600 11px var(--f-body); fill: var(--zv-sand); paint-order: stroke; stroke: #0A0A0A; stroke-width: 3px; }
@keyframes gf-dash { to { stroke-dashoffset: -120; } }
@keyframes gf-pulse { 0%, 100% { opacity: 0.55; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
.gf-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 10px 14px 12px; font-size: 12px; color: var(--muted); }
.gf-legend i { display: inline-block; width: 18px; height: 2px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.gf-legend i.g { background: #F5D77A; box-shadow: 0 0 6px #D4AF37; }
.gf-legend i.e { background: #5CFFD3; box-shadow: 0 0 6px #00C896; }
.gf-legend i.n { width: 8px; height: 8px; border-radius: 50%; background: #FFF1C2; box-shadow: 0 0 8px #F5D77A; }
.gf-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; margin-top: 22px; }
.gf-points article, .af-steps li {
  position: relative; padding: 20px 18px; border-radius: 16px; border: 1px solid rgba(var(--gold-rgb), 0.16);
  background: linear-gradient(180deg, rgba(24, 29, 27, 0.85), rgba(12, 14, 13, 0.9));
}
.gf-n { font: 600 12px var(--f-display); letter-spacing: 0.24em; color: var(--gold); }
.gf-points h3, .af-steps h3 { font-family: var(--f-display); font-size: 16px; font-weight: 600; margin: 10px 0 8px; }
.gf-points p, .af-steps p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.gf-venues { margin-top: 30px; text-align: center; }
.gf-venues-label { display: inline-block; font: 600 10.5px var(--f-display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.gf-venues .lp-exchanges { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }

/* ═════════════ Portada: anatomía de un arbitraje ═════════════ */
.af-diagram {
  margin-top: 28px; padding: 18px; border-radius: 22px; border: 1px solid rgba(var(--gold-rgb), 0.22);
  background: radial-gradient(50% 70% at 50% 45%, rgba(0, 200, 150, 0.1), transparent 70%), linear-gradient(180deg, rgba(16, 20, 18, 0.9), rgba(8, 10, 9, 0.95));
}
.af-diagram svg { display: block; width: 100%; height: auto; }
.af-feed path { fill: none; stroke: rgba(0, 200, 150, 0.45); stroke-width: 1.2; stroke-dasharray: 3 6; animation: gf-dash 3s linear infinite; }
.af-cap { font: 600 10.5px var(--f-display); letter-spacing: 0.24em; text-transform: uppercase; fill: var(--accent); }
.af-venue rect { fill: rgba(10, 12, 11, 0.85); stroke: rgba(0, 200, 150, 0.45); stroke-width: 1.2; }
.af-venue.b rect { stroke: rgba(212, 175, 55, 0.55); }
.af-kicker { font: 600 10.5px var(--f-display); letter-spacing: 0.22em; text-transform: uppercase; fill: var(--muted); }
.af-title { font: 600 20px var(--f-display); fill: var(--text); }
.af-price { font: 600 18px var(--f-body); fill: var(--accent); font-feature-settings: 'tnum' 1; }
.af-venue.b .af-price { fill: var(--zv-gold-light); }
.af-note { font: 500 12px var(--f-body); fill: var(--faint); }
.af-ring { fill: none; stroke: url(#af-gold); stroke-width: 1.6; }
.af-orbit { fill: none; stroke: rgba(212, 175, 55, 0.35); stroke-width: 1; stroke-dasharray: 2 8; animation: af-spin 30s linear infinite; transform-origin: 500px 175px; }
@keyframes af-spin { to { transform: rotate(360deg); } }
.af-core-label { font: 600 10px var(--f-display); letter-spacing: 0.22em; text-transform: uppercase; fill: var(--zv-gold-light); }
.af-flow { fill: none; stroke-width: 2.4; stroke-dasharray: 8 6; animation: gf-dash 1.6s linear infinite; }
.af-flow.g { stroke: #F5D77A; filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.7)); }
.af-flow.e { stroke: #00C896; filter: drop-shadow(0 0 4px rgba(0, 200, 150, 0.7)); }
.af-leg { font: 600 11px var(--f-display); letter-spacing: 0.18em; text-transform: uppercase; fill: var(--zv-sand); }
.af-result rect { fill: rgba(var(--gold-rgb), 0.1); stroke: rgba(212, 175, 55, 0.6); stroke-width: 1.2; }
.af-result-v { font: 600 16px var(--f-display); fill: var(--zv-gold-light); }
.af-math-v { font: 600 20px var(--f-display); fill: var(--accent); }
.af-math-v.neg { fill: #F6465D; }
.af-math-v.big { font-size: 30px; fill: var(--zv-gold-light); }
.af-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; counter-reset: none; }
.af-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 14px var(--f-display); color: var(--gold-ink); background: var(--g-gold); box-shadow: 0 0 16px rgba(var(--gold-rgb), 0.35); }
.af-steps li:not(:last-child)::after {
  content: ''; position: absolute; top: 36px; right: -12px; width: 12px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--accent));
}
.af-disclaimer { margin: 16px auto 0; max-width: 820px; text-align: center; font-size: 12.5px; color: var(--faint); }
.lp-cta-lead { max-width: 820px; color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0; }
@media (prefers-reduced-motion: reduce) { .gf-arc, .af-flow, .af-feed path, .af-orbit, .gf-halo { animation: none; } }
@media (max-width: 1100px) {
  .gf-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-steps li::after { display: none; }
}
@media (max-width: 600px) {
  .gf-points, .af-steps { grid-template-columns: 1fr; }
  .gf-map { margin-left: -6px; margin-right: -6px; }
  .af-diagram { padding: 8px; }
}
@media (max-width: 700px) {
  .gf-map, .af-diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .gf-map svg { min-width: 760px; }
  .af-diagram svg { min-width: 720px; }
  .gf-legend { position: -webkit-sticky; position: sticky; left: 0; }
}

.auth-pitch .auth-lead { max-width: 440px; color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0 0 24px; }
.auth-pitch { animation: fade 0.35s ease; }
.auth-main { padding-top: 84px; padding-bottom: 56px; }
@media (max-width: 900px) { .auth-main { padding-top: 64px; } }

/* Registro compacto: misma información, menos altura */
.auth-card:has(.grid-2) { max-width: 540px; gap: 10px; padding: 24px 30px 22px; }
.auth-card:has(.grid-2) .auth-card-top { flex-direction: row; justify-content: center; gap: 12px; margin-bottom: 0; }
.auth-card:has(.grid-2) .auth-card-top .zv-emblem { width: 58px; height: 58px; margin: -4px 0; }
.auth-card:has(.grid-2) .auth-card-top .logo-words { align-items: flex-start; }
.auth-card:has(.grid-2) .auth-head { gap: 2px; padding-bottom: 0; }
.auth-card:has(.grid-2) .auth-head::after { margin-top: 6px; }
.auth-card:has(.grid-2) h1 { font-size: 24px; }
.auth-card:has(.grid-2) .auth-head p { font-size: 13.5px; }
.auth-card:has(.grid-2) .stack { gap: 10px; }
.auth-card:has(.grid-2) .grid-2 { gap: 10px; }
.auth-card:has(.grid-2) .field { gap: 4px; }
.auth-card:has(.grid-2) .field-label { font-size: 12.5px; }
.auth-card:has(.grid-2) .input { height: 40px; font-size: 14px; }
.auth-card:has(.grid-2) .field-hint { display: none; }
.auth-card:has(.grid-2) .check { font-size: 12.5px; line-height: 1.45; }
.auth-card:has(.grid-2) .btn-lg { height: 46px; }
.auth-card:has(.grid-2) > p { margin: 0; font-size: 13.5px; }
.auth:has(.auth-card .grid-2) .auth-main { padding-top: 64px; padding-bottom: 40px; }

/* Retiro: elegir wallet de origen */
.wd-source { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; }
.wd-source button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(244, 235, 208, 0.03); border: 1px solid var(--line-2); color: var(--text); font: inherit; transition: border-color 0.15s, background 0.15s;
}
.wd-source button:hover { border-color: rgba(var(--gold-rgb), 0.45); }
.wd-source button.active { border-color: rgba(var(--gold-rgb), 0.8); background: linear-gradient(150deg, rgba(var(--gold-rgb), 0.14), rgba(13, 15, 14, 0.9)); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.1); }
.wd-source-top { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.wd-source button.active .wd-source-top { color: var(--gold); }
.wd-source-top b { color: var(--text); font-size: 14px; }
.wd-source-amount { font-family: var(--f-display); font-size: 20px; font-weight: 600; }
.wd-source button.active .wd-source-amount { color: var(--zv-gold-light); }
.wd-source-amount small { font-size: 11px; color: var(--muted); }
@media (max-width: 480px) { .wd-source { grid-template-columns: 1fr; } }

/* ═════════════ Asistente virtual (abajo a la derecha) ═════════════ */
button.link { background: none; border: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-weight: 600; }
.as-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 55; display: flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 18px 0 10px; border-radius: 999px; cursor: pointer; color: var(--zv-sand);
  background: linear-gradient(160deg, rgba(28, 34, 31, 0.96), rgba(10, 12, 11, 0.98)); border: 1px solid rgba(var(--gold-rgb), 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 26px rgba(var(--gold-rgb), 0.22); transition: transform 0.15s, box-shadow 0.15s;
}
.as-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6), 0 0 34px rgba(var(--gold-rgb), 0.32); }
.as-fab::after { content: ''; position: absolute; inset: -5px; border-radius: inherit; border: 1px solid rgba(var(--gold-rgb), 0.35); animation: as-ring 2.6s ease-out infinite; pointer-events: none; }
.as-fab.open { width: 56px; height: 56px; padding: 0; justify-content: center; }
.as-fab.open::after { display: none; }
.as-fab-label { font: 600 14px var(--f-display); letter-spacing: 0.01em; }
@keyframes as-ring { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18); } }
.as-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 56; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; border: 1px solid rgba(var(--gold-rgb), 0.4);
  background: linear-gradient(180deg, rgba(20, 25, 23, 0.98), rgba(9, 11, 10, 0.99)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 50px rgba(var(--gold-rgb), 0.1);
  animation: pop 0.2s ease-out;
}
.as-panel::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 2px; background: var(--g-premium); box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.5); }
.as-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 12px 16px; border-bottom: 1px solid rgba(var(--gold-rgb), 0.14); background: radial-gradient(300px 120px at 0% 0%, rgba(var(--gold-rgb), 0.12), transparent 70%); }
.as-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(10, 10, 10, 0.7); box-shadow: inset 0 0 0 1.5px rgba(var(--gold-rgb), 0.7), 0 0 14px rgba(var(--gold-rgb), 0.25); }
.as-title { flex: 1 1; display: flex; flex-direction: column; min-width: 0; }
.as-title b { font: 600 15px var(--f-display); }
.as-title span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.as-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.as-body { flex: 1 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.as-msg { display: flex; flex-direction: column; gap: 8px; max-width: 92%; }
.as-msg.user { align-self: flex-end; align-items: flex-end; }
.as-bubble { padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; }
.as-bubble p { margin: 0; white-space: pre-wrap; }
.as-msg.bot .as-bubble { background: rgba(244, 235, 208, 0.05); border: 1px solid var(--line-2); border-top-left-radius: 6px; }
.as-msg.user .as-bubble { background: var(--g-gold); color: var(--gold-ink); font-weight: 500; border-top-right-radius: 6px; }
.as-msg.ok .as-bubble { border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.08); }
.as-msg.warn .as-bubble { border-color: rgba(var(--gold-rgb), 0.5); background: rgba(var(--gold-rgb), 0.08); }
.as-msg.error .as-bubble { border-color: rgba(246, 70, 93, 0.45); background: rgba(246, 70, 93, 0.08); }
.as-facts { margin: 10px 0 0; display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.as-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.as-facts dt { color: var(--muted); }
.as-facts dd { margin: 0; font-weight: 600; text-align: right; font-feature-settings: 'tnum' 1; word-break: break-all; }
.as-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.as-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font: 600 12.5px var(--f-body); cursor: pointer;
  color: var(--zv-sand); background: rgba(var(--gold-rgb), 0.07); border: 1px solid rgba(var(--gold-rgb), 0.35); text-align: left;
}
.as-chip:hover { text-decoration: none; background: rgba(var(--gold-rgb), 0.14); border-color: rgba(var(--gold-rgb), 0.7); }
.as-chip.primary { background: var(--g-gold); color: var(--gold-ink); border-color: transparent; }
.as-chip.ghost { background: transparent; border-color: var(--line-2); color: var(--muted); }
.as-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.as-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: as-blink 1.2s infinite ease-in-out; }
.as-typing i:nth-child(2) { animation-delay: 0.15s; }
.as-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes as-blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.as-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(var(--gold-rgb), 0.14); background: rgba(8, 10, 9, 0.9); }
.as-input input {
  flex: 1 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(244, 235, 208, 0.04);
  color: var(--text); font: inherit; font-size: 14px;
}
.as-input input:focus { outline: none; border-color: rgba(var(--gold-rgb), 0.7); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.14); }
.as-send { width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--g-gold); color: var(--gold-ink); display: grid; place-items: center; cursor: pointer; }
.as-send:disabled { opacity: 0.4; cursor: default; }
@media (max-width: 700px) {
  .as-fab { right: 14px; bottom: 14px; }
  .as-fab-label { display: none; }
  .as-fab:not(.open) { width: 58px; padding: 0; justify-content: center; }
  .as-panel { right: 8px; left: 8px; width: auto; bottom: 80px; height: calc(100vh - 100px); }
}

.m0 { margin: 0; }

/* ═══════════════ ZQ Challenge (predicciones) ═══════════════ */
.pm-explore { gap: 16px; }
.pm-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.pm-how li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: linear-gradient(160deg, rgba(var(--gold-rgb), 0.08), rgba(13, 15, 14, 0.5)); border: 1px solid rgba(var(--gold-rgb), 0.18); }
.pm-how li div { display: flex; flex-direction: column; gap: 2px; }
.pm-how b { font-family: var(--f-display); font-size: 14px; }
.pm-how span:not(.pm-how-n) { font-size: 12.5px; color: var(--muted); }
.pm-how-n { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; background: var(--g-gold); color: var(--gold-ink); }
.pm-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pm-search { flex: 1 1 260px; }
.pm-coupons { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; color: var(--gold, var(--accent)); background: var(--panel-3); border: 1px solid var(--line-2); white-space: nowrap; }
.pm-coupons b { font-size: 13px; }
.pm-coupons.none { color: var(--muted); }
.pm-sort { width: auto; min-width: 170px; }
.pm-cats { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 2px; }
@media (max-width: 640px) {
  .pm-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
.pm-cats::-webkit-scrollbar { display: none; }
.pm-cats button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s; }
.pm-cats button:hover { color: var(--text); border-color: rgba(var(--gold-rgb), 0.4); }
.pm-cats button.on { background: var(--g-gold); color: var(--gold-ink); border-color: transparent; }
.pm-cat-n { min-width: 18px; padding: 0 5px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 11px; background: rgba(0, 0, 0, 0.25); }
.pm-cats button:not(.on) .pm-cat-n { background: var(--panel-3); color: var(--text); }

.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-gap: 14px; gap: 14px; }
.pm-feed-end { display: flex; justify-content: center; align-items: center; min-height: 56px; padding: 6px 0 4px; text-align: center; }
.pm-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(170deg, rgba(255, 255, 255, 0.025), rgba(13, 15, 14, 0.6)), var(--panel); border: 1px solid var(--line-2); transition: border-color .15s, transform .15s, box-shadow .15s; }
.pm-card:hover { border-color: rgba(var(--gold-rgb), 0.45); transform: translateY(-2px); box-shadow: 0 16px 34px -20px rgba(var(--gold-rgb), 0.55); }
.pm-card.is-resolved, .pm-card.is-cancelled { opacity: 0.92; }
.pm-card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pm-cat { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--zv-gold-light); }
.pm-left { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.pm-left.soon { color: #FFB74D; }
.pm-card-q { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; min-height: 58px; }
.pm-card-link { color: var(--text); font-family: var(--f-display); font-weight: 600; font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pm-card-link::after { content: ''; position: absolute; inset: 0; border-radius: 16px; }
.pm-card-link:hover { text-decoration: none; color: var(--zv-gold-light); }
.pm-gauge { flex: none; }
.pm-gauge-bg { fill: none; stroke: var(--panel-3); stroke-width: 5; }
.pm-gauge-fg { fill: none; stroke: var(--up); stroke-width: 5; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.pm-gauge text { fill: var(--text); font-family: var(--f-display); font-weight: 700; font-size: 12px; }
.pm-yn-wrap { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.pm-pays { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; gap: 8px; font-size: 11.5px; color: var(--muted); }
.pm-pays span { padding: 0 4px; }
.pm-split { display: flex; height: 4px; border-radius: 3px; overflow: hidden; background: rgba(var(--gold-rgb), 0.55); margin-top: 2px; }
.pm-split i { display: block; height: 100%; background: var(--up); transition: width .6s ease; }
.pm-yn { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; gap: 8px; position: relative; z-index: 1; }
.pm-yn-btn { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 11px; font-weight: 700; font-size: 14px; border: 1px solid transparent; transition: all .15s; }
.pm-yn-btn:hover { text-decoration: none; transform: translateY(-1px); }
.pm-yn-btn.yes { background: var(--up-soft); color: var(--up); border-color: rgba(0, 200, 150, 0.3); }
.pm-yn-btn.yes:hover { background: var(--up); color: var(--accent-ink); }
.pm-yn-btn.no { background: rgba(var(--gold-rgb), 0.1); color: var(--zv-gold-light); border-color: rgba(var(--gold-rgb), 0.3); }
.pm-yn-btn.no:hover { background: var(--g-gold); color: var(--gold-ink); }
.pm-yn-btn[aria-disabled='true'] { pointer-events: none; opacity: 0.6; }
.pm-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.pm-opt-row { display: grid; grid-template-columns: 1fr auto; grid-gap: 3px 10px; gap: 3px 10px; padding: 6px 8px; border-radius: 9px; color: var(--text); }
.pm-opt-row:hover { background: var(--panel-3); text-decoration: none; }
.pm-opt-label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-opt-label i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.pm-opt-bar { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.pm-opt-bar span { display: block; height: 100%; border-radius: 3px; transition: width .6s ease; }
.pm-more { padding-left: 8px; }
.pm-winner { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 11px; background: var(--up-soft); color: var(--up); font-size: 13.5px; }
.pm-winner b { color: var(--text); }
.pm-card-f { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pm-card-f span { display: inline-flex; align-items: center; gap: 5px; }
.pm-card-f b { color: var(--text); }
.pm-by { margin-left: auto; color: var(--faint); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Detalle */
.pm-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 12px; }
.pm-back .icon { transform: rotate(180deg); }
.pm-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: 'head slip' 'answers slip' 'split slip' 'rules slip'; grid-template-rows: auto auto auto 1fr; grid-gap: 18px; gap: 18px; align-items: start; }
.pm-detail-grid > * { min-width: 0; margin: 0 !important; }
.pm-a-head { grid-area: head; } .pm-a-answers { grid-area: answers; } .pm-a-mine { grid-area: mine; } .pm-a-rules { grid-area: rules; } .pm-a-split { grid-area: split; }
.pm-a-slip { grid-area: slip; align-self: stretch; }
.pm-slip { position: -webkit-sticky; position: sticky; top: 84px; }
.pm-head { background: linear-gradient(150deg, rgba(var(--gold-rgb), 0.1), rgba(13, 15, 14, 0.85) 60%), var(--panel); border-color: rgba(var(--gold-rgb), 0.28); }
.pm-head-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pm-question { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; margin: 0; }
.pm-head-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; }
.pm-head-kpis div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); min-width: 0; }
.pm-head-kpis span { font-size: 11.5px; color: var(--muted); }
.pm-head-kpis b { font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-note { margin: 0; }
.pm-rows { list-style: none; margin: 0; padding: 6px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.pm-row { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; overflow: hidden; text-align: left; transition: border-color .15s; }
.pm-row:disabled { cursor: default; }
.pm-row:not(:disabled):hover { border-color: var(--c); }
.pm-row.on { border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.pm-row-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); opacity: 0.14; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.pm-row.win { border-color: var(--up); }
.pm-row.lost { opacity: 0.6; }
.pm-row-label, .pm-row-right { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pm-row-label b { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.pm-row.win .pm-row-label { flex-direction: row; align-items: center; gap: 8px; color: var(--up); }
.pm-row.win .pm-row-label .muted { display: none; }
.pm-row-right { align-items: flex-end; flex: none; }
.pm-row-pct { font-size: 20px; font-family: var(--f-display); color: var(--c); }
.pm-desc { white-space: pre-line; margin: 0; line-height: 1.6; }
.pm-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.pm-rules li { display: flex; gap: 8px; align-items: flex-start; }
.pm-rules .icon { flex: none; margin-top: 2px; color: var(--gold); }

/* Boleto */
.pm-slip-opts { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; gap: 8px; }
.pm-slip-pick { display: flex; flex-direction: column; gap: 8px; }
.pm-slip-chosen { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--c); color: #04140F; font-size: 15px; }
.pm-slip-opt { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 700; cursor: pointer; text-align: left; transition: all .15s; }
.pm-slip-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-slip-opt b { color: var(--c); }
.pm-slip-opt:hover { border-color: var(--c); }
.pm-slip-opt.on { background: var(--c); border-color: var(--c); color: #04140F; }
.pm-slip-opt.on b { color: #04140F; }
.pm-quick { margin: -4px 0 0; }
.pm-est { display: flex; flex-direction: column; gap: 0; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.2); }
.pm-est div { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 13.5px; }
.pm-est div + div { border-top: 1px solid var(--line); }
.pm-est span { color: var(--muted); }
.pm-est div:first-child b { font-size: 17px; }
.pm-slip-go { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #04140F; }

/* Mis predicciones y mis preguntas */
.pm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pm-bets, .pm-mine { list-style: none; margin: 0; padding: 0; }
.pm-bet { display: grid; grid-template-columns: minmax(0, 1fr) 140px 100px 100px 110px; grid-gap: 14px; gap: 14px; align-items: center; padding: 14px 20px; color: var(--text); border-top: 1px solid var(--line); }
.pm-bet:hover { background: rgba(var(--gold-rgb), 0.04); text-decoration: none; }
.pm-bet > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pm-bet-q b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-bet-amt { align-items: flex-end; }
.pm-bet-actions { display: flex; justify-content: flex-end; padding: 0 14px 10px; margin-top: -6px; }
.pm-counter { display: flex; gap: 6px; align-items: flex-start; margin-top: 12px; line-height: 1.45; }
.pm-counter svg { flex: none; margin-top: 2px; }
.pm-mine-item { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.pm-mine-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pm-mine-q { font-family: var(--f-display); font-weight: 600; color: var(--text); }
.pm-mine-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }

/* Formulario */
.pm-type { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; }
.pm-type button { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; }
.pm-type button span { font-size: 12px; color: var(--muted); }
.pm-type button.on { border-color: var(--zv-gold-light); background: linear-gradient(160deg, rgba(var(--gold-rgb), 0.18), rgba(13, 15, 14, 0.8)); }
.pm-type button.on b { color: var(--zv-gold-light); }
.pm-opt-edit { display: flex; flex-direction: column; gap: 8px; }
.pm-opt-edit-row { display: flex; align-items: center; gap: 8px; }
.pm-opt-edit-row .input-wrap, .pm-opt-edit-row > .input { flex: 1 1; }
.pm-opt-n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; background: var(--panel-3); color: var(--muted); }

@media (max-width: 1100px) {
  .pm-detail-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'answers' 'slip' 'split' 'rules'; grid-template-rows: none; }
  .pm-slip { position: static; }
  .pm-bet { grid-template-columns: minmax(0, 1fr) 90px 90px; }
  .pm-bet-pick, .pm-bet > .badge { display: none; }
}
@media (max-width: 760px) {
  .pm-how { grid-template-columns: 1fr; }
  .pm-how li { padding: 10px 12px; }
  .pm-head-kpis, .pm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-mine-item { flex-direction: column; align-items: stretch; }
  .pm-mine-side { align-items: flex-start; }
  .pm-bet { grid-template-columns: minmax(0, 1fr) 80px; padding: 12px 16px; }
  .pm-bet > .pm-bet-amt:nth-of-type(3) { display: none; }
  .pm-type { grid-template-columns: 1fr; }
}

/* Portada · ZQ Challenge */
.lp-zm { display: grid; grid-template-columns: 0.9fr 1.1fr; grid-gap: 48px; gap: 48px; align-items: center; position: relative; }
.lp-zm::before { content: ''; position: absolute; inset: 10% -10% 0 30%; background: radial-gradient(closest-side, rgba(var(--gold-rgb), 0.12), transparent 70%), radial-gradient(closest-side at 80% 70%, rgba(var(--accent-rgb), 0.1), transparent 70%); pointer-events: none; z-index: -1; }
.lp-zm-copy h2 { font-weight: 300; text-transform: uppercase; letter-spacing: 0.05em; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; margin: 14px 0 0; }
.lp-zm-copy h2 .text-gold { font-weight: 600; }
.lp-zm-copy .rule { margin: 16px 0; }
.lp-zm-copy > p { line-height: 1.65; max-width: 520px; }
.lp-zm-points { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-zm-points li { display: flex; gap: 12px; align-items: flex-start; }
.lp-zm-points .icon { color: var(--gold); }
.lp-zm-points div { display: flex; flex-direction: column; gap: 2px; }
.lp-zm-points b { font-family: var(--f-display); font-size: 14.5px; }
.lp-zm-points span:not(.ring-icon) { font-size: 13px; color: var(--muted); }
.lp-zm-board { position: relative; padding: 18px; border-radius: 22px; background: linear-gradient(170deg, rgba(244, 235, 208, 0.04), rgba(10, 12, 11, 0.85)), var(--panel); border: 1px solid rgba(var(--gold-rgb), 0.3); box-shadow: var(--glow-gold); }
.lp-zm-board-h { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 14px; }
.lp-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--up); }
.lp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.6); animation: lpPulse 1.8s infinite; }
@keyframes lpPulse { 0% { box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(0, 200, 150, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 200, 150, 0); } }
.lp-zm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-zm-item { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 15px; background: rgba(13, 15, 14, 0.75); border: 1px solid var(--line-2); color: var(--text); transition: border-color .4s, box-shadow .4s, transform .4s; }
.lp-zm-item:hover { text-decoration: none; border-color: rgba(var(--gold-rgb), 0.5); }
.lp-zm-list li.spot .lp-zm-item { border-color: rgba(var(--gold-rgb), 0.55); box-shadow: 0 14px 30px -18px rgba(var(--gold-rgb), 0.7); transform: translateX(-4px); }
.lp-zm-item-h { display: flex; justify-content: space-between; align-items: center; }
.lp-zm-demo { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; }
.lp-zm-q { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.lp-zm-q b { font-family: var(--f-display); font-weight: 600; font-size: 15px; line-height: 1.35; }
.lp-zm-yn { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; gap: 8px; }
.lp-zm-yn span { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.lp-zm-yn .yes { background: var(--up-soft); color: var(--up); }
.lp-zm-yn .no { background: rgba(var(--gold-rgb), 0.1); color: var(--zv-gold-light); }
.lp-zm-yn b { transition: all .6s; }
.lp-zm-stack { display: flex; height: 8px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--panel-3); }
.lp-zm-stack span { display: block; height: 100%; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.lp-zm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.lp-zm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lp-zm-legend i { width: 7px; height: 7px; border-radius: 50%; }
.lp-zm-legend b { color: var(--text); }
.lp-zm-f { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.lp-zm-f span { display: inline-flex; align-items: center; gap: 5px; }
.lp-zm-note { margin: 12px 4px 0; }
@media (max-width: 1000px) { .lp-zm { grid-template-columns: 1fr; gap: 30px; } .lp-zm-list li.spot .lp-zm-item { transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-live i { animation: none; } .lp-zm-item, .lp-zm-stack span, .pm-row-fill, .pm-opt-bar span { transition: none; } }
.pm-ticket { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; border: 1px dashed rgba(var(--gold-rgb), 0.5); background: linear-gradient(160deg, rgba(var(--gold-rgb), 0.12), rgba(13, 15, 14, 0.7)); text-align: center; }
.pm-ticket-pick { font-family: var(--f-display); font-size: 22px; color: var(--zv-gold-light); }
.pm-split3 { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; }
.pm-split3 span { display: block; height: 100%; }
.pm-split3-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 8px; gap: 8px; margin-top: 10px; }
.pm-split3-legend div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 11px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); }
.pm-split3-legend span { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pm-split3-legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pm-split3-legend b { font-size: 14.5px; }
@media (max-width: 560px) { .pm-split3-legend { grid-template-columns: 1fr; } }

/* Condiciones de la contraseña */
.pw-rules { list-style: none; margin: -2px 0 2px; padding: 10px 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 5px 12px; gap: 5px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 6px; transition: color .15s; }
.pw-rules li .icon { flex: none; opacity: 0.6; }
.pw-rules li.ok { color: var(--up); }
.pw-rules li.ok .icon { opacity: 1; }
.pw-rules li.bad { color: #E9A1A9; }
.pw-rules.all { border-color: rgba(0, 200, 150, 0.35); }
@media (max-width: 480px) { .pw-rules { grid-template-columns: 1fr; } }
.plan-card .plan-info { color: var(--muted); opacity: 0.7; }
.plan-card.short { cursor: pointer; }
.plan-card.short:hover { border-color: rgba(var(--gold-rgb), 0.45); }
.plan-dl dt { display: inline-flex; align-items: center; gap: 7px; }
.plan-dl dt .icon { color: var(--gold); }
.plan-need-box { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 11px; background: rgba(var(--gold-rgb), 0.08); border: 1px dashed rgba(var(--gold-rgb), 0.4); color: var(--zv-gold-light); }
.pkg-cancel-btn { color: var(--muted); }
.pkg-cancel-btn:hover { color: var(--down); }
.pkg-cancel { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid rgba(246, 70, 93, 0.35); background: rgba(246, 70, 93, 0.05); }
.pkg-cancel h4 { margin: 0; display: flex; align-items: center; gap: 8px; color: #F49AA6; font-family: var(--f-display); }
.pkg-cancel-total dt, .pkg-cancel-total dd { color: var(--text) !important; font-weight: 700; font-size: 15px; }

/* KYC */
.kyc-notice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(var(--gold-rgb), 0.45); background: linear-gradient(150deg, rgba(var(--gold-rgb), 0.14), rgba(13, 15, 14, 0.85)); }
.kyc-notice > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1; min-width: 0; }
.kyc-notice b { font-family: var(--f-display); color: var(--zv-gold-light); }
.kyc-notice span:not(.kyc-notice-ic) { font-size: 13px; color: var(--muted); }
.kyc-notice-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--gold-rgb), 0.15); color: var(--zv-gold-light); }
@media (max-width: 560px) { .kyc-notice { flex-wrap: wrap; } .kyc-notice .btn { width: 100%; justify-content: center; } }
.kyc-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kyc-types button { align-items: center; text-align: center; }
.kyc-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; }
.kyc-photos.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kyc-photo { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; border-radius: 14px; border: 1px dashed var(--line-2); background: var(--panel-2); text-align: center; overflow: hidden; transition: border-color .15s; min-width: 0; }
.kyc-photo-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 130px; padding: 6px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 10px; }
.kyc-photo-btns { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 6px; gap: 6px; margin-top: auto; }
/* Casillas simétricas: mismo alto, ícono arriba, título y ayuda con alto fijo y botones alineados abajo */
.kyc-photo-main { flex: 1 1; justify-content: flex-start !important; }
.kyc-photo-main > b { display: flex; align-items: center; justify-content: center; min-height: calc(2 * 1.35em); line-height: 1.35; }
.kyc-photo-main > span.small { display: flex; align-items: flex-start; justify-content: center; min-height: calc(2 * 1.4em); line-height: 1.4; }
.kyc-photo-ic, .kyc-photo img { flex: none; }
.kyc-photo-btns.one { grid-template-columns: 1fr; }
.kyc-photo-btns.one button:first-child { border-color: rgba(var(--gold-rgb), 0.5); color: var(--zv-gold-light); background: rgba(var(--gold-rgb), 0.1); }
.kyc-photo-btns button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.kyc-photo-btns button:first-child { border-color: rgba(var(--gold-rgb), 0.5); color: var(--zv-gold-light); background: rgba(var(--gold-rgb), 0.1); }
.kyc-photo-btns button:hover { border-color: rgba(var(--gold-rgb), 0.7); }
.kyc-photo:hover { border-color: rgba(var(--gold-rgb), 0.5); }
.kyc-photo.has { border-style: solid; border-color: rgba(0, 200, 150, 0.45); }
.kyc-photo.err { border-color: var(--down); }
.kyc-photo img { width: 100%; height: 96px; object-fit: cover; border-radius: 9px; margin-bottom: 4px; }
.kyc-photo-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--zv-gold-light); background: rgba(var(--gold-rgb), 0.12); margin-bottom: 4px; }
.kyc-photo b { font-size: 13px; }
.kyc-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border-radius: 14px; text-align: center; }
.kyc-state b { font-family: var(--f-display); font-size: 17px; }
.kyc-state.ok { background: var(--up-soft); color: var(--up); border: 1px solid rgba(0, 200, 150, 0.35); }
.kyc-state.wait { background: rgba(var(--gold-rgb), 0.08); color: var(--zv-gold-light); border: 1px solid rgba(var(--gold-rgb), 0.35); }
@media (max-width: 760px) { .kyc-photos, .kyc-photos.two { grid-template-columns: 1fr; } .kyc-types { grid-template-columns: 1fr; } }

/* Cámara del KYC (pantalla completa) */
.cam { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #050606; color: #fff; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.cam-h { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; grid-gap: 8px; gap: 8px; padding: 8px 10px; }
.cam-h b { text-align: center; font-family: var(--f-display); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-h .icon-btn { color: #fff; }
.cam-sp { width: 44px; }
.cam-stage { position: relative; flex: 1 1; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #000; }
.cam-stage video, .cam-shot { width: 100%; height: 100%; object-fit: contain; }
.cam-stage video.mirror { transform: scaleX(-1); }
.cam-guide { position: absolute; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45); border: 2px solid var(--zv-gold-light); }
.cam-guide.document { width: min(88%, 560px); aspect-ratio: 1.586; border-radius: 14px; }
.cam-guide.selfie { width: min(62%, 320px); aspect-ratio: 3 / 4; border-radius: 50%; }
.cam-wait { position: absolute; }
.cam-err { position: absolute; inset: auto 16px 16px; }
.cam-f { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 18px; background: #0b0d0c; }
.cam-f .muted { color: rgba(255, 255, 255, 0.72); }
.cam-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.cam-side { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 6px; border: 0; background: none; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.cam-shutter { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: var(--zv-gold-light); box-shadow: inset 0 0 0 4px #050606; cursor: pointer; }
.cam-shutter:disabled { opacity: 0.4; cursor: default; }
.cam-shutter:active:not(:disabled) { transform: scale(0.94); }

/* Guía de la selfie del KYC */
.kyc-guide-h { margin: 0 0 10px; font-family: var(--f-display); font-size: 14px; color: var(--zv-gold-light); }
.kyc-guide { margin: 0 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-gap: 14px; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid rgba(var(--gold-rgb), 0.3); background: rgba(var(--gold-rgb), 0.05); }
.kyc-guide-art { width: 100%; height: auto; display: block; }
.kyc-guide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text); }
.kyc-guide-list li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.kyc-guide-list li > svg { flex: none; width: 13px; height: 13px; margin-top: 3px; color: var(--up); }
@media (max-width: 1100px) { .kyc-guide { grid-template-columns: 1fr; } .kyc-guide-art { max-width: 340px; margin: 0 auto; } }
/* Si el formulario es angosto, las casillas van una debajo de otra para no deformarse */
.kyc-form { container: kycform / inline-size; }
@container kycform (max-width: 440px) {
  .kyc-photos, .kyc-photos.two { grid-template-columns: 1fr; }
}
.kyc-photo-btns button { white-space: nowrap; }
/* Casilla angosta: "Tomar foto" y "Galería" uno debajo del otro */
.kyc-photo { container: kycbox / inline-size; }
@container kycbox (max-width: 250px) {
  .kyc-photo-btns { grid-template-columns: 1fr; }
}

/* ── ZQ Challenge en la portada ───────────────────────────────────────── */
.lp-zq { position: relative; isolation: isolate; padding-top: 70px; padding-bottom: 70px; }
.lp-zq-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; border-radius: 32px;
  background-image: linear-gradient(rgba(244, 235, 208, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 235, 208, 0.035) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 75%); }
.lp-zq-bg i { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: lp-zq-float 16s ease-in-out infinite; }
.lp-zq-bg i:nth-child(1) { left: -80px; top: 40px; background: radial-gradient(circle, rgba(var(--gold-rgb), 0.35), transparent 65%); }
.lp-zq-bg i:nth-child(2) { right: -60px; top: 180px; background: radial-gradient(circle, rgba(0, 200, 150, 0.3), transparent 65%); animation-delay: -5s; animation-duration: 19s; }
.lp-zq-bg i:nth-child(3) { left: 40%; bottom: -160px; background: radial-gradient(circle, rgba(95, 184, 255, 0.18), transparent 65%); animation-delay: -9s; animation-duration: 22s; }
@keyframes lp-zq-float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 25px) scale(0.95); } }

.lp-zq-head { max-width: 860px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lp-zq-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--zv-gold-light); border: 1px solid rgba(var(--gold-rgb), 0.45); background: linear-gradient(120deg, rgba(var(--gold-rgb), 0.16), rgba(0, 200, 150, 0.08)); box-shadow: 0 0 30px -10px rgba(var(--gold-rgb), 0.7); }
.lp-zq-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.6); animation: lp-zq-ping 1.8s infinite; }
@keyframes lp-zq-ping { 0% { box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(0, 200, 150, 0); } }
.lp-zq-head h2 { margin: 6px 0 4px; display: flex; flex-direction: column; gap: 4px; line-height: 1.08; }
.lp-zq-l1 { font-weight: 300; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(28px, 4.4vw, 54px); }
.lp-zq-l2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 4.8vw, 60px); letter-spacing: -0.01em;
  background: linear-gradient(100deg, #F4EBD0 0%, var(--zv-gold-light) 25%, var(--gold) 45%, #00C896 70%, var(--zv-gold-light) 100%); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: lp-zq-shine 7s linear infinite; }
@keyframes lp-zq-shine { to { background-position: 220% center; } }
.lp-zq-head p { margin: 0; max-width: 720px; line-height: 1.7; font-size: 16px; }
.lp-zq-head p.muted { font-size: 15px; }

.lp-zq-marquee { margin: 34px auto 38px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lp-zq-track { display: flex; width: max-content; animation: lp-zq-scroll 32s linear infinite; }
.lp-zq-marquee:hover .lp-zq-track { animation-play-state: paused; }
.lp-zq-run { display: flex; gap: 12px; padding-right: 12px; }
.lp-zq-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; white-space: nowrap; font-weight: 600; font-size: 14px; color: var(--text); background: rgba(13, 15, 14, 0.8); border: 1px solid var(--line-2); }
.lp-zq-chip svg { color: var(--zv-gold-light); }
.lp-zq-chip:nth-child(3n + 2) svg { color: var(--up); }
@keyframes lp-zq-scroll { to { transform: translateX(-50%); } }

.lp-zq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-gap: 28px; gap: 28px; align-items: stretch; }
.lp-zq-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-zq-card { position: relative; flex: 1 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 16px; gap: 16px; align-items: center; padding: 20px 20px 20px 18px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, rgba(244, 235, 208, 0.045), rgba(10, 12, 11, 0.9)), var(--panel); border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(22px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s), border-color .3s, box-shadow .3s; }
.lp-zq.in .lp-zq-card { opacity: 1; transform: none; }
.lp-zq-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(244, 235, 208, 0.07) 50%, transparent 65%); transform: translateX(-100%); pointer-events: none; }
.lp-zq-card:hover { border-color: rgba(var(--gold-rgb), 0.55); box-shadow: 0 18px 40px -22px rgba(var(--gold-rgb), 0.8); }
.lp-zq-card:hover::after { animation: lp-zq-sweep 1.1s ease; }
@keyframes lp-zq-sweep { to { transform: translateX(100%); } }
.lp-zq-card.hot { border-color: rgba(0, 200, 150, 0.45); background: linear-gradient(160deg, rgba(0, 200, 150, 0.1), rgba(10, 12, 11, 0.92)), var(--panel); }
.lp-zq-num { align-self: start; min-width: 2ch; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(var(--gold-rgb), 0.7); }
.lp-zq-card.hot .lp-zq-num { -webkit-text-stroke-color: rgba(0, 200, 150, 0.8); }
.lp-zq-card-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lp-zq-card-b b { font-family: var(--f-display); font-size: 16.5px; line-height: 1.3; }
.lp-zq-card-b span { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.lp-zq-visual { width: 92px; height: 92px; flex: none; display: grid; place-items: center; border-radius: 18px; background: rgba(5, 7, 6, 0.6); border: 1px solid var(--line-2); position: relative; }
.lp-zq-amount { align-content: center; gap: 0; }
.lp-zq-amount small { line-height: 1.2; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.lp-zq-amount b { font-size: 26px; color: var(--zv-gold-light); animation: lp-zq-pop .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes lp-zq-pop { from { transform: translateY(10px) scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
.lp-zq-stack { display: flex; gap: 3px; margin-top: 4px; justify-content: center; }
.lp-zq-stack i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: lp-zq-bounce 1.4s ease-in-out infinite; }
.lp-zq-stack i:nth-child(2) { animation-delay: .15s; background: var(--up); }
.lp-zq-stack i:nth-child(3) { animation-delay: .3s; }
@keyframes lp-zq-bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-5px); opacity: 1; } }
.lp-zq-ring { width: 80px; height: 80px; }
.lp-zq-ring-n { font-family: var(--f-display); font-weight: 800; font-size: 15px; fill: var(--up); }
.lp-zq-create { align-content: center; gap: 4px; }
.lp-zq-q { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 22px; color: #0a0a0a; background: var(--g-gold, linear-gradient(135deg, #F4EBD0, #D4AF37)); animation: lp-zq-tilt 3.2s ease-in-out infinite; box-shadow: 0 8px 22px -8px rgba(var(--gold-rgb), 0.9); }
@keyframes lp-zq-tilt { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-3px); } }
.lp-zq-create b { font-size: 15px; color: #5FB8FF; }

.lp-zq-board { opacity: 0; transform: translateY(22px); transition: opacity .8s ease .3s, transform .8s cubic-bezier(.2,.8,.2,1) .3s; }
.lp-zq.in .lp-zq-board { opacity: 1; transform: none; }
.lp-zq-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

@media (max-width: 1000px) {
  .lp-zq-grid { grid-template-columns: 1fr; }
  .lp-zm-list li.spot .lp-zm-item { transform: none; }
}
@media (max-width: 560px) {
  .lp-zq { padding-top: 46px; padding-bottom: 46px; }
  .lp-zq-card { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; gap: 12px; }
  .lp-zq-num { grid-column: 1 / -1; font-size: 26px; }
  .lp-zq-visual { width: 74px; height: 74px; }
  .lp-zq-ring { width: 64px; height: 64px; }
  .lp-zq-head p { font-size: 15px; }
  .lp-zq-cta .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-zq-bg i, .lp-zq-dot, .lp-zq-l2, .lp-zq-track, .lp-zq-stack i, .lp-zq-q, .lp-zq-amount b { animation: none; }
  .lp-zq-card, .lp-zq-board { opacity: 1; transform: none; transition: none; }
}
.lp-zq-amount .lp-zq-unit { font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }

.wd-source-min { margin-top: 2px; font-weight: 600; color: var(--zv-gold-light); }
.plan-fee { font-size: 11px; color: var(--zv-gold-light); opacity: .85; }
/* Pago trimestral del robot (detalle del paquete) */
.pkg-q { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid rgba(0, 200, 150, 0.35); background: rgba(0, 200, 150, 0.06); }
.pkg-q.warn { border-color: rgba(var(--gold-rgb), 0.5); background: rgba(var(--gold-rgb), 0.07); }
.pkg-q.bad { border-color: rgba(255, 92, 92, 0.5); background: rgba(255, 92, 92, 0.07); }
.pkg-q-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 10px; gap: 10px; align-items: center; }
.pkg-q-h > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pkg-q-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 200, 150, 0.14); color: var(--up); }
.pkg-q.warn .pkg-q-ic { background: rgba(var(--gold-rgb), 0.15); color: var(--zv-gold-light); }
.pkg-q.bad .pkg-q-ic { background: rgba(255, 92, 92, 0.14); color: var(--down); }
.pkg-q-fee { font-weight: 700; }
.pkg-q-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--down); white-space: nowrap; }
/* Niveles que cobras (referidos) */
.ref-q { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; border-color: rgba(0, 200, 150, 0.35); background: linear-gradient(150deg, rgba(0, 200, 150, 0.08), rgba(10, 12, 11, 0.9)), var(--panel); }
.ref-q.none, .ref-q.expired { border-color: rgba(var(--gold-rgb), 0.5); background: linear-gradient(150deg, rgba(var(--gold-rgb), 0.1), rgba(10, 12, 11, 0.9)), var(--panel); }
.ref-q.expired { border-color: rgba(255, 92, 92, 0.5); }
.ref-q-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 14px; gap: 14px; align-items: center; }
.ref-q-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 200, 150, 0.15); color: var(--up); }
.ref-q.none .ref-q-ic { background: rgba(var(--gold-rgb), 0.15); color: var(--zv-gold-light); }
.ref-q.expired .ref-q-ic { background: rgba(255, 92, 92, 0.14); color: var(--down); }
.ref-q-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ref-q-txt b { font-family: var(--f-display); font-size: 15.5px; }
.ref-q-txt span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ref-q-levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-gap: 6px; gap: 6px; }
.ref-q-levels li { height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--faint); background: var(--panel-2); border: 1px dashed var(--line-2); }
.ref-q-levels li.on { color: #06150f; background: linear-gradient(135deg, #00C896, #5fe0bd); border: 0; }
.ref-lvl.locked .ref-lvl-n { opacity: 0.55; }
.ref-lvl-pct.lock { display: inline-flex; align-items: center; gap: 3px; padding: 4px 7px; font-size: 12px; white-space: nowrap; background: var(--panel-2); color: var(--faint); text-decoration: line-through; }
@media (max-width: 640px) {
  .ref-q-main { grid-template-columns: auto minmax(0, 1fr); }
  .ref-q-cta { grid-column: 1 / -1; justify-content: center; }
  .ref-q-levels { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* Modal de arbitraje manual */
.arb-wallets { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; gap: 8px; }
.arb-wallets button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.arb-wallets button b { font-size: 16px; }
.arb-wallets button.on { border-color: rgba(var(--gold-rgb), 0.6); background: rgba(var(--gold-rgb), 0.08); box-shadow: 0 0 0 1px rgba(var(--gold-rgb), 0.25) inset; }
.arb-calc { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid rgba(0, 200, 150, 0.4); background: rgba(0, 200, 150, 0.06); }
.arb-calc.loss { border-color: rgba(255, 92, 92, 0.45); background: rgba(255, 92, 92, 0.06); }
.arb-calc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.arb-calc-h b { font-family: var(--f-display); font-size: 14px; color: var(--up); }
.arb-calc.loss .arb-calc-h b { color: var(--down); }
.arb-calc .kv { margin: 0; }
.arb-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--zv-gold-light); animation: arb-spin .8s linear infinite; }
@keyframes arb-spin { to { transform: rotate(360deg); } }
/* Páginas públicas de predicciones (/predicciones) */
.pub { min-height: 100vh; }
.pub-top { position: relative; }
.pub-main { max-width: 1280px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 56px) 60px; display: flex; flex-direction: column; gap: 18px; }
.pub-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 10px 0 6px; }
.pub-head h1 { margin: 0; font-weight: 300; text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.15; }
.pub-head h1 .text-gold { font-weight: 700; text-transform: none; letter-spacing: 0; }
.pub-head p { margin: 0; }
.pm-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-share { position: relative; }
.pm-share-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; gap: 4px; min-width: 220px; padding: 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7); }
.pm-share-pop a, .pm-share-pop button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none; }
.pm-share-pop a:hover, .pm-share-pop button:hover { background: var(--panel-2); text-decoration: none; }
.pm-share-pop .faint { padding: 4px 10px 2px; line-height: 1.4; }
.lp-zq-all { display: inline-flex; align-items: center; gap: 6px; margin: 12px 4px 0; font-weight: 600; color: var(--zv-gold-light); }

/* Stablecoins (depósito y retiro) */
.coin-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.coin-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .35); background: var(--accent-soft); color: var(--muted); font-size: 13px; }
.coin-chips b { color: var(--accent); font-family: var(--f-display); }
.coin-pick { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; }
.coin-pick button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; text-align: left; }
.coin-pick button b { font-family: var(--f-display); font-size: 16px; }
.coin-pick button.active { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 1px rgba(var(--gold-rgb), .35) inset; }

/* Detalle de un arbitraje */
tr.row-click { cursor: pointer; }
tr.row-click:hover td { background: rgba(var(--gold-rgb), 0.05); }
tr.row-click:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.arb-d-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.arb-d-top > div { display: flex; flex-direction: column; gap: 2px; }
.arb-d-asset { font-family: var(--f-display); font-size: 22px; }
.arb-d-route { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; grid-gap: 10px; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.arb-d-route > div { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.arb-d-route b { font-family: var(--f-display); font-size: 16px; }
.arb-d-arrow { position: relative; }
.arb-d-arrow span { font-family: var(--f-mono, monospace); font-size: 12px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 999px; padding: 2px 8px; margin-bottom: 6px; }
.arb-d-arrow i { display: block; width: 100%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--gold)); position: relative; }
.arb-d-arrow i::after { content: ''; position: absolute; right: -1px; top: -4px; border-left: 8px solid var(--gold); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.arb-d-split { display: flex; flex-direction: column; gap: 6px; }
.arb-d-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; }
.arb-d-bar i { display: block; height: 100%; }
.arb-d-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); }
.arb-d-legend span { display: inline-flex; align-items: center; gap: 6px; }
.arb-d-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.arb-d-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; gap: 8px; }
.arb-d-steps li { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); }
.arb-d-steps li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); }
.arb-d-steps li.on { border-color: rgba(var(--accent-rgb), .4); color: var(--text); }
.arb-d-steps li.on i { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 520px) { .arb-d-route { grid-template-columns: 1fr; } .arb-d-arrow { padding: 4px 30%; } .arb-d-steps { grid-template-columns: 1fr; } }

/* Dashboard: enlace de referido */
.dash-invite { display: grid; grid-template-columns: auto minmax(160px, 0.8fr) minmax(0, 1.4fr) auto; align-items: center; grid-gap: 14px; gap: 14px; padding: 14px 18px; margin-bottom: 18px; border-radius: 16px; border: 1px solid rgba(var(--gold-rgb), 0.3); background: radial-gradient(120% 160% at 0% 0%, rgba(var(--gold-rgb), 0.12), transparent 55%), radial-gradient(120% 160% at 100% 100%, rgba(var(--accent-rgb), 0.1), transparent 55%), var(--panel); }
.dash-invite-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.dash-invite-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-invite-txt b { font-family: var(--f-display); }
.dash-invite-link { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 6px 6px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); }
.dash-invite-link .mono { flex: 1 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--accent); }
.dash-invite-share { display: flex; gap: 6px; }
@media (max-width: 1100px) { .dash-invite { grid-template-columns: auto 1fr; } .dash-invite-link, .dash-invite-share { grid-column: 1 / -1; } }
.as-facts dt { flex: none; } .as-facts dd { text-align: right; overflow-wrap: normal; word-break: normal; }
.net-pick button.maint { border-style: dashed; opacity: 0.85; }
.net-maint { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 600; }
.wd-source-freq { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); margin-top: 2px; }
.wd-source-freq.off { color: var(--gold); }
.wd-source button.blocked { opacity: 0.7; cursor: not-allowed; }
/* Referidos: % directo y residual por nivel */
.ref-ladder-head, .ref-lvl { grid-template-columns: 40px minmax(0, 1fr) 118px 80px; }
.ref-pct-head { display: flex; justify-content: flex-end; gap: 10px; }
.ref-pct-head b { font-weight: 600; width: 50px; text-align: right; }
.ref-pct-head b:last-child { color: var(--accent); }
.ref-lvl-pct { display: inline-flex; align-items: center; gap: 4px; }
.ref-pct-pair { display: inline-flex; gap: 10px; }
.ref-pct-pair b { width: 44px; text-align: right; }
.ref-pct-pair b.res { color: var(--accent); }
@media (max-width: 700px) {
  .ref-ladder-head, .ref-lvl { grid-template-columns: 36px minmax(0, 1fr) 100px 62px; }
  .ref-pct-head b, .ref-pct-pair b { width: 40px; font-size: 11.5px; }
  .ref-pct-pair { gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════════
   ZQ CHALLENGER — marco de la app (barra superior + pestañas móviles)
   ═══════════════════════════════════════════════════════════════ */
.zc { position: relative; min-height: 100vh; display: flex; flex-direction: column; background: var(--zv-black); }
.zc-art { position: fixed; inset: 0; pointer-events: none; opacity: 0.7; z-index: 0; }
.zc-top {
  position: -webkit-sticky;
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(16px, 3vw, 40px); background: rgba(10, 10, 10, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.zc-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.zc-brand:hover { text-decoration: none; }
.zc-badge {
  font-family: var(--f-display); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; color: var(--zv-gold-light);
  padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(var(--gold-rgb), 0.35); background: var(--gold-soft); white-space: nowrap;
}
.zc-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.zc-nav a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--muted);
  font-size: 14px; font-weight: 500; transition: color .15s, background .15s;
}
.zc-nav a:hover { color: var(--text); background: rgba(244, 235, 208, 0.04); text-decoration: none; }
.zc-nav a.on { color: var(--text); background: rgba(var(--gold-rgb), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.28); }
.zc-nav a.on .icon { color: var(--gold); }
.zc-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.zc-balance .icon { color: var(--accent); }
.zc-main { position: relative; z-index: 1; flex: 1 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 22px clamp(16px, 3vw, 40px) 40px; }
.zc-foot { position: relative; z-index: 1; padding: 18px clamp(16px, 3vw, 40px) 26px; border-top: 1px solid var(--line); text-align: center; }
.zc-tabs { display: none; }
.zc-head { margin-bottom: 18px; }
.zc-narrow { max-width: 520px; }
.zc-account { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.zc-account > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.zc-account b { font-size: 16px; }

@media (max-width: 960px) {
  .zc-nav { display: none; }
  .zc-badge { display: none; }
  .zc-top { gap: 10px; }
  .zc-main { padding-bottom: 96px; }
  .zc-foot { padding-bottom: 92px; }
  .zc-tabs {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(13, 15, 14, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .zc-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: 10px; color: var(--faint); font-size: 11px; }
  .zc-tabs a:hover { text-decoration: none; }
  .zc-tabs a.on { color: var(--zv-gold-light); background: rgba(var(--gold-rgb), 0.08); }
}
@media (max-width: 520px) {
  .zc-balance .muted { display: none; }
  .zc-actions .btn-ghost { display: none; }
}

/* ── Tarjetas: botón Participar ── */
.pm-join { margin-top: 2px; }

/* ── Boleto: una sola wallet y aviso de faltante ── */
.pm-wallet-one {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border-radius: 11px;
  border: 1px solid rgba(var(--accent-rgb), 0.35); background: var(--accent-soft);
}
.pm-wallet-one span { display: inline-flex; align-items: center; gap: 6px; }
.pm-wallet-one b { font-size: 16px; }
.pm-short {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(232, 180, 74, 0.4); background: var(--warn-soft);
}
.pm-short-ic { color: var(--warn); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(232, 180, 74, 0.16); flex-shrink: 0; }
.pm-short > div { display: flex; flex-direction: column; gap: 3px; }
.pm-short b { color: var(--warn); }

/* ═══ Depósito Web3 ═══ */
.w3-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 6px; gap: 6px; }
.w3-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); text-align: center; }
.w3-steps li > span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted);
}
.w3-steps li.on { color: var(--text); }
.w3-steps li.on > span { border-color: var(--gold); color: var(--gold-ink); background: var(--g-gold); }
.w3-steps li.done > span { border-color: rgba(var(--accent-rgb), 0.6); color: var(--accent); background: var(--accent-soft); }
.w3-need { display: grid; grid-gap: 1px; gap: 1px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.w3-need > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--panel-2); font-size: 14px; }
.w3-need > div span { color: var(--muted); }
.w3-need .w3-need-miss { background: var(--warn-soft); }
.w3-need .w3-need-miss span, .w3-need .w3-need-miss b { color: var(--warn); font-weight: 600; }
.w3-amount { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid rgba(var(--gold-rgb), 0.3); background: rgba(var(--gold-rgb), 0.05); }
.w3-tokens { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; gap: 8px; }
.w3-tokens button {
  display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit;
}
.w3-tokens button.on { border-color: rgba(var(--accent-rgb), 0.6); background: var(--accent-soft); }
.w3-nowallet { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); }
.w3-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.w3-or::before, .w3-or::after { content: ''; flex: 1 1; height: 1px; background: var(--line); }
.w3-wait { align-items: center; text-align: center; padding: 10px 0; }
.w3-spin { width: 34px; height: 34px; border-width: 3px; }
@media (max-width: 560px) {
  .w3 .pay { grid-template-columns: 1fr; justify-items: center; }
  .w3 .pay .stack { width: 100%; }
}
.zc-flag { display: inline-flex; align-items: center; gap: 6px; }
.zc-warn { color: var(--warn); }

/* ═══ Zona Wallet ═══ */
.zc-circle .icon { color: var(--gold); }
.zw-cards { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 16px; gap: 16px; }
.zw-card {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 16px; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.09), var(--panel) 60%);
}
.zw-card.zw-circle { background: linear-gradient(160deg, rgba(var(--gold-rgb), 0.12), var(--panel) 60%); border-color: rgba(var(--gold-rgb), 0.3); }
.zw-card header { display: flex; align-items: center; gap: 10px; }
.zw-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.zw-circle .zw-ic { background: var(--gold-soft); color: var(--gold); }
.zw-amount { font-family: var(--f-display); font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.zw-circle .zw-amount { color: var(--zv-gold-light); }
.pm-pay-from button .icon { vertical-align: -2px; }
@media (max-width: 960px) {
  .zc-tabs { grid-template-columns: repeat(5, 1fr); }
  .zc-circle { display: none; }
}
@media (max-width: 700px) { .zw-cards { grid-template-columns: 1fr; } }
/* Barra superior compacta en pantallas medianas (dos saldos + menú) */
@media (max-width: 1360px) {
  .zc-badge { display: none; }
  .zc-balance .muted { display: none; }
  .zc-top { gap: 12px; }
  .zc-nav { margin-left: 0; }
}
@media (max-width: 1180px) {
  .zc-nav a { padding: 8px 8px; gap: 5px; font-size: 13.5px; }
  .zc-actions { gap: 8px; }
  .zc-actions .lang-btn .lang-name { display: none; }
}
/* Entre 961 y 1023 px: "Perfil" queda en el avatar (abre el mismo perfil) para que todo quepa */
@media (max-width: 1023px) { .zc-nav a[target="_blank"] { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   ZQ CHALLENGER v2 — estructura de mercado de predicciones
   Negro ZEVIAQ, oro para la marca y lo destacado, esmeralda = Sí, coral = No.
   Sora para preguntas y cifras; Inter para la interfaz.
   ═══════════════════════════════════════════════════════════════ */
.zx { --yes: #00C896; --yes-soft: rgba(0, 200, 150, 0.12); --no: #F6465D; --no-soft: rgba(246, 70, 93, 0.12); }
.zx .zc-art { display: none; }

/* Encabezado */
.zx-top { position: -webkit-sticky; position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 10, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.zx-row { display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 clamp(16px, 3vw, 40px); max-width: 1440px; margin: 0 auto; }
.zx-brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--text); flex-shrink: 0; }
.zx-brand:hover { text-decoration: none; }
.zx-brand .logo { align-self: center; }
.zx-brand-sub { font-family: var(--f-display); font-size: 15px; font-weight: 500; color: var(--zv-gold-light); letter-spacing: 0.01em; }
.zx-search {
  flex: 1 1; max-width: 620px; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px;
  border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); transition: border-color .15s;
}
.zx-search:focus-within { border-color: rgba(var(--gold-rgb), 0.55); }
.zx-search input { flex: 1 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; }
.zx-search input::placeholder { color: var(--faint); }
.zx-search kbd { font: 600 11px var(--f-body); color: var(--faint); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; }
.zx-search-x { border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 4px; }
.zx-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.zx-how-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; padding: 8px 6px; }
.zx-how-btn:hover { color: var(--text); }
.zx-bal { display: flex; gap: 14px; padding: 6px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.zx-bal:hover { text-decoration: none; border-color: var(--line-2); }
.zx-bal > span { display: flex; flex-direction: column; line-height: 1.15; }
.zx-bal small { font-size: 10.5px; color: var(--muted); }
.zx-bal b { font-size: 14px; color: var(--yes); }
.zx-bal .zx-bal-circle b { color: var(--zv-gold-light); }
.zx-avatar { cursor: pointer; padding: 0; }
.zx-burger { width: 40px; height: 40px; }

/* Menú de la cuenta */
.zx-menu { position: relative; }
.zx-menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 264px; padding: 6px; border-radius: 14px; z-index: 40;
  background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.zx-menu-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 8px; }
.zx-menu-pop a, .zx-menu-pop > button {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--text); font: inherit; font-size: 14px;
  border: 0; background: none; cursor: pointer; text-align: left;
}
.zx-menu-pop a:hover, .zx-menu-pop > button:hover { background: rgba(244, 235, 208, 0.05); text-decoration: none; }
.zx-menu-pop .icon { color: var(--muted); }
.zx-menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.zx-menu-lang { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; }

/* Barra de categorías */
.zx-cats { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); height: 46px; }
.zx-cats-in { display: flex; align-items: center; gap: 4px; height: 100%; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.zx-cats-in::-webkit-scrollbar { display: none; }
.zx-cats a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px; white-space: nowrap;
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.zx-cats a:hover { color: var(--text); text-decoration: none; }
.zx-cats a.on { color: var(--text); }
.zx-cats a.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); }
.zx-cats a.on .icon { color: var(--gold); }
.zx-cats-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 8px; flex-shrink: 0; }
.zx-main { padding-top: 24px; }

/* Cómo funciona */
.zx-how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.zx-how li { display: grid; grid-template-columns: 34px 1fr; grid-gap: 14px; gap: 14px; align-items: start; }
.zx-how-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; color: var(--gold-ink); background: var(--g-gold); }
.zx-how b { display: block; margin-bottom: 3px; }

/* Aviso de cuenta */
.gate { display: flex; flex-direction: column; gap: 12px; }

/* ── Inicio ── */
.ex-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 0 14px; }
.ex-title { margin: 0; font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.ex-tools { display: flex; align-items: center; gap: 10px; }
.ex-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.ex-seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.ex-seg button.on { background: var(--panel-3); color: var(--text); }
.ex-sort { width: auto; height: 36px; font-size: 13px; }
.ex-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.ex-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); }
.ex-chip:hover { text-decoration: none; border-color: rgba(var(--gold-rgb), 0.5); }

/* ── Tarjetas ── */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); grid-gap: 14px; gap: 14px; }
.mk {
  display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 10px; min-height: 186px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); transition: border-color .15s;
}
.mk:hover { border-color: var(--line-2); }
.mk-closed { opacity: 0.86; }
.mk-h { display: grid; grid-template-columns: 38px 1fr auto; grid-gap: 11px; gap: 11px; align-items: start; }
.mk-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.mk-q {
  font-family: var(--f-display); font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mk-q:hover { text-decoration: none; color: var(--zv-gold-light); }
.mk-chance { position: relative; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.mk-chance svg { display: block; }
.mk-chance-bg { fill: none; stroke: var(--line-2); stroke-width: 5; stroke-linecap: round; }
.mk-chance-fg { fill: none; stroke: var(--yes); stroke-width: 5; stroke-linecap: round; }
.mk-chance b { font-family: var(--f-display); font-size: 15px; font-weight: 600; margin-top: -14px; line-height: 1; }
.mk-yn { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; gap: 8px; margin-top: auto; }
.mk-yn button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 48px; border-radius: 10px;
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .15s, color .15s;
}
.mk-yn small { font-size: 11px; font-weight: 500; opacity: 0.8; }
.mk-yes { background: var(--yes-soft); color: var(--yes); }
.mk-no { background: var(--no-soft); color: var(--no); }
.mk-yes:hover:not(:disabled) { background: var(--yes); color: #04140F; }
.mk-no:hover:not(:disabled) { background: var(--no); color: #fff; }
.mk-yn button:disabled { opacity: 0.45; cursor: not-allowed; }
.mk-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.mk-rows li { display: grid; grid-template-columns: 8px 1fr auto auto; grid-gap: 10px; gap: 10px; align-items: center; min-height: 30px; }
.mk-rows i { width: 8px; height: 8px; border-radius: 50%; }
.mk-row-l { color: var(--text); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-rows b { font-family: var(--f-display); font-size: 14px; font-weight: 600; }
.mk-mini { border: 0; border-radius: 7px; padding: 5px 11px; background: var(--yes-soft); color: var(--yes); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mk-mini:hover { background: var(--yes); color: #04140F; }
.mk-more { font-size: 12.5px; }
.mk-more a { color: var(--muted); }
.mk-won { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 11px 12px; border-radius: 10px; background: var(--up-soft); color: var(--up); font-size: 13.5px; }
.mk-f { display: flex; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.mk-f b { color: var(--text); font-weight: 600; }
.mk-f > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mk-soon { color: var(--warn); }
.mk-in { color: var(--yes); }
.mk-save { margin-left: auto; border: 0; background: none; color: var(--faint); cursor: pointer; padding: 4px; border-radius: 6px; display: grid; place-items: center; }
.mk-save:hover { color: var(--text); }
.mk-save.on { color: var(--gold); }
.mk-save.on svg path { fill: currentColor; }

/* ── Destacado ── */
.ft { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-gap: 16px; gap: 16px; margin-bottom: 30px; }
.ft-main {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px 26px 20px; border-radius: 18px;
  background: var(--panel); border: 1px solid rgba(var(--gold-rgb), 0.28);
}
.ft-main::before { content: ''; position: absolute; left: 26px; right: 26px; top: -1px; height: 2px; background: var(--g-gold); border-radius: 2px; }
.ft-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.ft-cat { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 500; }
.ft-clock { display: inline-flex; align-items: center; gap: 6px; }
.ft-clock b { color: var(--zv-gold-light); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; font-family: var(--f-display); font-weight: 600; }
.ft-meta .mk-save { margin-left: auto; }
.ft-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ft-q { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--text); max-width: 26ch; }
.ft-q:hover { text-decoration: none; color: var(--zv-gold-light); }
.ft-head .mk-chance b { font-size: 24px; margin-top: -22px; }
.ft-split { display: flex; gap: 3px; height: 10px; border-radius: 6px; overflow: hidden; background: var(--line); }
.ft-split span { height: 100%; }
.ft-opts { list-style: none; margin: 0; padding: 0; }
.ft-opts li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto auto; grid-gap: 14px; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.ft-opts i { width: 10px; height: 10px; border-radius: 50%; }
.ft-opt-l { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-opt-p { font-family: var(--f-display); font-size: 19px; font-weight: 600; min-width: 52px; text-align: right; }
.ft-opt-pay { font-size: 12.5px; color: var(--muted); }
.ft-go { background: var(--yes-soft); color: var(--yes); border: 0; }
.ft-go:hover:not(:disabled) { background: var(--yes); color: #04140F; }
.ft-foot { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); }
.ft-foot b { color: var(--text); }
.ft-more { margin-left: auto; font-weight: 500; }
.ft-side { padding: 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.ft-side h2 { margin: 0 0 12px; font-family: var(--f-display); font-size: 15px; font-weight: 600; }
.ft-side ol { list-style: none; margin: 0; padding: 0; counter-reset: rk; }
.ft-side li { counter-increment: rk; border-top: 1px solid var(--line); }
.ft-side li:first-child { border-top: 0; }
.ft-side a { display: grid; grid-template-columns: 22px 1fr; grid-gap: 4px 10px; gap: 4px 10px; padding: 11px 0; color: var(--text); }
.ft-side a::before { content: counter(rk); grid-row: span 2; font-family: var(--f-display); font-weight: 600; color: var(--faint); font-size: 14px; }
.ft-side a:hover { text-decoration: none; }
.ft-side a:hover .ft-side-q { color: var(--zv-gold-light); }
.ft-side-q { font-size: 13.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ft-side-meta { display: flex; gap: 10px; font-size: 12.5px; }
.ft-side-meta b { color: var(--yes); font-weight: 600; }

/* ── Boleto rápido ── */
.qt-title { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qt { display: flex; flex-direction: column; gap: 10px; }
.qt .pm-slip { border: 0; background: none; box-shadow: none; position: static; }
.qt .pm-slip > .card-h { display: none; }
.qt .pm-slip > .card-b { padding: 0; }
.qt-more { align-self: center; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 1180px) {
  .zx-how-btn { display: none; }
  .ft { grid-template-columns: 1fr; }
  .ft-side ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column-gap: 20px; column-gap: 20px; }
  .ft-side li:nth-child(2) { border-top: 0; }
}
@media (max-width: 960px) {
  .zx-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .zx-search { order: 3; flex-basis: 100%; max-width: none; height: 40px; }
  .zx-search kbd { display: none; }
  .zx-create span { display: none; }
  .zx-create { padding: 0 10px; }
  .zx-bal { gap: 10px; padding: 5px 10px; }
  .zc-tabs { grid-template-columns: repeat(4, 1fr); }
  .ft-main { padding: 18px 16px 16px; }
  .ft-main::before { left: 16px; right: 16px; }
  .ft-opts li { grid-template-columns: 10px minmax(0, 1fr) auto auto; }
  .ft-opt-pay { display: none; }
  .ft-side ol { grid-template-columns: 1fr; }
  .ft-side li:nth-child(2) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .zx-bal small { display: none; }
  .zx-actions .btn-ghost { display: none; }
  .ex-tools { width: 100%; }
  .ex-sort { flex: 1 1; }
  .mk-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .mk, .mk-yn button, .zx-search { transition: none; } }
.ft-foot { margin-top: auto; }
.ft-yn { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }
.ft-yn button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 76px; border-radius: 14px;
  border: 0; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
.ft-yn button b { font-family: var(--f-display); font-size: 21px; margin-left: 6px; }
.ft-yn small { font-size: 12.5px; font-weight: 500; opacity: 0.85; }
.ft-yn .mk-yes { background: var(--yes-soft); color: var(--yes); }
.ft-yn .mk-no { background: var(--no-soft); color: var(--no); }
.ft-yn button:disabled { opacity: 0.45; cursor: not-allowed; }
.zx-main { max-width: 1440px; padding-left: clamp(16px, 3vw, 40px); padding-right: clamp(16px, 3vw, 40px); }
.ft-desc { margin: -6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 68ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ft-foot { align-items: flex-end; }
.ft-stats { display: flex; gap: 28px; margin: 0; }
.ft-stats dt { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.ft-stats dd { margin: 0; font-family: var(--f-display); font-size: 18px; font-weight: 600; color: var(--text); }
@media (max-width: 520px) { .ft-stats { gap: 18px; } .ft-stats dd { font-size: 16px; } .ft-foot { flex-wrap: wrap; } }

/* ── Boleto con estilo de trading ── */
.pm-amt { display: flex; flex-direction: column; gap: 8px; }
.pm-amt label { font-size: 13px; color: var(--muted); font-weight: 500; }
.pm-amt-in {
  display: flex; align-items: baseline; gap: 4px; padding: 6px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2);
  font-family: var(--f-display); transition: border-color .15s;
}
.pm-amt-in:focus-within { border-color: rgba(var(--gold-rgb), 0.6); }
.pm-amt-in span { font-size: 26px; font-weight: 500; color: var(--muted); }
.pm-amt-in input { flex: 1 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 600 32px var(--f-display); padding: 0; }
.pm-amt-quick { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 6px; gap: 6px; }
.pm-amt-quick button { border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); border-radius: 8px; padding: 7px 0; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pm-amt-quick button:hover { border-color: rgba(var(--gold-rgb), 0.5); }
.pm-win { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--up-soft); }
.pm-win span { color: var(--muted); font-size: 13.5px; }
.pm-win b { font-family: var(--f-display); font-size: 26px; font-weight: 600; color: var(--up); }
.pm-costs { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); padding: 0 2px; }
.pm-costs b { color: var(--text); font-weight: 600; margin-left: 4px; }

/* ── Detalle de la pregunta ── */
.zx .pm-slip { top: 128px; }
.pm-title { display: flex; align-items: center; gap: 14px; }
.pm-title-ic { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }
.zx .pm-question { margin: 0; font-family: var(--f-display); font-size: clamp(21px, 2.2vw, 28px); font-weight: 600; line-height: 1.22; letter-spacing: -0.015em; }
.zx .pm-head-kpis { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.zx .pm-head-kpis > div { padding: 0; border: 0; background: none; min-width: 0; }
.zx .pm-head-kpis span { font-size: 12px; }
.zx .pm-head-kpis b { font-family: var(--f-display); font-size: 17px; }
.zx .pm-detail-top .mk-save { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 10px; }
@media (max-width: 600px) { .pm-title-ic { width: 44px; height: 44px; } }
.zx-menu-create { display: none !important; }
@media (max-width: 520px) {
  .zx-row { column-gap: 10px; }
  .zx-brand-sub { display: none; }
  .zx-create { display: none; }
  .zx-menu-create { display: flex !important; }
  .zx-bal { gap: 8px; padding: 5px 9px; }
  .zx-bal b { font-size: 13px; }
  .zx .pm-row-right .small { display: none; }
  .zx .pm-row-label .small { font-size: 12px; }
}
.ft { align-items: start; }

