/* ══════════════════════════════════════════════════════════════════
   RAXION XR — Spatial Cyber-Tech Design System (PRD Official)
   Meta Quest VR Optimizer & WebUSB Installer (http://localhost:3780)
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* PRD Official Palette — single source of truth */
  --ground: #080817;
  --surface: #0e0f26;
  --surface-glass: rgba(14, 15, 38, 0.78);
  --raised: rgba(22, 24, 56, 0.75);
  --raised-hover: rgba(30, 33, 76, 0.88);
  --active: rgba(36, 40, 92, 0.95);

  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 212, 255, 0.40);
  --rule: rgba(255, 255, 255, 0.08);
  --control: rgba(255, 255, 255, 0.12);

  --violet: #9333FF;
  --violet-dim: rgba(147, 51, 255, 0.18);
  --violet-glow: rgba(147, 51, 255, 0.45);
  --purple: #9333FF;
  --purple-dim: rgba(147, 51, 255, 0.18);
  --purple-glow: rgba(147, 51, 255, 0.45);

  --blue: #1677FF;
  --blue-dim: rgba(22, 119, 255, 0.18);
  --blue-glow: rgba(22, 119, 255, 0.45);

  --accent: #00D4FF;
  --cyan: #00D4FF;
  --cyan-dim: rgba(0, 212, 255, 0.16);
  --cyan-glow: rgba(0, 212, 255, 0.50);

  --text: #E8E9FF;
  --muted: rgba(232, 233, 255, 0.72);
  --faint: rgba(232, 233, 255, 0.44);
  --nav-idle: rgba(232, 233, 255, 0.65);

  --primary: #00D4FF;
  --primary-ink: #080817;

  --positive: #00E599;
  --negative: #FF4D6D;
  --warning: #FFB703;
  --emerald: #00E599;
  --amber: #FFB703;
  --rose: #FF4D6D;
  --ok: #00E599;
  --danger: #FF4D6D;

  --pill-positive-bg: rgba(0, 229, 153, 0.14);
  --pill-positive-ink: #00E599;
  --pill-negative-bg: rgba(255, 77, 109, 0.14);
  --pill-negative-ink: #FF4D6D;
  --pill-warning-bg: rgba(255, 183, 3, 0.14);
  --pill-warning-ink: #FFB703;
  --pill-neutral-bg: rgba(147, 51, 255, 0.14);
  --pill-neutral-ink: #E8E9FF;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-title: 22px;
  --fs-section: 17px;
  --fs-kpi: 26px;
  --fs-body: 14px;
  --fs-small: 12px;

  --sidebar-width: 240px;
  --topbar-height: 68px;
  --pad-x: 32px;
  --pad-y: 28px;
  --gap: 20px;
  --card-pad: 24px;
  --radius-card: 18px;
  --radius-well: 14px;
  --radius-control: 8px;
  --radius-pill: 999px;
  --control-height: 38px;
  --row-height: 58px;
  --nav-row: 38px;

  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(0, 212, 255, 0.22);
  --shadow-violet: 0 8px 28px rgba(147, 51, 255, 0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 120ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 var(--fs-body)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ─── Cyber-Grid & Ambient Atmosphere Background ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px), /* taste-skill-ignore */
    linear-gradient(90deg, rgba(147, 51, 255, 0.03) 1px, transparent 1px); /* taste-skill-ignore */
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Orbes de iluminación espacial difuminada */
.orb-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  animation: floatOrb 22s infinite ease-in-out;
}

.auth-orb-1 {
  width: 700px;
  height: 700px;
  background: var(--cyan);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.auth-orb-2 {
  width: 600px;
  height: 600px;
  background: var(--purple);
  bottom: -150px;
  left: -100px;
  animation-delay: -6s;
}

.auth-orb-3 {
  width: 450px;
  height: 450px;
  background: var(--blue);
  top: 40%;
  left: 35%;
  animation-delay: -12s;
  opacity: 0.10;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

.num, table, .kpi-value {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

code {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--cyan);
}

/* ─── Layout Shell ─── */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  position: relative;
  z-index: 1;
}

/* ─── Sidebar Cyber-Tech ─── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  background: rgba(14, 15, 38, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-right: 1px solid var(--border);
  padding: 0 16px 20px;
  overflow-y: auto;
  z-index: 10;
}

.sidebar-close-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
}

.brand {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  border-bottom: 1px solid var(--rule);
  margin: 0 -16px 16px;
  padding-left: 20px;
  padding-right: 20px;
}

.brand-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%); /* taste-skill-ignore */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.45);
  flex: none;
}

.brand-mark {
  width: 20px;
  height: 20px;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

.brand-scope {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: auto;
  white-space: nowrap;
}

.group-label {
  margin: 10px 10px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  /* text-transform */
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--nav-row);
  padding: 0 12px;
  border-radius: 10px;
  color: var(--nav-idle);
  font-size: var(--fs-body);
  font-weight: 500;
  transition: all var(--t-hover) var(--ease-out);
  border: 1px solid transparent;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  transition: stroke var(--t-hover) ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.28);
}

.nav-item[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
  background: rgba(0, 212, 255, 0.14);
  border: 1px solid rgba(0, 212, 255, 0.35);
}

.nav-item[aria-current="page"] svg {
  stroke: var(--cyan);
}

.sidebar-foot {
  margin-top: auto;
  padding: 16px 10px 4px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 4px;
}

.sidebar-foot-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
}

.sidebar-foot-meta {
  font-size: 11px;
  color: var(--faint);
}

/* ─── Topbar Spatial Glass ─── */
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 23, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  z-index: 8;
}

.topbar-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad-x);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.menu-toggle {
  display: none;
}

.usb-live-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  font-size: var(--fs-body);
}

#topbar-usb-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.topbar-disconnect {
  padding: 4px 10px;
  font-size: 12px;
  flex: none;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
  position: relative;
}

.status-dot.connected {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-dot 1.8s infinite;
}

.status-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 10px var(--warning);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.92); }
}

.topbar-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--pad-x);
  border-left: 1px solid var(--border);
  flex: none;
}

.switcher-text {
  display: grid;
  gap: 2px;
  text-align: right;
}

.switcher-label {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
}

.switcher-sub {
  font-size: 11px;
  color: var(--faint);
}

/* ─── Canvas & Titles ─── */
.canvas {
  min-width: 0;
  padding: var(--pad-y) var(--pad-x) 48px;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  /* text-transform */
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.title-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.title-row h1 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.title-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-body);
  max-width: 720px;
  line-height: 1.6;
}

.title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* ══════════════════════════════════════════════════════════════════
   HERO BANNER VR SHOWCASE (INTEGRACIÓN DE LA IMAGEN OFICIAL)
   ══════════════════════════════════════════════════════════════════ */
.vr-hero-banner {
  position: relative;
  border-radius: 20px;
  padding: 1px;
  background: var(--surface);
  border: 1px solid var(--border-glow);
  margin-bottom: var(--gap);
  overflow: hidden;
}

.vr-hero-inner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #04040c;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  min-height: 280px;
}

@media (max-width: 960px) {
  .vr-hero-inner {
    grid-template-columns: 1fr;
  }
}

.vr-hero-content {
  padding: 32px 36px;
  position: relative;
  z-index: 2;
}

.vr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  /* text-transform */
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.vr-hero-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.vr-hero-title .accent-gradient {
  color: var(--cyan);
}

.vr-hero-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.vr-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(14, 15, 38, 0.85);
  border: 1px solid rgba(147, 51, 255, 0.25);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}

.vr-chip b {
  color: var(--cyan);
  font-family: var(--font-mono);
}

.vr-hero-media {
  position: relative;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vr-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #04040c 0%, transparent 35%, transparent 80%, rgba(4, 4, 12, 0.4) 100%); /* taste-skill-ignore */
  pointer-events: none;
}

.vr-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transition: transform 0.6s var(--ease-out);
}

.vr-hero-banner:hover .vr-hero-img {
  transform: scale(1.02);
}

.vr-overlay-tag {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 6px 14px;
  background: rgba(8, 8, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

/* ─── Grid & Glass Panels ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.grid + .grid,
.panel + .grid,
.grid + .panel,
.kpis + .grid,
.grid + .kpis,
.kpis + .panel {
  margin-top: var(--gap);
}

.col-12 { grid-column: span 12; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-5  { grid-column: span 5; }

@media (max-width: 900px) {
  .col-6, .col-7, .col-5 {
    grid-column: span 12;
  }
}

.panel {
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--card-pad);
  min-width: 0;
  box-shadow: none;
  position: relative;
  transition: border-color var(--t-hover) ease;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.panel-header h2 {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.panel-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--faint);
}

/* ─── Lead Card: Release & 4-Stage USB Bridge ─── */
.lead-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  align-items: center;
}

@media (max-width: 850px) {
  .lead-card {
    grid-template-columns: 1fr;
  }
  .release-summary {
    border-right: none !important;
    padding-right: 0 !important;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 20px;
  }
}

.release-summary {
  display: grid;
  gap: 10px;
  padding-right: 20px;
  border-right: 1px solid var(--rule);
}

.release-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.release-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.release-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.sha-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: var(--fs-small);
  flex-wrap: wrap;
}

.bridge-well {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-well);
  padding: 18px 20px;
  display: grid;
  gap: 14px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.bridge-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bridge-label {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
}

.bridge-pct {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--cyan);
}

.bridge-track {
  height: 8px;
  background: rgba(8, 8, 23, 0.8);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bridge-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%); /* taste-skill-ignore */
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
  transition: width var(--t-ui) var(--ease-out);
}

.bridge-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stage-step {
  display: grid;
  gap: 3px;
  padding-top: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--t-ui) ease;
}

