/**
 * ==============================================================================
 * KIYAN LABS & ULTRA-EMPIRE MASTER DESIGN SYSTEM TOKENS
 * ==============================================================================
 * Domain: https://themojtahedzadeh.com & https://themojtahedzadeh.com/portal
 * Host Node: Frankfurt Germany (92.5.113.35)
 * Aesthetic: Linear.app / Vercel / Stripe / Raycast Elite Tier
 * Palette: Deep Obsidian Black + Vivid Electric Neon Purple & Magenta
 * ==============================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ============================================================================
     1. COLOR PALETTE: MULTI-DEPTH OBSIDIAN CANVAS & SURFACES
     ============================================================================ */
  --bg-void: #030008;                      /* Pure deep void base */
  --bg-canvas: #08080c;                    /* Primary body canvas */
  --bg-surface: #0d0d16;                   /* Section / surface container */
  --bg-surface-elevated: #151522;          /* Popovers, elevated trays */
  --bg-card: rgba(16, 16, 26, 0.72);       /* Glassmorphic card surface */
  --bg-card-hover: rgba(24, 24, 40, 0.85); /* Hovered card surface */
  --bg-card-solid: #12121e;                /* Opaque card fallback */
  --bg-panel: rgba(13, 6, 26, 0.78);       /* Portal workspace panels */
  --bg-elevated: #151522;                  /* Menus & dropdown sheets */
  --bg-overlay: rgba(5, 5, 8, 0.88);       /* Modal overlay */
  --bg-terminal: #04010a;                  /* Pure sandbox terminal black */
  --bg-code-diff: #070410;                 /* Code diff container surface */
  --bg-glass: rgba(14, 14, 23, 0.70);      /* Translucent glass backdrop */

  /* Backwards-compatible aliases */
  --bg: var(--bg-canvas);
  --bg-main: var(--bg-canvas);

  /* ============================================================================
     2. COLOR PALETTE: ELECTRIC NEON & ACCENT SPECTRUM
     ============================================================================ */
  /* Neon Purple Primary */
  --neon-purple: #a855f7;                  /* Core electric purple */
  --neon-purple-hover: #c084fc;
  --neon-purple-300: #d8b4fe;
  --neon-purple-400: #c084fc;
  --neon-purple-500: #a855f7;
  --neon-purple-600: #9333ea;
  --neon-purple-700: #7e22ce;

  /* Vivid Electric Laser Magenta */
  --neon-magenta: #d946ef;                 /* Core electric magenta */
  --neon-magenta-300: #f0abfc;
  --neon-magenta-400: #f472b6;
  --neon-magenta-500: #d946ef;
  --neon-magenta-600: #c026d3;

  /* Deep Royal Violet */
  --neon-violet: #7c3aed;                  /* Core royal violet */
  --neon-violet-400: #a78bfa;
  --neon-violet-500: #8b5cf6;
  --neon-violet-600: #7c3aed;
  --neon-violet-700: #6d28d9;
  --neon-violet-800: #4c1d95;
  --neon-violet-900: #2e1065;

  /* Functional Telemetry Accents */
  --neon-cyan: #06b6d4;                    /* Telemetry & MV3 verification */
  --neon-cyan-300: #67e8f9;
  --neon-cyan-400: #22d3ee;
  --neon-cyan-500: #06b6d4;

  --neon-emerald: #10b981;                 /* 100% tests passed, online node */
  --neon-emerald-300: #6ee7b7;
  --neon-emerald-400: #34d399;
  --neon-emerald-500: #10b981;

  --neon-amber: #f59e0b;                   /* Urgency & sunset notices */
  --neon-amber-300: #fde68a;
  --neon-amber-400: #fbbf24;
  --neon-amber-500: #f59e0b;

  --neon-crimson: #ef4444;                 /* Deprecation warnings & diff deletes */
  --neon-crimson-300: #fca5a5;
  --neon-crimson-400: #f87171;
  --neon-crimson-500: #ef4444;

  /* ============================================================================
     3. TEXT & CONTRAST HIERARCHY
     ============================================================================ */
  --text-pure: #ffffff;                    /* High-emphasis white */
  --text-primary: #f8fafc;                 /* Primary readable text */
  --text-secondary: #cbd5e1;               /* Subheadings, active labels */
  --text-muted: #94a3b8;                   /* Descriptive copy, captions */
  --text-dim: #64748b;                     /* Disabled elements, line numbers */
  --text-ghost: #475569;                   /* Secondary borders, syntax brackets */
  --text-accent: #c084fc;                  /* Highlighted violet keywords */
  --text-magenta: #f0abfc;                 /* Gradient punch keywords */
  --text-main: var(--text-primary);

  /* ============================================================================
     4. BORDERS & NEON GLOW FILTERS
     ============================================================================ */
  --border-faint: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-violet-faint: rgba(168, 85, 247, 0.18);
  --border-violet-glow: rgba(217, 70, 239, 0.45);
  --border-violet-active: rgba(217, 70, 239, 0.85);
  --border-bright: rgba(217, 70, 239, 0.85);
  --border-cyan-faint: rgba(6, 182, 212, 0.20);
  --border-emerald-faint: rgba(16, 185, 129, 0.25);
  --border-crimson-faint: rgba(239, 68, 68, 0.30);

  /* Linear Specular Inset Highlights */
  --specular-top: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --specular-card: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 20px rgba(168, 85, 247, 0.04);
  --specular-button: inset 0 1px 0 rgba(255, 255, 255, 0.35);

  /* Neon Glow Drop Shadows */
  --glow-sm: 0 0 15px rgba(168, 85, 247, 0.35);
  --glow-md: 0 0 30px rgba(217, 70, 239, 0.45);
  --glow-lg: 0 0 60px rgba(217, 70, 239, 0.60);
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.40);
  --glow-emerald: 0 0 15px rgba(16, 185, 129, 0.50);

  /* Elevation Shadows */
  --shadow-card: 0 20px 45px -15px rgba(0, 0, 0, 0.80), 0 0 25px -5px rgba(168, 85, 247, 0.08);
  --shadow-card-hover: 0 28px 60px -15px rgba(0, 0, 0, 0.90), 0 0 35px 0 rgba(217, 70, 239, 0.20);
  --shadow-modal: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 60px rgba(217, 70, 239, 0.35);
  --shadow-btn-neon: 0 0 25px rgba(217, 70, 239, 0.55), 0 4px 12px rgba(0, 0, 0, 0.50);
  --shadow-panel: 0 30px 60px -20px rgba(0, 0, 0, 0.85);

  /* ============================================================================
     5. TYPOGRAPHY SYSTEM
     ============================================================================ */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-ui: var(--font-sans);
  --font-mono: 'Fira Code', 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --font-rtl: 'Plus Jakarta Sans', 'Noto Sans Arabic', Tahoma, 'Geeza Pro', 'Segoe UI', sans-serif;

  /* Font Weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;
  --fw-extrablack: 900;

  /* Letter Spacing */
  --tracking-tighter: -0.04em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0em;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;
  --tracking-caps: 0.12em;

  /* Fluid Clamp Sizing */
  --text-xs: clamp(0.70rem, 0.68rem + 0.15vw, 0.78rem);
  --text-sm: clamp(0.82rem, 0.80rem + 0.20vw, 0.90rem);
  --text-base: clamp(0.95rem, 0.92rem + 0.25vw, 1.05rem);
  --text-lg: clamp(1.10rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.30rem, 1.20rem + 0.60vw, 1.55rem);
  --text-2xl: clamp(1.65rem, 1.50rem + 0.90vw, 2.10rem);
  --text-3xl: clamp(2.10rem, 1.85rem + 1.40vw, 2.85rem);
  --text-4xl: clamp(2.80rem, 2.30rem + 2.20vw, 4.20rem);
  --text-hero: clamp(3.20rem, 2.60rem + 3.20vw, 5.20rem);

  /* ============================================================================
     6. GEOMETRY & BORDER RADII
     ============================================================================ */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 26px;
  --radius-full: 9999px;

  /* ============================================================================
     7. MOTION DYNAMICS & EASING
     ============================================================================ */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-instant: 120ms;
  --duration-fast: 200ms;
  --duration-normal: 320ms;
  --duration-slow: 550ms;

  /* ============================================================================
     8. SPACING & CONTAINER BREAKPOINTS
     ============================================================================ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;
}

/* ==============================================================================
   9. GLOBAL RESETS & FOUNDATION STYLES
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color-scheme: dark;
}

::selection {
  background: rgba(217, 70, 239, 0.35);
  color: #ffffff;
}

/* Custom Obsidian Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-void);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-magenta-500);
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 50% -120px, rgba(217, 70, 239, 0.22) 0%, transparent 65%),
    radial-gradient(circle at 95% 45%, rgba(147, 51, 234, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 5% 75%, rgba(6, 182, 212, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* 44px Obsidian Engineering Cyber Grid Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(168, 85, 247, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* Container constraints */
