/* Modern Email Verifier - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors inspired by the logo */
  --primary-blue: #2563eb;
  --primary-green: #10b981;
  --accent-red: #ef4444;
  --dark-navy: #0f172a;
  --light-gray: #f8fafc;
  --medium-gray: #64748b;
  --border-color: #e2e8f0;
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-glass: 0 8px 32px 0 rgba(31,38,135,0.37);
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
  body { background: var(--color-background); color: var(--color-text); }
  .card { background: #1e293b; border-color: var(--border-color); }
  .input { background: #1e293b; border-color: var(--border-color); color: var(--dark-navy); }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark-navy);
  background: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}
h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: 2.5rem;
  font-weight: 700;
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: 2rem;
  font-weight: 600;
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: 1.5rem;
  font-weight: 600;
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}
p {
  margin-bottom: var(--space-md);
  color: var(--medium-gray);
  line-height: 1.7;
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left var(--transition-slow);
}
.btn:hover::before {
  left: 100%;
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background-color: #1d4ed8;
  background: var(--color-primary-hover);
}
.btn-primary:active {
  background: var(--color-primary-active);
}
.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow-lg);
  background: var(--color-secondary);
  color: var(--color-text);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: var(--color-secondary-hover);
}
.btn-secondary:active {
  background: var(--color-secondary-active);
}
.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  background: var(--color-secondary);
}
.btn-glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}
.btn-glass:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}
.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}
.btn--full-width {
  width: 100%;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-block { display: block; width: 100%; }
.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--primary-blue);
  border: 1px solid rgba(214,228,255,1);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-ghost:hover {
  background: rgba(37,99,235,0.06);
}
.btn-link-danger {
  background: transparent;
  color: var(--accent-red);
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-link-danger:hover { color: #9b1c1c; text-decoration: underline; }

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}
select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}
.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}
.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  display: block;
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  color: #374151; /* gray-700 */
  margin-bottom: 0.375rem;
}
.form-group {
  margin-bottom: var(--space-16);
}
.form-field {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field input[type="file"],
.form-field textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  transition: border-color 0.2s;
}
.form-field .error-message {
  color: red;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}
.form-row { position: relative; width: 100%; margin-top: 0.75rem; }
.form-row-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.form-description {
  color: #374151; /* gray-700 */
  margin-bottom: 1rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #111827; /* gray-900 */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
  outline: none;
}
.form-checkbox {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background: white;
  cursor: pointer;
  accent-color: var(--primary-blue); /* modern browsers */
}
.checkbox-label { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }

/* Inputs */
.input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: all var(--transition-normal);
  background: white;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: white;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #111827; /* gray-900 */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
  outline: none;
}
.input.mb-4 { margin-bottom: 1rem; }
.input.mb-6 { margin-bottom: 1.5rem; }
.input-error {
  border: 1px solid #dc2626; /* red-600 */
}
.input--error {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}
.input-half { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.input-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace; }
.input-multiselect { min-height: 6rem; }
.input-row { display: flex; gap: 0.5rem; align-items: center; }

