@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600;700&family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

@view-transition {
  navigation: auto;
}

::view-transition-old(nexo-shell-header),
::view-transition-new(nexo-shell-header) {
  animation: none !important;
  mix-blend-mode: normal !important;
}

:root {
  --nexo-shell-h: 60px;

  --nx-bg-canvas: #0f1116;
  --nx-bg-surface: #151821;
  --nx-bg-elevated: #1c202b;
  --nx-bg-hover: #232836;
  --nx-bg-glass: rgba(21, 24, 33, 0.84);
  --nx-bg-glass-heavy: rgba(15, 17, 22, 0.96);
  --nx-bg-input: rgba(12, 14, 19, 0.92);

  --nx-border-subtle: rgba(255, 255, 255, 0.07);
  --nx-border-default: rgba(255, 255, 255, 0.12);
  --nx-border-strong: rgba(255, 255, 255, 0.20);
  --nx-border-accent: rgba(255, 122, 89, 0.42);

  --nx-accent: #ff7a59;
  --nx-accent-warm: #e5a952;
  --nx-accent-soft: rgba(255, 122, 89, 0.14);
  --nx-accent-grad: linear-gradient(135deg, #ff7a59 0%, #f08a4b 54%, #e5a952 100%);

  --nx-text-primary: #f3f1ec;
  --nx-text-secondary: #c5cad3;
  --nx-text-muted: #8b93a4;

  --nx-money: #34d399;
  --nx-warn: #f59e0b;
  --nx-danger: #f87171;
  --nx-info: #60a5fa;

  --nx-font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --nx-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --nx-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --nx-shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.28);
  --nx-shadow-md: 0 14px 36px rgba(0, 0, 0, 0.42);
  --nx-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.56);
  --nx-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-nexo-theme="day"] {
  --nx-bg-canvas: #f3f0e8;
  --nx-bg-surface: #fbf9f5;
  --nx-bg-elevated: #eae5da;
  --nx-bg-hover: #e1dbd0;
  --nx-bg-glass: rgba(251, 249, 245, 0.88);
  --nx-bg-glass-heavy: rgba(243, 240, 232, 0.97);
  --nx-bg-input: #ffffff;

  --nx-border-subtle: rgba(20, 24, 33, 0.08);
  --nx-border-default: rgba(20, 24, 33, 0.14);
  --nx-border-strong: rgba(20, 24, 33, 0.24);
  --nx-border-accent: rgba(217, 93, 57, 0.42);

  --nx-accent: #d95d39;
  --nx-accent-warm: #b87924;
  --nx-accent-soft: rgba(217, 93, 57, 0.11);
  --nx-accent-grad: linear-gradient(135deg, #d95d39 0%, #c96f32 55%, #b87924 100%);

  --nx-text-primary: #171a22;
  --nx-text-secondary: #434a59;
  --nx-text-muted: #6d7586;

  --nx-money: #059669;
  --nx-warn: #d97706;
  --nx-danger: #dc2626;
  --nx-info: #2563eb;

  --nx-shadow-sm: 0 6px 18px rgba(20, 24, 33, 0.07);
  --nx-shadow-md: 0 14px 34px rgba(20, 24, 33, 0.11);
  --nx-shadow-lg: 0 24px 56px rgba(20, 24, 33, 0.16);
}

@media (min-width: 2200px) {
  :root { --nexo-shell-h: 66px; }
}

@media (max-width: 920px) {
  :root { --nexo-shell-h: 56px; }
}

/* Reserva idéntica de barra de scroll para 0px de desplazamiento entre Inicio, PCU y Foro */
html {
  background-color: var(--nx-bg-canvas) !important;
  color: var(--nx-text-primary);
  scrollbar-gutter: stable !important;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: clip;
}

.nexo-transit-veil {
  position: fixed;
  top: var(--nexo-shell-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 122, 89, 0.07), transparent 58%),
    var(--nx-bg-canvas);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.09s var(--nx-ease-out);
}

html.nexo-leaving .nexo-transit-veil {
  opacity: 1;
  pointer-events: all;
}

.nexo-global-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.018;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