.container {
  width: 100%;
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

/* ==============================================================================
   10. TYPOGRAPHY UTILITIES
   ============================================================================== */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--neon-purple-300) 65%, var(--neon-magenta-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-magenta {
  background: linear-gradient(135deg, var(--neon-magenta-400) 0%, var(--neon-violet-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #ffffff 20%, var(--neon-cyan-300) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: var(--fw-extrablack);
  line-height: 1.08;
  letter-spacing: var(--tracking-tighter);
  color: var(--text-pure);
  margin-block-end: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 760px;
  margin-block-end: var(--space-8);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  color: var(--text-pure);
  margin-block-end: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 640px;
}

/* ==============================================================================
   11. NAVIGATION & STICKY GLASS HEADER
   ============================================================================== */
.glass-nav,
.app-navbar,
.top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-violet-faint);
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}

.nav-container {
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding: 14px var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
}

.nav-brand,
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  cursor: pointer;
}

.brand-glyph,
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--neon-magenta-500), var(--neon-violet-600));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.55);
  color: #ffffff;
  font-weight: var(--fw-black);
}

.brand-glyph svg,
.glyph-icon {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

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

.brand-name,
.brand-title {
  font-weight: var(--fw-extrablack);
  font-size: 15px;
  letter-spacing: var(--tracking-wide);
  background: linear-gradient(90deg, #ffffff 40%, var(--neon-purple-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tag,
.brand-sub {
  font-size: 10px;
  font-weight: var(--fw-bold);
  color: var(--neon-purple-400);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: var(--fw-semibold);
  transition: color var(--duration-fast), text-shadow var(--duration-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
}

.nav-actions,
.trust-badges {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Real-Time Node Telemetry Pill */
.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 16, 26, 0.85);
  border: 1px solid var(--border-violet-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pulse-dot,
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-emerald-400);
  box-shadow: 0 0 10px var(--neon-emerald-400);
  animation: pulse-dot-glow 2s infinite ease-in-out;
  display: inline-block;
  flex-shrink: 0;
}

/* Locale Switcher */
.locale-select-wrap,
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.locale-select,
.lang-switcher select {
  background: rgba(18, 14, 30, 0.90);
  color: var(--text-primary);
  border: 1px solid var(--border-violet-faint);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.locale-select:focus,
.lang-switcher select:focus {
  border-color: var(--neon-magenta-500);
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.35);
}

.locale-select option,
.lang-switcher select option {
  background: #0f0a1c;
  color: #ffffff;
}

/* ==============================================================================
   12. BUTTONS & INTERACTIVE CTAS
   ============================================================================== */
.btn-neon,
.btn-unlock,
.btn-neon-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--neon-magenta-500) 0%, var(--neon-violet-600) 100%);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: var(--fw-bold);
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.40), var(--specular-button);
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) var(--ease-spring),
              filter var(--duration-fast);
  white-space: nowrap;
}

