/* =====================================================================
   BlogzzUP AI — Main Styles
   Design tokens are defined in tokens.css (imported first).
   Do NOT add raw hex values here — use token vars.
   ===================================================================== */
/* =====================================================================
   BlogzzUP AI — Design Token System
   Single source of truth for all design decisions.
   Import FIRST in index.css before any component styles.
   ===================================================================== */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap'); moved to index.html */
/* ─────────────────────────────────────────────
   1. COLOR TOKENS
   ───────────────────────────────────────────── */
:root {
  /* Primary — Violet */
  --color-primary-50: #f5f3ff;
  --color-primary-100: #ede9fe;
  --color-primary-200: #ddd6fe;
  --color-primary-300: #c4b5fd;
  --color-primary-400: #a78bfa;
  --color-primary-500: #8b5cf6;
  --color-primary-600: #7c3aed;
  --color-primary-700: #6d28d9;
  --color-primary-800: #5b21b6;
  --color-primary-900: #4c1d95;
  --color-primary-950: #2e1065;

  /* Secondary — Cyan */
  --color-secondary-50: #ecfeff;
  --color-secondary-100: #cffafe;
  --color-secondary-200: #a5f3fc;
  --color-secondary-300: #67e8f9;
  --color-secondary-400: #22d3ee;
  --color-secondary-500: #06b6d4;
  --color-secondary-600: #0891b2;
  --color-secondary-700: #0e7490;
  --color-secondary-800: #155e75;
  --color-secondary-900: #164e63;
  --color-secondary-950: #083344;

  /* Accent — Purple gradient partner */
  --color-accent-400: #c084fc;
  --color-accent-500: #a855f7;
  --color-accent-600: #9333ea;

  /* Success — Emerald */
  --color-success-100: rgba(52, 211, 153, 0.12);
  --color-success-300: #6ee7b7;
  --color-success-400: #34d399;
  --color-success-500: #10b981;
  --color-success-700: #059669;
  --color-success-border: rgba(52, 211, 153, 0.3);

  /* Warning — Amber */
  --color-warning-100: rgba(251, 191, 36, 0.12);
  --color-warning-400: #fbbf24;
  --color-warning-500: #f59e0b;
  --color-warning-700: #d97706;
  --color-warning-border: rgba(251, 191, 36, 0.3);

  /* Danger — Red */
  --color-danger-100: rgba(239, 68, 68, 0.12);
  --color-danger-400: #f87171;
  --color-danger-500: #ef4444;
  --color-danger-700: #dc2626;
  --color-danger-border: rgba(239, 68, 68, 0.3);

  /* Neutral scale */
  --color-neutral-50: #f8fafc;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1e293b;
  --color-neutral-900: #0f172a;
  --color-neutral-950: #020617;

  /* ─────────────────────────────────────────────
   2. THEME BASE VARIABLES (Variable Layer)
   ───────────────────────────────────────────── */
  /* Dark Mode Default Values */
  --color-bg-primary: #0A0F1E;
  --color-bg-secondary: #0D1526;
  --color-bg-tertiary: #141B2D;
  --color-bg-card: #0D1526;
  --color-bg-sidebar: #0A0F1E;
  --color-bg-input: #0D1526;
  --color-bg-hover: rgba(255, 255, 255, 0.05);

  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-hover: rgba(255, 255, 255, 0.18);

  --color-text-primary: #ffffff;
  --color-text-secondary: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-hint: rgba(255, 255, 255, 0.45);

  --color-accent: var(--color-primary-500);
  --color-accent-rgb: 139, 92, 246;
  --color-accent-dark: var(--color-primary-600);
  --color-accent-gradient: linear-gradient(135deg, var(--color-primary-500), var(--color-secondary-500));
  --color-accent-secondary: var(--color-secondary-500);
  --color-accent-secondary-rgb: 6, 182, 212;

  --color-success: var(--color-success-500);
  --color-success-rgb: 16, 185, 129;
  --color-warning: var(--color-warning-500);
  --color-warning-rgb: 245, 158, 11;
  --color-danger: var(--color-danger-500);
  --color-danger-rgb: 239, 68, 68;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 12px 36px rgba(0, 0, 0, 0.35);
  --shadow-sidebar: 4px 0 16px rgba(0, 0, 0, 0.3);

  /* ─────────────────────────────────────────────
   3. SEMANTIC COLOR ALIASES (Application Layer)
   ───────────────────────────────────────────── */
  /* Backgrounds */
  --bg-base: var(--color-bg-primary);
  --bg-surface: var(--color-bg-secondary);
  --bg-elevated: var(--color-bg-tertiary);
  --bg-overlay: #1A2238;
  --bg-input: var(--color-bg-input);

  /* Text — all values verified ≥4.5:1 on --bg-surface (#0D1526) */
  --text-primary: var(--color-text-primary);
  --text-secondary: var(--color-text-secondary);
  --text-muted: var(--color-text-muted);
  --text-subtle: #8b9eb5;
  --text-disabled: #6b7f96;

  /* Borders */
  --border-subtle: var(--border-default);
  --border-default: var(--color-border);
  --border-strong: var(--color-border-hover);
  --border-focus: var(--color-accent);

  /* Glassmorphism V2 — Sophisticated transparency layers */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px) saturate(180%);
  --glass-bg-hover: var(--color-bg-hover);
  --glass-border-glow: rgba(167, 139, 250, 0.2);

  /* Shadows — Deep, multi-layered semantic scales */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Focus ring — 3px + higher opacity for visibility */
  --focus-ring: 0 0 0 3px rgba(124, 58, 237, 0.6);
  --focus-ring-danger: 0 0 0 3px rgba(239, 68, 68, 0.6);

  /* ─────────────────────────────────────────────
   3. TYPOGRAPHY TOKENS
   ───────────────────────────────────────────── */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;

  /* Typography Scale V2 — Fluid scaling (Clamp) */
  --text-2xs: clamp(0.65rem, 0.1vw + 0.6rem, 0.75rem);
  --text-xs: clamp(0.75rem, 0.2vw + 0.7rem, 0.85rem);
  --text-sm: clamp(0.875rem, 0.3vw + 0.8rem, 1rem);
  --text-base: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  --text-lg: clamp(1.125rem, 0.5vw + 1rem, 1.25rem);
  --text-xl: clamp(1.25rem, 0.8vw + 1.1rem, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2vw + 1.2rem, 2rem);
  --text-3xl: clamp(2rem, 1.8vw + 1.5rem, 3rem);
  --text-4xl: clamp(2.5rem, 2.5vw + 2rem, 4rem);
  --text-5xl: clamp(3rem, 3.5vw + 2.5rem, 6rem);

  /* Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.8;

  /* Letter spacing */
  --tracking-tight: -0.03em;
  --tracking-normal: 0em;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* ─────────────────────────────────────────────
   4. SPACING SCALE  (4px base unit)
   ───────────────────────────────────────────── */
  --space-0: 0px;
  --space-px: 1px;
  --space-0-5: 2px;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-2-5: 10px;
  --space-3: 12px;
  --space-3-5: 14px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-28: 112px;
  --space-32: 128px;

  /* ─────────────────────────────────────────────
   5. BORDER RADIUS TOKENS
   ───────────────────────────────────────────── */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 20px;
  --radius-4xl: 24px;
  --radius-full: 9999px;

  /* ─────────────────────────────────────────────
   6. SHADOW TOKENS
   ───────────────────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.6);

  --shadow-glow-primary: 0 4px 20px rgba(124, 58, 237, 0.4);
  --shadow-glow-primary-lg: 0 8px 32px rgba(124, 58, 237, 0.5);
  --shadow-glow-secondary: 0 4px 20px rgba(6, 182, 212, 0.35);
  --shadow-glow-success: 0 4px 16px rgba(16, 185, 129, 0.35);
  --shadow-glow-danger: 0 4px 16px rgba(239, 68, 68, 0.35);

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 12px 36px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.7);
  --shadow-sidebar: 4px 0 16px rgba(0, 0, 0, 0.3);

  /* ─────────────────────────────────────────────
   7. MOTION TOKENS
   ───────────────────────────────────────────── */
  --duration-instant: 50ms;
  --duration-fast: 100ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;
  --duration-lazy: 800ms;

  --ease-linear: linear;
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0.0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-gentle: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --transition-base: all var(--duration-base) var(--ease-in-out);
  --transition-fast: all var(--duration-fast) var(--ease-out);
  --transition-slow: all var(--duration-slow) var(--ease-in-out);
  --transition-spring: all var(--duration-slow) var(--ease-spring);
  --transition-colors: color var(--duration-base) var(--ease-in-out),
    background-color var(--duration-base) var(--ease-in-out),
    border-color var(--duration-base) var(--ease-in-out),
    box-shadow var(--duration-base) var(--ease-in-out);

  /* ─────────────────────────────────────────────
   8. Z-INDEX SCALE
   ───────────────────────────────────────────── */
  --z-below: -1;
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 20;
  --z-sticky: 30;
  --z-fixed: 40;
  --z-overlay: 50;
  --z-modal: 60;
  --z-toast: 70;
  --z-tooltip: 80;
  --z-command: 90;

  /* ─────────────────────────────────────────────
   9. LAYOUT TOKENS
   ───────────────────────────────────────────── */
  --sidebar-width: 250px;
  --sidebar-collapsed: 68px;
  --topbar-height: 64px;
  --container-max: 1280px;
  --container-narrow: 900px;
  --container-wide: 1440px;
  --content-padding: clamp(1.5rem, 4vw, 3rem);
}
/* 10. THEME TOKEN INVERSIONS
   [data-theme="light"] overrides all semantic tokens for light mode.
   Components using var(--token) adapt automatically — no ad-hoc overrides needed.
   ───────────────────────────────────────────── */
[data-theme="light"] {
  --color-bg-primary: #FDF7F2;
  --color-bg-secondary: #FFFFFF;
  --color-bg-tertiary: #F8F3EF;
  --color-bg-card: #FFFFFF;
  --color-bg-sidebar: #FDF7F2;
  --color-bg-input: #FFFFFF;
  --color-bg-hover: rgba(0, 0, 0, 0.03);

  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);

  --color-text-primary: #1E293B;
  --color-text-secondary: #475569;
  --color-text-muted: #64748B;
  --color-text-hint: rgba(30, 41, 59, 0.45);

  --color-accent: #7C3AED;
  --color-accent-rgb: 124, 58, 237;
  --color-accent-dark: #6D28D9;
  --color-accent-gradient: linear-gradient(135deg, #7C3AED, #8B5CF6);
  --color-accent-secondary: #0891B2;
  --color-accent-secondary-rgb: 8, 145, 178;

  --color-success: #10B981;
  --color-success-rgb: 16, 185, 129;
  --color-warning: #F59E0B;
  --color-warning-rgb: 245, 158, 11;
  --color-danger: #EF4444;
  --color-danger-rgb: 239, 68, 68;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-sidebar: 1px 0 10px rgba(0, 0, 0, 0.03);

  /* Semantic Mappings for Light Mode */
  --bg-base: var(--color-bg-primary);
  --bg-surface: var(--color-bg-secondary);
  --bg-elevated: var(--color-bg-tertiary);
  --bg-overlay: rgba(253, 247, 242, 0.8);
  --bg-input: var(--color-bg-input);
  --text-primary: var(--color-text-primary);
  --text-secondary: var(--color-text-secondary);
  --text-muted: var(--color-text-muted);
  --text-subtle: #94A3B8;
  --border-default: var(--color-border);
  --border-strong: var(--color-border-hover);
}
/* ─────────────────────────────────────────────
   11. GLOBAL RESETS
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Remove default button styles */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
/* Remove default input styles */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}
/* Accessible focus reset — using our own :focus-visible */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}
/* ─────────────────────────────────────────────
   12. BUTTON SYSTEM
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  line-height: 1;
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-colors),
    transform var(--duration-base) var(--ease-spring),
    box-shadow var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
/* Shimmer overlay for primary */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform var(--duration-slower) var(--ease-out);
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(100%);
}
/* Focus ring */
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
/* Disabled */
.btn:disabled,
.btn[disabled],
.btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}
/* Loading state */
.btn--loading {
  cursor: wait;
  pointer-events: none;
}
.btn--loading .btn-label {
  opacity: 0.6;
}
.btn--loading::before {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
}
/* Sizes */
.btn-xs {
  font-size: var(--text-2xs);
  padding: var(--space-1-5) var(--space-3);
  gap: var(--space-1);
  border-radius: var(--radius-md);
}
.btn-sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-xl);
}
.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}
.btn-xl {
  font-size: var(--text-lg);
  padding: var(--space-5) var(--space-10);
}
/* Icon-only */
.btn-icon {
  padding: var(--space-2-5);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
}
/* Variants */
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow-primary);
  border-color: transparent;
}
.btn-primary:hover:not(:disabled) {
  background: var(--brand-gradient-h);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-primary-lg);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-glow-primary);
}
.btn-secondary {
  background: rgba(var(--color-accent-secondary-rgb), 0.12);
  color: var(--color-accent-secondary);
  border-color: rgba(var(--color-accent-secondary-rgb), 0.25);
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(var(--color-accent-secondary-rgb), 0.2);
  border-color: rgba(var(--color-accent-secondary-rgb), 0.4);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-secondary);
}
.btn-outline {
  background: var(--glass-bg);
  color: var(--text-primary);
  border-color: var(--border-default);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.btn-outline:hover:not(:disabled) {
  background: var(--glass-bg-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--glass-bg);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-danger-400);
  border-color: var(--color-danger-border);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(var(--color-danger-rgb), 0.2);
  box-shadow: var(--shadow-glow-danger);
  transform: translateY(-1px);
}
.btn-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success-500);
  border-color: var(--color-success-border);
}
.btn-success:hover:not(:disabled) {
  background: rgba(var(--color-success-rgb), 0.2);
  box-shadow: var(--shadow-glow-success);
  transform: translateY(-1px);
}
/* ─────────────────────────────────────────────
   13. FORM CONTROLS
   ───────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.form-label-required::after {
  content: ' *';
  color: var(--color-danger-400);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  transition: var(--transition-colors);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary-600);
  box-shadow: var(--focus-ring);
}
.form-input:hover:not(:focus):not(:disabled),
.form-select:hover:not(:focus):not(:disabled),
.form-textarea:hover:not(:focus):not(:disabled) {
  border-color: var(--border-strong);
}
/* Validation states */
.form-input.is-valid,
.form-textarea.is-valid {
  border-color: var(--color-success-500);
}
.form-input.is-valid:focus,
.form-textarea.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}
.form-input.is-invalid,
.form-textarea.is-invalid,
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--color-danger-500);
}
.form-input.is-invalid:focus,
.form-textarea.is-invalid:focus {
  box-shadow: var(--focus-ring-danger);
}
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--bg-surface);
}
.form-hint {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-top: var(--space-1);
}
.form-error {
  font-size: var(--text-xs);
  color: var(--color-danger-400);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: var(--leading-relaxed);
}
/* Search input */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrapper .search-icon {
  position: absolute;
  left: var(--space-3);
  color: var(--text-subtle);
  pointer-events: none;
  transition: color var(--duration-base) var(--ease-out);
}
.search-input-wrapper .form-input {
  padding-left: calc(var(--space-3) + 20px + var(--space-2));
}
.search-input-wrapper:focus-within .search-icon {
  color: var(--color-primary-400);
}
/* Keyboard shortcut hint in search */
.search-kbd {
  position: absolute;
  right: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  pointer-events: none;
}
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 20px;
  padding: 0 var(--space-1-5);
  background: var(--bg-overlay);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: var(--font-semibold);
  color: var(--text-subtle);
  font-family: var(--font-sans);
}
/* ─────────────────────────────────────────────
   14. CARD SYSTEM
   ───────────────────────────────────────────── */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: var(--transition-spring);
  position: relative;
}
.card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-spring);
}
.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-default);
}
.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.1);
}
.panel-body {
  padding: var(--space-6);
}
/* ─────────────────────────────────────────────
   15. BADGE / STATUS TOKENS
   ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-2xs);
  font-weight: var(--font-semibold);
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-primary {
  background: rgba(var(--color-accent-rgb), 0.12);
  color: var(--color-accent);
  border-color: rgba(var(--color-accent-rgb), 0.25);
}
.badge-secondary {
  background: rgba(var(--color-accent-secondary-rgb), 0.12);
  color: var(--color-accent-secondary);
  border-color: rgba(var(--color-accent-secondary-rgb), 0.25);
}
.badge-success {
  background: var(--color-success-100);
  color: var(--color-success-400);
  border-color: var(--color-success-border);
}
.badge-warning {
  background: var(--color-warning-100);
  color: var(--color-warning-400);
  border-color: var(--color-warning-border);
}
.badge-danger {
  background: var(--color-danger-100);
  color: var(--color-danger-400);
  border-color: var(--color-danger-border);
}
.badge-neutral {
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-neutral-400);
  border-color: rgba(148, 163, 184, 0.2);
}
/* Dot indicator */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  display: inline-block;
  flex-shrink: 0;
}
.status-dot-success {
  background: var(--color-success-400);
  box-shadow: 0 0 5px var(--color-success-400);
}
.status-dot-warning {
  background: var(--color-warning-400);
  box-shadow: 0 0 5px var(--color-warning-400);
}
.status-dot-danger {
  background: var(--color-danger-400);
  box-shadow: 0 0 5px var(--color-danger-400);
}
.status-dot-neutral {
  background: var(--color-neutral-500);
}
/* ─────────────────────────────────────────────
   16. ALERT SYSTEM
   ───────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.alert-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.alert-info {
  background: rgba(var(--color-accent-rgb), 0.08);
  border-color: rgba(var(--color-accent-rgb), 0.2);
  color: var(--color-accent);
}
.alert-success {
  background: var(--color-success-100);
  border-color: var(--color-success-border);
  color: var(--color-success-400);
}
.alert-warning {
  background: var(--color-warning-100);
  border-color: var(--color-warning-border);
  color: var(--color-warning-400);
}
.alert-danger {
  background: var(--color-danger-100);
  border-color: var(--color-danger-border);
  color: var(--color-danger-400);
}
/* ─────────────────────────────────────────────
   17. SKELETON LOADERS
   ───────────────────────────────────────────── */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}
.skeleton {
  background: linear-gradient(90deg,
      var(--bg-elevated) 25%,
      var(--bg-overlay) 50%,
      var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}
.skeleton-text {
  height: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}
.skeleton-title {
  height: 24px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}
.skeleton-card {
  height: 120px;
  border-radius: var(--radius-2xl);
}
.skeleton-avatar {
  border-radius: var(--radius-full);
}
/* Skeleton card placeholder */
.skeleton-stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}
.skeleton-stat-card .skeleton-title {
  width: 60%;
}
.skeleton-stat-card .skeleton-text {
  width: 40%;
}
/* ─────────────────────────────────────────────
   18. TOAST NOTIFICATION SYSTEM
   ───────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - var(--space-12));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow-primary);
  pointer-events: all;
  animation: toast-in var(--duration-slow) var(--ease-spring);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
}
.toast:hover {
  transform: translateY(-1px);
}
/* Progress bar */
.toast::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0;
  animation: toast-progress 4s linear forwards;
}
.toast-success::before {
  background: var(--color-success-500);
}
.toast-warning::before {
  background: var(--color-warning-400);
}
.toast-danger::before {
  background: var(--color-danger-500);
}
.toast-info::before {
  background: var(--color-primary-600);
}
.toast.toast-exit {
  animation: toast-out var(--duration-slow) var(--ease-in) forwards;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
    max-height: 100px;
  }

  to {
    opacity: 0;
    transform: translateX(100%);
    max-height: 0;
    margin-bottom: 0;
    padding: 0;
  }
}
@keyframes toast-progress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}
.toast-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.toast-success .toast-icon {
  color: var(--color-success-400);
}
.toast-warning .toast-icon {
  color: var(--color-warning-400);
}
.toast-danger .toast-icon {
  color: var(--color-danger-400);
}
.toast-info .toast-icon {
  color: var(--color-primary-400);
}
.toast-body {
  flex: 1;
}
.toast-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: var(--leading-snug);
}
.toast-message {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}
.toast-close {
  flex-shrink: 0;
  color: var(--text-subtle);
  background: transparent;
  border: none;
  padding: 2px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--duration-fast);
  line-height: 1;
}
.toast-close:hover {
  color: var(--text-primary);
}
.toast-close:focus-visible {
  outline: 2px solid var(--color-primary-500);
}
/* ─────────────────────────────────────────────
   19. COMMAND PALETTE
   ───────────────────────────────────────────── */
.cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-command);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  animation: fade-in var(--duration-base) var(--ease-out);
}
.cmd-palette {
  width: 100%;
  max-width: 640px;
  margin: 0 var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  animation: cmd-in var(--duration-slow) var(--ease-spring);
}
@keyframes cmd-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.cmd-search {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}
.cmd-search-icon {
  color: var(--text-subtle);
  flex-shrink: 0;
}
.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--text-base);
  color: var(--text-primary);
  caret-color: var(--color-primary-500);
}
.cmd-input::placeholder {
  color: var(--text-subtle);
}
.cmd-body {
  max-height: 440px;
  overflow-y: auto;
  padding: var(--space-2);
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}
.cmd-section-label {
  font-size: var(--text-2xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-subtle);
  padding: var(--space-2) var(--space-3) var(--space-1);
}
.cmd-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.cmd-item:hover,
.cmd-item[aria-selected="true"] {
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-primary);
}
.cmd-item:focus-visible {
  outline: none;
  background: rgba(124, 58, 237, 0.12);
}
.cmd-item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-400);
}
.cmd-item-label {
  flex: 1;
  font-weight: var(--font-medium);
}
.cmd-item-tag {
  font-size: var(--text-2xs);
  color: var(--text-subtle);
  background: var(--bg-surface);
  padding: 2px var(--space-2);
  border-radius: var(--radius-xs);
}
.cmd-footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-2xs);
  color: var(--text-subtle);
}
.cmd-footer-hint {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}
/* ─────────────────────────────────────────────
   20. EMPTY STATES
   ───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-8);
  gap: var(--space-4);
  color: var(--text-muted);
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-2xl);
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--color-primary-400);
}
.empty-state-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
}
.empty-state-desc {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  max-width: 320px;
  line-height: var(--leading-relaxed);
}
/* ─────────────────────────────────────────────
   21. SPINNER
   ───────────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-top-color: var(--color-primary-500);
  border-radius: var(--radius-full);
  animation: spin var(--duration-lazy) var(--ease-linear) infinite;
  flex-shrink: 0;
}
.spinner-sm {
  width: 14px;
  height: 14px;
  border-width: 1.5px;
}
.spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}
.spinner-xl {
  width: 48px;
  height: 48px;
  border-width: 4px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ─────────────────────────────────────────────
   22. LAYOUT UTILITIES
   ───────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}
/* Flex helpers */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-start {
  display: flex;
  align-items: center;
}
/* Text helpers */
.text-gradient-primary {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--color-primary-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-accent {
  background: linear-gradient(135deg, var(--color-primary-400), var(--color-secondary-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ─────────────────────────────────────────────
   23. PROGRESS BAR
   ───────────────────────────────────────────── */
.progress-track {
  height: 6px;
  background: var(--bg-overlay);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--brand-gradient);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
}
.progress-fill-secondary {
  background: linear-gradient(90deg, var(--color-secondary-600), var(--color-secondary-400));
}
/* ─────────────────────────────────────────────
   24. DIVIDER
   ───────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-6) 0;
}
/* ─────────────────────────────────────────────
   25. SCROLL UTILITIES
   ───────────────────────────────────────────── */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}
.scrollbar-thin::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
/* ─────────────────────────────────────────────
   26. MODAL / OVERLAY
   ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-5);
  animation: fade-in var(--duration-base) var(--ease-out);
}
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-3xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-modal);
  animation: modal-in var(--duration-slow) var(--ease-spring);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-overlay);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.modal-close:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}
.modal-close:focus-visible {
  box-shadow: var(--focus-ring);
}
/* ─────────────────────────────────────────────
   27. FADE IN ANIMATIONS
   ───────────────────────────────────────────── */
@keyframes fade-in {
  from {
    opacity: 0;
  }

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

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-fade-in {
  animation: fade-in var(--duration-slow) var(--ease-out);
}
.animate-fade-up {
  animation: fade-up var(--duration-slow) var(--ease-out);
}
.animate-fade-down {
  animation: fade-down var(--duration-slow) var(--ease-out);
}
.animate-scale-in {
  animation: scale-in var(--duration-slow) var(--ease-spring);
}
[data-theme="light"] * {
  scrollbar-color: rgba(180, 150, 110, 0.4) #F0EBE0;
}
/* =====================================================================
   interactions.css — Micro-interaction & motion layer for BlogzzUP AI
   Layered on top of tokens.css. Never blocks interaction, always
   gracefully degraded via prefers-reduced-motion.

   Patterns covered:
   1.  Global baseline: will-change, cursor, selection
   2.  Button: press-sinkdown, shimmer highlight, loading ripple
   3.  Links: underline slide, colour shift
   4.  Cards: lift-on-hover, border-glow on active
   5.  Accordion: height-transition, icon rotate
   6.  Tabs / pills: active-indicator slide
   7.  Page / section transitions: fade+slide-up enter
   8.  Modal / drawer: scale-in + backdrop fade
   9.  Form focus: border glow, lable float-like feel
   10. Skeleton shimmer loader (class-based)
   11. Nav items: active stripe slide
   12. Tooltip reveal
   13. prefers-reduced-motion: kill all animations
   ===================================================================== */
/* ─────────────────────────────────────────────────
   1. GLOBAL BASELINE
   ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  /* Smooth transition defaults — only for properties we animate */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
/* Text selection highlight */
::selection {
  background: rgba(124, 58, 237, 0.25);
  color: var(--text-primary, #fff);
}
/* Smooth scrolling for anchor / section jumps */
html {
  scroll-behavior: smooth;
}
/* ─────────────────────────────────────────────────
   2. BUTTONS
   ───────────────────────────────────────────────── */
/* All buttons get a subtle press-down on :active */
button,
.btn,
[role="button"] {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease,
    transform 100ms ease;
}
button:active:not(:disabled),
.btn:active:not(:disabled),
[role="button"]:active:not(:disabled) {
  transform: translateY(1px) scale(0.988);
}
/* btn-primary shimmer on hover */
.btn-primary::after,
.btn.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 30%,
      rgba(255, 255, 255, 0.12) 50%,
      transparent 70%);
  transform: translateX(-100%);
  transition: transform 0s;
  /* reset; shimmer fires on hover */
}
.btn-primary:hover:not(:disabled)::after,
.btn.btn-primary:hover:not(:disabled)::after {
  transform: translateX(100%);
  transition: transform 450ms ease;
}
/* btn-primary hover: slight lift + stronger glow */
.btn-primary:hover:not(:disabled),
.btn.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}
/* btn-outline hover: fill from bottom */
.btn-outline {
  transition:
    color 150ms ease,
    background-color 200ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 100ms ease;
}
.btn-outline:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.08);
}
/* btn-ghost hover: backdrop blush */
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
}
/* Disabled state */
button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
/* Focus-visible ring — universal */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.55);
  border-radius: inherit;
}
/* ─────────────────────────────────────────────────
   3. LINKS
   ───────────────────────────────────────────────── */
a {
  transition: color 150ms ease, opacity 150ms ease;
}
/* Footer / nav links: underline slide */
.footer-col a,
.nav-a,
.site-nav a {
  position: relative;
  text-decoration: none;
}
.footer-col a::after,
.nav-a::after,
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 200ms ease;
}
.footer-col a:hover::after,
.nav-a:hover::after,
.site-nav a:hover::after {
  width: 100%;
}
/* Social icons hover pop */
.social-icon {
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease !important;
}
.social-icon:hover {
  transform: translateY(-2px) scale(1.08) !important;
  opacity: 0.9;
}
/* ─────────────────────────────────────────────────
   4. CARDS — lift on hover
   ───────────────────────────────────────────────── */
/* Feature cards, pricing cards, stat dash cards */
.feat-card,
.pc-card,
.stat-dash-card,
.dash-card,
.be-tone-card,
.be-history-item {
  transition:
    transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 200ms ease,
    border-color 150ms ease;
}
.feat-card:hover,
.be-history-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(124, 58, 237, 0.15);
}
.pc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(124, 58, 237, 0.2);
}
/* Popular pricing card — extra glow */
.pc-card.popular:hover {
  box-shadow:
    0 16px 48px rgba(124, 58, 237, 0.35),
    0 0 0 1px rgba(124, 58, 237, 0.4);
}
/* Stat cards */
.stat-dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
/* ─────────────────────────────────────────────────
   4a. 3D STEP CARDS (How it Works)
   ───────────────────────────────────────────────── */
.timeline-grid {
  perspective: 1200px;
}
.step-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.step-card:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-2deg);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
}
.demo-visual-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  transform: translateZ(20px);
  will-change: transform;
}
.step-card:hover .demo-visual-card {
  transform: translateZ(40px) translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}
/* Float animation for the visual elements */
.cms-connection-demo,
.pipeline-demo,
.graph-demo {
  animation: float-3d 6s ease-in-out infinite;
}
@keyframes float-3d {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}
/* Enhanced Pipeline "Running" Feel */
.pipeline-item {
  animation: pipeline-running 6s infinite;
  border-left: 3px solid transparent;
}
@keyframes pipeline-running {

  0%,
  5% {
    opacity: 0;
    transform: translateX(-15px) translateZ(0);
    border-left-color: transparent;
  }

  10% {
    opacity: 1;
    transform: translateX(0) translateZ(10px);
    border-left-color: var(--color-primary-400);
  }

  85% {
    opacity: 1;
    transform: translateX(0) translateZ(10px);
    border-left-color: var(--color-primary-400);
  }

  95%,
  100% {
    opacity: 0;
    transform: translateX(15px) translateZ(0);
    border-left-color: transparent;
  }
}
/* Graph demo 3D depth */
.growth-line {
  filter: drop-shadow(0 5px 15px rgba(124, 58, 237, 0.3));
  transform: rotateX(10deg);
}
/* Mock UI elements — subtle highlight on hover */
.mock-comp-btn,
.mock-cms-pill {
  transition: background 150ms ease, transform 100ms ease;
}
.mock-comp-btn:hover,
.mock-cms-pill:hover {
  transform: scale(1.03);
}
/* Blog table rows */
tr[onmouseover] {
  transition: background 150ms ease !important;
}
/* ─────────────────────────────────────────────────
   5. ACCORDION
   ───────────────────────────────────────────────── */
.accordion-container {
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
  cursor: pointer;
}
.accordion-container:hover {
  border-color: rgba(124, 58, 237, 0.3) !important;
  background: rgba(124, 58, 237, 0.04) !important;
}
/* Rotate the chevron/arrow icon on open */
.accordion-icon {
  display: inline-flex;
  transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}
.accordion-container.open .accordion-icon {
  transform: rotate(180deg);
}
/* Smooth height transition for accordion body */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms ease;
  overflow: hidden;
}
.accordion-container.open .accordion-body {
  grid-template-rows: 1fr;
}
/* Inner wrapper needed for grid-based height trick */
.accordion-body>* {
  overflow: hidden;
  min-height: 0;
}
/* ─────────────────────────────────────────────────
   6. TABS / PILLS
   ───────────────────────────────────────────────── */
.feature-tab-btn {
  position: relative;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}
