/* Panel — Global Expansion Group */

.panel-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.panel-page .header {
  flex-shrink: 0;
}

.panel-page .footer {
  margin-top: auto;
  flex-shrink: 0;
}

.nav-btn.is-current {
  pointer-events: none;
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Login under site header */
.panel-login {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem 3rem;
  overflow: hidden;
}

.login-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.la-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: laFloat 10s ease-in-out infinite;
}
.la-a {
  width: 280px;
  height: 280px;
  top: 12%;
  left: 8%;
  background: rgba(6, 142, 209, 0.35);
}
.la-b {
  width: 220px;
  height: 220px;
  right: 10%;
  bottom: 18%;
  background: rgba(5, 65, 139, 0.4);
  animation-delay: -4s;
}
.la-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(6, 142, 209, 0.12);
  box-shadow:
    0 0 0 40px rgba(6, 142, 209, 0.03),
    0 0 0 90px rgba(6, 142, 209, 0.02);
  animation: laPulse 6s ease-in-out infinite;
}
@keyframes laFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.06); }
}
@keyframes laPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

.back-link {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-3);
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--white);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

.login-card {
  position: relative;
  width: 100%;
  padding: 2.2rem 2rem 2rem;
  border-radius: 28px;
  border: 1px solid rgba(6, 142, 209, 0.22);
  background:
    linear-gradient(165deg, rgba(14, 34, 64, 0.88) 0%, rgba(5, 12, 24, 0.94) 100%);
  backdrop-filter: blur(22px) saturate(1.2);
  text-align: center;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, min-height 0.35s ease;
}

.login-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.lp-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-3);
  opacity: 0.55;
  transition: color 0.25s, opacity 0.25s;
}
.lp-step i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-style: normal;
  font-size: 0.68rem;
  border: 1px solid rgba(210, 210, 211, 0.2);
  background: rgba(0, 0, 0, 0.35);
}
.lp-step.is-on {
  opacity: 1;
  color: var(--blue-2, #38bdf8);
}
.lp-step.is-on i {
  border-color: rgba(6, 142, 209, 0.55);
  background: rgba(6, 142, 209, 0.25);
  box-shadow: 0 0 14px rgba(6, 142, 209, 0.35);
}
.lp-step.is-done {
  opacity: 0.9;
  color: #34d399;
}
.lp-step.is-done i {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.15);
}
.lp-line {
  width: 28px;
  height: 1px;
  background: rgba(210, 210, 211, 0.2);
}

.login-found-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  margin: 0 auto 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: #6ee7b7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.found-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
  flex-shrink: 0;
}

.login-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.25rem;
}
.btn-ghost-panel {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--silver-3);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.35rem;
  transition: color 0.2s;
}
.btn-ghost-panel:hover {
  color: var(--white);
}

.login-step-form {
  animation: stepIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), transparent);
}
.login-card.is-searching {
  min-height: 420px;
  display: grid;
  place-items: center;
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(6, 142, 209, 0.35),
    0 0 60px rgba(6, 142, 209, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.login-idle {
  width: 100%;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.login-idle.is-out {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.login-searching {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 1rem 0.5rem;
  animation: searchIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.login-searching[hidden] {
  display: none !important;
}
@keyframes searchIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.login-shell.is-leaving {
  opacity: 0;
  transform: translateY(-18px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.panel-login.is-leaving .login-atmosphere {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-enter {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.btn-enter:disabled {
  opacity: 0.75;
  cursor: wait;
}
.btn-enter .btn-spinner {
  align-items: center;
  gap: 0.5rem;
}
.btn-enter .btn-spinner[hidden] {
  display: none !important;
}
.btn-enter .btn-spinner:not([hidden]) {
  display: inline-flex;
}
.btn-enter .btn-label[hidden] {
  display: none !important;
}
.btn-spinner-ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.login-card .field + .field {
  margin-top: 0.15rem;
}
.login-card .field-error:not(:empty) {
  display: block;
  margin: 0.35rem 0 0.75rem;
  text-align: left;
}

/* Dash (sesión activa — sin caja de búsqueda) */
.panel-dash {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  animation: dashIn 0.55s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}
@keyframes dashIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.panel-page.is-dash .panel-login {
  display: none !important;
}

.dash-hero-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(6, 142, 209, 0.18);
  background:
    linear-gradient(180deg, rgba(4, 14, 28, 0.94) 0%, rgba(2, 8, 18, 0.88) 100%);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.dash-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem clamp(1.15rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.dash-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.dash-avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #0aa3e8, #05418b 70%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 4px rgba(6, 142, 209, 0.12),
    0 14px 32px rgba(6, 142, 209, 0.35);
}
.dash-identity-copy {
  min-width: 0;
}
.dash-identity-copy h1 {
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 28rem);
}
.dash-identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.welcome-chip.is-phase {
  color: var(--silver-1);
  border-color: rgba(210, 210, 211, 0.16);
}

.dash-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.topbar-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.login-brand {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.login-logo {
  max-width: min(220px, 72vw);
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(6, 142, 209, 0.25));
}

.dash-brand .brand-logo {
  max-height: 38px;
  max-width: 180px;
}

.login-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.45rem;
}

.login-card h1 {
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.login-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--silver-2);
  margin-bottom: 1.85rem;
  line-height: 1.65;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.login-card .field {
  text-align: left;
  margin-bottom: 1.25rem;
}
.login-card .field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-3);
}

/* Search field */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 16px;
  border: 1px solid rgba(210, 210, 211, 0.14);
  background: rgba(0, 0, 0, 0.38);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.3s, background 0.25s;
}
.search-wrap:focus-within {
  border-color: rgba(6, 142, 209, 0.55);
  background: rgba(0, 0, 0, 0.5);
  box-shadow:
    0 0 0 4px rgba(6, 142, 209, 0.12),
    0 12px 32px rgba(6, 142, 209, 0.12);
}
.search-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  color: var(--blue-2, #38bdf8);
  opacity: 0.85;
  transition: transform 0.35s ease, color 0.25s, opacity 0.25s;
}
.search-ico svg {
  width: 20px;
  height: 20px;
}
.search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 1rem 1rem 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text, #fcfcfc);
  outline: none;
  letter-spacing: 0.01em;
}
.search-wrap input::placeholder {
  color: rgba(165, 166, 167, 0.55);
  font-weight: 400;
}

.search-hint {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--silver-3);
  line-height: 1.4;
  transition: color 0.25s, opacity 0.25s;
}
.login-card .field-error:not(:empty) {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: #f87171;
  animation: errShake 0.4s ease;
}
.login-card .field-error:not(:empty) + .search-hint {
  display: none;
}
@keyframes errShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.login-card.is-error-shake {
  animation: cardShake 0.45s ease;
}
@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* Searching radar (solo cuando se muestra #loginSearching) */
.lso-radar {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(6, 142, 209, 0.35);
  background:
    radial-gradient(circle at center, rgba(6, 142, 209, 0.2), transparent 62%),
    rgba(0, 0, 0, 0.35);
  box-shadow:
    0 0 0 12px rgba(6, 142, 209, 0.06),
    0 0 40px rgba(6, 142, 209, 0.2);
  overflow: hidden;
}
.lso-radar::before,
.lso-radar::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.lso-radar::after {
  inset: 38%;
}
.lso-beam {
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(56, 189, 248, 0.45) 50deg,
    transparent 90deg
  );
  animation: radarSpin 1.6s linear infinite;
}
.lso-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
  animation: dotPulse 1.2s ease-in-out infinite;
}
@keyframes radarSpin {
  to { transform: rotate(360deg); }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}
.lso-title {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.lso-email {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue-2, #38bdf8);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.5rem;
}
.lso-steps {
  list-style: none;
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
  text-align: center;
}
.lso-steps li {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--silver-3);
  opacity: 0.35;
  transition: opacity 0.3s, color 0.3s, transform 0.3s;
}
.lso-steps li.is-on {
  opacity: 1;
  color: var(--silver-1, #d2d2d3);
  transform: translateY(-1px);
}
.lso-steps li.is-done {
  opacity: 0.75;
  color: #34d399;
}
.login-card.is-found .lso-radar {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 0 12px rgba(52, 211, 153, 0.08), 0 0 40px rgba(52, 211, 153, 0.25);
}
.login-card.is-found .lso-dot {
  background: #34d399;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.85);
}
.login-card.is-found .lso-beam {
  animation: none;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.35), transparent 65%);
}

