/*! ═══════════════════════════════════════════════════════════════════
    CMUI-X  ·  Cepha Material UI — eXperimental  ·  v1.1.0
    ═══════════════════════════════════════════════════════════════════
    Design tokens · Aurora Mesh · Liquid Components · Holographic FX
    Neural Grid · Zero-Gravity Motion · Cepha Brand Identity
    (c) 2026 sbay-dev — from the future of the web
    ═══════════════════════════════════════════════════════════════════ */

/* ── §1  DESIGN TOKENS ────────────────────────────────────────────── */

:root {
  /* Aurora palette */
  --cx-aurora-1: #0f0c29;
  --cx-aurora-2: #302b63;
  --cx-aurora-3: #24243e;
  --cx-void:     #07060e;
  --cx-surface:  rgba(15, 14, 30, 0.85);
  --cx-glass:    rgba(255, 255, 255, 0.04);
  --cx-glass-border: rgba(255, 255, 255, 0.08);

  /* Neon accents */
  --cx-neon-cyan:    #00f0ff;
  --cx-neon-violet:  #bf5af2;
  --cx-neon-lime:    #30d158;
  --cx-neon-amber:   #ff9f0a;
  --cx-neon-rose:    #ff375f;
  --cx-neon-blue:    #5e5ce6;

  /* Cepha Brand Spectrum (circuit-tree logo palette) */
  --cx-brand-green:  #2dd45b;
  --cx-brand-orange: #f5a623;
  --cx-brand-gold:   #c9b171;
  --cx-brand-blue:   #4a90d9;
  --cx-brand-purple: #9b59b6;
  --cx-brand-red:    #e74c3c;
  --cx-brand-spectrum: linear-gradient(90deg,
    var(--cx-brand-green),
    var(--cx-brand-orange),
    var(--cx-brand-gold),
    var(--cx-brand-blue),
    var(--cx-brand-purple),
    var(--cx-brand-red)
  );

  /* Glow intensities */
  --cx-glow-sm: 0 0 8px;
  --cx-glow-md: 0 0 20px;
  --cx-glow-lg: 0 0 40px;
  --cx-glow-xl: 0 0 80px;

  /* Typography */
  --cx-font: 'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif;
  --cx-font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;
  --cx-font-ar: 'Tajawal', 'Noto Kufi Arabic', var(--cx-font);

  /* Spacing scale */
  --cx-space-xs: 4px;
  --cx-space-sm: 8px;
  --cx-space-md: 16px;
  --cx-space-lg: 24px;
  --cx-space-xl: 40px;
  --cx-space-2xl: 64px;

  /* Radii */
  --cx-radius-sm: 8px;
  --cx-radius-md: 14px;
  --cx-radius-lg: 20px;
  --cx-radius-xl: 28px;
  --cx-radius-pill: 100px;
  --cx-radius-circle: 50%;

  /* Timing */
  --cx-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --cx-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --cx-ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --cx-duration-fast: 200ms;
  --cx-duration-normal: 350ms;
  --cx-duration-slow: 600ms;

  /* Shadows */
  --cx-shadow-float: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05);
  --cx-shadow-lift:  0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.08);
  --cx-shadow-neon:  0 0 30px rgba(0, 240, 255, 0.15);
}

/* ── §2  AURORA MESH BACKGROUND ───────────────────────────────────── */

.cx-aurora {
  position: fixed; inset: 0; z-index: -1;
  background: var(--cx-void);
  overflow: hidden;
}
.cx-aurora::before,
.cx-aurora::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.35;
  animation: cx-aurora-drift 20s ease-in-out infinite alternate;
}
.cx-aurora::before {
  width: 60vw; height: 60vw; top: -20%; left: -10%;
  background: radial-gradient(circle, var(--cx-neon-violet), transparent 70%);
}
.cx-aurora::after {
  width: 50vw; height: 50vw; bottom: -15%; right: -10%;
  background: radial-gradient(circle, var(--cx-neon-cyan), transparent 70%);
  animation-delay: -10s;
  animation-duration: 25s;
}
.cx-aurora__orb {
  position: absolute; border-radius: 50%; filter: blur(100px);
  opacity: 0.2; animation: cx-aurora-pulse 15s ease-in-out infinite;
}
.cx-aurora__orb--1 {
  width: 40vw; height: 40vw; top: 30%; left: 40%;
  background: radial-gradient(circle, var(--cx-neon-lime), transparent 70%);
  animation-delay: -5s;
}
.cx-aurora__orb--2 {
  width: 35vw; height: 35vw; top: 60%; left: 10%;
  background: radial-gradient(circle, var(--cx-neon-amber), transparent 70%);
  animation-delay: -12s; animation-duration: 18s;
}

@keyframes cx-aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5vw, 3vh) scale(1.15); }
}
@keyframes cx-aurora-pulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%      { opacity: 0.3;  transform: scale(1.2); }
}

/* ── §3  BASE & TYPOGRAPHY ────────────────────────────────────────── */

.cx-body {
  margin: 0; padding: 0;
  font-family: var(--cx-font);
  color: #e8eaed; background: var(--cx-void);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[dir="rtl"] .cx-body,
.cx-body[dir="rtl"] {
  font-family: var(--cx-font-ar);
}

.cx-h1, .cx-h2, .cx-h3, .cx-h4 {
  margin: 0 0 var(--cx-space-md);
  font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--cx-neon-cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cx-h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; }
.cx-h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.2; }
.cx-h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
.cx-h4 { font-size: 1.1rem; }

.cx-text-glow {
  text-shadow: var(--cx-glow-sm) var(--cx-neon-cyan);
}
.cx-text-mono {
  font-family: var(--cx-font-mono); font-size: 0.9em;
}
.cx-text-muted { color: rgba(255,255,255,0.45); }
.cx-text-neon  { color: var(--cx-neon-cyan); }
.cx-text-violet { color: var(--cx-neon-violet); }
.cx-text-lime  { color: var(--cx-neon-lime); }

/* ── §4  GLASS PANELS ─────────────────────────────────────────────── */

.cx-glass {
  background: var(--cx-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--cx-glass-border);
  border-radius: var(--cx-radius-lg);
  box-shadow: var(--cx-shadow-float);
  transition: transform var(--cx-duration-normal) var(--cx-ease-spring),
              box-shadow var(--cx-duration-normal) var(--cx-ease-smooth),
              border-color var(--cx-duration-fast);
}
.cx-glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--cx-shadow-lift);
  border-color: rgba(255,255,255,0.12);
}

/* ── §5  HOLOGRAPHIC CARDS ────────────────────────────────────────── */

.cx-card {
  position: relative; overflow: hidden;
  padding: var(--cx-space-lg);
  background: var(--cx-glass);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--cx-glass-border);
  border-radius: var(--cx-radius-lg);
  box-shadow: var(--cx-shadow-float);
  transition: all var(--cx-duration-normal) var(--cx-ease-spring);
}
.cx-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,240,255,0.06) 0%,
    transparent 40%,
    rgba(191,90,242,0.06) 100%
  );
  opacity: 0;
  transition: opacity var(--cx-duration-normal);
}
.cx-card::after {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(0,240,255,0.08) 10%,
    transparent 20%
  );
  animation: cx-holo-spin 8s linear infinite;
  opacity: 0;
  transition: opacity var(--cx-duration-slow);
}
.cx-card:hover::before { opacity: 1; }
.cx-card:hover::after  { opacity: 1; }
.cx-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--cx-shadow-lift), var(--cx-shadow-neon);
  border-color: rgba(0,240,255,0.2);
}

.cx-card__icon {
  font-size: 2.5rem; margin-bottom: var(--cx-space-md);
  display: inline-block;
  filter: drop-shadow(var(--cx-glow-sm) var(--cx-neon-cyan));
  transition: transform var(--cx-duration-normal) var(--cx-ease-bounce);
}
.cx-card:hover .cx-card__icon {
  transform: scale(1.15) rotate(-5deg);
}
.cx-card__title {
  font-size: 1.2rem; font-weight: 600; color: #fff;
  margin-bottom: var(--cx-space-sm);
}
.cx-card__desc {
  font-size: 0.95rem; color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

@keyframes cx-holo-spin {
  to { transform: rotate(360deg); }
}

/* ── §6  LIQUID BUTTONS ───────────────────────────────────────────── */

.cx-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border: none; border-radius: var(--cx-radius-pill);
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  color: #fff; cursor: pointer; overflow: hidden;
  transition: all var(--cx-duration-normal) var(--cx-ease-spring);
  outline: none; text-decoration: none;
  isolation: isolate;
}
.cx-btn::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; opacity: 0;
  transition: opacity var(--cx-duration-fast);
  z-index: -1;
}
.cx-btn:hover { transform: translateY(-2px) scale(1.03); }
.cx-btn:active { transform: translateY(0) scale(0.98); }

/* Primary — cyan glow (background-size shift, no overlay) */
.cx-btn--primary {
  background: linear-gradient(270deg, #00c6ff, #0072ff, #00c6ff);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 4px 20px rgba(0,198,255,0.3);
}
.cx-btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 8px 32px rgba(0,198,255,0.5), var(--cx-glow-md) rgba(0,198,255,0.3);
}

/* Violet */
.cx-btn--violet {
  background: linear-gradient(135deg, #7b2ff7, #c471ed);
  box-shadow: 0 4px 20px rgba(123,47,247,0.3);
}
.cx-btn--violet:hover {
  box-shadow: 0 8px 32px rgba(123,47,247,0.5), var(--cx-glow-md) rgba(123,47,247,0.3);
}

/* Lime */
.cx-btn--lime {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  box-shadow: 0 4px 20px rgba(56,239,125,0.25);
}
.cx-btn--lime:hover {
  box-shadow: 0 8px 32px rgba(56,239,125,0.4), var(--cx-glow-md) rgba(56,239,125,0.25);
}

/* Ghost — outline with glow on hover */
.cx-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: none;
}
.cx-btn--ghost:hover {
  border-color: var(--cx-neon-cyan);
  box-shadow: inset 0 0 20px rgba(0,240,255,0.08), var(--cx-glow-sm) rgba(0,240,255,0.2);
  background: rgba(0,240,255,0.05);
}

/* Danger */
.cx-btn--danger {
  background: linear-gradient(135deg, #ff375f, #ff6b6b);
  box-shadow: 0 4px 20px rgba(255,55,95,0.3);
}

/* Button sizes */
.cx-btn--sm { padding: 8px 18px; font-size: 0.85rem; }
.cx-btn--lg { padding: 16px 36px; font-size: 1.1rem; }

/* Ripple effect */
.cx-btn .cx-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0); animation: cx-ripple-expand 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes cx-ripple-expand {
  to { transform: scale(4); opacity: 0; }
}

/* ── §7  NAVIGATION ───────────────────────────────────────────────── */