.stage-name {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-state {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-step[data-active="true"] {
  border-top-color: var(--cyan);
}
.stage-step[data-active="true"] .stage-name {
  color: var(--text);
}
.stage-step[data-done="true"] {
  border-top-color: var(--positive);
}
.stage-step[data-done="true"] .stage-state {
  color: var(--positive);
}

/* ─── Divided KPI Strip ─── */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
  overflow: hidden;
}

@media (max-width: 900px) {
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi:nth-child(2) {
    border-right: none;
  }
  .kpi:nth-child(3), .kpi:nth-child(4) {
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 500px) {
  .kpis {
    grid-template-columns: 1fr;
  }
  .kpi + .kpi {
    border-left: none !important;
    border-top: 1px solid var(--rule);
  }
}

.kpi {
  padding: 20px var(--card-pad);
  min-width: 0;
  position: relative;
  transition: background var(--t-hover) ease;
}

.kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); /* taste-skill-ignore */
  opacity: 0;
  transition: opacity var(--t-hover) ease;
}

.kpi:hover {
  background: rgba(22, 24, 56, 0.45);
}

.kpi:hover::before {
  opacity: 1;
}

.kpi + .kpi {
  border-left: 1px solid var(--rule);
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  /* text-transform */
  letter-spacing: 0.06em;
  font-weight: 600;
}

.kpi-value {
  margin-top: 8px;
  font-size: var(--fs-kpi);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.kpi-value small {
  font-size: var(--fs-body);
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

.kpi-note {
  margin-top: 6px;
  font-size: var(--fs-small);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-note.good { color: var(--positive); }
.kpi-note.warn { color: var(--warning); }
.kpi-note.bad  { color: var(--negative); }

/* ─── Action Rows & Checklists ─── */
.rows {
  display: grid;
}

.row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 12px 0;
}

.row-item:first-child { padding-top: 2px; }
.row-item:last-child  { padding-bottom: 2px; }

.row-item + .row-item {
  border-top: 1px solid var(--rule);
}

.row-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.row-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
}

.row-desc {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.4;
}

.row-end {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── Inline Notices ─── */
.inline-error {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-radius: var(--radius-well);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.inline-error-text {
  font-size: var(--fs-body);
  font-weight: 600;
  color: #ff94a8;
}

.inline-error-sub {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: 2px;
}

/* ─── Controls & Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-height);
  padding: 0 18px;
  border-radius: var(--radius-control);
  border: 1.5px solid rgba(0, 212, 255, 0.38);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

.btn:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--cyan);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.40;
  cursor: not-allowed;
  border-color: transparent;
}

.btn.is-pro-locked,
.btn.primary.is-pro-locked {
  opacity: 1;
  cursor: not-allowed;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn .pro-lock {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  display: block;
}

.free-install-note {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 196, 0, 0.45);
  border-radius: 16px;
  background: rgba(255, 196, 0, 0.08);
}

.free-install-note h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.free-install-note p {
  margin: 0;
  color: var(--text);
}

.free-install-note .btn {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .free-install-note {
    flex-direction: column;
    align-items: stretch;
  }
}

.btn.primary {
  background: var(--cyan);
  color: var(--primary-ink);
  font-weight: 600;
  border: 1.5px solid var(--cyan);
  box-shadow: none;
}

.btn.primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--cyan) 92%, #000);
  border-color: color-mix(in srgb, var(--cyan) 92%, #000);
  color: var(--primary-ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.btn.primary:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: none;
}

.btn.small {
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  font-size: var(--fs-small);
}

.btn.danger {
  border-color: rgba(255, 77, 109, 0.4);
  color: #ff859d;
  background: rgba(255, 77, 109, 0.12);
}

.btn.danger:hover:not(:disabled) {
  background: rgba(255, 77, 109, 0.22);
  border-color: #ff4d6d;
  color: #ffb3c0;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.btn.ghost {
  height: 32px;
  padding: 0 12px;
  border: 1.5px solid rgba(0, 212, 255, 0.32);
  background: transparent;
  color: var(--cyan);
  font-size: var(--fs-small);
  font-weight: 600;
}

.btn.ghost:hover:not(:disabled) {
  color: #ffffff;
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: none;
}

/* ─── Status Pills ─── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--pill-neutral-bg);
  color: var(--pill-neutral-ink);
  border: 1px solid rgba(147, 51, 255, 0.3);
  white-space: nowrap;
  flex: none;
}

.pill.pos {
  background: var(--pill-positive-bg);
  color: var(--pill-positive-ink);
  border-color: rgba(0, 229, 153, 0.35);
}

.pill.warn {
  background: var(--pill-warning-bg);
  color: var(--pill-warning-ink);
  border-color: rgba(255, 183, 3, 0.35);
}

.pill.neg {
  background: var(--pill-negative-bg);
  color: var(--pill-negative-ink);
  border-color: rgba(255, 77, 109, 0.35);
}

/* ─── Table ─── */
.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  height: 40px;
  padding: 0 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--cyan);
  /* text-transform */
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: rgba(8, 8, 23, 0.4);
}

td {
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  font-size: var(--fs-small);
}

tr:hover td {
  background: rgba(147, 51, 255, 0.05);
}

/* ─── Form Inputs ─── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field.full {
  grid-column: span 2;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  /* text-transform */
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.input {
  width: 100%;
  height: 42px;
  background: rgba(8, 8, 23, 0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--text);
  font-size: var(--fs-body);
  transition: all var(--t-hover) ease;
}

.input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

/* ─── Step List (Guía) ─── */
.settings-section + .settings-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.settings-lead h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.settings-lead p {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.step-list {
  display: grid;
  gap: 16px;
}

.step-row {
  background: rgba(8, 8, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color var(--t-hover) ease;
}

.step-row:hover {
  border-color: var(--cyan);
}

.step-title {
  display: block;
  font-weight: 700;
  color: var(--cyan);
  font-size: var(--fs-body);
  margin-bottom: 6px;
}

.step-body {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ─── Dialog Backdrop ─── */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.dialog-card {
  width: 100%;
  max-width: 480px;
  background: rgba(14, 15, 38, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card), var(--shadow-violet);
}

.dialog-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.dialog-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

textarea.contact-message {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.45;
}

.contact-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.contact-tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.contact-tab.active {
  color: var(--text);
  border-color: var(--cyan);
}

.admin-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-contact-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(13, 15, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  flex-wrap: wrap;
}

.admin-contact-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.admin-contact-meta {
  color: var(--muted);
  font-size: 12px;
}

.admin-contact-message {
  margin: 6px 0 0;
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.45;
}

.admin-contact-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════
   VR PROFILES INTENTIONS SUITE ("¿QUÉ QUIERES HACER HOY?")
   ══════════════════════════════════════════════════════════════════ */
.vr-profiles-section {
  margin-top: var(--gap);
}

.intent-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 850px) {
  .intent-tabs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.intent-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(14, 15, 38, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--t-hover) var(--ease-out);
  text-align: left;
}

.intent-tab-btn:hover {
  background: rgba(22, 24, 56, 0.8);
  border-color: rgba(0, 212, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.intent-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.16) 0%, rgba(46, 91, 255, 0.2) 100%); /* taste-skill-ignore */
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: none;
}

.intent-emoji {
  font-size: 22px;
  line-height: 1;
}

.intent-tab-info {
  display: grid;
  gap: 2px;
}

.intent-tab-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
}

.intent-tab-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
}

.intent-panel-detail {
  display: none;
  background: rgba(8, 8, 23, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  animation: fadeIn 0.3s var(--ease-out);
}

.intent-panel-detail.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.intent-specs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .intent-specs-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.intent-spec-card {
  background: rgba(14, 15, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.intent-spec-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  /* text-transform */
  margin-bottom: 6px;
}

.intent-spec-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
}

/* ADB Injected Properties Box */
.adb-snippet-box {
  background: #04040c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: #a5b4fc;
  overflow-x: auto;
}

.adb-hl-cmd  { color: #ffffff; }
.adb-hl-prop { color: #d8b4fe; }
.adb-hl-val  { color: var(--positive); font-weight: 600; }

/* ─── Responsive Adjustments ─── */
@media (max-width: 900px) {
  .canvas {
    padding: 20px 16px 40px;
  }
}


/* ══════════════════════════════════════════════════════════════════
   ASISTENTE DE INSTALACIÓN GUIADA & SELECTOR DE MODO
   ══════════════════════════════════════════════════════════════════ */

/* Hero Banner CTA */
.vr-hero-cta-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.btn-hero-start {
  height: auto;
  min-height: 44px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vr-hero-rescue-lead {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.btn-icon {
  width: 15px;
  height: 15px;
}

.vr-hero-cta-hint {
  font-size: 12.5px;
  color: var(--muted);
}

.chip-svg {
  width: 14px;
  height: 14px;
  stroke: var(--cyan);
  flex: none;
}

.intent-icon {
  width: 22px;
  height: 22px;
  stroke: var(--cyan);
  flex: none;
}

/* ─── Mode Switcher Bar ─── */
.view-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap);
  flex-wrap: wrap;
  gap: 12px;
}

.view-mode-tabs {
  display: inline-flex;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 4px;
}

.view-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t-hover) var(--ease-out), background var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}

.view-mode-tab:hover {
  color: var(--text);
  background: var(--raised);
}

.view-mode-tab.active,
.user-subtab-btn.active,
.user-subtab-btn.rescue-tab-btn.active {
  color: #ffffff;
  font-weight: 600;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(28, 26, 72, 0.96), rgba(16, 20, 58, 0.94)) padding-box,
    linear-gradient(120deg, #9333FF, #5B6CFF 50%, #1677FF) border-box;
  box-shadow:
    0 0 16px rgba(110, 80, 255, 0.48),
    0 0 6px rgba(22, 119, 255, 0.35);
}

.mode-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.mode-badge {
  padding: 2px 8px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  /* text-transform */
  letter-spacing: 0.05em;
}

.mode-hint {
  font-size: 12.5px;
  color: var(--muted);
}

.prep-section {
  margin-top: 8px;
}

.prep-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--text);
}