/* Hover state */
.feature-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
}
/* Active underline bar that animates in */
.feature-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, #7C3AED, #06B6D4);
  border-radius: 1px;
  animation: tab-bar-in 200ms ease forwards;
}
@keyframes tab-bar-in {
  from {
    transform: scaleX(0);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
/* Pricing toggle buttons */
.pt-btn {
  transition: background 150ms ease, color 150ms ease, transform 100ms ease;
}
.pt-btn:active {
  transform: scale(0.96);
}
/* Tab panel content: fade + slide-up on appear */
.tab-panel-container {
  animation: panel-enter 230ms ease both;
}
@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ─────────────────────────────────────────────────
   7. PAGE / SECTION TRANSITIONS
   ───────────────────────────────────────────────── */
/*
  .page-section visibility is toggled via JS `display` manipulation.
  We hook on a CSS class `.page-entering` that JS adds momentarily.
  Since modifying App.jsx is out of scope, we instead apply an
  animation to sections when they switch from display:none to block.
  We use @starting-style (Chrome 117+) with a graceful fallback.
*/
.page-section {
  transition: opacity 200ms ease;
}
/* @starting-style is a modern trick to animate from display:none */
@supports (transition-behavior: allow-discrete) {

  .page-section[style*="display: block"],
  .page-section[style*="display:block"] {
    animation: page-enter 260ms ease both;
    transition-behavior: allow-discrete;
  }
}
@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Dashboard section transitions — already have dash-section class */
.dash-section {
  animation: none;
  /* reset — enter animation applied via JS class */
}
.dash-section.section-entering {
  animation: page-enter 240ms ease both;
}
/* ─────────────────────────────────────────────────
   8. MODALS / DRAWERS
   ───────────────────────────────────────────────── */
/* Blog modal overlay — already uses fixed positioning. 
   Add fade animation when it appears */
div[style*="position: fixed"][style*="zIndex: 1000"],
div[style*="position: fixed"][style*="z-index: 1000"] {
  animation: modal-backdrop-in 200ms ease both;
}
@keyframes modal-backdrop-in {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}
/* History drawer (already animated via be-history-panel) — ensure backdrop also fades */
.be-history-overlay {
  animation: modal-backdrop-in 200ms ease both;
}
/* Modal close button: rotate on hover */
button[aria-label="Close"],
button[onClick*="setModal"],
.be-icon-btn {
  transition: color 150ms ease, background 150ms ease, transform 150ms ease !important;
}
button[aria-label="Close"]:hover,
.be-icon-btn:hover {
  transform: rotate(8deg) scale(1.1) !important;
}
/* ─────────────────────────────────────────────────
   9. FORM ELEMENTS
   ───────────────────────────────────────────────── */
.form-input,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="range"],
select,
textarea {
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}
/* Range track fill — visual progress colour (already in BlogEditor.css;
   here we just ensure the thumb animates smoothly everywhere) */
input[type="range"]::-webkit-slider-thumb {
  transition: transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 150ms ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}
/* Textarea resize gripper — smooth feel */
textarea {
  resize: vertical;
  transition: border-color 150ms ease, box-shadow 150ms ease, height 150ms ease;
}
/* ─────────────────────────────────────────────────
   10. SKELETON SHIMMER LOADER
   ───────────────────────────────────────────────── */
/* Usage: <div class="skeleton"></div> or <div class="skeleton-text"></div> */
.skeleton,
.skeleton-text,
.skeleton-avatar,
.skeleton-btn {
  background: linear-gradient(90deg,
      var(--bg-elevated, #141b2d) 0%,
      rgba(255, 255, 255, 0.05) 40%,
      var(--bg-elevated, #141b2d) 80%);
  background-size: 300% 100%;
  border-radius: var(--radius-md, 8px);
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
.skeleton-text {
  height: 14px;
  border-radius: 4px;
}
.skeleton-avatar {
  border-radius: 50%;
}
.skeleton-btn {
  height: 40px;
  border-radius: var(--radius-xl, 12px);
}
/* Skeleton line groups — useful for text blocks */
.skeleton-lines .skeleton-text+.skeleton-text {
  margin-top: 8px;
}
.skeleton-lines .skeleton-text:last-child {
  width: 65%;
}
@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}
/* ─────────────────────────────────────────────────
   11. NAV ITEMS — sidebar
   ───────────────────────────────────────────────── */
.nav-item {
  transition:
    background 150ms ease,
    color 150ms ease,
    padding-left 150ms ease;
}
/* Sidebar active item: compact left stripe already handled in Dashboard.css,
   here we add a glow burst when newly activated */
.nav-item.active {
  animation: nav-activate 300ms ease both;
}
@keyframes nav-activate {
  0% {
    box-shadow: inset 3px 0 0 transparent;
  }

  40% {
    box-shadow: inset 3px 0 0 rgba(124, 58, 237, 0.9);
  }

  100% {
    box-shadow: inset 3px 0 0 rgba(124, 58, 237, 0.6);
  }
}
/* Nav hover: subtle indent */
.nav-item:hover:not(.active) {
  padding-left: calc(var(--space-4, 16px) + 4px);
}
/* ─────────────────────────────────────────────────
   12. TOOLTIP REVEAL
   ───────────────────────────────────────────────── */
/* Lightweight CSS-only tooltip via data-tip attribute */
[data-tip] {
  position: relative;
}
[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-elevated, #1e293b);
  color: var(--text-secondary, #e2e8f0);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 100;
}
[data-tip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* ─────────────────────────────────────────────────
   13. BACK-TO-TOP BUTTON
   ───────────────────────────────────────────────── */
.back-to-top {
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease !important;
}
.back-to-top:hover {
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5) !important;
}
/* ─────────────────────────────────────────────────
   14. HERO & LANDING SECTION ELEMENTS
   ───────────────────────────────────────────────── */
/* Hero CTA buttons group: stagger children */
.hero-cta>*:nth-child(1) {
  animation-delay: 0ms;
}
.hero-cta>*:nth-child(2) {
  animation-delay: 80ms;
}
/* Stats / trust bar: subtle entrance */
.stats-bar .stat-item,
.trust-row>* {
  animation: fade-up-sm 400ms ease both;
}
.stats-bar .stat-item:nth-child(1) {
  animation-delay: 100ms;
}
.stats-bar .stat-item:nth-child(2) {
  animation-delay: 180ms;
}
.stats-bar .stat-item:nth-child(3) {
  animation-delay: 260ms;
}
.stats-bar .stat-item:nth-child(4) {
  animation-delay: 340ms;
}
@keyframes fade-up-sm {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* CTA pricing cards — pop in sequence */
.pricing-grid-3 .pc-card {
  animation: fade-up-sm 350ms ease both;
}
.pricing-grid-3 .pc-card:nth-child(1) {
  animation-delay: 0ms;
}
.pricing-grid-3 .pc-card:nth-child(2) {
  animation-delay: 80ms;
}
.pricing-grid-3 .pc-card:nth-child(3) {
  animation-delay: 160ms;
}
/* ─────────────────────────────────────────────────
   15. CONTENT TABLE ROWS (Dashboard)
   ───────────────────────────────────────────────── */
.dash-table tbody tr {
  transition: background 120ms ease, box-shadow 120ms ease;
}
/* ─────────────────────────────────────────────────
   16. COMPARISON TABLE ROWS
   ───────────────────────────────────────────────── */
.comp-table tbody tr {
  transition: background 120ms ease;
}
.comp-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.04);
}
/* ─────────────────────────────────────────────────
   17. COMMAND PALETTE
   ───────────────────────────────────────────────── */
/* If a .command-palette or .cmd-palette class exists */
.command-palette,
.cmd-palette,
[role="dialog"] {
  animation: modal-scale-in 200ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
/* ─────────────────────────────────────────────────
   18. SECTION ENTRY (Intersection Observer friendly)
   ───────────────────────────────────────────────── */
/* Elements with .reveal class will be animated when .visible is added by JS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 450ms ease, transform 450ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ─────────────────────────────────────────────────
   19. prefers-reduced-motion — override
       Respects user OS accessibility setting.
       Collapses all durations to near-zero.
   ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Skeleton: replace shimmer with static bg */
  .skeleton,
  .skeleton-text,
  .skeleton-avatar,
  .skeleton-btn {
    background: var(--bg-elevated, #141b2d) !important;
    animation: none !important;
  }

  /* Remove all transforms to avoid jarring jumps */
  .btn-primary:hover:not(:disabled),
  .feat-card:hover,
  .pc-card:hover,
  .stat-dash-card:hover,
  .back-to-top:hover {
    transform: none !important;
  }

  /* Page / tab enter animations */
  .tab-panel-container,
  .page-section[style*="display: block"],
  .dash-section.section-entering,
  .command-palette,
  .cmd-palette,
  [role="dialog"],
  .pricing-grid-3 .pc-card,
  .stats-bar .stat-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* @import url('./a11y.css'); -- Temporarily disabled to kill light-mode leaks */
/* ─── Global smooth colour transition for theme switching ─── */
*,
*::before,
*::after {
  transition:
    background-color 0.3s ease,
    border-color     0.3s ease,
    color            0.3s ease,
    box-shadow       0.3s ease;
}
/* ─── Global Base — Adapts to theme ─── */
html,
body,
#root,
#marketing-site,
#dashboard-app,
.page-section {
  background-color: var(--bg-base);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
/* ─── Light Mode: global hardcoded-colour overrides ─── */
[data-theme="light"] html,
[data-theme="light"] body,
[data-theme="light"] #root,
[data-theme="light"] #marketing-site,
[data-theme="light"] #dashboard-app,
[data-theme="light"] .page-section {
  background-color: var(--bg-base);
  color: var(--text-primary);
}
/* Navbar */
[data-theme="light"] .navbar {
  background: rgba(248, 249, 252, 0.80);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 249, 252, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .logo  { color: var(--bg-base); }
[data-theme="light"] .nav-links a { color: #475569; }
[data-theme="light"] .nav-links a:hover { color: var(--bg-base); }
[data-theme="light"] .nav-link.active,
[data-theme="light"] .nav-links a.active { color: var(--bg-base); }
[data-theme="light"] .btn-ghost { color: var(--bg-base); }
[data-theme="light"] .btn-ghost:hover { color: #475569; }
[data-theme="light"] .btn-outline {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
  color: var(--bg-base);
}
/* Headings & text */
[data-theme="light"] h1 {
  background: linear-gradient(135deg, var(--bg-base) 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
[data-theme="light"] .step-title  { color: var(--bg-base); }
[data-theme="light"] .step-desc   { color: #475569; }
[data-theme="light"] .subheading  { color: #475569; }
/* Step cards */
[data-theme="light"] {
  /* Semantic Brand Overrides */
  --bg-base: #FAF7F0;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F5F0E8;
  --text-primary: #2C1A0E;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-subtle: #8B6914;
  --border-default: rgba(180, 150, 110, 0.15);
  --border-strong: rgba(180, 150, 110, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(180, 150, 110, 0.2);
}
[data-theme="light"] .step-card {
  background: var(--bg-surface);
  border-color: var(--border-default);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .step-card:hover {
  border-color: rgba(124,58,237,0.30);
}
[data-theme="light"] .step-icon-wrapper {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.15);
  color: var(--color-primary-600);
  box-shadow: none;
}
[data-theme="light"] .step-icon-wrapper.cyan { color: var(--color-secondary-500); background: rgba(6,182,212,0.08); }
[data-theme="light"] .step-icon-wrapper.violet { color: var(--color-primary-600); background: rgba(124,58,237,0.08); }
[data-theme="light"] .step-icon-wrapper.amber { color: #D97706; background: rgba(245,158,11,0.10); }
[data-theme="light"] .step-title { color: #1e1e2e !important; }
[data-theme="light"] .step-desc  { color: #475569 !important; }
[data-theme="light"] .demo-visual-card {
  background: rgba(240,242,248,0.95);
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
[data-theme="light"] .cms-icon {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.10);
  color: #5C4A3A !important; /* Ensure text labels are dark */
}
[data-theme="light"] .pipeline-item::before {
  background: #64748B !important;
}
[data-theme="light"] .pipeline-item {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: #2C1A0E !important;
}
[data-theme="light"] .BlogzzUP-node svg { color: var(--color-primary-600); }
/* Auth */
[data-theme="light"] .auth-layout  { background: #F8F9FC; }
/* ─── Theme toggle switcher (pill redesign) ─── */
.theme-toggle-container {
  padding: 0 8px;
  margin-bottom: 12px;
}
.theme-toggle-pill {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  min-height: 40px;
}
.theme-toggle-pill:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.theme-toggle-pill .left-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle-pill .icon-box {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.theme-toggle-pill .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}
.theme-toggle-switch {
  width: 36px;
  height: 20px;
  background: #CBD5E1; /* Off background */
  border-radius: 99px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
[data-theme="dark"] .theme-toggle-switch {
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}
.theme-toggle-knob {
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(16px);
  background: #FFFFFF;
}
[data-theme="dark"] .theme-toggle-pill {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .theme-toggle-pill {
  background: #FDF7F2; 
}
/* Auth Page overrides... */
[data-theme="light"] .auth-form-card {
  background: rgba(255,255,255,0.90) !important;
  border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .auth-title {
  background: linear-gradient(to bottom right, var(--bg-base), #374151);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Footer */
[data-theme="light"] .footer {
  background: #F0F2F8;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: #475569;
}
[data-theme="light"] .footer h4 { color: var(--bg-base); }
[data-theme="light"] .footer a   { color: #475569; }
[data-theme="light"] .footer a:hover { color: var(--bg-base); }
/* Home sidebar tooltips */
[data-theme="light"] .home-sidebar {
  background: rgba(255,255,255,0.70);
  border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .home-sidebar-item[data-tooltip]::after {
  background: var(--bg-base);
  color: #FFFFFF;
}
/* ─── Skip Link — Hidden Until Focused ─── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 9999;
  background: #7C3AED;
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}
/* ─── Dark Theme Tokens & Legacy Aliases ─── */
/* =============================================
   GENZ TONE ANIMATIONS
   ============================================= */
@keyframes genz-border {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* =============================================
   GENZ TONE CARD - SPECIAL STYLING
   ============================================= */
/* GenZ card gradient border animation */
[class*="toneCard"][class*="genz"],
[class*="tone-card"][class*="genz"],
[class*="genzCard"],
[class*="genz-card"] {
  position: relative !important;
  background: transparent !important;
  border: none !important;
  padding: 2px !important;
  border-radius: 12px !important;
}
/* Rainbow gradient hover on GenZ card */
[class*="toneCard"][class*="genz"]:hover,
[class*="genzCard"]:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 
    0 8px 32px rgba(199, 125, 255, 0.3),
    0 0 0 1px rgba(255, 107, 107, 0.3) !important;
}
/* GenZ card when selected */
[class*="toneCard"][class*="genz"][class*="active"],
[class*="genzCard"][class*="selected"] {
  animation: genz-border 3s ease infinite !important;
}
/* Pulse effect on GenZ card */
[class*="genzCard"]::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF, #C77DFF);
  background-size: 300% 300%;
  animation: genz-border 3s ease infinite;
  z-index: -1;
  opacity: 0.6;
}
/* Light mode GenZ card */
[data-theme="light"] [class*="genzCard"],
[data-theme="light"] [class*="toneCard"][class*="genz"] {
  box-shadow: 0 4px 20px rgba(199, 125, 255, 0.15) !important;
}
/* Dark mode GenZ extra glow */
[data-theme="dark"] [class*="genzCard"]:hover,
[data-theme="dark"] [class*="toneCard"][class*="genz"]:hover {
  box-shadow: 
    0 8px 40px rgba(199, 125, 255, 0.4),
    0 0 60px rgba(255, 107, 107, 0.15) !important;
}
:root {
  /* 1) Dark theme defaults */
  --theme-bg: #020617;
  --theme-surface: var(--bg-elevated);
  --theme-text: #ffffff;
  --theme-text-muted: #94a3b8;
  --theme-border: rgba(255, 255, 255, 0.05);
  --theme-accent: #8b5cf6;
  --theme-focus-ring: 0 0 0 2px var(--theme-bg), 0 0 0 4px var(--theme-accent);

  /* Legacy aliases for backward compatibility */
  --bg-navy: var(--theme-bg);
  --accent-violet: #7c3aed;
  --accent-cyan: #06b6d4;
  --text-main: var(--theme-text);
}
/* Typography Utilities */
h1 {
  font-size: clamp(3rem, 5vw + 1rem, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--theme-text);
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 24px rgba(255, 255, 255, 0.1);
}
.subheading {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 1.25rem 0;
  background: rgba(2, 6, 23, 0.7);
  /* Match obsidian foundations */
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Home Sidebar — NEW */
.home-sidebar {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0.75rem;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-sidebar-item {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.home-sidebar-item:hover {
  background: rgba(124, 58, 237, 0.15);
  color: var(--theme-accent);
  transform: scale(1.1);
}
.home-sidebar-item.active {
  background: var(--theme-accent);
  color: white;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}
.home-sidebar-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  background: var(--bg-base);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.home-sidebar-item:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(5px);
}
/* Auth Section Restoration — FIXED & CENTERED */
.auth-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: #020617;

}
.auth-form-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form-card {
  width: 100%;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: 3rem !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}
.auth-title {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.5rem !important;
  background: linear-gradient(to bottom right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 1024px) {
  .auth-hero {
    display: none;
  }

  .home-sidebar {
    display: none;
  }
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.logo-icon {
  color: var(--accent-violet);
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}
.nav-links a {
  color: var(--theme-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 4px;
}
.nav-links a:hover {
  color: var(--text-secondary);
}
.nav-links a:focus-visible {
  outline: none;
  box-shadow: var(--theme-focus-ring);
}
.nav-link.active,
.nav-links a.active {
  color: var(--theme-text);
  border-bottom: 2px solid var(--theme-accent);
  padding-bottom: 2px;
  border-radius: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text-main);
}
.btn-ghost:hover {
  color: var(--text-muted);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-violet) 0%, #9333EA 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-outline {
  background: var(--glass-bg);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
/* Hero Section */
.hero {
  position: relative;
  padding: 12rem 0 8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
  animation: float-slow 4s ease-in-out infinite;
}
.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 4rem;
}
/* Social Proof */
.social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.avatars {
  display: flex;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-navy);
  background: #2D3748;
  margin-left: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar:first-child {
  margin-left: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rating-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.star {
  color: #FBBF24;
}
/* Floating Pills */
.floating-pills {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.pill {
  position: absolute;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.pill-icon {
  color: var(--accent-cyan);
}
/* Specific Pill Positions & Animations */
.pill:nth-child(1) {
  top: 20%;
  left: 0%;
  animation: float 5s ease-in-out infinite 0s;
}
.pill:nth-child(2) {
  top: 30%;
  right: 5%;
  animation: float 6s ease-in-out infinite 1s;
}
.pill:nth-child(3) {
  top: 75%;
  left: 10%;
  animation: float 5.5s ease-in-out infinite 2s;
}
.pill:nth-child(4) {
  top: 65%;
  right: 5%;
  animation: float 6.5s ease-in-out infinite 0.5s;
}
.pill:nth-child(5) {
  top: 10%;
  right: 25%;
  animation: float 4.5s ease-in-out infinite 1.5s;
}
.pill:nth-child(6) {
  top: 55%;
  left: -5%;
  animation: float 7s ease-in-out infinite 2.5s;
}
/* Absolute Dark Theme — No background light remnants */
.bg-grid,
.bg-glow {
  display: none !important;
  /* Completely eliminate light glow elements */
}
/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}
@keyframes float-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}
/* How it Works Section — Pure dark transition */
.works-section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
  background: transparent;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 5rem;
  position: relative;
}
/* Connecting Line (Desktop) */
@media (min-width: 1024px) {
  .timeline-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-600), var(--color-secondary-500));
    border-radius: 2px;
    z-index: 0;
    opacity: 0.3;
  }

  .timeline-line-animated {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-secondary-500), transparent);
    background-size: 200% 100%;
    animation: slide-gradient 3s linear infinite;
    z-index: 1;
    border-radius: 2px;
    opacity: 0.8;
  }

  [data-theme="light"] .timeline-grid::before {
    opacity: 0.25;
  }

  [data-theme="light"] .timeline-line-animated {
    background: linear-gradient(90deg, transparent, var(--color-primary-600), transparent);
    opacity: 1;
  }
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  perspective: 2000px;
  /* Stronger perspective for 3D depth */
  padding-bottom: 4rem;
}
.step-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  will-change: transform;
}
.step-card:hover {
  transform: translateY(-15px) rotateX(8deg) rotateY(-4deg);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow:
    -10px 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(124, 58, 237, 0.1);
}
.step-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transform: translateZ(30px);
  /* Lift header out of card */
}
.step-icon-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 4px solid var(--bg-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  font-size: 2rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}
.step-card:hover .step-icon-wrapper {
  transform: scale(1.1) translateZ(20px);
}
.step-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.step-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  transform: translateZ(20px);
}
/* Demo Visuals */
.demo-visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transform: translateZ(50px);
  /* Massive depth for the visual */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease;
}
.step-card:hover .demo-visual-card {
  transform: translateZ(80px) translateY(-5px);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
/* Visual 1: CMS Connection */
.cms-connection-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1rem;
}
.cms-icons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cms-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float 4s ease-in-out infinite;
}
.cms-icon:nth-child(2) {
  animation-delay: 1s;
}
.cms-icon:nth-child(3) {
  animation-delay: 2s;
}
.connection-path {
  flex-grow: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(6, 182, 212, 0.2) 0, rgba(6, 182, 212, 0.2) 4px, transparent 4px, transparent 8px);
  margin: 0 1rem;
  position: relative;
  display: flex;
  align-items: center;
}
.data-packet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: move-packet 2s linear infinite;
}
.BlogzzUP-node {
  width: 50px;
  height: 50px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
  animation: pulse-glow 2s infinite alternate;
}
@keyframes move-packet {
  0% {
    left: 0;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}
@keyframes pulse-glow {
  form {
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
    transform: scale(1);
  }

  to {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
    transform: scale(1.05);
  }
}
/* Visual 2: Pipeline */
.pipeline-demo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.pipeline-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 1;
  /* Keep visible but animate background/border */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pipeline-item::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748B;
  transition: all 0.3s ease;
}
.pipeline-item.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}
.pipeline-item.active::before {
  background: #A78BFA;
  box-shadow: 0 0 10px #A78BFA;
}
/* Running Highlight Scan Effect */
.pipeline-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: scan 2s infinite;
}
@keyframes scan {
  100% {
    left: 100%;
  }
}
/* Fallback simple animation if JS classes aren't added */
.pipeline-item {
  animation: pipeline-live 8s infinite both;
}
@keyframes pipeline-live {

  0%,
  20% {
    opacity: 0.4;
    transform: scale(0.98);
  }

  25%,
  45% {
    opacity: 1;
    transform: scale(1.02);
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
  }

  50%,
  100% {
    opacity: 0.4;
    transform: scale(0.98);
  }
}
.pipeline-item:nth-child(1) {
  animation-delay: 0s;
}
.pipeline-item:nth-child(2) {
  animation-delay: 2s;
}
.pipeline-item:nth-child(3) {
  animation-delay: 4s;
}
.pipeline-item:nth-child(4) {
  animation-delay: 6s;
}
/* Visual 3: Graph */
.graph-demo {
  width: 100%;
  height: 100%;
  padding: 1rem;
  display: flex;
  align-items: flex-end;
}
.growth-line {
  width: 100%;
  height: 80%;
  overflow: visible;
}
.growth-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-line 4s ease-out forwards infinite;
}
.pulse-dot {
  opacity: 0;
  animation: dot-appear 4s forwards infinite;
}
.pulse-dot.delay-1 {
  animation-delay: 1s;
}
.pulse-dot.delay-2 {
  animation-delay: 2s;
}
.pulse-dot.delay-3 {
  animation-delay: 3s;
}
@keyframes draw-line {
  0% {
    stroke-dashoffset: 300;
  }

  50%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes dot-appear {

  0%,
  40% {
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 0 0 transparent;
  }

  50%,
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 6px #F59E0B);
  }
}
@keyframes slide-gradient {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}
/* Stats Section */
.stats-section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
}
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.08);
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 6rem;
}
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: var(--glass-blur);
  position: relative;
}
.stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}
.stat-icon-wrapper {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}
.stat-card:nth-child(even) .stat-icon-wrapper {
  color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.1);
}
.stat-card:hover .stat-icon-wrapper {
  transform: scale(1.1);
}
.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--accent-cyan), #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card:nth-child(even) .stat-number {
  background: linear-gradient(135deg, var(--accent-violet), #D946EF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.stat-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (max-width: 1024px) {
  .dashboard-mockup {
    flex-direction: column;
  }

  .dash-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .dash-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--glass-border);
  }
}
/* Integrations Section */
.integrations-section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
  background: var(--bg-navy);
}
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (max-width: 1024px) {
  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .integrations-grid {
    grid-template-columns: 1fr;
  }
}
.integration-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: var(--glass-blur);
}
.integration-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.2);
}
.integration-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #34D399;
  /* Emerald Green */
  background: rgba(52, 211, 153, 0.1);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.2);
}
.integration-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.integration-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.integration-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.integration-info {
  display: flex;
  flex-direction: column;
}
.integration-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}
.integration-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.1rem;
}
.integration-link {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  transition: color 0.2s;
  padding-top: 0.5rem;
}
.integration-link:hover {
  color: #67E8F9;
}
/* Custom Webhook */
.webhook-card {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 1rem;
  padding: 2.5rem;
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.webhook-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.1), transparent 50%);
  pointer-events: none;
}
.webhook-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  z-index: 1;
}
.webhook-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.webhook-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.webhook-form {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .webhook-form {
    flex-direction: column;
  }
}
.webhook-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.webhook-label {
  color: #CBD5E1;
  font-size: 0.85rem;
  font-weight: 500;
}
.webhook-input {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.webhook-input:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}
.webhook-btn {
  background: var(--accent-cyan);
  color: var(--bg-base);
  /* Dark text for contrast */
  font-weight: 700;
  border: none;
  border-radius: 0.5rem;
  padding: 0 2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  /* Align with inputs */
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}
@media (max-width: 768px) {
  .webhook-btn {
    padding: 0.75rem 1.5rem;
    margin-top: 0.5rem;
  }
}
.webhook-btn:hover {
  background: #22D3EE;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}
/* Spotlight Section */
.spotlight-section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
}
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}
@media (max-width: 1024px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
}
.spotlight-card {
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  backdrop-filter: var(--glass-blur);
}
.spotlight-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}
.spotlight-visual {
  height: 280px;
  background: rgba(10, 15, 30, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spotlight-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.spotlight-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}
.spotlight-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}
/* Visual 1: Cluster Map */
.cluster-map {
  position: relative;
  width: 100%;
  height: 100%;
}
.cluster-node {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  transform: translate(-50%, -50%);
  animation: pulse-node 3s infinite alternate;
}
.cluster-node.center {
  top: 50%;
  left: 50%;
  border-color: var(--accent-violet);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
  z-index: 2;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
}
.cluster-node.n1 {
  top: 20%;
  left: 30%;
  animation-delay: 0.5s;
}
.cluster-node.n2 {
  top: 25%;
  left: 75%;
  animation-delay: 1s;
}
.cluster-node.n3 {
  top: 75%;
  left: 25%;
  animation-delay: 1.5s;
}
.cluster-node.n4 {
  top: 80%;
  left: 70%;
  animation-delay: 2s;
}
.cluster-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.5), rgba(6, 182, 212, 0.5));
  z-index: 1;
}
.cluster-line.l1 {
  width: 120px;
  transform: rotate(-135deg);
}
.cluster-line.l2 {
  width: 130px;
  transform: rotate(-30deg);
}
.cluster-line.l3 {
  width: 140px;
  transform: rotate(135deg);
}
.cluster-line.l4 {
  width: 120px;
  transform: rotate(45deg);
}
@keyframes pulse-node {
  from {
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    transform: translate(-50%, -50%) scale(1.05);
  }
}
/* Visual 2: GEO Optimization */
.geo-map {
  position: relative;
  width: 220px;
  height: 220px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50 10 L60 30 L80 40 L70 60 L60 90 L40 85 L30 60 L20 40 M50 10 L40 25 L20 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') no-repeat center;
  background-size: contain;
}
.geo-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent-cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: geo-ping 2s infinite;
}
.geo-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  animation: geo-ripple 2s infinite;
  opacity: 0;
}
.geo-dot.d1 {
  top: 35%;
  left: 45%;
}
/* Delhi */
.geo-dot.d2 {
  top: 60%;
  left: 35%;
  animation-delay: 0.6s;
}
/* Mumbai */
.geo-dot.d3 {
  top: 70%;
  left: 45%;
  animation-delay: 1.2s;
}
/* Bangalore */
.geo-label {
  position: absolute;
  color: #fff;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  transform: translate(10px, -10px);
}
@keyframes geo-ping {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}
@keyframes geo-ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}
/* Visual 3: Voice to Blog */
.voice-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
}
.voice-waves {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 60px;
}
.wave-bar {
  width: 6px;
  background: var(--accent-violet);
  border-radius: 3px;
  animation: wave-anim 1s infinite alternate ease-in-out;
}
.wave-bar:nth-child(1) {
  height: 20px;
  animation-delay: 0.1s;
}
.wave-bar:nth-child(2) {
  height: 40px;
  animation-delay: 0.2s;
}
.wave-bar:nth-child(3) {
  height: 60px;
  animation-delay: 0.3s;
}
.wave-bar:nth-child(4) {
  height: 30px;
  animation-delay: 0.4s;
}
.wave-bar:nth-child(5) {
  height: 50px;
  animation-delay: 0.5s;
}
.voice-arrow {
  color: var(--text-muted);
  animation: pulse-node 2s infinite alternate;
}
.blog-doc {
  width: 80px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.doc-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  width: 100%;
}
.doc-line.title {
  width: 70%;
  background: var(--accent-cyan);
  height: 6px;
}
.doc-line:nth-child(3) {
  width: 80%;
}
.doc-line:nth-child(4) {
  width: 60%;
}
.doc-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: sweep 3s infinite;
}
@keyframes wave-anim {
  form {
    height: 10px;
  }

  to {
    height: 100%;
  }
}
@keyframes sweep {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}
/* Visual 4: Social Repurpose */
.social-demo {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-blog-card {
  width: 140px;
  height: 90px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}
.social-card {
  position: absolute;
  width: 100px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  animation: social-split 4s infinite;
}
.social-card.linkedin {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0s;
  color: #0A66C2;
  background: rgba(10, 102, 194, 0.1);
  border-color: rgba(10, 102, 194, 0.3);
  animation-name: split-linkedin;
}
.social-card.twitter {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0.2s;
  color: #1DA1F2;
  background: rgba(29, 161, 242, 0.1);
  border-color: rgba(29, 161, 242, 0.3);
  animation-name: split-twitter;
}
.social-card.instagram {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0.4s;
  color: #E1306C;
  background: rgba(225, 48, 108, 0.1);
  border-color: rgba(225, 48, 108, 0.3);
  animation-name: split-insta;
}
@keyframes split-linkedin {

  0%,
  20% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  30%,
  80% {
    opacity: 1;
    transform: translate(-140%, -100%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-140%, -100%) scale(1);
  }
}
@keyframes split-twitter {

  0%,
  20% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  30%,
  80% {
    opacity: 1;
    transform: translate(40%, -100%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(40%, -100%) scale(1);
  }
}
@keyframes split-insta {

  0%,
  20% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  30%,
  80% {
    opacity: 1;
    transform: translate(-50%, 80%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 80%) scale(1);
  }
}
/* SEO Editor Section */
.seo-editor-section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
}
.editor-dashboard {
  background: rgba(13, 21, 38, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.1);
  margin-top: 4rem;
  height: 800px;
}
@media (max-width: 1024px) {
  .editor-dashboard {
    grid-template-columns: 1fr;
    height: auto;
  }
}
/* Left Panel */
.editor-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--glass-border);
  background: #020617;
}
.editor-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.editor-breadcrumbs {
  font-weight: 500;
}
.editor-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.editor-content-area {
  padding: 4rem 5rem;
  flex-grow: 1;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .editor-content-area {
    padding: 2rem;
  }
}
.editor-doc-title {
  font-size: 2.5rem;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}