.cx-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; gap: var(--cx-space-lg);
  padding: var(--cx-space-md) var(--cx-space-xl);
  background: rgba(7,6,14,0.7);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--cx-duration-normal);
}
.cx-nav--scrolled {
  background: rgba(7,6,14,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.cx-nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 700; color: #fff;
  text-decoration: none; letter-spacing: -0.01em;
}
.cx-nav__brand-icon {
  font-size: 1.5rem;
  filter: drop-shadow(var(--cx-glow-sm) var(--cx-neon-cyan));
  animation: cx-brand-pulse 3s ease-in-out infinite;
}

.cx-nav__links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
[dir="rtl"] .cx-nav__links { margin-left: 0; margin-right: auto; }

.cx-nav__link {
  position: relative; padding: 8px 16px;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  border-radius: var(--cx-radius-sm);
  transition: color var(--cx-duration-fast), background var(--cx-duration-fast);
}
.cx-nav__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.cx-nav__link--active {
  color: var(--cx-neon-cyan);
}
.cx-nav__link--active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%); width: 20px; height: 2px;
  background: var(--cx-neon-cyan); border-radius: 1px;
  box-shadow: var(--cx-glow-sm) var(--cx-neon-cyan);
}

@keyframes cx-brand-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px var(--cx-neon-cyan)); }
  50%      { filter: drop-shadow(0 0 12px var(--cx-neon-cyan)); }
}

/* ── §8  GRID SYSTEM ──────────────────────────────────────────────── */

.cx-container {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 var(--cx-space-xl);
}
.cx-grid {
  display: grid; gap: var(--cx-space-lg);
}
.cx-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cx-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cx-grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

@media (max-width: 768px) {
  .cx-grid--2, .cx-grid--3, .cx-grid--4 {
    grid-template-columns: 1fr;
  }
}

.cx-flex { display: flex; }
.cx-flex--center { align-items: center; justify-content: center; }
.cx-flex--between { justify-content: space-between; }
.cx-flex--col { flex-direction: column; }
.cx-flex--wrap { flex-wrap: wrap; }
.cx-gap-sm { gap: var(--cx-space-sm); }
.cx-gap-md { gap: var(--cx-space-md); }
.cx-gap-lg { gap: var(--cx-space-lg); }

/* ── §9  HERO SECTION ─────────────────────────────────────────────── */

.cx-hero {
  position: relative; min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(80px + var(--cx-space-2xl)) var(--cx-space-xl) var(--cx-space-2xl);
}
.cx-hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: var(--cx-radius-pill);
  background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.2);
  color: var(--cx-neon-cyan); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: var(--cx-space-lg);
  animation: cx-badge-glow 3s ease-in-out infinite;
}
.cx-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: var(--cx-space-lg);
  background: linear-gradient(135deg, #fff 0%, var(--cx-neon-cyan) 50%, var(--cx-neon-violet) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cx-text-shimmer 4s linear infinite;
}
.cx-hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.55); max-width: 600px;
  margin-bottom: var(--cx-space-xl);
}
.cx-hero__actions {
  display: flex; gap: var(--cx-space-md); flex-wrap: wrap; justify-content: center;
}

@keyframes cx-text-shimmer {
  to { background-position: 200% center; }
}
@keyframes cx-badge-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(0,240,255,0.1); }
  50%      { box-shadow: 0 0 20px rgba(0,240,255,0.25); }
}

/* ── §10  INPUTS & FORMS ──────────────────────────────────────────── */

.cx-input-group {
  position: relative; margin-bottom: var(--cx-space-lg);
}
.cx-input {
  width: 100%; padding: 14px 18px; padding-top: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--cx-radius-md);
  color: #e8eaed; font-family: inherit; font-size: 1rem;
  outline: none;
  transition: border-color var(--cx-duration-fast),
              box-shadow var(--cx-duration-fast),
              background var(--cx-duration-fast);
}
.cx-input:focus {
  border-color: var(--cx-neon-cyan);
  box-shadow: 0 0 0 3px rgba(0,240,255,0.15), var(--cx-glow-sm) rgba(0,240,255,0.1);
  background: rgba(255,255,255,0.06);
}
.cx-input-group .cx-label {
  position: absolute; left: 18px; top: 18px;
  font-size: 0.95rem; color: rgba(255,255,255,0.4);
  pointer-events: none;
  transition: all var(--cx-duration-fast) var(--cx-ease-smooth);
}
[dir="rtl"] .cx-input-group .cx-label { left: auto; right: 18px; }
.cx-input:focus ~ .cx-label,
.cx-input:not(:placeholder-shown) ~ .cx-label {
  top: 6px; font-size: 0.7rem;
  color: var(--cx-neon-cyan); letter-spacing: 0.04em;
}

/* Toggle switch */
.cx-toggle {
  position: relative; display: inline-block; width: 52px; height: 28px;
}
.cx-toggle input { opacity: 0; width: 0; height: 0; }
.cx-toggle__track {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(255,255,255,0.1); border-radius: 14px;
  transition: background var(--cx-duration-fast);
}
.cx-toggle__track::after {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform var(--cx-duration-normal) var(--cx-ease-spring);
}
.cx-toggle input:checked + .cx-toggle__track {
  background: linear-gradient(135deg, var(--cx-neon-cyan), var(--cx-neon-blue));
  box-shadow: var(--cx-glow-sm) rgba(0,240,255,0.3);
}
.cx-toggle input:checked + .cx-toggle__track::after {
  transform: translateX(24px);
}

/* ── §11  BADGES & CHIPS ──────────────────────────────────────────── */

.cx-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: var(--cx-radius-pill);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em;
}
.cx-badge--cyan    { background: rgba(0,240,255,0.12);  color: var(--cx-neon-cyan);   border: 1px solid rgba(0,240,255,0.2); }
.cx-badge--violet  { background: rgba(191,90,242,0.12); color: var(--cx-neon-violet); border: 1px solid rgba(191,90,242,0.2); }
.cx-badge--lime    { background: rgba(48,209,88,0.12);  color: var(--cx-neon-lime);   border: 1px solid rgba(48,209,88,0.2); }
.cx-badge--amber   { background: rgba(255,159,10,0.12); color: var(--cx-neon-amber);  border: 1px solid rgba(255,159,10,0.2); }
.cx-badge--rose    { background: rgba(255,55,95,0.12);  color: var(--cx-neon-rose);   border: 1px solid rgba(255,55,95,0.2); }

.cx-badge--pulse::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: cx-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes cx-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.6); }
}

/* ── §12  PROGRESS & METERS ───────────────────────────────────────── */

.cx-progress {
  position: relative; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.08); overflow: hidden;
}
.cx-progress__bar {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--cx-neon-cyan), var(--cx-neon-violet));
  background-size: 200% 100%;
  animation: cx-progress-flow 2s linear infinite;
  transition: width var(--cx-duration-slow) var(--cx-ease-smooth);
}
@keyframes cx-progress-flow {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Orbital loader */
.cx-loader {
  position: relative; width: 48px; height: 48px;
}
.cx-loader__ring {
  position: absolute; inset: 0;
  border: 2px solid transparent; border-radius: 50%;
  border-top-color: var(--cx-neon-cyan);
  animation: cx-orbit 1.2s linear infinite;
}
.cx-loader__ring:nth-child(2) {
  inset: 4px;
  border-top-color: var(--cx-neon-violet);
  animation-duration: 1.8s;
  animation-direction: reverse;
}
.cx-loader__ring:nth-child(3) {
  inset: 8px;
  border-top-color: var(--cx-neon-lime);
  animation-duration: 2.5s;
}
.cx-loader__core {
  position: absolute; inset: 14px;
  background: radial-gradient(circle, var(--cx-neon-cyan), transparent 70%);
  border-radius: 50%; opacity: 0.5;
  animation: cx-core-pulse 1.5s ease-in-out infinite;
}
@keyframes cx-orbit { to { transform: rotate(360deg); } }
@keyframes cx-core-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 0.7; transform: scale(1.2); }
}

/* ── §13  STATS / METRICS ─────────────────────────────────────────── */

.cx-stat {
  text-align: center; padding: var(--cx-space-lg);
}
.cx-stat__value {
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--cx-neon-cyan), var(--cx-neon-violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.cx-stat__label {
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
  margin-top: var(--cx-space-xs); text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── §14  TABS ────────────────────────────────────────────────────── */

.cx-tabs {
  display: flex; gap: 2px; padding: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--cx-radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.cx-tab {
  flex: 1; padding: 10px 20px;
  background: transparent; border: none; border-radius: var(--cx-radius-sm);
  color: rgba(255,255,255,0.5); font-family: inherit;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: all var(--cx-duration-fast);
}
.cx-tab:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }
.cx-tab--active {
  color: #fff; background: rgba(0,240,255,0.1);
  box-shadow: inset 0 0 0 1px rgba(0,240,255,0.2);
}

/* ── §15  TABLE ───────────────────────────────────────────────────── */

.cx-table-wrap {
  overflow-x: auto; border-radius: var(--cx-radius-lg);
  border: 1px solid var(--cx-glass-border);
}
.cx-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem;
}
.cx-table th {
  padding: 14px 18px; text-align: left;
  font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
[dir="rtl"] .cx-table th { text-align: right; }
.cx-table td {
  padding: 14px 18px; color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--cx-duration-fast);
}
.cx-table tr:hover td {
  background: rgba(0,240,255,0.03);
}

/* ── §16  MODAL (PORTAL) ──────────────────────────────────────────── */

.cx-portal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--cx-duration-normal);
}
.cx-portal-overlay--open { opacity: 1; pointer-events: auto; }

.cx-portal {
  width: 90vw; max-width: 520px;
  background: var(--cx-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--cx-radius-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), var(--cx-shadow-neon);
  padding: var(--cx-space-xl);
  transform: scale(0.92) translateY(20px);
  transition: transform var(--cx-duration-normal) var(--cx-ease-spring);
}
.cx-portal-overlay--open .cx-portal {
  transform: scale(1) translateY(0);
}
.cx-portal__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--cx-space-lg);
}
.cx-portal__close {
  background: rgba(255,255,255,0.06); border: none;
  color: rgba(255,255,255,0.6); font-size: 1.2rem;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--cx-duration-fast);
}
.cx-portal__close:hover {
  background: rgba(255,55,95,0.15); color: var(--cx-neon-rose);
}

/* ── §17  TOAST NOTIFICATIONS ─────────────────────────────────────── */

.cx-toast-container {
  position: fixed; top: 80px; right: var(--cx-space-lg); z-index: 10001;
  display: flex; flex-direction: column; gap: var(--cx-space-sm);
  pointer-events: none;
}
[dir="rtl"] .cx-toast-container { right: auto; left: var(--cx-space-lg); }

.cx-toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; min-width: 300px;
  background: var(--cx-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--cx-radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: auto;
  animation: cx-toast-in 0.4s var(--cx-ease-spring);
}
.cx-toast--info    { border-left: 3px solid var(--cx-neon-cyan); }
.cx-toast--success { border-left: 3px solid var(--cx-neon-lime); }
.cx-toast--warning { border-left: 3px solid var(--cx-neon-amber); }
.cx-toast--error   { border-left: 3px solid var(--cx-neon-rose); }

[dir="rtl"] .cx-toast--info    { border-left: none; border-right: 3px solid var(--cx-neon-cyan); }
[dir="rtl"] .cx-toast--success { border-left: none; border-right: 3px solid var(--cx-neon-lime); }
[dir="rtl"] .cx-toast--warning { border-left: none; border-right: 3px solid var(--cx-neon-amber); }
[dir="rtl"] .cx-toast--error   { border-left: none; border-right: 3px solid var(--cx-neon-rose); }

