/*
   Canal Yar v2.0 — Premium Design System
   Modern Glassmorphism + Depth + Micro-interactions
   RTL-First, Dark/Light Adaptive
*/

/* ═══════════════════════════════════════
   LOCAL FONT FACES
   ═══════════════════════════════════════ */
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Light.woff') format('woff'), url('../fonts/Vazirmatn-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Regular.woff') format('woff'), url('../fonts/Vazirmatn-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Medium.woff') format('woff'), url('../fonts/Vazirmatn-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Bold.woff') format('woff'), url('../fonts/Vazirmatn-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Black.woff') format('woff'), url('../fonts/Vazirmatn-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Shabnam'; src: url('../fonts/Shabnam.ttf') format('truetype'); font-weight: normal; font-display: swap; }
@font-face { font-family: 'Shabnam'; src: url('../fonts/Shabnam-Bold.ttf') format('truetype'); font-weight: bold; font-display: swap; }
@font-face { font-family: 'Lalezar'; src: url('../fonts/Lalezar-Regular.ttf') format('truetype'); font-weight: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

/* ═══════════════════════════════════════
   DESIGN TOKENS — DARK MODE (Default)
   ═══════════════════════════════════════ */
:root {
  /* Fonts */
  --font-fa: 'Vazirmatn', 'Shabnam', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Outfit', 'Vazirmatn', system-ui, sans-serif;
  --font-display: 'Lalezar', var(--font-fa);

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Colors — Surfaces (Aligned with Palette A) */
  --bg-base: #090d1a;
  --bg-deep: #060913;
  --bg-raised: #0c1222;
  --bg-overlay: #10182c;
  --bg-surface: rgba(15, 23, 42, 0.78);
  --bg-surface-hover: rgba(22, 34, 62, 0.9);
  --bg-card: rgba(16, 24, 44, 0.85);
  --bg-input: rgba(10, 16, 30, 0.8);
  --bg-input-focus: rgba(15, 23, 42, 0.95);

  /* Colors — Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(234, 88, 12, 0.6);

  /* Colors — Brand (Platform Saz Distinct Signature: Dark Obsidian + Warm Tangerine) */
  --primary: #ea580c;
  --primary-hover: #f97316;
  --primary-subtle: rgba(234, 88, 12, 0.12);
  --primary-glow: rgba(234, 88, 12, 0.35);

  --royal-blue: #2563eb;
  --royal-blue-subtle: rgba(37, 99, 235, 0.12);

  --cyan: #06b6d4;
  --cyan-subtle: rgba(6, 182, 212, 0.12);
  --cyan-glow: rgba(6, 182, 212, 0.28);

  /* Signature Warm Tangerine Orange */
  --accent: #ea580c;
  --accent-hover: #f97316;
  --accent-subtle: rgba(234, 88, 12, 0.12);
  --accent-glow: rgba(234, 88, 12, 0.35);

  --cta: #ea580c;
  --cta-hover: #f97316;
  --cta-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --cta-glow: rgba(234, 88, 12, 0.36);

  --purple: #6366f1;
  --purple-subtle: rgba(99, 102, 241, 0.12);

  --success: #10b981;
  --success-subtle: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-subtle: rgba(245, 158, 11, 0.12);
  --error: #ef4444;
  --error-subtle: rgba(239, 68, 68, 0.12);

  /* Colors — Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;
  --text-on-primary: #ffffff;
  --text-main-rgb: 248, 250, 252;

  /* Legacy aliases for JS compatibility */
  --text-main: var(--text-primary);
  --text-muted: var(--text-secondary);
  --text-dark: var(--text-inverse);
  --bg-deep: var(--bg-base);
  --bg-space: var(--bg-raised);
  --bg-glass: var(--bg-surface);
  --bg-glass-hover: var(--bg-surface-hover);
  --border-glass: var(--border-default);
  --border-glass-glow: var(--border-focus);
  --border-input: var(--border-default);
  --bg-welcome-gradient: linear-gradient(135deg, rgba(8, 14, 28, 0.85) 0%, rgba(20, 10, 35, 0.75) 100%);
  --bg-card-gradient: linear-gradient(145deg, rgba(12, 18, 36, 0.7) 0%, rgba(5, 8, 16, 0.95) 100%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(0, 229, 255, 0.12);
  --shadow-glow-accent: 0 0 25px rgba(255, 0, 127, 0.15);
  --shadow-glow-primary: 0 0 20px rgba(0, 132, 255, 0.15);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.15s var(--ease-smooth);
  --transition-smooth: all 0.35s var(--ease-smooth);
  --transition-slow: 0.5s var(--ease-smooth);

  /* Sidebar */
  --sidebar-width: 270px;
  --sidebar-collapsed-width: 72px;

  /* UI/UX Pro Max Canonical Design Tokens (MASTER.md) */
  --color-primary: #0084ff;
  --color-on-primary: #ffffff;
  --color-secondary: #3b82f6;
  --color-on-secondary: #000000;
  --color-accent: #00e5ff;
  --color-on-accent: #000000;
  --color-background: #050810;
  --color-foreground: #f8fafc;
  --color-card: #0e1526;
  --color-card-foreground: #f8fafc;
  --color-muted: #1e293b;
  --color-muted-foreground: #94a3b8;
  --color-border: #334155;
  --color-destructive: #dc2626;
  --color-on-destructive: #ffffff;
  --color-ring: #00e5ff;
}

/* ═══════════════════════════════════════
   LIGHT MODE OVERRIDES
   ═══════════════════════════════════════ */
body.light-mode,
.light-mode {
  --bg-base: #f8fafc;
  --bg-deep: #f1f5f9;
  --bg-raised: #ffffff;
  --bg-overlay: #edf2f7;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-input-focus: #f8fafc;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-default: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.22);
  --border-focus: rgba(0, 102, 204, 0.5);

  --primary: #0066cc;
  --primary-hover: #0077ed;
  --primary-subtle: rgba(0, 102, 204, 0.08);
  --primary-glow: rgba(0, 102, 204, 0.12);
  --cyan: #0891b2;
  --cyan-subtle: rgba(8, 145, 178, 0.08);
  --cyan-glow: rgba(8, 145, 178, 0.12);
  --accent: #dc2626;
  --accent-hover: #ef4444;
  --accent-subtle: rgba(220, 38, 38, 0.08);
  --accent-glow: rgba(220, 38, 38, 0.1);
  --purple: #6c5ce7;
  --purple-subtle: rgba(108, 92, 231, 0.08);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #f8fafc;
  --text-main-rgb: 15, 23, 42;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);
  --shadow-glow: 0 4px 16px rgba(0, 132, 255, 0.08);
  --shadow-glow-accent: 0 4px 16px rgba(220, 38, 38, 0.06);
  --shadow-glow-primary: 0 4px 16px rgba(0, 102, 204, 0.08);

  --bg-welcome-gradient: linear-gradient(135deg, rgba(230, 238, 250, 0.95) 0%, rgba(240, 236, 255, 0.9) 100%);
  --bg-card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 248, 252, 0.98) 100%);

  /* UI/UX Pro Max Canonical Light Tokens */
  --color-primary: #0066cc;
  --color-on-primary: #ffffff;
  --color-secondary: #2563eb;
  --color-on-secondary: #ffffff;
  --color-accent: #0891b2;
  --color-on-accent: #ffffff;
  --color-background: #f4f6fa;
  --color-foreground: #0f172a;
  --color-card: #ffffff;
  --color-card-foreground: #0f172a;
  --color-muted: #e2e8f0;
  --color-muted-foreground: #475569;
  --color-border: #cbd5e1;
  --color-destructive: #dc2626;
  --color-on-destructive: #ffffff;
  --color-ring: #0066cc;
}

/* ═══════════════════════════════════════
   GLOBAL RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-fa);
}

body {
  font-family: var(--font-fa);
  font-feature-settings: "ss01", "ss02", "kern", "calt";
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  min-height: 100vh;
}

input, button, select, textarea, label, table, form, modal {
  font-family: var(--font-fa);
}

/* Touch & Interaction (UI/UX Pro Max - Touch Target & Latency Optimization) */
a, button, input, select, textarea, [role="button"], .btn, .menu-item, .arena-node, .card-interactive, .tab-btn {
  touch-action: manipulation;
}

/* Screen Reader Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--text-main-rgb), 0.12); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--text-main-rgb), 0.25); }

/* Selection */
::selection { background: var(--primary-subtle); color: var(--text-primary); }

/* Focus Outline (WCAG 2.2 AA Compliant 2px Neon Ring) */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  text-wrap: balance;
}

/* Tabular numbers for prices, metrics, and timers */
.tabular-nums, .price-value, .stat-value, .badge, .counter, .plan-price, .calc-price, .hero-badge-cinema, .cmd-shortcut-badge {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

h1 { font-family: var(--font-display); font-weight: 400; }

.text-display { font-size: 40px; font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; }
.text-heading { font-size: 24px; font-weight: 700; line-height: 1.3; }
.text-subheading { font-size: 18px; font-weight: 600; line-height: 1.4; }
.text-body { font-size: 14.5px; font-weight: 400; line-height: 1.7; }
.text-caption { font-size: 12.5px; font-weight: 400; color: var(--text-secondary); }
.text-english { font-family: var(--font-en); }

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--cyan) 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.accent-gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--accent) 70%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.view-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.view-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-padding {
  padding: 100px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ═══════════════════════════════════════
   GLASS PANELS & CARDS
   ═══════════════════════════════════════ */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-strong);
}

.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}

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

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

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.25s;
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.06);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
  border: 1px solid rgba(249, 115, 22, 0.5);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.48);
  border-color: rgba(251, 146, 60, 0.8);
}

.btn-accent {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
  border: 1px solid rgba(249, 115, 22, 0.5);
  font-weight: 700;
}

.btn-accent:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.52);
  border-color: rgba(251, 146, 60, 0.8);
}