/* Dashboard header (legacy — replaced by site header + dash-bar) */
.dash-header { display: none; }

.dash-brand .brand-global,
.dash-brand .brand-expansion {
  font-size: 0.75rem;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phase-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(6, 142, 209, 0.4);
  color: var(--blue-bright);
  background: rgba(6, 142, 209, 0.08);
}

.btn-logout {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s;
}

.btn-logout:hover {
  color: var(--white);
}

/* Locked view */
.locked-view {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: 2rem 1.5rem;
}

.locked-card {
  max-width: 480px;
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(210, 210, 211, 0.12);
  background: rgba(15, 35, 68, 0.35);
}

.locked-icon {
  font-size: 1.5rem;
  color: var(--blue-bright);
  margin-bottom: 1rem;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.locked-card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.locked-card > p {
  font-weight: 300;
  color: var(--silver-2);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.locked-countdown {
  font-size: 1.8rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  background: var(--grad-metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 2rem;
}

.locked-hint {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--silver-3);
  line-height: 1.5;
}
.locked-access-link {
  display: inline-flex;
  margin-top: 1rem;
  text-decoration: none;
}

/* Dashboard main */
.dash-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.35rem, 3.5vh, 2.25rem) clamp(1.15rem, 3vw, 2.5rem) 4rem;
}

.welcome-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid rgba(210, 210, 211, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--silver-1);
}
.welcome-chip.is-status.is-active {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}
.welcome-chip.is-status.is-inactive {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

/* Stats */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  padding: 1.25rem 1.1rem;
  border: 1px solid rgba(210, 210, 211, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(15, 35, 68, 0.55), rgba(6, 12, 24, 0.4));
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 142, 209, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.stat-card.accent {
  border-color: rgba(6, 142, 209, 0.35);
  background: rgba(6, 142, 209, 0.08);
}

.stat-card-val {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-card.accent .stat-card-val {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card-lbl {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-3);
}

/* Grid */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.dash-card {
  padding: 1.75rem;
  border: 1px solid rgba(210, 210, 211, 0.1);
  background: rgba(15, 35, 68, 0.25);
  margin-bottom: 1.25rem;
  border-radius: 20px;
}

.dash-card h2 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.card-head h2 {
  margin-bottom: 0;
}
.card-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 142, 209, 0.3);
  color: var(--blue-bright);
  background: rgba(6, 142, 209, 0.1);
}
.card-badge.is-active {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}
.card-badge.is-inactive {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

.dash-card > p,
.card-sub {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--silver-2);
  margin-bottom: 1.1rem;
  line-height: 1.55;
}

.dash-card .affiliate-row {
  margin-bottom: 0.85rem;
}
.link-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.dash-card .btn-share {
  margin-top: 0;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.85rem 0 1.15rem;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(210, 210, 211, 0.1);
  background: rgba(0, 0, 0, 0.25);
}
.profile-avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: var(--grad-blue, linear-gradient(135deg, #068ed1, #05418b));
  box-shadow: 0 8px 20px rgba(6, 142, 209, 0.3);
}
.profile-hero strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}
.profile-hero span {
  font-size: 0.75rem;
  color: var(--silver-3);
}

.profile-list {
  display: grid;
  gap: 0;
}
.profile-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(210, 210, 211, 0.08);
}
.profile-list div:first-child {
  border-top: 0;
  padding-top: 0;
}
.profile-list dt {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-3);
  align-self: center;
}
.profile-list dd {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.mn.is-empty .mn-name.is-slot {
  letter-spacing: 0.04em;
}

/* Affiliates table */

/* Table */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

thead th {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-3);
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid rgba(210, 210, 211, 0.12);
}