.btn-neon:hover,
.btn-unlock:hover,
.btn-neon-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(217, 70, 239, 0.70), var(--specular-button);
  filter: brightness(1.08);
}

.btn-neon:active,
.btn-unlock:active,
.btn-neon-header:active {
  transform: translateY(0);
}

.btn-neon-lg {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.55), var(--specular-button);
}

.btn-ghost,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(16, 16, 26, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--border-violet-faint);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: var(--fw-semibold);
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: var(--specular-top);
  transition: all var(--duration-fast) var(--ease-spring);
  white-space: nowrap;
}

.btn-ghost:hover,
.btn-secondary:hover {
  background: rgba(28, 24, 48, 0.85);
  border-color: var(--border-violet-glow);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25), var(--specular-top);
}

.btn-shimmer {
  background-size: 200% 200%;
  animation: btnShimmer 3s infinite linear;
}

/* ==============================================================================
   13. BADGES & ANNOUNCEMENT PILLS
   ============================================================================== */
.badge,
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: var(--fw-semibold);
  background: rgba(168, 85, 247, 0.12);
  color: var(--neon-purple-300);
  border: 1px solid var(--border-violet-faint);
  line-height: 1.4;
  white-space: nowrap;
}

.badge-verified,
.badge-success {
  background: rgba(16, 185, 129, 0.14);
  color: var(--neon-emerald-300);
  border-color: rgba(16, 185, 129, 0.35);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.14);
  color: var(--neon-cyan-300);
  border-color: rgba(6, 182, 212, 0.35);
}