.btn-secondary {
  background: rgba(var(--text-main-rgb), 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: rgba(var(--text-main-rgb), 0.08);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(var(--text-main-rgb), 0.05);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════
   HEADER / NAVBAR
   ═══════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 6%;
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

body.light-mode header {
  background: rgba(255, 255, 255, 0.82);
}

.logo {
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  transition: transform 0.3s var(--ease-smooth), filter 0.3s var(--ease-smooth);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.35));
}

.logo:hover .logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.65));
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
  padding: 4px 0;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  right: 0;
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  transition: width 0.3s var(--ease-smooth);
  border-radius: var(--radius-full);
}

nav a:hover { color: var(--text-primary); }
nav a:hover::after { width: 100%; }

/* Mobile hamburger */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ═══════════════════════════════════════
   SIDEBAR (Panel Pages)
   ═══════════════════════════════════════ */
.dashboard-container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: #090d1a;
  background-image: 
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 15% 40%, rgba(234, 88, 12, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #090d1a 0%, #060913 100%);
  background-attachment: fixed;
}

#sidebar-container {
  width: var(--sidebar-width, 270px);
  min-width: var(--sidebar-width, 270px);
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 100;
}

.sidebar {
  width: 100%;
  height: 100%;
  background: rgba(10, 16, 30, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-subtle);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 100;
  transition: transform 0.35s var(--ease-smooth), width 0.35s var(--ease-smooth), padding 0.35s var(--ease-smooth);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar::-webkit-scrollbar { width: 0; }

.sidebar-menu {
  list-style: none;
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  position: relative;
}

.menu-item:hover {
  color: var(--text-primary);
  background: rgba(var(--text-main-rgb), 0.05);
}

.menu-item.active {
  color: #ffffff !important;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.2);
  font-weight: 700;
}

.menu-item.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5px;
  height: 65%;
  background: #2563eb;
  box-shadow: 0 0 8px #2563eb;
  border-radius: var(--radius-full);
}

.menu-item svg, .menu-item .sidebar-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s var(--ease-smooth);
  text-decoration: none;
  cursor: pointer;
}
.user-badge:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 16px rgba(37, 99, 235, 0.2);
}
.user-badge:hover .user-avatar {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
}

.topbar-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s var(--ease-smooth);
}
.topbar-profile-btn:hover .topbar-avatar {
  transform: scale(1.08);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

.user-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0084ff 0%, #00e5ff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-en);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
  transition: all 0.25s var(--ease-smooth);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.content-area {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-lg) var(--space-xl) 120px;
  position: relative;
  box-sizing: border-box;
}

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.active {
  opacity: 1;
}

/* Sidebar toggle button */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 200;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

/* ═══════════════════════════════════════
   PANEL TOPBAR (Unified Navigation)
   ═══════════════════════════════════════ */
.panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 12px 20px;
  background: rgba(10, 16, 30, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 90;
}

.panel-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-hamburger-btn {
  display: none;
  background: rgba(var(--text-main-rgb), 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 18px;
}

.panel-hamburger-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.panel-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.panel-breadcrumb .breadcrumb-root {
  color: var(--text-tertiary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.panel-breadcrumb .breadcrumb-root:hover {
  color: var(--cyan);
}

.panel-breadcrumb .breadcrumb-sep {
  color: var(--border-strong);
  font-size: 11px;
}

.panel-breadcrumb .breadcrumb-current {
  color: var(--text-primary);
  font-weight: 700;
}

.cloud-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  color: #10b981;
  font-weight: 600;
}

.cloud-status-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.topbar-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(var(--text-main-rgb), 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.topbar-icon-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

.topbar-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 6px;
  background: rgba(var(--text-main-rgb), 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s;
}

.topbar-user-pill:hover {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.05);
}

.topbar-user-pill .topbar-user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user-pill .topbar-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0084ff, #00e5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

/* ═══════════════════════════════════════
   FORMS & INPUTS
   ═══════════════════════════════════════ */
.form-group {
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-fa);
  font-size: 14px;
  outline: none;
  transition: all 0.25s var(--ease-smooth);
  width: 100%;
}

.form-control:focus {
  border-color: var(--border-focus);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.08);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ═══════════════════════════════════════
   TABLES
   ═══════════════════════════════════════ */
.table-container {
  overflow-x: auto;
  margin-top: var(--space-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
}

th {
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tr {
  transition: background 0.15s;
}

tr:hover td {
  background: rgba(var(--text-main-rgb), 0.02);
}

/* ═══════════════════════════════════════
   BADGES
   ═══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: var(--success-subtle); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-error { background: var(--error-subtle); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.25); }
.badge-warning { background: var(--warning-subtle); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-info { background: var(--cyan-subtle); color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.2); }
.badge-secondary { background: rgba(var(--text-main-rgb), 0.05); color: var(--text-secondary); border: 1px solid var(--border-subtle); }

/* ═══════════════════════════════════════
   MODALS
   ═══════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 92%;
  max-width: 500px;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s var(--ease-smooth);
  padding: var(--space-lg);
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--error);
  background: var(--error-subtle);
}

/* ═══════════════════════════════════════
   STAT CARDS (Dashboard)
   ═══════════════════════════════════════ */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-glow-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-glow-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  pointer-events: none;
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* ═══════════════════════════════════════
   WALLET CARD
   ═══════════════════════════════════════ */
.wallet-card {
  background: linear-gradient(135deg, rgba(0, 132, 255, 0.08) 0%, rgba(125, 95, 255, 0.06) 100%);
  border: 1px solid rgba(0, 132, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ═══════════════════════════════════════
   PROGRESS BARS
   ═══════════════════════════════════════ */
.sub-bar-progress {
  width: 100%;
  height: 6px;
  background: rgba(var(--text-main-rgb), 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sub-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease-smooth);
}

/* ═══════════════════════════════════════
   SKELETON LOADERS
   ═══════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, rgba(var(--text-main-rgb), 0.04) 25%, rgba(var(--text-main-rgb), 0.08) 50%, rgba(var(--text-main-rgb), 0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text { height: 14px; width: 70%; margin-bottom: 8px; }
.skeleton-title { height: 22px; width: 45%; margin-bottom: 12px; }
.skeleton-card { height: 120px; width: 100%; }
.skeleton-circle { width: 48px; height: 48px; border-radius: 50%; }

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════ */
.empty-placeholder {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--text-secondary);
}

.empty-placeholder .empty-icon {
  font-size: 56px;
  display: block;
  margin-bottom: var(--space-md);
  opacity: 0.6;
}

.empty-placeholder h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.empty-placeholder p {
  font-size: 13.5px;
  color: var(--text-tertiary);
  max-width: 380px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════ */
.alert-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-raised);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  color: var(--text-primary);
  font-family: var(--font-fa);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-smooth), opacity 0.4s;
  direction: rtl;
  max-width: 420px;
}

.alert-toast.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.alert-toast.toast-success { border-color: rgba(16, 185, 129, 0.3); }
.alert-toast.toast-error { border-color: rgba(239, 68, 68, 0.3); }
.alert-toast.toast-info { border-color: rgba(0, 132, 255, 0.3); }

#toast-icon { font-size: 18px; flex-shrink: 0; }

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-effect { animation: float 4s ease-in-out infinite; }

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

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(var(--text-main-rgb), 0.1);
  border-radius: 50%;
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fade-in-up 0.4s var(--ease-smooth); }

@keyframes count-up-glow {
  0% { text-shadow: none; }
  50% { text-shadow: 0 0 8px var(--cyan-glow); }
  100% { text-shadow: none; }
}

/* Floating ambient orbs */
body::before, body::after {
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  animation: float-orb 25s infinite alternate;
}
body::before { top: -10%; left: -5%; background: var(--cyan); }
body::after { bottom: -10%; right: -5%; background: var(--accent); animation-delay: -12s; }

body.light-mode::before,
body.light-mode::after {
  opacity: 0.04;
}

@keyframes float-orb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.15); }
  100% { transform: translate(-20px, -40px) scale(0.9); }
}

/* ═══════════════════════════════════════
   EDITOR COMPONENTS
   ═══════════════════════════════════════ */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: rgba(var(--text-main-rgb), 0.02);
  border: 1px solid var(--border-default);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 8px 10px;
}

.toolbar-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.15s;
}

.toolbar-btn:hover {
  background: rgba(var(--text-main-rgb), 0.06);
  color: var(--text-primary);
}

.form-control.with-toolbar {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Editor layout */
.editor-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

/* ═══════════════════════════════════════
   PHONE MOCKUP
   ═══════════════════════════════════════ */
.phone-mockup {
  width: 100%;
  max-width: 300px;
  height: 520px;
  border: 10px solid rgba(var(--text-main-rgb), 0.08);
  border-radius: 36px;
  background: var(--bg-raised);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-mockup::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 16px;
  background: rgba(var(--text-main-rgb), 0.08);
  border-radius: 0 0 10px 10px;
  z-index: 10;
}

.phone-header {
  height: 38px;
  background: rgba(var(--text-main-rgb), 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-en);
}

.phone-screen {
  flex-grow: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.phone-bubble {
  background: rgba(0, 132, 255, 0.1);
  border: 1px solid rgba(0, 132, 255, 0.18);
  padding: 10px 12px;
  border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md);
  margin-bottom: 10px;
  max-width: 88%;
  align-self: flex-start;
  word-break: break-word;
  font-size: 12px;
  box-shadow: var(--shadow-xs);
  line-height: 1.7;
}

.phone-bubble-media {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  display: block;
  max-height: 160px;
  object-fit: cover;
}

.phone-bubble-doc {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--text-main-rgb), 0.04);
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 6px;
  font-size: 11px;
}

.phone-tabs .tab-btn { opacity: 0.6; transition: all 0.2s; }
.phone-tabs .tab-btn.active { opacity: 1; font-weight: bold; }

/* ═══════════════════════════════════════
   CHANNEL MANAGEMENT
   ═══════════════════════════════════════ */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.channel-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
}

.channels-grid .channel-card {
  position: relative;
  background: var(--bg-card-gradient) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-smooth);
}

.channels-grid .channel-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus) !important;
  box-shadow: var(--shadow-md), var(--shadow-glow) !important;
}