tbody td {
  padding: 0.85rem 0.65rem;
  color: var(--silver-1);
  border-bottom: 1px solid rgba(210, 210, 211, 0.06);
  font-weight: 300;
}

tbody tr {
  transition: background 0.25s;
}

tbody tr:hover {
  background: rgba(6, 142, 209, 0.05);
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--silver-3);
  font-size: 0.9rem;
  font-weight: 300;
}

/* Dash roadmap */
.dash-roadmap {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-roadmap li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(210, 210, 211, 0.06);
  opacity: 0.5;
  transition: opacity 0.4s;
}

.dash-roadmap li.is-active {
  opacity: 1;
}

.dash-roadmap li.is-done {
  opacity: 0.75;
}

.drm-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(210, 210, 211, 0.2);
  color: var(--silver-3);
}

.dash-roadmap li.is-active .drm-num {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  background: rgba(6, 142, 209, 0.12);
  box-shadow: 0 0 20px rgba(6, 142, 209, 0.2);
}

.dash-roadmap li.is-done .drm-num {
  border-color: rgba(126, 201, 154, 0.4);
  color: #7ec99a;
}

.drm-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.drm-body p {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--silver-3);
}

.drm-when {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

/* Status pills (tabla + nodos) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.status-pill.is-active {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.status-pill.is-inactive {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

/* ═══════════ BINARY ARENA 3×7 ═══════════ */
.binary-arena {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 1.5rem 1.15rem 1.35rem;
  border-radius: 28px;
  border: 1px solid rgba(6, 142, 209, 0.22);
  background:
    linear-gradient(165deg, rgba(10, 28, 54, 0.92) 0%, rgba(3, 8, 18, 0.96) 55%, rgba(0, 0, 0, 0.9) 100%);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.binary-arena.is-hero {
  margin-top: 0;
  min-height: min(68vh, 720px);
}
.binary-arena-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(6, 142, 209, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 100%, rgba(52, 211, 153, 0.08), transparent 50%),
    radial-gradient(ellipse 35% 30% at 0% 80%, rgba(251, 191, 36, 0.06), transparent 50%),
    linear-gradient(rgba(6, 142, 209, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 142, 209, 0.04) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  animation: arenaPulse 8s ease-in-out infinite;
}
@keyframes arenaPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.binary-arena-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.15rem;
}
.binary-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.35rem;
}
.binary-arena-head h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.binary-lead {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--silver-2);
  max-width: 36rem;
  line-height: 1.55;
}

.binary-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.binary-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}
.lg-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-2);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 210, 211, 0.1);
  background: rgba(0, 0, 0, 0.25);
}
.lg-item i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.lg-item.is-you i {
  background: linear-gradient(135deg, #38bdf8, #068ed1);
  box-shadow: 0 0 10px rgba(6, 142, 209, 0.7);
}
.lg-item.is-active i {
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}
.lg-item.is-inactive i {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
}
.lg-item.is-empty i {
  background: transparent;
  border: 1.5px dashed rgba(210, 210, 211, 0.35);
}

.binary-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 210, 211, 0.12);
  background: rgba(0, 0, 0, 0.35);
}
.bz-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--silver-1);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bz-btn:hover {
  color: #fff;
  background: rgba(6, 142, 209, 0.2);
  border-color: rgba(6, 142, 209, 0.35);
}
.bz-val {
  min-width: 3.2rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--silver-2);
}
.bz-fit {
  font-size: 0.85rem;
}

.binary-meter {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}
.bm-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(210, 210, 211, 0.08);
}
.bm-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #068ed1, #34d399 70%, #fbbf24);
  box-shadow: 0 0 16px rgba(6, 142, 209, 0.45);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.bm-caption {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--silver-3);
  letter-spacing: 0.02em;
}

.binary-viewport {
  position: relative;
  z-index: 1;
  overflow: auto;
  max-height: min(62vh, 640px);
  border-radius: 20px;
  border: 1px solid rgba(6, 142, 209, 0.14);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(6, 142, 209, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(52, 211, 153, 0.05), transparent 50%),
    rgba(0, 0, 0, 0.35);
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 142, 209, 0.4) transparent;
  cursor: grab;
}
.binary-viewport.is-panning {
  cursor: grabbing;
}
.binary-stage {
  min-width: 100%;
  padding: 1.75rem 1.5rem 2.25rem;
  transform-origin: top center;
  transition: transform 0.35s var(--ease, cubic-bezier(0.25, 0.46, 0.45, 0.94));
  will-change: transform;
}

.binary-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.binary-loading[hidden] {
  display: none !important;
}
.binary-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(6, 142, 209, 0.2);
  border-top-color: var(--blue-bright);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.mbin-tree {
  display: flex;
  justify-content: center;
  width: max-content;
  min-width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2.5rem;
}

.xt-error {
  text-align: center;
  color: var(--silver-3);
  padding: 2rem;
}

/* ── Premium nested binary tree ── */
.xt-tree {
  display: flex;
  justify-content: center;
  --xt-line: rgba(6, 142, 209, 0.45);
  --xt-line-soft: rgba(6, 142, 209, 0.18);
}

/* ── Layout por niveles 3×7 (sin anidar vacíos) ── */
.xt-tree.is-levels {
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  width: max-content;
  min-width: 100%;
  padding: 0.5rem 1rem 1.5rem;
}

.xt-level {
  display: flex;
  justify-content: center;
  width: 100%;
}

.xt-level-track {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.45rem, 1.2vw, 1.1rem);
}

.xt-cell {
  flex: 0 0 auto;
}

.xt-tree.is-levels .xt-card {
  --nw: 96px;
}

.xt-tree.is-levels .xt-level[data-level="0"] .xt-card.is-you {
  --nw: 112px;
}

