/* ============================================
   KANGRA HUB - DESIGN SYSTEM
   Advanced UI with Glassmorphism, Animations & Modern Aesthetics
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   Light Mode - Professional Corporate Theme
   ============================================ */
:root {
  /* ===== THEME COLORS (LIGHT MODE) ===== */
  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F7FA;
  --bg-card: #FFFFFF;
  --bg-hover: #EDF2F7;

  /* Text Colors */
  --text-primary: #2E2E2E;
  --text-secondary: #5F6C7B;
  --text-muted: #8896A6;
  --text-inverse: #FFFFFF;

  /* Primary Brand Colors */
  --primary-color: #0B3C5D;
  --primary-light: #1A5F94;
  --primary-dark: #062840;
  --secondary-color: #328CC1;
  --secondary-light: #4BA3D8;
  --secondary-dark: #256C96;

  /* Button Colors */
  --button-primary: #1E88E5;
  --button-primary-hover: #1565C0;
  --button-secondary: #6C757D;
  --button-secondary-hover: #5A6268;
  --button-danger: #DC3545;
  --button-danger-hover: #C82333;
  --button-success: #28A745;
  --button-success-hover: #218838;

  /* Border & Surface */
  --border-color: #E0E0E0;
  --border-light: #F0F0F0;
  --border-focus: #1E88E5;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-color-strong: rgba(0, 0, 0, 0.15);

  /* Status Colors */
  --success-bg: #D4EDDA;
  --success-text: #155724;
  --success-border: #C3E6CB;
  --warning-bg: #FFF3CD;
  --warning-text: #856404;
  --warning-border: #FFEEBA;
  --error-bg: #F8D7DA;
  --error-text: #721C24;
  --error-border: #F5C6CB;
  --info-bg: #D1ECF1;
  --info-text: #0C5460;
  --info-border: #BEE5EB;

  /* ===== LEGACY VARIABLES (Compatibility) ===== */
  --primary-50: #E8F4FD;
  --primary-100: #BBDEFB;
  --primary-200: #90CAF9;
  --primary-300: #64B5F6;
  --primary-400: #42A5F5;
  --primary-500: #1E88E5;
  --primary-600: #1976D2;
  --primary-700: #1565C0;
  --primary-800: #0D47A1;
  --primary-900: #0B3C5D;
  --primary-950: #062840;

  --accent-50: #E3F2FD;
  --accent-100: #BBDEFB;
  --accent-200: #90CAF9;
  --accent-300: #64B5F6;
  --accent-400: #42A5F5;
  --accent-500: #328CC1;
  --accent-600: #2979B0;
  --accent-700: #1E679F;
  --accent-800: #14568E;
  --accent-900: #0A446D;

  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --gray-950: #020617;

  --success-500: #28A745;
  --success-600: #218838;
  --warning-500: #FFC107;
  --warning-600: #E0A800;
  --error-500: #DC3545;
  --error-600: #C82333;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  --gradient-hero: linear-gradient(135deg, #0B3C5D 0%, #328CC1 50%, #4BA3D8 100%);
  --gradient-dark: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  --gradient-card: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 var(--shadow-color);
  --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color);
  --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -4px var(--shadow-color);
  --shadow-xl: 0 20px 25px -5px var(--shadow-color), 0 8px 10px -6px var(--shadow-color);
  --shadow-2xl: 0 25px 50px -12px var(--shadow-color-strong);
  --shadow-glow: 0 0 40px rgba(30, 136, 229, 0.25);
  --shadow-glow-accent: 0 0 40px rgba(50, 140, 193, 0.25);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-theme: 200ms ease-in-out;

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* ============================================
   DARK MODE - Premium Professional Theme
   ============================================ */
[data-theme="dark"] {
  /* Background Colors */
  --bg-primary: #0F172A;
  --bg-secondary: #111827;
  --bg-card: #1E293B;
  --bg-hover: #334155;

  /* Text Colors */
  --text-primary: #E5E7EB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-inverse: #0F172A;

  /* Primary Brand Colors */
  --primary-color: #60A5FA;
  --primary-light: #93C5FD;
  --primary-dark: #3B82F6;
  --secondary-color: #38BDF8;
  --secondary-light: #7DD3FC;
  --secondary-dark: #0EA5E9;

  /* Button Colors */
  --button-primary: #2563EB;
  --button-primary-hover: #1D4ED8;
  --button-secondary: #4B5563;
  --button-secondary-hover: #6B7280;
  --button-danger: #EF4444;
  --button-danger-hover: #DC2626;
  --button-success: #22C55E;
  --button-success-hover: #16A34A;

  /* Border & Surface */
  --border-color: #334155;
  --border-light: #475569;
  --border-focus: #60A5FA;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-color-strong: rgba(0, 0, 0, 0.6);

  /* Status Colors */
  --success-bg: rgba(34, 197, 94, 0.15);
  --success-text: #86EFAC;
  --success-border: rgba(34, 197, 94, 0.3);
  --warning-bg: rgba(234, 179, 8, 0.15);
  --warning-text: #FDE047;
  --warning-border: rgba(234, 179, 8, 0.3);
  --error-bg: rgba(239, 68, 68, 0.15);
  --error-text: #FCA5A5;
  --error-border: rgba(239, 68, 68, 0.3);
  --info-bg: rgba(59, 130, 246, 0.15);
  --info-text: #93C5FD;
  --info-border: rgba(59, 130, 246, 0.3);

  /* Legacy Variables (Inverted for Dark) */
  --gray-50: #0F172A;
  --gray-100: #1E293B;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748B;
  --gray-500: #94A3B8;
  --gray-600: #CBD5E1;
  --gray-700: #E2E8F0;
  --gray-800: #F1F5F9;
  --gray-900: #F8FAFC;
  --gray-950: #FFFFFF;

  --primary-50: #1E3A5F;
  --primary-100: #1E4976;
  --primary-500: #60A5FA;
  --primary-600: #3B82F6;
  --primary-700: #2563EB;

  --success-500: #22C55E;
  --success-600: #16A34A;
  --warning-500: #EAB308;
  --warning-600: #CA8A04;
  --error-500: #EF4444;
  --error-600: #DC2626;

  /* Gradients for Dark */
  --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  --gradient-accent: linear-gradient(135deg, #38BDF8 0%, #60A5FA 100%);
  --gradient-hero: linear-gradient(135deg, #1E293B 0%, #334155 50%, #475569 100%);
  --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gradient-card: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);

  /* Enhanced Shadows for Dark */
  --shadow-glow: 0 0 40px rgba(96, 165, 250, 0.2);
  --shadow-glow-accent: 0 0 40px rgba(56, 189, 248, 0.2);
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-theme), color var(--transition-theme);
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  transition: color var(--transition-theme);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--gray-600);
}