.editor-doc-body p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #D1D5DB;
  margin-bottom: 1.5rem;
}
.editor-doc-body h3 {
  font-size: 1.5rem;
  color: #fff;
  margin: 2.5rem 0 1.5rem;
  font-weight: 700;
}
.pulse-text {
  animation: text-glow 3s infinite alternate;
}
@keyframes text-glow {
  0% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0);
  }

  100% {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  }
}
.cursor-blink {
  display: inline-block;
  width: 2px;
  background: var(--accent-cyan);
  color: transparent;
  animation: blink 1s step-end infinite;
}
@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}
/* Right Panel */
.editor-right {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  background: rgba(20, 27, 45, 0.4);
  overflow-y: auto;
}
.seo-panel-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}
.score-ring-lg {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}
.score-ring-lg svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.score-ring-lg .ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}
.score-ring-lg .ring-fill-lg {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 276;
  stroke-dashoffset: 16;
  animation: drawRingLg 2s ease-out forwards;
}
@keyframes drawRingLg {
  from {
    stroke-dashoffset: 276;
  }

  to {
    stroke-dashoffset: 16;
  }
}
.score-number-lg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}
.seo-panel-title h3 {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.seo-panel-title p {
  font-size: 0.95rem;
  color: #34D399;
  font-weight: 500;
}
.seo-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
}
.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #E2E8F0;
  font-size: 0.95rem;
  font-weight: 600;
}
.bi-header span:last-child {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.bi-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.bi-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
  border-radius: 999px;
  position: relative;
}
.bi-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: sweep 2s infinite;
}
.bi-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breakdown-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.bd-pill {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34D399;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bd-pill.blue {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60A5FA;
}
.bd-pill.purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: #A78BFA;
}
.editor-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.editor-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.editor-actions .btn {
  justify-content: center;
}
.text-green-400 {
  color: #4ade80;
}
.text-cyan-400 {
  color: #22d3ee;
}
/* Final CTA */
.final-cta-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1E0B4B 0%, #0A0F1E 100%);
  text-align: center;
}
.floating-cards-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  filter: blur(4px);
  animation: float-bg 15s infinite ease-in-out alternate;
}
.fc-1 {
  width: 300px;
  height: 180px;
  top: -20px;
  left: 5%;
  transform: rotate(-15deg);
  animation-delay: 0s;
}
.fc-2 {
  width: 400px;
  height: 220px;
  bottom: 10%;
  right: -5%;
  transform: rotate(20deg);
  animation-delay: -5s;
}
.fc-3 {
  width: 250px;
  height: 150px;
  top: 40%;
  left: -5%;
  transform: rotate(10deg);
  animation-delay: -10s;
}
.fc-4 {
  width: 200px;
  height: 300px;
  top: 10%;
  right: 15%;
  transform: rotate(-25deg);
  animation-delay: -3s;
}
@keyframes float-bg {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-30px) rotate(10deg) scale(1.05);
  }

  100% {
    transform: translateY(20px) rotate(-10deg) scale(0.95);
  }
}
.cta-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.cta-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn-white-violet {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  color: var(--accent-violet);
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn-white-violet:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}
/* Footer Section */
.site-footer {
  background: #020617;
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}
/* ── Actual footer classes used in JSX ── */
.footer {
  background: #020617;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 10;
}
.footer>.container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-brand .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links h4 {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-socials .social-icon {
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.footer-socials .social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
.footer-brand .logo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: inline-flex;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.ph-badge {
  opacity: 0.9;
  transition: opacity 0.3s;
}
.ph-badge:hover {
  opacity: 1;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.footer-col h4 {
  color: var(--accent-violet);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
}
.footer-newsletter h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.newsletter-form input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.25rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-form input:focus {
  border-color: var(--accent-cyan);
}
.newsletter-form .btn {
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 0.5rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-socials {
  display: flex;
  gap: 1.25rem;
}
.footer-socials a {
  opacity: 0.6;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}
/* New Demo Widget CSS */
.new-demo-widget {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
}
.new-demo-left {
  width: 60%;
  display: flex;
  flex-direction: column;
}
.new-demo-topbar {
  background: var(--bg-elevated);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mac-dots {
  display: flex;
  gap: 6px;
  position: absolute;
  left: 16px;
}
.mac-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mac-dots span:nth-child(1) {
  background: #ef4444;
}
.mac-dots span:nth-child(2) {
  background: #f59e0b;
}
.mac-dots span:nth-child(3) {
  background: #10b981;
}
.topbar-title {
  width: 100%;
  text-align: center;
  color: #6B7280;
  font-size: 11px;
  font-weight: 500;
}
.new-demo-content-area {
  display: flex;
  flex-grow: 1;
}
.new-demo-sidebar {
  width: 160px;
  background: var(--bg-base);
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.nd-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}
.nd-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: auto;
}
.nd-nav li {
  height: 32px;
  font-size: 12px;
  padding-left: 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9CA3AF;
  cursor: pointer;
}
.nd-nav li.nd-active,
.nd-nav li:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.nd-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.nd-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  width: max-content;
}
.new-demo-chat {
  flex-grow: 1;
  background: var(--bg-elevated);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.msg-user {
  align-self: flex-end;
  background: #7C3AED;
  color: #fff;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  max-width: 75%;
  font-size: 13px;
  line-height: 1.5;
}
.msg-ai {
  align-self: flex-start;
  background: var(--bg-surface);
  color: #94A3B8;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  max-width: 85%;
  font-size: 13px;
  line-height: 1.5;
}
.chat-input-bar {
  background: var(--bg-base);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-input-bar .placeholder {
  color: #4B5563;
  font-size: 13px;
}
.send-btn {
  background: #7C3AED;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}
.new-demo-right {
  width: 40%;
  background: var(--bg-base);
  padding: 28px;
  border-left: 1px solid rgba(124, 58, 237, 0.15);
  display: flex;
  flex-direction: column;
}
.score-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.score-circle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}
.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 6px solid var(--bg-elevated);
  background: conic-gradient(#7C3AED 0% 94%, var(--bg-elevated) 94% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.score-inner {
  width: 88px;
  height: 88px;
  background: var(--bg-base);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.score-val {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.score-max {
  font-size: 12px;
  color: #6B7280;
  margin-top: 4px;
}
.score-status {
  font-size: 12px;
  color: #10B981;
  font-weight: 500;
}
.score-metrics {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.metric-row span:first-child {
  color: #9CA3AF;
}
.metric-row span:last-child {
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.generate-blog-btn {
  width: 100%;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: filter 0.2s;
  margin-top: auto;
}
.generate-blog-btn:hover {
  filter: brightness(1.1);
}
/* --- Global Mobile Responsiveness & Animations --- */
html {
  scroll-behavior: smooth;
}
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.desktop-only {
  display: inline-flex;
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background: #020617;
  z-index: 1000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open {
  right: 0;
}
.mobile-close-btn {
  background: transparent;
  border: none;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 2rem;
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: auto;
}
.mobile-nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}
.mobile-sticky-bottom {
  display: none;
}
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-violet);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  transition: transform 0.3s;
}
.back-to-top:hover {
  transform: translateY(-4px);
}
.mobile-pills-container {
  display: none;
}
@media (max-width: 768px) {

  .bg-grid,
  .bg-glow,
  .bg-glow-cyan {
    display: none !important;
  }

  .nav-links,
  .desktop-only {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block;
    min-height: 44px;
    min-width: 44px;
  }

  .hero-title {
    font-size: 28px !important;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .floating-pills {
    display: none !important;
  }

  .mobile-pills-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 2rem 0;
  }

  .mobile-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 0.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .stats-grid,
  .spotlight-grid,
  .integrations-grid,
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .demo-dashboard {
    grid-template-columns: 1fr !important;
  }

  .dash-sidebar,
  .dash-right {
    display: none !important;
  }

  .dash-main {
    border-left: none !important;
    border-right: none !important;
  }

  .works-stepper {
    flex-direction: column;
    gap: 2rem;
  }

  .mobile-sticky-bottom {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .back-to-top {
    bottom: 5rem;
  }

  input,
  select,
  textarea,
  button {
    min-height: 44px;
  }
}
/* Pricing Section */
.pricing-section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
  background: linear-gradient(to bottom, transparent 0%, rgba(10, 15, 30, 0.8) 100%);
}
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem auto 4rem;
}
.toggle-switch {
  position: relative;
  width: 60px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.toggle-switch.active {
  background: var(--accent-violet);
  border-color: rgba(124, 58, 237, 0.5);
}
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toggle-switch.active .toggle-knob {
  left: 31px;
}
.toggle-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.toggle-label.active {
  color: #fff;
}
.save-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  margin-left: 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--glass-blur);
  position: relative;
  transition: all 0.4s ease;
}
.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}
.pricing-card.popular {
  border-color: rgba(124, 58, 237, 0.6);
  background: rgba(20, 27, 45, 0.8);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.25);
}
.pricing-card.popular:hover {
  transform: translateY(-14px);
  box-shadow: 0 25px 50px -10px rgba(124, 58, 237, 0.35);
}
.pricing-card.popular::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.15), transparent 60%);
  pointer-events: none;
  border-radius: 1.5rem;
}
.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent-violet), #9333EA);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pricing-name {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  height: 60px;
}
.price-currency {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 600;
}
.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.price-period {
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.25rem;
}
.pricing-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  height: 48px;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex-grow: 1;
  margin-bottom: 2.5rem;
  list-style: none;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #E2E8F0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.feature-icon {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.pricing-card .btn {
  width: 100%;
  justify-content: center;
}
.btn-outline-violet {
  background: rgba(124, 58, 237, 0.05);
  color: #fff;
  border: 1px solid rgba(124, 58, 237, 0.4);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}
.btn-outline-violet:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent-violet);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}
.btn-outline-cyan {
  background: rgba(6, 182, 212, 0.05);
  color: #fff;
  border: 1px solid rgba(6, 182, 212, 0.4);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}
.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}
/* Marquee */
.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 3.5rem 0;
  background: rgba(10, 15, 30, 0.4);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  margin-top: 2rem;
}
.marquee {
  display: flex;
  white-space: nowrap;
}
.marquee-content {
  display: flex;
  animation: scroll-marquee 40s linear infinite;
  min-width: 100%;
}
.marquee-content:hover {
  animation-play-state: paused;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4rem;
}
.marquee-item img {
  height: 38px;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}
.marquee-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}
@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}
/* Features Section */
.features-section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
}
.title-accent-cyan {
  background: linear-gradient(135deg, var(--accent-cyan), #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}
.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
}
.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
/* Colorful Icon Backgrounds */
.bg-violet {
  background: rgba(124, 58, 237, 0.15);
  color: #A78BFA;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}
.bg-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22D3EE;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}
.bg-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}
.bg-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
.bg-coral {
  background: rgba(251, 113, 133, 0.15);
  color: #FB7185;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}
.bg-pink {
  background: rgba(236, 72, 153, 0.15);
  color: #F472B6;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}
.bg-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}
.bg-orange {
  background: rgba(249, 115, 22, 0.15);
  color: #FB923C;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}
.bg-teal {
  background: rgba(20, 184, 166, 0.15);
  color: #2DD4BF;
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.3);
}
@media (max-width: 1024px) {
  .pill {
    display: none;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
  }
}
/* Hero Glow Orb */
.hero-glow-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-content {
  position: relative;
  z-index: 1;
}
/* Feature Pill Grid */
.feature-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 48px auto 0;
}
.fp-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}
.fp-card:hover {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}
.fp-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.fp-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}
.fp-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.4;
}
.fp-arrow {
  color: #7C3AED;
  opacity: 0;
  transition: opacity 0.2s;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
}
.fp-card:hover .fp-arrow {
  opacity: 1;
}
@media (max-width: 768px) {
  .feature-pill-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}