.xt-tree.is-levels .xt-level[data-level="2"] .xt-card,
.xt-tree.is-levels .xt-level[data-level="3"] .xt-card {
  --nw: 88px;
}

.xt-tree.is-levels .xt-level[data-level="4"] .xt-card,
.xt-tree.is-levels .xt-level[data-level="5"] .xt-card,
.xt-tree.is-levels .xt-level[data-level="6"] .xt-card {
  --nw: 78px;
  min-height: 78px;
}

.xt-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.xt-kids {
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 0;
  padding-top: 2.35rem;
  gap: 0;
}

.xt-stem {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 1.15rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.75), var(--xt-line));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(6, 142, 209, 0.35);
  transform-origin: top center;
  animation: xtStemDraw 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.xt-bar {
  position: absolute;
  top: 1.15rem;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--xt-line), var(--xt-line), transparent);
  box-shadow: 0 0 10px rgba(6, 142, 209, 0.25);
  animation: xtBarIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.xt-kids.has-one .xt-branch,
.xt-kids.has-two .xt-branch,
.xt-kids.has-three .xt-branch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 clamp(0.2rem, 0.8vw, 0.65rem);
  min-width: calc(var(--nw, 92px) + 0.35rem);
}

.xt-kids.has-one .xt-bar {
  left: 50%;
  right: 50%;
  opacity: 0;
}
.xt-kids.has-two .xt-bar {
  left: 25%;
  right: 25%;
}

/* Hueco libre compacto bajo ti — NO parece afiliado */
.xt-slot-open {
  width: 64px;
  min-height: 72px;
  margin-top: 0.15rem;
  border-radius: 14px;
  border: 1.5px dashed rgba(125, 211, 252, 0.35);
  background: rgba(6, 142, 209, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: rgba(125, 211, 252, 0.85);
  animation: xtCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.xt-slot-plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.4);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 500;
  color: #7dd3fc;
}
.xt-slot-leg {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.xt-slot-lbl {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.xt-branch.is-vacant {
  min-width: 72px;
}

/* Ocultar tarjetas vacías legacy por si queda cache vieja */
.xt-tree.is-real-only .xt-card.is-empty {
  display: none !important;
}

.xt-kids.has-one .xt-branch::after,
.xt-kids.has-two .xt-branch::after,
.xt-kids.has-three .xt-branch::after {
  content: "";
  position: absolute;
  top: -1.2rem;
  left: 50%;
  width: 2px;
  height: 1.2rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--xt-line), rgba(6, 142, 209, 0.55));
  border-radius: 2px;
}

.xt-kids.has-one .xt-branch::before,
.xt-kids.has-two .xt-branch::before,
.xt-kids.has-three .xt-branch::before {
  display: none;
}

.xt-branch.is-ghost {
  min-width: 0;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}

.xt-tree.is-ternary.is-nested .xt-card {
  --nw: 92px;
}
.xt-tree.is-ternary.is-nested .xt-card.is-you {
  --nw: 108px;
}
.xt-tree.is-ternary.is-nested .xt-kids.has-three .xt-branch {
  min-width: calc(var(--nw, 92px) + 0.35rem);
  padding: 0 clamp(0.2rem, 0.8vw, 0.65rem);
}
.xt-tree.is-ternary.is-nested .xt-node[data-depth="2"] .xt-card,
.xt-tree.is-ternary.is-nested .xt-node[data-depth="3"] .xt-card {
  --nw: 84px;
  min-height: 80px;
}
.xt-tree.is-ternary.is-nested .xt-node[data-depth="4"] .xt-card,
.xt-tree.is-ternary.is-nested .xt-node[data-depth="5"] .xt-card,
.xt-tree.is-ternary.is-nested .xt-node[data-depth="6"] .xt-card {
  --nw: 74px;
  min-height: 72px;
}

@keyframes xtStemDraw {
  from { transform: translateX(-50%) scaleY(0); opacity: 0; }
  to { transform: translateX(-50%) scaleY(1); opacity: 1; }
}
@keyframes xtBarIn {
  from { opacity: 0; transform: scaleX(0.2); }
  to { opacity: 1; transform: scaleX(1); }
}

.xt-card {
  position: relative;
  width: var(--nw, 104px);
  min-height: 96px;
  padding: 0.65rem 0.45rem 0.7rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(210, 210, 211, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.4));
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s,
    box-shadow 0.45s;
  opacity: 0;
  transform: translateY(22px) scale(0.92);
}
.mbin-tree.is-ready .xt-card {
  animation: xtCardIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.07s);
}
@keyframes xtCardIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.xt-card:hover {
  transform: translateY(-6px) scale(1.045);
  z-index: 3;
}

.xt-ring {
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 1px solid transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}
.xt-card:hover .xt-ring {
  opacity: 1;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 24px rgba(6, 142, 209, 0.2);
}