.cx-toast__icon { font-size: 1.3rem; flex-shrink: 0; }
.cx-toast__text { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.cx-toast--exiting { animation: cx-toast-out 0.3s var(--cx-ease-smooth) forwards; }

@keyframes cx-toast-in {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes cx-toast-out {
  to { opacity: 0; transform: translateX(40px) scale(0.95); }
}

/* ── §18  SCROLL REVEAL ───────────────────────────────────────────── */

.cx-reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity var(--cx-duration-slow) var(--cx-ease-smooth),
              transform var(--cx-duration-slow) var(--cx-ease-spring);
}
.cx-reveal--visible {
  opacity: 1; transform: translateY(0);
}
.cx-reveal--delay-1 { transition-delay: 100ms; }
.cx-reveal--delay-2 { transition-delay: 200ms; }
.cx-reveal--delay-3 { transition-delay: 300ms; }
.cx-reveal--delay-4 { transition-delay: 400ms; }

/* ── §19  SCROLL PROGRESS ─────────────────────────────────────────── */

.cx-scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 10002; background: transparent;
}
.cx-scroll-progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cx-neon-cyan), var(--cx-neon-violet), var(--cx-neon-lime));
  box-shadow: var(--cx-glow-sm) var(--cx-neon-cyan);
  transition: width 50ms linear;
}

/* ── §20  CODE BLOCK ──────────────────────────────────────────────── */

.cx-code {
  position: relative; padding: var(--cx-space-lg);
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--cx-radius-md);
  font-family: var(--cx-font-mono); font-size: 0.85rem;
  color: rgba(255,255,255,0.75); line-height: 1.8;
  overflow-x: auto; white-space: pre;
}
.cx-code__lang {
  position: absolute; top: 8px; right: 12px;
  font-size: 0.65rem; text-transform: uppercase;
  color: rgba(255,255,255,0.25); letter-spacing: 0.1em;
}
[dir="rtl"] .cx-code__lang { right: auto; left: 12px; }

.cx-code .cx-kw   { color: var(--cx-neon-violet); }
.cx-code .cx-str  { color: var(--cx-neon-lime); }
.cx-code .cx-fn   { color: var(--cx-neon-cyan); }
.cx-code .cx-num  { color: var(--cx-neon-amber); }
.cx-code .cx-cmt  { color: rgba(255,255,255,0.25); font-style: italic; }

/* ── §21  DIVIDERS & SPACING ──────────────────────────────────────── */

.cx-divider {
  border: none; height: 1px; margin: var(--cx-space-xl) 0;
  background: linear-gradient(90deg,
    transparent, rgba(0,240,255,0.2) 50%, transparent
  );
}
.cx-spacer--sm { height: var(--cx-space-md); }
.cx-spacer--md { height: var(--cx-space-xl); }
.cx-spacer--lg { height: var(--cx-space-2xl); }

/* ── §22  SECTION HEADERS ─────────────────────────────────────────── */

.cx-section {
  padding: var(--cx-space-2xl) 0;
}
.cx-section__header {
  text-align: center; margin-bottom: var(--cx-space-xl);
}
.cx-section__tag {
  display: inline-block; padding: 4px 12px;
  border-radius: var(--cx-radius-pill);
  background: rgba(191,90,242,0.1);
  border: 1px solid rgba(191,90,242,0.2);
  color: var(--cx-neon-violet);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: var(--cx-space-md);
}
.cx-section__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--cx-neon-violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--cx-space-sm);
}
.cx-section__desc {
  color: rgba(255,255,255,0.45); font-size: 1rem;
  max-width: 550px; margin: 0 auto;
}

/* ── §23  AVATAR & PRESENCE ───────────────────────────────────────── */

.cx-avatar {
  position: relative; display: inline-block;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cx-neon-cyan), var(--cx-neon-violet));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff;
  box-shadow: 0 0 0 2px var(--cx-void), 0 0 0 4px rgba(0,240,255,0.2);
}
.cx-avatar__presence {
  position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--cx-void);
}
.cx-avatar__presence--online  { background: var(--cx-neon-lime); box-shadow: var(--cx-glow-sm) var(--cx-neon-lime); }
.cx-avatar__presence--busy    { background: var(--cx-neon-rose); }
.cx-avatar__presence--away    { background: var(--cx-neon-amber); }

/* ── §24  TIMELINE ────────────────────────────────────────────────── */

.cx-timeline {
  position: relative;
  padding-inline-start: 28px;
}
.cx-timeline::before {
  content: ''; position: absolute;
  inset-inline-start: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--cx-neon-cyan), var(--cx-neon-violet), var(--cx-neon-lime));
}
.cx-timeline__item {
  position: relative;
  padding-bottom: var(--cx-space-xl);
}
.cx-timeline__item:last-child { padding-bottom: 0; }
.cx-timeline__dot {
  position: absolute;
  inset-inline-start: -33px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cx-neon-cyan);
  box-shadow: 0 0 12px var(--cx-neon-cyan);
  border: 2px solid var(--cx-void);
}
.cx-timeline__time {
  font-size: 0.8rem; font-weight: 600;
  color: var(--cx-neon-cyan);
  margin-bottom: var(--cx-space-xs);
  letter-spacing: 0.03em;
}
.cx-timeline__content {
  padding: var(--cx-space-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--cx-radius-md);
  color: rgba(255,255,255,0.88);
  line-height: 1.8;
  font-size: 0.95rem;
}
.cx-timeline__content strong {
  color: #fff;
  font-weight: 700;
}

/* ── §25  FOOTER ─────────────────────────────────────────────────── */

.cx-footer {
  text-align: center; padding: var(--cx-space-2xl) var(--cx-space-xl);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35); font-size: 0.85rem;
}
.cx-footer a {
  color: var(--cx-neon-cyan); text-decoration: none;
}
.cx-footer a:hover { text-decoration: underline; }

/* ── §26  PARTICLES ──────────────────────────────────────────────── */

.cx-particles {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.cx-particle {
  position: absolute; width: 3px; height: 3px;
  background: var(--cx-neon-cyan); border-radius: 50%;
  opacity: 0.4;
  animation: cx-float-up linear infinite;
}
.cx-particle:nth-child(1) { left: 10%; animation-duration: 14s; animation-delay: 0s; }
.cx-particle:nth-child(2) { left: 25%; animation-duration: 18s; animation-delay: -4s; width: 2px; height: 2px; background: var(--cx-neon-violet); }
.cx-particle:nth-child(3) { left: 45%; animation-duration: 12s; animation-delay: -2s; }
.cx-particle:nth-child(4) { left: 60%; animation-duration: 20s; animation-delay: -8s; width: 4px; height: 4px; background: var(--cx-neon-lime); opacity: 0.25; }
.cx-particle:nth-child(5) { left: 75%; animation-duration: 16s; animation-delay: -6s; background: var(--cx-neon-amber); }
.cx-particle:nth-child(6) { left: 90%; animation-duration: 22s; animation-delay: -10s; width: 2px; height: 2px; }

@keyframes cx-float-up {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* ── §27  UTILITY ────────────────────────────────────────────────── */

.cx-p-sm  { padding: var(--cx-space-sm); }
.cx-p-md  { padding: var(--cx-space-md); }
.cx-p-lg  { padding: var(--cx-space-lg); }
.cx-p-xl  { padding: var(--cx-space-xl); }
.cx-mb-sm { margin-bottom: var(--cx-space-sm); }
.cx-mb-md { margin-bottom: var(--cx-space-md); }
.cx-mb-lg { margin-bottom: var(--cx-space-lg); }
.cx-mb-xl { margin-bottom: var(--cx-space-xl); }
.cx-mt-lg { margin-top: var(--cx-space-lg); }
.cx-mt-xl { margin-top: var(--cx-space-xl); }
.cx-text-center { text-align: center; }
.cx-w-full { width: 100%; }
.cx-hidden { display: none !important; }

/* ── §28  REDUCED MOTION ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   NEW COMPONENTS — v1.1.0
   ══════════════════════════════════════════════════════════════════ */

/* ── §29  ACCORDION ──────────────────────────────────────────────── */

.cx-accordion { display: flex; flex-direction: column; gap: 2px; }
.cx-accordion__item {
  background: var(--cx-glass);
  border: 1px solid var(--cx-glass-border);
  border-radius: var(--cx-radius-md);
  overflow: hidden;
  transition: border-color var(--cx-duration-fast);
}
.cx-accordion__item--open {
  border-color: rgba(0,240,255,0.2);
}
.cx-accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; gap: 12px;
  background: none; border: none; cursor: pointer;
  color: #e8eaed; font-family: inherit; font-size: 0.95rem; font-weight: 600;
  transition: background var(--cx-duration-fast);
}
.cx-accordion__trigger:hover { background: rgba(255,255,255,0.03); }
.cx-accordion__arrow {
  font-size: 0.8rem; transition: transform 0.35s ease;
  color: rgba(255,255,255,0.4);
}
.cx-accordion__item--open .cx-accordion__arrow { transform: rotate(180deg); color: var(--cx-neon-cyan); }
.cx-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.cx-accordion__panel > * {
  overflow: hidden;
  min-height: 0;
}
.cx-accordion__item--open .cx-accordion__panel { grid-template-rows: 1fr; }
.cx-accordion__body {
  padding: 0 20px;
  color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7;
  transition: padding 0.35s ease;
}
.cx-accordion__item--open .cx-accordion__body { padding: 0 20px 16px; }

/* ── §30  ALERTS ─────────────────────────────────────────────────── */

.cx-alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px;
  border-radius: var(--cx-radius-md);
  border: 1px solid transparent;
  font-size: 0.9rem; line-height: 1.6;
}
.cx-alert__icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.cx-alert__body { flex: 1; }
.cx-alert__title { font-weight: 600; margin-bottom: 4px; }
.cx-alert__dismiss {
  background: none; border: none; cursor: pointer;
  color: inherit; opacity: 0.5; font-size: 1rem;
  transition: opacity var(--cx-duration-fast);
}
.cx-alert__dismiss:hover { opacity: 1; }

.cx-alert--info {
  background: rgba(0,240,255,0.06);
  border-color: rgba(0,240,255,0.15);
  color: rgba(200,240,255,0.9);
}
.cx-alert--success {
  background: rgba(48,209,88,0.06);
  border-color: rgba(48,209,88,0.15);
  color: rgba(200,255,210,0.9);
}
.cx-alert--warning {
  background: rgba(255,159,10,0.06);
  border-color: rgba(255,159,10,0.15);
  color: rgba(255,230,190,0.9);
}
.cx-alert--error {
  background: rgba(255,55,95,0.06);
  border-color: rgba(255,55,95,0.15);
  color: rgba(255,210,220,0.9);
}

/* ── §31  BREADCRUMB ─────────────────────────────────────────────── */

.cx-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.85rem;
}
.cx-breadcrumb__item {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--cx-duration-fast);
}
.cx-breadcrumb__item:hover { color: var(--cx-neon-cyan); }
.cx-breadcrumb__item--active {
  color: rgba(255,255,255,0.8); font-weight: 600;
  pointer-events: none;
}
.cx-breadcrumb__sep {
  color: rgba(255,255,255,0.15); font-size: 0.7rem;
}

/* ── §32  PAGINATION ─────────────────────────────────────────────── */