.channels-grid .channel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--primary));
}

/* Channel selection pills (editor) */
.channel-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.channel-pill {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(var(--text-main-rgb), 0.01);
  transition: all 0.2s var(--ease-smooth);
  user-select: none;
}

.channel-pill:hover {
  border-color: var(--border-strong);
  background: rgba(var(--text-main-rgb), 0.03);
}

.channel-pill.selected {
  border-color: var(--cyan);
  background: var(--cyan-subtle);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.08);
}

/* Platform dots */
.platform-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.platform-dot.telegram { background: #0088cc; }
.platform-dot.bale { background: #3fba60; }
.platform-dot.eitaa { background: #ff9100; }
.platform-dot.rubika { background: #9c27b0; }
.platform-dot.soroush { background: #00bcd4; }

/* ═══════════════════════════════════════
   TICKETS / TIMELINE
   ═══════════════════════════════════════ */
.ticket-list-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}

.ticket-list-item:hover { background: rgba(var(--text-main-rgb), 0.02); }

.ticket-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-height: 420px;
  overflow-y: auto;
  padding: var(--space-md);
  background: rgba(var(--text-main-rgb), 0.01);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.timeline-msg {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  box-shadow: var(--shadow-xs);
  line-height: 1.7;
}

.timeline-msg.user {
  align-self: flex-start;
  background: var(--cyan-subtle);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md);
}

.timeline-msg.support {
  align-self: flex-end;
  background: var(--accent-subtle);
  border: 1px solid rgba(255, 0, 127, 0.12);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 0;
}

/* ═══════════════════════════════════════
   MEDIA UPLOADER
   ═══════════════════════════════════════ */
.media-uploader-mock {
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  background: rgba(var(--text-main-rgb), 0.01);
  transition: all 0.25s var(--ease-smooth);
  margin-top: var(--space-md);
}

.media-uploader-mock:hover {
  border-color: var(--cyan);
  background: var(--cyan-subtle);
}

.media-preview-container {
  position: relative;
  margin-top: var(--space-md);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  background: rgba(var(--text-main-rgb), 0.02);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.media-preview-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.media-preview-info { flex-grow: 1; font-size: 13px; }

.media-preview-remove {
  background: var(--error-subtle);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--error);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.media-preview-remove:hover { background: var(--error); color: #fff; }

/* ═══════════════════════════════════════
   INFO ITEMS / GUIDE STEPS
   ═══════════════════════════════════════ */
.info-item {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: var(--space-xs);
}
.info-item:last-child { border-bottom: none; }

.guide-step {
  padding: var(--space-sm) var(--space-md);
  border-right: 3px solid var(--cyan);
  margin-bottom: var(--space-md);
  background: rgba(var(--text-main-rgb), 0.01);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ═══════════════════════════════════════
   BLOG STYLES
   ═══════════════════════════════════════ */
.post-detail-content h2, .post-detail-content h3 { color: var(--text-primary); font-weight: 800; margin-top: 2rem; margin-bottom: 0.8rem; }
.post-detail-content h2 { font-size: 1.4rem; }
.post-detail-content h3 { font-size: 1.2rem; }
.post-detail-content p { color: var(--text-primary); opacity: 0.92; margin-bottom: 1.2rem; font-size: 14.5px; line-height: 1.9; text-align: justify; }
.post-detail-content blockquote { border-right: 4px solid var(--cyan); background: var(--cyan-subtle); padding: 14px 18px; margin: 1.5rem 0; border-radius: 0 var(--radius-xs) var(--radius-xs) 0; font-style: italic; color: var(--text-secondary); }
.post-detail-content ul, .post-detail-content ol { margin: 1rem 0; padding-right: 1.5rem; }
.post-detail-content li { margin-bottom: 0.4rem; font-size: 14.5px; }
.post-detail-content img.blog-inline-img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1.5rem auto; display: block; box-shadow: var(--shadow-md); border: 1px solid var(--border-subtle); }
.post-detail-content a { color: var(--cyan); text-decoration: none; border-bottom: 1px dashed var(--cyan); transition: color 0.2s; }
.post-detail-content a:hover { color: var(--primary); border-bottom-color: var(--primary); }

body.light-mode .post-detail-content blockquote { background: var(--primary-subtle); border-right-color: var(--primary); }
body.light-mode .post-detail-content a { color: var(--primary); border-bottom-color: var(--primary); }

/* ═══════════════════════════════════════
   CHAT BUBBLES (Landing Preview)
   ═══════════════════════════════════════ */
.chat-bubble {
  background: rgba(0, 132, 255, 0.12);
  border: 1px solid rgba(0, 132, 255, 0.2);
  padding: 10px 14px;
  border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md);
  margin-bottom: 10px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 13.5px;
  animation: fade-in-up 0.3s var(--ease-smooth);
}

.chat-bubble.other {
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 0;
  background: rgba(var(--text-main-rgb), 0.04);
  border-color: var(--border-default);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.tab-btn:hover {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════
   TRUST SIGNALS STRIP
   ═══════════════════════════════════════ */
.trust-strip {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}
.trust-counter {
  font-size: 36px;
  font-weight: 900;
  font-family: var(--font-en);
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--cyan) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.trust-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.trust-divider {
  width: 1px;
  height: 48px;
  background: var(--border-default);
}

/* ═══════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════ */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-xl);
  text-align: center;
}
.error-code {
  font-size: 120px;
  font-weight: 900;
  font-family: var(--font-en);
  background: linear-gradient(135deg, var(--cyan) 0%, var(--primary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-md);
}
.error-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}
.error-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   UTILITY CLASSES — LAYOUT
   ═══════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.section-header h2 {
  font-size: 30px;
  margin-bottom: var(--space-sm);
}
.section-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}
.pricing-card {
  padding: var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  background: var(--bg-card-gradient);
  position: relative;
  overflow: visible;
  height: 100%;
}

/* ═══════════════════════════════════════
   RESPONSIVE — TABLET (< 1024px)
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .dashboard-container {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    flex-direction: column;
  }

  #sidebar-container {
    width: 0 !important;
    height: 0 !important;
    position: static;
    display: block;
    flex-shrink: 0;
  }

  .content-area {
    height: auto;
    overflow-y: visible;
    padding: var(--space-md) var(--space-md) 100px;
    padding-top: var(--space-md);
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 290px !important;
    max-width: 85vw !important;
    height: 100vh;
    transform: translateX(100%);
    z-index: 500;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-drawer-close-btn {
    display: flex !important;
  }

  .sidebar-toggle {
    display: flex;
    z-index: 450;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 490;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }

  .panel-hamburger-btn {
    display: inline-flex !important;
  }

  .cloud-status-pill {
    display: none;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE (< 768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .form-control {
    font-size: 16px; /* Prevents auto-zooming on focus in iOS browsers */
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  header {
    padding: 12px 4%;
  }

  nav {
    display: none;
  }

  nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border-default);
    padding: var(--space-md);
    gap: 0;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  nav.mobile-open a {
    padding: 12px var(--space-md);
    border-radius: var(--radius-sm);
  }

  .hamburger-btn {
    display: flex;
  }

  .hero-section { padding: 80px 0 60px; }
  .section-padding { padding: 60px 0; }

  .text-display { font-size: 28px; }
  .view-title { font-size: 18px; }

  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .stat-glow-card {
    padding: var(--space-md);
  }

  .channel-select-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .trust-items { gap: var(--space-xl); }
  .trust-counter { font-size: 28px; }
  .trust-divider { display: none; }
  .error-code { font-size: 80px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (< 480px)
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .text-display { font-size: 24px; }

  .btn { padding: 10px 20px; font-size: 13px; }
}

/* ═══════════════════════════════════════
   PRINT
   ═══════════════════════════════════════ */
@media print {
  body::before, body::after { display: none; }
  .sidebar, header, .alert-toast { display: none; }
  .content-area { padding: 0; }
}

/* ═══════════════════════════════════════
   EMERGENCY ANNOUNCEMENT BANNER
   ═══════════════════════════════════════ */
.announcement-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  animation: fade-in-up 0.35s var(--ease-smooth);
}

.announcement-banner.info {
  background: rgba(0, 132, 255, 0.08);
  border-color: rgba(0, 132, 255, 0.25);
  color: #38bdf8;
}

.announcement-banner.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.announcement-banner.error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.announcement-banner.success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.announcement-banner-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}

.announcement-banner-close:hover {
  background: rgba(var(--text-main-rgb), 0.05);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════
   REPORTS SUB-TABS & SECTIONS
   ═══════════════════════════════════════ */
.sub-tabs-container {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2px;
}

.sub-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 20px;
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.25s var(--ease-smooth);
}

.sub-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(var(--text-main-rgb), 0.03);
}

.sub-tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}

.report-section {
  display: none;
}

.report-section.active {
  display: block;
  animation: fade-in-up 0.35s var(--ease-smooth);
}

@keyframes pulse-badge {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
  }
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
  }
}

/* Blog 2-Column Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.blog-main { min-width: 0; }

.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-sidebar-widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(12px);
}

.blog-sidebar-widget .widget-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 229, 255, 0.06);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.15);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.tag-pill:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

.tag-pill.active {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
  font-weight: 700;
}

/* Tag sizes for tag cloud */
.tag-pill.tag-lg { font-size: 14px; padding: 6px 16px; }
.tag-pill.tag-md { font-size: 12.5px; padding: 5px 14px; }
.tag-pill.tag-sm { font-size: 11.5px; padding: 4px 10px; }

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 6px;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.category-list a:hover,
.category-list a.active {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.15);
}

.category-list .cat-count {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
}

.blog-card-enhanced {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(8px);
}

.blog-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.3);
}

.blog-card-enhanced .card-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card-enhanced .card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card-enhanced:hover .card-cover img {
  transform: scale(1.08);
}

.blog-card-enhanced .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
}

.blog-card-enhanced .card-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}

.blog-card-enhanced .card-title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-enhanced .card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-enhanced .card-title a:hover {
  color: var(--cyan);
}