/* ============================================
   3. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  max-width: 768px;
}

.container-lg {
  max-width: 1024px;
}

.container-xl {
  max-width: 1440px;
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* Flexbox */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ============================================
   4. NAVIGATION - Professional Navbar + Mobile Drawer
   ============================================ */

/* === Desktop Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-5) 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
}

.navbar.scrolled {
  padding: var(--space-3) 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Logo with Rounded Corners */
.logo {
  height: 48px;
  width: auto;
  border-radius: 10px;
  transition: all 0.3s ease;
  object-fit: contain;
}

.navbar.scrolled .logo {
  height: 40px;
}

/* Brand Name Container */
.brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

/* Brand Name - Two Color Style */
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.brand-name .k1 {
  color: #1a202c;
  transition: color 0.3s ease;
}

.brand-name .k2 {
  color: #00AEEF;
  transition: color 0.3s ease;
}

/* Dark mode brand colors */
[data-theme="dark"] .brand-name .k1 {
  color: #ffffff;
}

[data-theme="dark"] .brand-name .k2 {
  color: #00AEEF;
}

/* Scrolled navbar brand */
.navbar.scrolled .brand-name {
  font-size: 1.25rem;
}

/* Footer Logo Styling */
.footer-logo {
  height: 50px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-brand-name .k1 {
  color: #ffffff;
}

.footer-brand-name .k2 {
  color: #00AEEF;
}

/* Responsive brand name */
@media (max-width: 768px) {
  .brand-name {
    font-size: 1.25rem;
  }

  .logo {
    height: 40px;
  }

  .footer-logo {
    height: 42px;
  }

  .footer-brand-name {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.1rem;
  }

  .logo {
    height: 36px;
  }

  .footer-brand-link {
    justify-content: center;
  }
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Nav links - exclude .nav-cta from these styles */
.nav-links a:not(.nav-cta) {
  position: relative;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active {
  color: #00AEEF;
  /* Bright cyan - highly visible */
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
  width: 60%;
  background: linear-gradient(90deg, #00AEEF, #1E90FF);
}

/* Ensure nav-cta has NO underline or ::after effects */
.nav-cta::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ============================================
   CTA Button in Navbar - Premium Coral-Rose Gradient
   Fully Responsive with Modern Hover Effects
   ============================================ */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: #ffffff !important;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A9D 50%, #C850C0 100%) !important;
  border-radius: 50px;
  box-shadow:
    0 4px 15px rgba(238, 90, 157, 0.4),
    0 2px 8px rgba(255, 107, 107, 0.3);
  transition: none;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Shimmer effect overlay - DISABLED */
.nav-cta::before {
  display: none;
}

/* Hover - No effect */
.nav-cta:hover {
  transform: none;
  color: #ffffff !important;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A9D 50%, #C850C0 100%) !important;
}

.nav-cta:active {
  transform: none;
}

.nav-cta:focus {
  outline: none;
}

.nav-cta:focus-visible {
  outline: 3px solid rgba(238, 90, 157, 0.5);
  outline-offset: 3px;
}

/* Scrolled navbar state */
.navbar.scrolled .nav-cta {
  box-shadow:
    0 4px 18px rgba(238, 90, 157, 0.45),
    0 2px 10px rgba(200, 80, 192, 0.35);
}

.navbar.scrolled .nav-cta:hover {
  transform: none;
}

/* Dark mode nav-cta - Enhanced glow for dark backgrounds */
[data-theme="dark"] .nav-cta {
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A9D 50%, #C850C0 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 4px 20px rgba(238, 90, 157, 0.5),
    0 2px 10px rgba(255, 107, 107, 0.4);
}

[data-theme="dark"] .nav-cta:hover {
  transform: none;
  color: #ffffff !important;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A9D 50%, #C850C0 100%) !important;
}

/* ============================================
   Responsive Styles for nav-cta Button
   ============================================ */

/* Large desktop (1280px+) */
@media (min-width: 1280px) {
  .nav-cta {
    padding: 12px 30px;
    font-size: 0.95rem;
  }
}

/* Desktop (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-cta {
    padding: 10px 24px;
    font-size: 0.875rem;
  }
}

/* Tablet (768px - 1023px) - Button hidden, drawer used instead */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-cta {
    padding: 10px 22px;
    font-size: 0.85rem;
  }
}

/* Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .nav-cta {
    padding: 9px 18px;
    font-size: 0.8rem;
  }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
  .nav-cta {
    padding: 8px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.015em;
  }
}

/* ============================================
   Create Invoice External CTA Button
   ============================================ */
.nav-cta-external {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 22px;
  background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  margin-left: 0.75rem;
}

.nav-cta-external:hover,
.nav-links .nav-cta-external:hover,
.navbar.scrolled .nav-links .nav-cta-external:hover,
.navbar .nav-cta-external:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #059669 100%) !important;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
  text-decoration: none;
}

.nav-cta-external:active {
  transform: translateY(0);
}

.nav-cta-external:focus {
  outline: none;
}

.nav-cta-external:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.5);
  outline-offset: 3px;
}

.nav-cta-external i {
  font-size: 0.85rem;
}

/* Scrolled navbar state */
.navbar.scrolled .nav-cta-external {
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45);
}