/* Stats Strip */
.home-stats-strip {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  margin-top: 80px;
}
.home-stats-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.home-stat-item {
  flex: 1;
  text-align: center;
}
.home-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
}
.home-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: #7C3AED;
  line-height: 1.2;
}
.home-stat-label {
  font-size: 13px;
  color: #64748B;
  display: block;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .home-stats-flex {
    flex-wrap: wrap;
    gap: 24px;
  }

  .home-stat-item {
    min-width: 40%;
  }

  .home-stat-divider {
    display: none;
  }
}
/* Integrations Marquee */
.home-marquee-section {
  padding: 40px 0 80px;
  overflow: hidden;
}
.home-marquee-title {
  font-size: 13px;
  color: #64748B;
  text-align: center;
  margin-bottom: 16px;
}
.home-marquee-container-wrapper {
  overflow: hidden;
}
.home-marquee-container {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
  gap: 16px;
}
.home-marquee-container:hover {
  animation-play-state: paused;
}
.home-marquee-pill {
  background: var(--bg-surface);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  color: #94A3B8;
  white-space: nowrap;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
/* How It Works Page Header */
.hiw-header {
  text-align: center;
  margin-bottom: 64px;
}
.hiw-title {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
}
.hiw-subtitle {
  font-size: 18px;
  color: #94A3B8;
  margin-top: 12px;
}
/* Accordion Section */
.accordion-section-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 80px 0 32px;
}
.accordion-subtitle {
  color: #94A3B8;
  font-size: 16px;
  text-align: center;
  margin-bottom: 32px;
}
.accordion-container {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
}
.accordion-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.accordion-header-left {
  display: flex;
  align-items: center;
}
.accordion-badge {
  background: rgba(124, 58, 237, 0.2);
  color: #A78BFA;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 14px;
}
.accordion-title {
  font-size: 15px;
  color: #ffffff;
  font-weight: 500;
}
.accordion-icon {
  color: #94A3B8;
  transition: transform 0.3s ease;
}
.accordion-container.open .accordion-icon {
  transform: rotate(180deg);
}
.accordion-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion-container.open .accordion-body {
  max-height: 400px;
  padding: 18px 20px;
}
.accordion-desc {
  font-size: 14px;
  color: #94A3B8;
  margin-bottom: 12px;
}
.accordion-code {
  background: var(--bg-base);
  border-radius: 8px;
  padding: 16px;
  font-size: 12px;
  color: #06B6D4;
  font-family: monospace;
  white-space: pre-wrap;
}
.cta-bottom {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
/* Features Page */
.feature-tab-btn {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}
.feature-tab-btn.active {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: white;
  border-color: transparent;
}
.tab-panel-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feat-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.feat-left {
  flex: 1;
}
.feat-right {
  flex: 1;
  background: var(--bg-base);
  border-radius: 12px;
  padding: 20px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feat-icon {
  width: 60px;
  height: 60px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  color: #fff;
}
.feat-title {
  font-size: 20px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
}
.feat-desc {
  font-size: 15px;
  color: #94A3B8;
  line-height: 1.7;
}
.feat-bullets {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat-bullets li {
  font-size: 13px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feat-bullets .check {
  color: #10B981;
  font-weight: bold;
}
@media (max-width: 768px) {
  .feat-card {
    flex-direction: column;
  }

  .feature-tabs {
    flex-wrap: wrap;
  }
}
/* Comp Table */
.comp-table tr:nth-child(odd) {
  background: var(--bg-elevated);
}
.comp-table tr:nth-child(even) {
  background: var(--bg-surface);
}
.comp-table td,
.comp-table th {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #D1D5DB;
  text-align: left;
}
.comp-table th {
  font-weight: normal;
}
.comp-table tr:last-child td {
  border-bottom: none;
}
.comp-mark-yes {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  display: inline-block;
}
.comp-mark-no {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  display: inline-block;
}
.comp-mark-partial {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  display: inline-block;
}
/* Mock UIs */
.mock-ui-stages {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock-stage {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.mock-stage-num {
  color: #A78BFA;
  font-weight: bold;
  margin-right: 8px;
}
.mock-waveform-container {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  justify-content: center;
  margin-bottom: 16px;
}
.mock-wave-bar {
  width: 6px;
  background: #7C3AED;
  border-radius: 2px;
  animation: bounce-wave 1s infinite alternate;
}
@keyframes bounce-wave {
  0% {
    height: 10px;
  }

  100% {
    height: 40px;
  }
}
.mock-slider-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  margin: 24px 0;
}
.mock-slider-thumb {
  width: 16px;
  height: 16px;
  background: #7C3AED;
  border-radius: 50%;
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px #7C3AED;
}
.mock-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748B;
}
.mock-tone-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.mock-tone-tag {
  background: rgba(124, 58, 237, 0.2);
  color: #A78BFA;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
}
.mock-table {
  width: 100%;
  font-size: 12px;
  text-align: left;
  border-collapse: collapse;
}
.mock-table th {
  color: #64748B;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: normal;
}
.mock-table td {
  padding: 10px 0;
  color: #D1D5DB;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mock-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(#10B981 94%, var(--bg-elevated) 94%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.mock-ring-inner {
  width: 72px;
  height: 72px;
  background: var(--bg-base);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #10B981;
}
.mock-india-map {
  position: relative;
  width: 100px;
  height: 120px;
  margin: 0 auto;
  border-top-right-radius: 50px;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 50px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
}
.mock-city-dot {
  width: 10px;
  height: 10px;
  background: #06B6D4;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 10px #06B6D4;
  animation: geo-ping 2s infinite;
}
.mock-city-delhi {
  top: 20%;
  left: 40%;
}
.mock-city-mumbai {
  top: 60%;
  left: 20%;
}
.mock-city-blr {
  top: 80%;
  left: 45%;
}
@keyframes geo-ping {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}
.mock-cms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mock-cms-pill {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  color: #94A3B8;
  position: relative;
}
.mock-cms-connected {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10B981;
}
.mock-calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px;
}
.mock-cal-day {
  aspect-ratio: 1;
  background: var(--bg-surface);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mock-cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  bottom: 2px;
}
.mock-social-split {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.mock-social-left {
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 8px;
  padding: 16px;
  width: 60px;
  text-align: center;
  font-size: 10px;
  color: #A78BFA;
}
.mock-social-arr {
  color: #64748B;
  font-size: 20px;
}
.mock-social-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock-sc {
  width: 60px;
  height: 16px;
  border-radius: 4px;
  opacity: 0.8;
}
.mock-sc.li {
  background: #0A66C2;
}
.mock-sc.tw {
  background: #1DA1F2;
}
.mock-sc.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.mock-sc.wa {
  background: #25D366;
}
.mock-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  justify-content: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.mock-bar {
  width: 14px;
  background: #7C3AED;
  border-radius: 4px 4px 0 0;
}
.mock-competitor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: #D1D5DB;
}
.mock-comp-btn {
  background: #7C3AED;
  color: white;
  border: none;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.mock-cluster-network {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}
.mock-cluster-center {
  width: 44px;
  height: 44px;
  background: #7C3AED;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: white;
  text-align: center;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}
.mock-cluster-node {
  width: 20px;
  height: 20px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  position: absolute;
  z-index: 2;
}
.mcn-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.mcn-2 {
  top: 30%;
  right: 0;
}
.mcn-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.mcn-4 {
  top: 30%;
  left: 0;
}
.mock-cluster-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  transform-origin: left center;
}
/* Pricing Page */
.pricing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.pt-container {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  display: flex;
  gap: 4px;
}
.pt-btn {
  border-radius: 999px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}
.pt-btn.active {
  background: #7C3AED;
  color: white;
}
.pt-btn.inactive {
  background: transparent;
  color: #64748B;
}
.pricing-grid-3 {
  display: flex;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.pc-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 280px;
}
.pc-card.popular {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
  position: relative;
}
.pc-most-pop {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7C3AED, #06B6D4);
  color: white;
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pc-header {
  font-size: 18px;
  color: white;
  font-weight: 600;
  margin: 0;
}
.pc-price-wrap {
  margin-top: 16px;
}
.pc-price {
  font-size: 40px;
  color: white;
  font-weight: 700;
}
.pc-per {
  font-size: 14px;
  color: #64748B;
}
.pc-desc {
  font-size: 13px;
  color: #64748B;
  margin: 12px 0 24px;
}
.pc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
}
.pc-feat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pc-feat {
  font-size: 14px;
  color: #94A3B8;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  padding: 6px 0;
}
.pc-feat-check {
  color: #10B981;
  font-weight: bold;
}
.pc-btn-outline {
  margin-top: 32px;
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #A78BFA;
  border-radius: 10px;
  padding: 13px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pc-btn-outline:hover {
  background: rgba(124, 58, 237, 0.1);
}
.pc-btn-outline-cyan {
  margin-top: 32px;
  background: transparent;
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #06B6D4;
  border-radius: 10px;
  padding: 13px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pc-btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.1);
}
.pc-btn-solid {
  margin-top: 32px;
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 13px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pc-btn-solid:hover {
  filter: brightness(1.1);
}
.faq-accordion .accordion-container {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
}
.faq-accordion .accordion-header {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-accordion .accordion-title {
  font-size: 15px;
  color: white;
  font-weight: 500;
}
.faq-accordion .accordion-icon {
  color: #94A3B8;
  transition: transform 0.3s;
}
.faq-accordion .accordion-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: all 0.3s ease;
}
.faq-accordion .open .accordion-icon {
  transform: rotate(180deg);
}
.faq-accordion .open .accordion-body {
  max-height: 400px;
  padding: 0 20px 18px;
}
.faq-accordion .accordion-answer {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.6;
}
/* Blog Page */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.blog-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
}
.blog-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border-radius: 0;
}
.blog-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.blog-tag {
  background: rgba(124, 58, 237, 0.15);
  color: #A78BFA;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
  align-self: flex-start;
}
.blog-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  margin: 0 0 12px;
}
.blog-meta {
  font-size: 12px;
  color: #64748B;
  display: flex;
  gap: 16px;
  margin-top: auto;
}
.blog-read-more {
  font-size: 13px;
  color: #7C3AED;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid-3 {
    flex-direction: column;
  }
}
/* Social Footer Icons */
.social-icon {
  transition: opacity 0.2s;
  cursor: pointer;
}
.social-icon:hover {
  opacity: 0.75;
}
/* Auth Form Custom Styles */
.auth-form-card {
  padding: 48px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.auth-subtitle {
  font-size: 14px;
  color: #94A3B8;
  margin: 0;
}
.auth-google-btn-wrap {
  margin-bottom: 20px;
}
.auth-google-btn-wrap button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: #64748B;
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-divider span {
  padding: 0 10px;
}
.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-group label {
  font-size: 13px;
  color: white;
  font-weight: 500;
}
.input-group input {
  background: #0D1526;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  color: white;
  font-size: 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.input-group input:focus {
  border-color: #7C3AED;
}
.input-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #94A3B8;
}
.auth-link {
  color: #7C3AED;
  cursor: pointer;
  font-weight: 500;
}
.auth-link:hover {
  text-decoration: underline;
}
.w-full {
  width: 100%;
}
.auth-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 120px 20px 40px;
}
@media (min-width: 900px) {
  .auth-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
  }
}
.auth-hero {
  flex: 1;
  max-width: 500px;
}
.auth-hero-content {
  background: #0B1120;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  padding: 48px;
  text-align: left;
}
.auth-welcome-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #fff;
}
.auth-welcome-desc {
  font-size: 16px;
  color: #94A3B8;
  margin-bottom: 40px;
  line-height: 1.6;
}
.auth-form-container {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}
.auth-form-card.glass-card {
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 420px;
  padding: 0;
}
.auth-quotes {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid #7C3AED;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 32px;
}
.auth-quote {
  font-size: 14px;
  color: #E2E8F0;
  font-style: italic;
  line-height: 1.6;
}
.auth-author {
  margin-top: 12px;
  font-size: 13px;
  color: #94A3B8;
  font-style: normal;
  font-weight: 600;
}
.auth-stats-grid {
  display: flex;
  gap: 32px;
}
.auth-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: #10B981;
  margin-bottom: 4px;
}
.auth-stat-lab {
  font-size: 13px;
  color: #94A3B8;
  font-weight: 500;
}
/* ─── Premium Auth Inputs ─── */
.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.input-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}
.input-group input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}
.input-group input:focus,
.input-group input:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 58, 237, 0.5);
  /* theme-accent */
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}
.input-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* ─── Auth Button Standardization ─── */
.auth-form-card .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  height: 52px;
  /* Fixed height for uniformity */
  transition: all 0.3s ease;
}
.auth-form-card .btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.auth-form-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}
.auth-form-card .btn-primary {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  border: none;
  color: #fff;
}
.auth-form-card .btn-primary:not(:disabled):hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}
.auth-form-card .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* =====================================================================
   Blog Action Menu & Toast System
   ===================================================================== */
.action-menu {
  position: relative;
  display: inline-block;
}
.action-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px;
  min-width: 160px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.15s ease-out;
}
.action-dropdown.open {
  display: block;
}
.action-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-dropdown button:hover {
  background: rgba(124, 58, 237, 0.15);
  color: white;
}
.action-dropdown button.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Toast System */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  font-size: 14px;
  font-weight: 500;
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-left: 4px solid #7C3AED;
}
.toast.success {
  border-left-color: #10B981;
}
.toast.error {
  border-left-color: #EF4444;
}
.toast.warning {
  border-left-color: #F59E0B;
}
.toast.info {
  border-left-color: #3B82F6;
}
@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* =====================================================================
   BLOG SECTION DESIGN SYSTEM
   ===================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 58, 237, 0.1);
}
.blog-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.blog-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.4) 100%);
}
.blog-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog-tag {
  background: rgba(124, 58, 237, 0.1);
  color: #A78BFA;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1rem;
}
.blog-title {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.blog-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.blog-read-more {
  margin-top: auto;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: gap 0.2s;
}
.blog-card:hover .blog-read-more {
  gap: 12px;
  color: #A78BFA;
}
/* Blog Detail View */
.blog-detail-container {
  padding-top: 8rem;
  animation: fadeIn 0.5s ease-out forwards;
}
.blog-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: all 0.2s;
}
.blog-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #A78BFA;
  transform: translateX(-4px);
}
.blog-hero-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.blog-article {
  max-width: 800px;
  margin: 0 auto;
}
.blog-article h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.blog-article h2 {
  font-size: 2rem;
  color: #fff;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}
.blog-article p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #94A3B8;
  margin-bottom: 1.5rem;
}
.blog-article ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.blog-article li {
  font-size: 1.1rem;
  color: #94A3B8;
  margin-bottom: 0.75rem;
}
@media (max-width: 768px) {
  .blog-hero-img {
    height: 250px;
  }

  .blog-article h1 {
    font-size: 2rem;
  }
}
/* ══════════════════════════════════════════════════════════
   LIGHT MODE — Auth Page (hero panel + form)
   All the auth hero classes use hardcoded dark hex values,
   so we need explicit overrides for [data-theme="light"].
   ══════════════════════════════════════════════════════════ */
/* Auth page wrapper */
[data-theme="light"] .auth-layout {
  background: #F1F5F9;
}
/* Left hero card */
[data-theme="light"] .auth-hero-content {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .auth-welcome-title {
  color: #2C1A0E;
}
[data-theme="light"] .auth-welcome-desc {
  color: #475569;
}
[data-theme="light"] .auth-quotes {
  background: rgba(124, 58, 237, 0.04);
  border-left-color: #7C3AED;
}
[data-theme="light"] .auth-quote {
  color: #475569;
}
[data-theme="light"] .auth-author {
  color: #64748B;
}
[data-theme="light"] .auth-stat-val {
  color: #059669;
}
[data-theme="light"] .auth-stat-lab {
  color: #64748B;
}
/* Right form card */
[data-theme="light"] .auth-form-card,
[data-theme="light"] .auth-form-card.glass-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
  padding: 40px !important;
  border-radius: 20px !important;
}
[data-theme="light"] .auth-title {
  background: linear-gradient(to bottom right, #2C1A0E, #374151);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .auth-subtitle {
  color: #475569 !important;
}
[data-theme="light"] .auth-header p {
  color: #475569;
}
/* Form inputs */
[data-theme="light"] .input-group label {
  color: #374151;
}
[data-theme="light"] .input-group input {
  background: #F1F5F9;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1E293B;
}
[data-theme="light"] .input-group input::placeholder {
  color: #94A3B8;
}
[data-theme="light"] .input-group input:focus,
[data-theme="light"] .input-group input:not(:disabled):hover {
  background: #FFFFFF;
  border-color: #7C3AED;
}
/* Divider text */
[data-theme="light"] .auth-divider-text,
[data-theme="light"] .auth-form-card p,
[data-theme="light"] .auth-bottom-link {
  color: #64748B !important;
}
[data-theme="light"] .auth-bottom-link a,
[data-theme="light"] .auth-form-card a {
  color: #7C3AED;
}
/* Google button */
[data-theme="light"] .btn-outline {
  background: #F1F5F9;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1E293B;
}
[data-theme="light"] .btn-outline:hover {
  background: #F1F5F9;
  border-color: rgba(0, 0, 0, 0.20);
}
/* ==========================================
   LIGHT MODE GLOBAL OVERRIDES
   ========================================== */
[data-theme="light"] body {
  background-color: #FAF7F0 !important;
  color: #2C1A0E !important;
}
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: #2C1A0E !important;
}
[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] li,
[data-theme="light"] label {
  color: #5C4A3A;
}
[data-theme="light"] a {
  color: #8B6914;
}
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background-color: #FFFFFF !important;
  border-color: rgba(180, 150, 110, 0.25) !important;
  color: #2C1A0E !important;
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: rgba(92, 74, 58, 0.4) !important;
}
[data-theme="light"] button {
  transition: all 0.2s ease;
}
html[data-theme="light"]::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html[data-theme="light"]::-webkit-scrollbar-track {
  background: transparent;
}
html[data-theme="light"]::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
html[data-theme="light"]::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}
/* ==========================================
   MARKETING SITE OVERRIDES
   ========================================== */