.blog-card-enhanced .card-summary {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-enhanced .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.blog-card-enhanced .card-meta {
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.toc-sticky {
  position: sticky;
  top: 100px;
}

.toc-sticky .toc-list a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  border-right: 2px solid transparent;
}

.toc-sticky .toc-list a:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.04);
}

.toc-sticky .toc-list a.toc-active {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border-right-color: var(--cyan);
  font-weight: 700;
}

.toc-sticky .toc-list .toc-h3 {
  padding-right: 24px;
  font-size: 12.5px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cyan);
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.6);
}

.popular-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-glass);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.popular-post-item:last-child {
  border-bottom: none;
}

.popular-post-item:hover {
  opacity: 0.8;
}

.popular-post-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.popular-post-item .post-info h4 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 4px;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-post-item .post-info span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Tablet */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
  
  .blog-card-enhanced .card-cover {
    height: 170px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .blog-sidebar {
    position: static;
    order: 2;
  }
  
  .blog-main {
    order: 1;
  }
  
  .blog-card-enhanced .card-cover {
    height: 180px;
  }
  
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

body.light-mode .blog-card-enhanced {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .blog-card-enhanced:hover {
  box-shadow: 0 12px 40px rgba(0, 132, 255, 0.1);
  border-color: rgba(0, 132, 255, 0.3);
}

body.light-mode .blog-sidebar-widget {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .tag-pill {
  background: rgba(0, 132, 255, 0.06);
  color: var(--primary);
  border-color: rgba(0, 132, 255, 0.15);
}

body.light-mode .tag-pill:hover {
  background: rgba(0, 132, 255, 0.15);
  border-color: var(--primary);
}

body.light-mode .tag-pill.active {
  background: var(--primary);
  color: white;
}

body.light-mode .category-list a:hover,
body.light-mode .category-list a.active {
  background: rgba(0, 132, 255, 0.06);
  border-color: rgba(0, 132, 255, 0.15);
}

body.light-mode .back-to-top {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 132, 255, 0.4);
}

/* ═══════════════════════════════════════
   FLOATING SOCIAL MENU
   ═══════════════════════════════════════ */
.floating-social-bar {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 8px;
  background: rgba(11, 19, 40, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.15);
  transition: all 0.3s var(--ease-smooth);
}

.floating-social-item {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 17px;
  transition: all 0.25s ease;
}

.floating-social-item:hover {
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3);
}

.floating-social-tooltip {
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: #0d172a;
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: bold;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.floating-social-item:hover .floating-social-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .floating-social-bar {
    top: auto;
    bottom: 20px;
    left: 15px;
    transform: none;
    flex-direction: row;
    padding: 8px 12px;
    border-radius: 25px;
  }
  .floating-social-tooltip {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   NARRATIVE SCROLL STORYTELLING — Landing Page v4
   ═══════════════════════════════════════════════════════════ */

/* --- Section 1: Hero (Pain) --- */
.story-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--bg-base);
  padding: var(--space-3xl) var(--space-md);
  position: relative;
}

.story-eyebrow {
  color: #ff9f43;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  font-family: var(--font-en);
}

.story-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  max-width: 700px;
  color: var(--text-main);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.story-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.9;
  margin-bottom: var(--space-xl);
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  color: var(--text-muted);
  animation: bounce 2s infinite var(--ease-bounce);
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-left: 0.15em solid var(--primary);
  margin: 0 auto;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary); }
}

.fade-in-slow {
  animation: fadeInSlow 1.2s var(--ease-smooth) forwards;
}

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

/* --- Section 2: Agitate (Pain intensification) --- */
.story-agitate {
  background-color: var(--bg-raised);
  padding: var(--space-3xl) var(--space-md);
}

.agitate-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}



.agitate-card:nth-child(1) { border-left-color: var(--cyan); }
.agitate-card:nth-child(2) { border-left-color: var(--accent); }
.agitate-card:nth-child(3) { border-left-color: var(--purple); }

.agitate-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.agitate-card h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: var(--space-sm);
}

.agitate-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.count-up-number {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-top: var(--space-md);
}

.bridge-text {
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
  margin-top: var(--space-3xl);
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Section 3: Turn (Solution reveal) --- */
.story-turn {
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.12) 0%, rgba(0, 132, 255, 0.05) 40%, var(--bg-base) 80%);
  padding: calc(var(--space-3xl) * 1.5) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.turn-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  background: linear-gradient(135deg, #00e5ff 0%, #0084ff 50%, #7d5fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 4px 15px rgba(0, 229, 255, 0.2));
}

.turn-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.8;
}

.hub-diagram {
  max-width: 440px;
  width: 100%;
  aspect-ratio: 1/1;
  margin: 0 auto;
  position: relative;
}

.hub-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}

.hub-connection {
  stroke: url(#hubLineGradient);
  stroke-width: 2.5;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s ease-out;
}

.hub-active .hub-connection {
  stroke-dashoffset: 0;
}

/* Pulsing laser signal dots traveling along lines */
.hub-signal-dot {
  fill: #00e5ff;
  r: 4;
  filter: drop-shadow(0 0 8px #00e5ff);
  opacity: 0;
}

.hub-active .hub-signal-dot {
  animation: signalTravel 2.5s infinite ease-in-out;
}

@keyframes signalTravel {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: var(--travel-dest); }
}

.hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.4), var(--shadow-glow);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.6s var(--ease-bounce);
}

.hub-active .hub-center {
  transform: translate(-50%, -50%) scale(1);
  animation: centerPulse 3s infinite ease-in-out;
}

@keyframes centerPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(0, 229, 255, 0.4); transform: translate(-50%, -50%) scale(1); }
  50% { box-shadow: 0 0 50px rgba(0, 229, 255, 0.7); transform: translate(-50%, -50%) scale(1.05); }
}

.hub-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  border: 2px solid var(--cyan);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.hub-active .hub-pulse-ring {
  animation: hubPulse 2.4s infinite ease-out;
}

@keyframes hubPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

.hub-node {
  position: absolute;
  width: 72px;
  height: 72px;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 4;
  opacity: 0;
  transform: translateX(-50%) scale(0.3);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-bounce), box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hub-active .hub-node {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.hub-active .hub-node:nth-child(1) { animation: floatNode1 4s infinite ease-in-out 0.6s; }
.hub-active .hub-node:nth-child(2) { animation: floatNode2 4.2s infinite ease-in-out 0.8s; }
.hub-active .hub-node:nth-child(3) { animation: floatNode3 3.8s infinite ease-in-out 1.0s; }
.hub-active .hub-node:nth-child(4) { animation: floatNode4 4.4s infinite ease-in-out 1.2s; }
.hub-active .hub-node:nth-child(5) { animation: floatNode5 3.9s infinite ease-in-out 1.4s; }

@keyframes floatNode1 { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }
@keyframes floatNode2 { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
@keyframes floatNode3 { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
@keyframes floatNode4 { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(5px); } }
@keyframes floatNode5 { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-7px); } }

.node-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 2px;
}

.node-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
}

/* --- Section 4: How It Works (Pinned scroll) --- */
.story-howworks {
  height: 300vh;
  position: relative;
  background-color: var(--bg-base);
}

.howworks-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.howworks-step {
  position: absolute;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
  text-align: center;
  max-width: 600px;
  padding: var(--space-xl);
}

.howworks-step.step-active {
  opacity: 1;
  transform: translateY(0);
}

.step-number-badge {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  color: white;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-lg);
}

.step-content h3 {
  font-size: 1.75rem;
  color: var(--text-main);
  margin-bottom: var(--space-sm);
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Section 5: Social Proof --- */
.story-proof {
  background-color: rgba(255, 159, 67, 0.02);
  padding: var(--space-3xl) var(--space-md);
}

.proof-stats {
  display: flex;
  justify-content: space-around;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto var(--space-3xl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-family: var(--font-en);
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #ff9f43, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: var(--space-xs);
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

.proof-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
}

.proof-trust {
  text-align: center;
  padding: var(--space-xl) 0;
}

.proof-bridge {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-main);
  margin-top: var(--space-2xl);
  font-style: italic;
}

/* --- Section 6: Pricing --- */
.pricing-bridge {
  text-align: center;
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: var(--space-xl);
  color: var(--text-main);
}

.pricing-bridge .highlight {
  background-color: rgba(255, 0, 127, 0.1);
  padding: 0 var(--space-xs);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

/* --- Section 7: FAQ --- */
.faq-new-badge {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-right: var(--space-sm);
  vertical-align: middle;
}

/* --- Section 8: Final CTA --- */
.story-cta-final {
  text-align: center;
  padding: calc(var(--space-3xl) * 1.5) var(--space-md);
  position: relative;
  overflow: hidden;
  background-color: var(--bg-base);
}

.cta-final-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(to right, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
}

.cta-final-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  position: relative;
  z-index: 2;
}

.cta-hub-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150vw;
  height: 150vw;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--cyan) 10%, transparent 10%);
  background-size: 50px 50px;
}



.scroll-animate-delay-1 { transition-delay: 0.1s; }
.scroll-animate-delay-2 { transition-delay: 0.2s; }
.scroll-animate-delay-3 { transition-delay: 0.3s; }
.scroll-animate-delay-4 { transition-delay: 0.4s; }
.scroll-animate-delay-5 { transition-delay: 0.5s; }

/* --- Responsive Rules --- */
@media (max-width: 992px) {
  .agitate-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .hub-diagram {
    transform: scale(0.8);
  }
  .story-howworks {
    height: 250vh;
  }
}