html[data-nexo-theme="day"] .nexo-global-noise {
  opacity: 0.012;
  background-image: radial-gradient(rgba(15, 17, 22, 0.5) 0.6px, transparent 0.6px);
}

/* === CABECERA CLONADA AL SUB-PIXEL EN INICIO, PCU Y FORO === */
#nexo-shell-header.nexo-shell-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100001 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--nexo-shell-h) !important;
  min-height: var(--nexo-shell-h) !important;
  max-height: var(--nexo-shell-h) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--nx-bg-glass-heavy) !important;
  backdrop-filter: blur(20px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(135%) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--nx-border-subtle) !important;
  box-shadow: var(--nx-shadow-sm) !important;
  font-family: var(--nx-font-sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-sizing: border-box !important;
  view-transition-name: nexo-shell-header;
}

#nexo-shell-header.nexo-shell-header *,
#nexo-shell-header.nexo-shell-header *::before,
#nexo-shell-header.nexo-shell-header *::after,
#nexo-shell-drawer.nexo-shell-drawer *,
#nexo-shell-drawer.nexo-shell-drawer *::before,
#nexo-shell-drawer.nexo-shell-drawer *::after {
  box-sizing: border-box !important;
}

#nexo-shell-header svg,
#nexo-shell-drawer svg {
  display: block !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

#nexo-shell-header.nexo-shell-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 122, 89, 0.28) 32%,
    rgba(229, 169, 82, 0.34) 50%,
    rgba(255, 122, 89, 0.28) 68%,
    transparent 100%
  );
  pointer-events: none;
}

#nexo-shell-header .nexo-shell-inner {
  width: 100% !important;
  max-width: 1480px !important;
  height: 100% !important;
  margin: 0 auto !important;
  padding: 0 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

#nexo-shell-header .nexo-shell-left {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#nexo-shell-header .nexo-shell-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  text-decoration: none !important;
  color: var(--nx-text-primary) !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#nexo-shell-header .nexo-shell-logo-ring,
.nexo-ai-modal .nexo-shell-logo-ring {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  padding: 1.5px !important;
  background: linear-gradient(140deg, rgba(255, 122, 89, 0.72), rgba(229, 169, 82, 0.52)) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

#nexo-shell-header .nexo-shell-logo-ring img,
.nexo-ai-modal .nexo-shell-logo-ring img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 8.5px !important;
  object-fit: cover !important;
  background: #101218 !important;
  display: block !important;
  margin: 0 !important;
  border: 0 !important;
}

#nexo-shell-header .nexo-shell-brand-txt {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

#nexo-shell-header .nexo-shell-brand-txt strong {
  display: block !important;
  font-family: var(--nx-font-display) !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.04 !important;
  color: var(--nx-text-primary) !important;
  margin: 0 !important;
}

#nexo-shell-header .nexo-shell-brand-txt small {
  display: block !important;
  font-family: var(--nx-font-mono) !important;
  font-size: 9.6px !important;
  font-weight: 700 !important;
  letter-spacing: 0.19em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
  color: var(--nx-accent) !important;
  margin: 2.5px 0 0 0 !important;
}

#nexo-shell-header .nexo-shell-nav {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#nexo-shell-header .nexo-shell-link,
#nexo-shell-drawer .nexo-shell-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 35px !important;
  padding: 0 15px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  font-family: var(--nx-font-sans) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--nx-text-secondary) !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease !important;
  white-space: nowrap !important;
}

#nexo-shell-header .nexo-shell-link:hover,
#nexo-shell-drawer .nexo-shell-link:hover {
  color: var(--nx-text-primary) !important;
  background: var(--nx-bg-elevated) !important;
}

#nexo-shell-header .nexo-shell-link.active,
#nexo-shell-drawer .nexo-shell-link.active {
  color: var(--nx-text-primary) !important;
  background: var(--nx-accent-soft) !important;
  border-color: var(--nx-border-accent) !important;
}