.prep-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-body);
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.prep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.prep-card-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.prep-card h3 {
  margin: 6px 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.prep-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.console-jump {
  display: inline-block;
  margin-top: 16px;
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.console-jump:hover {
  color: #ffffff;
}

.console-status-panel {
  margin-bottom: var(--gap);
}

.console-status-panel .panel-meta {
  display: block;
  margin-top: 4px;
}

.console-status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sideload-panel {
  margin-bottom: var(--gap);
}

.sideload-notice {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.sideload-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.sideload-file-row input[type="file"] {
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
}

.sideload-file-row .btn {
  flex: 1 0 100%;
  width: fit-content;
}

@media (max-width: 800px) {
  .prep-grid {
    grid-template-columns: 1fr;
  }
  .vr-hero-cta-wrap .btn {
    width: 100%;
    height: auto;
    min-height: 44px;
    justify-content: center;
  }
}

/* ─── Wizard Container & Stepper ─── */
.wizard-container {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.wizard-stepper-card {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.wizard-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.wizard-step-node {
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t-hover) var(--ease-out), background var(--t-hover) var(--ease-out);
}

.wizard-step-node:hover {
  border-color: rgba(0, 212, 255, 0.4);
}

.wizard-step-node.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--cyan);
}

.wizard-step-node.completed {
  background: rgba(0, 229, 153, 0.08);
  border-color: rgba(0, 229, 153, 0.4);
}

.wizard-step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  flex: none;
  transition: background var(--t-ui) var(--ease-out), color var(--t-ui) var(--ease-out);
}

.wizard-step-node.active .wizard-step-number {
  background: var(--cyan);
  color: #080817;
}

.wizard-step-node.completed .wizard-step-number {
  background: var(--positive);
  color: #080817;
}

.wizard-step-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.wizard-step-tag {
  font-size: 11px;
  /* text-transform */
  letter-spacing: 0.06em;
  color: var(--faint);
  font-weight: 600;
}

.wizard-step-node.active .wizard-step-tag {
  color: var(--cyan);
}

.wizard-step-node.completed .wizard-step-tag {
  color: var(--positive);
}

.wizard-step-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Wizard Active Pane Card ─── */
.wizard-pane-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 32px;
  position: relative;
  overflow: hidden;
}

.wizard-pane-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%); /* taste-skill-ignore */ /* taste-skill-ignore */
}

.wizard-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.wizard-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.wizard-pane-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.wizard-pane-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 24px;
}

/* ─── Wizard Steps Grid (Paso 1) ─── */
.wizard-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.wizard-step-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.wizard-step-item-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.wizard-step-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wizard-step-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.wizard-step-item-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Wizard Notice Box ─── */
.wizard-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(147, 51, 255, 0.1);
  border: 1px solid rgba(147, 51, 255, 0.25);
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.notice-icon {
  width: 18px;
  height: 18px;
  stroke: var(--cyan);
  flex: none;
  margin-top: 1px;
}

/* ─── Device Status Box (Paso 2) ─── */
.wizard-device-status-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 24px;
}

.wizard-device-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.wizard-device-svg {
  width: 26px;
  height: 26px;
  stroke: var(--cyan);
}

.wizard-device-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wizard-device-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.wizard-device-sub {
  font-size: 13px;
  color: var(--muted);
}

/* ─── Auth Guide Box (Paso 3) ─── */
.wizard-auth-guide-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.wizard-auth-step {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(147, 51, 255, 0.2);
  border: 1px solid rgba(147, 51, 255, 0.4);
  color: #d8b4fe;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.wizard-auth-step b {
  display: block;
  color: #ffffff;
  margin-bottom: 2px;
}

.wizard-auth-step p {
  color: var(--muted);
  font-size: 12.5px;
}

/* ─── Pulsing Waiting Indicator ─── */
.wizard-pulse-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  margin-bottom: 24px;
}

.wizard-pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan); /* taste-skill-ignore */
  animation: pulseDot 1.4s infinite ease-in-out;
  flex: none;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

.wizard-pulse-text {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cyan);
}

/* ─── Progress Card (Paso 4) ─── */
.wizard-progress-card {
  padding: 20px 24px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 24px;
}

.wizard-prog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wizard-prog-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.wizard-prog-pct {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}

.wizard-prog-track {
  height: 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}

.wizard-prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%); /* taste-skill-ignore */ /* taste-skill-ignore */
  border-radius: 100px;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5); /* taste-skill-ignore */
}

.wizard-prog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* ─── Success Celebration Card (Paso 5) ─── */
.wizard-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px 20px;
  background: rgba(0, 229, 153, 0.06);
  border: 1px solid rgba(0, 229, 153, 0.3);
  border-radius: 16px;
  margin-bottom: 24px;
}

.wizard-success-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 229, 153, 0.15);
  border: 2px solid var(--positive);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(0, 229, 153, 0.35); /* taste-skill-ignore */
}

.wizard-success-svg {
  width: 30px;
  height: 30px;
  stroke: var(--positive);
}

.wizard-success-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.wizard-success-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.6;
}

.wizard-success-guide {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.wizard-guide-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
}

.wizard-guide-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

.wizard-guide-step b {
  color: var(--text);
}

.guide-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}

/* ─── Wizard Nav Actions Footer ─── */
.wizard-nav-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

/* ─── Responsive Stepper ─── */
@media (max-width: 900px) {
  .wizard-stepper {
    grid-template-columns: 1fr;
  }
  .wizard-steps-grid,
  .wizard-auth-guide-box,
  .wizard-guide-steps {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 600px) {
  .topbar {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 8px 0;
  }
  .topbar-main {
    flex-wrap: wrap;
    height: auto;
    padding: 0 16px;
    gap: 8px;
  }
  .topbar-switcher {
    display: none;
  }
  .topbar-refresh-wrap {
    margin-left: auto;
  }
  .vr-hero-chips {
    flex-direction: column;
  }
}


/* Chips del Hero con colores dedicados */
.chip-cyan {
  border-color: rgba(0, 229, 255, 0.35) !important;
  color: #ffffff !important;
}
.chip-cyan .chip-svg { stroke: var(--cyan) !important; }
.chip-cyan b { color: #ffffff !important; }

.chip-purple {
  border-color: rgba(46, 91, 255, 0.35) !important;
  color: #ffffff !important;
}
.chip-purple .chip-svg { stroke: var(--purple) !important; }
.chip-purple b { color: #ffffff !important; }

.chip-rose {
  border-color: rgba(225, 29, 72, 0.35) !important;
  color: #ffffff !important;
}
.chip-rose .chip-svg { stroke: var(--rose) !important; }
.chip-rose b { color: #ffffff !important; }

.chip-emerald {
  border-color: rgba(5, 150, 105, 0.35) !important;
  color: #ffffff !important;
}
.chip-emerald .chip-svg { stroke: var(--emerald) !important; }
.chip-emerald b { color: #ffffff !important; }

/* KPIs con toques cromáticos distintivos */
.kpi-cyan .kpi-value { color: var(--cyan); }
.kpi-purple .kpi-value { color: var(--purple); }
.kpi-emerald .kpi-value { color: var(--emerald); }
.kpi-amber .kpi-value { color: var(--amber); }

/* Pestañas de Intención con bordes activos por color */
.intent-ultra.active {
  border-color: var(--cyan) !important;
  background: rgba(0, 229, 255, 0.12) !important;
}
.intent-ultra .intent-icon { stroke: var(--cyan); }

.intent-nativo.active {
  border-color: var(--blue) !important;
  background: rgba(59, 130, 246, 0.12) !important;
}
.intent-nativo .intent-icon { stroke: var(--blue); }

.intent-bateria.active {
  border-color: var(--emerald) !important;
  background: rgba(16, 185, 129, 0.12) !important;
}
.intent-bateria .intent-icon { stroke: var(--emerald); }

.intent-creador.active {
  border-color: var(--rose) !important;
  background: rgba(244, 63, 94, 0.12) !important;
}
.intent-creador .intent-icon { stroke: var(--rose); }

/* Especificaciones en tarjetas de perfil */
.spec-cyan { color: var(--cyan) !important; }
.spec-purple { color: #60A5FA !important; }
.spec-emerald { color: #34D399 !important; }
.spec-blue { color: #38BDF8 !important; }

/* ══════════════════════════════════════════════════════════════════
   MODAL ASISTENTE DE INSTALACIÓN GUIADA
   ══════════════════════════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  opacity: 1;
  transition: opacity 200ms ease-out;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.wizard-modal-card {
  background: #0d0f22;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 740px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px 32px;
  position: relative;
  transform-origin: center;
  animation: modalEnter 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes modalEnter {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.wizard-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.wizard-modal-title-wrap {
  display: flex;
  flex-direction: column;
}

.wizard-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  width: fit-content;
}

.wizard-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.wizard-modal-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.wizard-seq-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.wizard-seq-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--purple) 60%, var(--emerald) 100%); /* taste-skill-ignore */
  border-radius: 999px;
  transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  flex: none;
  transition: background 160ms ease-out, color 160ms ease-out;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.modal-close-btn:active {
  transform: scale(0.95);
}

.modal-close-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Stepper secuencial bloqueado dentro del modal (6 pasos, no son pestañas libres) */
.wizard-modal-card .wizard-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 24px;
  padding: 6px;
  background: #080916;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.wizard-modal-card .wizard-step-node {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: default;
  user-select: none;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  transition: background 160ms ease-out, border-color 160ms ease-out, opacity 160ms ease-out;
}

.wizard-modal-card .wizard-step-node.locked {
  opacity: 0.42;
}

.wizard-modal-card .wizard-step-node.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
  opacity: 1;
}

.wizard-modal-card .wizard-step-node.completed {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.4);
  opacity: 1;
}

.wizard-modal-card .wizard-step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  flex: none;
}

.wizard-modal-card .wizard-step-node.active .wizard-step-number {
  background: var(--cyan);
  color: #080817;
}

.wizard-modal-card .wizard-step-node.completed .wizard-step-number {
  background: var(--emerald);
  color: #080817;
}

.wizard-modal-card .wizard-step-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.wizard-modal-card .wizard-step-tag {
  font-size: 11px;
  color: var(--faint);
  font-weight: 600;
}

.wizard-modal-card .wizard-step-node.active .wizard-step-tag {
  color: var(--cyan);
}

.wizard-modal-card .wizard-step-node.completed .wizard-step-tag {
  color: var(--emerald);
}

.wizard-modal-card .wizard-step-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Panes de pasos en el modal */
.wizard-pane-body {
  padding: 4px 0 0;
}

.wizard-step-pill-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.wizard-step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.wizard-step-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.wizard-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.wizard-guide-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #12142a;
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

.guide-badge-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.guide-text b {
  display: block;
  color: #ffffff;
  margin-bottom: 2px;
}

.guide-text p {
  color: var(--muted);
  font-size: 12px;
}

.wizard-callout-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
}

.wizard-callout-box.usb-stay-plugged {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.wizard-callout-box.usb-stay-plugged .callout-icon {
  stroke: #fbbf24;
}

.wizard-celebration-disconnect-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.18);
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  color: #34d399;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 100px;
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
}

.wizard-celebration-card .highlight-quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--cyan);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0 20px 0;
  font-style: italic;
}