@media (max-width: 768px) {
  .agitate-cards {
    grid-template-columns: 1fr;
  }
  .story-hero-title {
    font-size: 2.5rem;
  }
  .proof-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  .story-hero, .story-agitate, .story-turn, .story-proof, .story-cta-final {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .hub-diagram {
    transform: scale(0.6);
  }
  .story-hero-title {
    font-size: 2rem;
  }
  .turn-title {
    font-size: 2.5rem;
  }
  .stat-number {
    font-size: 2.5rem;
  }
}

/* --- Light Mode Overrides --- */
body.light-mode .story-hero {
  background-color: #f8f9fa;
}

body.light-mode .story-agitate {
  background-color: #ffffff;
}

body.light-mode .agitate-card {
  background: rgba(0, 0, 0, 0.02);
}

body.light-mode .story-howworks {
  background-color: #f8f9fa;
}

body.light-mode .story-cta-final {
  background-color: #f8f9fa;
}

body.light-mode .hub-node {
  background-color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   CANAL YAR — NEXT-GEN USER PANEL SUITE (UI/UX 2026 EDITION)
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. SKELETON LOADERS & SHIMMER ─────────────────────────── */
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.09) 37%, rgba(255,255,255,0.03) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-radius: var(--radius-xs);
  display: inline-block;
}
body.light-mode .skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 37%, rgba(0,0,0,0.04) 63%);
  background-size: 400% 100%;
}
.skeleton-text { height: 14px; width: 100%; margin-bottom: 6px; }
.skeleton-title { height: 22px; width: 60%; margin-bottom: 12px; }
.skeleton-circle { width: 42px; height: 42px; border-radius: 50%; }
.skeleton-card { height: 120px; width: 100%; border-radius: var(--radius-md); }

/* ─── 2. COMMAND PALETTE (Ctrl + K / Cmd + K) ───────────────── */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 16, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  transition: opacity 0.2s var(--ease-smooth);
}
.cmd-palette-backdrop.active {
  display: flex;
  opacity: 1;
}
.cmd-palette-modal {
  width: 92%;
  max-width: 620px;
  background: var(--bg-card-gradient);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 229, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(-10px);
  transition: all 0.25s var(--ease-smooth);
}
.cmd-palette-backdrop.active .cmd-palette-modal {
  transform: scale(1) translateY(0);
}
.cmd-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}
.cmd-search-icon {
  font-size: 20px;
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cmd-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-fa);
  font-size: 16px;
  color: var(--text-primary);
  direction: rtl;
}
.cmd-search-input::placeholder {
  color: var(--text-tertiary);
  font-size: 14px;
}
.cmd-shortcut-badge {
  font-family: var(--font-en);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  padding: 3px 7px;
  border-radius: 6px;
  user-select: none;
}
.cmd-results-container {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cmd-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  padding: 8px 12px 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid transparent;
}
.cmd-item:hover, .cmd-item.selected {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateX(-3px);
}
.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmd-item-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  flex-shrink: 0;
}
.cmd-item:hover .cmd-item-icon, .cmd-item.selected .cmd-item-icon {
  background: var(--cyan);
  color: #040710;
}
.cmd-item-title {
  font-size: 13.5px;
  font-weight: 600;
  display: block;
}
.cmd-item-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}
.cmd-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.cmd-footer-keys {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ─── 3. MODERN TOAST ENGINE ─────────────────────────────────── */
.modern-toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.modern-toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  background: var(--bg-card-gradient);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 229, 255, 0.12);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  direction: rtl;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  animation: toast-slide-in 0.35s var(--ease-bounce);
  backdrop-filter: blur(12px);
}
@keyframes toast-slide-in {
  from { transform: translateY(30px) scale(0.92); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.modern-toast.toast-leave {
  animation: toast-slide-out 0.3s var(--ease-smooth) forwards;
}
@keyframes toast-slide-out {
  to { transform: translateY(20px) scale(0.9); opacity: 0; }
}
.modern-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.modern-toast.success .modern-toast-icon { background: var(--success-subtle); color: var(--success); }
.modern-toast.error .modern-toast-icon { background: var(--error-subtle); color: var(--error); }
.modern-toast.info .modern-toast-icon { background: var(--cyan-subtle); color: var(--cyan); }
.modern-toast.warning .modern-toast-icon { background: var(--warning-subtle); color: var(--warning); }

.modern-toast-body { flex: 1; font-size: 13px; line-height: 1.55; }
.modern-toast-title { font-weight: 700; display: block; margin-bottom: 2px; }
.modern-toast-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 16px;
  padding: 2px;
  line-height: 1;
  transition: color 0.2s;
}
.modern-toast-close:hover { color: var(--text-primary); }
.modern-toast-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--cyan);
  width: 100%;
  transform-origin: left;
}

/* ─── 4. MOBILE BOTTOM NAVIGATION ─────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 15, 28, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-default);
  z-index: 9999;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}
body.light-mode .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.94);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 500;
  flex: 1;
  padding: 6px 0;
  transition: all 0.2s;
  position: relative;
}
.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--cyan);
}
.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.bottom-nav-item svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  .content-area { padding-bottom: 85px !important; }
}

/* ─── 5. ADVANCED COMPOSER & MULTI-PLATFORM LIVE SIMULATOR ─────── */
.composer-split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) {
  .composer-split-layout { grid-template-columns: 1fr; }
}

/* Writing AI Toolbar */
.ai-tools-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(0, 229, 255, 0.03);
  border: 1px dashed rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  align-items: center;
}
.ai-tools-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ai-tool-pill {
  font-family: var(--font-fa);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ai-tool-pill:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

/* Auto-Save & Char Counter */
.editor-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-tertiary);
  padding: 4px 6px;
}
.autosave-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 500;
}
.autosave-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}
.char-counter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.char-pill {
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255,255,255,0.04);
  font-family: var(--font-en);
  font-weight: 600;
}
.char-pill.warning { background: var(--warning-subtle); color: var(--warning); }
.char-pill.danger { background: var(--error-subtle); color: var(--error); }

/* Simulator Frame */
.platform-simulator-box {
  position: sticky;
  top: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}