/* Password toggle group */
.password-input-group {
  position: relative;
  width: 100%;
}
.password-toggle {
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  padding: 0.25rem;
  color: var(--medium-gray);
}
.password-toggle:hover {
  color: var(--primary-blue);
}
.password-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
  border-radius: 6px;
}
.password-input-group .input {
  padding-right: 3rem; /* space for the toggle button */
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: #1f2937;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  box-shadow: var(--shadow-md);
}
.card-glass {
  background: #ffffff;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-glass);
}
.card__body {
  padding: var(--space-16);
}
.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}
.card-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1f2937;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}
.card-title-with-icon { display: flex; align-items: center; gap: 0.5rem; }
.card-centered {
  max-width: 720px;
  margin: 3rem auto;
  padding: 1.5rem;
}
.auth-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem; /* rounded-xl */
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px; /* max-w-md */
}
.metric-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: white;
  overflow: hidden;
}
.section-card { padding: 1.5rem; border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-lg); }
.plan-card { text-align: center; padding: 1.5rem; }
.feature-card {
  background: white;
  border-radius: 1rem; /* rounded-2xl look */
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.18s ease;
}
.feature-card:hover {
  box-shadow: 0 18px 40px rgba(37,99,235,0.12);
  transform: translateY(-4px);
}
.benefit-card { padding: 1.25rem; }
.stats-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  color: #111827;
}
.chart-card { /* for chart row that spans full width visually */
  padding: 1.5rem;
}
.modal-card {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
}
.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.support-form {
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.faq-item {
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
}
.custom-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.payment-card {
  max-width: 600px;       /* same as original inline max-width */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.form-card {
  background: white;
  padding: 2rem; /* p-8 equivalent */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  display: inline-block;
  margin: 14px 0;
  padding: 14px;
  border-radius: 6px;
  background: #e9f7ef;
  color: #14532d;
}
.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}
.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}
.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}
.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}
.status-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  color: white;
  user-select: none;
  display:inline-block; padding: 0.1rem 0.5rem; font-size: 0.75rem; font-weight:600; border-radius: 9999px; user-select:none; color:white; 
}
.status-valid {
  background-color: var(--primary-green);
  color: #065f46; /* dark green */
  background-color: var(--primary-green); color: white; 
}
.status-error {
  background-color: var(--accent-red);
  color: #7f1d1d; /* dark red */
}
.status-warning {
  background-color: #fbbf24; /* yellow-400 */
  color: #78350f; /* dark yellow */
  background-color: #f59e0b; color: #341a0a; 
}
.status-inline-badge {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}
.status-green {
  background-color: rgba(var(--color-success-rgb), 0.15);
  color: var(--color-success);
  border: 1px solid rgba(var(--color-success-rgb), 0.25);
}
.status-red {
  background-color: rgba(var(--color-error-rgb), 0.15);
  color: var(--color-error);
  border: 1px solid rgba(var(--color-error-rgb), 0.25);
}
.status-yellow {
  background-color: rgba(var(--color-warning-rgb), 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(var(--color-warning-rgb), 0.25);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: auto;
  display:inline-flex; align-items:center; gap:0.4rem; padding:0.25rem 0.5rem; border-radius:9999px; font-size:0.75rem; font-weight:600;
}
.status-up { background-color: #dcfce7; color: #065f46; } /* green-100 / green-800 */
.status-down { background-color: #fee2e2; color: #7f1d1d; } /* red-100 / red-800 */
.status-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; display:inline-block; }
.status-dot-up { background-color: #16a34a; } /* green-500 */
.status-dot-down { background-color: #dc2626; } /* red-600 */
.status-closed {
  background: #d1fae5; /* green-100 */
  color: #065f46; /* green-800 */
}
.status-progress {
  background: #fef3c7; /* yellow-100 */
  color: #92400e; /* yellow-800 */
}
.status-open {
  background: #dbeafe; /* blue-100 */
  color: #1e40af; /* blue-800 */
}
.status-success { background: #dcfce7; color: #065f46; }
.status-warning { background: #fef3c7; color: #92400e; }
.status-danger { background: #fee2e2; color: #7f1d1d; }

/* Container layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}
@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utilities */
.section {
  padding: var(--space-3xl) 0;
}
.text-center {
  text-align: center;
}
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}
.gap-3 { gap: var(--space-12); }

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}
.mb-4 { margin-bottom: var(--space-16); }
.mb-6 { margin-bottom: var(--space-24); }
.mb-3 { margin-bottom: var(--space-12); }
.mt-6 { margin-top: var(--space-24); }
.mt-3 { margin-top: var(--space-12); }
.mt-2 { margin-top: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem !important; }
.mt-10 { margin-top: 2.5rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}
.px-4 { padding-left: var(--space-16); padding-right: var(--space-16); }
.py-2 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-4 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.p-3 { padding: var(--space-12); }
.p-4 { padding: var(--space-16); }

.block {
  display: block;
}
.hidden {
  display: none !important;
}
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; align-items: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; 
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}
.overflow-x-auto { overflow-x: auto; }
.text-center { text-align: center; }
.italic { font-style: italic; }
.rounded-full { border-radius: var(--radius-full); }
.border-b { border-bottom: 1px solid var(--color-border); }
.text-gray-600 { color: #4b5563; color: var(--color-text-secondary); }
.text-gray-700 { color: #374151; color: var(--color-text); }
.text-gray-500 { color: #6b7280; color: var(--color-text-secondary); }
.text-red-600 { color: var(--accent-red); color: var(--color-error); }
.text-blue-600 { color: var(--color-primary); }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-medium { font-weight: var(--font-weight-medium); font-weight: 500; }
.font-bold { font-weight: var(--font-weight-bold); font-weight: 700; }
.hover-text-blue-200:hover {
  color: var(--color-primary-hover);
}
.hover-underline:hover {
  text-decoration: underline;
}
.hover-bg-gray-50:hover {
  background-color: var(--color-secondary);
}
.opacity-50 { opacity: 0.5 !important; }
.cursor-not-allowed { cursor: not-allowed !important; }
.border-red-500 { border-color: var(--accent-red) !important; }
.break-all { word-break: break-all; }
.align-center { align-items: center; }
.flex-grow { flex: 1 1 auto; }
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.text-small { font-size: 0.875rem; }
.muted-small { color: #6b7280; font-size: 0.875rem; color: #6b7280; font-size: 0.95rem; }
.text-danger { color: var(--accent-red); }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out; }
.animate-float     { animation: float 3s ease-in-out infinite; }
.animate-pulse     { animation: pulse 2s ease-in-out infinite; }

/* Hamburger menu */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.show { display: flex; flex-direction: column; background: white; position: absolute; top: 100%; left: 0; right:0; padding: 1rem; z-index: 60; }
  .hamburger { display: block; }
  .brand-title { font-size: 18px; }
  .brand-slogan { font-size: 12px; }
}
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
}

/* Header & Navigation */
.header {
  background: white;
  color: black;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease;
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-weight: bold;
  font-size: 1.25rem;
  color: black;
  margin: 0;
}
.brand-slogan {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0;
}
.nav-link {
  color: black;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}
.nav-link.active {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  font-weight: 600; color: var(--primary-blue); background: rgba(37,99,235,0.06); border-radius: 0.5rem; 
  color: var(--primary-blue);
  background: rgba(37,99,235,0.06);
  border-radius: var(--radius-md);
  padding: 0.25rem 0.5rem;
}

/* Logo Sizes */
.header-logo {
  width: 100px;
  height: auto;
}
.footer-logo {
  width: 100px;
  height: auto;
}

/* Footer */
.footer {
  background: #000000;
  color: #d1d5db;
  padding: 0.75rem 0 0.75rem;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h3 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: white;
}
.footer-brand {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
}
.footer-brand-title {
  font-weight: bold;
  font-size: 1.25rem;
  color: white;
  margin: 0;
}
.footer-brand-slogan {
  font-size: 0.875rem;
  color: #d1d5db;
  margin: 0;
}

/* Notification components */
.icon-bell { width: 24px; height: 24px; }
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  height: 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------ Notification hide & scrollbar rules (ADD) ------------------ */
/* persistent hidden state (used by JS) */
.notification-badge.hidden,
.notification-badge.read {
  display: none !important;
}

/* Optional: also hide badge visually if parent is focus-within or expanded (fallback) */
.notification-container:focus-within .notification-badge,
.notification-button[aria-expanded="true"] .notification-badge {
  display: none !important;
}

/* Remove the visible vertical scrollbar on the dropdown (keeps scrolling but hides the bar) */
/* WebKit (Chrome, Edge, Safari) */
.notification-dropdown::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* Firefox */
.notification-dropdown {
  scrollbar-width: none; /* hide scrollbar for firefox */
  -ms-overflow-style: none; /* hide scrollbar for IE/Edge legacy */
}

/* Extra: ensure dropdown has padding-right so content doesn't get hidden under invisible scrollbar */
.notification-dropdown {
  padding-right: 8px; /* adjust if items touch the right edge */
}
/* ----------------------------------------------------------------------------- */

.notification-dropdown {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  width: 320px; /* approx 80 * 4px */
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 50;
  overflow-y: auto;
  max-height: 240px; /* max-h-60 */
}
.notification-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background-color: #f9fafb; /* your light gray */
}
.notification-title {
  font-weight: 600;
  font-size: 1.125rem; /* text-lg */
  color: #1f2937; /* gray-800 */
  margin: 0;
}
.notification-list {
  max-height: 240px;
  overflow-y: auto;
}
.notification-item {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}
.notification-item:hover {
  background-color: #f9fafb; /* light hover */
}
.notification-text {
  font-size: 0.875rem; /* text-sm */
  color: #374151; /* gray-700 */
  margin: 0;
}
.notification-container {
  position: relative;
  display: inline-block;
}
.notification-button {
  position: relative;
  background: transparent;
  border: none;
  padding: var(--space-8);
  cursor: pointer;
  transition: color var(--duration-normal) var(--ease-standard);
  color: inherit;
  border-radius: var(--radius-sm);
}
.notification-button:hover {
  color: var(--color-primary-hover);
}
.notification-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.dashboard-heading {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-32);
  color: var(--color-primary);
  letter-spacing: var(--letter-spacing-tight);
}
@media (max-width: 480px) {
  .dashboard-heading {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-24);
  }
  .px-4 {
    padding-left: var(--space-12);
    padding-right: var(--space-12);
  }
  .py-4 {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
  .p-4 {
    padding: var(--space-12);
  }
  .table-cell {
    padding: var(--space-6) var(--space-8);
    font-size: var(--font-size-sm);
  }
  .notification-button {
    padding: var(--space-6);
  }
  .status-inline-badge {
    padding: var(--space-2) var(--space-6);
    font-size: var(--font-size-xs);
  }
  .mb-6 { margin-bottom: var(--space-16); }
  .mt-6 { margin-top: var(--space-16); }
  .gap-3 { gap: var(--space-8); }
}

/* Tables */
.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.875rem;
  color: #4b5563; /* gray-700 */
}
.results-table thead {
  background-color: #f3f4f6; /* gray-100 */
  color: #4b5563; /* gray-700 */
  text-transform: uppercase;
}
.results-table th,
.results-table td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
.results-table tbody tr:hover {
  background-color: #f9fafb; /* light hover */
}
.table-row-hover:hover {
  background-color: #f9fafb;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table-head { background: #f9fafb; }
.table-th {
  text-align: left;
  font-size: 0.75rem; /* text-xs */
  font-weight: 600;
  color: #4b5563;
  padding: 0.75rem 1rem; /* px-4 py-3 */
  text-transform: uppercase;
}
.table-td {
  padding: 0.75rem 1rem; /* px-4 py-3 */
  font-size: 0.875rem;
  color: #111827;
  border-bottom: 1px solid var(--border-color);
}
.table-body tr:last-child .table-td { border-bottom: none; }
.table-empty { text-align: center; color: #6b7280; padding: 1rem; }
.table-cell {
  padding: var(--space-8) var(--space-16);
  text-align: left;
  border-bottom: 1px solid var(--color-card-border-inner);
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  color: #111827;
  border-bottom: 1px solid var(--border-color);
}
.table-wrapper { overflow-x: auto; max-height: 520px; overflow-y: auto; border-radius: var(--radius-md); }
.table-head-cell {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.table-body { background: white; }
.table-row { transition: background 0.15s ease; }
.table-row:hover { background: #f8fafc; }
.custom-table th,
.custom-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
}
.custom-table thead {
  background: #f9fafb; /* gray-50 */
}
.custom-table tbody tr:hover {
  background: #f3f4f6; /* gray-100 */
}
.table-container {
  overflow-x: auto;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px; /* allow horizontal scroll on small screens */
}
.table-head-cell {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}
.table-cell {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: #111827;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table-responsive {
  overflow-x: auto;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  padding: 0.5rem;
}
@media (max-width: 640px) {
  .table-head-cell, .table-cell { padding: 0.45rem 0.6rem; font-size: 0.78rem; min-width: auto; }
  .history-table { min-width: 700px; }
}

/* Icons */
.icon { font-size: 1.25rem; line-height: 1; display: inline-block; vertical-align: middle; }
.icon-blue { color: var(--primary-blue); }
.icon-large { position: absolute; right: 1rem; top: 1rem; font-size: 2.25rem; opacity: 0.5; color: #60a5fa; }
.icon-muted { color: #60a5fa; }
.icon-muted-green { color: #34d399; }
.icon-sm { margin-right: 0.5rem; color: #2563eb; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s;
}
.icon-btn i { font-size: 1rem; }
.icon-btn-primary { background: var(--primary-blue); color: white; }
.icon-btn-primary:hover { background: #1d4ed8; }
.icon-btn-danger { background: var(--accent-red); color: white; }
.icon-btn-danger:hover { background: #b91c1c; }
.icon-svg { width: 20px; height: 20px; margin-right: 0.5rem; }
.feature-icon {
  background: #eff6ff; /* blue-100 */
  color: #2563eb; /* blue-600 */
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.process-icon {
  background: #ecfeff; /* cyan-100 */
  color: #06b6d4; /* cyan-600 */
  width: 64px; height: 64px; border-radius: 9999px;
  display:inline-flex; align-items:center; justify-content:center; margin-bottom: 0.75rem;
  font-size: 1.5rem;
}
.benefit-icon { font-size:1.125rem; color:var(--primary-blue); }
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06); /* subtle glass contrast */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-blue);
  margin: 0 auto 0.75rem auto;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem; /* px-2 py-0.5 */
  font-size: 0.75rem; /* text-xs */
  border-radius: 9999px; /* rounded-full */
  font-weight: 600;
}
.badge-active { background-color: #dcfce7; color: #065f46; } /* green-100 / green-800 */
.badge-free   { background-color: #f3f4f6; color: #374151; } /* gray-100 / gray-800 */

/* Progress bar */
.progress-bar {
  width: 100%;
  background: #e5e7eb; /* gray-200 */
  border-radius: 9999px;
  height: 10px; /* h-2.5 ~ 10px */
  overflow: hidden;
}
.progress-bar-fill {
  background: var(--primary-blue);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}
.progress-track {
  width: 100%;
  height: 0.625rem; /* 10px (~h-2.5) */
  background: #e6e9ee;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--primary-blue);
  border-radius: 9999px;
  transition: width 0.35s ease;
}

/* Links */
.link-primary { color: var(--primary-blue); text-decoration: none; }
.link-primary:hover { text-decoration: underline; color: #1d4ed8; }
.link-primary { color: var(--primary-blue); text-decoration: none; font-weight: 600; }
.link-primary:hover { text-decoration: underline; }

/* Error messages */
.error-message {
  color: red;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
  color: var(--accent-red);
  margin-top: 0.25rem;
  font-size: 0.875rem;
  display: block;
}
.error-message.hidden {
  display: none;
}

/* Charts */
.chart-wrapper {
  width: 100%;
  height: 300px;
  position: relative;
}
.chart-container {
  height: 350px;
  margin-top: 1rem;
  position: relative;
}
.chart-container.chart-large { height: 420px; }
.chart-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Code blocks */
.code-block {
  background: #0f172a;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Flash messages */
.flash-message {
  position: relative;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.flash-message.success {
  background-color: #022c22;  /* green-50 */
  border: 1px solid #16a34a;  /* green-200 */
  color: #86efac;             /* green-800 */
}
.flash-message.error {
  background-color: #2c0b0e;  /* red-50 */
  border: 1px solid #ef4444;  /* red-200 */
  color: #fca5a5;             /* red-800 */
}
.flash-close { position: absolute; top: 0.25rem; right: 0.25rem; background: none; border: none; font-size: 1rem; cursor: pointer; }

/* Social buttons */
.social-list { display:flex; flex-direction:column; gap:0.75rem; align-items:stretch; justify-content:center; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}
.social-btn-google { background: #db4437; }
.social-btn-google:hover { background: #c2332a; }
.social-btn-facebook { background: #1e40af; }
.social-btn-facebook:hover { background: #16357a; }
.social-btn-apple { background: #111827; }
.social-btn-apple:hover { background: #0b0f13; }

/* Modals */
.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-hidden { display: none; }
.modal-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.modal-actions { display:flex; justify-content:flex-end; gap:0.75rem; margin-top: 0.75rem; }

/* Actions */
.action-btn {
  background: transparent;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.375rem;
  font-size: 1rem;
}
.action-btn:hover { background: rgba(37,99,235,0.08); }
.action-green { color: #10b981; }
.action-danger { color: #ef4444; }
.actions-cell { display:flex; gap:0.5rem; align-items:center; }

/* Grids */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem; /* gap-6 */
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .profile-grid { grid-template-columns: repeat(3, 1fr); }
}
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }
.three-column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card-span-2 { /* for the usage chart area that spans two columns on large screens */ }
@media (min-width: 1024px) {
  .three-column-grid { grid-template-columns: 320px 1fr; }
  .card-span-2 { grid-column: span 1; }
}
.two-column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .two-column-grid { grid-template-columns: repeat(2, 1fr); }
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.error-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .error-grid { grid-template-columns: repeat(2, 1fr); }
}
.admin-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .admin-metrics-grid { grid-template-columns: repeat(3, 1fr); }
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem; /* gap-12 ~ 3rem */
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 1.5rem auto;
}
@media (min-width: 768px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Lists */
.stack > * + * { margin-top: 1rem; }
.features-list {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  color: #374151;
  list-style: disc;
  column-count: 1;
  column-gap: 2rem;
}
@media (min-width: 640px) {
  .features-list { column-count: 2; }
}
@media (min-width: 1024px) {
  .features-list { column-count: 3; }
}
.features-list li { break-inside: avoid; margin-bottom: 0.5rem; }
.benefits-list {
  list-style: disc;
  max-width: 700px;
  margin: 1.25rem auto 0 auto;
  padding-left: 1.25rem;
  color: #ffffff;
  display: block;
}
.benefits-list li { margin-bottom: 0.5rem; }
.about-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #374151;
}
.about-list li { margin-bottom: 0.5rem; }
.policy-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: #374151;
}
.policy-list li { margin-bottom: 0.5rem; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-list {
  list-style-type: none;  /* removes bullet points */
  padding-left: 0;
  margin: 1rem 0 0;       /* adds gap above the list (1rem ≈ 16px) */
}


/* Tabs */
.tabs { display:flex; justify-content:center; gap:0.5rem; align-items:center; }
.tab {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  cursor: pointer;
  color: #6b7280; /* gray-500 (inactive) */
}
.tab:focus { outline: 2px solid rgba(37,99,235,0.15); outline-offset: 2px; }
.tab-active {
  color: var(--primary-blue);
  font-weight: 700;
  border-bottom: 2px solid var(--primary-blue);
}
.tab-inactive { color: #6b7280; }

/* Verification results */
.verification-results-header {
  font-size: 1.125rem; /* text-lg */
  font-weight: 600;
  color: #1f2937; /* gray-800 */
  margin-bottom: var(--space-md);
}

/* Mono */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24rem; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(0,0,0,0.08);
  border-top-color: var(--primary-blue, #2563eb);
  animation: spin 0.9s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border-color, #e2e8f0);
  margin: 1.25rem 0; /* approx 20px */
}

/* Debug */
.debug-line {
  font-size: 0.85rem;
  color: #444;
  margin-top: 0.25rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  color: #4b5563;
  font-size: 1rem;
  margin-top: 1rem;
}
.no-records { color: #4b5563; text-align: center; margin-top: 1.5rem; }

/* Auth */
.auth-bg {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%); /* subtle light gradient */
}
.auth-container {
  min-height: 80vh; /* matches min-h-[80vh] */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-brand-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
}
.auth-subtitle {
  font-size: 1.125rem; /* text-xl */
  font-weight: 600;
  color: #111827;
  margin: 0;
}

/* Profile */
.page-title {
  font-size: 1.75rem; /* similar to text-3xl */
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 2rem; /* mb-8 */
  font-size: 1.875rem; /* ~30px */
  font-weight: 700;
  color: #2563eb; /* blue-600 */
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb; /* blue-600 */
  margin-bottom: 1rem;
}
.label { color: #6b7280; font-weight: 500; margin: 0 0 0.25rem 0; display:block; margin-bottom:0.5rem; font-weight:600; color:#374151; } /* gray-600, font-medium */
.value { color: #111827; margin: 0; } /* gray-900 like */
.value.small { font-size: 0.875rem; } /* small value */
.strong { font-weight: 700; }

/* Upgrade Plan */
.plan-price { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); margin: 0.5rem 0 1rem; }
.plan-price-monthly { color: var(--primary-green); }

/* API UI */
.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin-top: 0.25rem;
}
.subheading { font-size: 1rem; font-weight: 600; color: #374151; margin-bottom: 0.5rem; }

/* Admin */
.metric-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}
.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: #000000;
  margin: 0;
}
.section-title { font-size: 1.125rem; font-weight: 600; color: #111827; display: flex; align-items: center; gap: 0.5rem; 
  font-size: 1.25rem;          /* ~text-2xl */
  font-weight: 700;
  color: #2563eb;              /* primary blue */
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937; /* gray-800 */
  margin-bottom: 1rem;
}
.controls-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .controls-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
}
.select { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: white; }
.select-quarter { width: 100%; }
@media (min-width: 768px) {
  .input-half { width: 50%; }
  .select-quarter { width: 25%; }
}
.select-large { min-height: 6rem; }

/* Features */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem; /* similar to px-6 py-20 */
  box-sizing: border-box;
}
.hero-title {
  font-size: 2.5rem; /* equivalent to text-5xl scaled for your base font */
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary-blue);
}
@media (min-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
}
.hero-subtitle {
  max-width: 900px;
  margin: 0.5rem auto 2.5rem auto;
  text-align: center;
  color: #374151; /* text-gray-700 */
  font-size: 1.125rem;
  line-height: 1.6;
}
.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827; /* gray-900 */
  margin-bottom: 0.75rem;
}
.feature-desc {
  color: #374151; /* gray-700 */
  line-height: 1.6;
}
.details-section { margin-bottom: 3rem; text-align:center; }
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}
.section-intro {
  max-width: 900px;
  margin: 0 auto 1.25rem auto;
  color: #374151;
}
.cta-section { text-align: center; max-width: 900px; margin: 0 auto 2.5rem auto; padding: 0 1rem; }
.cta-copy { color: #374151; margin-bottom: 1.5rem; }
.cta-button { margin-top: 2.5rem; padding-left: 3rem; padding-right: 3rem; text-decoration: none; }

/* Homepage */
.hero-section {
  padding: 4rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(6,182,212,0.03) 100%); /* soft blue-cyan background */
}
.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}
@media (min-width: 1024px) { .hero-title { font-size: 3rem; } }
.hero-subtitle {
  font-size: 1.125rem;
  color: #374151;
  max-width: 900px;
  margin: 0 auto 1.25rem auto;
  line-height: 1.6;
}
.hero-ctas { display: flex; justify-content: center; gap: 1rem; align-items:center; margin-top: 1rem; }
.how-section { padding: 3.5rem 1.5rem; text-align: center; }
.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;              /* thoda padding for inner spacing */
    background-color: #ffffff;  /* white background */
    border-radius: 0.75rem;     /* rounded corners */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* optional shadow for nicer look */
}
.process-desc { color:#374151; line-height:1.6; max-width: 18rem; }
.benefits-section { padding: 3.5rem 1.5rem; background: linear-gradient(180deg, rgba(37,99,235,0.03), rgba(255,255,255,0)); }
.benefit-title { font-size: 1.125rem; font-weight:700; color:var(--primary-blue); display:flex; align-items:center; gap:0.5rem; margin-bottom:0.5rem; }

/* Privacy policy */
.privacy-section {
  max-width: 900px;            /* similar to max-w-4xl */
  margin: 0 auto;
  padding: 3rem 1.5rem;
  box-sizing: border-box;
  color: #ffffff;              /* base copy color (gray-700) */
}
.policy-title {
  font-size: 1.75rem;          /* ~text-3xl */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.policy-updated {
  color: #ffffff;              /* gray-500 / text-gray-600 */
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.policy-h3 {
  font-size: 1.0625rem;        /* ~text-xl */
  font-weight: 600;
  color: #ffffff;              /* gray-900 */
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.policy-text {
  color: #ffffff;              /* gray-700 */
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* About */
.about-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  /* container max-width is already handled by .container */
}
.about-grid .card h2 { margin-top: 0.5rem; margin-bottom: 0.5rem; font-size: 1.125rem; }
.about-grid .card p { color: #374151; line-height: 1.6; }
.lead { max-width: 900px; margin: 0.5rem auto 1.25rem auto; color:#374151; font-size:1.125rem; line-height:1.6; 
  font-size: 1.125rem; /* text-lg */
  color: #4b5563; /* gray-600 */
  line-height: 1.7;
  margin: 0;
  font-size: 1.125rem;
  color: var(--medium-gray);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

/* Terms & Conditions */
.terms-section {
  max-width: 900px;            /* similar to max-w-4xl */
  margin: 0 auto;
  padding: 3rem 1.5rem;
  box-sizing: border-box;
  color: #374151;
}

/* Verification History */
.history-section {
  padding: 2.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}
.history-title {
  font-size: 1.5rem; /* ~text-3xl */
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}
.history-subtitle {
  color: #ffffff; /* text-gray-600 */
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.actions-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .actions-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
}
.download-btn {
  background: var(--primary-blue);
  color: white;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,99,235,0.12);
  transition: background 0.15s ease, transform 0.15s ease;
}
.download-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.pagination-link {
  padding: 0.5rem 0.9rem;
  background: var(--primary-blue);
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}
.pagination-link:hover { background: #1d4ed8; }
.pagination-disabled {
  padding: 0.5rem 0.9rem;
  background: #e5e7eb;
  color: #6b7280;
  border-radius: 0.5rem;
}
.pagination-info { padding: 0.4rem 0.8rem; color: #374151; }

/* Analytics */
.stat-line {
  color: #374151;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Contact */
.contact-section {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}
.page-subtitle {
    font-size: 1.125rem;
    color: #ffffff; /* gray-600 */
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Support */
.support-section {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 2rem;
}
.faq-section {
    max-width: 900px;
    margin: 0 auto 3rem;
}
.support-form-section {
    max-width: 700px;
    margin: 0 auto 3rem;
}
.tickets-section {
    max-width: 1000px;
    margin: 3rem auto;
}

/* Custom Plan */
.form-description {
    color: #374151; /* gray-700 */
    margin-bottom: 1rem;
}

/* 404 */
.narrow-container {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1rem; /* top-bottom 3rem (py-12 approximated), horizontal 1rem */
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem;
  text-align: center;
}
.display-1 {
  font-size: 3.5rem; /* similar to text-5xl */
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.05;
  margin: 0;
}
.display-2 {
  font-size: 2rem; /* similar to text-3xl */
  font-weight: 700;
  color: #1f2937; /* gray-800 */
  margin: 0;
}
.btn-cta {
  padding: 0.75rem 1.5rem; /* py-3 px-6 equivalent */
  font-size: 1rem;         /* text-lg-ish */
  border-radius: var(--radius-lg);
  font-weight: 600;
}

/* Payment Success */
.payment-success-title {
  color: var(--primary-green);  /* replaces #28a745 */
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  margin: 0 0 8px 0;
  color: var(--accent, #17a2b8);
  font-weight: 700;
  font-size: 1.6rem;
}
.status-text {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--medium-gray); /* replaces #555 */
}
.wrap {
  max-width: 820px;
  margin: 36px auto;
  padding: 18px;
}
.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.chip {
  padding: 8px 12px;
  background: #f1f7fb;
  border-radius: 999px;
  color: #0b5566;
  font-weight: 600;
}
.chip strong { margin-left: 0.5rem; }
.error {
  margin: 14px 0;
  padding: 14px;
  border-radius: 6px;
  background: #fff0f0;
  color: #9b1c1c;
}
.small {
  font-size: 0.9rem;
  color: var(--medium-gray, #64748b);
}

/* Webhook */
.muted-strong { color: #1f2937; font-weight: 600; }

/* Form macros */
.form-row { margin-bottom: 1rem; /* roughly mb-4 */ }

/* Forgot Password / Reset Password */
.narrow-container {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem;
  text-align: center;
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* Footer social media icons ke beech gap */
footer .footer-brand a {
    display: inline-block;  /* ensure proper inline spacing */
    margin-right: 10px;     /* har icon ke right mein 10px gap */
}

footer .footer-brand a:last-child {
    margin-right: 0;        /* last icon ke baad margin nahi chahiye */
}

/* Mobile: two-column footer layout + brand/social + centered copyright */
@media (max-width: 768px) {
  /* Two columns (left / right) on mobile so items appear side-by-side */
  .footer {
    padding: 0.5rem 0;
  }

  .footer-content {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    padding: 0 1rem;
    align-items: start;
    width: 100%;
  }

  /* Each footer column smaller, left-aligned content */
  .footer-col {
    margin: 0;
    padding: 0.25rem 0;
    text-align: left;
    line-height: 1.25;
  }

  .footer-col h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .footer-col ul {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .footer-col li {
    margin: 0.25rem 0;
  }

  .footer-col a {
    color: #cbd5e1;
    font-size: 0.95rem;
    display: inline-block;
  }

  /* Footer-brand row: brand left, social links right */
  .footer-brand {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0.5rem 1rem;
    flex-wrap: nowrap;
  }

  .footer-brand-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
  }

  .footer-brand-info img,
  .header-logo,
  .footer-logo {
    width: 72px;
    height: auto;
    display: block;
  }

  .footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
  }

  .footer-brand-title { font-size: 1rem; margin: 0; color: #ffffff; font-weight: 700; }
  .footer-brand-slogan { font-size: 0.8rem; margin: 0; color: #cbd5e1; }

  /* Right side social links */
  .footer-social,
  .footer-brand .social-list,
  .footer-brand .social-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
  }

  .footer-social a,
  .footer-brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    text-decoration: none;
  }

  /* copyright line spanning full width and centered */
  .footer-copy {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0.5rem 1rem 1rem 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
  }

  /* reduce extra spacing and keep compact */
  .footer .footer-brand,
  .footer .footer-content,
  .footer-col,
  .footer-copy {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  /* If some columns should visually separate, add subtle divider */
  .footer-col + .footer-col {
    /* no heavy borders on mobile — keep it light */
  }
}

  /* Small vertical gap between brand name and slogan */
  .footer-brand-text .footer-brand-title {
    margin-bottom: 0.5rem; /* one small space under brand name */
  }
  .footer-brand-text .footer-brand-slogan {
    margin-top: 0;         /* ensure slogan sits just below */
  }

.hero-section {
  padding: 4rem 1.5rem 0; /* Remove bottom padding */
  text-align: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(6,182,212,0.03) 100%);
}

.how-section {
  padding: 0 1.5rem; /* Remove top padding */
  text-align: center;
}

/* Completely separate black title for Auth pages */
.auth-brand-title-black {
  font-size: 1.5rem;      /* same as auth-brand-title */
  font-weight: 700;       /* same as auth-brand-title */
  color: #000000;         /* black text */
  margin: 0;              /* same margin */
}

.auth-brand-title {
-webkit-text-fill-color: #000000 !important;
color: #000000 !important;
}

/* Specific overrides for upgrade plan toggle buttons */
#prepaid-btn,
#subscription-btn {
  color: #ffffff;
}

#prepaid-btn.tab-active,
#subscription-btn.tab-active {
  color: #ffffff;
}

/* Center benefits list without bullets */
.benefits-list {
  text-align: center;         /* Centers the text */
  list-style: none;           /* Removes the bullets/dots */
  padding-left: 0;            /* Removes left padding to allow full centering */
  max-width: 700px;           /* Keeps the max-width for readability */
  margin: 1.25rem auto;       /* Centers the entire list block */
  color: #ffffff;             /* Existing white text color */
}

.benefits-list li {
  margin-bottom: 0.5rem;      /* Existing spacing */
  text-align: center;         /* Reinforces centering for text */
}

/* ===== Dark-theme flash overrides for server-rendered alerts ===== */
div[role="alert"][class*="red"] {
  background-color: rgba(111, 219, 83, 0.35) !important; /* translucent red, medium */
  border: rgba(33, 128, 141, 0.28) !important; /* matching softened border */
  color: #ffffff !important;            /* keep text white for contrast */
  box-shadow: 0 6px 18px rgba(0,0,0,0.5) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.5rem !important;
  max-width: 500px;
  margin: 0.75rem auto;
  position: relative;
}

div[role="alert"][class*="green"] {
  background-color: rgba(111, 219, 83, 0.50) !important; /* translucent green */
  border: 1px solid rgba(33, 128, 141, 0.28) !important;  /* soft green border */
  color: #ffffff !important;                               /* white text for contrast */
  box-shadow: 0 6px 18px rgba(0,0,0,0.5) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.5rem !important;
  max-width: 500px;
  margin: 0.75rem auto;
  position: relative;
}

/* make close button visible on dark background */
div[role="alert"] > button {
  color: inherit;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  position: absolute;
  right: 0.5rem;
  top: 0.25rem;
}

/* Profile Page Progress Bar */
.progress-bar {
    width: 100%;
    height: 16px;
    background-color: #f3f4f6; /* light gray background */
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.4s ease-in-out;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

/* Color states based on percentage — optional if you want dynamic color */
.progress-bar-fill[data-percentage="high"] {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%); /* red */
}

.progress-bar-fill[data-percentage="medium"] {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%); /* orange */
}

.progress-bar-fill[data-percentage="low"] {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%); /* green */
}

/* Hide Facebook login/signup buttons */
.social-btn-facebook {
    display: none !important;
}

/* Optional: hide Apple login buttons too */
.btn-apple-login {
    display: none !important;
}

/* Payment History Status: black, bold, left-aligned, no badge look */
.table-td .status-badge.status-verified,
.table-td .status-badge.status-warning {
  background: none !important;
  color: #111111 !important;          /* Black text */
  font-weight: 600 !important;        /* Semi-bold */
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  display: inline !important;
  text-align: left !important;
}

.payment-card .payment-success-title,
.card.payment-card .payment-success-title {
  color: #1a1a1a !important;
  font-weight: bold !important;
  display: block !important;
}

#debug,
.card.payment-card #debug,
.card.payment-card .small strong,
.card.payment-card .small strong ~ * {
  display: none !important;
}

.card.payment-card h1.payment-success-title,
.payment-card h1.payment-success-title,
h1.payment-success-title {
    color: #111 !important;
    font-weight: bold !important;
    background: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.payment-card > .small:last-child {
  display: none !important;
}