.callout-icon {
  width: 18px;
  height: 18px;
  stroke: var(--purple);
  flex: none;
  margin-top: 1px;
}

/* Tarjeta de dispositivo (Paso 2 y Paso 5) */
.wizard-device-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #12142a;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 24px;
  transition: border-color 180ms ease-out, background 180ms ease-out;
}

.wizard-device-card.ready {
  background: rgba(5, 150, 105, 0.10);
  border-color: rgba(5, 150, 105, 0.45);
}

.wizard-device-card.warn {
  background: rgba(217, 119, 6, 0.10);
  border-color: rgba(217, 119, 6, 0.45);
}

.device-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.wizard-device-card.ready .device-icon-box {
  background: rgba(5, 150, 105, 0.18);
  border-color: rgba(5, 150, 105, 0.5);
}

.wizard-device-card.ready .device-svg {
  stroke: var(--emerald);
}

.wizard-device-card.warn .device-icon-box {
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(217, 119, 6, 0.5);
}

.wizard-device-card.warn .device-svg {
  stroke: var(--amber);
}

.device-svg {
  width: 24px;
  height: 24px;
  stroke: var(--cyan);
}

.wizard-footer-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.device-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
}

.device-sub {
  font-size: 12.5px;
  color: var(--muted);
}

/* Radar pulse indicator (Paso 3) */
.wizard-radar-pulse-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  margin-bottom: 24px;
}

.radar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  animation: radarPulse 1.4s infinite ease-in-out;
  flex: none;
}

@keyframes radarPulse {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.radar-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
}

/* Celebración y Éxito (Paso 5) */
.wizard-celebration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px 16px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  margin-bottom: 20px;
}

.celebration-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.celebration-svg {
  width: 26px;
  height: 26px;
  stroke: var(--emerald);
}

.celebration-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.celebration-desc {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.6;
}

.wizard-guide-box {
  background: #12142a;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.guide-box-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.guide-steps-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.guide-step-item b {
  color: #ffffff;
}

.step-num-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}

.wizard-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

/* Responsivo para el modal */
@media (max-width: 768px) {
  .wizard-modal-card {
    padding: 22px 20px;
  }
  .wizard-modal-card .wizard-stepper {
    grid-template-columns: 1fr;
  }
  .wizard-guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-steps-compact {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════
   MODAL INDEPENDIENTE: HERRAMIENTAS DEL VISOR (SENSOR DE PROXIMIDAD / PANTALLA)
   ══════════════════════════════════════════════════════════════════ */

.vr-hero-cta-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-hero-rescue,
.btn-rescue-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.14);
  border: 1px solid rgba(255, 183, 3, 0.42);
  color: #FFE49E;
  font-weight: 600;
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.btn-hero-rescue:hover:not(:disabled),
.btn-rescue-trigger:hover:not(:disabled) {
  background: rgba(217, 119, 6, 0.24);
  border-color: var(--warning);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.btn-hero-rescue:active,
.btn-rescue-trigger:active {
  transform: scale(0.97);
}

.btn-hero-rescue .btn-icon {
  width: 16px;
  height: 16px;
  stroke: var(--warning);
  flex: none;
}

.rescue-inline-callout {
  align-items: center;
  background: rgba(217, 119, 6, 0.10);
  border-color: rgba(255, 183, 3, 0.35);
}

.rescue-inline-callout .callout-icon {
  stroke: var(--warning);
}

.rescue-inline-callout b {
  display: block;
  color: #ffffff;
  margin-bottom: 2px;
}

.rescue-modal-card {
  max-width: 820px;
  border-color: rgba(255, 183, 3, 0.42);
}

.rescue-badge {
  background: rgba(217, 119, 6, 0.14);
  border-color: rgba(255, 183, 3, 0.42);
  color: #FFE49E;
}

.rescue-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  background: #080916;
  border: 1px solid var(--rule);
  border-radius: 12px;
  margin-bottom: 22px;
}

.rescue-tabs.rescue-tabs-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inline-ext-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rescue-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.rescue-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.rescue-tab-btn.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
}

.rescue-tab-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.rescue-tab-btn.active .rescue-tab-num {
  background: var(--cyan);
  color: #080817;
}

.rescue-tab-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rescue-tab-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--faint);
  font-weight: 600;
}

.rescue-tab-btn.active .rescue-tab-label {
  color: var(--cyan);
}

.rescue-tab-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.rescue-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.rescue-method-card {
  background: #12142a;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rescue-method-card.highlight {
  border-color: rgba(0, 229, 153, 0.42);
  background: rgba(0, 229, 153, 0.06);
}

.rescue-method-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rescue-method-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 9px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.rescue-method-badge.pos {
  background: rgba(0, 229, 153, 0.16);
  color: #34D399;
}

.rescue-method-badge.cyan {
  background: rgba(0, 229, 255, 0.16);
  color: var(--cyan);
}

.rescue-method-badge.purple {
  background: rgba(46, 91, 255, 0.22);
  color: #93C5FD;
}

.rescue-method-badge.amber {
  background: rgba(217, 119, 6, 0.22);
  color: #FCD34D;
}

.rescue-method-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.rescue-method-body {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.rescue-method-body b {
  color: #ffffff;
}

.rescue-options-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #101225;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 18px;
}

.rescue-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.rescue-check-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--cyan);
  cursor: pointer;
  flex: none;
}

.rescue-check-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
}

.rescue-check-copy b {
  color: #ffffff;
  font-weight: 600;
}

.rescue-check-copy span {
  color: var(--muted);
}

.rescue-actions-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.rescue-action-card {
  background: #12142a;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.rescue-action-card.primary-card {
  border-color: rgba(0, 229, 255, 0.42);
  background: rgba(0, 229, 255, 0.06);
}

.rescue-action-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.rescue-action-info p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.rescue-action-card .btn {
  width: 100%;
  justify-content: center;
}

.rescue-console-box {
  margin-top: 0;
}

.rescue-live-feedback {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.rescue-live-feedback.pos {
  background: rgba(0, 229, 153, 0.15);
  border: 1px solid rgba(0, 229, 153, 0.4);
  color: #34D399;
}

.rescue-live-feedback.warn {
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: #FCD34D;
}

.rescue-live-feedback.neg {
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: #FF4D6D;
}

@media (max-width: 768px) {
  .rescue-tabs,
  .rescue-methods-grid,
  .rescue-actions-grid {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════════════════════════════
   RAXION XR — NUEVO HOME DE INICIO & SECTOR DE USUARIO (raxion.app)
   ══════════════════════════════════════════════════════════════════ */

/* Brand & Vector Logo in Sidebar */
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.brand-vector-mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.45)) drop-shadow(0 0 18px rgba(192, 38, 211, 0.35));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.brand-link:hover .brand-vector-mark {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.7)) drop-shadow(0 0 24px rgba(192, 38, 211, 0.55));
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-scope {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
}

.nav-badge-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c026d3, #00d4ff);
  color: #ffffff;
  margin-left: auto;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* ──────────────────────────────────────────────────────────────────
   HOME HERO SHOWCASE (raxion.app)
   ────────────────────────────────────────────────────────────────── */
.raxion-home-hero {
  position: relative;
  border-radius: 20px;
  background: radial-gradient(circle at 80% 20%, rgba(192, 38, 211, 0.12), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.10), transparent 50%),
              linear-gradient(180deg, rgba(14, 15, 38, 0.95) 0%, rgba(8, 8, 23, 0.98) 100%);
  border: 1px solid rgba(0, 212, 255, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 212, 255, 0.08);
  padding: 40px 44px;
  margin-bottom: var(--gap);
  overflow: hidden;
}

.home-hero-glow-layer {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.25) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.brand-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #e8e9ff;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.badge-brand-text {
  letter-spacing: 0.5px;
}

.badge-chip {
  background: rgba(0, 212, 255, 0.16);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.home-hero-title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.home-hero-lead {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(232, 233, 255, 0.82);
  margin-bottom: 28px;
  max-width: 620px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.btn-hero-cta {
  height: auto;
  min-height: 44px;
  padding: 13px 24px;
  font-size: 15px;
}

.btn-hero-secondary {
  height: auto;
  min-height: 44px;
  padding: 13px 20px;
  font-size: 15px;
  background: transparent;
  border: 1.5px solid rgba(0, 212, 255, 0.45);
  color: var(--cyan);
}

.btn-hero-secondary:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--cyan);
  color: #ffffff;
}

.btn.ghost.btn-hero-apk {
  height: auto;
  min-height: 44px;
  padding: 13px 18px;
  font-size: 15px;
  border: 1.5px solid rgba(232, 233, 255, 0.28);
  color: var(--text);
  background: transparent;
}