.cx-pagination {
  display: flex; align-items: center; gap: 4px;
}
.cx-pagination__btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--cx-radius-sm);
  color: rgba(255,255,255,0.6);
  font-family: inherit; font-size: 0.85rem; font-weight: 500;
  cursor: pointer;
  transition: all var(--cx-duration-fast);
}
.cx-pagination__btn:hover {
  background: rgba(0,240,255,0.08);
  border-color: rgba(0,240,255,0.2);
  color: var(--cx-neon-cyan);
}
.cx-pagination__btn--active {
  background: linear-gradient(135deg, rgba(0,198,255,0.2), rgba(0,114,255,0.2));
  border-color: rgba(0,198,255,0.3);
  color: #fff; font-weight: 700;
  box-shadow: 0 0 12px rgba(0,198,255,0.15);
}
.cx-pagination__dots {
  color: rgba(255,255,255,0.2); padding: 0 4px;
}

/* ── §33  STEPPER ────────────────────────────────────────────────── */

.cx-stepper {
  display: flex; align-items: center; gap: 0;
}
.cx-stepper__step {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.cx-stepper__circle {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.8rem; font-weight: 700;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  transition: all var(--cx-duration-normal);
}
.cx-stepper__label {
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.cx-stepper__line {
  flex: 1; height: 2px; min-width: 24px;
  background: rgba(255,255,255,0.08);
  margin: 0 8px;
}
.cx-stepper__step--active .cx-stepper__circle {
  background: linear-gradient(135deg, var(--cx-neon-cyan), var(--cx-neon-blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(0,240,255,0.3);
}
.cx-stepper__step--active .cx-stepper__label { color: var(--cx-neon-cyan); }
.cx-stepper__step--done .cx-stepper__circle {
  background: var(--cx-neon-lime);
  border-color: transparent; color: #fff;
}
.cx-stepper__step--done .cx-stepper__label { color: var(--cx-neon-lime); }
.cx-stepper__step--done ~ .cx-stepper__line {
  background: var(--cx-neon-lime);
}

/* ── §34  SKELETON LOADER ────────────────────────────────────────── */

.cx-skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: cx-skeleton-wave 1.5s ease-in-out infinite;
  border-radius: var(--cx-radius-sm);
}
.cx-skeleton--text { height: 14px; margin-bottom: 10px; }
.cx-skeleton--text:last-child { width: 60%; }
.cx-skeleton--title { height: 22px; width: 45%; margin-bottom: 16px; }
.cx-skeleton--avatar { width: 44px; height: 44px; border-radius: 50%; }
.cx-skeleton--card { height: 120px; border-radius: var(--cx-radius-md); }
.cx-skeleton--btn { height: 40px; width: 120px; border-radius: var(--cx-radius-pill); }

@keyframes cx-skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── §35  TOOLTIP ────────────────────────────────────────────────── */

.cx-tooltip {
  position: relative; display: inline-block;
}
.cx-tooltip__tip {
  position: absolute; bottom: calc(100% + 10px);
  left: 50%; transform: translateX(-50%) scale(0.9);
  padding: 8px 14px;
  background: var(--cx-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--cx-radius-sm);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: all var(--cx-duration-fast) var(--cx-ease-spring);
  z-index: 9999;
}
.cx-tooltip__tip::after {
  content: ''; position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--cx-surface);
}
.cx-tooltip:hover .cx-tooltip__tip {
  opacity: 1; transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

/* ── §36  PRICING CARDS ──────────────────────────────────────────── */

.cx-pricing {
  display: grid; gap: var(--cx-space-lg);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cx-pricing__card {
  position: relative; padding: var(--cx-space-xl);
  background: var(--cx-glass);
  border: 1px solid var(--cx-glass-border);
  border-radius: var(--cx-radius-xl);
  text-align: center;
  transition: all var(--cx-duration-normal) var(--cx-ease-spring);
}
.cx-pricing__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cx-shadow-lift);
}
.cx-pricing__card--featured {
  border-color: rgba(0,240,255,0.3);
  box-shadow: 0 0 40px rgba(0,240,255,0.08);
}
.cx-pricing__card--featured::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(191,90,242,0.15));
  z-index: -1;
}
.cx-pricing__name {
  font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--cx-space-md);
}
.cx-pricing__price {
  font-size: 3rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #fff, var(--cx-neon-cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--cx-space-xs);
}
.cx-pricing__period {
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
  margin-bottom: var(--cx-space-lg);
}
.cx-pricing__features {
  list-style: none; padding: 0; margin: 0 0 var(--cx-space-xl);
  text-align: start;
}
.cx-pricing__features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}
.cx-pricing__features li::before {
  content: '✓ '; color: var(--cx-neon-lime); font-weight: 700;
}

/* ── §37  DROPDOWN ───────────────────────────────────────────────── */

.cx-dropdown {
  position: relative; display: inline-block;
}
.cx-dropdown__trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--cx-radius-md);
  color: #e8eaed; font-family: inherit; font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--cx-duration-fast);
}
.cx-dropdown__trigger:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(0,240,255,0.2);
}
.cx-dropdown__arrow {
  font-size: 0.65rem; transition: transform var(--cx-duration-fast);
  color: rgba(255,255,255,0.4);
}
.cx-dropdown--open .cx-dropdown__arrow { transform: rotate(180deg); }
.cx-dropdown__menu {
  position: absolute; top: calc(100% + 6px);
  inset-inline-start: 0; min-width: 200px;
  background: var(--cx-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--cx-radius-md);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  padding: 6px;
  opacity: 0; transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all var(--cx-duration-fast) var(--cx-ease-spring);
  z-index: 1000;
}
.cx-dropdown--open .cx-dropdown__menu {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cx-dropdown__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--cx-radius-sm);
  color: rgba(255,255,255,0.7); font-size: 0.9rem;
  cursor: pointer; border: none; background: none;
  width: 100%; font-family: inherit;
  transition: all var(--cx-duration-fast);
}
.cx-dropdown__item:hover {
  background: rgba(0,240,255,0.06);
  color: #fff;
}
.cx-dropdown__sep {
  height: 1px; margin: 4px 8px;
  background: rgba(255,255,255,0.06);
}

/* ── §38  SEARCH INPUT ───────────────────────────────────────────── */

.cx-search {
  position: relative;
}
.cx-search__input {
  width: 100%; padding: 12px 18px;
  padding-inline-start: 44px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--cx-radius-pill);
  color: #e8eaed; font-family: inherit; font-size: 0.9rem;
  outline: none;
  transition: all var(--cx-duration-fast);
}
.cx-search__input:focus {
  border-color: var(--cx-neon-cyan);
  box-shadow: 0 0 0 3px rgba(0,240,255,0.1), 0 0 20px rgba(0,240,255,0.05);
  background: rgba(255,255,255,0.06);
}
.cx-search__input::placeholder { color: rgba(255,255,255,0.3); }
.cx-search__icon {
  position: absolute; inset-inline-start: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem; color: rgba(255,255,255,0.3);
  pointer-events: none;
  transition: color var(--cx-duration-fast);
}
.cx-search__input:focus ~ .cx-search__icon { color: var(--cx-neon-cyan); }

/* ── §39  THEME TOGGLE BUTTON ────────────────────────────────────── */

.cx-theme-toggle {
  position: fixed; top: 16px; inset-inline-end: 16px;
  z-index: 10003;
  display: flex; gap: 6px;
}
.cx-theme-toggle__btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 1rem; cursor: pointer;
  transition: all var(--cx-duration-fast);
  backdrop-filter: blur(12px);
}
.cx-theme-toggle__btn:hover {
  background: rgba(0,240,255,0.1);
  border-color: rgba(0,240,255,0.3);
  color: var(--cx-neon-cyan);
  box-shadow: 0 0 16px rgba(0,240,255,0.15);
}

/* ══════════════════════════════════════════════════════════════════
   §40  LIGHT MODE
   ══════════════════════════════════════════════════════════════════ */

[data-theme="light"] {
  --cx-void:     #f0f2f5;
  --cx-surface:  rgba(255, 255, 255, 0.92);
  --cx-glass:    rgba(255, 255, 255, 0.65);
  --cx-glass-border: rgba(0, 0, 0, 0.08);
  --cx-neon-cyan:   #0088cc;
  --cx-neon-violet: #7c3aed;
  --cx-neon-lime:   #16a34a;
  --cx-neon-amber:  #d97706;
  --cx-neon-rose:   #dc2626;
  --cx-neon-blue:   #4f46e5;
  --cx-shadow-float: 0 4px 20px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  --cx-shadow-lift:  0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
  --cx-shadow-neon:  0 0 20px rgba(0,136,204,0.1);
}
[data-theme="light"] .cx-body {
  color: #1a1a2e;
  background: var(--cx-void);
}
[data-theme="light"] .cx-aurora {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f2f5 50%, #f5eeff 100%);
}
[data-theme="light"] .cx-aurora::before {
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  opacity: 0.6;
}
[data-theme="light"] .cx-aurora::after {
  background: radial-gradient(circle, rgba(0,136,204,0.15), transparent 70%);
  opacity: 0.6;
}
[data-theme="light"] .cx-aurora__orb { opacity: 0.1; }
[data-theme="light"] .cx-particle { opacity: 0.15; }