/* NAVBAR */
[data-theme="light"] .navbar,
[data-theme="light"] .nav-container,
[data-theme="light"] header.nav,
[data-theme="light"] .header {
  background: rgba(250, 247, 240, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180, 150, 110, 0.15) !important;
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
[data-theme="light"] .nav-link {
  color: #5C4A3A !important;
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #2C1A0E !important;
}
[data-theme="light"] .nav-link.active {
  border-bottom-color: #C4974A !important;
}
[data-theme="light"] .logo {
  color: #2C1A0E !important;
}
[data-theme="light"] .logo-icon {
  color: #C4974A !important;
}
/* HERO SECTION */
[data-theme="light"] .hero-section,
[data-theme="light"] .hero,
[data-theme="light"] .hero-wrapper {
  background: #FAF7F0 !important;
  position: relative;
}
[data-theme="light"] .hero-title,
[data-theme="light"] .hero h1 {
  color: #2C1A0E !important;
}
[data-theme="light"] .title-accent-violet {
  color: #C4974A !important;
}
[data-theme="light"] .subheading {
  color: #5C4A3A !important;
}
/* BUTTONS */
[data-theme="light"] .btn-primary {
  background: #C4974A !important;
  background: linear-gradient(135deg, #C4974A, #A67C3A) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(196, 151, 74, 0.25) !important;
}
[data-theme="light"] .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 151, 74, 0.35) !important;
  filter: brightness(1.05);
}
[data-theme="light"] .btn-ghost {
  color: #5C4A3A !important;
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(196, 151, 74, 0.08) !important;
  color: #2C1A0E !important;
}
/* FEATURE CARDS */
[data-theme="light"] .feat-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .glass-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(180, 150, 110, 0.15) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .feat-card:hover,
[data-theme="light"] .feature-card:hover {
  border-color: rgba(196, 151, 74, 0.3) !important;
  box-shadow: 0 10px 30px rgba(196, 151, 74, 0.12) !important;
  transform: translateY(-5px);
}
[data-theme="light"] .feat-title,
[data-theme="light"] .feature-title {
  color: #2C1A0E !important;
}
[data-theme="light"] .feat-desc,
[data-theme="light"] .feature-description {
  color: #5C4A3A !important;
}
[data-theme="light"] .feat-icon {
  background: rgba(196, 151, 74, 0.1) !important;
  color: #C4974A !important;
}
/* PRICING */
[data-theme="light"] .pc-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(180, 150, 110, 0.15) !important;
}
[data-theme="light"] .pc-card.popular {
  border-color: #C4974A !important;
  box-shadow: 0 12px 40px rgba(196, 151, 74, 0.15) !important;
}
[data-theme="light"] .pc-header {
  color: #2C1A0E !important;
}
[data-theme="light"] .pc-price {
  color: #2C1A0E !important;
}
[data-theme="light"] .pc-feat {
  color: #5C4A3A !important;
}
[data-theme="light"] .pt-container {
  background: #F5F0E8 !important;
  border: 1px solid rgba(180, 150, 110, 0.1) !important;
}
[data-theme="light"] .pt-btn.active {
  background: #FFFFFF !important;
  color: #C4974A !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}
/* ACCORDION */
[data-theme="light"] .accordion-container {
  background: #FFFFFF !important;
  border: 1px solid rgba(180, 150, 110, 0.15) !important;
}
[data-theme="light"] .accordion-title {
  color: #2C1A0E !important;
}
[data-theme="light"] .accordion-answer {
  color: #5C4A3A !important;
}
[data-theme="light"] .accordion-icon {
  color: #C4974A !important;
}
/* BLOG */
[data-theme="light"] .blog-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(180, 150, 110, 0.15) !important;
}
[data-theme="light"] .blog-title {
  color: #2C1A0E !important;
}
[data-theme="light"] .blog-tag {
  background: rgba(196, 151, 74, 0.1) !important;
  color: #8B6914 !important;
}
/* FOOTER */
[data-theme="light"] .footer {
  background: #FAF7F0 !important;
  border-top: 1px solid rgba(180, 150, 110, 0.15) !important;
}
[data-theme="light"] .footer h4 {
  color: #2C1A0E !important;
}
[data-theme="light"] .footer-links a {
  color: #5C4A3A !important;
}
[data-theme="light"] .footer-links a:hover {
  color: #C4974A !important;
}
/* High fidelity Light mode overrides for structural elements */
[data-theme="light"] {
  --color-bg-base: #FFFFFF !important;
  --color-bg-panel: #F8F9FA !important;
  --color-bg-card: #FFFFFF !important;
  --text-primary: var(--bg-elevated) !important;
  --text-secondary: #475569 !important;
  --text-subtle: #64748B !important;
  --border-subtle: rgba(0, 0, 0, 0.1) !important;
  --color-primary-400: #C4974A !important;
  --color-primary-500: #8B7355 !important;
}
[data-theme="light"] body {
  background-color: #FAFAFA !important;
  color: var(--bg-elevated) !important;
}
/* Light Theme Card Borders and Text Colors */
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] select {
  background-color: #FFFFFF !important;
  border-color: rgba(0,0,0,0.15) !important;
  color: var(--bg-elevated) !important;
}
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  border-color: #C4974A !important;
  box-shadow: 0 0 0 2px rgba(196, 151, 74, 0.2) !important;
}
[data-theme="light"] .pc-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(139, 115, 85, 0.3) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}
[data-theme="light"] .pc-card.popular {
  background: linear-gradient(135deg, #FDFDFD, #F9F6F0) !important;
  border: 1px solid rgba(196, 151, 74, 0.8) !important;
}
[data-theme="light"] .pc-most-pop {
  background: linear-gradient(135deg, #C4974A, #8B7355) !important;
  color: #FFFFFF !important;
}
[data-theme="light"] .pc-header,
[data-theme="light"] .pc-price {
  color: #2C1A0E !important;
}
[data-theme="light"] .footer-bottom {
  border-top: 1px solid rgba(180, 150, 110, 0.1) !important;
  color: #8B7355 !important;
}
/* MISC */
[data-theme="light"] .badge {
  background: rgba(196, 151, 74, 0.08) !important;
  color: #C4974A !important;
  border: 1px solid rgba(196, 151, 74, 0.2) !important;
}
[data-theme="light"] .fp-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(180, 150, 110, 0.15) !important;
}
[data-theme="light"] .fp-title {
  color: #2C1A0E !important;
}
[data-theme="light"] .fp-desc {
  color: #5C4A3A !important;
}
/* ==========================================
   DASHBOARD OVERRIDES
   ========================================== */
/* DASHBOARD WRAPPER */
[data-theme="light"] .dashboard,
[data-theme="light"] .dashboard-container,
[data-theme="light"] .app-layout {
  background: #FAF7F0 !important;
}
/* SIDEBAR */
[data-theme="light"] .sidebar,
[data-theme="light"] .dashboard-sidebar {
  background: #FFFFFF !important;
  border-right: 1px solid rgba(180, 150, 110, 0.15) !important;
  box-shadow: 2px 0 12px rgba(0,0,0,0.04) !important;
}
[data-theme="light"] .sidebar-section-title,
[data-theme="light"] .nav-section-label {
  color: rgba(92, 74, 58, 0.55) !important;
  letter-spacing: 0.5px;
}
[data-theme="light"] .sidebar-item,
[data-theme="light"] .sidebar-nav-item,
[data-theme="light"] .sidebar-link {
  color: #5C4A3A !important;
}
[data-theme="light"] .sidebar-item:hover,
[data-theme="light"] .sidebar-nav-item:hover {
  background: rgba(196, 151, 74, 0.08) !important;
  color: #2C1A0E !important;
}
[data-theme="light"] .sidebar-item.active,
[data-theme="light"] .sidebar-nav-item.active,
[data-theme="light"] .sidebar-active {
  background: rgba(196, 151, 74, 0.12) !important;
  color: #8B6914 !important;
}
[data-theme="light"] .sidebar-icon {
  opacity: 0.7;
}
/* PLAN USAGE */
[data-theme="light"] .plan-usage-card,
[data-theme="light"] .usage-section {
  background: #F5F0E8 !important;
  border-color: rgba(180, 150, 110, 0.2) !important;
}
[data-theme="light"] .usage-bar-track {
  background: rgba(180, 150, 110, 0.2) !important;
}
[data-theme="light"] .usage-bar-fill {
  background: linear-gradient(90deg, #C4974A, #A67C3A) !important;
}
[data-theme="light"] .upgrade-btn {
  background: rgba(196, 151, 74, 0.1) !important;
  border-color: rgba(196, 151, 74, 0.25) !important;
  color: #8B6914 !important;
}
/* MAIN CONTENT AREA */
[data-theme="light"] .main-content,
[data-theme="light"] .dashboard-main {
  background: #FAF7F0 !important;
}
/* DASHBOARD HEADER */
[data-theme="light"] .dashboard-header,
[data-theme="light"] .overview-header {
  background: transparent !important;
}
[data-theme="light"] .greeting-text,
[data-theme="light"] .dashboard-greeting {
  color: #2C1A0E !important;
}
[data-theme="light"] .greeting-subtitle {
  color: #5C4A3A !important;
}
/* ACTION BUTTONS IN HEADER */
[data-theme="light"] .header-btn-primary,
[data-theme="light"] .new-blog-btn {
  background: linear-gradient(135deg, #C4974A, #A67C3A) !important;
  color: #FAF7F0 !important;
}
[data-theme="light"] .header-btn-secondary,
[data-theme="light"] .scan-btn {
  border-color: rgba(180, 150, 110, 0.3) !important;
  color: #5C4A3A !important;
  background: transparent !important;
}
[data-theme="light"] .header-btn-ghost,
[data-theme="light"] .reports-btn {
  color: #5C4A3A !important;
}
/* KPI STAT CARDS */
[data-theme="light"] .stat-card,
[data-theme="light"] .kpi-card,
[data-theme="light"] .metric-card {
  background: #FFFFFF !important;
  border-color: rgba(180, 150, 110, 0.15) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05) !important;
}
[data-theme="light"] .stat-card-label,
[data-theme="light"] .kpi-label {
  color: rgba(92, 74, 58, 0.6) !important;
}
[data-theme="light"] .stat-card-value,
[data-theme="light"] .kpi-value {
  color: #2C1A0E !important;
}
[data-theme="light"] .kpi-value.accent {
  color: #8B6914 !important;
}
/* BLOGS TABLE */
[data-theme="light"] .blogs-table-wrapper,
[data-theme="light"] .table-container {
  background: #FFFFFF !important;
  border-color: rgba(180, 150, 110, 0.15) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05) !important;
}
[data-theme="light"] .table-header-row,
[data-theme="light"] thead tr {
  background: #F5F0E8 !important;
}
[data-theme="light"] .table-header-cell,
[data-theme="light"] thead th {
  color: #5C4A3A !important;
}
[data-theme="light"] .table-row,
[data-theme="light"] tbody tr {
  border-top-color: rgba(180, 150, 110, 0.1) !important;
}
[data-theme="light"] .table-row:hover,
[data-theme="light"] tbody tr:hover {
  background: rgba(196, 151, 74, 0.04) !important;
}
[data-theme="light"] .table-cell,
[data-theme="light"] tbody td {
  color: #5C4A3A !important;
}
[data-theme="light"] .blog-title-cell {
  color: #2C1A0E !important;
}
/* STATUS BADGES */
[data-theme="light"] .status-published {
  background: rgba(74, 124, 89, 0.1) !important;
  color: #4A7C59 !important;
}
[data-theme="light"] .status-scheduled {
  background: rgba(196, 151, 74, 0.1) !important;
  color: #8B6914 !important;
}
[data-theme="light"] .status-draft {
  background: rgba(92, 74, 58, 0.08) !important;
  color: #5C4A3A !important;
}
/* ACTION DROPDOWN */
[data-theme="light"] .action-dropdown,
[data-theme="light"] .row-actions-menu {
  background: #FFFFFF !important;
  border-color: rgba(180, 150, 110, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .action-dropdown button,
[data-theme="light"] .row-action-item {
  color: #5C4A3A !important;
}
[data-theme="light"] .action-dropdown button:hover,
[data-theme="light"] .row-action-item:hover {
  background: rgba(196, 151, 74, 0.08) !important;
  color: #2C1A0E !important;
}
[data-theme="light"] .action-dropdown button.danger,
[data-theme="light"] .row-action-item.danger:hover {
  background: rgba(220, 38, 38, 0.06) !important;
  color: #DC2626 !important;
}
/* CONTENT CALENDAR */
[data-theme="light"] .calendar-container,
[data-theme="light"] .content-calendar {
  background: #FFFFFF !important;
  border-color: rgba(180, 150, 110, 0.15) !important;
}
[data-theme="light"] .calendar-header {
  color: #2C1A0E !important;
}
[data-theme="light"] .calendar-day {
  color: #5C4A3A !important;
}
[data-theme="light"] .calendar-day.today {
  background: rgba(196, 151, 74, 0.15) !important;
  color: #8B6914 !important;
}
/* SERP SCANNER */
[data-theme="light"] .serp-card,
[data-theme="light"] .scanner-card {
  background: #FFFFFF !important;
  border-color: rgba(180, 150, 110, 0.15) !important;
}
[data-theme="light"] .serp-results-table {
  background: #FFFFFF !important;
}
/* SEO SCORER */
[data-theme="light"] .seo-scorer-card {
  background: #FFFFFF !important;
  border-color: rgba(180, 150, 110, 0.15) !important;
}
[data-theme="light"] .metric-row {
  background: #F5F0E8 !important;
}
[data-theme="light"] .metric-bar-track {
  background: #E8E0D0 !important;
}
/* ROI DASHBOARD */
[data-theme="light"] .roi-card,
[data-theme="light"] .report-card {
  background: #FFFFFF !important;
  border-color: rgba(180, 150, 110, 0.15) !important;
}
[data-theme="light"] .roi-report-content {
  color: #5C4A3A !important;
}
/* AI ACTIVE BADGE */
[data-theme="light"] .ai-active-badge {
  background: rgba(74, 124, 89, 0.08) !important;
  border-color: rgba(74, 124, 89, 0.15) !important;
}
/* BLOG VIEW MODAL */
[data-theme="light"] .modal-overlay {
  background: rgba(0, 0, 0, 0.5) !important;
}
[data-theme="light"] .modal-card,
[data-theme="light"] .blog-modal {
  background: #FFFFFF !important;
  border-color: rgba(196, 151, 74, 0.2) !important;
}
/* ==========================================
   BLOG EDITOR OVERRIDES
   ========================================== */
/* BLOG EDITOR WRAPPER */
[data-theme="light"] .blog-editor,
[data-theme="light"] .editor-container {
  background: #FAF7F0 !important;
}
/* WIZARD PROGRESS STEPS */
[data-theme="light"] .wizard-step,
[data-theme="light"] .progress-step {
  color: #5C4A3A !important;
}
[data-theme="light"] .wizard-step.active,
[data-theme="light"] .progress-step.active {
  color: #8B6914 !important;
}
[data-theme="light"] .wizard-connector,
[data-theme="light"] .step-connector {
  background: rgba(180, 150, 110, 0.3) !important;
}
/* EDITOR TITLE */
[data-theme="light"] .editor-title {
  color: #8B6914 !important;
}
[data-theme="light"] .editor-subtitle {
  color: #5C4A3A !important;
}
/* FORM LABELS */
[data-theme="light"] .form-label,
[data-theme="light"] .field-label {
  color: #2C1A0E !important;
  font-weight: 600;
}
[data-theme="light"] .field-hint,
[data-theme="light"] .form-hint {
  color: #5C4A3A !important;
}
/* KEYWORD INPUT */
[data-theme="light"] .keyword-input,
[data-theme="light"] .target-keyword-input {
  background: #FFFFFF !important;
  border-color: rgba(180, 150, 110, 0.3) !important;
  color: #2C1A0E !important;
}
[data-theme="light"] .keyword-input:focus,
[data-theme="light"] .target-keyword-input:focus {
  border-color: #C4974A !important;
  box-shadow: 0 0 0 3px rgba(196, 151, 74, 0.1) !important;
}
[data-theme="light"] .char-count {
  color: #8B7355 !important;
}
/* TONE SELECTOR CARDS */
[data-theme="light"] .tone-card,
[data-theme="light"] .tone-option {
  background: #FFFFFF !important;
  border-color: rgba(180, 150, 110, 0.2) !important;
}
[data-theme="light"] .tone-card:hover,
[data-theme="light"] .tone-option:hover {
  border-color: rgba(196, 151, 74, 0.4) !important;
  background: rgba(196, 151, 74, 0.04) !important;
}
[data-theme="light"] .tone-card.selected,
[data-theme="light"] .tone-option.active {
  border-color: #C4974A !important;
  background: rgba(196, 151, 74, 0.08) !important;
}
[data-theme="light"] .tone-card-title {
  color: #2C1A0E !important;
}
[data-theme="light"] .tone-card-desc {
  color: #5C4A3A !important;
}
/* WORD COUNT SLIDER */
[data-theme="light"] .word-count-label {
  color: #2C1A0E !important;
}
[data-theme="light"] .word-count-value {
  color: #8B6914 !important;
}
[data-theme="light"] .range-slider {
  accent-color: #C4974A !important;
}
[data-theme="light"] .range-labels span {
  color: #5C4A3A !important;
}
[data-theme="light"] input.be-range {
  background: linear-gradient(to right,
      #C4974A 0%,
      #C4974A calc((var(--val, 1500) - 800) / (3000 - 800) * 100%),
      #E2E8F0 calc((var(--val, 1500) - 800) / (3000 - 800) * 100%),
      #E2E8F0 100%) !important;
  border-color: rgba(180, 150, 110, 0.25) !important;
}
[data-theme="light"] input.be-range::-webkit-slider-thumb {
  background: #FFFFFF !important;
  border: 2px solid #C4974A !important;
}
/* GEO TARGET */
[data-theme="light"] .geo-label {
  color: #8B6914 !important;
}
/* GENERATE BUTTON */
[data-theme="light"] .generate-btn,
[data-theme="light"] .generate-blog-btn {
  background: linear-gradient(135deg, #C4974A, #A67C3A) !important;
  color: #FAF7F0 !important;
  box-shadow: 0 4px 16px rgba(196, 151, 74, 0.3) !important;
}
/* PREVIEW PANEL - right side */
[data-theme="light"] .preview-panel,
[data-theme="light"] .blog-preview {
  background: #FFFFFF !important;
  border-color: rgba(180, 150, 110, 0.15) !important;
}
[data-theme="light"] .preview-placeholder {
  color: #5C4A3A !important;
}
[data-theme="light"] .preview-checklist li {
  color: #5C4A3A !important;
}
[data-theme="light"] .preview-checklist .check {
  color: #4A7C59 !important;
}
/* GENERATING STATE */
[data-theme="light"] .generating-step {
  background: #F5F0E8 !important;
  border-color: rgba(180, 150, 110, 0.2) !important;
}
[data-theme="light"] .progress-bar-track {
  background: rgba(180, 150, 110, 0.2) !important;
}
[data-theme="light"] .progress-bar-fill {
  background: linear-gradient(90deg, #C4974A, #A67C3A) !important;
}
/* REVIEW STAGE - output */
[data-theme="light"] .output-card,
[data-theme="light"] .blog-output {
  background: #FFFFFF !important;
  border-color: rgba(180, 150, 110, 0.15) !important;
}
[data-theme="light"] .output-title,
[data-theme="light"] .blog-output-title {
  color: #2C1A0E !important;
}
[data-theme="light"] .output-meta,
[data-theme="light"] .blog-output-meta {
  background: #F5F0E8 !important;
  color: #5C4A3A !important;
}
[data-theme="light"] .output-body,
[data-theme="light"] .blog-output-body {
  color: #5C4A3A !important;
}
[data-theme="light"] .seo-metric-chip {
  background: #F5F0E8 !important;
  border-color: rgba(180, 150, 110, 0.2) !important;
  color: #8B6914 !important;
}
/* OUTPUT ACTION BUTTONS */
[data-theme="light"] .output-action-copy {
  background: #F5F0E8 !important;
  border-color: rgba(180, 150, 110, 0.2) !important;
  color: #5C4A3A !important;
}
[data-theme="light"] .output-action-save {
  background: rgba(196, 151, 74, 0.1) !important;
  border-color: rgba(196, 151, 74, 0.3) !important;
  color: #8B6914 !important;
}
[data-theme="light"] .output-action-publish {
  background: linear-gradient(135deg, #C4974A, #A67C3A) !important;
  color: #FAF7F0 !important;
}
/* KEYBOARD SHORTCUT HINTS */
[data-theme="light"] .kbd-hint {
  background: #F5F0E8 !important;
  border-color: rgba(180, 150, 110, 0.25) !important;
  color: #5C4A3A !important;
}

/* =====================================================================
   interactions.css — Micro-interaction & motion layer for BlogzzUP AI
   Layered on top of tokens.css. Never blocks interaction, always
   gracefully degraded via prefers-reduced-motion.

   Patterns covered:
   1.  Global baseline: will-change, cursor, selection
   2.  Button: press-sinkdown, shimmer highlight, loading ripple
   3.  Links: underline slide, colour shift
   4.  Cards: lift-on-hover, border-glow on active
   5.  Accordion: height-transition, icon rotate
   6.  Tabs / pills: active-indicator slide
   7.  Page / section transitions: fade+slide-up enter
   8.  Modal / drawer: scale-in + backdrop fade
   9.  Form focus: border glow, lable float-like feel
   10. Skeleton shimmer loader (class-based)
   11. Nav items: active stripe slide
   12. Tooltip reveal
   13. prefers-reduced-motion: kill all animations
   ===================================================================== */

/* ─────────────────────────────────────────────────
   1. GLOBAL BASELINE
   ───────────────────────────────────────────────── */

*,
*::before,
*::after {
  /* Smooth transition defaults — only for properties we animate */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text selection highlight */
::selection {
  background: rgba(124, 58, 237, 0.25);
  color: var(--text-primary, #fff);
}

/* Smooth scrolling for anchor / section jumps */
html {
  scroll-behavior: smooth;
}

/* ─────────────────────────────────────────────────
   2. BUTTONS
   ───────────────────────────────────────────────── */

/* All buttons get a subtle press-down on :active */
button,
.btn,
[role="button"] {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease,
    transform 100ms ease;
}

button:active:not(:disabled),
.btn:active:not(:disabled),
[role="button"]:active:not(:disabled) {
  transform: translateY(1px) scale(0.988);
}

/* btn-primary shimmer on hover */
.btn-primary::after,
.btn.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 30%,
      rgba(255, 255, 255, 0.12) 50%,
      transparent 70%);
  transform: translateX(-100%);
  transition: transform 0s;
  /* reset; shimmer fires on hover */
}

.btn-primary:hover:not(:disabled)::after,
.btn.btn-primary:hover:not(:disabled)::after {
  transform: translateX(100%);
  transition: transform 450ms ease;
}

/* btn-primary hover: slight lift + stronger glow */
.btn-primary:hover:not(:disabled),
.btn.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

/* btn-outline hover: fill from bottom */
.btn-outline {
  transition:
    color 150ms ease,
    background-color 200ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 100ms ease;
}

.btn-outline:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.08);
}

/* btn-ghost hover: backdrop blush */
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
}

/* Disabled state */
button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* Focus-visible ring — universal */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.55);
  border-radius: inherit;
}

/* ─────────────────────────────────────────────────
   3. LINKS
   ───────────────────────────────────────────────── */

a {
  transition: color 150ms ease, opacity 150ms ease;
}

/* Footer / nav links: underline slide */
.footer-col a,
.nav-a,
.site-nav a {
  position: relative;
  text-decoration: none;
}

.footer-col a::after,
.nav-a::after,
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 200ms ease;
}

.footer-col a:hover::after,
.nav-a:hover::after,
.site-nav a:hover::after {
  width: 100%;
}

/* Social icons hover pop */
.social-icon {
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease !important;
}

.social-icon:hover {
  transform: translateY(-2px) scale(1.08) !important;
  opacity: 0.9;
}

/* ─────────────────────────────────────────────────
   4. CARDS — lift on hover
   ───────────────────────────────────────────────── */

/* Feature cards, pricing cards, stat dash cards */
.feat-card,
.pc-card,
.stat-dash-card,
.dash-card,
.be-tone-card,
.be-history-item {
  transition:
    transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 200ms ease,
    border-color 150ms ease;
}

.feat-card:hover,
.be-history-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(124, 58, 237, 0.15);
}

.pc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(124, 58, 237, 0.2);
}

/* Popular pricing card — extra glow */
.pc-card.popular:hover {
  box-shadow:
    0 16px 48px rgba(124, 58, 237, 0.35),
    0 0 0 1px rgba(124, 58, 237, 0.4);
}

/* Stat cards */
.stat-dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ─────────────────────────────────────────────────
   4a. 3D STEP CARDS (How it Works)
   ───────────────────────────────────────────────── */

.timeline-grid {
  perspective: 1200px;
}

.step-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.step-card:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-2deg);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
}

.demo-visual-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  transform: translateZ(20px);
  will-change: transform;
}