.mn-avatar {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(145deg, #068ed1, #05418b);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 14px rgba(6, 142, 209, 0.3);
}

.mn-leg {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-2, #38bdf8);
  margin-bottom: 0.15rem;
  opacity: 0.9;
}
.mn-name {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.mn-user {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--silver-3);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mn-status {
  display: inline-flex;
  margin-top: 0.4rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Tú (raíz) */
.xt-card.is-you,
.mn.is-you {
  --nw: 118px;
  border-color: rgba(56, 189, 248, 0.55);
  background:
    linear-gradient(160deg, rgba(6, 142, 209, 0.4), rgba(5, 65, 139, 0.5));
  box-shadow:
    0 0 0 3px rgba(6, 142, 209, 0.15),
    0 18px 48px rgba(6, 142, 209, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: youGlow 3.2s ease-in-out infinite;
}
.mbin-tree.is-ready .xt-card.is-you {
  animation:
    xtCardIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    youGlow 3.2s ease-in-out 0.75s infinite;
}
@keyframes youGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(6, 142, 209, 0.12), 0 16px 40px rgba(6, 142, 209, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(6, 142, 209, 0.22), 0 20px 52px rgba(6, 142, 209, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
}
.xt-card.is-you .mn-avatar {
  width: 44px;
  height: 44px;
  font-size: 0.9rem;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.55);
}
.xt-card.is-you .mn-status {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Activo */
.xt-card.is-active:not(.is-you) {
  border-color: rgba(52, 211, 153, 0.42);
  background:
    linear-gradient(160deg, rgba(52, 211, 153, 0.16), rgba(0, 0, 0, 0.38));
}
.xt-card.is-active:not(.is-you):hover {
  border-color: rgba(52, 211, 153, 0.75);
  box-shadow: 0 16px 36px rgba(52, 211, 153, 0.25);
}
.xt-card.is-active .mn-avatar {
  background: linear-gradient(145deg, #34d399, #059669);
  box-shadow: 0 6px 16px rgba(52, 211, 153, 0.35);
}
.xt-card.is-active .mn-status {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

/* Inactivo */
.xt-card.is-inactive:not(.is-you) {
  border-color: rgba(251, 191, 36, 0.38);
  border-style: dashed;
  background:
    linear-gradient(160deg, rgba(251, 191, 36, 0.12), rgba(0, 0, 0, 0.42));
}
.xt-card.is-inactive:not(.is-you):hover {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 14px 32px rgba(251, 191, 36, 0.18);
}
.xt-card.is-inactive .mn-avatar {
  background: linear-gradient(145deg, #fbbf24, #b45309);
  box-shadow: 0 6px 14px rgba(251, 191, 36, 0.25);
}
.xt-card.is-inactive .mn-status {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

/* Slots libres — en posición real del árbol */
.xt-card.is-empty {
  min-height: 92px;
  border-style: dashed;
  border-color: rgba(6, 142, 209, 0.4);
  background:
    linear-gradient(160deg, rgba(6, 142, 209, 0.1), rgba(0, 0, 0, 0.28));
  box-shadow:
    0 0 0 1px rgba(6, 142, 209, 0.08),
    0 12px 28px rgba(6, 142, 209, 0.12);
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.xt-card.is-empty:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 16px 36px rgba(6, 142, 209, 0.28);
}
.xt-radar {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.xt-radar i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: xtRadar 2.4s ease-out infinite;
}
.xt-radar i:nth-child(2) { animation-delay: 0.6s; }
.xt-radar i:nth-child(3) { animation-delay: 1.2s; }
@keyframes xtRadar {
  0% { width: 14px; height: 14px; opacity: 0.7; }
  100% { width: 88px; height: 88px; opacity: 0; }
}
.mn-empty-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px dashed rgba(56, 189, 248, 0.55);
  margin: 0 auto 0.35rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 16px rgba(6, 142, 209, 0.25);
}
.mn-empty-ico::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(125, 211, 252, 0.85);
}
.xt-card.is-empty .mn-name {
  font-size: 0.62rem;
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.xt-slot-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(165, 166, 167, 0.7);
  position: relative;
  z-index: 1;
}

.xt-kids.has-three .xt-branch > .xt-node {
  position: relative;
  z-index: 1;
}

.xt-node[data-depth="2"] .xt-card,
.xt-node[data-depth="3"] .xt-card {
  --nw: 92px;
  min-height: 86px;
}
.xt-node[data-depth="4"] .xt-card,
.xt-node[data-depth="5"] .xt-card,
.xt-node[data-depth="6"] .xt-card {
  --nw: 78px;
  min-height: 78px;
  padding: 0.45rem 0.3rem 0.5rem;
  border-radius: 16px;
}
.xt-node[data-depth="5"] .mn-avatar,
.xt-node[data-depth="6"] .mn-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.6rem;
}
.xt-node[data-depth="5"] .mn-user,
.xt-node[data-depth="6"] .mn-user,
.xt-node[data-depth="5"] .mn-status,
.xt-node[data-depth="6"] .mn-status {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .xt-card,
  .xt-stem,
  .xt-branch::before,
  .xt-radar i,
  .xt-card.is-you {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .mbin-tree.is-ready .xt-card {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .binary-toolbar {
    align-items: flex-start;
    width: 100%;
  }
  .binary-legend {
    justify-content: flex-start;
  }
  .xt-branch {
    padding: 0 0.4rem;
  }
}

@media (max-width: 720px) {
  .dash-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-bar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .dash-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 14px;
    font-size: 1rem;
  }
  .dash-identity-copy h1 {
    max-width: 100%;
    white-space: normal;
  }
  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .binary-arena {
    padding: 1.15rem 0.75rem 1rem;
    border-radius: 20px;
  }
  .binary-arena.is-hero {
    min-height: 0;
  }
  .binary-viewport {
    max-height: 60vh;
  }
  .xt-card {
    --nw: 88px;
  }
  .xt-card.is-you {
    --nw: 96px;
  }
}

/* Activate CTA + banner */
.btn-activate-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #041018;
  background: linear-gradient(135deg, #5eead4, #068ed1 55%, #05418b);
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(6, 142, 209, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-activate-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 34px rgba(6, 142, 209, 0.45);
}
.btn-activate-cta.is-lg {
  font-size: 0.82rem;
  padding: 0.95rem 1.55rem;
}
.btn-activate-cta.is-premium {
  background: linear-gradient(120deg, #fde68a, #fbbf24 40%, #068ed1 100%);
  box-shadow: 0 14px 40px rgba(251, 191, 36, 0.28), 0 10px 28px rgba(6, 142, 209, 0.25);
}
.btn-activate-glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%) rotate(18deg);
  animation: actShine 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.btn-activate-cta > span:not(.btn-activate-glow) {
  position: relative;
  z-index: 1;
}
@keyframes actShine {
  0%, 55% { transform: translateX(-140%) rotate(18deg); }
  100% { transform: translateX(220%) rotate(18deg); }
}
.btn-activate-cta[hidden] {
  display: none !important;
}

.activate-banner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem;
  margin-bottom: 1.35rem;
  padding: clamp(1.35rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.7rem);
  border-radius: 24px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background:
    linear-gradient(135deg, rgba(6, 142, 209, 0.18), rgba(4, 14, 28, 0.92) 42%, rgba(2, 8, 18, 0.96)),
    radial-gradient(ellipse at 90% 20%, rgba(251, 191, 36, 0.14), transparent 55%);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 22px 60px rgba(0, 0, 0, 0.35);
}
.activate-banner[hidden] {
  display: none !important;
}
.activate-banner-glow {
  position: absolute;
  inset: -40% auto auto 35%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%);
  pointer-events: none;
}
.activate-banner-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  pointer-events: none;
}
.activate-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}
.activate-banner-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 0.4rem;
}
.activate-banner h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 750;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.activate-banner p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--silver-2);
  line-height: 1.55;
  margin: 0;
}
.activate-banner-perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  padding: 0;
}
.activate-banner-perks li {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: #bae6fd;
  background: rgba(6, 142, 209, 0.12);
}