[data-theme="light"] .cx-h1,
[data-theme="light"] .cx-h2,
[data-theme="light"] .cx-h3,
[data-theme="light"] .cx-h4 {
  background: linear-gradient(135deg, #1a1a2e 30%, var(--cx-neon-cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .cx-hero__title {
  background: linear-gradient(135deg, #1a1a2e 0%, var(--cx-neon-cyan) 50%, var(--cx-neon-violet) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .cx-hero__sub { color: rgba(26,26,46,0.55); }

[data-theme="light"] .cx-nav {
  background: rgba(240,242,245,0.85);
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .cx-nav--scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
[data-theme="light"] .cx-nav__brand { color: #1a1a2e; }
[data-theme="light"] .cx-nav__link { color: rgba(26,26,46,0.5); }
[data-theme="light"] .cx-nav__link:hover { color: #1a1a2e; background: rgba(0,0,0,0.04); }

[data-theme="light"] .cx-glass {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px) saturate(1.3);
}
[data-theme="light"] .cx-glass:hover {
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .cx-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .cx-card:hover {
  border-color: rgba(0,136,204,0.2);
}
[data-theme="light"] .cx-card__title { color: #1a1a2e; }
[data-theme="light"] .cx-card__desc { color: rgba(26,26,46,0.55); }

[data-theme="light"] .cx-btn { color: #fff; }
[data-theme="light"] .cx-btn--ghost {
  color: #1a1a2e;
  border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .cx-btn--ghost:hover {
  border-color: var(--cx-neon-cyan);
  color: var(--cx-neon-cyan);
  background: rgba(0,136,204,0.05);
}

[data-theme="light"] .cx-input {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.12);
  color: #1a1a2e;
}
[data-theme="light"] .cx-input:focus {
  background: #fff;
}
[data-theme="light"] .cx-input-group .cx-label { color: rgba(26,26,46,0.45); }

[data-theme="light"] .cx-table th {
  color: rgba(26,26,46,0.5);
  background: rgba(0,0,0,0.02);
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .cx-table td {
  color: rgba(26,26,46,0.7);
  border-bottom-color: rgba(0,0,0,0.04);
}
[data-theme="light"] .cx-table tr:hover td {
  background: rgba(0,136,204,0.04);
}

[data-theme="light"] .cx-tab { color: rgba(26,26,46,0.4); }
[data-theme="light"] .cx-tab:hover { color: rgba(26,26,46,0.7); background: rgba(0,0,0,0.03); }
[data-theme="light"] .cx-tab--active { color: var(--cx-neon-cyan); }

[data-theme="light"] .cx-toast {
  background: #fff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
[data-theme="light"] .cx-toast__text { color: rgba(26,26,46,0.75); }

[data-theme="light"] .cx-portal {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
}

[data-theme="light"] .cx-code {
  background: #f8f9fa;
  border-color: rgba(0,0,0,0.06);
  color: #1a1a2e;
}
[data-theme="light"] .cx-code .cx-cmt { color: rgba(26,26,46,0.35); }

[data-theme="light"] .cx-stat__value {
  background: linear-gradient(135deg, var(--cx-neon-cyan), var(--cx-neon-violet));
  -webkit-background-clip: text; background-clip: text;
}
[data-theme="light"] .cx-stat__label { color: rgba(26,26,46,0.45); }

[data-theme="light"] .cx-timeline__content {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
  color: rgba(26,26,46,0.8);
}
[data-theme="light"] .cx-timeline__content strong { color: #1a1a2e; }
[data-theme="light"] .cx-timeline__dot { border-color: var(--cx-void); }

[data-theme="light"] .cx-section__title {
  background: linear-gradient(135deg, #1a1a2e 30%, var(--cx-neon-violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .cx-section__desc { color: rgba(26,26,46,0.45); }
[data-theme="light"] .cx-text-muted { color: rgba(26,26,46,0.4); }
[data-theme="light"] .cx-footer { color: rgba(26,26,46,0.35); border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .cx-divider {
  background: linear-gradient(90deg, transparent, rgba(0,136,204,0.15) 50%, transparent);
}
[data-theme="light"] .cx-scroll-progress__bar {
  background: linear-gradient(90deg, var(--cx-neon-cyan), var(--cx-neon-violet), var(--cx-neon-lime));
}

[data-theme="light"] .cx-accordion__trigger { color: #1a1a2e; }
[data-theme="light"] .cx-accordion__body { color: rgba(26,26,46,0.6); }

[data-theme="light"] .cx-alert--info { background: rgba(0,136,204,0.06); color: #0c5a89; }
[data-theme="light"] .cx-alert--success { background: rgba(22,163,74,0.06); color: #15673d; }
[data-theme="light"] .cx-alert--warning { background: rgba(217,119,6,0.06); color: #92400e; }
[data-theme="light"] .cx-alert--error { background: rgba(220,38,38,0.06); color: #991b1b; }

[data-theme="light"] .cx-breadcrumb__item { color: rgba(26,26,46,0.4); }
[data-theme="light"] .cx-breadcrumb__item--active { color: #1a1a2e; }

[data-theme="light"] .cx-pagination__btn {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
  color: rgba(26,26,46,0.6);
}
[data-theme="light"] .cx-pagination__btn--active {
  background: linear-gradient(135deg, rgba(0,136,204,0.12), rgba(79,70,229,0.12));
  color: var(--cx-neon-cyan);
}

[data-theme="light"] .cx-pricing__card { background: rgba(255,255,255,0.8); }
[data-theme="light"] .cx-pricing__name { color: rgba(26,26,46,0.5); }
[data-theme="light"] .cx-pricing__price {
  background: linear-gradient(135deg, #1a1a2e, var(--cx-neon-cyan));
  -webkit-background-clip: text; background-clip: text;
}
[data-theme="light"] .cx-pricing__features li { color: rgba(26,26,46,0.6); border-bottom-color: rgba(0,0,0,0.04); }

[data-theme="light"] .cx-dropdown__trigger {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.1);
  color: #1a1a2e;
}
[data-theme="light"] .cx-dropdown__menu {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
[data-theme="light"] .cx-dropdown__item { color: rgba(26,26,46,0.7); }
[data-theme="light"] .cx-dropdown__item:hover { background: rgba(0,136,204,0.06); color: #1a1a2e; }

[data-theme="light"] .cx-search__input {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.1);
  color: #1a1a2e;
}
[data-theme="light"] .cx-search__input:focus { background: #fff; }
[data-theme="light"] .cx-search__input::placeholder { color: rgba(26,26,46,0.3); }

[data-theme="light"] .cx-skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
}

[data-theme="light"] .cx-theme-toggle__btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: rgba(26,26,46,0.6);
}
[data-theme="light"] .cx-theme-toggle__btn:hover {
  background: rgba(0,136,204,0.08);
  color: var(--cx-neon-cyan);
}

[data-theme="light"] .cx-portal__close {
  background: rgba(0,0,0,0.04);
  color: rgba(26,26,46,0.5);
}
[data-theme="light"] .cx-portal__close:hover {
  background: rgba(220,38,38,0.08);
  color: var(--cx-neon-rose);
}

[data-theme="light"] .cx-hero__badge {
  background: rgba(0,136,204,0.06);
  border-color: rgba(0,136,204,0.15);
}
[data-theme="light"] .cx-section__tag {
  background: rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.15);
}

[data-theme="light"] .cx-stepper__circle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: rgba(26,26,46,0.4);
}
[data-theme="light"] .cx-stepper__label { color: rgba(26,26,46,0.4); }
[data-theme="light"] .cx-stepper__line { background: rgba(0,0,0,0.06); }

[data-theme="light"] .cx-toggle__track { background: rgba(0,0,0,0.1); }
[data-theme="light"] .cx-toggle__track::after { box-shadow: 0 2px 4px rgba(0,0,0,0.15); }

/* ── §41  NOTIFICATION DOT ───────────────────────────────────────── */

.cx-notif-dot { position: relative; }
.cx-notif-dot::after {
  content: ''; position: absolute; top: 2px; inset-inline-end: 2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cx-neon-rose);
  box-shadow: 0 0 8px var(--cx-neon-rose);
  animation: cx-dot-pulse 1.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════════
   §42  QUANTUM SPLASH SCREEN — from the future
   ══════════════════════════════════════════════════════════════════ */

.cx-splash {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #05040d;
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(.4,0,.2,1),
              transform 0.9s cubic-bezier(.4,0,.2,1),
              filter 0.9s cubic-bezier(.4,0,.2,1);
}
.cx-splash--exiting {
  opacity: 0; transform: scale(1.08);
  filter: blur(30px); pointer-events: none;
}
.cx-splash--hidden { display: none; }

/* ── splash aurora ── */
.cx-splash__aurora {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 40%, rgba(0,240,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 60%, rgba(191,90,242,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(48,209,88,0.04) 0%, transparent 50%);
  animation: cx-splash-aurora 10s ease-in-out infinite alternate;
}
@keyframes cx-splash-aurora {
  0%   { opacity: 0.5; transform: scale(1) rotate(0); }
  100% { opacity: 1;   transform: scale(1.15) rotate(3deg); }
}

/* ── scan-line overlay ── */
.cx-splash__scanline {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,240,255,0.012) 2px, rgba(0,240,255,0.012) 4px
  );
  animation: cx-scan-drift 25s linear infinite;
}
@keyframes cx-scan-drift {
  to { transform: translateY(100vh); }
}

/* ── central orb ── */
.cx-splash__center {
  position: relative;
  width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.cx-splash__logo {
  font-size: 4.5rem; z-index: 2;
  filter: drop-shadow(0 0 24px rgba(0,240,255,0.5))
          drop-shadow(0 0 80px rgba(191,90,242,0.25));
  animation: cx-logo-breathe 2.5s ease-in-out infinite;
}
@keyframes cx-logo-breathe {
  0%, 100% { transform: scale(1) rotate(0); }
  50%      { transform: scale(1.1) rotate(3deg); }
}

/* ── orbital rings ── */
.cx-splash__ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid transparent;
}
.cx-splash__ring--1 {
  inset: 15px;
  border-color: rgba(0,240,255,0.15);
  border-top-color: var(--cx-neon-cyan);
  animation: cx-orbit 3s linear infinite;
}
.cx-splash__ring--2 {
  inset: -8px;
  border-color: rgba(191,90,242,0.08);
  border-bottom-color: var(--cx-neon-violet);
  animation: cx-orbit 5s linear infinite reverse;
}
.cx-splash__ring--3 {
  inset: -30px;
  border-color: rgba(48,209,88,0.05);
  border-left-color: rgba(48,209,88,0.3);
  animation: cx-orbit 8s linear infinite;
}
.cx-splash__ring::after {
  content: ''; position: absolute;
  width: 5px; height: 5px; border-radius: 50%;
  top: 0; left: 50%; transform: translateX(-50%);
}
.cx-splash__ring--1::after {
  background: var(--cx-neon-cyan);
  box-shadow: 0 0 12px var(--cx-neon-cyan);
}
.cx-splash__ring--2::after {
  background: var(--cx-neon-violet);
  box-shadow: 0 0 12px var(--cx-neon-violet);
}
.cx-splash__ring--3::after {
  background: var(--cx-neon-lime);
  box-shadow: 0 0 10px var(--cx-neon-lime);
  width: 4px; height: 4px;
}

/* ── convergent particles ── */
.cx-splash__particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.cx-splash__dot {
  position: absolute; border-radius: 50%;
  opacity: 0; animation: cx-spark linear infinite;
}
.cx-splash__dot:nth-child(1)  { width:3px;height:3px;top:12%;left:8%;  background:var(--cx-neon-cyan);  animation-duration:5s;animation-delay:0s; }
.cx-splash__dot:nth-child(2)  { width:2px;height:2px;top:78%;left:15%; background:var(--cx-neon-violet);animation-duration:7s;animation-delay:.4s; }
.cx-splash__dot:nth-child(3)  { width:3px;height:3px;top:22%;right:12%;background:var(--cx-neon-cyan);  animation-duration:6s;animation-delay:.8s; }
.cx-splash__dot:nth-child(4)  { width:2px;height:2px;top:68%;right:20%;background:var(--cx-neon-lime);  animation-duration:8s;animation-delay:1.2s; }
.cx-splash__dot:nth-child(5)  { width:4px;height:4px;top:45%;left:4%;  background:var(--cx-neon-amber); animation-duration:5.5s;animation-delay:1.8s; }
.cx-splash__dot:nth-child(6)  { width:2px;height:2px;top:55%;right:6%; background:var(--cx-neon-rose);  animation-duration:6.5s;animation-delay:.6s; }
.cx-splash__dot:nth-child(7)  { width:3px;height:3px;top:8%;left:45%;  background:var(--cx-neon-cyan);  animation-duration:7.5s;animation-delay:2s; }
.cx-splash__dot:nth-child(8)  { width:2px;height:2px;top:88%;left:55%; background:var(--cx-neon-violet);animation-duration:5.8s;animation-delay:1s; }
.cx-splash__dot:nth-child(9)  { width:3px;height:3px;top:35%;left:85%; background:var(--cx-neon-lime);  animation-duration:6.2s;animation-delay:2.5s; }
.cx-splash__dot:nth-child(10) { width:2px;height:2px;top:60%;left:92%; background:var(--cx-neon-cyan);  animation-duration:7.2s;animation-delay:.2s; }

@keyframes cx-spark {
  0%   { opacity:0;   transform: translate(0,0) scale(1); }
  15%  { opacity:0.7; }
  50%  { opacity:0.3; transform: translate(calc(50vw - 100%), calc(50vh - 100%)) scale(0.4); }
  85%  { opacity:0.7; }
  100% { opacity:0;   transform: translate(0,0) scale(1); }
}

/* ── hexagonal grid (subtle background) ── */
.cx-splash__hex-grid {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(30deg, rgba(0,240,255,1) 12%, transparent 12.5%, transparent 87%, rgba(0,240,255,1) 87.5%),
    linear-gradient(150deg, rgba(0,240,255,1) 12%, transparent 12.5%, transparent 87%, rgba(0,240,255,1) 87.5%),
    linear-gradient(30deg, rgba(0,240,255,1) 12%, transparent 12.5%, transparent 87%, rgba(0,240,255,1) 87.5%),
    linear-gradient(150deg, rgba(0,240,255,1) 12%, transparent 12.5%, transparent 87%, rgba(0,240,255,1) 87.5%),
    linear-gradient(60deg, rgba(191,90,242,0.5) 25%, transparent 25.5%, transparent 75%, rgba(191,90,242,0.5) 75%),
    linear-gradient(60deg, rgba(191,90,242,0.5) 25%, transparent 25.5%, transparent 75%, rgba(191,90,242,0.5) 75%);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

/* ── info carousel ── */
.cx-splash__info {
  position: relative; z-index: 10;
  margin-top: 32px;
  height: 110px; width: 100%; max-width: 520px;
  text-align: center; overflow: hidden;
  background: rgba(5,4,13,0.6);
  border-radius: 16px;
  padding: 8px 16px;
}
.cx-splash__fact {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 24px;
  opacity: 0; transform: translateY(24px) scale(0.96);
  transition: all 0.65s var(--cx-ease-spring);
}
.cx-splash__fact--active {
  opacity: 1; transform: translateY(0) scale(1);
}
.cx-splash__fact--exit {
  opacity: 0; transform: translateY(-24px) scale(0.96);
}
.cx-splash__fact-icon {
  font-size: 1.6rem; margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(0,240,255,0.4));
}
.cx-splash__fact-text {
  font-size: 0.95rem; color: rgba(255,255,255,0.88);
  line-height: 1.65; max-width: 440px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.cx-splash__fact-tag {
  margin-top: 10px; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--cx-neon-cyan); opacity: 0.85;
  text-shadow: 0 0 12px rgba(0,240,255,0.3);
}

/* ── progress arc ── */
.cx-splash__progress {
  margin-top: 36px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.cx-splash__progress-svg {
  width: 52px; height: 52px; transform: rotate(-90deg);
}
.cx-splash__progress-bg {
  fill: none; stroke: rgba(255,255,255,0.04); stroke-width: 3;
}
.cx-splash__progress-fill {
  fill: none; stroke: url(#cx-splash-grad);
  stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 131.9; stroke-dashoffset: 131.9;
  transition: stroke-dashoffset 0.4s ease;
}
.cx-splash__progress-pct {
  font-family: var(--cx-font-mono);
  font-size: 0.7rem; color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
}

/* ── boot log ── */
.cx-splash__boot {
  position: absolute; bottom: 36px;
  inset-inline-start: 36px;
  font-family: var(--cx-font-mono);
  font-size: 0.65rem; color: rgba(255,255,255,0.15);
  max-width: 50vw; overflow: hidden;
  display: flex; flex-direction: column; gap: 3px;
}
.cx-splash__boot-line {
  white-space: nowrap; overflow: hidden;
  animation: cx-boot-type 0.4s steps(30,end) forwards;
}
@keyframes cx-boot-type {
  from { max-width: 0; } to { max-width: 600px; }
}

/* ── skip button ── */
.cx-splash__skip {
  position: absolute; bottom: 36px; inset-inline-end: 36px;
  background: none; border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--cx-radius-pill);
  padding: 6px 20px;
  color: rgba(255,255,255,0.2);
  font-family: inherit; font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--cx-duration-fast);
}
.cx-splash__skip:hover {
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}

/* ── version watermark ── */
.cx-splash__version {
  position: absolute; top: 24px; inset-inline-start: 24px;
  font-family: var(--cx-font-mono);
  font-size: 0.6rem; color: rgba(255,255,255,0.08);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── horizontal energy beam ── */
.cx-splash__beam {
  position: absolute; top: 38%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(0,240,255,0.15) 20%,
    rgba(0,240,255,0.4) 50%,
    rgba(0,240,255,0.15) 80%, transparent 100%
  );
  opacity: 0;
  animation: cx-beam-flash 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes cx-beam-flash {
  0%, 40%, 100% { opacity: 0; }
  45%, 55%      { opacity: 1; }
  60%           { opacity: 0; }
}

/* ── corner decorations ── */
.cx-splash__corner {
  position: absolute; width: 40px; height: 40px;
  border-color: rgba(0,240,255,0.08);
  border-style: solid; border-width: 0;
}
.cx-splash__corner--tl { top:16px; left:16px;  border-top-width:1px; border-left-width:1px; }
.cx-splash__corner--tr { top:16px; right:16px; border-top-width:1px; border-right-width:1px; }
.cx-splash__corner--bl { bottom:16px; left:16px;  border-bottom-width:1px; border-left-width:1px; }
.cx-splash__corner--br { bottom:16px; right:16px; border-bottom-width:1px; border-right-width:1px; }

/* ── Light mode splash ── */
[data-theme="light"] .cx-splash { background: #f0f2f5; }
[data-theme="light"] .cx-splash__fact-text { color: rgba(26,26,46,0.6); }
[data-theme="light"] .cx-splash__boot { color: rgba(26,26,46,0.12); }
[data-theme="light"] .cx-splash__skip { color: rgba(26,26,46,0.2); border-color: rgba(26,26,46,0.08); }
[data-theme="light"] .cx-splash__version { color: rgba(26,26,46,0.08); }
[data-theme="light"] .cx-splash__scanline {
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,136,204,0.008) 2px, rgba(0,136,204,0.008) 4px);
}
[data-theme="light"] .cx-splash__beam {
  background: linear-gradient(90deg, transparent 0%, rgba(0,136,204,0.1) 20%, rgba(0,136,204,0.25) 50%, rgba(0,136,204,0.1) 80%, transparent 100%);
}
[data-theme="light"] .cx-splash__corner { border-color: rgba(0,136,204,0.06); }
[data-theme="light"] .cx-splash__hex-grid { opacity: 0.02; }

/* ══════════════════════════════════════════════════════════════════
   CEPHA BRAND IDENTITY COMPONENTS — circuit-tree design language
   Rooted in the Cepha logo: a spectrum circuit tree with 6 colors
   ══════════════════════════════════════════════════════════════════ */

/* ── §43  BRAND LOGO ─────────────────────────────────────────────── */

.cx-brand {
  display: inline-flex; align-items: center; gap: 14px;
}
.cx-brand__icon {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.2),
    0 0 20px rgba(45,212,91,0.15),
    0 0 40px rgba(74,144,217,0.1);
  animation: cx-brand-glow 4s ease-in-out infinite;
}
.cx-brand__icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--cx-duration-normal) var(--cx-ease-spring);
}
.cx-brand:hover .cx-brand__icon img {
  transform: scale(1.1) rotate(5deg);
}
.cx-brand__icon::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--cx-brand-green),
    var(--cx-brand-orange),
    var(--cx-brand-gold),
    var(--cx-brand-blue),
    var(--cx-brand-purple),
    var(--cx-brand-red),
    var(--cx-brand-green)
  );
  opacity: 0;
  transition: opacity var(--cx-duration-normal);
  mix-blend-mode: overlay;
}
.cx-brand:hover .cx-brand__icon::after { opacity: 0.3; }

.cx-brand__text {
  font-size: 1.15rem; font-weight: 700; color: #fff;
  letter-spacing: -0.01em;
}
.cx-brand__sub {
  font-size: 0.7rem; font-weight: 500;
  background: var(--cx-brand-spectrum);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.cx-brand--lg .cx-brand__icon { width: 72px; height: 72px; }
.cx-brand--lg .cx-brand__text { font-size: 1.6rem; }
.cx-brand--sm .cx-brand__icon { width: 32px; height: 32px; }
.cx-brand--sm .cx-brand__text { font-size: 0.95rem; }

@keyframes cx-brand-glow {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2), 0 0 15px rgba(45,212,91,0.12), 0 0 30px rgba(74,144,217,0.08);
  }
  33% {
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2), 0 0 20px rgba(245,166,35,0.15), 0 0 40px rgba(155,89,182,0.1);
  }
  66% {
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2), 0 0 20px rgba(74,144,217,0.15), 0 0 40px rgba(231,76,60,0.1);
  }
}

/* ── §44  SPECTRUM BAR ───────────────────────────────────────────── */

.cx-spectrum-bar {
  height: 3px; width: 100%;
  background: var(--cx-brand-spectrum);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.cx-spectrum-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: cx-spectrum-shine 3s ease-in-out infinite;
}
.cx-spectrum-bar--thick { height: 5px; }
.cx-spectrum-bar--animated {
  background-size: 200% 100%;
  animation: cx-spectrum-flow 4s linear infinite;
}

@keyframes cx-spectrum-shine {
  0%, 100% { background-position: -200% 0; }
  50%      { background-position: 200% 0; }
}
@keyframes cx-spectrum-flow {
  to { background-position: 200% 0; }
}

/* ── §45  CIRCUIT DIVIDER ────────────────────────────────────────── */

.cx-circuit-divider {
  position: relative;
  height: 48px;
  margin: var(--cx-space-xl) 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cx-circuit-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(45,212,91,0.3) 15%,
    rgba(245,166,35,0.3) 30%,
    rgba(201,177,113,0.4) 45%,
    rgba(74,144,217,0.4) 55%,
    rgba(155,89,182,0.3) 70%,
    rgba(231,76,60,0.3) 85%,
    transparent 100%
  );
}
.cx-circuit-divider__node {
  position: relative; z-index: 1;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cx-brand-blue);
  box-shadow: 0 0 10px var(--cx-brand-blue), 0 0 0 3px var(--cx-void);
  animation: cx-node-pulse 2s ease-in-out infinite;
}
.cx-circuit-divider__node:nth-child(2) {
  margin: 0 60px; width: 14px; height: 14px;
  background: var(--cx-brand-gold);
  box-shadow: 0 0 12px var(--cx-brand-gold), 0 0 0 3px var(--cx-void);
  animation-delay: 0.5s;
}
.cx-circuit-divider__node:nth-child(3) {
  background: var(--cx-brand-purple);
  box-shadow: 0 0 10px var(--cx-brand-purple), 0 0 0 3px var(--cx-void);
  animation-delay: 1s;
}
.cx-circuit-divider__branch {
  position: absolute; top: 50%;
  width: 20px; height: 20px;
  border: 1px solid transparent;
}
.cx-circuit-divider__branch--l {
  left: 18%; border-left-color: rgba(45,212,91,0.25);
  border-top-color: rgba(45,212,91,0.25);
  transform: translateY(-100%) rotate(0);
}
.cx-circuit-divider__branch--r {
  right: 18%; border-right-color: rgba(231,76,60,0.25);
  border-bottom-color: rgba(231,76,60,0.25);
  transform: translateY(0%) rotate(0);
}

@keyframes cx-node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.3); opacity: 1; }
}

/* ── §46  NEURAL NODE CARD ───────────────────────────────────────── */

.cx-neural-card {
  position: relative; overflow: hidden;
  padding: var(--cx-space-xl);
  background: var(--cx-glass);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--cx-glass-border);
  border-radius: var(--cx-radius-xl);
  box-shadow: var(--cx-shadow-float);
  transition: all var(--cx-duration-normal) var(--cx-ease-spring);
}
.cx-neural-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cx-brand-spectrum);
  opacity: 0.7;
  transition: opacity var(--cx-duration-fast);
}
.cx-neural-card:hover::before { opacity: 1; }
.cx-neural-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cx-shadow-lift);
  border-color: rgba(74,144,217,0.2);
}