#nexo-shell-header .nexo-shell-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#nexo-shell-header .nexo-shell-auth-slot,
#nexo-shell-drawer .nexo-shell-auth-slot {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#nexo-shell-header .nexo-ai-trigger,
#nexo-shell-drawer .nexo-ai-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6.5px !important;
  height: 35px !important;
  padding: 0 13px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: var(--nx-bg-surface) !important;
  border: 1px solid var(--nx-border-default) !important;
  color: var(--nx-text-primary) !important;
  font-family: var(--nx-font-sans) !important;
  font-size: 12.2px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease !important;
}

#nexo-shell-header .nexo-ai-trigger:hover,
#nexo-shell-drawer .nexo-ai-trigger:hover {
  background: var(--nx-accent-soft) !important;
  border-color: var(--nx-border-accent) !important;
  transform: translateY(-1px);
}

#nexo-shell-header .nexo-shell-pulse,
#nexo-shell-drawer .nexo-shell-pulse {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 35px !important;
  padding: 0 13px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: var(--nx-bg-surface) !important;
  border: 1px solid var(--nx-border-default) !important;
  color: var(--nx-text-secondary) !important;
  font-family: var(--nx-font-sans) !important;
  font-size: 12.2px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease !important;
}

#nexo-shell-header .nexo-shell-pulse:hover,
#nexo-shell-drawer .nexo-shell-pulse:hover {
  border-color: var(--nx-border-accent) !important;
  color: var(--nx-text-primary) !important;
  background: var(--nx-bg-elevated) !important;
}

#nexo-shell-header .nexo-shell-dot,
#nexo-shell-drawer .nexo-shell-dot {
  width: 7.5px !important;
  height: 7.5px !important;
  border-radius: 50% !important;
  background: var(--nx-text-muted) !important;
  flex-shrink: 0 !important;
}

#nexo-shell-header .nexo-shell-dot.online,
#nexo-shell-drawer .nexo-shell-dot.online {
  background: var(--nx-money) !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18) !important;
}

#nexo-shell-header .nexo-shell-icon-btn,
#nexo-shell-drawer .nexo-shell-icon-btn,
.nexo-ai-modal .nexo-shell-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 35px !important;
  min-width: 35px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  background: var(--nx-bg-surface) !important;
  border: 1px solid var(--nx-border-default) !important;
  color: var(--nx-text-secondary) !important;
  font-family: var(--nx-font-sans) !important;
  font-size: 12.8px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease !important;
}

#nexo-shell-header .nexo-shell-icon-btn:hover,
#nexo-shell-drawer .nexo-shell-icon-btn:hover,
.nexo-ai-modal .nexo-shell-icon-btn:hover {
  border-color: var(--nx-border-strong) !important;
  color: var(--nx-text-primary) !important;
  background: var(--nx-bg-elevated) !important;
}

#nexo-shell-header .nexo-shell-user-pill,
#nexo-shell-drawer .nexo-shell-user-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 35px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  background: var(--nx-bg-surface) !important;
  border: 1px solid var(--nx-border-default) !important;
  color: var(--nx-text-primary) !important;
  text-decoration: none !important;
  font-family: var(--nx-font-sans) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  transition: border-color 0.15s ease, transform 0.15s ease !important;
}

#nexo-shell-header .nexo-shell-user-pill:hover,
#nexo-shell-drawer .nexo-shell-user-pill:hover {
  border-color: var(--nx-border-accent) !important;
  transform: translateY(-1px);
}

#nexo-shell-header .nexo-shell-cta,
#nexo-shell-drawer .nexo-shell-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 35px !important;
  padding: 0 15px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  background: var(--nx-accent-grad) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #121318 !important;
  font-family: var(--nx-font-sans) !important;
  font-size: 12.8px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 6px 18px rgba(255, 122, 89, 0.22) !important;
  transition: filter 0.15s ease, transform 0.15s ease !important;
}

html[data-nexo-theme="day"] #nexo-shell-header .nexo-shell-cta,
html[data-nexo-theme="day"] #nexo-shell-drawer .nexo-shell-cta {
  color: #ffffff !important;
}

#nexo-shell-header .nexo-shell-cta:hover,
#nexo-shell-drawer .nexo-shell-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

#nexo-shell-header .nexo-shell-burger {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 9px !important;
  background: var(--nx-bg-surface) !important;
  border: 1px solid var(--nx-border-default) !important;
  color: var(--nx-text-primary) !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

