/* Niebla VPN · estilos de la web. Oscuro técnico: cian = protegido, naranja = desprotegido. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-variable.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0B0E11;
  --surface: #12171C;
  --surface-2: #1A2027;
  --line: #26303A;
  --line-2: #2E3944;
  --text: #E9EEF2;
  --muted: #A3AFBA;
  --muted-2: #8D99A5;
  --cyan: #67E8F9;
  --cyan-soft: rgba(103, 232, 249, 0.12);
  --cyan-ink: #03171B;
  --orange: #FF9F5A;
  --orange-text: #FFB27D;
  --orange-soft: rgba(255, 159, 90, 0.10);
  --orange-line: rgba(255, 159, 90, 0.35);
  /* Dentro de una tarjeta: el pozo de la IP, de las filas y de los campos (docs/red-privada.md §0, mockup aprobado). */
  --well: #0E1216;
  --well-line: #222B34;
  --dim: #5B6773;
  --ring: #3A4652;
  /* Los dispositivos extra, un cian más oscuro que los incluidos. */
  --cyan-2: #3FB8C9;
  --red-text: #FCA5A5;
  --red-line: rgba(248, 113, 113, 0.35);
  /* Esqueletos de carga: el bloque y el brillo que pasa por encima. */
  --sk: var(--surface-2);
  --sk-shine: #262F39;
  --radius: 12px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #A5F3FC; text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
img, svg { display: block; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
/* Listas sin viñetas. Va antes que los componentes para que sus márgenes ganen. */
.plain { list-style: none; margin: 0; padding: 0; }
.mono { font-family: var(--mono); }
/* Textos largos sin espacios (el SHA-256 de descargas): que partan en el móvil en vez de salirse. */
.break-anywhere { overflow-wrap: anywhere; }
/* Órdenes para pegar en una terminal (Descargas, Linux): en el móvil parten en vez de salirse; al copiarlas salen tal cual. */
.terminal { margin: 6px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--well); border: 1px solid var(--well-line); color: var(--text); font: 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.apt-steps { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 14px; }
.apt-keys { margin-top: 6px; display: grid; gap: 4px; }
.apt-keys + p { margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
a.card { display: block; color: var(--text); }
a.card:hover { border-color: var(--line-2); text-decoration: none; color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Aviso de beta ---- */
.beta-banner {
  background: var(--orange-soft);
  border-bottom: 1px solid #4A3A2E;
  color: var(--orange-text);
  font-size: 14px;
  text-align: center;
  padding: 9px 16px;
}

/* ---- Cabecera ---- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(11, 14, 17, 0.92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; }
.brand:hover { color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.inline-form { display: contents; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: 700 15px var(--font); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--cyan); color: var(--cyan-ink); }
.btn-primary:hover { background: #A5F3FC; color: var(--cyan-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--muted-2); color: var(--text); }
.btn-danger { background: transparent; color: var(--orange-text); border-color: #4A3A2E; }
.btn-danger:hover { border-color: var(--orange); color: var(--orange); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* ---- Etiquetas de estado ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.pill-ok { background: var(--cyan-soft); color: var(--cyan); }
.pill-soon { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); }
.pill-warn { background: var(--orange-soft); color: var(--orange-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---- Secciones ---- */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: 34px; font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--cyan); text-transform: uppercase; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; font-weight: 800; }
.card p { margin-top: 8px; color: var(--muted); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---- Botones de una portada de página (crear cuenta); la portada de la web va en inicio.css ---- */
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }

/* ---- Listas de privacidad ---- */
.check-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list svg { color: var(--cyan); flex: none; margin-top: 3px; }
.check-list strong { display: block; }
.check-list span { color: var(--muted); font-size: 14px; }

/* ---- Precio ---- */
.price-card { text-align: left; }
.price-list { margin-top: 20px; }
.price-list li { display: flex; gap: 10px; padding: 7px 0; color: var(--muted); }
.price-list svg { color: var(--cyan); flex: none; margin-top: 4px; }

.meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.meter i { width: 18px; height: 6px; border-radius: 3px; background: var(--line-2); }
.meter[data-level="1"] i:nth-child(-n+1), .meter[data-level="2"] i:nth-child(-n+2), .meter[data-level="3"] i:nth-child(-n+3) { background: var(--cyan); }
.method { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.method:last-child { border-bottom: 0; }
.method p { color: var(--muted); font-size: 14px; margin-top: 2px; }

.option { position: relative; display: grid; gap: 4px; padding: 16px; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.option:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.method-option { cursor: pointer; }
.method-choice { display: flex; gap: 12px; align-items: flex-start; }
.method-choice input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cyan); flex: none; }
.method-choice > span { display: grid; gap: 2px; }

/* ---- Pie: la marca y tres columnas de enlaces ---- */
.site-footer { padding-top: 48px; color: var(--muted-2); font-size: 14px; border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin-top: 12px; color: var(--muted); max-width: 26em; }
.foot-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .brand { font-size: 17px; }
.foot-bottom { margin-top: 36px; padding-block: 18px 28px; border-top: 1px solid var(--line); }

/* ---- Formularios y alta ---- */
.narrow { max-width: 760px; margin: 0 auto; padding: 56px 16px 88px; }
.page-title { font-size: 34px; font-weight: 800; }
.page-lead { margin-top: 10px; color: var(--muted); font-size: 17px; }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field label { font-weight: 700; font-size: 14px; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 10px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line-2);
  font: 500 18px var(--mono); letter-spacing: 0.06em;
}
.input:focus { outline: none; border-color: var(--cyan); }
.input.is-error { border-color: var(--orange); }
.select { min-height: 44px; padding: 0 12px; border-radius: 10px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); font: 600 15px var(--font); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 15px; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cyan); flex: none; }