.cx-neural-card__circuit {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 2px 2px, currentColor 1px, transparent 1px);
  background-size: 24px 24px;
  transition: opacity var(--cx-duration-normal);
}
.cx-neural-card:hover .cx-neural-card__circuit { opacity: 0.06; }

.cx-neural-card__header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: var(--cx-space-lg);
}
.cx-neural-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--cx-radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(74,144,217,0.12), rgba(155,89,182,0.12));
  border: 1px solid rgba(74,144,217,0.15);
}
.cx-neural-card__title {
  font-size: 1.1rem; font-weight: 700; color: #fff;
}
.cx-neural-card__subtitle {
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
  font-weight: 500; margin-top: 2px;
}
.cx-neural-card__body {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem; line-height: 1.75;
}
.cx-neural-card__footer {
  margin-top: var(--cx-space-lg);
  padding-top: var(--cx-space-md);
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: space-between;
}

/* ── §47  SPECTRUM BADGE ─────────────────────────────────────────── */

.cx-spectrum-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border-radius: var(--cx-radius-pill);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.04em;
  position: relative; overflow: hidden;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.cx-spectrum-badge::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cx-brand-spectrum);
}
.cx-spectrum-badge--green  { border-color: rgba(45,212,91,0.2);  color: var(--cx-brand-green); }
.cx-spectrum-badge--orange { border-color: rgba(245,166,35,0.2); color: var(--cx-brand-orange); }
.cx-spectrum-badge--gold   { border-color: rgba(201,177,113,0.2);color: var(--cx-brand-gold); }
.cx-spectrum-badge--blue   { border-color: rgba(74,144,217,0.2); color: var(--cx-brand-blue); }
.cx-spectrum-badge--purple { border-color: rgba(155,89,182,0.2); color: var(--cx-brand-purple); }
.cx-spectrum-badge--red    { border-color: rgba(231,76,60,0.2);  color: var(--cx-brand-red); }