.badge-warning,
.badge-amber {
  background: rgba(245, 158, 11, 0.14);
  color: var(--neon-amber-300);
  border-color: rgba(245, 158, 11, 0.35);
}

.badge-deprecated,
.badge-danger {
  background: rgba(239, 68, 68, 0.14);
  color: var(--neon-crimson-300);
  border-color: rgba(239, 68, 68, 0.35);
}

/* Dynamic Announcement Pill */
.announcement-pill,
.urgency-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(18, 10, 32, 0.90);
  border: 1px solid var(--border-violet-glow);
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.25);
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--duration-fast);
}

.announcement-pill:hover,
.urgency-pill:hover {
  border-color: var(--neon-magenta-500);
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.50);
  transform: translateY(-1px);
}

/* ==============================================================================
   14. BENTO GRID & CARD ARCHITECTURE
   ============================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
  margin-block: var(--space-8);
}

.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

.bento-card,
.card-glass {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-violet-faint);
  border-radius: var(--radius-xl);
  padding: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-normal) var(--ease-spring),
              border-color var(--duration-normal),
              box-shadow var(--duration-normal);
}

/* Specular Top Edge Light Line */
.bento-card::before,
.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 70, 239, 0.6) 50%, transparent);
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.bento-card:hover,
.card-glass:hover {
  transform: translateY(-4px);
  border-color: var(--border-violet-glow);
  box-shadow: var(--shadow-card-hover);
}

.bento-card:hover::before,
.card-glass:hover::before {
  opacity: 1;
}

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--border-violet-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--neon-magenta-400);
  margin-block-end: var(--space-5);
}

/* ==============================================================================
   15. VERCEL-STYLE SYNTAX-HIGHLIGHTED CODE DIFF
   ============================================================================== */
.code-diff,
.code-diff-wrapper {
  background: var(--bg-code-diff);
  border: 1px solid var(--border-violet-faint);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.70);
  direction: ltr !important;
  text-align: start !important;
}

.diff-header {
  background: #090414;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-violet-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}

.diff-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.diff-file-name {
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

.diff-file-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.20);
  color: var(--neon-purple-300);
}

.diff-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  font-family: var(--font-mono);
}

.stat-added { color: var(--neon-emerald-400); font-weight: var(--fw-bold); }
.stat-removed { color: var(--neon-crimson-400); font-weight: var(--fw-bold); }

.diff-body {
  padding: 10px 0;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.7;
}

.diff-row {
  display: flex;
  padding: 2px 18px;
  white-space: pre;
}