/* Dark mode */
[data-theme="dark"] .nav-cta-external {
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

/* Responsive */
@media (min-width: 1280px) {
  .nav-cta-external {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-cta-external {
    padding: 9px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 1023px) {
  .nav-cta-external.desktop-only {
    display: none !important;
  }
}

/* Mobile drawer styling */
.mobile-drawer .nav-cta-external {
  display: flex !important;
  width: 100%;
  justify-content: center;
  padding: 1rem 1.5rem;
  margin: 0.5rem 0;
  border-radius: 12px;
  font-size: 1rem;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff !important;
}

.mobile-drawer .nav-cta-external:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: scale(1.02);
}

/* === Hamburger Icon === */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: calc(var(--z-modal) + 10);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all 0.35s ease;
}

.hamburger span:nth-child(1) {
  margin-bottom: 6px;
}

.hamburger span:nth-child(2) {
  margin-bottom: 6px;
}

/* Hamburger Animation - Open */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* === Mobile Drawer === */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  padding: var(--space-8) var(--space-6);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-modal);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease-in-out;
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.close-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Drawer Menu Items */
.mobile-drawer a {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(30px);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-drawer.active a {
  transform: translateX(0);
  opacity: 1;
}

.mobile-drawer.active a:nth-child(2) {
  transition-delay: 0.05s;
}

.mobile-drawer.active a:nth-child(3) {
  transition-delay: 0.1s;
}

.mobile-drawer.active a:nth-child(4) {
  transition-delay: 0.15s;
}

.mobile-drawer.active a:nth-child(5) {
  transition-delay: 0.2s;
}

.mobile-drawer.active a:nth-child(6) {
  transition-delay: 0.25s;
}

.mobile-drawer.active a:nth-child(7) {
  transition-delay: 0.3s;
}

.mobile-drawer a:hover {
  color: #fff;
  padding-left: var(--space-3);
}

.mobile-drawer a.active {
  color: var(--primary-400);
}

/* Drawer Footer */
.drawer-footer {
  position: absolute;
  bottom: var(--space-8);
  left: var(--space-6);
  right: var(--space-6);
}

.drawer-cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  text-align: center;
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A9D 50%, #C850C0 100%);
  border-radius: 50px;
  margin-bottom: var(--space-6);
  box-shadow:
    0 4px 15px rgba(238, 90, 157, 0.4),
    0 2px 8px rgba(255, 107, 107, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}

.drawer-cta:hover {
  color: #fff !important;
  transform: scale(1.03);
  box-shadow:
    0 8px 25px rgba(238, 90, 157, 0.5),
    0 4px 15px rgba(200, 80, 192, 0.4);
  background: linear-gradient(135deg, #FF7B7B 0%, #F06AA8 50%, #D460D0 100%);
}

.drawer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.drawer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  border: none;
  padding: 0;
  font-size: var(--text-lg);
}

.drawer-social a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* === Overlay === */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: calc(var(--z-modal) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Body scroll lock */
body.menu-open {
  overflow: hidden;
}

/* === Responsive Breakpoints === */

/* Desktop - Hide mobile elements */
@media (min-width: 1024px) {

  .hamburger,
  .mobile-drawer,
  .nav-overlay {
    display: none !important;
  }

  .nav-links.desktop-only {
    display: flex;
  }
}

/* Tablet & Mobile - Show drawer, hide desktop nav */
@media (max-width: 1023px) {
  .nav-links.desktop-only {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-drawer {
    width: 80%;
    max-width: 320px;
  }
}

/* Tablet specific */
@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-drawer {
    width: 50%;
    max-width: 400px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 var(--space-4);
  }

  .logo {
    height: 40px;
  }

  .mobile-drawer {
    width: 85%;
  }
}

/* Legacy support - keep old navbar classes working */
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.navbar-logo {
  height: 45px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-logo {
  height: 36px;
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-text {
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  max-width: 500px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

.hero-float-card {
  position: absolute;
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: floatCard 4s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: 10%;
  left: -20%;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  bottom: 20%;
  right: -15%;
  animation-delay: 2s;
}

.hero-float-card i {
  font-size: var(--text-2xl);
  color: var(--primary-500);
  margin-bottom: var(--space-2);
}

.hero-float-card h4 {
  font-size: var(--text-sm);
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.hero-float-card p {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin: 0;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }
}

/* ============================================
   6. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.3);
}

.btn-primary {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md), 0 4px 14px rgba(45, 122, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 6px 20px rgba(45, 122, 255, 0.5);
  color: #fff;
}

.btn-secondary {
  color: var(--gray-800);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--gray-800);
}

.btn-outline {
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost {
  color: var(--gray-700);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--gray-100);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-icon {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
}

/* ============================================
   7. CARDS
   ============================================ */
.card {
  position: relative;
  padding: var(--space-8);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Glassmorphism Card */
.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Border Card */
.card-gradient {
  position: relative;
  background: #fff;
  z-index: 1;
}

.card-gradient::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-accent);
  border-radius: calc(var(--radius-xl) + 2px);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card-gradient:hover::before {
  opacity: 1;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-6);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  color: #fff;
  font-size: var(--text-2xl);
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.card-text {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Pricing Card */
.pricing-card {
  text-align: center;
  border: 2px solid var(--gray-200);
}

.pricing-card.featured {
  border-color: var(--primary-500);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-4);
  background: var(--gradient-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.pricing-price {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.pricing-price span {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--gray-500);
}

.pricing-features {
  list-style: none;
  margin: var(--space-6) 0;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  color: var(--gray-600);
}

.pricing-features li i {
  color: var(--success-500);
}

/* ============================================
   8. FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--gray-800);
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--error-500);
}

/* ============================================
   9. SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-600);
  background: var(--primary-50);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ============================================
   10. FEATURES GRID
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-50);
  color: var(--primary-600);
  border-radius: var(--radius-lg);
  font-size: var(--text-xl);
}

.feature-content h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.feature-content p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0;
}

/* ============================================
   11. TESTIMONIALS
   ============================================ */
.testimonial-card {
  padding: var(--space-8);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.testimonial-content {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: var(--space-6);
  line-height: 1.8;
}

.testimonial-content::before {
  content: '"';
  font-size: var(--text-4xl);
  color: var(--primary-300);
  line-height: 0;
  margin-right: var(--space-2);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* ============================================
   12. FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  margin-bottom: var(--space-4);
}

.footer-description {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  color: var(--gray-400);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-600);
  color: #fff;
}

.footer-links h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-sm);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ============================================
   13. UPLOAD ZONE
   ============================================ */
.upload-zone {
  position: relative;
  padding: var(--space-12);
  background: var(--gray-50);
  border: 3px dashed var(--gray-300);
  border-radius: var(--radius-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.upload-zone.dragover {
  transform: scale(1.02);
}

.upload-icon {
  font-size: 4rem;
  color: var(--gray-400);
  margin-bottom: var(--space-4);
}

.upload-zone:hover .upload-icon {
  color: var(--primary-500);
}

.upload-text h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.upload-text p {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* File List */
.file-list {
  margin-top: var(--space-8);
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
}

.file-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.file-icon {
  font-size: var(--text-2xl);
  color: var(--primary-500);
}

.file-name {
  font-weight: 500;
  color: var(--gray-800);
}

.file-size {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.file-actions {
  display: flex;
  gap: var(--space-2);
}

/* ============================================
   14. ALERTS & TOASTS
   ============================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
}

.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--gray-900);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: var(--z-tooltip);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   15. BLOG CARDS
   ============================================ */
.blog-card {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: var(--space-6);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-3);
}

.blog-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.blog-title a {
  color: var(--gray-900);
}

.blog-title a:hover {
  color: var(--primary-600);
}

.blog-excerpt {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-4);
}

/* ============================================
   16. ANIMATIONS
   ============================================ */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 {
  transition-delay: 0.1s;
}

.animate-delay-2 {
  transition-delay: 0.2s;
}

.animate-delay-3 {
  transition-delay: 0.3s;
}

.animate-delay-4 {
  transition-delay: 0.4s;
}

.animate-delay-5 {
  transition-delay: 0.5s;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary-500);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

/* ============================================
   17. ADMIN STYLES
   ============================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--gray-900);
  padding: var(--space-6);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--gray-800);
}

.admin-sidebar-brand img {
  height: 32px;
  filter: brightness(0) invert(1);
}

.admin-sidebar-brand span {
  color: #fff;
  font-weight: 700;
  font-size: var(--text-lg);
}

.admin-nav {
  list-style: none;
}

.admin-nav li {
  margin-bottom: var(--space-1);
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--gray-400);
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--gray-800);
  color: #fff;
}

.admin-nav a i {
  width: 20px;
  text-align: center;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: var(--space-8);
  background: var(--gray-100);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.admin-title {
  font-size: var(--text-2xl);
  color: var(--gray-900);
}

.admin-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: #fff;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.stat-card h3 {
  font-size: var(--text-3xl);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.stat-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0;
}

.stat-card .stat-icon {
  float: right;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  color: var(--primary-600);
  border-radius: var(--radius-lg);
  font-size: var(--text-xl);
}

/* Login Page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: var(--space-6);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: var(--space-10);
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

.login-logo {
  display: block;
  height: 50px;
  margin: 0 auto var(--space-6);
}

.login-title {
  text-align: center;
  margin-bottom: var(--space-8);
}

.login-title h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.login-title p {
  color: var(--gray-500);
}

/* ============================================
   18. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Extra Small (320px) */
@media (max-width: 480px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-12) 0;
  }

  .hero {
    padding-top: 80px;
    min-height: auto;
    padding-bottom: var(--space-12);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    position: static;
  }

  .admin-main {
    margin-left: 0;
  }
}

/* Small (480px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }
}

/* Medium (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large (1024px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra Large (1280px+) */
@media (min-width: 1281px) {
  .container-xl {
    max-width: 1440px;
  }
}

/* ============================================
   19. DARK MODE TOGGLE - Premium Visibility
   ============================================ */
.theme-toggle {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2d3748, #1a202c);
  color: #FFD93D;
  /* Sun icon - bright yellow */
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  z-index: 9998;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.25rem;
}

.theme-toggle i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.15) rotate(15deg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 217, 61, 0.3);
}

.theme-toggle:hover i {
  transform: scale(1.1);
}

.theme-toggle:active {
  transform: scale(1.05);
}

.theme-toggle:focus {
  outline: 3px solid rgba(255, 217, 61, 0.4);
  outline-offset: 3px;
}

/* Dark mode - Moon icon styling */
[data-theme="dark"] .theme-toggle {
  background: linear-gradient(145deg, #f0f4f8, #e2e8f0);
  color: #5B6BFF;
  /* Moon icon - bright purple/blue */
  border-color: rgba(91, 107, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 8px 30px rgba(91, 107, 255, 0.3), 0 0 20px rgba(91, 107, 255, 0.2);
}

[data-theme="dark"] .theme-toggle:focus {
  outline-color: rgba(91, 107, 255, 0.4);
}

/* Mobile positioning - avoid overlap with chatbot */
@media (max-width: 768px) {
  .theme-toggle {
    bottom: var(--space-4);
    left: var(--space-4);
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

/* ============================================
   20. UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

.visible {
  visibility: visible;
}

.invisible {
  visibility: hidden;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.my-4 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.pt-4 {
  padding-top: var(--space-4);
}

.pb-4 {
  padding-bottom: var(--space-4);
}

.py-4 {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.shadow {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

.bg-primary {
  background: var(--primary-500);
}

.bg-white {
  background: #fff;
}

.bg-gray {
  background: var(--gray-100);
}

.text-primary {
  color: var(--primary-600);
}

.text-white {
  color: #fff;
}

.text-gray {
  color: var(--gray-500);
}

.text-dark {
  color: var(--gray-900);
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.table th {
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-50);
}

.table tbody tr:hover {
  background: var(--gray-50);
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */

/* ============================================
   PROFESSIONAL CHATBOT UI
   Enterprise-grade support assistant design
   Neutral, clean, and business-focused
   ============================================ */

.chatbot-widget {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 9999;
  font-family: var(--font-sans);
}

/* Toggle Button - Professional, subtle */
.chatbot-toggle {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(11, 60, 93, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.chatbot-toggle:hover {
  box-shadow: 0 4px 16px rgba(11, 60, 93, 0.35);
  transform: translateY(-2px);
}

.chatbot-toggle.active {
  background: var(--gray-700);
  border-radius: 12px;
}

.chatbot-toggle.active i::before {
  content: "\f00d";
}

.chatbot-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: #DC3545;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  color: #fff;
}

/* Chat Window - Professional card design */
.chatbot-window {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 480px;
  max-height: 70vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
}

.chatbot-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Header - Clean, professional */
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--primary-color);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chatbot-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chatbot-status {
  font-size: 0.7rem;
  opacity: 0.85;
  color: #86EFAC;
  font-weight: 500;
}

.chatbot-header-actions {
  display: flex;
  gap: 4px;
}

.chatbot-header-actions button {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.8rem;
}

.chatbot-header-actions button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Messages Area - Clean background */
.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F8F9FA;
}

/* Individual Messages */
.chatbot-message {
  max-width: 82%;
  animation: chatFadeIn 0.2s ease;
}

.chatbot-message.user {
  align-self: flex-end;
}

.chatbot-message.bot {
  align-self: flex-start;
}

/* Message Bubbles - Soft rounded, not pill-shaped */
.message-content {
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  border-radius: 10px;
}

.chatbot-message.user .message-content {
  background: var(--primary-color);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chatbot-message.bot .message-content {
  background: #fff;
  color: var(--gray-800);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-200);
}

.chatbot-message.bot .message-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.chatbot-message.bot .message-content a:hover {
  text-decoration: underline;
}

.message-time {
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 4px;
  text-align: right;
}

.chatbot-message.bot .message-time {
  text-align: left;
}

/* Typing Indicator - Minimal, professional */
.chatbot-message.typing .message-content {
  padding: 12px 16px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typingPulse 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Quick Reply Categories - Professional chips */
.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--gray-200);
}

.quick-reply-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-reply-btn:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
  color: var(--gray-800);
}

/* Option Pills in Messages */
.chatbot-options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
}

.option-pill {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-color);
  background: rgba(11, 60, 93, 0.08);
  border: 1px solid rgba(11, 60, 93, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.option-pill:hover {
  background: rgba(11, 60, 93, 0.12);
  border-color: rgba(11, 60, 93, 0.25);
}

/* Input Area - Professional support input */
.chatbot-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--gray-200);
}

#chatbot-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

#chatbot-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.1);
}

#chatbot-input::placeholder {
  color: var(--gray-400);
}

#chatbot-send {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chatbot-send:hover {
  background: var(--primary-dark);
}