.activate-cta-premium {
  position: relative;
  margin: 0.35rem 0 1.5rem;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: linear-gradient(145deg, rgba(8, 24, 44, 0.95), rgba(2, 8, 18, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}
.activate-cta-premium[hidden] {
  display: none !important;
}
.actp-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.actp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
}
.actp-orb-1 {
  width: 220px;
  height: 220px;
  top: -80px;
  right: -40px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
}
.actp-orb-2 {
  width: 180px;
  height: 180px;
  bottom: -70px;
  left: -30px;
  background: radial-gradient(circle, rgba(6, 142, 209, 0.35), transparent 70%);
}
.actp-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.actp-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem;
  padding: clamp(1.4rem, 3.5vw, 2rem);
}
.actp-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fbbf24;
}
.actp-copy h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #f8fafc;
}
.actp-copy p {
  margin: 0;
  max-width: 34rem;
  color: rgba(203, 213, 225, 0.88);
  font-size: 0.92rem;
  line-height: 1.55;
}
.actp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}
.actp-meta span {
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
}

.oficial-entry {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding: clamp(1.3rem, 3vw, 1.7rem);
  border-radius: 24px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  background:
    linear-gradient(135deg, rgba(6, 142, 209, 0.16), rgba(4, 14, 28, 0.94) 50%, rgba(2, 8, 18, 0.98)),
    radial-gradient(ellipse at 100% 0%, rgba(129, 140, 248, 0.18), transparent 55%);
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}
.oficial-entry-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -50px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%);
  pointer-events: none;
}
.oficial-entry-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}
.oficial-entry-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5b4fc;
}
.oficial-entry h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 750;
}
.oficial-entry p {
  margin: 0;
  color: rgba(203, 213, 225, 0.88);
  font-size: 0.9rem;
  line-height: 1.5;
}
.oficial-entry .btn-activate-cta {
  position: relative;
  z-index: 1;
  text-decoration: none;
}
@media (max-width: 720px) {
  .oficial-entry {
    flex-direction: column;
    align-items: flex-start;
  }
  .oficial-entry .btn-activate-cta {
    width: 100%;
    text-align: center;
  }
}

.pay-activity {
  margin: 0 0 1.5rem;
  padding: clamp(1.2rem, 3vw, 1.65rem);
  border-radius: 24px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background:
    linear-gradient(155deg, rgba(8, 28, 48, 0.75), rgba(4, 12, 24, 0.95));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}
.pay-activity-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.pay-activity-head h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 750;
}
.pay-activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1rem;
  margin-top: 1.15rem;
}
.pay-activity-mine,
.pay-activity-aff {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 10, 22, 0.5);
  padding: 1.05rem 1.1rem;
  min-height: 100%;
}
.pay-activity-mine.is-paid {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(160deg, rgba(6, 40, 32, 0.45), rgba(2, 10, 22, 0.55));
}
.pay-activity-mine.is-pending {
  border-color: rgba(251, 191, 36, 0.3);
}
.pam-top,
.paa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.pam-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}
.pam-status,
.paa-chip {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.pam-status.is-paid,
.paa-chip.is-paid {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.pam-status.is-active,
.paa-chip.is-active {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.pam-status.is-pending,
.paa-chip.is-pending {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.pam-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.95rem;
}
.pam-plan {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}
.pam-amount {
  font-size: 0.92rem;
  font-weight: 650;
  color: #7dd3fc;
}
.pam-date {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.9);
}
.pam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.paa-count {
  min-width: 1.6rem;
  height: 1.6rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  color: #041018;
  background: linear-gradient(135deg, #7dd3fc, #068ed1);
}
.paa-empty p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(148, 163, 184, 0.85);
  line-height: 1.45;
}
.paa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.paa-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.4);
}
.paa-item.is-paid {
  border-color: rgba(52, 211, 153, 0.22);
}
.paa-who {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.paa-who strong {
  font-size: 0.88rem;
  color: #f1f5f9;
}
.paa-user {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.8);
}
.paa-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}
.paa-plan,
.paa-when {
  font-size: 0.72rem;
  color: rgba(186, 198, 214, 0.9);
}
@media (max-width: 820px) {
  .pay-activity-grid {
    grid-template-columns: 1fr;
  }
}

.pay-receipt-modal:not([hidden]) {
  z-index: 320;
}
.pay-receipt-panel {
  width: min(100%, 520px);
  max-height: min(92dvh, 720px);
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: linear-gradient(165deg, rgba(8, 32, 28, 0.98), rgba(4, 12, 26, 0.99));
}
.pay-receipt-modal-scroll {
  max-height: min(92dvh, 720px);
  overflow-y: auto;
  padding: clamp(1.25rem, 3.5vw, 1.85rem);
  -webkit-overflow-scrolling: touch;
}
.pay-receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  padding: 0;
}
.pay-receipt-grid > div {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 10, 22, 0.45);
}
.pay-receipt-grid > div.is-wide {
  grid-column: 1 / -1;
}
.pay-receipt-grid dt {
  margin: 0 0 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}