.platform-tabs-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 8px;
  gap: 6px;
}
.platform-tab-btn {
  flex: 1;
  font-family: var(--font-fa);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.platform-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
.platform-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.platform-tab-btn.active[data-platform="telegram"] { border-color: rgba(34, 158, 217, 0.4); color: #229ED9; }
.platform-tab-btn.active[data-platform="eitaa"] { border-color: rgba(230, 126, 34, 0.4); color: #e67e22; }
.platform-tab-btn.active[data-platform="bale"] { border-color: rgba(104, 204, 134, 0.4); color: #68cc86; }
.platform-tab-btn.active[data-platform="rubika"] { border-color: rgba(255, 0, 127, 0.4); color: #FF007F; }

.simulator-body-preview {
  padding: 20px 16px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.8), rgba(4, 7, 16, 0.95));
  position: relative;
}
body.light-mode .simulator-body-preview {
  background: radial-gradient(circle at center, #f0f4f9, #e2e8f0);
}

/* Chat Mockup Bubbles */
.chat-sim-bubble {
  max-width: 90%;
  align-self: flex-start;
  padding: 12px 14px;
  border-radius: 14px 14px 14px 2px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.65;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  word-break: break-word;
  transition: all 0.25s ease;
}
/* Telegram Theme Bubble */
.chat-sim-telegram {
  background: #182533;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.06);
}
/* Eitaa Theme Bubble */
.chat-sim-eitaa {
  background: #1e293b;
  border-right: 3px solid #e67e22;
  color: #f8fafc;
}
/* Bale Theme Bubble */
.chat-sim-bale {
  background: #192734;
  border-right: 3px solid #68cc86;
  color: #ffffff;
}
/* Rubika Theme Bubble */
.chat-sim-rubika {
  background: #241429;
  border-right: 3px solid #FF007F;
  color: #fdf2f8;
}

.sim-media-preview-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(0,0,0,0.3);
  display: none;
  max-height: 220px;
}
.sim-media-preview-container img, .sim-media-preview-container video {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}
.sim-bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
  font-family: var(--font-en);
}

/* ─── 6. INTERACTIVE JALALI CONTENT CALENDAR ─────────────────── */
.content-calendar-box {
  background: var(--bg-card-gradient);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: var(--space-xl);
}
.cal-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.cal-month-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  direction: rtl;
}
.cal-day-name {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  padding: 6px 0;
}
.cal-day-cell {
  min-height: 80px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
  cursor: pointer;
}
.cal-day-cell:hover {
  background: rgba(0, 229, 255, 0.04);
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
}
.cal-day-cell.is-today {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}
.cal-day-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}
.cal-day-cell.is-today .cal-day-number {
  color: var(--cyan);
}
.cal-events-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}
.cal-event-item {
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 3px;
}
.cal-event-scheduled { background: rgba(0, 229, 255, 0.15); color: var(--cyan); }
.cal-event-sent { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.cal-event-failed { background: rgba(239, 68, 68, 0.15); color: var(--error); }

/* ─── 7. CHANNEL HEALTH MATRIX & ONE-CLICK TEST ──────────────── */
.channel-health-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.health-online { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.health-warning { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.25); }
.health-offline { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-health 1.8s infinite;
}
.health-online .pulse-dot { background: #10b981; box-shadow: 0 0 6px #10b981; }
.health-warning .pulse-dot { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.health-offline .pulse-dot { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

@keyframes pulse-health {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ─── 9. AMBIENT BACKGROUND GLOW MESH (WEBSITE 2 AESTHETIC) ──── */
.ambient-background-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  animation: floatOrb 25s infinite ease-in-out alternate;
}
.ambient-orb-1 {
  top: -100px;
  right: -50px;
  width: 550px;
  height: 550px;
  background: var(--primary);
}
.ambient-orb-2 {
  top: 35%;
  left: -80px;
  width: 480px;
  height: 480px;
  background: var(--purple);
  animation-duration: 30s;
}
.ambient-orb-3 {
  bottom: -60px;
  right: 30%;
  width: 420px;
  height: 420px;
  background: var(--cyan);
  animation-duration: 22s;
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* ─── 10. STICKY TOPBAR & NOTIFICATION CENTER (WEBSITE 2 TOPBAR) ── */
.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 12px var(--space-lg);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  background: rgba(10, 15, 28, 0.75);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-default);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
body.light-mode .dashboard-topbar {
  background: rgba(255, 255, 255, 0.85);
}

.topbar-greeting {
  display: flex;
  flex-direction: column;
}
.topbar-greeting-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.topbar-greeting-sub {
  font-size: 11px;
  color: var(--text-tertiary);
}

.topbar-search-box {
  position: relative;
  max-width: 320px;
  flex: 1;
  display: flex;
  align-items: center;
}
.topbar-search-input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 65px;
  border-radius: var(--radius-sm);
  background: rgba(var(--text-main-rgb), 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12.5px;
  font-family: var(--font-fa);
  transition: all 0.2s;
  cursor: pointer;
}
.topbar-search-input:focus,
.topbar-search-input:hover {
  border-color: var(--border-focus);
  background: rgba(var(--text-main-rgb), 0.06);
}
.topbar-search-icon {
  position: absolute;
  right: 10px;
  color: var(--text-tertiary);
  pointer-events: none;
  font-size: 13px;
}
.topbar-search-kbd {
  position: absolute;
  left: 8px;
  font-size: 9.5px;
  font-family: var(--font-en);
  background: rgba(var(--text-main-rgb), 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--text-secondary);
  pointer-events: none;
}

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

/* Notification Bell Button */
.notif-bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(var(--text-main-rgb), 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}
.notif-bell-btn:hover {
  background: rgba(var(--text-main-rgb), 0.08);
  border-color: var(--border-focus);
  color: var(--cyan);
}
.notif-badge-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #ff007f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-en);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 8px rgba(255, 0, 127, 0.6);
  animation: pulse-health 2s infinite;
}

/* Notification Dropdown Panel */
.notif-dropdown-panel {
  position: absolute;
  top: 48px;
  left: 0;
  width: 340px;
  max-width: 90vw;
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  animation: notifSlideDown 0.22s var(--ease-smooth);
}
body.light-mode .notif-dropdown-panel {
  background: rgba(255, 255, 255, 0.98);
}
.notif-dropdown-panel.is-open {
  display: flex;
}
@keyframes notifSlideDown {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.notif-dropdown-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.notif-mark-read-btn {
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 11.5px;
  font-family: var(--font-fa);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}
.notif-mark-read-btn:hover {
  text-decoration: underline;
  background: rgba(0, 229, 255, 0.08);
}

.notif-items-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  text-align: right;
  cursor: pointer;
  transition: background 0.18s;
  text-decoration: none;
  color: inherit;
}
.notif-item:hover {
  background: rgba(var(--text-main-rgb), 0.04);
}
.notif-item.is-unread {
  background: rgba(0, 229, 255, 0.04);
}
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.notif-dot.unread {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.notif-dot.read {
  background: var(--text-tertiary);
  opacity: 0.4;
}

.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}
.notif-message {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-time {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 4px;
  display: block;
}

.notif-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 12.5px;
}

/* Sidebar active item indicator matching website 2 */
.sidebar-menu .menu-item.active {
  background: linear-gradient(270deg, rgba(0, 229, 255, 0.12) 0%, rgba(0, 132, 255, 0.05) 100%) !important;
  color: #fff !important;
  position: relative;
}
.sidebar-menu .menu-item.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  border-radius: 4px 0 0 4px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* ═══════════════════════════════════════════════════════════════
   UI/UX IMPROVEMENTS — AUGUST 2026 UPGRADE
   ═══════════════════════════════════════════════════════════════ */

/* ─── BREADCRUMB NAVIGATION ──────────────────────────────────── */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
  padding: 0;
}
.page-breadcrumb a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}
.page-breadcrumb a:hover {
  color: var(--cyan);
}
.page-breadcrumb .breadcrumb-separator {
  color: var(--text-tertiary);
  opacity: 0.5;
  font-size: 10px;
}
.page-breadcrumb .breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ─── PAGE ENTRANCE ANIMATION ────────────────────────────────── */
@keyframes pageEntranceFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-entrance {
  animation: pageEntranceFadeUp 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.page-entrance > *:nth-child(1) { animation-delay: 0.04s; }
.page-entrance > *:nth-child(2) { animation-delay: 0.08s; }
.page-entrance > *:nth-child(3) { animation-delay: 0.12s; }
.page-entrance > *:nth-child(4) { animation-delay: 0.16s; }
.page-entrance > *:nth-child(5) { animation-delay: 0.20s; }

/* Staggered children entrance */
@keyframes staggerFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.stagger-children > * {
  animation: staggerFadeIn 0.35s var(--ease-smooth) both;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* ─── IMPROVED EMPTY STATES ──────────────────────────────────── */
.empty-state-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  min-height: 200px;
}
.empty-state-modern .empty-icon-large {
  font-size: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.7;
  animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.empty-state-modern .empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.empty-state-modern .empty-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.empty-state-modern .empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-fa);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}
.empty-state-modern .empty-cta:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.18);
}

/* ─── SCROLL TO TOP BUTTON ───────────────────────────────────── */
.scroll-to-top-btn {
  position: fixed;
  bottom: 90px;
  left: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(10, 15, 28, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease-smooth);
  box-shadow: var(--shadow-md);
}
body.light-mode .scroll-to-top-btn {
  background: rgba(255, 255, 255, 0.92);
}
.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 16px rgba(0, 229, 255, 0.15);
}
.scroll-to-top-btn:active {
  transform: scale(0.92);
}

/* ─── IMPROVED FORM FOCUS & VALIDATION ───────────────────────── */
.form-control:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12), var(--shadow-sm) !important;
  background: var(--bg-input-focus) !important;
  outline: none;
}
.form-control::placeholder {
  color: var(--text-tertiary);
  opacity: 0.65;
}
.form-control.is-invalid {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
  animation: shakeInput 0.4s ease-in-out;
}
@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.form-error-msg {
  font-size: 11.5px;
  color: var(--error);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(-4px);
  animation: fadeInDown 0.2s ease forwards;
}
@keyframes fadeInDown {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── CSS TOOLTIPS ───────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(10, 15, 28, 0.95);
  color: #e2e8f0;
  font-size: 11px;
  font-family: var(--font-fa);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
body.light-mode [data-tooltip]::after {
  background: rgba(15, 23, 42, 0.92);
  color: #f1f5f9;
}
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ─── IMPROVED TOPBAR RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .dashboard-topbar {
    padding: 10px var(--space-md);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
  }
  .topbar-search-box {
    display: none;
  }
  .topbar-greeting-sub {
    display: none;
  }
  .topbar-greeting-title {
    font-size: 12.5px;
  }
  .notif-dropdown-panel {
    width: calc(100vw - 40px);
    left: auto;
    right: -10px;
  }
}

@media (max-width: 480px) {
  .dashboard-topbar {
    padding: 8px var(--space-sm);
  }
  .topbar-greeting-title {
    font-size: 11.5px;
  }
  .notif-bell-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

/* ─── IMPROVED TYPOGRAPHY & VIEW TITLES ──────────────────────── */
.view-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}
.view-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

/* ─── EXPANDED LIGHT MODE COVERAGE ───────────────────────────── */
body.light-mode .ambient-orb {
  opacity: 0.06;
}
body.light-mode .notif-bell-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(15, 23, 42, 0.1);
}
body.light-mode .notif-bell-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(15, 23, 42, 0.2);
}
body.light-mode .topbar-search-input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(15, 23, 42, 0.1);
}
body.light-mode .topbar-search-input:hover,
body.light-mode .topbar-search-input:focus {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 132, 255, 0.3);
}
body.light-mode .topbar-search-kbd {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
}
body.light-mode .scroll-to-top-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
body.light-mode .page-breadcrumb a:hover {
  color: var(--primary);
}
body.light-mode .empty-state-modern .empty-cta {
  background: rgba(0, 102, 204, 0.06);
  border-color: rgba(0, 102, 204, 0.2);
  color: var(--primary);
}
body.light-mode .empty-state-modern .empty-cta:hover {
  background: rgba(0, 102, 204, 0.12);
  border-color: var(--primary);
}

/* ─── SIDEBAR & MENU LIGHT MODE CLARITY ───────────────────────── */
body.light-mode .sidebar,
.light-mode .sidebar {
  background: #ffffff !important;
  border-left-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.03);
}

body.light-mode .logo,
.light-mode .logo {
  color: #0f172a !important;
}

body.light-mode .user-badge,
.light-mode .user-badge {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}
body.light-mode #sidebar-phone,
.light-mode #sidebar-phone {
  color: #0f172a !important;
}

body.light-mode .menu-item,
.light-mode .menu-item {
  color: #475569 !important;
}
body.light-mode .menu-item span,
.light-mode .menu-item span {
  color: #475569 !important;
}
body.light-mode .menu-item svg,
.light-mode .menu-item svg {
  stroke: #475569 !important;
}

body.light-mode .menu-item:hover,
.light-mode .menu-item:hover {
  color: #0f172a !important;
  background: rgba(0, 102, 204, 0.06) !important;
}
body.light-mode .menu-item:hover span,
.light-mode .menu-item:hover span {
  color: #0f172a !important;
}
body.light-mode .menu-item:hover svg,
.light-mode .menu-item:hover svg {
  stroke: #0066cc !important;
}

body.light-mode .menu-item.active,
.light-mode .menu-item.active {
  color: #0066cc !important;
  background: rgba(0, 102, 204, 0.08) !important;
  font-weight: 700 !important;
}
body.light-mode .menu-item.active span,
.light-mode .menu-item.active span {
  color: #0066cc !important;
}
body.light-mode .menu-item.active svg,
.light-mode .menu-item.active svg {
  stroke: #0066cc !important;
}
body.light-mode .menu-item.active::before,
.light-mode .menu-item.active::before {
  background: #0066cc !important;
}

body.light-mode #theme-toggle-btn,
.light-mode #theme-toggle-btn {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

body.light-mode .mobile-bottom-nav,
.light-mode .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}
body.light-mode .bottom-nav-item,
.light-mode .bottom-nav-item {
  color: #64748b !important;
}
body.light-mode .bottom-nav-item span,
.light-mode .bottom-nav-item span {
  color: #64748b !important;
}
body.light-mode .bottom-nav-item svg,
.light-mode .bottom-nav-item svg {
  stroke: #64748b !important;
}
body.light-mode .bottom-nav-item.active,
.light-mode .bottom-nav-item.active {
  color: #0066cc !important;
}
body.light-mode .bottom-nav-item.active span,
.light-mode .bottom-nav-item.active span {
  color: #0066cc !important;
}
body.light-mode .bottom-nav-item.active svg,
.light-mode .bottom-nav-item.active svg {
  stroke: #0066cc !important;
}