.btn.ghost.btn-hero-apk:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.55);
  color: #ffffff;
  box-shadow: none;
}

/* 4 Pilares Strip */
.raxion-pillars-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 14px;
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pillar-item:hover {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.04);
}

.pillar-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.25), rgba(0, 212, 255, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.pillar-icon svg {
  width: 18px;
  height: 18px;
}

.pillar-info {
  display: flex;
  flex-direction: column;
}

.pillar-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.pillar-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

/* Hero Visual Banner Frame */
.home-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 212, 255, 0.2);
  background: #080817;
  width: 100%;
}

.hero-banner-main-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-frame:hover .hero-banner-main-img {
  transform: scale(1.03);
}

/* Cyber corner brackets */
.cyber-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--cyan);
  border-style: solid;
  z-index: 4;
  pointer-events: none;
}
.cyber-tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.cyber-tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.cyber-bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.cyber-br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

.hero-overlay-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(8, 8, 23, 0.88);
  border: 1px solid rgba(0, 212, 255, 0.4);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.6px;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.tag-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.hero-overlay-hud {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(8, 8, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(10px);
  z-index: 5;
}

.hud-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-num {
  font-size: 14px;
  font-weight: 800;
  color: #00d4ff;
  letter-spacing: 0.5px;
}

.hud-label {
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.6px;
}

.hud-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

/* ──────────────────────────────────────────────────────────────────
   COMPARATIVA INTERACTIVA ANTES / DESPUÉS (SLIDER)
   ────────────────────────────────────────────────────────────────── */
.compare-showcase-panel {
  padding: 34px;
  margin-bottom: var(--gap);
}

.compare-lead-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px auto;
}

.section-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--cyan);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.compare-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.compare-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.compare-slider-box {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 30px auto;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 212, 255, 0.15);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  background: #080817;
}

.compare-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.compare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.compare-after {
  z-index: 2;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  transition: clip-path 0.05s ease-out;
}

.compare-badge {
  position: absolute;
  top: 18px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.badge-stock {
  left: 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.badge-raxion {
  right: 18px;
  background: rgba(8, 8, 23, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: #00d4ff;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
}

/* Slider divider line and circular handle */
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #00d4ff;
  box-shadow: 0 0 12px #00d4ff;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #080817;
  border: 2px solid #00d4ff;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.7);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
}

.handle-icon {
  width: 22px;
  height: 22px;
}

/* Comparison Specs Grid */
.compare-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.spec-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.spec-comparison {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.spec-old {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.spec-arrow {
  color: var(--cyan);
  font-weight: bold;
}

.spec-new {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.spec-gain {
  font-size: 11px;
  color: #38bdf8;
  line-height: 1.35;
}

/* ──────────────────────────────────────────────────────────────────
   HOME CASOS DESTACADOS & HOW IT WORKS
   ────────────────────────────────────────────────────────────────── */
.home-cases-section {
  margin-bottom: var(--gap);
}

.cases-lead {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 28px auto;
}

.cases-lead h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  color: #ffffff;
  margin-bottom: 8px;
}

.cases-lead p {
  color: var(--muted);
  font-size: 15px;
}

.cases-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-card-link {
  background: rgba(14, 15, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.case-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.15);
}

.case-card-link.rescue-card {
  border-color: rgba(239, 68, 68, 0.25);
}

.case-card-link.rescue-card:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(239, 68, 68, 0.25);
}

.case-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.case-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 6px;
}
.case-badge.ultra { background: rgba(0, 212, 255, 0.18); color: var(--cyan); }
.case-badge.balanced { background: rgba(147, 51, 234, 0.2); color: #c084fc; }
.case-badge.eco { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.case-badge.creator { background: rgba(244, 63, 94, 0.2); color: #fb7185; }
.case-badge.rescue { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.case-icon {
  font-size: 22px;
}

.case-card-link h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.case-card-link p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.case-specs-mini {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-action-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}

/* How Grid */
.steps-how-panel {
  padding: 34px;
  margin-bottom: var(--gap);
}

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

.how-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 24px;
}

.how-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--cyan);
  margin-bottom: 10px;
  opacity: 0.85;
}

.how-card h3 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 8px;
}

.how-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────────
   HOME — CAJA DE HERRAMIENTAS
   ────────────────────────────────────────────────────────────────── */
.home-tools-section {
  margin-bottom: var(--gap);
  scroll-margin-top: 88px;
}

.home-tools-spotlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 36px 40px;
  padding: 28px 32px;
  margin-bottom: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0, 212, 255, 0.16), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(147, 51, 255, 0.14), transparent 50%),
    rgba(14, 15, 38, 0.92);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card), 0 0 36px rgba(0, 212, 255, 0.08);
  transition: transform var(--t-hover) var(--ease-out), border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}

.home-tools-spotlight:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.home-tools-spotlight:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.home-tools-spotlight-copy {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 62ch;
}

.home-tools-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--cyan);
}

.home-tools-spotlight-copy h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
  text-wrap: balance;
}

.home-tools-spotlight-copy p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: 18px;
}

.home-tools-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--primary-ink);
  font-size: 14px;
  font-weight: 800;
}

.home-tools-cta svg {
  width: 16px;
  height: 16px;
}

.home-tools-spotlight-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

.home-tools-lens-card {
  width: 132px;
  flex: 0 0 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 12px;
  border-radius: var(--radius-well);
  border: 1px solid var(--border);
  background: rgba(8, 8, 23, 0.72);
}

.home-tools-lens-card.is-on {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: inset 0 0 24px rgba(0, 212, 255, 0.12), 0 0 22px rgba(0, 212, 255, 0.16);
}

.home-tools-lens-pair {
  display: flex;
  gap: 10px;
}

.home-tools-lens-pair span {
  width: 28px;
  height: 38px;
  border-radius: 50%;
  background: #0a0a14;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-tools-lens-card.is-off .home-tools-lens-pair span {
  background: radial-gradient(circle at 50% 40%, #1a1b2e 0%, #05050c 70%);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.home-tools-lens-card.is-on .home-tools-lens-pair span {
  background: radial-gradient(circle at 50% 38%, #8af6ff 0%, #00d4ff 38%, #1677ff 100%);
  border-color: rgba(0, 212, 255, 0.7);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.7);
}

.home-tools-lens-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--faint);
}

.home-tools-lens-card.is-on .home-tools-lens-label {
  color: var(--cyan);
}

.home-tools-lens-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.home-tool-chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 88px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  background: rgba(14, 15, 38, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-well);
  transition: transform var(--t-hover) var(--ease-out), border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}

.home-tool-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 212, 255, 0.1);
}

.home-tool-chip:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.home-tool-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.home-tool-icon svg {
  width: 20px;
  height: 20px;
}

.home-tool-icon.cyan {
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan);
}

.home-tool-icon.violet {
  background: var(--violet-dim);
  border: 1px solid rgba(147, 51, 255, 0.35);
  color: var(--violet);
}

.home-tool-icon.green {
  background: var(--pill-positive-bg);
  border: 1px solid rgba(0, 229, 153, 0.3);
  color: var(--positive);
}

.home-tool-icon.blue {
  background: var(--blue-dim);
  border: 1px solid rgba(22, 119, 255, 0.35);
  color: var(--blue);
}

.home-tool-icon.amber {
  background: var(--pill-warning-bg);
  border: 1px solid rgba(255, 183, 3, 0.3);
  color: var(--warning);
}

.home-tool-icon.rose {
  background: var(--pill-negative-bg);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: var(--negative);
}

.home-tool-chip-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.home-tool-chip-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.home-tool-chip-copy span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ──────────────────────────────────────────────────────────────────
   SECTOR DE USUARIO (USER HUB)
   ────────────────────────────────────────────────────────────────── */
.user-hub-hero {
  background: linear-gradient(180deg, rgba(14, 15, 38, 0.95) 0%, rgba(8, 8, 23, 0.9) 100%);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: var(--gap);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.user-hub-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

.user-hub-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.user-hub-desc {
  font-size: 14px;
  color: var(--muted);
}

.optimizer-guide {
  margin-bottom: 20px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(147, 51, 255, 0.32);
  background: linear-gradient(180deg, rgba(28, 26, 72, 0.72), rgba(14, 15, 38, 0.94));
  box-shadow: 0 0 24px rgba(110, 80, 255, 0.12);
}

.optimizer-guide h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.optimizer-guide p {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.optimizer-guide details {
  margin-top: 8px;
}

.optimizer-guide summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--cyan);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.optimizer-guide summary::-webkit-details-marker {
  display: none;
}

.optimizer-guide details[open] .more-closed,
.optimizer-guide details:not([open]) .more-open {
  display: none;
}

.optimizer-guide ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.optimizer-guide li {
  counter-increment: guide-step;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 68ch;
  color: var(--text);
  line-height: 1.45;
}

.optimizer-guide li::before {
  content: counter(guide-step);
  width: 24px;
  height: 24px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.guide-flow {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-flow > li {
  counter-increment: guide-step;
  display: grid;
  gap: 8px;
  padding: 18px 18px 18px 58px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(14, 15, 38, 0.92);
  position: relative;
}

.guide-flow > li::before {
  content: counter(guide-step);
  position: absolute;
  top: 18px;
  left: 16px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.guide-flow h3 {
  font-size: 17px;
}

.guide-flow p,
.guide-help p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 68ch;
}

.guide-flow details summary,
.guide-help details summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--cyan);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.guide-flow summary::-webkit-details-marker {
  display: none;
}

.guide-flow details[open] .more-closed,
.guide-flow details:not([open]) .more-open {
  display: none;
}

.guide-flow .btn,
.guide-help .btn {
  justify-self: start;
}

.guide-help {
  display: grid;
  gap: 8px;
}

.guide-help h2 {
  margin-bottom: 0;
}

/* Sub-tabs */
.user-subnav-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-top: 18px;
}

.user-subtab-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-subtab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.user-subtab-btn.active,
.user-subtab-btn.rescue-tab-btn.active {
  color: #ffffff;
  font-weight: 600;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(28, 26, 72, 0.96), rgba(16, 20, 58, 0.94)) padding-box,
    linear-gradient(120deg, #9333FF, #5B6CFF 50%, #1677FF) border-box;
  box-shadow:
    0 0 16px rgba(110, 80, 255, 0.48),
    0 0 6px rgba(22, 119, 255, 0.35);
}

.subtab-icon {
  width: 16px;
  height: 16px;
}

/* Profile Cards Grid */
.profile-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: var(--gap);
}

