/* ============================================================
   ProspectIQ - Complete Stylesheet with 3 Themes
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Space+Grotesk:wght@300;400;500;600;700&family=Nunito:wght@300;400;500;600;700;800&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ============================================================
   THEME: Neptune Blue (Default)
   ============================================================ */
:root,
[data-theme="neptune"] {
  --primary: #2563EB;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-dark: #1e3a8a;
  --accent: #06b6d4;
  --accent-hover: #0891b2;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #6366f1;

  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #f1f5f9;

  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-on-primary: #ffffff;

  --border: #e2e8f0;
  --border-focus: #2563EB;

  --sidebar-bg: #1e293b;
  --sidebar-text: #e2e8f0;
  --sidebar-text-muted: #94a3b8;
  --sidebar-active: #2563EB;
  --sidebar-hover: rgba(255,255,255,0.05);
  --sidebar-border: rgba(255,255,255,0.06);

  --navbar-bg: #ffffff;
  --navbar-border: #e2e8f0;
  --navbar-text: #0f172a;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.14);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-heading: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --gradient-primary: linear-gradient(135deg, #2563EB, #06b6d4);
  --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #2563EB 50%, #06b6d4 100%);
  --gradient-card: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(6,182,212,0.08));
}

/* ============================================================
   THEME: Obsidian Dark
   ============================================================ */
[data-theme="obsidian"] {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #1e1b4b;
  --primary-dark: #4c1d95;
  --accent: #ec4899;
  --accent-hover: #db2777;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #f87171;
  --info: #818cf8;

  --bg: #09090b;
  --bg-alt: #111113;
  --bg-card: #18181b;
  --bg-input: #27272a;
  --bg-hover: #27272a;

  --text: #fafafa;
  --text-secondary: #e4e4e7;
  --text-muted: #a1a1aa;
  --text-on-primary: #ffffff;

  --border: #27272a;
  --border-focus: #7c3aed;

  --sidebar-bg: #09090b;
  --sidebar-text: #e4e4e7;
  --sidebar-text-muted: #71717a;
  --sidebar-active: #7c3aed;
  --sidebar-hover: rgba(255,255,255,0.04);
  --sidebar-border: rgba(255,255,255,0.04);

  --navbar-bg: #09090b;
  --navbar-border: #27272a;
  --navbar-text: #fafafa;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.6);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --gradient-primary: linear-gradient(135deg, #7c3aed, #ec4899);
  --gradient-hero: linear-gradient(135deg, #09090b 0%, #1e1b4b 50%, #4c1d95 100%);
  --gradient-card: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(236,72,153,0.08));
}

/* ============================================================
   THEME: Sage Fresh
   ============================================================ */
[data-theme="sage"] {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #d1fae5;
  --primary-dark: #064e3b;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --bg: #f0fdf4;
  --bg-alt: #ecfdf5;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #dcfce7;

  --text: #14532d;
  --text-secondary: #166534;
  --text-muted: #6b7280;
  --text-on-primary: #ffffff;

  --border: #bbf7d0;
  --border-focus: #059669;

  --sidebar-bg: #052e16;
  --sidebar-text: #d1fae5;
  --sidebar-text-muted: #6ee7b7;
  --sidebar-active: #059669;
  --sidebar-hover: rgba(255,255,255,0.06);
  --sidebar-border: rgba(255,255,255,0.06);

  --navbar-bg: #ffffff;
  --navbar-border: #bbf7d0;
  --navbar-text: #14532d;

  --shadow-sm: 0 1px 3px rgba(5,150,105,0.08);
  --shadow: 0 4px 16px rgba(5,150,105,0.1);
  --shadow-lg: 0 12px 40px rgba(5,150,105,0.12);
  --shadow-xl: 0 24px 64px rgba(5,150,105,0.14);

  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --gradient-primary: linear-gradient(135deg, #059669, #f59e0b);
  --gradient-hero: linear-gradient(135deg, #052e16 0%, #065f46 50%, #059669 100%);
  --gradient-card: linear-gradient(135deg, rgba(5,150,105,0.08), rgba(245,158,11,0.06));
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   LAYOUT
   ============================================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  border-right: 1px solid var(--sidebar-border);
  transition: transform 0.3s ease, width 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-collapsed { width: 64px; }
.sidebar-collapsed .sidebar-label,
.sidebar-collapsed .sidebar-section-title,
.sidebar-collapsed .sidebar-logo-text { display: none; }

.main-content {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}
.sidebar-collapsed ~ .main-content { margin-left: 64px; }

.top-bar {
  height: 60px;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--navbar-text);
}

.page-content {
  flex: 1;
  padding: 28px 32px;
  max-width: 1400px;
  width: 100%;
}

/* ============================================================
   SIDEBAR COMPONENTS
   ============================================================ */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
}

.sidebar-logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 16px; }