/* ─── COMPREHENSIVE LIGHT MODE PANEL & DASHBOARD STYLES ──────── */
body.light-mode {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

body.light-mode .dashboard-container,
body.light-mode .content-area,
body.light-mode main {
  background: #f8fafc !important;
  color: #0f172a !important;
}

body.light-mode .glass-panel {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

body.light-mode .hero-stat-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}
body.light-mode .hero-stat-card:hover {
  border-color: rgba(0, 102, 204, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07) !important;
}

body.light-mode .project-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}
body.light-mode .project-card:hover {
  border-color: rgba(0, 102, 204, 0.35) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .add-platform-card {
  background: rgba(234, 88, 12, 0.03) !important;
  border-color: rgba(234, 88, 12, 0.35) !important;
}
body.light-mode .add-platform-card:hover {
  background: rgba(234, 88, 12, 0.07) !important;
  border-color: #ea580c !important;
}
body.light-mode .add-platform-card h4 {
  color: #0f172a !important;
}

body.light-mode .infrastructure-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
  color: #0f172a !important;
}
body.light-mode .infrastructure-banner h3,
body.light-mode .infrastructure-banner strong {
  color: #0f172a !important;
}

body.light-mode .server-feature-pill {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

body.light-mode .project-platform-chip {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

body.light-mode .journey-timeline-bar {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .custom-modal {
  background: rgba(15, 23, 42, 0.55) !important;
}

body.light-mode .modal-content-box {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}
body.light-mode .modal-content-box h3,
body.light-mode .modal-content-box h4,
body.light-mode .modal-content-box h5 {
  color: #0f172a !important;
}
body.light-mode .modal-content-box label {
  color: #334155 !important;
}
body.light-mode .modal-content-box input,
body.light-mode .modal-content-box textarea,
body.light-mode .modal-content-box select {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}
body.light-mode .modal-content-box input:focus,
body.light-mode .modal-content-box textarea:focus,
body.light-mode .modal-content-box select:focus {
  background: #ffffff !important;
  border-color: #0066cc !important;
}

body.light-mode .channel-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
}
body.light-mode .channel-card:hover {
  background: #f8fafc !important;
}
body.light-mode .channel-card.selected {
  background: rgba(6, 182, 212, 0.06) !important;
  border-color: var(--cyan) !important;
}
body.light-mode .channel-logo-wrap {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .filter-chip {
  color: #475569 !important;
}
body.light-mode .filter-chip.active {
  background: rgba(234, 88, 12, 0.1) !important;
  color: #ea580c !important;
  border-color: rgba(234, 88, 12, 0.3) !important;
}

body.light-mode .notif-item {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
}
body.light-mode .notif-item:hover {
  background: #f8fafc !important;
}
body.light-mode .notif-dropdown-panel {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}
body.light-mode .notif-dropdown-header {
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}
body.light-mode .notif-dropdown-title {
  color: #0f172a !important;
}

body.light-mode .table,
body.light-mode table {
  color: #0f172a !important;
}
body.light-mode table th {
  background: #f8fafc !important;
  color: #334155 !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}
body.light-mode table td {
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}
body.light-mode table tr:hover td {
  background: rgba(0, 102, 204, 0.02) !important;
}

/* ─── UNIVERSAL LIGHT MODE CONTRAST & VISIBILITY OVERRIDES ──── */
body.light-mode strong[style*="#fff"],
body.light-mode strong[style*="white"],
body.light-mode h1[style*="#fff"],
body.light-mode h2[style*="#fff"],
body.light-mode h3[style*="#fff"],
body.light-mode h4[style*="#fff"] {
  color: #0f172a !important;
}
body.light-mode [style*="#cbd5e1"] {
  color: #334155 !important;
}
body.light-mode [style*="#fef08a"] {
  color: #b45309 !important;
  font-weight: 700 !important;
}
body.light-mode [style*="#34d399"] {
  color: #047857 !important;
  font-weight: 700 !important;
}
body.light-mode [style*="#38bdf8"] {
  color: #0284c7 !important;
  font-weight: 700 !important;
}
body.light-mode [style*="#fca5a5"] {
  color: #b91c1c !important;
}
body.light-mode [style*="#fbbf24"] {
  color: #b45309 !important;
  font-weight: 700 !important;
}
body.light-mode [style*="rgba(0, 0, 0, 0."],
body.light-mode [style*="rgba(0,0,0,0."] {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
  color: #0f172a !important;
}
body.light-mode textarea,
body.light-mode input[type="text"],
body.light-mode select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}
body.light-mode textarea::placeholder,
body.light-mode input::placeholder {
  color: #94a3b8 !important;
}

/* ─── PERFORMANCE OPTIMIZATIONS ──────────────────────────────── */
.ambient-orb {
  will-change: transform;
}
.sidebar {
  contain: style;
}

/* ─── TOPBAR DATE BADGE ──────────────────────────────────────── */
.topbar-date-badge {
  font-size: 10.5px;
  color: var(--text-tertiary);
  font-family: var(--font-fa);
  background: rgba(var(--text-main-rgb), 0.04);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  display: none;
}
@media (min-width: 900px) {
  .topbar-date-badge {
    display: inline-block;
  }
}

/* ═══════════════════════════════════════════════════════════════
   WEBSITE 2 — MICRO-DETAILS & ADVANCED POST SUITE
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. WEBSITE 2 PANEL CARDS & HEADERS ─────────────────────── */
.w2-panel-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  padding: 24px;
  transition: all 0.3s var(--ease-smooth);
}
body.light-mode .w2-panel-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 248, 255, 0.98) 100%);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.w2-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.w2-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.w2-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.1);
}
.w2-header-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.w2-header-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ─── 2. WEBSITE 2 REFERENCE CHANNEL SELECTION CARDS ─────────── */
.w2-ref-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.w2-ref-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.w2-ref-action-btn {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-fa);
  color: var(--text-secondary);
  background: rgba(var(--text-main-rgb), 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.w2-ref-action-btn:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--cyan);
}

.w2-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}
@media (max-width: 640px) {
  .w2-ref-grid {
    grid-template-columns: 1fr;
  }
}

.w2-ref-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 18px;
  min-height: 125px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
body.light-mode .w2-ref-card {
  border-color: rgba(15, 23, 42, 0.09);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 249, 255, 0.98) 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.w2-ref-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 16px rgba(0, 229, 255, 0.08);
}
.w2-ref-card.is-active {
  border-color: rgba(0, 229, 255, 0.45);
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.06) 0%, rgba(0, 132, 255, 0.02) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 0 20px rgba(0, 229, 255, 0.15);
}
body.light-mode .w2-ref-card.is-active {
  border-color: rgba(0, 102, 204, 0.4);
  background: linear-gradient(145deg, rgba(0, 102, 204, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.w2-ref-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.w2-ref-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 132, 255, 0.2), rgba(0, 229, 255, 0.15));
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
  transition: all 0.2s ease;
}
.w2-ref-card.is-active .w2-ref-avatar-badge {
  background: linear-gradient(135deg, rgba(0, 132, 255, 0.35), rgba(0, 229, 255, 0.3));
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
}

.w2-ref-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.w2-ref-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex: 1;
  min-width: 0;
}
.w2-custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #040710;
  transition: all 0.2s var(--ease-smooth);
  flex-shrink: 0;
}
body.light-mode .w2-custom-checkbox {
  border-color: rgba(15, 23, 42, 0.25);
}
.w2-custom-checkbox.checked {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  color: #000;
}

.w2-ref-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.w2-ref-handle {
  font-size: 11.5px;
  font-family: var(--font-en);
  color: var(--text-tertiary);
  direction: ltr;
  background: rgba(var(--text-main-rgb), 0.04);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}
.w2-ref-counter-badge {
  font-size: 11px;
  font-family: var(--font-en);
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

/* ─── 3. WEBSITE 2 PLATFORM BADGES & BUTTONS ─────────────────── */
.w2-platform-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
body.light-mode .w2-platform-badges-row {
  border-top-color: rgba(15, 23, 42, 0.05);
}

.w2-platform-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-fa);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.22s var(--ease-smooth);
  user-select: none;
}
.w2-platform-badge-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.w2-platform-badge-btn:hover {
  transform: translateY(-1px);
}
.w2-platform-badge-btn:active {
  transform: scale(0.96);
}