#chatbot-send:active {
  transform: scale(0.96);
}

/* Dark Mode Support */
[data-theme="dark"] .chatbot-window {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .chatbot-messages {
  background: var(--bg-secondary);
}

[data-theme="dark"] .chatbot-message.bot .message-content {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .chatbot-quick-replies,
[data-theme="dark"] .chatbot-input-area {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .quick-reply-btn {
  background: var(--bg-hover);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

[data-theme="dark"] .quick-reply-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] #chatbot-input {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .option-pill {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.2);
  color: var(--primary-color);
}

/* ============================================
   TDL CARDS GRID
   ============================================ */

.tdl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.tdl-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.tdl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tdl-card-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.tdl-card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.tdl-card-meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-bottom: var(--space-4);
}

.tdl-card-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.tdl-download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.tdl-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(45, 122, 255, 0.4);
}

/* ============================================
   DARK MODE - NAVBAR HOVER FIX
   ============================================ */

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: #00AEEF;
}

[data-theme="dark"] .mobile-drawer a:hover,
[data-theme="dark"] .mobile-drawer a.active {
  color: #00AEEF;
}

/* Mobile responsive chatbot */
@media (max-width: 480px) {
  .chatbot-widget {
    bottom: var(--space-4);
    right: var(--space-4);
  }

  .chatbot-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .chatbot-window {
    bottom: 70px;
    width: 100%;
    max-width: calc(100vw - 16px);
    right: -8px;
    height: 60vh;
  }
}