.sidebar-section { padding: 8px 0; }
.sidebar-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sidebar-text-muted);
  padding: 8px 16px 4px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 8px;
  margin: 1px 8px;
  color: var(--sidebar-text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.sidebar-nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text); }
.sidebar-nav-item.active {
  background: var(--sidebar-active);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.sidebar-nav-item i { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--sidebar-border);
  padding: 12px;
}

.credits-badge {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--sidebar-text);
}
.credits-bar { height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; margin-top: 6px; }
.credits-bar-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.3s; }

/* ============================================================
   NAVBAR (Top Bar)
   ============================================================ */
.topbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  padding: 8px 16px 8px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.topbar-search input:focus { outline: none; border-color: var(--primary); }
.topbar-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.btn-icon {
  width: 36px; height: 36px;
  border: none; border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all 0.15s;
  position: relative;
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text); }

.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  background: var(--gradient-primary);
  color: white;
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: none; border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--primary); }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-hover); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { opacity: 0.9; }

.btn-success { background: var(--success); color: white; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover:not(:disabled) { background: var(--primary); color: white; }

.btn-gradient { background: var(--gradient-primary); color: white; }
.btn-gradient:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-xl { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-lg); }

.btn-loading { pointer-events: none; opacity: 0.7; }
.btn-loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 4px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); transition: all 0.2s; }
.card-body { padding: 24px; }
.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 600; font-family: var(--font-heading); }
.card-gradient {
  background: var(--gradient-card);
  border-color: transparent;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-label span { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control-error { border-color: var(--danger) !important; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
  cursor: pointer;
}

.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.form-check {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.input-group {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.input-group .form-control { border: none; border-radius: 0; }
.input-group .input-addon {
  padding: 10px 14px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 14px;
  display: flex; align-items: center;
  border-right: 1px solid var(--border);
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #d1fae5; color: #059669; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-gray { background: var(--bg-alt); color: var(--text-muted); }
.badge-info { background: #ede9fe; color: #7c3aed; }

[data-theme="obsidian"] .badge-primary { background: rgba(124,58,237,0.2); color: #a78bfa; }
[data-theme="obsidian"] .badge-success { background: rgba(34,197,94,0.15); color: #86efac; }
[data-theme="obsidian"] .badge-warning { background: rgba(234,179,8,0.15); color: #fde047; }
[data-theme="obsidian"] .badge-danger { background: rgba(248,113,113,0.15); color: #fca5a5; }
[data-theme="obsidian"] .badge-info { background: rgba(129,140,248,0.15); color: #a5b4fc; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-hover); }
.table td .text-muted { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gradient-primary);
}
.stat-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--gradient-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--primary);
}
.stat-card-value { font-size: 26px; font-weight: 800; font-family: var(--font-heading); color: var(--text); }
.stat-card-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card-change { font-size: 12px; font-weight: 600; }
.stat-card-change.positive { color: var(--success); }
.stat-card-change.negative { color: var(--danger); }

/* ============================================================
   CONTACT CARDS
   ============================================================ */
.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
}
.contact-card:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-1px); }
.contact-card-header { display: flex; align-items: flex-start; gap: 14px; }
.contact-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  color: white;
  flex-shrink: 0;
}
.contact-name { font-size: 15px; font-weight: 700; font-family: var(--font-heading); color: var(--text); }
.contact-title { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.contact-company { font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 2px; }
.contact-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.contact-tag {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
}
.contact-score {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  font-family: var(--font-heading);
}
.contact-score.high { background: #d1fae5; color: #059669; }
.contact-score.medium { background: #fef3c7; color: #d97706; }
.contact-score.low { background: #fee2e2; color: #dc2626; }
.contact-actions { display: flex; gap: 6px; margin-top: 14px; }
.contact-info { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.contact-info-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-muted);
}
.contact-info-item i { color: var(--primary); }

/* Verification Badge */
.verify-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700;
}
.verify-badge.verified { background: #d1fae5; color: #059669; }
.verify-badge.likely_valid { background: #dbeafe; color: #2563EB; }
.verify-badge.risky { background: #fef3c7; color: #d97706; }
.verify-badge.invalid { background: #fee2e2; color: #dc2626; }
.verify-badge.unverified { background: var(--bg-alt); color: var(--text-muted); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; animation: fadeIn 0.2s forwards;
}
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  animation: modalIn 0.25s forwards;
}
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1000px; }
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 17px; font-weight: 700; font-family: var(--font-heading); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  display: flex; align-items: center; gap: 12px;
  min-width: 300px; max-width: 420px;
  pointer-events: all;
  animation: slideIn 0.3s ease;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--info); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--info); }
.toast.warning .toast-icon { color: var(--warning); }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: 13px; }
.toast-msg { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: all 0.15s;
}
.dropdown.open .dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.1s;
}
.dropdown-item:hover { background: var(--bg-hover); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-item {
  padding: 10px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============================================================
   SEARCH & FILTERS
   ============================================================ */
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar input {
  flex: 1; border: none; background: transparent;
  color: var(--text); font-size: 15px; font-family: var(--font-body);
}
.search-bar input:focus { outline: none; }
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar-icon { color: var(--text-muted); font-size: 18px; }

.filters-panel {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.filter-select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 13px; font-family: var(--font-body);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 28px;
}

/* ============================================================
   LOADING STATES
   ============================================================ */
.skeleton { background: linear-gradient(90deg, var(--bg-alt) 25%, var(--bg-hover) 50%, var(--bg-alt) 75%); background-size: 200% 100%; animation: skeleton 1.4s ease-in-out infinite; border-radius: var(--radius); }
.skeleton-text { height: 14px; width: 100%; margin-bottom: 8px; }
.skeleton-title { height: 20px; width: 60%; margin-bottom: 12px; }
.skeleton-card { height: 160px; width: 100%; }

.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-lg { width: 44px; height: 44px; border-width: 4px; }

.loading-overlay {
  position: absolute; inset: 0;
  background: rgba(var(--bg), 0.8);
  display: flex; align-items: center; justify-content: center;
  border-radius: inherit;
  z-index: 10;
}

/* ============================================================
   PUBLIC NAVBAR (Landing)
   ============================================================ */
.public-nav {
  position: sticky;
  top: 0; z-index: 500;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.2s;
}
.public-nav.scrolled { box-shadow: var(--shadow); }
.public-nav-inner { max-width: 1280px; width: 100%; margin: auto; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--text); }
.nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; font-weight: 800;
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}
.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-actions { display: flex; gap: 8px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: calc(100vh - 64px);
  background: var(--gradient-hero);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 24px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
}
.hero-grid {
  max-width: 1280px; margin: auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 6px 14px; font-size: 13px;
  font-weight: 600; color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span { opacity: 0.75; }
.hero p { font-size: 17px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.hero-stat-value { font-size: 24px; font-weight: 800; color: white; font-family: var(--font-heading); }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

.hero-visual {
  position: relative;
}
.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 20px;
  animation: float 4s ease-in-out infinite;
}
.hero-card-sm {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  animation: float 4s ease-in-out infinite reverse;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.section { padding: 80px 24px; }
.section-inner { max-width: 1280px; margin: auto; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.8rem); text-align: center; margin-bottom: 14px; }
.section-subtitle { font-size: 17px; color: var(--text-muted); text-align: center; max-width: 600px; margin: 0 auto 56px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.25s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 18px;
}
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-toggle {
  display: flex; align-items: center; gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.pricing-toggle label {
  font-size: 15px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
}
.pricing-toggle label.active { color: var(--text); }
.toggle-switch {
  width: 52px; height: 28px;
  background: var(--border);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
}
.toggle-switch.on { background: var(--primary); }
.toggle-switch-thumb {
  width: 22px; height: 22px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch.on .toggle-switch-thumb { transform: translateX(24px); }
.annual-badge {
  background: var(--success);
  color: white;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  transition: all 0.25s;
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.pricing-popular-tag {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700;
}
.pricing-name { font-size: 20px; font-weight: 800; font-family: var(--font-heading); margin-bottom: 4px; }
.pricing-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.pricing-price { margin-bottom: 8px; }
.pricing-price .amount { font-size: 48px; font-weight: 800; font-family: var(--font-heading); line-height: 1; }
.pricing-price .period { font-size: 14px; color: var(--text-muted); }
.pricing-credits { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pricing-features li i { color: var(--success); font-size: 14px; }
.pricing-features li.disabled { color: var(--text-muted); opacity: 0.6; }
.pricing-features li.disabled i { color: var(--text-muted); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.testimonial-stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; }
.testimonial-text { font-size: 15px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; }
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--sidebar-bg);
  color: var(--sidebar-text-muted);
  padding: 60px 24px 32px;
}
.footer-inner { max-width: 1280px; margin: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--sidebar-text-muted); margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sidebar-text); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--sidebar-text-muted); padding: 3px 0; cursor: pointer; }
.footer-col a:hover { color: var(--sidebar-text); }
.footer-bottom { border-top: 1px solid var(--sidebar-border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--sidebar-text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.footer-social-btn:hover { background: var(--primary); color: white; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-container {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: var(--gradient-hero);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 60px;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.auth-left-content { position: relative; z-index: 1; }
.auth-left h2 { font-size: 2.5rem; color: white; font-weight: 800; margin-bottom: 16px; }
.auth-left p { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.7; max-width: 400px; }
.auth-features { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.auth-feature { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.8); font-size: 14px; }
.auth-feature i { color: var(--accent); font-size: 16px; }

.auth-right {
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.auth-form-container { width: 100%; max-width: 440px; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.auth-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }

/* ============================================================
   DASHBOARD COMPONENTS
   ============================================================ */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 24px; font-weight: 800; font-family: var(--font-heading); }
.page-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* Activity Feed */
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.activity-dot.search { background: #dbeafe; color: #2563EB; }
.activity-dot.save { background: #d1fae5; color: #059669; }
.activity-dot.export { background: #f3e8ff; color: #7c3aed; }
.activity-dot.email { background: #fef3c7; color: #d97706; }
.activity-text { font-size: 14px; }
.activity-text strong { font-weight: 600; }
.activity-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   AI SEARCH CHAT
   ============================================================ */
.ai-search-bar {
  background: var(--gradient-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.ai-icon {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; flex-shrink: 0;
}
.ai-search-bar input {
  flex: 1; border: none; background: transparent;
  color: var(--text); font-size: 15px; font-family: var(--font-body);
}
.ai-search-bar input:focus { outline: none; }
.ai-suggestion {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px; color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.ai-suggestion:hover { background: var(--primary); color: white; border-color: var(--primary); }
.ai-suggestions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

/* ============================================================
   CHART CONTAINERS
   ============================================================ */
.chart-container { position: relative; height: 260px; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ============================================================
   PROGRESS BARS
   ============================================================ */
.progress { height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient-primary); border-radius: 4px; transition: width 0.5s ease; }
.progress-bar.success { background: var(--success); }
.progress-bar.warning { background: var(--warning); }
.progress-bar.danger { background: var(--danger); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 40px;
}
.empty-state-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); max-width: 320px; margin: 0 auto 24px; }

/* ============================================================
   ADMIN SPECIFIC
   ============================================================ */
.admin-header {
  background: var(--gradient-hero);
  padding: 28px 32px;
  border-radius: var(--radius-xl);
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.admin-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.06), transparent 60%);
}
.admin-header-content { position: relative; z-index: 1; }

.theme-preview {
  width: 100%; height: 60px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  display: flex;
}
.theme-preview.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
.theme-preview-sidebar { width: 30%; }
.theme-preview-main { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.theme-preview-bar { height: 8px; border-radius: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); z-index: 200; }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; }
  .page-content { padding: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .auth-container { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes modalIn { to { transform: translateY(0) scale(1); } }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.animate-fade-up { animation: fadeUp 0.5s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ============================================================
   UTILITY
   ============================================================ */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }

/* OTP Input */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.otp-input {
  width: 52px; height: 60px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 24px; font-weight: 700;
  font-family: var(--font-heading);
  background: var(--bg-input);
  color: var(--text);
  transition: border-color 0.2s;
}
.otp-input:focus { outline: none; border-color: var(--primary); }

/* Integration Logos */
.integration-logo {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}

/* Pagination */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: center; margin-top: 24px; }
.page-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Notification dot */
.notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--navbar-bg);
}

/* Color chips */
.color-chip { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; }
.color-chip.selected { border-color: var(--primary); transform: scale(1.2); }

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}
@media (max-width: 768px) {
  .sidebar-overlay.visible { display: block; }
}

/* Payment Failed Banner */
.payment-failed-banner {
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  color: white;
  padding: 14px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}

/* Profile completeness */
.completeness-ring {
  width: 80px; height: 80px;
  position: relative;
}
.completeness-ring svg { transform: rotate(-90deg); }
.completeness-ring .ring-bg { fill: none; stroke: var(--border); stroke-width: 6; }
.completeness-ring .ring-fill { fill: none; stroke: var(--primary); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.completeness-value { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; font-family: var(--font-heading); }