.diff-row.del {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.diff-row.add {
  background: rgba(16, 185, 129, 0.14);
  color: #86efac;
}

.diff-row.ctx {
  color: var(--text-muted);
}

.ln-col {
  width: 44px;
  color: var(--neon-purple-500);
  opacity: 0.65;
  user-select: none;
  flex-shrink: 0;
}

.sym-col {
  width: 22px;
  font-weight: var(--fw-bold);
  user-select: none;
  flex-shrink: 0;
}

.code-col {
  flex: 1;
  font-family: var(--font-mono);
}

/* Syntax Token Highlighting */
.tok-key { color: #f0abfc; font-weight: var(--fw-semibold); }
.tok-str { color: #93c5fd; }
.tok-num { color: #fde047; }
.tok-bool { color: #f472b6; }
.tok-comment { color: #64748b; font-style: italic; }
.tok-func { color: #67e8f9; }
.tok-op { color: #c084fc; }

/* ==============================================================================
   16. LIVE MICROSECOND SANDBOX TERMINAL
   ============================================================================== */
.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.90), 0 10px 30px rgba(0, 0, 0, 0.50);
  direction: ltr !important;
  text-align: start !important;
}

.terminal-header-bar {
  background: #080312;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-violet-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.term-dots {
  display: flex;
  gap: 6px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.term-title {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
}

.term-screen {
  padding: 22px;
  font-size: 13px;
  line-height: 1.85;
  color: #e2e8f0;
  max-height: 420px;
  overflow-y: auto;
}

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--neon-cyan-400);
  vertical-align: middle;
  margin-inline-start: 4px;
  animation: termCursor 1s infinite steps(2, start);
}

/* Terminal ANSI telemetries */
.t-pass { color: var(--neon-emerald-400); font-weight: var(--fw-bold); }
.t-cyan { color: var(--neon-cyan-400); }
.t-purple { color: var(--neon-magenta-500); font-weight: var(--fw-bold); }
.t-time { color: var(--neon-purple-300); font-weight: var(--fw-medium); }
.t-warn { color: var(--neon-amber-400); }
.t-fail { color: var(--neon-crimson-400); font-weight: var(--fw-bold); }
.t-dim { color: var(--text-dim); }

/* ==============================================================================
   17. VISUAL BEFORE/AFTER SPLIT CURTAIN SLIDER
   ============================================================================== */
.split-viewer-container {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-violet-faint);
  background: var(--bg-surface);
  user-select: none;
}

.split-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mock-browser-header {
  background: #090315;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-violet-faint);
  display: flex;
  align-items: center;
  gap: 12px;
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.mock-address-bar {
  flex: 1;
  background: rgba(18, 10, 32, 0.80);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-browser-body {
  padding: 24px;
  height: calc(100% - 44px);
  overflow-y: auto;
}

.split-divider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--neon-magenta-500);
  cursor: ew-resize;
  z-index: 20;
  box-shadow: 0 0 16px var(--neon-magenta-500);
}

.handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-magenta-500), var(--neon-violet-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: var(--fw-black);
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.80);
}

/* ==============================================================================
   18. FLOATING LIVE ENGINEERING SUPPORT CHAT WIDGET
   ============================================================================== */
.chat-drawer {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-violet-glow);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  height: 640px;
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.chat-header {
  padding: 16px 22px;
  background: #090315;
  border-bottom: 1px solid var(--border-violet-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-agent-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-magenta-500), var(--neon-violet-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-extrablack);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.70);
  flex-shrink: 0;
}

.chat-history {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 86%;
  padding: 13px 17px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.6;
  word-break: break-word;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #0e0722;
  border: 1px solid var(--border-violet-faint);
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--neon-purple-600), var(--neon-violet-700));
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.35);
}

.quick-chips-wrapper {
  padding: 10px 18px;
  background: rgba(8, 3, 18, 0.90);
  border-top: 1px solid var(--border-violet-faint);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.quick-chip {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid var(--border-violet-faint);
  color: var(--neon-purple-300);
  font-size: 11.5px;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.quick-chip:hover {
  background: rgba(217, 70, 239, 0.25);
  border-color: var(--neon-magenta-500);
  color: #ffffff;
}

.chat-input-row {
  padding: 14px 18px;
  background: #05010c;
  border-top: 1px solid var(--border-violet-faint);
  display: flex;
  gap: 10px;
}

.chat-input-field {
  flex: 1;
  background: #0d061e;
  border: 1px solid var(--border-violet-faint);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.chat-input-field:focus {
  border-color: var(--neon-magenta-500);
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.30);
}

.chat-send-btn {
  background: var(--neon-magenta-500);
  color: #ffffff;
  border: none;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-weight: var(--fw-bold);
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.60);
  transition: transform var(--duration-fast);
}

.chat-send-btn:hover {
  transform: scale(1.04);
}

/* Floating Bottom-Right Trigger */
.chat-floating-trigger {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(14, 8, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-violet-glow);
  border-radius: var(--radius-full);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(217, 70, 239, 0.50);
  transition: all var(--duration-fast) var(--ease-spring);
}

.chat-floating-trigger:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 35px rgba(217, 70, 239, 0.75);
}