/* ============================================
   COMPREHENSIVE DARK MODE OVERRIDES
   Professional Corporate Theme
   ============================================ */

/* === Navbar Dark Mode === */
[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-links a {
  color: var(--text-secondary);
}

[data-theme="dark"] .brand-name .k1 {
  color: #FFFFFF;
}

[data-theme="dark"] .brand-name .k2 {
  color: #60A5FA;
}

/* === Cards Dark Mode === */
[data-theme="dark"] .card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .card-glass {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card-gradient::before {
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 100%);
}

[data-theme="dark"] .card-icon {
  background: rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .card-title {
  color: var(--text-primary);
}

[data-theme="dark"] .card-text {
  color: var(--text-secondary);
}

/* === TDL Cards Dark Mode === */
[data-theme="dark"] .tdl-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .tdl-card-icon {
  background: rgba(96, 165, 250, 0.15);
  color: var(--primary-color);
}

[data-theme="dark"] .tdl-card-title {
  color: var(--text-primary);
}

[data-theme="dark"] .tdl-card-meta {
  color: var(--text-secondary);
}

/* === Forms Dark Mode === */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .form-label {
  color: var(--text-primary);
}

/* === Buttons Dark Mode === */
[data-theme="dark"] .btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-ghost {
  color: var(--text-secondary);
}

[data-theme="dark"] .btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* === Footer Dark Mode === */
[data-theme="dark"] .footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-brand-name .k1 {
  color: #FFFFFF;
}

[data-theme="dark"] .footer-brand-name .k2 {
  color: #60A5FA;
}

[data-theme="dark"] .footer-description {
  color: var(--text-secondary);
}

[data-theme="dark"] .footer-links h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .footer-links ul li,
[data-theme="dark"] .footer-links ul li a {
  color: var(--text-secondary);
}

[data-theme="dark"] .footer-links ul li a:hover {
  color: var(--primary-color);
}

[data-theme="dark"] .footer-social a {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

[data-theme="dark"] .footer-social a:hover {
  background: var(--primary-color);
  color: var(--text-inverse);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: var(--border-color);
}

[data-theme="dark"] .footer-copyright {
  color: var(--text-muted);
}

/* === Sections Dark Mode === */
[data-theme="dark"] .section {
  background: var(--bg-primary);
}

[data-theme="dark"] .bg-gray {
  background: var(--bg-secondary) !important;
}

[data-theme="dark"] .section-badge {
  background: rgba(96, 165, 250, 0.15);
  color: var(--primary-color);
}

[data-theme="dark"] .section-title {
  color: var(--text-primary);
}

[data-theme="dark"] .section-subtitle {
  color: var(--text-secondary);
}

/* === Features Dark Mode === */
[data-theme="dark"] .feature-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .feature-icon {
  background: rgba(96, 165, 250, 0.15);
  color: var(--primary-color);
}

[data-theme="dark"] .feature-content h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .feature-content p {
  color: var(--text-secondary);
}

/* === Testimonials Dark Mode === */
[data-theme="dark"] .testimonial-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .testimonial-content {
  color: var(--text-secondary);
}

[data-theme="dark"] .testimonial-name {
  color: var(--text-primary);
}

[data-theme="dark"] .testimonial-role {
  color: var(--text-muted);
}

/* === Pricing Dark Mode === */
[data-theme="dark"] .pricing-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .pricing-card.featured {
  border-color: var(--primary-color);
}

[data-theme="dark"] .pricing-price {
  color: var(--text-primary);
}

[data-theme="dark"] .pricing-features li {
  color: var(--text-secondary);
}

/* === Alerts Dark Mode === */
[data-theme="dark"] .alert {
  border-radius: 8px;
}

[data-theme="dark"] .alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

[data-theme="dark"] .alert-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
}

[data-theme="dark"] .alert-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
}

[data-theme="dark"] .alert-info {
  background: var(--info-bg);
  color: var(--info-text);
  border: 1px solid var(--info-border);
}

/* === Toast Dark Mode === */
[data-theme="dark"] .toast {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* === Mobile Drawer Dark Mode === */
[data-theme="dark"] .mobile-drawer {
  background: rgba(15, 23, 42, 0.98);
  border-left: 1px solid var(--border-color);
}

[data-theme="dark"] .mobile-drawer a {
  color: var(--text-secondary);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .mobile-drawer a:hover,
[data-theme="dark"] .mobile-drawer a.active {
  color: var(--primary-color);
}

[data-theme="dark"] .drawer-cta {
  background: var(--gradient-primary);
}

/* ============================================
   THEME TOGGLE BUTTON - ENHANCED STYLING
   ============================================ */
.theme-toggle {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: var(--z-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease, background-color var(--transition-theme), border-color var(--transition-theme);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.theme-toggle:active {
  transform: scale(0.95);
}

[data-theme="dark"] .theme-toggle {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: #FCD34D;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .theme-toggle:hover {
  border-color: #FCD34D;
  color: #FCD34D;
}

/* Smooth transition for theme changes */
*,
*::before,
*::after {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-duration: 0ms;
}

html[data-theme] *,
html[data-theme] *::before,
html[data-theme] *::after {
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

/* Exclude animations and transforms from theme transitions */
.animate-on-scroll,
.hero-float-card,
.hero-image-wrapper,
.btn,
.card,
.theme-toggle {
  transition-property: background-color, border-color, color, fill, stroke, transform, box-shadow, opacity;
}

/* ============================================
   HOVER & ACTIVE STATE FIXES - Production Ready
   ============================================ */

/* === NAVBAR LINKS ON HERO (Default - White) === */
.navbar:not(.scrolled) .nav-links a:not(.nav-cta) {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar:not(.scrolled) .nav-links a:not(.nav-cta):hover {
  color: #1f2933 !important;
  text-shadow: none;
  transition: color 0.3s ease;
}

.navbar:not(.scrolled) .nav-links a.active:not(.nav-cta) {
  color: #ffffff !important;
  font-weight: 700;
  position: relative;
}

.navbar:not(.scrolled) .nav-links a.active:not(.nav-cta)::after {
  width: 80% !important;
  height: 3px !important;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.7)) !important;
  opacity: 1;
}

/* Nav CTA styling is defined globally above - no overrides needed here */

/* Brand name white on hero */
.navbar:not(.scrolled) .brand-name .k1 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.navbar:not(.scrolled) .brand-name .k2 {
  color: #FFC107 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Hamburger white on hero */
.navbar:not(.scrolled) .hamburger span {
  background: #ffffff;
}

/* === NAVBAR LINKS AFTER SCROLL (Dark) === */
.navbar.scrolled .nav-links a {
  color: #1a202c !important;
  text-shadow: none;
  transition: all 0.3s ease;
}

.navbar.scrolled .nav-links a:hover {
  color: #00AEEF !important;
}

.navbar.scrolled .nav-links a.active {
  color: #00AEEF !important;
  font-weight: 700;
}

.navbar.scrolled .nav-links a.active::after {
  width: 80% !important;
  height: 3px !important;
  background: linear-gradient(90deg, #00AEEF, #1E90FF) !important;
  opacity: 1;
}

/* Brand name dark on scroll */
.navbar.scrolled .brand-name .k1 {
  color: #1a202c !important;
}

.navbar.scrolled .brand-name .k2 {
  color: #00AEEF !important;
}

/* Hamburger dark on scroll */
.navbar.scrolled .hamburger span {
  background: #1a202c;
}

/* === DARK MODE - HERO STATE === */
[data-theme="dark"] .navbar:not(.scrolled) {
  background: rgba(15, 23, 42, 0.3);
}

[data-theme="dark"] .navbar:not(.scrolled) .nav-links a:not(.nav-cta) {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .navbar:not(.scrolled) .nav-links a:not(.nav-cta):hover {
  color: #38BDF8 !important;
}

[data-theme="dark"] .navbar:not(.scrolled) .nav-links a:not(.nav-cta).active {
  color: #38BDF8 !important;
}

[data-theme="dark"] .navbar:not(.scrolled) .nav-links a:not(.nav-cta).active::after {
  background: linear-gradient(90deg, #38BDF8, #60A5FA) !important;
}

[data-theme="dark"] .navbar:not(.scrolled) .brand-name .k1 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .navbar:not(.scrolled) .brand-name .k2 {
  color: #FFC107 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .navbar:not(.scrolled) .hamburger span {
  background: #ffffff;
}

/* === DARK MODE - SCROLLED STATE === */
[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .navbar.scrolled .nav-links a:not(.nav-cta) {
  color: #e5e7eb !important;
}

[data-theme="dark"] .navbar.scrolled .nav-links a:not(.nav-cta):hover {
  color: #38BDF8 !important;
}

[data-theme="dark"] .navbar.scrolled .nav-links a:not(.nav-cta).active {
  color: #38BDF8 !important;
}

[data-theme="dark"] .navbar.scrolled .nav-links a:not(.nav-cta).active::after {
  background: linear-gradient(90deg, #38BDF8, #60A5FA) !important;
}

[data-theme="dark"] .navbar.scrolled .brand-name .k1 {
  color: #ffffff !important;
}

[data-theme="dark"] .navbar.scrolled .hamburger span {
  background: #e5e7eb;
}

/* === SMOOTH NAVBAR TRANSITION === */
.navbar,
.navbar .nav-links a,
.navbar .brand-name .k1,
.navbar .brand-name .k2,
.navbar .hamburger span {
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar.scrolled .nav-links a:not(.nav-cta):hover,
[data-theme="dark"] .navbar.scrolled .nav-links a:not(.nav-cta).active {
  color: #38BDF8 !important;
}

/* === MOBILE DRAWER ACTIVE LINK === */
.mobile-drawer a.active {
  color: #00AEEF !important;
  font-weight: 700;
  border-left: 4px solid #00AEEF;
  padding-left: calc(var(--space-4) - 4px);
  background: rgba(0, 174, 239, 0.1);
}

.mobile-drawer a:hover {
  color: #00AEEF !important;
  background: rgba(0, 174, 239, 0.08);
  transition: all 0.3s ease;
}

[data-theme="dark"] .mobile-drawer a.active {
  color: #38BDF8 !important;
  border-left-color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
}

[data-theme="dark"] .mobile-drawer a:hover {
  color: #38BDF8 !important;
  background: rgba(56, 189, 248, 0.08);
}

/* === SERVICE CARDS - Text White on Hover === */
.card.card-gradient {
  transition: all 0.3s ease;
}

.card.card-gradient:hover {
  background: linear-gradient(135deg, #0B3C5D 0%, #328CC1 100%);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 60, 93, 0.25);
}

.card.card-gradient:hover .card-title,
.card.card-gradient:hover .card-text,
.card.card-gradient:hover h3,
.card.card-gradient:hover p {
  color: #ffffff !important;
}

.card.card-gradient:hover .card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.card.card-gradient:hover .card-icon i {
  color: #ffffff !important;
}

.card.card-gradient:hover .btn-ghost {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card.card-gradient:hover .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* === DARK MODE SERVICE CARDS === */
[data-theme="dark"] .card.card-gradient:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .card.card-gradient:hover .card-title,
[data-theme="dark"] .card.card-gradient:hover .card-text,
[data-theme="dark"] .card.card-gradient:hover h3,
[data-theme="dark"] .card.card-gradient:hover p {
  color: #ffffff !important;
}

[data-theme="dark"] .card.card-gradient:hover .card-icon {
  background: rgba(255, 255, 255, 0.2);
}

/* === FEATURE CARDS - Smooth Hover === */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background: var(--gradient-primary);
  color: #ffffff;
  transition: all 0.3s ease;
}

.feature-icon {
  transition: all 0.3s ease;
}

/* === TESTIMONIAL CARDS - Smooth Hover === */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* === PRICING CARDS - Smooth Hover === */
.pricing-card {
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
  transform: scale(1.07) translateY(-4px);
}

/* === GLOBAL SMOOTH TRANSITIONS === */
a,
button,
.btn,
.card,
.nav-links a,
.footer-social a,
.feature-card,
.testimonial-card,
.pricing-card {
  transition: all 0.3s ease;
}

/* === FOOTER LINKS HOVER === */
.footer-links a {
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #00AEEF !important;
  padding-left: 5px;
}

.footer-social a {
  transition: all 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.3);
}

/* ============================================
   FAQ SECTION STYLES
   ============================================ */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.faq-question i {
  color: var(--primary-color);
  font-size: var(--text-xl);
  margin-top: 2px;
  flex-shrink: 0;
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  padding-left: calc(var(--text-xl) + var(--space-3));
}

.faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.faq-answer a:hover {
  color: var(--primary-light);
}

/* Dark mode FAQ */
[data-theme="dark"] .faq-item {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .faq-item:hover {
  border-color: var(--primary-light);
}

/* FAQ Responsive */
@media (max-width: 768px) {
  .faq-item {
    padding: var(--space-5);
  }

  .faq-question {
    font-size: var(--text-base);
  }

  .faq-answer {
    padding-left: 0;
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  .faq-container {
    gap: var(--space-4);
  }

  .faq-item {
    padding: var(--space-4);
  }

  .faq-question {
    flex-direction: column;
    gap: var(--space-2);
  }

  .faq-question i {
    font-size: var(--text-lg);
  }
}

/* ============================================
   SOCIAL MEDIA BRAND HOVER COLORS
   Icon-specific hover styles with official brand colors
   ============================================ */

/* === Base Transition for Social Icons === */
.footer-social a,
.drawer-social a,
.btn-icon.btn-ghost,
.btn.btn-ghost.btn-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === FACEBOOK - #1877F2 === */
.footer-social a:has(.fa-facebook-f):hover,
.drawer-social a:has(.fa-facebook-f):hover {
  background: #1877F2 !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.5);
  transform: translateY(-2px);
}

/* === INSTAGRAM - Gradient === */
.footer-social a:has(.fa-instagram):hover,
.drawer-social a:has(.fa-instagram):hover {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #5851DB) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(221, 42, 123, 0.5);
  transform: translateY(-2px);
}

/* === TWITTER / X - #1DA1F2 === */
.footer-social a:has(.fa-twitter):hover,
.drawer-social a:has(.fa-twitter):hover,
.btn-icon:has(.fa-twitter):hover,
.btn.btn-ghost:has(.fa-twitter):hover {
  background: #1DA1F2 !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(29, 161, 242, 0.5);
  transform: translateY(-2px);
}

/* === YOUTUBE - #FF0000 === */
.footer-social a:has(.fa-youtube):hover,
.drawer-social a:has(.fa-youtube):hover {
  background: #FF0000 !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5);
  transform: translateY(-2px);
}

/* === LINKEDIN - #0A66C2 === */
.btn-icon:has(.fa-linkedin-in):hover,
.btn.btn-ghost:has(.fa-linkedin-in):hover,
.footer-social a:has(.fa-linkedin-in):hover,
.drawer-social a:has(.fa-linkedin-in):hover {
  background: #0A66C2 !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(10, 102, 194, 0.5);
  transform: translateY(-2px);
}

/* === WHATSAPP - #25D366 === */
.footer-social a:has(.fa-whatsapp):hover,
.drawer-social a:has(.fa-whatsapp):hover,
.btn-icon:has(.fa-whatsapp):hover {
  background: #25D366 !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

/* === Dark Mode Support === */
[data-theme="dark"] .footer-social a:has(.fa-facebook-f):hover,
[data-theme="dark"] .drawer-social a:has(.fa-facebook-f):hover {
  background: #1877F2 !important;
  color: #fff !important;
  box-shadow: 0 4px 25px rgba(24, 119, 242, 0.6);
}

[data-theme="dark"] .footer-social a:has(.fa-instagram):hover,
[data-theme="dark"] .drawer-social a:has(.fa-instagram):hover {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #5851DB) !important;
  color: #fff !important;
  box-shadow: 0 4px 25px rgba(221, 42, 123, 0.6);
}

[data-theme="dark"] .footer-social a:has(.fa-twitter):hover,
[data-theme="dark"] .drawer-social a:has(.fa-twitter):hover,
[data-theme="dark"] .btn-icon:has(.fa-twitter):hover,
[data-theme="dark"] .btn.btn-ghost:has(.fa-twitter):hover {
  background: #1DA1F2 !important;
  color: #fff !important;
  box-shadow: 0 4px 25px rgba(29, 161, 242, 0.6);
}

[data-theme="dark"] .footer-social a:has(.fa-youtube):hover,
[data-theme="dark"] .drawer-social a:has(.fa-youtube):hover {
  background: #FF0000 !important;
  color: #fff !important;
  box-shadow: 0 4px 25px rgba(255, 0, 0, 0.6);
}

[data-theme="dark"] .btn-icon:has(.fa-linkedin-in):hover,
[data-theme="dark"] .btn.btn-ghost:has(.fa-linkedin-in):hover,
[data-theme="dark"] .footer-social a:has(.fa-linkedin-in):hover,
[data-theme="dark"] .drawer-social a:has(.fa-linkedin-in):hover {
  background: #0A66C2 !important;
  color: #fff !important;
  box-shadow: 0 4px 25px rgba(10, 102, 194, 0.6);
}

/* ============================================
   SUPPORT / BUY ME A COFFEE SECTION
   Post-download appreciation card
   Hidden by default, appears after download starts
   ============================================ */

/* Hidden by default - slides in after download */
.support-coffee-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFF5DC 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 193, 7, 0.2);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;

  /* Hidden by default */
  opacity: 0;
  max-height: 0;
  padding: 0;
  margin: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Coffee cup background - subtle watermark effect */
.support-coffee-card::before {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23A16207' d='M75 35h-5V25c0-8.3-6.7-15-15-15H35c-8.3 0-15 6.7-15 15v10h-5c-2.8 0-5 2.2-5 5v10c0 8.3 6.7 15 15 15h2.5c3.3 8.5 11.4 14.5 20.8 14.9V90H35c-2.8 0-5 2.2-5 5s2.2 5 5 5h25c2.8 0 5-2.2 5-5s-2.2-5-5-5h-8.7V79.9c9.4-.4 17.5-6.4 20.8-14.9H75c8.3 0 15-6.7 15-15V40c0-2.8-2.2-5-5-5zM30 25c0-2.8 2.2-5 5-5h25c2.8 0 5 2.2 5 5v10H30V25zm50 25c0 2.8-2.2 5-5 5h-1.2c.1-1 .2-2 .2-3V45h6v5z'/%3E%3Cellipse fill='%23A16207' cx='45' cy='15' rx='15' ry='3' opacity='0.3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  filter: blur(1px);
  pointer-events: none;
  z-index: 0;
}

/* Visible state - triggered by JS after download */
.support-coffee-card.visible {
  opacity: 1;
  max-height: 500px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  transform: translateY(0);
  pointer-events: auto;
}

.support-coffee-card:hover {
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.2);
}

/* Content must be above background */
.support-coffee-card>* {
  position: relative;
  z-index: 1;
}

.support-coffee-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #92400E;
  margin-bottom: 0.5rem;
}

.support-coffee-text {
  font-size: 0.9rem;
  color: #78716C;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.support-coffee-qr {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid #FCD34D;
  background: #fff;
  padding: 4px;
}

.support-coffee-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.support-coffee-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #059669;
  font-weight: 500;
  margin-bottom: 0;
}

.support-coffee-security i {
  font-size: 0.8rem;
}

/* Dark Mode Support */
[data-theme="dark"] .support-coffee-card {
  background: linear-gradient(135deg, #422006 0%, #3C1A00 100%);
  border-color: rgba(251, 191, 36, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .support-coffee-card::before {
  opacity: 0.06;
  filter: brightness(0.5) blur(1px);
}

[data-theme="dark"] .support-coffee-title {
  color: #FBBF24;
}

[data-theme="dark"] .support-coffee-text {
  color: #D6D3D1;
}

[data-theme="dark"] .support-coffee-qr {
  border-color: #B45309;
}

[data-theme="dark"] .support-coffee-security {
  color: #34D399;
}

/* Responsive */
@media (max-width: 768px) {
  .support-coffee-card.visible {
    padding: 1.25rem;
    margin-top: 1rem;
  }

  .support-coffee-qr {
    width: 120px;
    height: 120px;
  }

  .support-coffee-text {
    font-size: 0.85rem;
  }

  .support-coffee-card::before {
    width: 150px;
    height: 150px;
    bottom: -10px;
    right: -10px;
  }
}

/* ============================================
   ADVERTISEMENT SLOTS - AdSense Compliant
   Policy-compliant, non-intrusive ad placements
   ============================================ */

/* === Base Ad Slot Container === */
.ad-slot {
  display: block;
  width: 100%;
  margin: var(--space-8) 0;
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  
  /* CRITICAL: Container is NOT clickable - only ad content is */
  pointer-events: none;
  
  /* Visual separation from content */
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-theme), border-color var(--transition-theme);
}

/* Ad Content Wrapper - This IS clickable */
.ad-slot .ad-content {
  display: inline-block;
  pointer-events: auto;
  min-height: 90px;
  width: 100%;
}

/* Advertisement Label */
.ad-slot::before {
  content: 'Advertisement';
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  pointer-events: none;
}

/* === Horizontal Banner Ad (728x90, responsive) === */
.ad-slot-horizontal {
  max-width: 100%;
  padding: var(--space-3) var(--space-4);
}

.ad-slot-horizontal .ad-content {
  max-width: 728px;
  min-height: 90px;
  margin: 0 auto;
}

/* === Sidebar Ad (300x250, 300x600) === */
.ad-slot-sidebar {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-3);
}

.ad-slot-sidebar .ad-content {
  max-width: 300px;
  min-height: 250px;
}

/* === Inline Content Ad === */
.ad-slot-inline {
  max-width: 100%;
  margin: var(--space-6) 0;
  padding: var(--space-3);
}

.ad-slot-inline .ad-content {
  max-width: 336px;
  min-height: 280px;
  margin: 0 auto;
}

/* === In-Article Ad === */
.ad-slot-article {
  max-width: 100%;
  margin: var(--space-8) auto;
  padding: var(--space-4);
  border-left: 3px solid var(--primary-color);
  background: linear-gradient(90deg, rgba(30, 136, 229, 0.03) 0%, var(--bg-secondary) 50%);
}

.ad-slot-article .ad-content {
  max-width: 468px;
  min-height: 60px;
  margin: 0 auto;
}

/* === Dark Mode Ad Slots === */
[data-theme="dark"] .ad-slot {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .ad-slot::before {
  color: var(--text-muted);
}

[data-theme="dark"] .ad-slot-article {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.05) 0%, var(--bg-card) 50%);
  border-left-color: var(--primary-color);
}

/* === Responsive Ad Slots === */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .ad-slot {
    margin: var(--space-6) 0;
    padding: var(--space-3);
  }
  
  .ad-slot-horizontal .ad-content {
    max-width: 468px;
    min-height: 60px;
  }
  
  .ad-slot-sidebar {
    max-width: 280px;
  }
  
  .ad-slot-sidebar .ad-content {
    min-height: 200px;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .ad-slot {
    margin: var(--space-4) 0;
    padding: var(--space-2);
    border-radius: var(--radius-md);
  }
  
  .ad-slot::before {
    font-size: 0.65rem;
    margin-bottom: var(--space-1);
  }
  
  .ad-slot-horizontal .ad-content {
    max-width: 320px;
    min-height: 50px;
  }
  
  .ad-slot-sidebar {
    max-width: 100%;
    float: none;
    margin: var(--space-4) auto;
  }
  
  .ad-slot-sidebar .ad-content {
    max-width: 300px;
    min-height: 250px;
  }
  
  .ad-slot-inline .ad-content {
    max-width: 300px;
    min-height: 250px;
  }
  
  .ad-slot-article .ad-content {
    max-width: 320px;
    min-height: 50px;
  }
}

/* Small Mobile (max-width: 479px) */
@media (max-width: 479px) {
  .ad-slot {
    margin: var(--space-3) calc(-1 * var(--space-2));
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .ad-slot-horizontal .ad-content,
  .ad-slot-inline .ad-content,
  .ad-slot-article .ad-content {
    max-width: 100%;
  }
}

/* === Hide ads when printing === */
@media print {
  .ad-slot {
    display: none !important;
  }
}