.number-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.number-boxes span {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 16px 0; text-align: center; font: 600 28px var(--mono); letter-spacing: 0.08em;
}
.number-boxes.is-hidden span { color: transparent; text-shadow: 0 0 14px rgba(233, 238, 242, 0.55); }
.number-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.alert { border-radius: 10px; padding: 14px 16px; margin-top: 18px; font-size: 15px; display: flex; gap: 12px; }
.alert svg { flex: none; margin-top: 2px; }
.alert-warn { background: var(--orange-soft); border: 1px solid #4A3A2E; color: var(--orange-text); }
.alert-info { background: var(--cyan-soft); border: 1px solid #1F4A52; color: var(--text); }
.alert-error { background: var(--orange-soft); border: 1px solid var(--orange); color: var(--orange-text); }

.stepper { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.stepper li { display: flex; align-items: center; gap: 8px; }
.stepper b { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; }
.stepper .is-current { color: var(--text); font-weight: 700; }
.stepper .is-current b { background: var(--cyan); color: var(--cyan-ink); border-color: var(--cyan); }

/* ---- Panel ---- */
.panel { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.panel-nav { border-right: 1px solid var(--line); padding: 24px 12px; }
.panel-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.panel-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.panel-nav a[aria-current="page"] { color: var(--cyan-ink); background: var(--cyan); }
.panel-nav a[aria-current="page"]:hover { color: var(--cyan-ink); background: #A5F3FC; }
.panel-nav hr { border: 0; border-top: 1px solid var(--line); margin: 14px 4px; }
.panel-nav button { all: unset; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--orange-text); font-weight: 600; cursor: pointer; }
.panel-nav button:hover { background: var(--surface); }
.panel-main { padding: 32px 32px 64px; max-width: 1080px; }
.panel-main h1 { font-size: 28px; font-weight: 800; }
.panel-main > .alert:first-child { margin: 0 0 24px; }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.stat { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.stat-sub { color: var(--muted); font-size: 14px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.progress > i { display: block; height: 100%; background: var(--cyan); width: 0; transition: width 0.4s ease-out; }
.progress.is-empty > i { background: var(--orange); }

.list-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-rows li:last-child { border-bottom: 0; }
/* Resumen: los extras vigentes con su fecha, bajo la barra del tiempo. */
.extras-until { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.extras-until strong { color: var(--text); white-space: nowrap; }
.extras-until li.muted-2 { font-size: 13px; }

.table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td.mono { font-size: 13px; }

.protect { display: flex; align-items: center; gap: 14px; }
.protect-icon { position: relative; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.protect.is-on .protect-icon { background: var(--cyan-soft); color: var(--cyan); }
.protect.is-off .protect-icon { background: var(--orange-soft); color: var(--orange); }
.protect strong { display: block; }

.status-line { margin-top: 12px; min-height: 22px; color: var(--muted); font-size: 14px; }
.status-line.is-error { color: var(--orange-text); }

/* ---- Esqueletos de carga (skeleton.js), como en Facebook o Instagram ----
   Lo que llega de la API se pinta primero como bloques con la forma del contenido, DENTRO de los mismos elementos que luego
   rellena el script: un .sk en línea mide lo mismo que una línea de su texto, así que al llegar los datos no se mueve nada.
   El servidor marca cada zona con aria-busy="true" y un «Cargando…» solo para lectores de pantalla (.sr-only.sk-sr). Los
   bloques no se ven los primeros 120 ms: si la API contesta antes, no hay esqueleto que enseñar. En un contenedor flex o
   grid, el .sk va dentro de un span (si no, pierde la altura de la línea). */
.sk {
  display: inline-block; vertical-align: middle;
  width: 6em; max-width: 100%; height: 0.72em; border-radius: 6px;
  background: var(--sk) linear-gradient(100deg, transparent 40%, var(--sk-shine) 50%, transparent 60%) no-repeat;
  background-size: 200% 100%;
  animation: sk-show 0.2s ease-out 0.12s both, sk-shine 1.4s ease-in-out 0.12s infinite;
  pointer-events: none;
}
.sk-line { width: 100%; }
.sk-title { width: 45%; height: 0.8em; }
.sk-circle { width: 2.5em; height: 2.5em; border-radius: 50%; }
.sk-btn { width: 8.5em; height: 44px; border-radius: 10px; }
.sk-btn.sk-sm { width: 5.5em; height: 36px; }
.sk-btn.sk-lg, .sk-input.sk-lg { height: 52px; }
.sk-icon { width: 44px; height: 44px; border-radius: 10px; }
.sk-input { display: block; width: 100%; height: 44px; border-radius: 10px; }
.sk-box { display: block; width: 100%; height: 96px; border-radius: 12px; }
/* Tapa entera su caja (que tiene que tener position: relative), con sus esquinas. */
.sk-cover { position: absolute; inset: 0; z-index: 1; width: auto; height: auto; max-width: none; border-radius: inherit; }
.sk-w-25 { width: 25%; }
.sk-w-40 { width: 40%; }
.sk-w-60 { width: 60%; }
.sk-w-80 { width: 80%; }
/* En tablas y en cajas que se ajustan a lo que llevan, un ancho fijo: un % no cuenta para el ancho de la columna. */
.sk-4em { width: 4em; }
.sk-8em { width: 8em; }
.sk-12em { width: 12em; }
.sk-16em { width: 16em; }
.sk-22em { width: 22em; }
/* Tarjetas y filas enteras de esqueleto (.sk-card, .sk-row): skeleton.js las quita al llegar los datos. */
.sk-card, .sk-row { pointer-events: none; user-select: none; }
.pill > .sk { width: 3.6em; margin-block: 0.415em; --sk: var(--line-2); --sk-shine: #3C4855; }
@keyframes sk-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes sk-shine { from { background-position: 130% 0; } to { background-position: -30% 0; } }
/* El contenido real entra en el mismo sitio con un fundido corto, solo la primera vez. */
@keyframes sk-in { from { opacity: 0; } to { opacity: 1; } }
.sk-in { animation: sk-in 0.18s ease-out; }
/* Si la carga falla, el esqueleto se cambia por un aviso con «Reintentar». */
.sk-failed .sk, .sk-failed .sk-card, .sk-failed .sk-row, .sk-failed .sk-sr, .sk-failed thead { display: none; }
.sk-fail { align-items: center; flex-wrap: wrap; }
.sk-fail > div { flex: 1 1 16em; }
.sk-fail .btn { flex: none; }
@media (prefers-reduced-motion: reduce) {
  /* Sin brillo ni fundidos: el bloque quieto, y solo si la API tarda más de 120 ms. */
  .sk { animation: sk-show 0s 0.12s both; background-image: none; }
  .sk-in { animation: none; }
  .progress > i { transition: none; }
}

/* ---- Pagos y ayuda (panel) ---- */
/* El esqueleto de una forma de pago: el círculo de la casilla y las tres rayas del anonimato. */
.method-choice > .sk-circle { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.sk-meter { width: 60px; height: 6px; border-radius: 3px; }
.method-option:has(input:disabled) { cursor: default; }
.method-option:has(input:disabled) strong { color: var(--muted); }
.method-note { color: var(--orange-text); }
.method-test { color: var(--cyan); }
.cash { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.cash h3 { font-size: 18px; font-weight: 800; }
.cash-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); }
.cash-code strong { font-size: 20px; letter-spacing: 0.04em; }
.cash-steps { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; color: var(--text); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 16px 0 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); vertical-align: 1px; }
.tag-warn { background: var(--orange-soft); color: var(--orange-text); border-color: #4A3A2E; text-transform: none; letter-spacing: 0; }
.help-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.help-code strong { font-size: 22px; letter-spacing: 0.04em; }

/* ---- Soporte: tickets (panel, /soporte y /soporte/ticket) ---- */
.h-card { font-size: 18px; font-weight: 800; }
.field .hint { color: var(--muted); font-size: 13px; }
/* Textos libres: letra normal, no la monoespaciada de los números. */
.input-text { font: 500 16px var(--font); letter-spacing: 0; }
textarea.input { min-height: 140px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
/* Campo trampa del formulario sin cuenta: fuera de la vista y del lector de pantalla (aria-hidden), sin style= en línea. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.code-boxes { grid-template-columns: auto repeat(3, minmax(0, 1fr)); }
.code-boxes .code-prefix { padding: 16px 14px; color: var(--muted); border-style: dashed; }
.code-boxes.is-hidden .code-prefix { color: var(--muted); text-shadow: none; }
.tag-new { background: var(--cyan-soft); color: var(--cyan); border-color: #1F4A52; text-transform: none; letter-spacing: 0; }
.btn-row .btn + .muted { margin-left: 4px; }
.confirm-box { margin-top: 14px; padding: 14px 16px; border: 1px solid #4A3A2E; border-radius: 10px; background: var(--orange-soft); }
.confirm-box p, .card .confirm-box p { margin-top: 0; color: var(--orange-text); }
.confirm-box .btn-row { margin-top: 12px; }

/* Contador «N/4000» de un texto libre, en la línea de la pista del campo. */
.counter { color: var(--muted-2); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.counter.is-full { color: var(--orange-text); }
.field-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.field > .counter { justify-self: end; }

/* Las tres reglas del ticket, al abrirlo. */
.ticket-rules { display: grid; gap: 10px; margin-top: 22px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.5; color: #C4CDD5; }
.ticket-rules li { display: flex; gap: 10px; }
.ticket-rules li::before { content: "·"; color: var(--cyan); font-weight: 800; }
.ticket-rules strong { color: var(--text); }

/* Panel: la lista de tickets y la conversación, en dos columnas que se apilan cuando no caben. */
.support { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: 24px; align-items: start; }
.support-side { display: grid; gap: 12px; min-width: 0; }
.support-side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.support-side-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; }
.support-side-sub h2 { font-weight: 700; }
.support-side .status-line { margin-top: 0; }
.support-main { min-width: 0; }
.support-empty { border: 1px dashed var(--line-2); border-radius: 14px; padding: 56px 24px; text-align: center; color: var(--muted); }
/* El esqueleto de la conversación: burbujas solo con el borde y el redondel de «N». */
.sk-card .msg .msg-body { background: transparent; border: 1px solid var(--line-2); }
.msg-meta > .sk-circle { width: 28px; height: 28px; flex: none; }

.ticket-cards { display: grid; gap: 10px; }
.ticket-card {
  all: unset; box-sizing: border-box; display: grid; gap: 6px; width: 100%; min-height: 44px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); cursor: pointer;
}
.ticket-card:hover { border-color: var(--muted-2); }
.ticket-card[aria-current="true"] { border-color: var(--cyan); }
.ticket-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ticket-card.is-closed { background: transparent; color: var(--muted); }
.ticket-card.is-closed .ticket-card-subject { color: #C4CDD5; }
.ticket-card-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted-2); }
.ticket-card-top .mono { color: var(--muted); }
.ticket-card-subject { font-size: 16px; overflow-wrap: anywhere; }
.ticket-card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ticket-card-foot .tag { margin-left: 0; }

/* El estado con su punto: naranja = le toca a soporte, cian = le toca al cliente, gris = cerrado. */
.state, .state-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.state.is-wait, .state-pill.is-wait { color: var(--orange-text); }
.is-wait .state-dot { background: var(--orange); }
.state.is-reply, .state-pill.is-reply { color: var(--cyan); }
.state.is-closed, .state-pill.is-closed { color: var(--muted); }
.is-closed .state-dot { background: var(--muted-2); }
.state-pill { gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 700; border: 1px solid var(--line-2); background: var(--surface-2); }
.state-pill.is-wait { border-color: #6B4221; background: #2A1B10; }
.state-pill.is-reply { border-color: #1E4A52; background: #10262B; }

/* La conversación (partials/ticket.twig). */
/* scroll-margin: al bajar hasta ella (móvil), que la cabecera fija no tape el título. */
.ticket-pane { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 0; scroll-margin-top: 80px; }
.narrow > .ticket-pane { margin-top: 28px; }
.tk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.tk-head-main { display: grid; gap: 6px; min-width: 0; }
.tk-head-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ticket-subject { font-size: 24px; font-weight: 800; overflow-wrap: anywhere; }
.ticket-subject:focus { outline: none; }
.ticket-subject:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.tk-confirm { margin: 16px 26px 0; }
.tk-line { margin: 0; padding: 12px 26px 0; }
.tk-line:empty { min-height: 0; padding-top: 0; }

.thread { display: flex; flex-direction: column; gap: 18px; padding: 24px 26px; }
.msg { display: flex; flex-direction: column; gap: 8px; max-width: 78%; min-width: 0; }
.msg-customer { align-self: flex-end; }
.msg-admin { align-self: flex-start; }
.msg-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.msg-customer .msg-meta { justify-content: flex-end; }
.msg-meta strong { color: var(--text); }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--cyan); font-weight: 800; font-size: 13px; }
.msg-body { padding: 14px 16px; font-size: 16px; line-height: 1.6; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-customer .msg-body { background: #10262B; border: 1px solid #1E4A52; border-radius: 14px 14px 4px 14px; }
.msg-admin .msg-body { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px 14px 14px 4px; }
.msg-edit { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.msg-edit-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.msg-edit-note svg { flex: none; }
.btn-edit { color: var(--cyan); font-size: 14px; }
.btn-edit:hover { color: #A5F3FC; }
.msg.is-editing { width: 100%; max-width: 100%; }
.msg.is-editing > .msg-body, .msg.is-editing > .msg-edit { display: none; }
.msg-edit-form { padding: 4px 18px 18px; background: #10262B; border: 1px solid #1E4A52; border-radius: 14px; }
.msg-edit-form .btn-row { margin-top: 8px; justify-content: flex-end; }
.msg-edit-form .status-line:empty, .ticket-form .status-line:empty { min-height: 0; }

.tk-foot { display: grid; gap: 12px; padding: 20px 26px; border-top: 1px solid var(--line); }
.tk-foot > .status-line { margin-top: 0; }
.tk-foot > .status-line:empty { min-height: 0; }
.tk-foot .alert { margin-top: 0; }
.tk-foot .alert:focus { outline: none; }
.turn-lock { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--bg); border: 1px dashed var(--line-2); border-radius: 12px; }
.turn-lock:focus { outline: none; }
.turn-lock:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.turn-lock svg { flex: none; margin-top: 2px; color: var(--muted-2); }
.turn-lock strong { display: block; font-size: 16px; }
.turn-lock-text { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.turn-note { margin-bottom: 12px; color: var(--cyan); font-weight: 700; font-size: 15px; }
#tk-responder .field { margin-top: 0; }
.reply-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.reply-bar .btn { margin-left: auto; }
.tk-foot-note { color: var(--muted-2); font-size: 13px; }

.tk-avisos { padding: 0 26px; border-top: 1px solid var(--line); }
.tk-avisos summary { display: flex; align-items: center; gap: 8px; min-height: 52px; font-weight: 700; cursor: pointer; list-style: none; border-radius: 8px; }
.tk-avisos summary::-webkit-details-marker { display: none; }
.tk-avisos summary::after { content: "+"; margin-left: auto; color: var(--muted); font-family: var(--mono); }
.tk-avisos[open] summary::after { content: "−"; }
.tk-avisos summary .muted { font-weight: 500; font-size: 14px; }
.tk-avisos-body { padding-bottom: 22px; }

/* Abrir un ticket (panel): otra pantalla, con «Volver a tus tickets». */
.support-new { max-width: 860px; }
.support-new h1 { margin-top: 8px; font-size: 30px; }
.support-new .page-lead { max-width: 64ch; }
.back-link { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 15px; cursor: pointer; border-radius: 8px; }
.back-link:hover { color: var(--text); }
.back-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ticket-form { margin-top: 22px; padding: 26px; }
.send-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.quota { color: var(--muted-2); font-size: 13px; }
.quota.is-limit { color: var(--orange-text); }

/* Texto normal dentro de un aviso apagado (la línea Address del .conf). */
.net-ink { color: var(--text); }

/* Resumen: «Borrar mi cuenta», al final, en una zona de peligro (panel-resumen.js). */
.card-danger { border-color: #4A3A2E; }
.card-danger h2 { font-size: 20px; font-weight: 800; color: var(--orange-text); }
.danger-list { margin: 10px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.card-danger form { max-width: 420px; }

@media (max-width: 1120px) {
  .support { grid-template-columns: minmax(0, 1fr); }
  /* Apiladas, la conversación no se abre sola: ni el hueco ni su esqueleto. */
  .support-empty, .support-main > .sk-card { display: none; }
}
/* ---- Adaptación a pantallas pequeñas ---- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .panel-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 28px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .number-boxes span { font-size: 21px; padding: 14px 0; }
  /* Una columna que no crece con su contenido: una tabla o un desplegable largos no ensanchan la página. */
  .panel, .field { grid-template-columns: minmax(0, 1fr); }
  .select { max-width: 100%; }
  .panel-nav { border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 8px; }
  .panel-nav hr { display: none; }
  .panel-main { padding: 24px 16px 56px; }
  .site-header .container { gap: 12px; }
  .header-actions { gap: 8px; }
  .table .hide-sm { display: none; }
  /* El esqueleto no ensancha la página: en las tablas ocupa lo que le dejen y los anchos fijos se acortan. */
  .table .sk-8em { width: 4em; }
  .table .sk-12em, .table .sk-16em, .table .sk-22em { width: 80%; }
  .sk-12em { width: 8em; }
  .sk-16em { width: 10em; }
  .sk-22em { width: 12em; }
  /* Soporte: la conversación a lo ancho, con los márgenes del móvil. */
  .tk-head, .thread, .tk-foot { padding-left: 16px; padding-right: 16px; }
  .tk-avisos { padding: 0 16px; }
  .tk-confirm { margin: 16px 16px 0; }
  .tk-line { padding-left: 16px; padding-right: 16px; }
  .msg { max-width: 92%; }
  .ticket-subject { font-size: 21px; }
  .ticket-form { padding: 20px 16px; }
  .reply-bar .btn, .send-bar .btn { width: 100%; margin-left: 0; }
  .field-foot { flex-wrap: wrap; }
}

/* ---- Dispositivos, Red privada y Añadir tiempo (docs/red-privada.md §0, mockup aprobado del 1-nov-2026) ----
   Las piezas comunes van primero: la cabecera de la página, las cajas, los interruptores, las pastillas y los colores de las
   redes. Los colores llegan por data-c (networks.js), nunca con style=: la CSP no lo deja. */
[data-c="0"] { --net: #67E8F9; --net-rgb: 103, 232, 249; }
[data-c="1"] { --net: #FF9F5A; --net-rgb: 255, 159, 90; }
[data-c="2"] { --net: #B9A6FF; --net-rgb: 185, 166, 255; }
[data-c="3"] { --net: #86EFAC; --net-rgb: 134, 239, 172; }
[data-c="4"] { --net: #F9A8D4; --net-rgb: 249, 168, 212; }
[data-c="5"] { --net: #FDE68A; --net-rgb: 253, 230, 138; }
[data-c] { --net-soft: rgba(var(--net-rgb), 0.10); --net-line: rgba(var(--net-rgb), 0.35); --net-glow: rgba(var(--net-rgb), 0.16); }

.pg { display: flex; flex-direction: column; gap: 24px; }
.pg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 20px; flex-wrap: wrap; }
.pg-head > div:first-child { flex: 1 1 22em; min-width: 0; max-width: 620px; }
.panel-main .pg-head h1 { font-size: 34px; letter-spacing: -0.02em; text-wrap: balance; }
.panel-main .pg-head h1:focus { outline: none; }
.pg-lead { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back-a { display: inline-block; margin-bottom: 6px; font-size: 14px; }
.kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.muted-2 { color: var(--muted-2); }
.fw-500 { font-weight: 500; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; min-width: 0; }
.box p { margin: 0; }
.well { background: var(--well); border: 1px solid var(--well-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.well-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.btn-xl { min-height: 52px; border-radius: 12px; font-size: 16px; font-weight: 800; }
.btn-primary.btn-lg, .btn-ghost.btn-lg { border-radius: 12px; }
.btn-red { background: transparent; color: var(--red-text); border-color: rgba(248, 113, 113, 0.6); border-radius: 10px; }
.btn-red:hover { color: #FECACA; border-color: #F87171; }
.btn-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btn-pair .btn { border-radius: 12px; min-height: 46px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: inline-grid; place-items: center; flex: none; cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--muted-2); }
.icon-btn.is-sm { width: 36px; height: 36px; color: var(--muted); }
.danger-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px solid var(--red-line); border-radius: 14px; padding: 16px 20px; color: var(--muted); font-size: 14px; }
.danger-row > span { flex: 1 1 16em; }
/* Un aviso a lo ancho (la red en pausa), con su icono. */
.note-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; background: rgba(255, 159, 90, 0.10); border: 1px solid var(--orange-line); }
.note-banner > svg { flex: none; margin-top: 2px; color: var(--orange-text); }
.note-cyan { background: rgba(103, 232, 249, 0.08); border: 1px solid rgba(103, 232, 249, 0.30); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.is-ok { color: #86EFAC; }
.is-warn { color: var(--orange-text); }
.status-line:empty { min-height: 0; margin-top: 0; }

/* Los campos de estas pantallas: texto normal (no monoespaciado), 16 px para que el móvil no haga zoom. */
.fb { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fb > label, .fs > legend { font-weight: 700; }
.fs { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fs > legend { padding: 0; margin-bottom: 10px; }
.text-input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); font: 500 16px var(--font); }
.text-input:focus { outline: none; border-color: var(--cyan); }
.text-input.is-error { border-color: rgba(255, 159, 90, 0.7); }
.text-input.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.ip-input { font-size: 17px; }

/* Interruptor: un checkbox de verdad (role="switch"), con el color de su red. */
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 46px; height: 28px; margin: 0; flex: none; border-radius: 14px; background: var(--line-2); cursor: pointer; transition: background 0.15s; }
.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform 0.15s; }
.switch:checked { background: var(--net, var(--cyan)); }
.switch:checked::before { transform: translateX(18px); }
.switch:disabled { cursor: not-allowed; opacity: 0.55; }
.switch:disabled::before { background: var(--dim); }
.switch:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.net-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--net, var(--cyan)); flex: none; }

/* Pastillas que se marcan (aria-pressed): los dispositivos que entran al crear una red o al unirse. */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer; background: var(--well); color: var(--muted); border: 1px solid var(--line-2); }
.chip-btn::before { content: "+"; font-weight: 800; }
.chip-btn[aria-pressed="true"] { background: var(--cyan-soft); color: var(--cyan); border-color: var(--cyan); }
.chip-btn[aria-pressed="true"]::before { content: "✓"; }
.chip-btn:disabled { cursor: not-allowed; opacity: 0.5; }

/* Botones de elección (servidor, modo, nodo casa, duración): marcados en cian. */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 14px 16px; text-align: left; border-radius: 12px; background: var(--well); border: 1px solid var(--line-2); color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.choice:hover { border-color: var(--muted-2); }
.choice[aria-pressed="true"], .choice[aria-checked="true"] { background: rgba(103, 232, 249, 0.10); border-color: var(--cyan); }
.choice:disabled { cursor: not-allowed; opacity: 0.45; }
.choice-col { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 72px; }
.choice-col > span, .choice-text > span { font-size: 13px; color: var(--muted-2); }
.choice-text { display: flex; flex-direction: column; min-width: 0; }
.choice-text strong, .choice-text span { overflow-wrap: anywhere; }
.code-tile { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.choice[aria-pressed="true"] .code-tile { color: var(--cyan); }

/* Filas con casilla o interruptor, con el color de su red. */
.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 12px; background: var(--well); border: 1px solid var(--well-line); cursor: pointer; }
.check-row:has(input:checked) { border-color: var(--line-2); }
.check-row input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--net, var(--cyan)); }
.check-row strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.check-row.is-off { cursor: not-allowed; opacity: 0.6; }
.net-toggle { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 14px; border-radius: 12px; background: var(--well); border: 1px solid var(--well-line); cursor: pointer; }
.net-toggle:has(.switch:checked) { border-color: var(--line-2); }
.net-toggle:has(.switch:disabled) { cursor: not-allowed; }
.net-toggle .net-dot { width: 12px; height: 12px; }
.net-toggle-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.net-toggle-text strong { overflow-wrap: anywhere; }
.net-toggle-text span { font-size: 13px; color: var(--muted-2); }

/* El botón de copiar de las tarjetas y las filas. */
.btn-copy { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.btn-copy:hover { border-color: var(--muted-2); }

/* Ventanas: la lateral (Editar un dispositivo) y la del centro (Crear una red). */
.drawer, .modal { padding: 0; color: var(--text); background: var(--surface); }
.drawer::backdrop, .modal::backdrop { background: rgba(6, 8, 10, 0.72); }
.drawer { margin: 0 0 0 auto; width: min(560px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-left: 1px solid var(--line); }
.drawer[open] { display: flex; }
.drawer-form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px 20px; border-bottom: 1px solid var(--line); }
.drawer-who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.drawer-who h2 { font-size: 22px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 28px; }
.drawer-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 28px; border-top: 1px solid var(--line); }
.drawer-foot .status-line { flex: 1 1 100%; margin: 0; }
.drawer-foot .btn { border-radius: 12px; min-height: 46px; }
.modal { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55); }
.modal[open] { display: flex; flex-direction: column; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 30px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin-top: 2px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.modal-body { flex: 1; overflow-y: auto; padding: 24px 30px; display: flex; flex-direction: column; gap: 24px; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 30px; border-top: 1px solid var(--line); }
.modal-foot .btn { border-radius: 12px; min-height: 46px; }

/* ── Dispositivos ── */
.dv-cupo { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.dv-cupo-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.dv-cupo-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big-num { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.big-num > span { color: var(--muted-2); font-weight: 600; }
.seg { display: flex; gap: 6px; align-items: center; min-height: 22px; }
.seg > i, .seg > .sk-seg { flex: 1; height: 12px; border-radius: 6px; min-width: 0; }
.seg > i { background: var(--cyan); }
.seg > i.is-extra { background: var(--cyan-2); }
.seg > i.is-free { background: transparent; border: 1px solid var(--line-2); }
.seg > i.is-over { background: transparent; border: 2px dashed var(--orange); }
.seg > b { flex: none; width: 2px; height: 22px; margin: 0 4px; border-radius: 1px; background: var(--text); }
.legend { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--cyan); flex: none; }
.legend i.is-extra { background: var(--cyan-2); }
.legend i.is-free { background: transparent; border: 1px solid var(--line-2); }
.legend i.is-over { background: transparent; border: 2px dashed var(--orange); }
.dv-cupo-side { flex: 1 1 300px; min-width: 0; display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.dv-cupo-side > svg { flex: none; margin-top: 2px; }
.dv-cupo-side.note-warn { background: rgba(255, 159, 90, 0.10); border: 1px solid var(--orange-line); }
.dv-cupo-side.note-warn > svg { color: var(--orange-text); }
.dv-cupo-side.note-calm { background: var(--well); border: 1px solid var(--well-line); color: var(--muted); }
.dv-cupo-side.note-calm > svg { color: var(--muted-2); }
.dv-cupo-side.note-calm strong { color: var(--text); }
.dv-cupo-side > .sk-box { height: 64px; }

.dv-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); font: 600 14px var(--font); cursor: pointer; }
.filter-pill:hover { border-color: var(--muted-2); }
.filter-pill[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--net, var(--text)); flex: none; }
.pill-dot.is-all { background: var(--text); }
.filter-pill[aria-pressed="true"] .pill-dot.is-all { background: var(--bg); }
.pill-dot.is-none { background: var(--dim); }
.pill-count { font-size: 12px; opacity: 0.75; }

.dv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 16px; margin-top: -8px; }
.dv-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.dv-card.is-over { border-color: rgba(255, 159, 90, 0.45); }
.dv-card-head { display: flex; gap: 14px; align-items: flex-start; }
.dv-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--cyan); }
.dv-icon-lg { width: 52px; height: 52px; border-radius: 14px; }
.dv-card.is-over .dv-icon { color: var(--orange-text); }
.dv-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dv-name { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.dv-label { margin-top: 2px; font: 12px var(--mono); color: var(--muted-2); overflow-wrap: anywhere; }
.btn-edit { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 12px; border-radius: 10px; background: transparent; border: 1px solid var(--line-2); color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.btn-edit:hover { border-color: var(--muted-2); }
.dv-over { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; color: var(--orange-text); background: var(--orange-soft); }
.dv-ip { container-type: inline-size; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--well); border: 1px solid var(--well-line); }
.dv-ip > div { min-width: 0; }
.dv-ip-label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
/* La IP en una línea: hasta 19 px, y más pequeña si la tarjeta es estrecha (15 caracteres como mucho). */
.dv-ip strong { display: block; font: 600 min(19px, 6.9cqi) var(--mono); letter-spacing: -0.01em; white-space: nowrap; }
.dv-nets { display: flex; flex-wrap: wrap; gap: 8px; }
.net-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--net-soft); border: 1px solid var(--net-line); }
.net-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--net); flex: none; }
a.net-chip:hover { color: var(--text); text-decoration: none; border-color: var(--net); }
.net-chip.is-none { padding: 5px 12px; color: var(--muted); background: transparent; border: 1px dashed var(--line-2); font-weight: 500; }
.net-chip.is-none::before { display: none; }
.dv-foot { margin: 0; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); }
.dv-empty { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding: 28px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--muted); text-align: center; }
.dv-empty strong { color: var(--text); font-size: 17px; }
.dv-address { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dv-address code { font-size: 14px; overflow-wrap: anywhere; }
#aviso-ip-texto { display: grid; gap: 8px; min-width: 0; }
.pg > .alert { margin-top: -8px; }

.dv-connect { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.dv-connect-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.dv-connect-card:hover { color: var(--text); text-decoration: none; border-color: var(--line-2); }
.dv-connect-card.is-app { background: linear-gradient(180deg, rgba(103, 232, 249, 0.10), rgba(103, 232, 249, 0.03)); border-color: rgba(103, 232, 249, 0.35); }
.dv-connect-card.is-app:hover { border-color: rgba(103, 232, 249, 0.6); }
.dv-connect-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--cyan); }
.is-app .dv-connect-icon { background: var(--cyan); color: var(--cyan-ink); }
.dv-connect-text { display: flex; flex-direction: column; gap: 4px; }
.dv-connect-text strong { font-size: 16px; }
.dv-connect-text span { color: var(--muted); font-size: 14px; }

/* Editar: el selector de icono, los nombres DNS, la IP y los detalles. */
.kind-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.kind-btn { height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--well); border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; padding: 0; }
.kind-btn:hover { border-color: var(--muted-2); color: var(--text); }
.kind-btn[aria-pressed="true"] { background: rgba(103, 232, 249, 0.12); border-color: var(--cyan); color: var(--cyan); }
.dns-list { display: flex; flex-direction: column; gap: 8px; }
.dns-row { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.dns-row .net-dot { width: 8px; height: 8px; transform: translateY(-1px); }
.dns-row .mono { font-size: 13px; overflow-wrap: anywhere; min-width: 0; color: var(--muted); }
.dns-row .mono strong { color: var(--cyan); font-weight: 600; }
.dv-details { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Añadir un dispositivo. */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 14px var(--font); cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--cyan); color: var(--cyan-ink); }
.nv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.nv-step { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.nv-step b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--cyan-ink); font-weight: 800; }
.nv-step strong { font-size: 17px; }
.nv-step > span { color: var(--muted); }
.nv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.nv-form { display: flex; flex-direction: column; gap: 22px; padding: 26px; }
.nv-form .alert { margin-top: 0; }
.nv-form .status-line { margin-top: -10px; }
.nv-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nv-route { display: flex; flex-direction: column; gap: 14px; }
.nv-key-note { padding: 14px 16px; border-radius: 12px; }
.nv-done { display: flex; flex-direction: column; gap: 14px; border-color: rgba(103, 232, 249, 0.4); }
.nv-done h2 { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.nv-done h2:focus { outline: none; }
.qr-frame { align-self: center; padding: 12px; border-radius: 12px; background: #FFFFFF; }
.qr-frame canvas { display: block; width: 200px; height: auto; image-rendering: pixelated; }
.route { display: flex; flex-direction: column; }
.route-node { display: flex; gap: 12px; align-items: center; min-width: 0; }
.route-tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 11px; font-weight: 800; }
.route-tile.is-me { background: var(--surface-2); color: var(--cyan); }
.route-tile.is-hop { border: 2px solid var(--net); color: var(--net); }
.route-tile.is-none { border-color: var(--dim); color: var(--dim); }
.route-link { display: flex; justify-content: center; width: 36px; }
.route-link::before { content: ""; width: 2px; height: 22px; background: var(--net); }
.route-link.is-none::before { background: var(--dim); }
.route-words { display: flex; flex-direction: column; min-width: 0; }
.route-words strong { font-size: 14px; overflow-wrap: anywhere; }
.route-words span { font-size: 13px; color: var(--muted-2); }
/* Esqueletos de estas pantallas. */
.sk-seg { display: block; }
.sk-fill { display: block; width: 100%; height: 100%; border-radius: inherit; }
.sk-edit { width: 5em; }
.sk-check { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.sk-end { margin-left: auto; }
.check-row.sk-card, .choice.sk-card { --sk: var(--surface-2); }

@media (min-width: 1180px) {
  .nv-layout { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* ── Red privada ── */
.rd-cupo { display: flex; flex-direction: column; gap: 18px; }
.rd-cupo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.rd-cupo-sum { color: var(--muted); font-size: 14px; }
.rd-cupo-sum strong { color: var(--text); }
.rd-cupo-sum strong.is-big { font-size: 22px; font-weight: 800; }
.rd-slots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.rd-slot { height: 64px; min-width: 0; padding: 8px 10px; border-radius: 12px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--surface-2); border: 1px solid var(--net); }
a.rd-slot { color: var(--text); }
a.rd-slot:hover { text-decoration: none; color: var(--text); background: #1F262E; }
.rd-slot .net-dot { background: var(--net); }
.rd-slot span:last-child { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-slot.is-guest { border-style: dashed; }
.rd-slot.is-paused { background: #151A1F; border-color: rgba(255, 159, 90, 0.5); }
.rd-slot.is-free { background: transparent; border: 1px dashed var(--line-2); color: var(--dim); }
.rd-slot.is-free .net-dot { background: transparent; }
.rd-slot.sk-slot { border: 1px dashed var(--line-2); background: transparent; }
.rd-legend { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.rd-legend strong { color: var(--text); }

.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 16px; }
.rd-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.rd-card.is-paused { border-color: rgba(255, 159, 90, 0.35); }
.rd-sky { position: relative; height: 150px; border-bottom: 1px solid var(--well-line); background: radial-gradient(circle at 50% 50%, var(--net-glow, transparent), transparent 70%), var(--well); }
.rd-card.is-paused .rd-sky { background: radial-gradient(circle at 50% 50%, rgba(var(--net-rgb), 0.07), transparent 70%), var(--well); }
.rd-sky svg { position: absolute; left: 50%; top: 0; width: 300px; height: 150px; margin-left: -150px; overflow: visible; }
.rd-sky line { stroke: var(--net); stroke-width: 1; opacity: 0.5; }
.rd-sky circle { stroke-width: 2; }
.rd-sky circle.is-mine { fill: var(--net); stroke: var(--net); }
.rd-sky circle.is-other { fill: var(--surface); stroke: var(--dim); }
.rd-sky rect { fill: var(--surface); stroke: var(--net); stroke-width: 2; }
.rd-sky text { fill: var(--net); font: 800 11px var(--font); }
.rd-badge { position: absolute; left: 14px; top: 12px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text); background: rgba(11, 14, 17, 0.75); }
.rd-card.is-paused .rd-badge { color: var(--orange-text); background: rgba(255, 159, 90, 0.14); }
.rd-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; }
.rd-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rd-title .net-dot { width: 12px; height: 12px; }
.rd-title h3 { flex: 1; min-width: 0; font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.rd-paused-note { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; color: var(--orange-text); background: var(--orange-soft); }
.rd-stats { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.rd-stats strong { color: var(--text); }
.rd-domain { font: 12px var(--mono); color: var(--muted-2); overflow-wrap: anywhere; }
.rd-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.rd-actions > * { flex: 1; }
.btn-soft { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font: 700 14px var(--font); cursor: pointer; text-decoration: none; }
.btn-soft:hover { color: var(--text); text-decoration: none; border-color: var(--muted-2); }
.btn-net { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: transparent; border: 1px solid var(--net); color: var(--net); font: 700 14px var(--font); cursor: pointer; text-decoration: none; }
.btn-net:hover { color: var(--net); text-decoration: none; background: var(--net-soft); }
.btn-net:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-wake { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--orange); color: var(--orange-text); font: 700 14px var(--font); text-decoration: none; }
.btn-wake:hover { color: var(--orange-text); text-decoration: none; background: var(--orange-soft); }
.rd-empty { grid-column: 1 / -1; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 26px; border: 1px dashed var(--line-2); border-radius: 18px; }
.rd-empty svg { flex: none; }
.rd-empty > div { flex: 1 1 16em; display: flex; flex-direction: column; gap: 6px; }
.rd-empty strong { font-size: 18px; }
.rd-empty p { color: var(--muted); }

.rd-section { display: flex; flex-direction: column; gap: 14px; }
.rd-section-head { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; }
.rd-section-head h2 { font-size: 20px; font-weight: 800; }
.rd-section-head h2.kicker { font-size: 12px; font-weight: 700; }
.rd-matrix-wrap { position: relative; overflow-x: auto; }
.rd-matrix { width: 100%; border-collapse: collapse; }
.rd-matrix thead th { padding: 8px 10px; font-size: 13px; font-weight: 700; text-align: center; white-space: nowrap; }
.rd-matrix thead th:first-child { text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.rd-matrix thead th.is-paused { color: var(--muted-2); }
.rd-col { display: inline-flex; align-items: center; gap: 6px; max-width: 9em; }
.rd-col span:last-child { overflow: hidden; text-overflow: ellipsis; }
.rd-col .net-dot { width: 9px; height: 9px; }
.rd-matrix tbody tr { border-top: 1px solid var(--well-line); }
.rd-matrix tbody th { padding: 10px; text-align: left; font-weight: 600; min-width: 11em; }
.rd-matrix th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.rd-dev { display: flex; flex-direction: column; }
.rd-dev small { font: 400 12px var(--mono); color: var(--muted-2); }
.rd-dev.is-over > span { color: var(--muted-2); }
.rd-matrix td { padding: 6px; text-align: center; }
.rd-cell { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: inline-grid; place-items: center; cursor: pointer; }
.rd-cell > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ring); transition: background 0.12s, border-color 0.12s; }
.rd-cell:hover > span { border-color: var(--net); }
.rd-cell[aria-pressed="true"] > span { background: var(--net); border-color: var(--net); color: var(--bg); }
.rd-cell:disabled { cursor: not-allowed; }
.rd-cell:disabled > span { border-color: var(--line); background: transparent; }
.rd-cell[aria-pressed="true"]:disabled > span { background: rgba(var(--net-rgb), 0.35); border-color: transparent; }
.rd-cell[aria-busy="true"] > span { opacity: 0.45; }
.rd-cell svg { display: none; }
.rd-cell[aria-pressed="true"] svg { display: block; }
.sk-dot { width: 24px; height: 24px; border-radius: 50%; }

.rd-join-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.rd-join-row .fb { flex: 1 1 280px; }
.rd-join-row .btn { border-radius: 12px; min-height: 48px; }
.code-input { font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.code-input::placeholder { text-transform: none; }
.rd-privacy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.rd-privacy > div { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.rd-privacy span { font-size: 13px; color: var(--muted-2); }

/* Una red por dentro. */
.rd-dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 20px; flex-wrap: wrap; }
.rd-dtitle { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.rd-dtitle > .net-dot { width: 16px; height: 16px; }
.panel-main .rd-dtitle h1 { font-size: 34px; letter-spacing: -0.02em; overflow-wrap: anywhere; min-width: 0; }
.panel-main .rd-dtitle h1:focus { outline: none; }
.rd-pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--net); background: rgba(var(--net-rgb), 0.12); }
.rd-pill.is-paused { color: var(--orange-text); background: rgba(255, 159, 90, 0.14); }
.rd-ddomain { margin-top: 6px; font: 13px var(--mono); color: var(--muted-2); overflow-wrap: anywhere; }
.rd-rename { display: flex; flex-direction: column; gap: 16px; }
.rd-rename .btn-row { margin-top: 0; }
.rd-code-banner { display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; padding: 20px 22px; border-radius: 16px; background: rgba(103, 232, 249, 0.07); border: 1px solid rgba(103, 232, 249, 0.4); }
.rd-code-banner > div { flex: 1 1 260px; min-width: 0; }
.rd-code-banner h2 { font-size: 16px; font-weight: 800; }
.rd-code-banner p { margin-top: 2px; font-size: 13px; color: var(--muted); }
.rd-code { font: 500 22px var(--mono); letter-spacing: 0.08em; overflow-wrap: anywhere; }
.rd-code-banner .btn { border-radius: 12px; }
.rd-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.rd-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rd-side .box { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.rd-side h2 { font-size: 16px; font-weight: 800; }
.rd-side-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rd-mine { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0; cursor: pointer; }
.rd-mine:has(.switch:disabled) { cursor: not-allowed; }
.rd-mine-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-mine-text > span:first-child { font-weight: 600; overflow-wrap: anywhere; }
.rd-mine-text > span:last-child { font-size: 12px; color: var(--muted-2); overflow-wrap: anywhere; }
.rd-mine.is-over .rd-mine-text > span:first-child { color: var(--muted-2); }
.rd-member { display: flex; align-items: center; gap: 12px; }
.rd-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }
.rd-avatar.is-me { background: var(--net); border-color: var(--net); color: var(--bg); }
.rd-member-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-member-text span { font-size: 13px; color: var(--muted-2); }
.rd-member .btn { min-height: 40px; border-radius: 10px; font-size: 13px; padding: 0 12px; }
.rd-pending { padding-top: 10px; border-top: 1px solid var(--well-line); font-size: 13px; color: var(--muted-2); }
.rd-homes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rd-homes .choice { min-height: 60px; padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 0; }
.rd-homes .choice strong { font-size: 14px; }
.rd-homes .choice span { font-size: 12px; color: var(--muted-2); }

.modal-form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.btn-row-tight { display: flex; gap: 10px; }
.chip-btn.sk-card::before { content: none; }
.sk-title-lg { height: 1.6em; }
.sk-map { height: 360px; }
.h-card + .muted { margin-top: 4px; }
@media (min-width: 1180px) {
  .rd-cols { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* El mapa: tus dispositivos a un lado, los de las otras cuentas al otro y el nodo casa en medio, con sus líneas (SVG). */
/* El mapa tiene el alto del de la maqueta (430 px), con los dispositivos centrados. */
.rd-mapbox { container-type: inline-size; }
.rd-mapbox .rd-map { min-height: 300px; }
.rd-map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 14px 22px; align-items: center; padding: 6px 0; background: radial-gradient(circle at 50% 50%, rgba(var(--net-rgb), 0.10), transparent 60%); }
.rd-map-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.rd-map-lines line { stroke-width: 2; opacity: 0.55; stroke: var(--muted); }
.rd-map-lines line.is-mine { stroke: var(--net); }
.rd-map-col { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rd-map-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.rd-map-label.is-me { color: var(--net); }
.rd-map-group { display: flex; flex-direction: column; gap: 10px; }
.rd-node { display: flex; gap: 8px; align-items: center; min-width: 0; height: 62px; padding: 9px 10px; border-radius: 12px; background: var(--well); border: 1px solid var(--line-2); }
.rd-node.is-mine { border-color: rgba(var(--net-rgb), 0.45); }
.rd-node-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.rd-node.is-mine .rd-node-icon { color: var(--net); }
.rd-node-text { display: flex; flex-direction: column; min-width: 0; }
.rd-node-text strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-node-text span { font: 12px var(--mono); color: var(--muted-2); }
.rd-node-empty { font-size: 13px; color: var(--muted-2); padding: 6px 0; }
.rd-home { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 74px; padding: 8px; border-radius: 16px; background: var(--surface); border: 2px solid var(--net); box-shadow: 0 0 0 8px rgba(var(--net-rgb), 0.06); }
.rd-home strong { font-size: 14px; }
.rd-home span { font: 11px var(--mono); color: var(--net); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rd-home.is-none { border-color: var(--dim); box-shadow: none; }
.rd-home.is-none span { color: var(--muted-2); }
@container (max-width: 560px) {
  .rd-map { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rd-home { justify-self: center; width: min(220px, 100%); }
}

/* «Cómo llegar a cada uno»: una tabla que en el móvil pasa a fichas. */
.rd-book { width: 100%; border-collapse: collapse; font-size: 14px; }
.rd-book thead th { padding: 8px 10px; text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); }
.rd-book tbody tr { border-top: 1px solid var(--well-line); }
.rd-book td { padding: 10px; vertical-align: middle; }
.rd-book .is-name { font-weight: 600; }
.rd-book .is-dns { font: 13px var(--mono); overflow-wrap: anywhere; }
.rd-book .is-dns b { font-weight: 400; color: var(--cyan); white-space: nowrap; }
.rd-book .is-dns span { color: var(--muted-2); }
.rd-book .is-ip { font: 13px var(--mono); white-space: nowrap; }
.rd-book .is-who { color: var(--muted); white-space: nowrap; }
.rd-book .is-who.is-me { color: var(--cyan); }
.rd-book .is-copy { text-align: right; }
.rd-book .btn-copy { min-height: 36px; white-space: nowrap; }
.rd-bookbox { container-type: inline-size; }
@container (max-width: 640px) {
  .rd-book thead { display: none; }
  .rd-book tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; }
  .rd-book td { padding: 0; }
  .rd-book .is-name { grid-column: 1; }
  .rd-book .is-who { grid-column: 1; font-size: 13px; }
  .rd-book .is-dns { grid-column: 1 / -1; }
  .rd-book .is-ip { grid-column: 1; }
  .rd-book .is-copy { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* Crear una red. */
.cr-price { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: rgba(255, 159, 90, 0.08); border: 1px solid rgba(255, 159, 90, 0.4); }
.cr-price-tile { width: 86px; height: 86px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; background: var(--well); border: 1px solid rgba(255, 159, 90, 0.4); }
.cr-price-tile strong { font-size: 24px; line-height: 1; color: var(--orange-text); white-space: nowrap; }
.cr-price-tile span { font-size: 12px; color: var(--muted); }
.cr-price-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cr-price-text span { font-size: 14px; color: var(--muted); }
.cr-free { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 14px; background: rgba(103, 232, 249, 0.08); border: 1px solid rgba(103, 232, 249, 0.35); }
.cr-free svg { color: var(--cyan); flex: none; }
.cr-free span span { color: var(--muted); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--net); border: 3px solid transparent; box-shadow: 0 0 0 2px transparent; cursor: pointer; }
.swatch[aria-pressed="true"] { border-color: var(--surface); box-shadow: 0 0 0 2px var(--net); }
.cr-homes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cr-homes .choice { min-height: 66px; padding: 12px; flex-direction: column; align-items: flex-start; gap: 0; }
.cr-homes .choice strong { font-size: 14px; }
.cr-homes .choice span { font-size: 12px; color: var(--muted-2); }
.cr-limit { display: flex; flex-direction: column; gap: 16px; }
.cr-limit h3 { font-size: 20px; }
.cr-limit p { color: var(--muted); }
.cr-limit-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cr-limit-tiles span { height: 44px; border-radius: 10px; background: var(--net); }
.cr-limit .btn { align-self: flex-start; border-radius: 12px; }

/* ── Añadir tiempo ── */
.tm-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.tm-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tm-section { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; }
.tm-durations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tm-duration { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; padding: 16px 18px; border-radius: 14px; background: var(--well); border: 1px solid var(--line-2); cursor: pointer; }
.tm-duration:hover { border-color: var(--muted-2); }
.tm-duration:has(input:checked) { background: rgba(103, 232, 249, 0.10); border-color: var(--cyan); }
.tm-duration:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tm-duration input, .tm-method input { position: absolute; opacity: 0; pointer-events: none; }
.tm-duration-text { display: flex; flex-direction: column; min-width: 0; }
.tm-duration-text strong { font-size: 18px; }
.tm-duration-text span { font-size: 13px; color: var(--muted-2); }
.tm-duration > strong { font-size: 22px; white-space: nowrap; }
.tm-section-head { display: flex; flex-direction: column; gap: 4px; }
.tm-lead { margin: 0; font-size: 14px; color: var(--muted); }
/* «Sumar tiempo a la cuenta»: el interruptor con el precio del tiempo del periodo. Apagado, solo se pagan los extras. */
.tm-time { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 14px; row-gap: 4px; min-height: 64px; padding: 14px 16px; border-radius: 14px; background: var(--well); border: 1px solid var(--line-2); cursor: pointer; }
.tm-time:has(.switch:disabled) { cursor: default; }
.tm-time.is-off { border-color: var(--well-line); }
.tm-time-text { display: flex; flex-direction: column; min-width: 0; }
.tm-time-text strong { font-size: 16px; }
.tm-time-text span { font-size: 13px; color: var(--muted-2); }
.tm-time-price { font-size: 18px; white-space: nowrap; }
/* En el móvil, el interruptor arriba a la derecha y el precio debajo: el texto cabe en su línea. */
@media (max-width: 480px) {
  .tm-time { grid-template-columns: minmax(0, 1fr) auto; }
  .tm-time-text { grid-row: 1 / span 2; }
  .tm-time .switch { grid-column: 2; grid-row: 1; justify-self: end; }
  .tm-time-price { grid-column: 2; grid-row: 2; justify-self: end; font-size: 15px; }
}
.tm-time-price.is-off { color: var(--dim); text-decoration: line-through; text-decoration-thickness: 1.5px; }
/* Dos tarjetas solo si caben holgadas; si no, una debajo de otra. */
.tm-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.tm-extra { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; background: var(--well); border: 1px solid var(--well-line); min-width: 0; }
.tm-extra-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tm-extra-head > span { display: flex; flex-direction: column; min-width: 0; }
.tm-extra-head > span > span { font-size: 13px; color: var(--muted-2); }
.stepper-ctl { display: flex; align-items: center; gap: 4px; flex: none; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.stepper-ctl button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9px; background: var(--surface); color: var(--text); font: 700 20px var(--font); cursor: pointer; }
.stepper-ctl button:hover:not(:disabled) { background: #1F262E; }
.stepper-ctl button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper-ctl output { width: 34px; text-align: center; font-size: 18px; font-weight: 800; }
.tm-bar { display: flex; gap: 4px; }
.tm-bar i { flex: 1; min-width: 0; height: 10px; border-radius: 5px; border: 1px dashed var(--line-2); }
.tm-bar i.is-in { background: var(--cyan); border: 0; }
.tm-bar i.is-extra { background: var(--cyan-2); border: 0; }
.tm-bar i.is-off { border: 2px dashed var(--orange); }
.tm-nets { display: flex; gap: 6px; }
.tm-net { flex: 1; min-width: 0; height: 34px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px dashed var(--line); color: var(--muted); }
.tm-net > span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tm-net.is-on { background: var(--net); border: 0; color: var(--bg); }
.tm-net.is-paused { border: 2px dashed var(--orange); color: var(--orange-text); }
.tm-net.is-free { border: 1px solid var(--ring); color: var(--muted); }
.tm-note { margin: 0; font-size: 13px; color: var(--muted); }
.tm-note.is-warn { color: var(--orange-text); }
/* Qué pasará con ese tipo de extra al pagar (renovar, seguir hasta su fecha, cambiar desde hoy): en naranja si se pierden días. */
.tm-plan { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--surface-2); }
.tm-plan.is-warn { color: var(--orange-text); background: var(--orange-soft); border: 1px solid var(--orange-line); }
.tm-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tm-method { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 96px; padding: 14px 16px; border-radius: 14px; background: var(--well); border: 1px solid var(--line-2); cursor: pointer; min-width: 0; }
.tm-method:hover { border-color: var(--muted-2); }
.tm-method:has(input:checked) { background: rgba(103, 232, 249, 0.10); border-color: var(--cyan); }
.tm-method:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tm-method:has(input:disabled) { cursor: default; border-color: var(--well-line); }
.tm-method:has(input:disabled) strong { color: var(--muted); }
.tm-method .meter i { width: 18px; }
.tm-method > span:last-child { font-size: 12px; color: var(--muted-2); }
.tm-method .method-note, .tm-method .method-test { font-size: 12px; }
.tm-method.sk-row { cursor: default; }
.tm-summary { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; }
.tm-lines { display: flex; flex-direction: column; gap: 10px; }
.tm-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.tm-line > span:first-child { color: var(--muted); }
.tm-line > span:last-child { font-family: var(--mono); white-space: nowrap; }
.tm-rule { height: 1px; background: var(--line); }
.tm-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tm-total strong { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.tm-after { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--well); font-size: 13px; }
.tm-after-head { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); }
.tm-date strong { white-space: nowrap; }
.tm-line-empty { color: var(--muted-2); }
/* Los avisos junto al botón: días que se pierden, el tiempo que acaba antes que los extras y nada que pagar. */
.tm-warns { list-style: none; margin: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; border-radius: 12px; font-size: 13px; color: var(--orange-text); background: var(--orange-soft); border: 1px solid var(--orange-line); }
.nowrap { white-space: nowrap; }
.tm-summary .btn { border-radius: 12px; min-height: 52px; font-size: 16px; font-weight: 800; }
.tm-summary .status-line { margin-top: -4px; }
.tm-summary .cash { margin-top: 0; }
@media (min-width: 1180px) {
  .tm-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .tm-summary { position: sticky; top: 88px; }
}

@media (max-width: 760px) {
  .panel-main .pg-head h1, .panel-main .rd-dtitle h1 { font-size: 28px; }
  .pg-head > .btn, .pg-actions, .pg-actions .btn { width: 100%; }
  .pg-actions .btn { flex: 1; }
  .box { padding: 18px 16px; }
  .dv-cupo { gap: 18px; }
  .big-num { font-size: 34px; }
  .rd-slots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rd-slot { height: 56px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; }
  .nv-form { padding: 18px 16px; }
  .choice-grid, .rd-homes, .cr-homes, .tm-methods { grid-template-columns: minmax(0, 1fr); }
  .tm-durations { grid-template-columns: minmax(0, 1fr); }
  .kind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 18px; padding-right: 18px; }
  .drawer-foot .btn { flex: 1; }
  .modal { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .modal-head, .modal-body, .modal-foot { padding-left: 18px; padding-right: 18px; }
  .modal-foot > div { width: 100%; display: flex; gap: 10px; }
  .modal-foot > div .btn { flex: 1; }
  .cr-price { align-items: flex-start; }
  .cr-price-tile { width: 72px; height: 72px; }
  .cr-price-tile strong { font-size: 19px; }
  .danger-row .btn { width: 100%; }
  .rd-code { font-size: 19px; }
  .rd-code-banner .btn { flex: 1; }
}

/* ---- Abuso y transparencia (docs/legal-y-abuso.md §10) ---- */
.ab-en { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ab-en h3 { font-size: 16px; }
.ab-csam { margin-top: 28px; }
.ab-pair { row-gap: 0; align-items: start; }
.ab-text { margin-top: 12px; }
.ab-form .select { width: 100%; min-height: 52px; }
textarea.input.ab-ips { min-height: 96px; font: 500 15px var(--mono); letter-spacing: 0; }
.tr-head h2 { font-size: 24px; font-weight: 800; }
.tr-tiles { margin-top: 20px; }
.tr-tiles .box { display: flex; flex-direction: column; gap: 2px; }
.tr-tables { margin-top: 24px; row-gap: 28px; }
.tr-table { min-width: 0; overflow-x: auto; }
.tr-table h3 { font-size: 16px; font-weight: 800; }
.table th.tr-num, .table td.tr-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-proof { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.tr-proof summary, .tr-previous summary { cursor: pointer; font-weight: 700; list-style: none; min-height: 44px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tr-proof summary::-webkit-details-marker, .tr-previous summary::-webkit-details-marker { display: none; }
.tr-proof summary::after, .tr-previous summary::after { content: "+"; margin-left: auto; color: var(--muted); font-family: var(--mono); }
.tr-proof[open] summary::after, .tr-previous details[open] > summary::after { content: "−"; }
.tr-proof summary .muted, .tr-previous summary .muted { font-weight: 500; font-size: 14px; }
.tr-proof-body { display: grid; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.tr-proof-body p { margin: 0; }
.tr-sha { display: block; padding: 10px 12px; border-radius: 10px; background: var(--well); border: 1px solid var(--well-line); color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.tr-json { margin: 0; max-height: 320px; overflow: auto; padding: 12px 14px; border-radius: 10px; background: var(--well); border: 1px solid var(--well-line); color: var(--text); font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.tr-previous-title { margin-top: 40px; font-size: 22px; font-weight: 800; }
.tr-previous { display: grid; gap: 14px; margin-top: 16px; }
.tr-previous > .card > p { margin-top: 4px; }
.tr-notes { margin-top: 32px; max-width: 760px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .tr-head h2 { font-size: 22px; }
  /* Las cuatro cifras de dos en dos y las tablas sin desbordar: las cabeceras de las cifras parten en dos líneas. */
  .grid-4.tr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tr-tiles .box { padding: 14px; }
  .tr-tiles .stat { font-size: 28px; }
  .tr-tiles .kicker { font-size: 11px; }
  .tr-table .table { font-size: 14px; }
  .tr-table .table th, .tr-table .table td { padding-left: 5px; padding-right: 5px; }
  .tr-table .table th.tr-num { white-space: normal; vertical-align: bottom; }
  .tr-report { padding: 18px 16px; }
}
@media (max-width: 520px) {
  /* Los requerimientos (cinco columnas): cada fila, un bloque con el nombre arriba y las cuatro cifras con su etiqueta. */
  .tr-table--wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tr-table--wide tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tr-table--wide .table td { display: block; padding: 0; border: 0; }
  .tr-table--wide .table td:first-child { grid-column: 1 / -1; font-weight: 700; }
  .tr-table--wide .table td[colspan] { font-weight: 500; }
  .tr-table--wide .table td.tr-num { text-align: left; font-size: 16px; font-weight: 700; white-space: normal; }
  .tr-table--wide .table td.tr-num::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.25; }
}

/* ── Canjear un código (Añadir tiempo, docs/payments-api.md §17): plegado; abierto, el campo y lo que ha sumado ── */
.box.redeem { padding: 0; }
.redeem-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 22px; cursor: pointer; list-style: none; border-radius: 16px; }
.redeem-summary::-webkit-details-marker { display: none; }
.redeem-summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.redeem-summary-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.redeem-summary-text span { font-size: 14px; color: var(--muted); }
.redeem-open { flex: none; color: var(--cyan); font-weight: 700; font-size: 14px; white-space: nowrap; }
.redeem[open] .redeem-open { display: none; }
.redeem-form { padding: 0 22px 4px; }
.redeem-label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.redeem-row { display: flex; gap: 10px; }
.redeem-row .input { flex: 1; min-width: 0; text-transform: uppercase; }
.redeem-row .btn { flex: none; min-height: 52px; }
.redeem > .alert { margin: 0 22px 20px; }
.redeem-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.redeem-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.redeem-lines li.is-warn { color: var(--orange-text); }
.redeem-link { display: block; width: fit-content; margin-top: 12px; }

@media (max-width: 480px) {
  .redeem-summary { flex-direction: column; align-items: flex-start; padding: 16px; }
  .redeem-form { padding: 0 16px 4px; }
  .redeem > .alert { margin: 0 16px 16px; }
  .redeem-row { flex-direction: column; }
  .redeem-row .btn { width: 100%; }
}