/* ── §48  CIRCUIT TREE LOADER ────────────────────────────────────── */

.cx-tree-loader {
  position: relative;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.cx-tree-loader__branch {
  position: absolute;
  width: 2px; height: 18px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: bottom center;
  opacity: 0.3;
  animation: cx-tree-grow 2s ease-in-out infinite;
}
.cx-tree-loader__branch:nth-child(1) { color: var(--cx-brand-green);  transform: rotate(0deg) translateY(-12px); animation-delay: 0s; }
.cx-tree-loader__branch:nth-child(2) { color: var(--cx-brand-orange); transform: rotate(60deg) translateY(-12px); animation-delay: 0.33s; }
.cx-tree-loader__branch:nth-child(3) { color: var(--cx-brand-gold);   transform: rotate(120deg) translateY(-12px); animation-delay: 0.66s; }
.cx-tree-loader__branch:nth-child(4) { color: var(--cx-brand-blue);   transform: rotate(180deg) translateY(-12px); animation-delay: 1s; }
.cx-tree-loader__branch:nth-child(5) { color: var(--cx-brand-purple); transform: rotate(240deg) translateY(-12px); animation-delay: 1.33s; }
.cx-tree-loader__branch:nth-child(6) { color: var(--cx-brand-red);    transform: rotate(300deg) translateY(-12px); animation-delay: 1.66s; }

.cx-tree-loader__branch::after {
  content: ''; position: absolute; top: 0;
  left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.cx-tree-loader__core {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: conic-gradient(
    var(--cx-brand-green),
    var(--cx-brand-orange),
    var(--cx-brand-gold),
    var(--cx-brand-blue),
    var(--cx-brand-purple),
    var(--cx-brand-red),
    var(--cx-brand-green)
  );
  animation: cx-orbit 3s linear infinite;
  box-shadow: 0 0 12px rgba(74,144,217,0.3);
}

@keyframes cx-tree-grow {
  0%, 100% { opacity: 0.2; height: 14px; }
  50%      { opacity: 1;   height: 22px; }
}

/* ── §49  BRAND WATERMARK ────────────────────────────────────────── */

.cx-watermark {
  position: fixed; bottom: 16px; inset-inline-start: 16px;
  display: flex; align-items: center; gap: 8px;
  z-index: 100;
  opacity: 0.4;
  transition: opacity var(--cx-duration-fast);
}
.cx-watermark:hover { opacity: 0.8; }
.cx-watermark__logo {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(74,144,217,0.2);
}
.cx-watermark__text {
  font-size: 0.6rem; font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── §50  CEPHA FEATURE GRID ─────────────────────────────────────── */

.cx-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--cx-space-md);
}
.cx-feature-item {
  position: relative;
  padding: var(--cx-space-lg);
  background: var(--cx-glass);
  border: 1px solid var(--cx-glass-border);
  border-radius: var(--cx-radius-lg);
  text-align: center;
  transition: all var(--cx-duration-normal) var(--cx-ease-spring);
  overflow: hidden;
}
.cx-feature-item::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--cx-brand-spectrum);
  transform: scaleX(0);
  transition: transform var(--cx-duration-normal) var(--cx-ease-spring);
  transform-origin: left;
}
[dir="rtl"] .cx-feature-item::before { transform-origin: right; }
.cx-feature-item:hover::before { transform: scaleX(1); }
.cx-feature-item:hover {
  transform: translateY(-3px);
  border-color: rgba(74,144,217,0.15);
}
.cx-feature-item__icon {
  font-size: 2rem; margin-bottom: var(--cx-space-sm);
  display: inline-block;
}
.cx-feature-item__label {
  font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8);
}
.cx-feature-item__count {
  font-size: 0.7rem; color: rgba(255,255,255,0.3);
  margin-top: 4px; font-family: var(--cx-font-mono);
}

/* ── §51  BRAND HEADER (full-width identity bar) ─────────────────── */