.step-card:hover .demo-visual-card {
  transform: translateZ(40px) translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Float animation for the visual elements */
.cms-connection-demo,
.pipeline-demo,
.graph-demo {
  animation: float-3d 6s ease-in-out infinite;
}

@keyframes float-3d {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Enhanced Pipeline "Running" Feel */
.pipeline-item {
  animation: pipeline-running 6s infinite;
  border-left: 3px solid transparent;
}

@keyframes pipeline-running {

  0%,
  5% {
    opacity: 0;
    transform: translateX(-15px) translateZ(0);
    border-left-color: transparent;
  }

  10% {
    opacity: 1;
    transform: translateX(0) translateZ(10px);
    border-left-color: var(--color-primary-400);
  }

  85% {
    opacity: 1;
    transform: translateX(0) translateZ(10px);
    border-left-color: var(--color-primary-400);
  }

  95%,
  100% {
    opacity: 0;
    transform: translateX(15px) translateZ(0);
    border-left-color: transparent;
  }
}

/* Graph demo 3D depth */
.growth-line {
  filter: drop-shadow(0 5px 15px rgba(124, 58, 237, 0.3));
  transform: rotateX(10deg);
}

/* Mock UI elements — subtle highlight on hover */
.mock-comp-btn,
.mock-cms-pill {
  transition: background 150ms ease, transform 100ms ease;
}

.mock-comp-btn:hover,
.mock-cms-pill:hover {
  transform: scale(1.03);
}

/* Blog table rows */
tr[onmouseover] {
  transition: background 150ms ease !important;
}

/* ─────────────────────────────────────────────────
   5. ACCORDION
   ───────────────────────────────────────────────── */

.accordion-container {
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
  cursor: pointer;
}

.accordion-container:hover {
  border-color: rgba(124, 58, 237, 0.3) !important;
  background: rgba(124, 58, 237, 0.04) !important;
}

/* Rotate the chevron/arrow icon on open */
.accordion-icon {
  display: inline-flex;
  transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.accordion-container.open .accordion-icon {
  transform: rotate(180deg);
}

/* Smooth height transition for accordion body */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms ease;
  overflow: hidden;
}

.accordion-container.open .accordion-body {
  grid-template-rows: 1fr;
}

/* Inner wrapper needed for grid-based height trick */
.accordion-body>* {
  overflow: hidden;
  min-height: 0;
}

/* ─────────────────────────────────────────────────
   6. TABS / PILLS
   ───────────────────────────────────────────────── */

.feature-tab-btn {
  position: relative;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

/* Hover state */
.feature-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
}

/* Active underline bar that animates in */
.feature-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, #7C3AED, #06B6D4);
  border-radius: 1px;
  animation: tab-bar-in 200ms ease forwards;
}

@keyframes tab-bar-in {
  from {
    transform: scaleX(0);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Pricing toggle buttons */
.pt-btn {
  transition: background 150ms ease, color 150ms ease, transform 100ms ease;
}

.pt-btn:active {
  transform: scale(0.96);
}

/* Tab panel content: fade + slide-up on appear */
.tab-panel-container {
  animation: panel-enter 230ms ease both;
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────
   7. PAGE / SECTION TRANSITIONS
   ───────────────────────────────────────────────── */

/*
  .page-section visibility is toggled via JS `display` manipulation.
  We hook on a CSS class `.page-entering` that JS adds momentarily.
  Since modifying App.jsx is out of scope, we instead apply an
  animation to sections when they switch from display:none to block.
  We use @starting-style (Chrome 117+) with a graceful fallback.
*/

.page-section {
  transition: opacity 200ms ease;
}

/* @starting-style is a modern trick to animate from display:none */
@supports (transition-behavior: allow-discrete) {

  .page-section[style*="display: block"],
  .page-section[style*="display:block"] {
    animation: page-enter 260ms ease both;
    transition-behavior: allow-discrete;
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dashboard section transitions — already have dash-section class */
.dash-section {
  animation: none;
  /* reset — enter animation applied via JS class */
}

.dash-section.section-entering {
  animation: page-enter 240ms ease both;
}

/* ─────────────────────────────────────────────────
   8. MODALS / DRAWERS
   ───────────────────────────────────────────────── */

/* Blog modal overlay — already uses fixed positioning. 
   Add fade animation when it appears */
div[style*="position: fixed"][style*="zIndex: 1000"],
div[style*="position: fixed"][style*="z-index: 1000"] {
  animation: modal-backdrop-in 200ms ease both;
}

@keyframes modal-backdrop-in {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

/* History drawer (already animated via be-history-panel) — ensure backdrop also fades */
.be-history-overlay {
  animation: modal-backdrop-in 200ms ease both;
}

/* Modal close button: rotate on hover */
button[aria-label="Close"],
button[onClick*="setModal"],
.be-icon-btn {
  transition: color 150ms ease, background 150ms ease, transform 150ms ease !important;
}

button[aria-label="Close"]:hover,
.be-icon-btn:hover {
  transform: rotate(8deg) scale(1.1) !important;
}

/* ─────────────────────────────────────────────────
   9. FORM ELEMENTS
   ───────────────────────────────────────────────── */

.form-input,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="range"],
select,
textarea {
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

/* Range track fill — visual progress colour (already in BlogEditor.css;
   here we just ensure the thumb animates smoothly everywhere) */
input[type="range"]::-webkit-slider-thumb {
  transition: transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 150ms ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Textarea resize gripper — smooth feel */
textarea {
  resize: vertical;
  transition: border-color 150ms ease, box-shadow 150ms ease, height 150ms ease;
}

/* ─────────────────────────────────────────────────
   10. SKELETON SHIMMER LOADER
   ───────────────────────────────────────────────── */

/* Usage: <div class="skeleton"></div> or <div class="skeleton-text"></div> */
.skeleton,
.skeleton-text,
.skeleton-avatar,
.skeleton-btn {
  background: linear-gradient(90deg,
      var(--bg-elevated, #141b2d) 0%,
      rgba(255, 255, 255, 0.05) 40%,
      var(--bg-elevated, #141b2d) 80%);
  background-size: 300% 100%;
  border-radius: var(--radius-md, 8px);
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

.skeleton-text {
  height: 14px;
  border-radius: 4px;
}

.skeleton-avatar {
  border-radius: 50%;
}

.skeleton-btn {
  height: 40px;
  border-radius: var(--radius-xl, 12px);
}

/* Skeleton line groups — useful for text blocks */
.skeleton-lines .skeleton-text+.skeleton-text {
  margin-top: 8px;
}

.skeleton-lines .skeleton-text:last-child {
  width: 65%;
}

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

  100% {
    background-position: -200% 0;
  }
}

/* ─────────────────────────────────────────────────
   11. NAV ITEMS — sidebar
   ───────────────────────────────────────────────── */

.nav-item {
  transition:
    background 150ms ease,
    color 150ms ease,
    padding-left 150ms ease;
}

/* Sidebar active item: compact left stripe already handled in Dashboard.css,
   here we add a glow burst when newly activated */
.nav-item.active {
  animation: nav-activate 300ms ease both;
}

@keyframes nav-activate {
  0% {
    box-shadow: inset 3px 0 0 transparent;
  }

  40% {
    box-shadow: inset 3px 0 0 rgba(124, 58, 237, 0.9);
  }

  100% {
    box-shadow: inset 3px 0 0 rgba(124, 58, 237, 0.6);
  }
}

/* Nav hover: subtle indent */
.nav-item:hover:not(.active) {
  padding-left: calc(var(--space-4, 16px) + 4px);
}

/* ─────────────────────────────────────────────────
   12. TOOLTIP REVEAL
   ───────────────────────────────────────────────── */

/* Lightweight CSS-only tooltip via data-tip attribute */
[data-tip] {
  position: relative;
}

[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-elevated, #1e293b);
  color: var(--text-secondary, #e2e8f0);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 100;
}

[data-tip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────────
   13. BACK-TO-TOP BUTTON
   ───────────────────────────────────────────────── */

.back-to-top {
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease !important;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5) !important;
}

/* ─────────────────────────────────────────────────
   14. HERO & LANDING SECTION ELEMENTS
   ───────────────────────────────────────────────── */

/* Hero CTA buttons group: stagger children */
.hero-cta>*:nth-child(1) {
  animation-delay: 0ms;
}

.hero-cta>*:nth-child(2) {
  animation-delay: 80ms;
}

/* Stats / trust bar: subtle entrance */
.stats-bar .stat-item,
.trust-row>* {
  animation: fade-up-sm 400ms ease both;
}

.stats-bar .stat-item:nth-child(1) {
  animation-delay: 100ms;
}

.stats-bar .stat-item:nth-child(2) {
  animation-delay: 180ms;
}

.stats-bar .stat-item:nth-child(3) {
  animation-delay: 260ms;
}

.stats-bar .stat-item:nth-child(4) {
  animation-delay: 340ms;
}

@keyframes fade-up-sm {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA pricing cards — pop in sequence */
.pricing-grid-3 .pc-card {
  animation: fade-up-sm 350ms ease both;
}

.pricing-grid-3 .pc-card:nth-child(1) {
  animation-delay: 0ms;
}

.pricing-grid-3 .pc-card:nth-child(2) {
  animation-delay: 80ms;
}

.pricing-grid-3 .pc-card:nth-child(3) {
  animation-delay: 160ms;
}

/* ─────────────────────────────────────────────────
   15. CONTENT TABLE ROWS (Dashboard)
   ───────────────────────────────────────────────── */

.dash-table tbody tr {
  transition: background 120ms ease, box-shadow 120ms ease;
}

/* ─────────────────────────────────────────────────
   16. COMPARISON TABLE ROWS
   ───────────────────────────────────────────────── */

.comp-table tbody tr {
  transition: background 120ms ease;
}

.comp-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.04);
}

/* ─────────────────────────────────────────────────
   17. COMMAND PALETTE
   ───────────────────────────────────────────────── */

/* If a .command-palette or .cmd-palette class exists */
.command-palette,
.cmd-palette,
[role="dialog"] {
  animation: modal-scale-in 200ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ─────────────────────────────────────────────────
   18. SECTION ENTRY (Intersection Observer friendly)
   ───────────────────────────────────────────────── */

/* Elements with .reveal class will be animated when .visible is added by JS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────
   19. prefers-reduced-motion — override
       Respects user OS accessibility setting.
       Collapses all durations to near-zero.
   ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Skeleton: replace shimmer with static bg */
  .skeleton,
  .skeleton-text,
  .skeleton-avatar,
  .skeleton-btn {
    background: var(--bg-elevated, #141b2d) !important;
    animation: none !important;
  }

  /* Remove all transforms to avoid jarring jumps */
  .btn-primary:hover:not(:disabled),
  .feat-card:hover,
  .pc-card:hover,
  .stat-dash-card:hover,
  .back-to-top:hover {
    transform: none !important;
  }

  /* Page / tab enter animations */
  .tab-panel-container,
  .page-section[style*="display: block"],
  .dash-section.section-entering,
  .command-palette,
  .cmd-palette,
  [role="dialog"],
  .pricing-grid-3 .pc-card,
  .stats-bar .stat-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}/* =====================================================================
   Dashboard.css — BlogzzUP AI App Shell
   All values reference tokens from tokens.css
   ===================================================================== */

/* ─── Layout ─── */
.dashboard-layout {
  display: flex;
  height: 100vh;
  width: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow: hidden;
  gap: var(--space-4);
  padding-right: var(--space-4);
  /* Add some space on the right edge too */
}

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
  transition: width var(--duration-slow) var(--ease-in-out);
  box-shadow: var(--shadow-sidebar);
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.logo-text {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

/* Sidebar Search */
.sidebar-search {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-search .search-input-wrapper .form-input {
  background: var(--bg-elevated);
  border-color: var(--border-subtle);
  height: 36px;
  padding: 0 var(--space-3) 0 calc(var(--space-3) + 18px + var(--space-2));
  font-size: var(--text-xs);
  border-radius: var(--radius-lg);
}

.sidebar-search .search-input-wrapper .form-input:focus {
  border-color: var(--color-primary-600);
  box-shadow: var(--focus-ring);
}

/* User Info */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-colors);
  border-radius: 0;
}

.sidebar-user:hover {
  background: var(--border-subtle);
}

.sidebar-user:focus-visible {
  outline: none;
  box-shadow: inset var(--focus-ring);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid var(--border-default);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-name {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-plan {
  font-size: 11px;
  color: var(--color-secondary-500);
  font-weight: var(--font-medium);
}

/* Navigation */
.sidebar-nav {
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  flex-grow: 1;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-subtle);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-1-5);
  padding-left: var(--space-3);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  padding: var(--space-2-5) var(--space-3);
  border-radius: var(--radius-lg);
  transition: var(--transition-colors);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  white-space: nowrap;
}

.nav-item:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.nav-item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.nav-item.active {
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary-300);
  border-color: rgba(124, 58, 237, 0.2);
  font-weight: var(--font-semibold);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--color-primary-500);
}

.nav-item-badge {
  margin-left: auto;
  background: rgba(124, 58, 237, 0.15);
  color: var(--color-primary-300);
  font-size: 10px;
  font-weight: var(--font-bold);
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: var(--space-4) var(--space-4);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* Upgrade card */
.upgrade-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-3);
}

.upgrade-card h5 {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.upgrade-card p {
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
}

.usage-bar {
  height: 4px;
  background: var(--border-default);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.usage-fill {
  height: 100%;
  background: var(--brand-gradient);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-subtle);
  background: transparent;
  border: none;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  width: 100%;
  border-radius: var(--radius-lg);
  transition: var(--transition-colors);
  font-family: var(--font-sans);
}

.logout-btn:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.logout-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ─── Main Content ─── */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg-surface);
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
  border-left: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-card);
}

/* Grid background pattern */
.main-content::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--border-default) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-default) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}

/* Section wrapper */
.dash-section {
  position: relative;
  z-index: 1;
  flex: 1;
  animation: fade-up var(--duration-slow) var(--ease-out);
}

/* ─── Topbar ─── */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}

.header-text h1 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  letter-spacing: var(--tracking-tight);
  /* Override h1 gradient from index.css for dashboard */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.header-text p {
  color: var(--text-subtle);
  font-size: var(--text-sm);
}

.header-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ─── Stats Row ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

@media (max-width: 1200px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

.stat-dash-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-5) var(--space-6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  transition: var(--transition-spring);
  position: relative;
  overflow: hidden;
}

.stat-dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
}

.stat-dash-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: var(--shadow-card-hover);
}

.stat-dash-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary-400);
}

.stat-title {
  color: var(--text-subtle);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

.stat-val {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  line-height: var(--leading-tight);
}

.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  margin-top: var(--space-1);
}

.stat-delta-up {
  color: var(--color-success-400);
}

.stat-delta-down {
  color: var(--color-danger-400);
}

/* Token colors for stat values */
.text-cyan {
  color: var(--color-secondary-400);
}

.text-green {
  color: var(--color-success-400);
}

.text-violet {
  color: var(--color-primary-400);
}

.text-amber {
  color: var(--color-warning-400);
}

.text-sm {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.text-muted {
  color: var(--text-subtle);
}

.text-white {
  color: var(--text-primary);
}

.font-medium {
  font-weight: var(--font-medium);
}

/* ─── Dashboard Grid ─── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Panel Components ─── */
.content-table-panel,
.calendar-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.08);
}

.panel-header h3 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.view-all {
  font-size: var(--text-xs);
  color: var(--color-primary-400);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: color var(--duration-fast);
}

.view-all:hover {
  color: var(--color-primary-300);
}

.view-all:focus-visible {
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
  outline: none;
}

/* ─── Table ─── */
.table-responsive {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.title-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-table th {
  text-align: left;
  padding: var(--space-3) var(--space-5);
  color: var(--text-subtle);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-weight: var(--font-bold);
  border-bottom: 1px solid var(--border-subtle);
}

.dash-table td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.dash-table tbody tr {
  transition: background var(--duration-fast) var(--ease-out);
}

.dash-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.04);
}

.dash-table tbody tr:last-child td {
  border-bottom: none;
}

/* Score badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: var(--font-bold);
  color: var(--text-secondary);
}

[data-theme="light"] .score-badge {
  color: #1E293B !important;
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.10) !important;
}

/* Status badge system (token-based) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-semibold);
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-badge.green {
  background: var(--color-success-100);
  color: var(--color-success-400);
  border-color: var(--color-success-border);
}

.status-badge.amber {
  background: var(--color-warning-100);
  color: var(--color-warning-400);
  border-color: var(--color-warning-border);
}

.status-badge.gray {
  background: rgba(148, 163, 184, 0.1);
  color: #94A3B8;
  border-color: rgba(148, 163, 184, 0.2);
}

/* Dot indicators */
.dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  display: inline-block;
  flex-shrink: 0;
}

.dot.green {
  background: var(--color-success-400);
  box-shadow: 0 0 5px var(--color-success-400);
}

.dot.amber {
  background: var(--color-warning-400);
  box-shadow: 0 0 5px var(--color-warning-400);
}

.dot.gray {
  background: var(--color-neutral-500);
}

/* Action button  */
.action-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.action-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ─── Calendar Panel ─── */
.mini-calendar {
  width: 100%;
  padding: var(--space-5);
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.cal-nav button {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.cal-nav button:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.cal-nav button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cal-day-name {
  font-size: 11px;
  color: var(--text-subtle);
  font-weight: var(--font-semibold);
  padding-bottom: var(--space-2);
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cal-cell:hover {
  background: var(--glass-bg);
}

.cal-cell:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-md);
}

.cal-cell.active-blue {
  background: rgba(6, 182, 212, 0.1) !important;
  color: var(--color-secondary-400);
  font-weight: var(--font-semibold);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.cal-cell.active-amber {
  background: rgba(251, 191, 36, 0.1) !important;
  color: var(--color-warning-400);
  font-weight: var(--font-semibold);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.cal-cell.active-gray {
  background: rgba(148, 163, 184, 0.08) !important;
  color: #94A3B8;
  font-weight: var(--font-medium);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.cal-cell.today {
  background: rgba(124, 58, 237, 0.12);
  color: var(--color-primary-300);
  font-weight: var(--font-bold);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  position: absolute;
  bottom: 3px;
}

.cal-dot.green {
  background: #10B981;
}

.cal-dot.amber {
  background: #F59E0B;
}

.cal-dot.gray {
  background: #94A3B8;
}

.cal-legend {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  font-size: 11px;
  color: var(--text-subtle);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}

/* ─── Skeleton stats ─── */
.skeleton-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

/* ─── Section header (inside sections) ─── */
.section-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-7);
  gap: var(--space-4);
}

.section-page-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

.section-page-desc {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  margin-top: var(--space-1);
  line-height: var(--leading-relaxed);
}

/* ─── Command palette trigger ─── */
.cmd-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  color: var(--text-subtle);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  transition: var(--transition-colors);
  font-family: var(--font-sans);
  min-width: 180px;
}

.cmd-trigger:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-overlay);
}

.cmd-trigger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.cmd-trigger-text {
  flex: 1;
  text-align: left;
}

/* ─── Generic helpers inside Dashboard ─── */
.btn-sm {
  padding: var(--space-1-5) var(--space-3);
  font-size: var(--text-xs);
  border-radius: var(--radius-lg);
}

/* --- Action Menu System --- */
.action-menu {
  position: relative;
  display: flex;
  justify-content: center;
}

.action-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  min-width: 160px;
  padding: 8px;
}

.action-dropdown.open {
  display: flex;
}

.action-dropdown button {
  background: transparent;
  border: none;
  color: #e2e8f0;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  white-space: nowrap;
}

.action-dropdown button:hover {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}

.action-dropdown button.danger {
  color: #f87171;
}

.action-dropdown button.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* --- Toast System --- */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: #1e293b;
  border-left: 4px solid #7c3aed;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  animation: toastIn 0.3s ease-out;
}

.toast.success {
  border-left-color: #10b981;
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.warning {
  border-left-color: #f59e0b;
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   [data-theme="light"] — Dashboard overrides
   Tokens already flip via tokens.css; these override
   hardcoded hex values used in inline styles & classes.
   ═══════════════════════════════════════════════════════ */
[data-theme="light"] .dashboard-layout {
  background: var(--bg-base);
}

[data-theme="light"] .sidebar {
  background: #FFFFFF;
  border-right-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .main-content {
  background: var(--bg-base);
}

[data-theme="light"] .logo-text {
  color: var(--bg-base);
}

[data-theme="light"] .nav-label {
  color: #64748B;
}

[data-theme="light"] .nav-item {
  color: #475569;
}

[data-theme="light"] .nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--bg-base);
}

[data-theme="light"] .nav-item.active {
  background: rgba(124, 58, 237, 0.08);
  color: #6D28D9;
}

[data-theme="light"] .user-name {
  color: var(--bg-base);
}

[data-theme="light"] .sidebar-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .logout-btn {
  color: #64748B;
}

[data-theme="light"] .logout-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--bg-base);
}

/* Panel & card backgrounds */
[data-theme="light"] .stat-dash-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .content-table-panel,
[data-theme="light"] .calendar-panel {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .panel-header {
  background: rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Table */
[data-theme="light"] .dash-table th {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  color: #64748B;
}

[data-theme="light"] .dash-table td {
  border-bottom-color: rgba(0, 0, 0, 0.04);
  color: var(--bg-elevated);
}

[data-theme="light"] .dash-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.04);
}

/* Inline-style overrides (Dashboard JSX uses hardcoded colours) */
[data-theme="light"] .dash-section {
  color: #1E293B;
}

/* Action dropdown */
[data-theme="light"] .action-dropdown {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .action-dropdown button {
  color: #1E293B;
}

[data-theme="light"] .action-dropdown button:hover {
  background: rgba(124, 58, 237, 0.08);
  color: #6D28D9;
}

[data-theme="light"] .action-dropdown button.danger {
  color: #DC2626;
}

/* Toast */
[data-theme="light"] .toast {
  background: #FFFFFF;
  color: #1E293B;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Dashboard greeting & headers */
[data-theme="light"] .dashboard-greeting {
  color: #1E293B;
}

[data-theme="light"] .top-header h1 {
  color: #1E293B;
  -webkit-text-fill-color: #1E293B;
  background: none;
}

[data-theme="light"] .header-text h1 {
  color: #1E293B;
  -webkit-text-fill-color: #1E293B;
  background: none;
}

[data-theme="light"] .header-text p {
  color: #475569;
}

/* Calendar — ensure digits are visible */
[data-theme="light"] .cal-cell {
  color: #1E293B !important;
}

[data-theme="light"] .cal-day-name {
  color: #64748B !important;
}

[data-theme="light"] .cal-header {
  color: #1E293B !important;
}

[data-theme="light"] .cal-cell.today {
  background: rgba(124, 58, 237, 0.10) !important;
  color: #6D28D9 !important;
}

/* Dashboard table — ensure text is dark */
[data-theme="light"] .dash-table td {
  color: #334155 !important;
}

[data-theme="light"] .dash-table th {
  color: #64748B !important;
}

/* Panel header */
[data-theme="light"] .panel-header {
  background: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .panel-header h3 {
  color: #1E293B !important;
}/* =====================================================================
   BlogEditor.css — Styles for the redesigned blog generation workflow
   All values consume tokens from tokens.css
   ===================================================================== */

/* ─── Root layout ─── */
.be-root {
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .be-root {
    padding: var(--space-4);
  }
}

/* ─── Save banner (global feedback) ─── */
.be-save-banner {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  white-space: nowrap;
  animation: be-banner-in var(--duration-slow) var(--ease-spring);
}

@keyframes be-banner-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.be-save-banner--success {
  background: var(--color-success-100);
  border: 1px solid var(--color-success-border);
  color: var(--color-success-400);
}

.be-save-banner--danger {
  background: var(--color-danger-100);
  border: 1px solid var(--color-danger-border);
  color: var(--color-danger-400);
}

/* ─── Header ─── */
.be-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.be-header-left {
  flex: 1;
  min-width: 0;
}

.be-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ─── Stage pills breadcrumb ─── */
.be-stage-pills {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.be-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-subtle);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  transition: var(--transition-colors);
}

.be-stage-pill.reached {
  color: var(--color-success-400);
}

.be-stage-pill.active {
  color: var(--color-primary-300);
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.25);
}

.be-stage-sep {
  width: 24px;
  height: 1px;
  background: var(--border-default);
  flex-shrink: 0;
}

.be-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-1);
  line-height: var(--leading-tight);
}