/* ==============================================================================
   19. MODALS & CHECKOUT OVERLAYS
   ============================================================================== */
.modal-backdrop,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #0c0618;
  border: 1px solid var(--border-violet-glow);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 36px;
  box-shadow: var(--shadow-modal);
  position: relative;
  animation: modalScaleIn var(--duration-normal) var(--ease-spring);
}

.modal-close,
.modal-close-btn {
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  background: none;
  border: none;
  color: var(--neon-purple-400);
  font-size: 22px;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.modal-close:hover,
.modal-close-btn:hover {
  color: #ffffff;
}

/* ==============================================================================
   20. TABS & SEGMENTED CONTROLS
   ============================================================================== */
.tab-bar,
.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-violet-faint);
  padding-block-end: 12px;
  overflow-x: auto;
}

.tab-btn {
  background: rgba(16, 16, 26, 0.70);
  color: var(--text-muted);
  border: 1px solid var(--border-violet-faint);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: var(--fw-semibold);
  font-size: 13px;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: #ffffff;
  border-color: var(--border-violet-glow);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.25), rgba(124, 58, 237, 0.25));
  color: #ffffff;
  border-color: var(--neon-magenta-500);
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.40);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: modalScaleIn var(--duration-fast) var(--ease-smooth);
}

/* ==============================================================================
   21. KEYFRAME ANIMATIONS SUITE
   ============================================================================== */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.40);
    border-color: rgba(217, 70, 239, 0.40);
  }
  50% {
    box-shadow: 0 0 35px rgba(217, 70, 239, 0.75);
    border-color: rgba(217, 70, 239, 0.85);
  }
}

@keyframes radarPing {
  0% { transform: scale(1); opacity: 0.9; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

@keyframes borderBeam {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

@keyframes btnShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulse-dot-glow {
  0%, 100% {
    box-shadow: 0 0 6px var(--neon-emerald-400), 0 0 12px var(--neon-emerald-400);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 2px var(--neon-emerald-400);
    opacity: 0.6;
  }
}

@keyframes termCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes ambientGlow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.08);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==============================================================================
   22. MULTILINGUAL & NATIVE RTL OVERRIDES
   ============================================================================== */
[dir="rtl"] {
  font-family: var(--font-rtl);
  text-align: right;
}

[dir="rtl"] .nav-actions,
[dir="rtl"] .trust-badges {
  flex-direction: row-reverse;
}

[dir="rtl"] .arrow-icon {
  transform: rotate(180deg);
}

[dir="rtl"] .chat-bubble.bot {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: 4px;
}

[dir="rtl"] .chat-bubble.user {
  border-bottom-right-radius: var(--radius-lg);
  border-bottom-left-radius: 4px;
}

/* STRICT LTR PRESERVATION: Code diffs, terminal outputs, and monospace blocks MUST remain LTR */
.preserve-ltr,
[dir="rtl"] .preserve-ltr,
.code-diff-wrapper,
[dir="rtl"] .code-diff-wrapper,
.terminal-window,
[dir="rtl"] .terminal-window,
.telemetry-pill,
[dir="rtl"] .telemetry-pill,
pre,
code,
[dir="rtl"] pre,
[dir="rtl"] code {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate !important;
}

/* ==============================================================================
   23. ACCESSIBILITY & RESPONSIVE BREAKPOINTS
   ============================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .pulse-dot, .term-cursor { animation: none !important; }
}

@supports not (backdrop-filter: blur(1px)) {
  .app-navbar, .glass-nav, .bento-card, .chat-drawer, .modal-box {
    background: #0d0d18 !important;
    border: 1px solid #2a1f45 !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-col-4, .bento-col-6, .bento-col-8, .bento-col-12 {
    grid-column: span 1 !important;
  }
  .chat-drawer {
    height: 520px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-container {
    padding: 12px 16px;
  }
  .container {
    padding-inline: 16px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .split-viewer-container {
    height: 380px;
  }
  .chat-floating-trigger {
    bottom: 16px;
    inset-inline-end: 16px;
    padding: 8px 14px;
    font-size: 12px;
  }
}