/* Unselected State */
.w2-platform-badge-btn.unselected {
  opacity: 0.4;
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-tertiary) !important;
  filter: grayscale(0.5);
}
body.light-mode .w2-platform-badge-btn.unselected {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* Telegram */
.w2-plat-telegram {
  color: #229ED9;
  background: rgba(34, 158, 217, 0.12);
  border-color: rgba(34, 158, 217, 0.35);
}
.w2-plat-telegram:hover:not(.unselected) {
  background: rgba(34, 158, 217, 0.2);
  box-shadow: 0 0 12px rgba(34, 158, 217, 0.3);
}

/* Bale */
.w2-plat-bale {
  color: #68cc86;
  background: rgba(104, 204, 134, 0.12);
  border-color: rgba(104, 204, 134, 0.35);
}
.w2-plat-bale:hover:not(.unselected) {
  background: rgba(104, 204, 134, 0.2);
  box-shadow: 0 0 12px rgba(104, 204, 134, 0.3);
}

/* Eitaa */
.w2-plat-eitaa {
  color: #3B82F6;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}
.w2-plat-eitaa:hover:not(.unselected) {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

/* Rubika */
.w2-plat-rubika {
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
}
.w2-plat-rubika:hover:not(.unselected) {
  background: rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

/* Soroush */
.w2-plat-soroush {
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}
.w2-plat-soroush:hover:not(.unselected) {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

/* ─── 4. WEBSITE 2 REALISTIC SMARTPHONE MOCKUP ───────────────── */
.w2-phone-container {
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  position: relative;
}
.w2-phone-shell {
  position: relative;
  border-radius: 40px;
  border: 7px solid #1e293b;
  background: #060913;
  padding: 6px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 255, 0.08);
}
.w2-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: #1e293b;
  z-index: 20;
}
.w2-phone-screen {
  position: relative;
  height: 470px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #090e1c 0%, #04060d 100%);
  display: flex;
  flex-direction: column;
}
.w2-phone-header-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 12px;
  background: rgba(34, 158, 217, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  z-index: 10;
}
.w2-phone-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #229ED9;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(34, 158, 217, 0.4);
}
.w2-phone-channel-info {
  flex: 1;
  min-width: 0;
}
.w2-phone-title {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w2-phone-subtitle {
  font-size: 9.5px;
  color: #94a3b8;
}

.w2-phone-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  gap: 8px;
  overflow-y: auto;
}
.w2-phone-speech-bubble {
  align-self: flex-start;
  width: 82%;
  max-width: 82%;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 12px;
  background: rgba(34, 158, 217, 0.18);
  border: 1px solid rgba(34, 158, 217, 0.25);
  transition: all 0.3s var(--ease-smooth);
  animation: bubblePop 0.3s ease-out;
  word-break: break-word;
}
@keyframes bubblePop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.w2-phone-bubble-media {
  width: 100%;
  max-height: 140px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 6px;
  display: block;
}
.w2-phone-bubble-text {
  font-size: 11px;
  line-height: 1.6;
  color: #f1f5f9;
  white-space: pre-wrap;
  direction: rtl;
  text-align: right;
}
.w2-phone-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  font-size: 8.5px;
  color: #94a3b8;
  margin-top: 4px;
  direction: ltr;
}

.w2-phone-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.w2-dock-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}
.w2-dock-btn svg {
  width: 16px;
  height: 16px;
}
.w2-dock-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.w2-dock-btn.active {
  transform: scale(1.1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}
.w2-dock-btn.active[data-platform="telegram"] { background: #229ED9; box-shadow: 0 0 14px rgba(34, 158, 217, 0.5); }
.w2-dock-btn.active[data-platform="bale"] { background: #FFB800; box-shadow: 0 0 14px rgba(255, 184, 0, 0.5); color: #000; }
.w2-dock-btn.active[data-platform="eitaa"] { background: #3B82F6; box-shadow: 0 0 14px rgba(59, 130, 246, 0.5); }
.w2-dock-btn.active[data-platform="rubika"] { background: #8B5CF6; box-shadow: 0 0 14px rgba(139, 92, 246, 0.5); }
.w2-dock-btn.active[data-platform="soroush"] { background: #10B981; box-shadow: 0 0 14px rgba(16, 185, 129, 0.5); }

/* ─── 5. WEBSITE 2 FRAMER TOGGLE SWITCH ──────────────────────── */
.w2-switch-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.w2-switch-btn {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  padding: 0;
}
body.light-mode .w2-switch-btn {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(15, 23, 42, 0.15);
}
.w2-switch-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}
.w2-switch-knob {
  position: absolute;
  top: 2px;
  left: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.w2-switch-btn.active .w2-switch-knob {
  left: 3px;
}

/* ─── 6. WEBSITE 2 SUMMARY SENDER CARD ───────────────────────── */
.w2-summary-card {
  margin-top: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  text-align: center;
}
.w2-summary-title {
  font-size: 11.5px;
  color: var(--text-secondary);
}
.w2-summary-count {
  font-size: 20px;
  font-weight: 900;
  font-family: var(--font-en);
  color: var(--cyan);
  display: block;
  margin-top: 2px;
  letter-spacing: -0.5px;
}

/* ═══════════════════════════════════════════════════════════════
   CINEMATIC VIDEO TEASER & 3D MOTION INTERACTION STYLES
   ═══════════════════════════════════════════════════════════════ */

.btn-teaser-cinema {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-teaser-cinema:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3), inset 0 0 20px rgba(0, 229, 255, 0.2);
}

.play-pulse-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #0084ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 0 15px var(--cyan);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-teaser-cinema:hover .play-pulse-icon {
  transform: scale(1.12);
}

.play-pulse-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  opacity: 0.8;
  animation: pulsePlayRing 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulsePlayRing {
  0% { transform: scale(0.9); opacity: 0.9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Video Modal Lightbox */
.video-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.video-modal-overlay.active {
  display: grid;
  opacity: 1;
}

.video-modal-card {
  width: 100%;
  max-width: 920px;
  background: rgba(10, 15, 29, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 229, 255, 0.15);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-overlay.active .video-modal-card {
  transform: scale(1) translateY(0);
}

.video-modal-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.video-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.video-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: #ef4444;
  transform: rotate(90deg);
}

.video-player-container {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #020612;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.video-player-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.teaser-reel-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.teaser-reel-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.teaser-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 229, 255, 0.03) 51%, transparent 52%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 2;
}

.teaser-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(2, 6, 18, 0.85);
  pointer-events: none;
  z-index: 3;
}

.teaser-hud-overlay {
  position: absolute;
  top: 16px;
  right: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  pointer-events: auto;
}

.teaser-scene-tabs {
  display: flex;
  gap: 6px;
  background: rgba(4, 8, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 4px;
  backdrop-filter: blur(10px);
}

.teaser-scene-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.teaser-scene-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.teaser-scene-tab.active {
  background: linear-gradient(135deg, #00e5ff 0%, #0084ff 100%);
  color: #040814;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.teaser-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.teaser-badge.badge-cyan {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.teaser-badge.badge-emerald {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.teaser-badge.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.teaser-controls-overlay {
  position: relative;
  z-index: 10;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.75) 60%, transparent 100%);
  padding: 16px 22px 14px;
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 229, 255, 0.18);
}

.video-modal-footer {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

/* 3D Motion Card Hover Effect */
/* ═══════════════════════════════════════════════════════════════
   MULTIVERSE ARENA & 5-CHANNEL INTERACTIVE SHOWCASE STYLES
   ═══════════════════════════════════════════════════════════════ */

.multiverse-arena {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .multiverse-arena {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.arena-node {
  background: rgba(12, 18, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.arena-node:hover {
  background: rgba(18, 28, 55, 0.85);
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.15);
}

.arena-node.active-selected {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.25), inset 0 0 15px rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}

.arena-node-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  transition: transform 0.3s ease;
}

.arena-node:hover .arena-node-icon,
.arena-node.active-selected .arena-node-icon {
  transform: scale(1.15);
}

.arena-node-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
}

.arena-node-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.arena-node.active-selected .arena-node-badge {
  background: rgba(0, 229, 255, 0.2);
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.4);
}

/* Multiverse Info & Mockup Card */
.multiverse-showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  text-align: right;
}

@media (max-width: 768px) {
  .multiverse-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.multiverse-mockup-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.12);
  aspect-ratio: 16 / 10;
  background: #020610;
}

.multiverse-mockup-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.multiverse-mockup-frame:hover img {
  transform: scale(1.04);
}

/* ═══════════════════════════════════════
   UI/UX PRO MAX — INTELLIGENCE SYSTEM EXTENSIONS
   ═══════════════════════════════════════ */

/* 1. Accessibility & Reduced Motion (Priority 1) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  #cursor-glow,
  .floating-overlay-card,
  .story-slide-floating,
  .social-floater {
    animation: none !important;
    transform: none !important;
  }
  .bg-stage-img {
    transition: none !important;
    transform: none !important;
  }
}

/* 2. Mobile Touch Targets & Interaction (Priority 2) */
@media (max-width: 768px) {
  button,
  .btn,
  a.btn,
  .btn-glow-cinema,
  .sidebar-toggle,
  .mobile-nav-toggle,
  #theme-toggle-btn,
  .arena-node,
  .menu-item {
    min-height: 44px;
    min-width: 44px;
  }
}

/* 3. Luxury Bento Box Grid (Priority 4) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  width: 100%;
}

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

@media (max-width: 1024px) {
  .bento-col-8, .bento-col-6, .bento-col-4, .bento-col-3 {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    gap: 12px;
  }
  .bento-col-12, .bento-col-8, .bento-col-6, .bento-col-4, .bento-col-3 {
    grid-column: span 12;
  }
}

.bento-card {
  background: linear-gradient(135deg, rgba(14, 21, 38, 0.85) 0%, rgba(7, 11, 20, 0.95) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 229, 255, 0.15);
}

/* 4. Luxury Vector Icon Box */
.icon-box-vector {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--cyan);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.icon-box-vector svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.icon-box-vector.icon-primary {
  background: rgba(0, 132, 255, 0.1);
  border-color: rgba(0, 132, 255, 0.25);
  color: var(--primary);
}

.icon-box-vector.icon-purple {
  background: rgba(125, 95, 255, 0.1);
  border-color: rgba(125, 95, 255, 0.25);
  color: var(--purple);
}

.icon-box-vector.icon-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--success);
}

.icon-box-vector.icon-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--warning);
}

.icon-box-vector.icon-accent {
  background: rgba(255, 0, 127, 0.1);
  border-color: rgba(255, 0, 127, 0.25);
  color: var(--accent);
}

/* 5. Button Press Feedback & Disabled Semantics */
button:active:not(:disabled),
.btn:active:not(.disabled) {
  transform: scale(0.98);
}

button:disabled,
.btn.disabled,
input:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.5);
  pointer-events: none;
}

/* 6. Footer Trust Badges & Google Preferred Source Card */
.footer-trust-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 16px;
  margin-top: 8px;
  max-width: 320px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.footer-trust-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}
.google-preferred-source-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(52, 168, 83, 0.08));
  border: 1px solid rgba(66, 133, 244, 0.25);
  padding: 10px 14px;
  border-radius: 16px;
  margin-top: 10px;
  max-width: 320px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.google-preferred-source-card:hover {
  border-color: rgba(66, 133, 244, 0.5);
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.15);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .footer-trust-card,
  .google-preferred-source-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