.be-subtitle {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  line-height: var(--leading-relaxed);
}

/* Autosave indicator */
.be-autosave {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  animation: fade-in var(--duration-base) var(--ease-out);
}

.be-autosave.saved {
  color: var(--color-success-400);
}

/* ─── Body layout ─── */
.be-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Configure layout (2-col) */
.be-configure {
  display: grid;
  grid-template-columns: minmax(360px, 560px) 1fr;
  gap: var(--space-8);
  align-items: flex-start;
}

@media (max-width: 900px) {
  .be-configure {
    grid-template-columns: 1fr;
  }

  .be-preview-placeholder {
    display: none;
  }
}

/* Review layout (editor + action panel) */
.be-body.be-body--review {
  display: block;
}

.be-review {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-6);
  align-items: flex-start;
}

@media (max-width: 900px) {
  .be-review {
    grid-template-columns: 1fr;
  }
}

/* ─── Form Panel ─── */
.be-form-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Keyword examples ─── */
.be-examples-toggle {
  background: none;
  border: none;
  color: var(--color-primary-400);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0;
  transition: color var(--duration-fast);
  font-family: var(--font-sans);
}

.be-examples-toggle:hover {
  color: var(--color-primary-300);
}

.be-examples-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

.be-examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
  animation: fade-up var(--duration-base) var(--ease-out);
}

.be-example-chip {
  background: var(--glass-bg);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: var(--space-1-5) var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-colors);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.be-example-chip:hover {
  border-color: var(--color-primary-600);
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.08);
}

.be-example-chip:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ─── Tone grid ─── */
.be-tone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (max-width: 480px) {
  .be-tone-grid {
    grid-template-columns: 1fr;
  }
}

.be-tone-card {
  background: var(--glass-bg);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: var(--transition-colors);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.be-tone-card:hover {
  border-color: var(--border-strong);
  background: var(--glass-bg-hover);
}

.be-tone-card.selected {
  border-color: var(--color-primary-600);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: var(--focus-ring);
}

.be-tone-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.be-tone-desc {
  font-size: 11px;
  color: var(--text-subtle);
}

/* ─── Range slider ─── */
.be-range-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: 2rem !important;
  /* Forced gap */
  margin-bottom: 1.5rem !important;
}

.be-range-label {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 36px;
}

.be-range {
  flex: 1;
  height: 12px;
  /* Thicker track */
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right,
      var(--color-accent) 0%,
      var(--color-accent) calc((var(--val, 1500) - 800) / (3000 - 800) * 100%),
      #94A3B8 calc((var(--val, 1500) - 800) / (3000 - 800) * 100%),
      #94A3B8 100%);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .be-range {
  background: linear-gradient(to right,
      var(--color-accent) 0%,
      var(--color-accent) calc((var(--val, 1500) - 800) / (3000 - 800) * 100%),
      #334155 calc((var(--val, 1500) - 800) / (3000 - 800) * 100%),
      #334155 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.be-range:hover {
  border-color: var(--color-accent);
}

.be-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 2px solid var(--color-accent);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.be-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.be-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}

.be-range-marks {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
}

.be-range-mark {
  font-size: 11px;
  color: var(--text-subtle);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-1) var(--space-1-5);
  border-radius: var(--radius-sm);
  transition: var(--transition-colors);
  font-family: var(--font-sans);
}

.be-range-mark:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.be-range-mark.active {
  color: var(--color-primary-300);
  font-weight: var(--font-bold);
}

.be-range-mark:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ─── Error block ─── */
.be-error-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-danger-100);
  border: 1px solid var(--color-danger-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  color: var(--color-danger-400);
  animation: fade-up var(--duration-base) var(--ease-out);
}

.be-error-content {
  flex: 1;
}

.be-error-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.be-error-msg {
  font-size: var(--text-xs);
  opacity: 0.85;
}

/* ─── Sticky action bar (configure stage) ─── */
.be-action-bar {
  position: sticky;
  bottom: 0;
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-4);
  z-index: var(--z-sticky);
}

.be-shortcuts-hint {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

.be-generate-btn {
  min-width: 180px;
  gap: var(--space-2);
}

/* ─── Placeholder Panel (right side in configure) ─── */
.be-preview-placeholder {
  background: var(--glass-bg);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-8);
  text-align: center;
  gap: var(--space-3);
  min-height: 400px;
}

.be-placeholder-icon {
  font-size: 48px;
  line-height: 1;
}

.be-placeholder-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
}

.be-placeholder-desc {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  max-width: 280px;
  line-height: var(--leading-relaxed);
}

.be-placeholder-tips {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  text-align: left;
  align-self: stretch;
  max-width: 280px;
  margin: var(--space-4) auto 0;
}

.be-tip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

.be-tip svg {
  color: var(--color-success-400);
  flex-shrink: 0;
}

/* ─── Generating stage ─── */
.be-generating {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-8) 0;
}

.be-gen-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-8);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-card);
}

/* Progress bar */
.be-progress-bar {
  height: 6px;
  background: var(--bg-overlay);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.be-progress-fill {
  height: 100%;
  background: var(--brand-gradient);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.be-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.be-progress-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary-300);
  margin-bottom: var(--space-1);
}

.be-progress-pct {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-bottom: var(--space-6);
}

/* ─── Step Stepper ─── */
.be-stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-8);
}

.be-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  opacity: 0.35;
  transition: opacity var(--duration-base) var(--ease-out);
}

.be-step.done {
  opacity: 0.7;
}

.be-step.active {
  opacity: 1;
  background: rgba(124, 58, 237, 0.06);
}

.be-step-dot {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--bg-overlay);
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-slow);
}

.be-step.done .be-step-dot {
  background: var(--color-success-500);
  border-color: var(--color-success-400);
  color: #fff;
}

.be-step.active .be-step-dot {
  background: var(--color-primary-600);
  border-color: var(--color-primary-400);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.be-pulse {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: var(--radius-full);
  animation: pulse-ring 1s ease-in-out infinite;
}

@keyframes pulse-ring {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.be-step-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  flex: 1;
}

.be-step.active .be-step-label {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.be-step-pct {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--color-primary-300);
}

.be-gen-context {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

/* ─── Review stage ─── */
.be-editor-panel {
  min-width: 0;
}

/* Metrics row */
.be-metrics-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-5);
  flex-wrap: wrap;
}

.be-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.be-metric-label {
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--font-bold);
}

.be-metric-val {
  font-size: var(--text-sm);
  font-weight: var(--font-extrabold);
}

.be-metric-sep {
  width: 1px;
  height: 28px;
  background: var(--border-default);
  flex-shrink: 0;
}

/* Title editor */
.be-title-input {
  height: 48px;
}

/* Edit/Preview toggle */
.be-view-toggle {
  display: flex;
  background: var(--bg-overlay);
  border-radius: var(--radius-lg);
  padding: 3px;
  gap: 2px;
}

.be-view-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  padding: var(--space-1-5) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-sans);
}

.be-view-btn:hover {
  color: var(--text-primary);
}

.be-view-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.be-view-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Body textarea */
.be-body-textarea {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  min-height: 520px;
  resize: vertical;
}

/* Preview body */
.be-preview-body {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-height: 520px;
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
  overflow-y: auto;
}

.be-preview-body h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin: var(--space-6) 0 var(--space-3);
}

.be-preview-body h3 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: var(--space-5) 0 var(--space-2);
}

.be-preview-body ul {
  padding-left: var(--space-6);
  margin: var(--space-3) 0;
}

.be-preview-body li {
  margin: var(--space-1-5) 0;
}

.be-preview-body p {
  margin: var(--space-3) 0;
}

/* ─── Action Panel (right sidebar in review) ─── */
.be-action-panel {
  position: sticky;
  top: var(--space-6);
}

.be-action-panel-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.be-action-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-subtle);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-1);
}

.be-full-btn {
  width: 100%;
  justify-content: flex-start;
  position: relative;
}

.be-kbd-badge {
  margin-left: auto;
  display: flex;
  gap: 2px;
}

.be-action-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-1) 0;
}

/* SEO score circle */
.be-seo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0 var(--space-2);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-2);
}

.be-seo-ring-container {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.be-seo-ring-bar {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* background will be set via inline style */
}

/* Use a mask on the bar only */
.be-seo-ring-bar {
  mask-image: radial-gradient(circle at center, transparent 30px, black 31px);
  -webkit-mask-image: radial-gradient(circle at center, transparent 30px, black 31px);
}

.be-seo-ring-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.be-seo-val {
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--color-success-400);
  line-height: 1;
}

.be-seo-unit {
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

.be-seo-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-align: center;
}

.be-seo-desc {
  font-size: 11px;
  color: var(--text-subtle);
}

/* ─── Shortcut list ─── */
.be-shortcut-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.be-shortcut {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

.be-shortcut>span {
  display: flex;
  gap: 2px;
}

/* ─── History drawer ─── */
.be-history-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--z-modal);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  backdrop-filter: blur(4px);
  animation: fade-in var(--duration-base) var(--ease-out);
}

.be-history-panel {
  width: 420px;
  max-width: 90vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slide-in-right var(--duration-slow) var(--ease-out);
}

@keyframes slide-in-right {
  from {
    transform: translateX(48px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.be-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  gap: var(--space-3);
  flex-shrink: 0;
}

.be-history-header span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.be-history-empty {
  padding: var(--space-8) var(--space-6);
  text-align: center;
  color: var(--text-subtle);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.be-history-list {
  overflow-y: auto;
  flex: 1;
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.be-history-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: var(--transition-slow);
}

.be-history-item:hover {
  border-color: var(--border-default);
}

.be-history-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.be-history-idx {
  font-size: 11px;
  font-weight: var(--font-bold);
  background: rgba(124, 58, 237, 0.12);
  color: var(--color-primary-300);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

.be-history-kw {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  flex: 1;
}

.be-history-date {
  font-size: 11px;
  color: var(--text-subtle);
  margin-left: auto;
}

.be-history-title {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
  font-weight: var(--font-medium);
}

.be-history-stats {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.be-history-restore {
  margin-top: var(--space-1);
  justify-content: center;
}

/* badge aliases for history panel */
.badge-success {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-semibold);
  background: var(--color-success-100);
  color: var(--color-success-400);
  border: 1px solid var(--color-success-border);
}

.badge-secondary {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-semibold);
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-secondary-400);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* ─── Icon button ─── */
.be-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  font-family: var(--font-sans);
}

.be-icon-btn:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.be-icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ─── Keyframe animations (shared) ─── */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Screen-reader only ─── */
.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;
}

/* ─── Mobile tweaks ─── */
@media (max-width: 640px) {
  .be-metrics-row {
    gap: var(--space-3);
  }

  .be-metric-sep {
    display: none;
  }

  .be-action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .be-generate-btn {
    width: 100%;
  }

  .be-action-panel {
    position: static;
  }

  .be-action-panel-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .be-full-btn {
    flex: 1 1 140px;
  }

  .be-seo-card {
    display: none;
  }
}

/* =====================================================================
   Light mode specific overrides for BlogEditor components
   ===================================================================== */
[data-theme="light"] .be-range-mark {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

[data-theme="light"] .be-range-mark:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}

[data-theme="light"] .be-range-mark.active {
  background: var(--color-accent);
  color: #fff !important;
  border-color: var(--color-accent-dark);
  box-shadow: 0 2px 8px rgba(196, 151, 74, 0.4);
}

[data-theme="light"] .be-tone-card {
  background: #fff;
  border-color: var(--color-border);
}

[data-theme="light"] .be-tone-card:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-accent);
}

[data-theme="light"] .be-tone-card.selected {
  background: rgba(196, 151, 74, 0.08);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196, 151, 74, 0.2);
}

[data-theme="light"] .be-preview-placeholder {
  background: #fff;
  border-style: solid;
  border-color: var(--color-border);
}

/* =====================================================================
   LIGHT MODE — Blog Editor text visibility fixes
   Ensure all editor inputs/textareas have dark, readable text.
   ===================================================================== */
[data-theme="light"] .be-root .form-input,
[data-theme="light"] .be-root .form-textarea,
[data-theme="light"] .be-root .be-title-input,
[data-theme="light"] .be-root .be-body-textarea,
[data-theme="light"] .be-root input,
[data-theme="light"] .be-root textarea {
  color: #1E293B !important;
  background-color: #FFFFFF !important;
  -webkit-text-fill-color: #1E293B !important;
}

[data-theme="light"] .be-root .form-input::placeholder,
[data-theme="light"] .be-root .form-textarea::placeholder,
[data-theme="light"] .be-root input::placeholder,
[data-theme="light"] .be-root textarea::placeholder {
  color: rgba(30, 41, 59, 0.4) !important;
  -webkit-text-fill-color: rgba(30, 41, 59, 0.4) !important;
}

[data-theme="light"] .be-root .form-label,
[data-theme="light"] .be-root .be-metric-label,
[data-theme="light"] .be-root .be-section-label {
  color: #475569 !important;
}

[data-theme="light"] .be-root .be-metric-val {
  -webkit-text-fill-color: unset !important;
}

[data-theme="light"] .be-metrics-row {
  background: #F8F3EF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .be-preview-body {
  color: #1E293B !important;
  background: #FFFFFF !important;
}
/* Cluster Map - Absolute Pixel-Perfect Alignment Fix */

.cluster-viewer-container {
  width: 1000px !important; /* FORCED FIXED WIDTH */
  margin: 0 auto !important; /* CENTERED ON PAGE */
  height: 620px;
  background-color: transparent !important;
  border-radius: 16px;
  overflow: visible;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* static dot grid - centered to origin */
.cluster-viewer-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Pillar Node - PIXEL CENTERED (500px is target center) */
.cluster-node-pillar {
  background: linear-gradient(135deg, #6366f1, #06b6d4) !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4) !important;
  border: none !important;
  position: absolute;
  /* (500px Center) - (120px Half-Width) = 380px */
  left: 380px !important; 
  width: 240px;
  transform: translateZ(0); /* High-perf only, no X/Y transform */
  pointer-events: auto;
}

/* Cluster Card - PIXEL CENTERED (500px is target center) */
.cluster-node-card {
  background: #0d1117 !important;
  border-radius: 12px;
  color: #fff;
  user-select: none;
  border: 1.5px solid transparent;
  position: absolute;
  /* (Target Center) - (80px Half-Width) = Xpx (calculated in JS) */
  width: 160px;
  backface-visibility: hidden;
  pointer-events: auto;
  transition: background-color 0.15s, border-color 0.15s;
  contain: layout paint;
}

.cluster-node-card:hover {
  background: #161b22 !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  z-index: 50 !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.cluster-node-card.teal { border-color: #2dd4bf !important; color: #2dd4bf !important; }
.cluster-node-card.amber { border-color: #fbbf24 !important; color: #fbbf24 !important; }
.cluster-node-card.green { border-color: #4ade80 !important; color: #4ade80 !important; }
.cluster-node-card.purple { border-color: #a855f7 !important; color: #a855f7 !important; }
.cluster-node-card.blue { border-color: #3b82f6 !important; color: #3b82f6 !important; }
.cluster-node-card.pink { border-color: #ec4899 !important; color: #ec4899 !important; }
.cluster-node-card.navy { border-color: #3b82f6 !important; color: #60a5fa !important; }
.cluster-node-card.gold { border-color: #a16207 !important; color: #fbbf24 !important; }

/* Performance SVG Paths */
.cluster-path {
  stroke: rgba(148, 163, 184, 0.18) !important;
  stroke-width: 1.5;
  fill: none;
}

[data-theme="light"] .cluster-node-card { background: #FFFFFF !important; color: #1a1a1a !important; }
[data-theme="light"] .cluster-path { stroke: rgba(0, 0, 0, 0.12) !important; }

/* Additional layout styles for detail panel if needed */
.cluster-detail-panel {
  position: absolute;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 24px;
  border-radius: 16px;
  width: 280px;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.cluster-detail-title {
  color: white;
  font-size: 16px;
  margin: 0 0 16px 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cluster-generate-btn {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.cluster-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.cluster-add-button-fixed {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.2);
  color: #94a3b8;
  transition: all 0.2s;
}

.cluster-add-button-fixed:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
  color: white;
}

[data-theme="light"] .cluster-detail-panel { background: #FFFFFF; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .cluster-detail-title { color: #1a1a1a; }
[data-theme="light"] .cluster-add-button-fixed { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.15); color: #64748b; }
/* =====================================================================
   PromptArchitecture.css — Refactored to use design tokens
   ===================================================================== */

.prompt-arch-container {
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  padding: var(--space-8) 5%;
  overflow-x: hidden;
}

/* ─── Header ─── */
.pa-header {
  margin-bottom: var(--space-12);
}

.pa-header .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: var(--transition-colors);
  margin-bottom: var(--space-8);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
}

.pa-header .btn-ghost:hover { color: var(--text-primary); background: var(--glass-bg); }
.pa-header .btn-ghost:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.pa-title-block h1 {
  font-size: var(--text-display-lg);
  font-weight: var(--font-extrabold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
  background: none;
  -webkit-text-fill-color: unset;
  color: var(--text-primary);
}

.pa-title-block p {
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.title-accent-violet {
  background: linear-gradient(90deg, var(--color-primary-300), var(--color-primary-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Layout ─── */
.pa-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--space-8);
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .pa-layout { grid-template-columns: 1fr; }
}

/* ─── Sidebar ─── */
.pa-sidebar {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: sticky;
  top: var(--space-8);
}

.pa-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.pa-sidebar-header h3 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

/* ─── Stepper ─── */
.pa-stepper {
  display: flex;
  flex-direction: column;
}

.pa-step {
  display: flex;
  gap: var(--space-4);
  cursor: pointer;
  padding-bottom: var(--space-5);
  position: relative;
  opacity: 0.5;
  transition: opacity var(--duration-base) var(--ease-out);
  border-radius: var(--radius-lg);
}

.pa-step:hover { opacity: 0.8; }
.pa-step.active { opacity: 1; }
.pa-step.past { opacity: 0.85; }
.pa-step:last-child { padding-bottom: 0; }
.pa-step:last-child .pa-step-line { display: none; }

.pa-step:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.pa-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.pa-step-dot {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--bg-overlay);
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xs);
  font-weight: var(--font-semibold);
  z-index: 2;
  transition: var(--transition-slow);
  color: var(--text-muted);
}

.pa-step.active .pa-step-dot {
  background: var(--color-primary-600);
  border-color: var(--color-primary-400);
  color: #fff;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}

.pa-step.past .pa-step-dot {
  background: var(--color-secondary-500);
  border-color: var(--color-secondary-400);
  color: var(--bg-base);
}

.pa-step-line {
  position: absolute;
  top: 24px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--border-default);
  z-index: 1;
  transition: background var(--duration-slow) var(--ease-out);
}

.pa-step.past .pa-step-line { background: var(--color-secondary-500); }

.pa-step-content h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  margin-top: 3px;
  transition: color var(--duration-base);
}

.pa-step.active .pa-step-content h4 {
  color: var(--text-primary);
  font-size: var(--text-base);
}

.pa-step-desc {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-top: var(--space-1);
  line-height: var(--leading-relaxed);
}

/* ─── Animation ─── */
.fadeIn { animation: fade-up var(--duration-slow) var(--ease-out); }

/* ─── Main Area ─── */
.pa-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.pa-top-bar {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.keyword-badge {
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-secondary-400);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ─── Cards ─── */
.pa-cards-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.pa-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-slow);
}

.pa-card:hover {
  border-color: var(--border-default);
}

.pa-card-header {
  background: var(--bg-surface);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
}

.pa-card-body {
  padding: var(--space-5);
  min-height: 250px;
}

.console-body { background: var(--bg-input); }

.pa-card-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ─── Typewriter ─── */
.typewriter-text {
  overflow: hidden;
  animation: typing var(--duration-lazy) steps(40, end);
}
.typewriter-text.delayed {
  animation: typing var(--duration-lazy) steps(40, end) 0.5s both;
}

@keyframes typing {
  from { max-height: 0; opacity: 0; }
  to   { max-height: 1000px; opacity: 1; }
}

/* ─── Loading State ─── */
.console-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: var(--space-4);
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.spin { animation: spin var(--duration-lazy) var(--ease-linear) infinite; }

/* ─── Button adjustments inside PA ─── */
.btn.disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* pa-specific btn-sm override */
.pa-sidebar .btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
}