#nexo-shell-drawer.nexo-shell-drawer {
  display: none;
  position: fixed !important;
  top: var(--nexo-shell-h) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100000 !important;
  background: var(--nx-bg-glass-heavy) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid var(--nx-border-default) !important;
  box-shadow: var(--nx-shadow-lg) !important;
  padding: 16px 18px 20px !important;
  flex-direction: column !important;
  gap: 14px !important;
  font-family: var(--nx-font-sans) !important;
}

#nexo-shell-drawer.nexo-shell-drawer.open {
  display: flex !important;
}

#nexo-shell-drawer .nexo-drawer-links {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

#nexo-shell-drawer .nexo-drawer-links .nexo-shell-link {
  justify-content: center !important;
  min-height: 42px !important;
  background: var(--nx-bg-surface) !important;
  border-color: var(--nx-border-subtle) !important;
}

#nexo-shell-drawer .nexo-drawer-links .nexo-shell-link.active {
  background: var(--nx-accent-soft) !important;
  border-color: var(--nx-border-accent) !important;
}

#nexo-shell-drawer .nexo-drawer-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--nx-border-subtle) !important;
}

.nexo-rank-tag {
  font-family: var(--nx-font-mono) !important;
  font-size: 10.4px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 3.5px 7.5px !important;
  border-radius: 6px !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  border: 1px solid var(--nx-border-default) !important;
  background: var(--nx-bg-elevated) !important;
  color: var(--nx-text-primary) !important;
  white-space: nowrap !important;
}