.profile-card {
  background: rgba(14, 15, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.profile-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.profile-card.active-profile {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}

.profile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 3px 8px;
  border-radius: 6px;
}
.badge-ultra { background: rgba(0, 212, 255, 0.2); color: var(--cyan); }
.badge-balanced { background: var(--violet-dim); color: #c4a0ff; }
.badge-eco { background: var(--pill-positive-bg); color: var(--positive); }
.badge-creator { background: var(--pill-negative-bg); color: var(--negative); }

.profile-icon {
  font-size: 20px;
}

.profile-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.profile-summary {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex-grow: 1;
}

.profile-spec-list {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.spec-row b {
  color: #ffffff;
}

.btn-apply-profile {
  width: 100%;
  justify-content: center;
}

/* Creator Format Chips */
.creator-format-selector {
  margin-bottom: 10px;
}

.creator-format-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.format-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.format-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  cursor: pointer;
}

.format-chip.active {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #ffffff;
}

/* Game Presets Panel */
.game-presets-panel {
  padding: 28px;
  margin-bottom: var(--gap);
}

.game-presets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.game-preset-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.game-preset-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.03);
}

.game-preset-top {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.game-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.game-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
}

.game-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 14px;
  flex-grow: 1;
}

.btn-apply-game {
  width: 100%;
  justify-content: center;
  font-size: 12px;
}

/* Expert Sliders Panel */
.expert-sliders-panel {
  padding: 28px;
  margin-bottom: var(--gap);
}

.expert-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.expert-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.slider-control-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
}

.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.slider-header label {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.slider-val-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
}

.range-slider {
  width: 100%;
  accent-color: var(--cyan);
  cursor: pointer;
}