.pay-receipt-grid dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9;
  word-break: break-word;
}
.pay-receipt-grid dd.is-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: #bae6fd;
}
.pay-receipt-grid dd.is-paid {
  color: #6ee7b7;
}
.pay-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.pay-receipt-actions .btn-ghost,
.pay-receipt-actions .btn-share,
.pay-receipt-actions .btn-copy {
  text-decoration: none;
}
.prm-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}
.prm-check {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.35), 0 0 28px rgba(52, 211, 153, 0.35);
  position: relative;
}
.prm-check::before {
  content: "";
  width: 14px;
  height: 8px;
  border-left: 2.5px solid #6ee7b7;
  border-bottom: 2.5px solid #6ee7b7;
  transform: rotate(-45deg) translate(1px, -1px);
}
.prm-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6ee7b7;
}
.prm-hero h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.3rem, 3.5vw, 1.65rem);
  font-weight: 750;
}
.prm-lead {
  margin: 0;
  color: rgba(203, 213, 225, 0.88);
  font-size: 0.9rem;
  line-height: 1.5;
}
.pay-receipt-actions.is-modal {
  justify-content: center;
}

@media (max-width: 720px) {
  .activate-banner,
  .actp-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-activate-cta.is-lg,
  .btn-activate-cta.is-premium {
    width: 100%;
  }
  .pay-receipt-grid {
    grid-template-columns: 1fr;
  }
  .pay-receipt-grid > div.is-wide {
    grid-column: auto;
  }
}

.panel-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(92vw, 420px);
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(6, 142, 209, 0.35);
  background: rgba(4, 14, 28, 0.94);
  color: var(--silver-1);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}
.panel-toast.is-ok {
  border-color: rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}
.panel-toast.is-err {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
.panel-toast[hidden] {
  display: none !important;
}

.payment-status-bar.is-waiting {
  border-color: rgba(6, 142, 209, 0.35);
}
.payment-status-bar.is-ok {
  border-color: rgba(52, 211, 153, 0.45);
}
.payment-status-bar.is-err {
  border-color: rgba(248, 113, 113, 0.4);
}

/* ── Password fields + Pre Lanzamiento setup ── */
.search-wrap.is-password {
  position: relative;
}
.search-wrap.is-password input {
  padding-right: 2.75rem;
}
.pass-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(165, 166, 167, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: color 0.2s ease, background 0.2s ease;
}
.pass-toggle:hover {
  color: #7dd3fc;
  background: rgba(6, 142, 209, 0.12);
}
.pass-toggle:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 1px;
}
.pass-toggle .pass-eye {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
.pass-toggle .pass-eye-off {
  display: none;
}
.pass-toggle.is-on {
  color: #7dd3fc;
}
.pass-toggle.is-on .pass-eye-open {
  display: none;
}
.pass-toggle.is-on .pass-eye-off {
  display: block;
}
/* Legacy CSS-ojo (círculo) — se oculta si hay SVG */
.pass-toggle:has(.pass-eye) .pass-toggle-eye {
  display: none;
}
.pass-toggle-eye {
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
  display: block;
}
.pass-toggle-eye::after {
  content: "";
  position: absolute;
  inset: 25% 20%;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.pass-toggle.is-on .pass-toggle-eye {
  opacity: 0.45;
}

.login-found-chip.is-secure .found-dot {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.65);
}

.setup-pass-modal .modal-backdrop {
  backdrop-filter: blur(14px) saturate(1.15);
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(6, 142, 209, 0.14), transparent 70%),
    rgba(0, 0, 0, 0.9);
  pointer-events: auto;
  cursor: default;
}
.setup-pass-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-width: 460px;
  max-height: min(100%, calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1rem));
  max-height: min(100%, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1rem));
  padding: 0;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(10, 34, 62, 0.97) 0%, rgba(4, 12, 26, 0.99) 55%, rgba(2, 8, 18, 1) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 32px 90px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(6, 142, 209, 0.2);
  text-align: left;
  animation: setupPanelIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes setupPanelIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.setup-pass-ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.setup-pass-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 142, 209, 0.38), transparent 70%);
  top: -70px;
  right: -50px;
  filter: blur(10px);
  animation: setupOrb 7s ease-in-out infinite;
}
.setup-pass-orb-2 {
  width: 160px;
  height: 160px;
  top: auto;
  bottom: -60px;
  left: -40px;
  right: auto;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
  animation-delay: -2.5s;
}
@keyframes setupOrb {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.14); opacity: 1; }
}
.setup-pass-scroll {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: clamp(1.2rem, 3.8vw, 2rem) clamp(1.05rem, 3.8vw, 1.75rem) clamp(1.1rem, 3vw, 1.6rem);
  padding-bottom: max(clamp(1.1rem, 3vw, 1.6rem), env(safe-area-inset-bottom, 0px));
}
.setup-pass-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
.setup-pass-seal {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 0 16px rgba(56, 189, 248, 0.55);
  animation: setupSealPulse 2.4s ease-in-out infinite;
}
@keyframes setupSealPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 0 12px rgba(56, 189, 248, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.28), 0 0 20px rgba(56, 189, 248, 0.7); }
}
.setup-pass-kicker {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.setup-pass-panel h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.28rem, 4.4vw, 1.78rem);
  font-weight: 750;
  color: #f8fafc;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.setup-pass-lead {
  margin: 0 0 1.25rem;
  color: rgba(186, 198, 214, 0.9);
  font-size: clamp(0.84rem, 2.8vw, 0.93rem);
  line-height: 1.55;
}
.setup-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.setup-field-head label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 240, 0.92);
}
.setup-pass-form .field.setup-field {
  margin-bottom: 0.95rem;
}
.setup-pass-form .search-wrap.setup-pass-wrap {
  position: relative;
  background: rgba(2, 10, 22, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 0 0.7rem 0 0.85rem;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.setup-pass-form .search-wrap.setup-pass-wrap:focus-within {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(6, 142, 209, 0.16);
  background: rgba(2, 12, 26, 0.78);
}
.setup-pass-form .search-wrap.setup-pass-wrap.is-match {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}
.setup-pass-form .search-wrap.setup-pass-wrap.is-mismatch {
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
.setup-pass-form .search-wrap.setup-pass-wrap.is-typing:focus-within {
  border-color: rgba(125, 211, 252, 0.45);
}
.setup-pass-form input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #f1f5f9;
  font-size: 0.95rem;
  outline: none;
  min-height: 48px;
  width: 100%;
  letter-spacing: 0.02em;
}
.setup-pass-form input::placeholder {
  color: rgba(148, 163, 184, 0.55);
  letter-spacing: 0;
}
.pass-match-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
  position: relative;
  pointer-events: none;
}
.pass-match-icon.is-match,
.pass-match-icon.is-mismatch {
  opacity: 1;
  transform: scale(1);
}
.pass-match-icon.is-match {
  background: rgba(52, 211, 153, 0.18);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}
.pass-match-icon.is-mismatch {
  background: rgba(248, 113, 113, 0.18);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.3);
}
.pass-match-icon.is-match::before,
.pass-match-icon.is-match::after,
.pass-match-icon.is-mismatch::before,
.pass-match-icon.is-mismatch::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.pass-match-icon.is-match {
  color: #6ee7b7;
}
.pass-match-icon.is-match::before {
  width: 8px;
  height: 2px;
  left: 4px;
  top: 12px;
  transform: rotate(45deg);
}
.pass-match-icon.is-match::after {
  width: 12px;
  height: 2px;
  left: 7px;
  top: 10px;
  transform: rotate(-50deg);
}
.pass-match-icon.is-mismatch {
  color: #fca5a5;
}
.pass-match-icon.is-mismatch::before,
.pass-match-icon.is-mismatch::after {
  width: 10px;
  height: 2px;
  left: 6px;
  top: 10px;
}
.pass-match-icon.is-mismatch::before { transform: rotate(45deg); }
.pass-match-icon.is-mismatch::after { transform: rotate(-45deg); }