.nexo-rank-tag[data-rank="Fundador"]          { background: rgba(229, 169, 82, 0.18) !important; border-color: rgba(229, 169, 82, 0.55) !important; color: #f6d592 !important; }
.nexo-rank-tag[data-rank="Administrador"]     { background: rgba(239, 68, 68, 0.16) !important;  border-color: rgba(239, 68, 68, 0.50) !important;  color: #fca5a5 !important; }
.nexo-rank-tag[data-rank="Moderador Global"]  { background: rgba(56, 189, 248, 0.16) !important; border-color: rgba(56, 189, 248, 0.48) !important; color: #bae6fd !important; }
.nexo-rank-tag[data-rank="Moderador 2"]       { background: rgba(52, 211, 153, 0.16) !important; border-color: rgba(52, 211, 153, 0.48) !important; color: #a7f3d0 !important; }
.nexo-rank-tag[data-rank="Moderador 1"]       { background: rgba(245, 158, 11, 0.16) !important; border-color: rgba(245, 158, 11, 0.48) !important; color: #fde68a !important; }
.nexo-rank-tag[data-rank="Soporte 2"]         { background: rgba(148, 163, 184, 0.18) !important; border-color: rgba(148, 163, 184, 0.45) !important; color: #e2e8f0 !important; }
.nexo-rank-tag[data-rank="Soporte 1"]         { background: rgba(100, 116, 139, 0.22) !important; border-color: rgba(148, 163, 184, 0.35) !important; color: #cbd5e1 !important; }
.nexo-rank-tag[data-rank="Nexo Cero Booster"] { background: rgba(255, 122, 89, 0.16) !important; border-color: rgba(255, 122, 89, 0.48) !important; color: #ffbfa8 !important; }
.nexo-rank-tag[data-rank="Super VIP"]         { background: rgba(245, 158, 11, 0.20) !important; border-color: rgba(245, 158, 11, 0.55) !important; color: #fde68a !important; }
.nexo-rank-tag[data-rank="VIP"]               { background: rgba(217, 119, 6, 0.16) !important;  border-color: rgba(234, 179, 8, 0.48) !important;  color: #fef08a !important; }
.nexo-rank-tag[data-rank="NexoV - Beta"]      { background: rgba(16, 185, 129, 0.16) !important; border-color: rgba(52, 211, 153, 0.48) !important; color: #a7f3d0 !important; }
.nexo-rank-tag[data-rank="Usuario"],
.nexo-rank-tag[data-rank="Ciudadano"]         { background: rgba(96, 165, 250, 0.14) !important; border-color: rgba(96, 165, 250, 0.40) !important; color: #bfdbfe !important; }

html[data-nexo-theme="day"] .nexo-rank-tag {
  color: #1e293b !important;
}

@media (max-width: 1180px) {
  #nexo-shell-header .nexo-shell-pulse-label { display: none !important; }
}

@media (max-width: 920px) {
  #nexo-shell-header .nexo-shell-inner { padding: 0 14px !important; }
  #nexo-shell-header .nexo-shell-nav,
  #nexo-shell-header .nexo-shell-desktop-only { display: none !important; }
  #nexo-shell-header .nexo-shell-burger { display: inline-flex !important; }
  #nexo-shell-header .nexo-shell-user-pill .nexo-rank-tag { display: none !important; }
}

@media (max-width: 420px) {
  #nexo-shell-drawer .nexo-drawer-links { grid-template-columns: 1fr !important; }
  #nexo-shell-header .nexo-shell-brand-txt small { display: none !important; }
}

/* Modal Ventanilla de Atención Ciudadana */
.nexo-ai-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100002;
  background: rgba(8, 10, 14, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.18s ease;
}
.nexo-ai-modal-backdrop.hidden { display: none !important; opacity: 0; }
.nexo-ai-modal {
  width: min(688px, 94vw);
  background: var(--nx-bg-surface);
  border: 1px solid var(--nx-border-default);
  border-radius: 17px;
  padding: 22px 25px;
  box-shadow: var(--nx-shadow-lg);
  color: var(--nx-text-primary);
  font-family: var(--nx-font-sans);
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.nexo-ai-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.nexo-ai-chip {
  background: var(--nx-bg-elevated);
  border: 1px solid var(--nx-border-subtle);
  color: var(--nx-text-secondary);
  font-family: var(--nx-font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.nexo-ai-chip:hover {
  border-color: var(--nx-border-accent);
  background: var(--nx-accent-soft);
  color: var(--nx-text-primary);
}
.nexo-ai-input-row { display: flex; gap: 8px; }
.nexo-ai-input-row input {
  flex: 1;
  background: var(--nx-bg-input);
  border: 1px solid var(--nx-border-default);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--nx-text-primary);
  font-family: var(--nx-font-sans);
  font-size: 13.6px;
  outline: none;
}
.nexo-ai-input-row input:focus { border-color: var(--nx-accent); }
.nexo-ai-send {
  background: var(--nx-accent-grad);
  border: none;
  color: #121318;
  font-family: var(--nx-font-sans);
  font-weight: 800;
  font-size: 12.8px;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
}
html[data-nexo-theme="day"] .nexo-ai-send { color: #ffffff; }
.nexo-ai-reply {
  background: var(--nx-bg-canvas);
  border: 1px solid var(--nx-border-subtle);
  border-radius: 12px;
  padding: 16px 18px !important;
  font-size: 13.6px;
  line-height: 1.6 !important;
  color: var(--nx-text-secondary);
  white-space: normal !important;
  max-height: 350px !important;
  overflow-y: auto !important;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.nexo-ai-para { margin: 0; color: var(--nx-text-secondary); font-size: 13.5px; }
.nexo-ai-sec-head {
  margin-top: 5px;
  padding: 6px 11px;
  background: var(--nx-accent-soft);
  border-left: 3px solid var(--nx-accent);
  border-radius: 6px;
  font-family: var(--nx-font-display);
  font-size: 11.2px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-text-primary);
}
.nexo-ai-bullet-card {
  background: var(--nx-bg-surface);
  border: 1px solid var(--nx-border-subtle);
  border-left: 3px solid var(--nx-accent-warm);
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nexo-ai-bullet-title { font-size: 13.6px; color: var(--nx-text-primary); font-weight: 600; }
.nexo-ai-bullet-body { margin: 0; font-size: 12.8px; color: var(--nx-text-secondary); line-height: 1.55; }
.nexo-ai-money { color: var(--nx-money); font-weight: 700; font-variant-numeric: tabular-nums; }
.nexo-ai-code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--nx-bg-elevated);
  border: 1px solid var(--nx-border-default);
  color: var(--nx-text-primary);
  font-family: var(--nx-font-mono);
  font-size: 12px;
  font-weight: 600;
}