.cx-brand-header {
  display: flex; align-items: center; gap: var(--cx-space-lg);
  padding: var(--cx-space-lg) var(--cx-space-xl);
  background: var(--cx-glass);
  border: 1px solid var(--cx-glass-border);
  border-radius: var(--cx-radius-xl);
  position: relative;
  overflow: hidden;
}
.cx-brand-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cx-brand-spectrum);
}
.cx-brand-header__logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.3), 0 0 20px rgba(74,144,217,0.15);
}
.cx-brand-header__info { flex: 1; }
.cx-brand-header__name {
  font-size: 1.3rem; font-weight: 800;
  background: linear-gradient(135deg, #fff 40%, var(--cx-brand-blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cx-brand-header__desc {
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
  margin-top: 4px;
}
.cx-brand-header__meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
[dir="rtl"] .cx-brand-header__meta { align-items: flex-start; }

/* ── §52  CIRCUIT TRACE LINE (animated connection) ───────────────── */

.cx-trace {
  position: relative; height: 2px;
  margin: var(--cx-space-md) 0;
}
.cx-trace__line {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.03);
  border-radius: 1px;
}
.cx-trace__signal {
  position: absolute; top: -2px; left: 0;
  width: 30px; height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--cx-brand-blue), transparent);
  filter: blur(1px);
  animation: cx-trace-run 2.5s linear infinite;
}
@keyframes cx-trace-run {
  0%   { left: -30px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
[dir="rtl"] .cx-trace__signal {
  animation: cx-trace-run-rtl 2.5s linear infinite;
}
@keyframes cx-trace-run-rtl {
  0%   { right: -30px; left: auto; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { right: 100%; left: auto; opacity: 0; }
}

/* ── Light mode: brand components ── */
[data-theme="light"] .cx-brand__text { color: #1a1a2e; }
[data-theme="light"] .cx-neural-card__title { color: #1a1a2e; }
[data-theme="light"] .cx-neural-card__body { color: rgba(26,26,46,0.6); }
[data-theme="light"] .cx-neural-card__subtitle { color: rgba(26,26,46,0.4); }
[data-theme="light"] .cx-neural-card:hover { border-color: rgba(74,144,217,0.2); }
[data-theme="light"] .cx-spectrum-badge { background: rgba(0,0,0,0.03); color: #1a1a2e; }
[data-theme="light"] .cx-feature-item__label { color: rgba(26,26,46,0.75); }
[data-theme="light"] .cx-feature-item__count { color: rgba(26,26,46,0.3); }
[data-theme="light"] .cx-watermark__text { color: rgba(26,26,46,0.25); }
[data-theme="light"] .cx-brand-header__name {
  background: linear-gradient(135deg, #1a1a2e 40%, var(--cx-brand-blue) 100%);
  -webkit-background-clip: text; background-clip: text;
}
[data-theme="light"] .cx-brand-header__desc { color: rgba(26,26,46,0.45); }
[data-theme="light"] .cx-trace__line { background: rgba(0,0,0,0.04); }

/* ══════════════════════════════════════════════════════════════════
   §53  BIDIRECTIONAL TEXT ENGINE — cx-bidi
   ══════════════════════════════════════════════════════════════════
   CMUI-X exclusive: full Arabic/English/mixed-content intelligence.
   Uses CSS logical properties, unicode-bidi isolation, and
   auto-detection for mixed AR/EN content ordering.
   ══════════════════════════════════════════════════════════════════ */

/* ── Base: force logical properties everywhere ── */
[dir="rtl"] { text-align: start; }
[dir="ltr"] { text-align: start; }

/*  cx-bidi: auto-isolate mixed content runs                        *
 *  Wrap any mixed AR/EN block in .cx-bidi — the browser's Unicode  *
 *  Bidirectional Algorithm handles internal ordering, while         *
 *  isolation prevents leaking direction into siblings.              */
.cx-bidi {
  unicode-bidi: isolate;
}

/* Force a specific direction inside a bidi context */
.cx-bidi--rtl  { direction: rtl; unicode-bidi: isolate-override; }
.cx-bidi--ltr  { direction: ltr; unicode-bidi: isolate-override; }

/* Embed: keeps content in parent direction but isolates ordering */
.cx-bidi--embed { unicode-bidi: embed; }

/* Plaintext: treat content as if pasted (browser auto-detects) */
.cx-bidi--plain { unicode-bidi: plaintext; }

/* ── Inline mixed runs: for embedding EN words inside AR and vice versa ── */
.cx-en,
.cx-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline;
}
.cx-ar,
.cx-rtl {
  direction: rtl;
  unicode-bidi: isolate;
  display: inline;
}

/* Technical terms / code / brand names stay LTR even in RTL flow */
.cx-tech {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--cx-font-mono);
  letter-spacing: -0.01em;
}

/* Numbers: always LTR to ensure 1,234.56 renders correctly */
.cx-num {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline;
  font-variant-numeric: tabular-nums;
}

/* ── Block-level direction forcing ── */
.cx-block-rtl {
  direction: rtl;
  text-align: start;
}
.cx-block-ltr {
  direction: ltr;
  text-align: start;
}

/* ── Mirror-safe flex/grid: use logical alignment ── */
.cx-flex {
  display: flex;
  flex-wrap: wrap;
}
.cx-flex--row   { flex-direction: row; }
.cx-flex--col   { flex-direction: column; }
.cx-flex--center { align-items: center; justify-content: center; }
.cx-flex--between { justify-content: space-between; }
.cx-flex--end    { justify-content: flex-end; }

/* Auto-mirror: first item is always "start" regardless of direction */
.cx-flex--mirror {
  flex-direction: row;
}
[dir="rtl"] .cx-flex--mirror {
  flex-direction: row-reverse;
}

/* ── Spacing: logical margin/padding utilities ── */
.cx-ms-auto { margin-inline-start: auto; }
.cx-me-auto { margin-inline-end: auto; }
.cx-ps-sm   { padding-inline-start: var(--cx-space-sm); }
.cx-ps-md   { padding-inline-start: var(--cx-space-md); }
.cx-ps-lg   { padding-inline-start: var(--cx-space-lg); }
.cx-pe-sm   { padding-inline-end: var(--cx-space-sm); }
.cx-pe-md   { padding-inline-end: var(--cx-space-md); }
.cx-pe-lg   { padding-inline-end: var(--cx-space-lg); }
.cx-ms-sm   { margin-inline-start: var(--cx-space-sm); }
.cx-ms-md   { margin-inline-start: var(--cx-space-md); }
.cx-me-sm   { margin-inline-end: var(--cx-space-sm); }
.cx-me-md   { margin-inline-end: var(--cx-space-md); }

/* ── Float: logical ── */
.cx-float-start { float: inline-start; }
.cx-float-end   { float: inline-end; }

/* ── Border: logical sides ── */
.cx-border-s { border-inline-start: 1px solid var(--cx-glass-border); }
.cx-border-e { border-inline-end: 1px solid var(--cx-glass-border); }
.cx-border-s--accent { border-inline-start: 3px solid var(--cx-neon-cyan); }
.cx-border-e--accent { border-inline-end: 3px solid var(--cx-neon-cyan); }

/* ── Text alignment: logical ── */
.cx-text-start { text-align: start !important; }
.cx-text-end   { text-align: end !important; }
.cx-text-center { text-align: center !important; }

/* ── Position: logical ── */
.cx-inset-s { inset-inline-start: 0; }
.cx-inset-e { inset-inline-end: 0; }

/* ── Arrow/chevron auto-mirror for RTL ── */
.cx-arrow {
  display: inline-block;
  transition: transform var(--cx-duration-fast);
}
.cx-arrow--end::after {
  content: '›';
}
.cx-arrow--start::after {
  content: '‹';
}
[dir="rtl"] .cx-arrow--end::after { content: '‹'; }
[dir="rtl"] .cx-arrow--start::after { content: '›'; }
[dir="rtl"] .cx-arrow--end { transform: scaleX(-1); }

/* ── Icon + text alignment: always correct order ── */
.cx-icon-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cx-icon-text__icon {
  flex-shrink: 0;
  order: 0;
}
.cx-icon-text__label {
  unicode-bidi: isolate;
  flex: 1;
}

/* ── Lists: marker position matches text direction ── */
.cx-list {
  list-style: none;
  padding: 0; margin: 0;
}
.cx-list__item {
  padding-inline-start: 24px;
  position: relative;
  line-height: 1.8;
}
.cx-list__item::before {
  content: '•';
  position: absolute;
  inset-inline-start: 8px;
  color: var(--cx-neon-cyan);
  font-weight: 700;
}

/* ── Table: logical alignment per column ── */
.cx-table { width: 100%; border-collapse: collapse; }
.cx-table th,
.cx-table td {
  padding: var(--cx-space-sm) var(--cx-space-md);
  text-align: start;
  border-bottom: 1px solid var(--cx-glass-border);
}
.cx-table th { color: rgba(255,255,255,0.5); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.cx-table td { color: rgba(255,255,255,0.7); }
[data-theme="light"] .cx-table th { color: rgba(26,26,46,0.45); }
[data-theme="light"] .cx-table td { color: rgba(26,26,46,0.65); }

/* ── Scrollbar: logical side ── */
[dir="rtl"] .cx-scroll { direction: rtl; }
[dir="ltr"] .cx-scroll { direction: ltr; }

/* ── Mixed content paragraph: auto-detect base direction ── */
.cx-para {
  unicode-bidi: plaintext;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
}
[data-theme="light"] .cx-para { color: rgba(26,26,46,0.65); }

/* ── Breadcrumb / path separator mirrors in RTL ── */
.cx-breadcrumb__sep {
  display: inline-block;
  margin-inline: 8px;
  color: rgba(255,255,255,0.2);
}
.cx-breadcrumb__sep::after { content: '/'; }
[dir="rtl"] .cx-breadcrumb__sep::after { content: '\\'; }

/* ── Code block: always LTR (code is always left-to-right) ── */
.cx-code,
.cx-pre,
code,
pre {
  direction: ltr !important;
  unicode-bidi: isolate;
  text-align: left;
}

/* ── Form label + input: logical layout ── */
.cx-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--cx-space-md);
}
.cx-form-group--horizontal {
  flex-direction: row;
  align-items: center;
  gap: var(--cx-space-md);
}
.cx-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-align: start;
}
.cx-form-input {
  padding: 10px 14px;
  background: var(--cx-glass);
  border: 1px solid var(--cx-glass-border);
  border-radius: var(--cx-radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--cx-duration-fast);
  text-align: start;
}
.cx-form-input:focus {
  border-color: var(--cx-neon-cyan);
  box-shadow: 0 0 0 3px rgba(0,240,255,0.08);
}
.cx-form-input::placeholder {
  color: rgba(255,255,255,0.2);
}
[data-theme="light"] .cx-form-label { color: rgba(26,26,46,0.5); }
[data-theme="light"] .cx-form-input {
  background: rgba(255,255,255,0.6);
  border-color: rgba(0,0,0,0.08);
  color: #1a1a2e;
}
[data-theme="light"] .cx-form-input::placeholder { color: rgba(26,26,46,0.25); }

/* ── Currency/price: number always LTR, symbol position adapts ── */
.cx-price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  direction: ltr;
  unicode-bidi: isolate;
}
.cx-price__symbol {
  font-size: 0.6em;
  opacity: 0.6;
}
.cx-price__value {
  font-variant-numeric: tabular-nums;
}

/* ── Chip/tag: inline isolated ── */
.cx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--cx-radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--cx-glass);
  border: 1px solid var(--cx-glass-border);
  color: rgba(255,255,255,0.7);
  unicode-bidi: isolate;
}
.cx-chip__close {
  cursor: pointer;
  opacity: 0.4;
  font-size: 1.1em;
  line-height: 1;
  transition: opacity var(--cx-duration-fast);
}
.cx-chip__close:hover { opacity: 1; }
[data-theme="light"] .cx-chip { color: rgba(26,26,46,0.65); }

/* ── Status indicator: icon + text always aligned ── */
.cx-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  unicode-bidi: isolate;
}
.cx-status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cx-status--online .cx-status__dot  { background: var(--cx-neon-lime); box-shadow: 0 0 8px var(--cx-neon-lime); }
.cx-status--offline .cx-status__dot { background: var(--cx-neon-rose); box-shadow: 0 0 8px var(--cx-neon-rose); }
.cx-status--busy .cx-status__dot    { background: var(--cx-neon-amber); box-shadow: 0 0 8px var(--cx-neon-amber); }

/* ── Blockquote: border on logical start side ── */
.cx-blockquote {
  padding: var(--cx-space-md) var(--cx-space-lg);
  border-inline-start: 3px solid var(--cx-neon-cyan);
  background: var(--cx-glass);
  border-radius: 0 var(--cx-radius-md) var(--cx-radius-md) 0;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin: var(--cx-space-md) 0;
}
[dir="rtl"] .cx-blockquote {
  border-radius: var(--cx-radius-md) 0 0 var(--cx-radius-md);
}
[data-theme="light"] .cx-blockquote { color: rgba(26,26,46,0.55); }

/* ── Timeline: line on logical start ── */
[dir="rtl"] .cx-timeline::before {
  left: auto;
  right: 0;
}
[dir="rtl"] .cx-timeline__item {
  padding-inline-start: 28px;
  padding-inline-end: 0;
}
[dir="rtl"] .cx-timeline__dot {
  left: auto;
  inset-inline-start: -33px;
}

/* ── Dialog / modal: close button on logical end ── */
.cx-dialog__close {
  position: absolute;
  top: var(--cx-space-md);
  inset-inline-end: var(--cx-space-md);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--cx-duration-fast);
}
.cx-dialog__close:hover { color: #fff; }
[data-theme="light"] .cx-dialog__close { color: rgba(26,26,46,0.3); }
[data-theme="light"] .cx-dialog__close:hover { color: #1a1a2e; }

/* ── Notification position: logical side ── */
.cx-notify {
  position: fixed;
  top: var(--cx-space-lg);
  inset-inline-end: var(--cx-space-lg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}
.cx-notify__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--cx-space-md) var(--cx-space-lg);
  background: var(--cx-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--cx-glass-border);
  border-radius: var(--cx-radius-lg);
  border-inline-start: 3px solid var(--cx-neon-cyan);
  animation: cx-notify-in 0.4s var(--cx-ease-spring) forwards;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}
@keyframes cx-notify-in {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
[dir="rtl"] .cx-notify__item {
  animation-name: cx-notify-in-rtl;
}
@keyframes cx-notify-in-rtl {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Avatar group: overlap direction follows text ── */
.cx-avatar-stack {
  display: flex;
  flex-direction: row;
}
.cx-avatar-stack > *:not(:first-child) {
  margin-inline-start: -10px;
}

/* ── Progress bar: fill direction follows text ── */
.cx-progress {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.cx-progress__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cx-neon-cyan), var(--cx-neon-violet));
  transition: width var(--cx-duration-normal) var(--cx-ease-spring);
}
[dir="rtl"] .cx-progress__fill {
  margin-inline-start: auto;
  margin-inline-end: 0;
  background: linear-gradient(270deg, var(--cx-neon-cyan), var(--cx-neon-violet));
}

/* ── Date/time: always LTR for ISO / numeric dates ── */
.cx-datetime {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline;
  font-variant-numeric: tabular-nums;
}

/* ── Keyboard shortcut badge: always LTR ── */
.cx-kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
  unicode-bidi: isolate;
  padding: 2px 8px;
  font-family: var(--cx-font-mono);
  font-size: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--cx-radius-sm);
  color: rgba(255,255,255,0.5);
}
[data-theme="light"] .cx-kbd { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: rgba(26,26,46,0.5); }

/* ── URL / path: always LTR ── */
.cx-url {
  direction: ltr;
  unicode-bidi: isolate;
  word-break: break-all;
  font-family: var(--cx-font-mono);
  font-size: 0.85em;
}

/* ── Truncate: ellipsis on logical end ── */
.cx-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Divider with centered text: adapts to direction ── */
.cx-divider-text {
  display: flex;
  align-items: center;
  gap: var(--cx-space-md);
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
  margin: var(--cx-space-lg) 0;
}
.cx-divider-text::before,
.cx-divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cx-glass-border);
}
[data-theme="light"] .cx-divider-text { color: rgba(26,26,46,0.25); }