.pass-match-status {
  margin: 0.45rem 0 0;
  min-height: 1.15em;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.pass-match-status.is-wait {
  color: rgba(148, 163, 184, 0.85);
}
.pass-match-status.is-match {
  color: #6ee7b7;
}
.pass-match-status.is-mismatch {
  color: #fca5a5;
}
.pass-match-status[hidden] {
  display: none !important;
}

.pass-meter {
  margin-top: 0.55rem;
  height: 5px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.pass-meter-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #f87171;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease, box-shadow 0.28s ease;
}
.pass-meter-bar.is-weak { background: #f87171; box-shadow: 0 0 10px rgba(248, 113, 113, 0.4); }
.pass-meter-bar.is-ok { background: #fbbf24; box-shadow: 0 0 10px rgba(251, 191, 36, 0.35); }
.pass-meter-bar.is-strong { background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, 0.4); }
.pass-meter-bar.is-elite {
  background: linear-gradient(90deg, #22d3ee, #38bdf8, #818cf8);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
}
.pass-meter-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
  min-height: 1em;
  transition: color 0.2s ease;
}
.pass-meter-label.is-s1,
.pass-meter-label.is-s2 { color: #fca5a5; }
.pass-meter-label.is-s3 { color: #fcd34d; }
.pass-meter-label.is-s4 { color: #6ee7b7; }
.pass-meter-label.is-s5 { color: #7dd3fc; }

.pass-rules {
  list-style: none;
  margin: 0.15rem 0 1.05rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pass-rules li {
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.55rem 0.3rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.pass-rules li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.pass-rules li.is-ok {
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
}
.pass-rules li.is-ok::before {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.65);
}

#setupPassBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
}
#setupPassBtn.is-ready:not(:disabled) {
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.35) inset,
    0 12px 36px rgba(6, 142, 209, 0.35);
}
.btn-submit.is-full {
  width: 100%;
  margin-top: 0.15rem;
}
.setup-pass-note {
  margin: 0.95rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.72);
  line-height: 1.45;
}
.setup-pass-modal[hidden] {
  display: none !important;
}
.setup-pass-modal:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Encima del header (z-index 100) y del sticky del dash */
  z-index: 1000;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(0.5rem, env(safe-area-inset-top, 0px))
    max(0.65rem, env(safe-area-inset-right, 0px))
    max(0.5rem, env(safe-area-inset-bottom, 0px))
    max(0.65rem, env(safe-area-inset-left, 0px));
  overflow: hidden;
  box-sizing: border-box;
}

body.is-setup-pass-lock {
  overflow: hidden !important;
  touch-action: none;
}
body.is-setup-pass-lock .header,
body.is-setup-pass-lock .panel-dash,
body.is-setup-pass-lock .panel-login,
body.is-setup-pass-lock .footer {
  pointer-events: none;
  user-select: none;
}

@media (max-width: 480px) {
  .setup-pass-panel {
    width: 100%;
    max-width: none;
    border-radius: 16px;
  }
  .setup-field-head {
    flex-wrap: wrap;
    gap: 0.2rem 0.75rem;
  }
  .pass-rules {
    gap: 0.28rem;
  }
  .pass-rules li {
    font-size: 0.6rem;
    padding: 0.24rem 0.45rem 0.24rem 0.38rem;
  }
  .setup-pass-form .search-wrap.setup-pass-wrap {
    min-height: 48px;
  }
  .setup-pass-form input {
    min-height: 46px;
    font-size: 16px; /* evita zoom iOS */
  }
  .pass-match-status {
    font-size: 0.72rem;
  }
}

@media (max-height: 720px) {
  .setup-pass-lead {
    margin-bottom: 0.85rem;
  }
  .setup-pass-form .field.setup-field {
    margin-bottom: 0.7rem;
  }
  .pass-rules {
    margin-bottom: 0.75rem;
  }
  .setup-pass-note {
    margin-top: 0.65rem;
  }
  .setup-pass-scroll {
    padding-top: 1rem;
  }
}