.slider-hints {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

.hz-segmented-group {
  display: flex;
  gap: 6px;
}

.hz-btn, .aniso-btn {
  flex: 1;
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hz-btn.active, .aniso-btn.active {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
}

.toggles-control-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.toggle-sub {
  font-size: 10px;
  color: var(--muted);
  display: block;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider.round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
}
.slider.round:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider.round {
  background-color: var(--cyan);
}
input:checked + .slider.round:before {
  transform: translateX(20px);
}

/* Expert Command Preview */
.expert-command-preview {
  background: rgba(8, 8, 23, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 12px;
  padding: 18px;
}

.cmd-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cmd-preview-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.cmd-code-block {
  background: #04040c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #38bdf8;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 14px;
}

.cmd-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cmd-status-info {
  font-size: 12px;
  color: var(--muted);
}

/* ──────────────────────────────────────────────────────────────────
   HERRAMIENTAS DEL VISOR & MANTENIMIENTO DEL SISTEMA
   ────────────────────────────────────────────────────────────────── */
.rescue-lead-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: radial-gradient(circle at 10% 50%, rgba(239, 68, 68, 0.15), transparent 70%),
              linear-gradient(180deg, rgba(14, 15, 38, 0.9) 0%, rgba(8, 8, 23, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 22px;
}

.rescue-icon-halo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.rescue-hero-icon {
  width: 28px;
  height: 28px;
}

.rescue-lead-banner h2 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 6px;
}

.rescue-lead-banner p {
  font-size: 13px;
  color: rgba(232, 233, 255, 0.8);
  line-height: 1.45;
}

.rescue-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: var(--gap);
}

.rescue-action-card {
  background: rgba(14, 15, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.rescue-action-card.emergency-border {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.15);
  animation: pulseRescueGlow 3s infinite ease-in-out;
}

@keyframes pulseRescueGlow {
  0%, 100% { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 0 16px rgba(239, 68, 68, 0.15); }
  50% { border-color: rgba(239, 68, 68, 0.8); box-shadow: 0 0 28px rgba(239, 68, 68, 0.35); }
}

.rescue-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 2px 7px;
  border-radius: 5px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.rescue-card-badge.red { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.rescue-card-badge.orange { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.rescue-card-badge.blue { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.rescue-card-badge.purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.rescue-card-badge.green { background: rgba(34, 197, 94, 0.2); color: #4ade80; }

.rescue-action-card h3 {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 8px;
}

.rescue-action-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex-grow: 1;
}

.rescue-card-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rescue-card-foot button {
  width: 100%;
  justify-content: center;
}

.rescue-log-panel {
  padding: 24px;
}

.rescue-console-box {
  background: #04040c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  min-height: 120px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.console-line {
  color: #e2e8f0;
}
.console-line.info { color: #38bdf8; }
.console-line.ok { color: #4ade80; }
.console-line.warn { color: #fbbf24; }
.console-line.err { color: #f87171; }

/* ──────────────────────────────────────────────────────────────────
   TELEMETRÍA EN VIVO (CIRCULAR GAUGES & SOC CORES)
   ────────────────────────────────────────────────────────────────── */
.telemetry-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: var(--gap);
}

.telemetry-gauge-card {
  background: rgba(14, 15, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.telemetry-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 16px;
}

.gauge-circle-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 16px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 8;
}

.gauge-val-circle {
  fill: none;
  stroke: #00d4ff;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
  filter: drop-shadow(0 0 6px #00d4ff);
}

.gauge-val-circle.thermal-circle {
  stroke: #22c55e;
  filter: drop-shadow(0 0 6px #22c55e);
}

.gauge-val-circle.battery-circle {
  stroke: #a855f7;
  filter: drop-shadow(0 0 6px #a855f7);
}

.gauge-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-num {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.gauge-unit {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.gauge-footer-note {
  font-size: 12px;
  color: var(--muted);
}
.gauge-footer-note.ok {
  color: #4ade80;
}

/* Snapdragon Cores Bars */
.soc-cores-panel {
  padding: 26px;
  margin-bottom: var(--gap);
}

.cores-bars-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.core-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 6px;
}

.core-bar-track {
  width: 14px;
  height: 110px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}

.core-bar-fill {
  width: 100%;
  border-radius: 999px;
  transition: height 0.4s ease;
}

.core-bar-fill.silver { background: linear-gradient(180deg, #38bdf8, #0284c7); }
.core-bar-fill.gold { background: linear-gradient(180deg, #f59e0b, #d97706); }
.core-bar-fill.prime { background: linear-gradient(180deg, #ef4444, #b91c1c); box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }

.core-name {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.core-type {
  font-size: 9px;
  color: var(--muted);
}

/* ──────────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }
  .profile-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compare-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cases-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-presets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .expert-controls-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rescue-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-tools-spotlight {
    padding: 24px;
  }
  .home-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .raxion-home-hero {
    padding: 24px 20px;
  }
  .raxion-pillars-strip {
    grid-template-columns: 1fr;
  }
  .profile-cards-grid {
    grid-template-columns: 1fr;
  }
  .compare-specs-grid {
    grid-template-columns: 1fr;
  }
  .cases-cards-grid {
    grid-template-columns: 1fr;
  }
  .game-presets-grid {
    grid-template-columns: 1fr;
  }
  .expert-controls-grid {
    grid-template-columns: 1fr;
  }
  .rescue-actions-grid {
    grid-template-columns: 1fr;
  }
  .home-tools-spotlight {
    padding: 20px 16px;
  }
  .home-tools-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .cores-bars-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .user-subnav-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  .user-hub-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Additional Polish for Case Icons & Step Tags */
.case-icon-box, .profile-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-icon-box.cyan, .profile-icon-box.cyan {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
}

.case-icon-box.purple, .profile-icon-box.purple {
  background: var(--violet-dim);
  border: 1px solid rgba(147, 51, 255, 0.3);
  color: #c4a0ff;
}

.case-icon-box.green, .profile-icon-box.green {
  background: var(--pill-positive-bg);
  border: 1px solid rgba(0, 229, 153, 0.3);
  color: var(--positive);
}

.case-icon-box.rose, .profile-icon-box.rose {
  background: var(--pill-negative-bg);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: var(--negative);
}

.case-icon-box.red, .profile-icon-box.red {
  background: var(--pill-negative-bg);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: var(--negative);
}

.case-svg-icon {
  width: 20px;
  height: 20px;
}

.how-step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  margin-bottom: 12px;
}

.home-hero-title {
  max-width: 660px;
  font-size: clamp(26px, 3.1vw, 38px) !important;
  text-wrap: balance;
}

/* ─── Barra superior ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
  border-bottom: 0;
  padding-top: env(safe-area-inset-top);
  pointer-events: none;
}

.headset-float {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 7px 8px 7px 12px;
  border-radius: 999px;
  background: rgba(8, 8, 23, 0.94);
  border: 1px solid rgba(0, 229, 153, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.headset-float-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 153, 0.16);
  color: #00E599;
  flex: none;
}

.headset-float-icon svg,
.headset-float-close svg {
  width: 14px;
  height: 14px;
}

#headset-float-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.headset-float-close {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(232, 233, 255, 0.72);
  cursor: pointer;
  flex: none;
}

.headset-float-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.site-header.nav-open .headset-float {
  display: none !important;
}

.site-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 10px 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.site-menu {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: calc(100vw - 32px);
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  background: rgba(8, 8, 23, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.site-brand {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  margin-right: 4px;
  text-decoration: none;
}

.brand-r-aura-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: rAuraColorPulse 4.5s ease-in-out infinite alternate;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-brand:hover .brand-r-aura-wrap {
  transform: scale(1.1);
}

.brand-logo-r-only {
  width: 44px;
  height: 44px;
  display: block;
  animation: rSubtleMotion 4.5s ease-in-out infinite;
}

@keyframes rAuraColorPulse {
  0% {
    filter: drop-shadow(-3px 2px 8px rgba(217, 70, 239, 0.55))
            drop-shadow(3px -2px 10px rgba(0, 212, 255, 0.45));
  }
  50% {
    filter: drop-shadow(-4px 3px 12px rgba(147, 51, 234, 0.65))
            drop-shadow(4px -3px 14px rgba(22, 119, 255, 0.65));
  }
  100% {
    filter: drop-shadow(-3px -2px 10px rgba(0, 240, 255, 0.65))
            drop-shadow(4px 3px 12px rgba(232, 121, 249, 0.55));
  }
}

@keyframes rSubtleMotion {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-2.5px) rotate(1.5deg) scale(1.03);
  }
}

/* Escenario Hero Showcase: Arte RAXION_ Optimización VR futurista.png limpio + Aura viva */
.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.hero-metric-pill {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(14, 16, 42, 0.72);
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-metric-pill:hover {
  border-color: rgba(0, 212, 255, 0.45);
  transform: translateY(-2px);
}

.metric-pill-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.metric-pill-lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.25;
}

.hero-showcase-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-showcase-aura {
  position: absolute;
  inset: -14px;
  border-radius: 26px;
  background: conic-gradient(
    from 210deg,
    rgba(217, 70, 239, 0.28),
    rgba(147, 51, 234, 0.22),
    rgba(22, 119, 255, 0.28),
    rgba(0, 240, 255, 0.32),
    rgba(217, 70, 239, 0.28)
  );
  filter: blur(28px);
  opacity: 0.85;
  animation: showcaseAuraBreathe 5.5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes showcaseAuraBreathe {
  0% {
    opacity: 0.65;
    transform: scale(0.98);
    filter: blur(26px) hue-rotate(-6deg);
  }
  100% {
    opacity: 0.95;
    transform: scale(1.02);
    filter: blur(32px) hue-rotate(8deg);
  }
}

.hero-artwork-clean {
  position: relative;
  z-index: 2;
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.42);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(0, 212, 255, 0.18),
    0 0 24px rgba(192, 38, 211, 0.16);
  background: #060613;
}

.hero-artwork-clean .hero-banner-main-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero-showcase-caption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(10, 12, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.caption-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(232, 233, 255, 0.88);
}

.caption-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.caption-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .hero-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-showcase-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.site-nav .nav-item {
  height: auto;
  min-height: 44px;
  padding: 0 14px;
  justify-content: center;
  white-space: nowrap;
}

.site-nav .nav-item-install:not([aria-current="page"]) {
  color: var(--cyan);
  font-weight: 650;
}

.site-nav .nav-item-quiet {
  color: var(--faint);
  font-weight: 500;
}

.site-nav .nav-item-quiet[aria-current="page"] {
  color: #ffffff;
}

.site-nav .nav-item[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(28, 26, 72, 0.96), rgba(16, 20, 58, 0.94)) padding-box,
    linear-gradient(120deg, #9333FF, #5B6CFF 50%, #1677FF) border-box;
  box-shadow:
    0 0 16px rgba(110, 80, 255, 0.48),
    0 0 6px rgba(22, 119, 255, 0.35);
}

.site-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  flex: none;
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.site-tools .btn {
  min-height: 44px;
  height: 44px;
}

.nav-account-btn {
  padding: 0 16px;
  border-radius: 999px;
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
}

.nav-account-btn:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.22);
  border-color: var(--cyan);
  color: #ffffff;
}

.nav-account-btn.is-in {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  border-color: rgba(0, 229, 153, 0.5);
  background: rgba(0, 229, 153, 0.12);
}

.site-tools .topbar-switcher {
  display: none;
  height: auto;
  padding: 0 0 0 12px;
  border-left: 1px solid var(--border);
}

.usb-live-line {
  min-width: 0;
}

.usb-text-short {
  display: none;
}

#topbar-usb-text,
.usb-text-full,
.usb-text-short {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.refresh-label-short {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex: none;
}

.menu-icon {
  width: 20px;
  height: 20px;
}

.menu-icon-close {
  display: none;
}

.site-header.nav-open .menu-icon-open {
  display: none;
}

.site-header.nav-open .menu-icon-close {
  display: block;
}

.workspace {
  flex: 1;
}

.release-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--faint);
  font-size: 12px;
}

@media (min-width: 1200px) {
  .site-tools .topbar-switcher {
    display: flex;
  }
}

@media (max-width: 1100px) {
  .site-bar {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .brand-logo-full {
    height: 30px;
  }

  .site-nav {
    justify-content: center;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav .nav-item {
    padding: 0 8px;
    font-size: 13px;
  }

  .refresh-label-full {
    display: none;
  }

  .refresh-label-short {
    display: inline;
  }

  .usb-text-full {
    display: none;
  }

  .usb-text-short {
    display: inline;
  }
}

@media (max-width: 720px) {
  .site-bar {
    min-height: 68px;
  }

  .site-menu {
    gap: 8px;
    padding-right: 6px;
  }

  .site-tools {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .brand-logo-full {
    display: none;
  }

  .brand-logo-mark {
    display: block;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 12px max(16px, env(safe-area-inset-bottom));
    background: #080817;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav .nav-item {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 14px;
    font-size: 16px;
    border-radius: 12px;
  }

  .site-tools .topbar-disconnect {
    padding: 0 10px;
  }

  .canvas {
    padding: 16px max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .auth-orb {
    filter: blur(70px);
    opacity: 0.08;
  }

  .home-hero-glow-layer {
    display: none;
  }

  .raxion-home-hero,
  .hero-image-frame,
  .compare-slider-box {
    box-shadow: none;
  }
}

.auth-gate {
  display: flex;
  justify-content: center;
  padding: 12px 0 28px;
}

.auth-card {
  width: min(440px, 100%);
  background: rgba(14, 15, 38, 0.92);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.auth-card h2 {
  margin: 8px 0 8px;
  font-size: 26px;
  line-height: 1.2;
  color: #ffffff;
}

.auth-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 18px;
  background: rgba(8, 8, 23, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: rgba(0, 212, 255, 0.16);
  color: #ffffff;
}

.auth-card .field + .field {
  margin-top: 14px;
}

.auth-error {
  margin: 14px 0 0;
  color: #ff94a8;
  font-size: 13px;
}

.auth-submit {
  width: 100%;
  margin-top: 18px;
  height: 44px;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 153, 0.4);
  background: rgba(0, 229, 153, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.account-plan {
  padding: 2px 7px;
  border-radius: 999px;
  background: #00E599;
  color: #06281c;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.account-chip .btn {
  height: 32px;
  min-height: 32px;
}

.billing-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-width: 360px;
}

.link-device-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  padding: 28px 16px 40px;
  color: var(--faint);
}

.site-footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer-note {
  margin: 0;
  font-size: 12px;
  color: var(--faint);
  max-width: 780px;
  line-height: 1.45;
}

.admin-user-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Admin Users Management & Statistics */
.admin-user-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 16px 0 20px;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(22, 24, 56, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-stat-card.is-pro {
  border-color: rgba(0, 229, 153, 0.35);
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.08), rgba(22, 24, 56, 0.65));
}

.admin-stat-card.is-free {
  border-color: rgba(0, 212, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(22, 24, 56, 0.65));
}

.admin-stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  flex-shrink: 0;
}

.admin-stat-card.is-pro .admin-stat-icon {
  color: var(--positive);
  background: rgba(0, 229, 153, 0.12);
}

.admin-stat-card.is-free .admin-stat-icon {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.12);
}

.admin-stat-data {
  display: flex;
  flex-direction: column;
}

.admin-stat-val {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.admin-stat-val.pro-color {
  color: var(--positive);
}

.admin-stat-val.free-color {
  color: var(--cyan);
}

.admin-stat-lbl {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.admin-users-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-search-box {
  flex: 1;
  min-width: 240px;
}

.admin-filter-tabs {
  display: flex;
  gap: 6px;
}

.admin-filter-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.15s ease;
}

.admin-filter-tab.active {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
}

.admin-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: rgba(14, 15, 38, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
  gap: 14px;
}

.admin-user-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-user-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(147, 51, 255, 0.2);
  border: 1px solid rgba(147, 51, 255, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.admin-user-avatar.is-pro {
  background: rgba(0, 229, 153, 0.18);
  border-color: rgba(0, 229, 153, 0.5);
  color: var(--positive);
}

.admin-user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-user-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.admin-user-email {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-meta {
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px;
}

.user-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-badge.badge-pro {
  background: rgba(0, 229, 153, 0.18);
  color: var(--positive);
  border: 1px solid rgba(0, 229, 153, 0.4);
}

.user-badge.badge-free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-badge.badge-admin {
  background: rgba(147, 51, 255, 0.2);
  color: #C084FC;
  border: 1px solid rgba(147, 51, 255, 0.5);
}

.admin-user-actions-cell {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.btn-make-pro {
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.2), rgba(0, 212, 255, 0.25));
  border: 1px solid rgba(0, 229, 153, 0.5);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 13px;
}

.btn-make-pro:hover {
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.35), rgba(0, 212, 255, 0.4));
  border-color: var(--positive);
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.35);
  transform: translateY(-1px);
}

.btn-make-free {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-make-free:hover {
  background: rgba(255, 77, 109, 0.15);
  border-color: rgba(255, 77, 109, 0.4);
  color: var(--rose);
}

.admin-telemetry-app {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-telemetry-app h3,
.admin-telemetry-headset h4 {
  margin: 0 0 8px;
}

.admin-telemetry-headset {
  margin: 8px 0 0 12px;
}

.admin-telemetry-profile {
  margin: 0 0 10px;
  color: var(--text);
}

.admin-telemetry-profile p {
  margin: 2px 0 0;
  color: var(--faint);
}

/* ══════════════════════════════════════════════════════════════════
   UNIFIED SHELLS — legales, reset, live, instalador y hub
   ══════════════════════════════════════════════════════════════════ */

.site-nav .nav-item svg {
  width: 15px;
  height: 15px;
}

.site-nav .nav-item-live {
  font-weight: 500;
}

.case-action-btn {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
}

.user-hub-quick-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.user-hub-hero .billing-box {
  max-width: none;
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-well);
  border: 1px solid var(--border);
  background: rgba(8, 8, 23, 0.55);
}

.billing-pro-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.telemetry-live-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--gap);
  padding: 16px 18px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.10), rgba(147, 51, 255, 0.10));
}

.telemetry-live-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 640px;
  line-height: 1.45;
}

.telemetry-live-banner strong {
  color: var(--text);
}

.install-visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(360px, 86%);
  padding: 28px 24px;
  border-radius: var(--radius-card);
  background: rgba(14, 15, 38, 0.82);
  border: 1px solid rgba(0, 212, 255, 0.28);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.install-visual-mark {
  width: 72px;
  height: 72px;
}

.install-visual-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  width: 100%;
}

.install-visual-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.install-visual-steps li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--primary-ink);
  background: var(--cyan);
}

.vr-hero-media:has(.install-visual)::after {
  display: none;
}

.guide-panel .settings-lead h2 {
  font-size: clamp(22px, 2.4vw, 28px);
}

.step-row {
  border-radius: var(--radius-well);
}

.legal-shell,
.auth-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.legal-shell .legal-main,
.auth-shell .auth-gate {
  flex: 1;
}

.legal-top,
.satellite-top,
.live-top {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 23, 0.9);
  backdrop-filter: blur(24px);
}

.satellite-bar {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 0;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

.legal-brand,
.satellite-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.legal-brand img,
.satellite-brand img {
  width: 40px;
  height: 40px;
}

.legal-main {
  width: min(760px, calc(100% - 40px));
  margin: 36px auto 48px;
}

.legal-article h1 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 18px;
}

.legal-article h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--text);
}

.legal-article p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-article a {
  color: var(--cyan);
  font-weight: 600;
}

.legal-article a:hover {
  color: #ffffff;
}

.auth-shell .auth-gate {
  padding: 48px 20px 32px;
  align-items: center;
}

.auth-shell .auth-card {
  height: auto;
  align-self: center;
}

.reset-status {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.reset-status.is-ok {
  color: var(--positive);
}

.reset-status.is-err {
  color: var(--negative);
}

.auth-shell .auth-card .field {
  margin-bottom: 14px;
}

.auth-shell .auth-card .btn.primary {
  width: 100%;
  height: 44px;
  margin-top: 8px;
}

html.live-page {
  overflow-x: hidden;
}

html.live-page body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.live-top {
  position: sticky;
  top: 0;
  z-index: 20;
}

.live-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.live-brand img {
  width: 40px;
  height: 40px;
}

.live-brand span {
  color: var(--cyan);
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-status.live {
  background: var(--pill-negative-bg);
  border-color: rgba(255, 77, 109, 0.5);
  color: var(--negative);
}

.live-status.connected {
  background: var(--pill-positive-bg);
  border-color: rgba(0, 229, 153, 0.5);
  color: var(--positive);
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-dot 1.5s infinite;
}

.live-wrap {
  width: min(1000px, calc(100% - 32px));
  margin: 24px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.live-intro h1 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  margin-bottom: 8px;
}

.live-intro p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.live-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(147, 51, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(28, 26, 72, 0.72), rgba(14, 15, 38, 0.92));
  box-shadow: 0 0 28px rgba(110, 80, 255, 0.16);
}

.live-empty-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #c9b6ff;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(28, 26, 72, 0.96), rgba(16, 20, 58, 0.94)) padding-box,
    linear-gradient(120deg, #9333FF, #5B6CFF 50%, #1677FF) border-box;
  box-shadow: 0 0 18px rgba(110, 80, 255, 0.4);
}

.live-empty-icon svg {
  width: 32px;
  height: 32px;
}

.live-empty h2 {
  font-size: 22px;
}

.live-empty p {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.55;
}

.live-steps {
  display: grid;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: live-step;
}

.live-steps li {
  counter-increment: live-step;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.live-steps li::before {
  content: counter(live-step);
  width: 26px;
  height: 26px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.live-status.offline {
  color: var(--muted);
}

.live-status.offline .live-pulse {
  animation: none;
  box-shadow: none;
  background: var(--faint);
}

.live-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 500;
}

.live-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(147, 51, 255, 0.28);
  background: linear-gradient(135deg, rgba(147, 51, 255, 0.15), rgba(22, 119, 255, 0.1));
  box-shadow: var(--shadow-card);
}

.live-game-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.live-package {
  margin-top: 4px;
  font-size: 13px;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.live-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.35);
  font-size: 13px;
  font-weight: 600;
}

.live-pill svg {
  width: 16px;
  height: 16px;
}

.live-pill.profile {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  border: 0;
  color: #ffffff;
  box-shadow: var(--shadow-violet);
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.live-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-hover) ease, transform var(--t-hover) var(--ease-out);
}

.live-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

.live-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.live-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-card-head svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.live-value {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.live-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}

.live-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.live-bar {
  width: 100%;
  height: 6px;
  margin-top: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.live-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cyan);
  width: 100%;
  transition: width 0.4s ease, background 0.4s ease;
}

.live-temp {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.live-temp.ok { background: var(--pill-positive-bg); color: var(--positive); }
.live-temp.warn { background: var(--pill-warning-bg); color: var(--warning); }
.live-temp.hot { background: var(--pill-negative-bg); color: var(--negative); }

.live-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

.live-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}

.live-table td:first-child { color: var(--muted); }
.live-table td:last-child {
  text-align: right;
  font-weight: 700;
  font-family: var(--font-mono);
}

.live-foot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.live-foot a {
  color: var(--cyan);
  font-weight: 600;
}

@media (max-width: 768px) {
  .install-visual {
    width: min(100%, 92%);
    margin: 12px auto 24px;
  }

  .user-hub-quick-actions {
    align-items: stretch;
    width: 100%;
  }

  .telemetry-live-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-main {
    margin-top: 24px;
  }
}

@media (max-width: 720px) {
  .home-hero-actions .btn {
    width: 100%;
  }

  .home-tools-cta {
    width: 100%;
    justify-content: center;
  }

  .home-tools-spotlight-visual {
    flex-wrap: wrap;
  }

  .user-subtab-btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .site-footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
}


/* ══════════════════════════════════════════════════════════════════
   ESTILOS DE OFERTA $5.99 (PAGO ÚNICO), CUPONES Y ADMIN DE PROMOCIONES
   ══════════════════════════════════════════════════════════════════ */

.billing-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.badge-promo-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(249, 115, 22, 0.25));
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}

.billing-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.price-strikethrough {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.85);
  text-decoration-thickness: 2px;
}

.price-hero {
  font-size: 2.2rem;
  font-weight: 800;
  color: #00e5ff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  font-family: var(--font-display, inherit);
}

.price-period {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.btn-checkout-hero {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  background: linear-gradient(135deg, #00d4ff 0%, #7928ca 100%) !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.35) !important;
  transition: transform 180ms ease, box-shadow 180ms ease !important;
}

.btn-checkout-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.5) !important;
}

/* Caja de cupones */
.coupon-box {
  margin: 16px 0;
  padding: 14px 16px;
  background: rgba(13, 15, 34, 0.65);
  border: 1px dashed rgba(0, 212, 255, 0.25);
  border-radius: 10px;
}

.coupon-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.coupon-input-group {
  display: flex;
  gap: 8px;
  max-width: 360px;
}

.coupon-input {
  text-transform: uppercase;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.coupon-feedback {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}

.coupon-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.coupon-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.link-input-group {
  display: flex;
  gap: 8px;
  max-width: 360px;
}

/* Panel de administración: Cupones */
.coupon-admin-form {
  margin-bottom: 24px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.admin-coupons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-coupon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(13, 15, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  flex-wrap: wrap;
}

.admin-coupon-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.coupon-code-tag {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  border-radius: 5px;
}

.coupon-desc-tag {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.coupon-meta-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.admin-coupon-actions {
  display: flex;
  gap: 8px;
}

.badge-expired {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-exhausted {
  background: rgba(234, 179, 8, 0.2);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.badge-inactive {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* ==================== TARJETA DE VISOR REGISTRADO (CUENTA PRO) ==================== */
.registered-headset-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-well, 16px);
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: linear-gradient(135deg, rgba(8, 8, 28, 0.85) 0%, rgba(13, 14, 38, 0.7) 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 212, 255, 0.15);
}

.registered-headset-box.empty {
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(8, 8, 23, 0.55);
}

.registered-headset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.registered-headset-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 8px;
  border-radius: 999px;
}

.registered-headset-badge.yellow {
  color: #eab308;
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.4);
}

.registered-headset-limit {
  font-size: 12px;
  color: var(--muted, #94a3b8);
  font-weight: 600;
}

.registered-headset-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.registered-headset-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan, #00D4FF);
  flex-shrink: 0;
}

.registered-headset-icon.muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  font-size: 22px;
}

.headset-svg-icon {
  width: 24px;
  height: 24px;
}

.registered-headset-info {
  flex: 1;
  min-width: 0;
}

.registered-headset-title {
  margin: 0 0 2px 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.registered-headset-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #94a3b8);
}

.serial-code {
  font-family: monospace;
  color: var(--accent-cyan, #00D4FF);
  background: rgba(0, 212, 255, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.registered-headset-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #94a3b8);
  line-height: 1.45;
}

.registered-headset-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.btn-unlink-headset {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-unlink-headset:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.7);
  color: #fff;
}

.unlink-feedback {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
}

.unlink-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.unlink-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
