/* ============================================================
   EUROSTAR INTERNATIONAL EDUCATION — PREMIUM DESIGN SYSTEM
   Global Study Discovery Engine for Turkish → China
   ============================================================ */

/* ── CUSTOM PROPERTIES ── */
:root {
  /* Brand Colors */
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --primary-light: #e8f0fe;
  --primary-mid: #3b82f6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fef3c7;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;

  /* China Brand */
  --china-red: #dc2626;
  --china-red-light: #fee2e2;
  --china-gold: #d97706;
  --china-gold-light: #fef3c7;

  /* Neutral */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #1a56db 0%, #1e429f 100%);
  --grad-hero: linear-gradient(135deg, #0f172a 0%, #1a56db 50%, #1e429f 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-card: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
  --grad-china: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.15);
  --shadow-2xl: 0 24px 64px rgba(0,0,0,.2);
  --shadow-glow: 0 0 32px rgba(26,86,219,.25);
  --shadow-card: 0 4px 24px rgba(26,86,219,.08);

  /* Transitions */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1280px;
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── CONTAINER ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media (max-width: 640px) { .container { padding: 0 var(--space-4); } }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { line-height: 1.7; color: var(--gray-600); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: var(--space-1); }
strong { color: var(--gray-800); font-weight: 600; }

/* ── HEADER / NAVBAR ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--primary); }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.logo-sub { font-size: .7rem; font-weight: 500; color: var(--gray-400); display: block; letter-spacing: 0.05em; text-transform: uppercase; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0; margin: 0;
}
.site-nav a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--primary); background: var(--primary-light); }
.site-nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: .7rem; opacity: .6; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--gray-700);
  font-size: .88rem;
  border-radius: var(--radius-sm);
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--primary); }
.dropdown-divider { height: 1px; background: var(--gray-100); margin: var(--space-2) 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.btn-nav-whatsapp {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: #25d366;
  color: white !important;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(37,211,102,.3);
}
.btn-nav-whatsapp:hover { background: #128c7e; transform: translateY(-1px); }

.btn-nav-cta {
  padding: var(--space-2) var(--space-5);
  background: var(--grad-primary);
  color: white !important;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(26,86,219,.3);
}
.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,86,219,.4); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--gray-700);
  font-size: 1.4rem;
}

/* ── HERO SECTION ── */
.hero {
  background: var(--grad-hero);
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom right, transparent 49%, white 50%);
}

.hero-content {
  position: relative;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-6);
  line-height: 1.15;
}
.hero h1 span {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin-bottom: var(--space-10);
  max-width: 720px;
  line-height: 1.75;
}

/* Hero Search */
.hero-search {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius-full);
  padding: var(--space-2);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-2xl);
  max-width: 680px;
  gap: var(--space-2);
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: var(--space-3) var(--space-5);
  font-size: 1rem;
  color: var(--gray-800);
  background: transparent;
  min-width: 0;
}
.hero-search input::placeholder { color: var(--gray-400); }
.hero-search button {
  padding: var(--space-3) var(--space-6);
  background: var(--grad-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-search button:hover { transform: scale(1.03); box-shadow: var(--shadow-glow); }

/* Hero Quick Links */
.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.quick-link {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.88) !important;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 500;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}
.quick-link:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.4);
  color: white !important;
  transform: translateY(-1px);
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-4) 0;
  overflow: hidden;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.trust-bar-inner::-webkit-scrollbar { display: none; }
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  font-size: .84rem;
  color: var(--gray-600);
  flex-shrink: 0;
}
.trust-item .icon { font-size: 1rem; }
.trust-item strong { color: var(--gray-700); }

/* ── SECTIONS ── */
.section {
  padding: clamp(40px, 7vw, 80px) 0;
}
.section-sm {
  padding: clamp(24px, 4vw, 48px) 0;
}
.section-lg {
  padding: clamp(60px, 10vw, 120px) 0;
}
.section-white { background: white; }
.section-gray { background: var(--gray-50); }
.section-dark { background: var(--gray-900); color: white; }
.section-primary { background: var(--grad-primary); color: white; }

.section-header {
  margin-bottom: clamp(24px, 4vw, 48px);
}
.section-header.centered { text-align: center; }
.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.section-header h2 { margin-bottom: var(--space-3); }
.section-header p { font-size: 1.05rem; color: var(--gray-500); max-width: 600px; }
.section-header.centered p { margin: 0 auto; }
.section-header .view-all {
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.stat-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.s-val {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.s-label { font-size: .82rem; color: var(--gray-500); font-weight: 500; }

/* ── CARDS ── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }

.card-body { padding: var(--space-6); }
.card-footer {
  padding: var(--space-4) var(--space-6);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

/* University Card */
.univ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.univ-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}
.univ-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary-light); }

.univ-card-banner {
  height: 120px;
  background: var(--grad-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.univ-banner-pattern {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M20 0L40 20L20 40L0 20z'/%3E%3C/g%3E%3C/svg%3E");
}
.univ-banner-text {
  font-size: 2.2rem;
  position: relative;
  z-index: 1;
}
.univ-card-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.univ-card-name { font-size: 1rem; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
.univ-card-location { font-size: .82rem; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }
.univ-card-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.univ-card-ranks {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-100);
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.rank-qs { background: #eff6ff; color: #1d4ed8; }
.rank-the { background: #f0fdf4; color: #166534; }
.rank-arwu { background: #fef3c7; color: #92400e; }
.rank-leiden { background: #fdf4ff; color: #7e22ce; }

/* Program Card */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}
.prog-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.prog-card-header {
  padding: var(--space-5);
  background: var(--grad-card);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.prog-discipline-icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.prog-card-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.prog-card-footer { padding: var(--space-4) var(--space-5); background: var(--gray-50); border-top: 1px solid var(--gray-100); display: flex; gap: var(--space-2); }

/* ── BADGES / TAGS ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge-blue { background: #eff6ff; color: #1d4ed8; }
.badge-green { background: #f0fdf4; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red { background: #fef2f2; color: #991b1b; }
.badge-purple { background: #faf5ff; color: #6b21a8; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-orange { background: #fff7ed; color: #9a3412; }
.badge-teal { background: #f0fdfa; color: #115e59; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 500;
}

/* ── BUTTONS ── */
.btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-white, .btn-wa, .btn-danger, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(26,86,219,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26,86,219,.4); color: white; }
.btn-secondary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(245,158,11,.25);
}
.btn-secondary:hover { background: var(--accent-dark); transform: translateY(-2px); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.btn-ghost:hover { background: var(--gray-50); color: var(--gray-800); border-color: var(--gray-400); }
.btn-white {
  background: white;
  color: var(--primary);
  border-color: white;
}
.btn-white:hover { background: var(--primary-light); border-color: var(--primary-light); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-wa {
  background: #25d366;
  color: white;
}
.btn-wa:hover { background: #128c7e; transform: translateY(-2px); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-xl { padding: 18px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }
button:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── FORMS ── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: .95rem;
  color: var(--gray-800);
  background: white;
  transition: all var(--transition);
  font-family: var(--font-sans);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--gray-400); }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-consent { font-size: .8rem; color: var(--gray-400); line-height: 1.6; margin-top: var(--space-3); }
.form-consent a { color: var(--primary); }
.form-error { color: var(--danger); font-size: .82rem; }
.form-success { color: var(--success); font-size: .9rem; font-weight: 600; }

/* Filter Bar */
.filter-bar {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: var(--space-5);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.filter-bar form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
  align-items: end;
}

/* ── LEAD FORM CARD ── */
.lead-form-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}
.lead-form-card h3 { font-size: 1.3rem; margin-bottom: var(--space-2); }
.lead-form-card > p { font-size: .9rem; color: var(--gray-500); margin-bottom: var(--space-6); line-height: 1.6; }

/* ── ADVISOR PANEL ── */
.advisor-panel {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.advisor-text { flex: 1; min-width: 240px; }
.advisor-text h3 { color: white; font-size: 1.4rem; margin-bottom: var(--space-3); }
.advisor-text p { color: rgba(255,255,255,.82); font-size: .95rem; line-height: 1.7; }
.advisor-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; flex-shrink: 0; }

/* ── BREADCRUMB ── */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .84rem;
  color: var(--gray-500);
  padding: var(--space-4) 0;
  flex-wrap: wrap;
}
.breadcrumb-nav a { color: var(--gray-500); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav .current { color: var(--gray-700); font-weight: 500; }
.breadcrumb-nav span[aria-hidden] { color: var(--gray-300); }

/* ── TABS ── */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: var(--space-3) var(--space-5);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn .25s ease; }

/* ── ACCORDION ── */
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: white;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-800);
  transition: background var(--transition);
  gap: var(--space-4);
}
.accordion-header:hover { background: var(--gray-50); }
.accordion-header.open { color: var(--primary); }
.accordion-icon { font-size: .8rem; transition: transform var(--transition); color: var(--gray-400); flex-shrink: 0; }
.accordion-header.open .accordion-icon { transform: rotate(180deg); color: var(--primary); }
.accordion-body {
  padding: 0 var(--space-6) var(--space-5);
  background: white;
  display: none;
  color: var(--gray-600);
  line-height: 1.7;
  font-size: .95rem;
}
.accordion-body.open { display: block; animation: fadeIn .2s ease; }

/* ── COMPARE BAR ── */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: white;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -8px 32px rgba(0,0,0,.15);
  padding: var(--space-4) 0;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.compare-slots { display: flex; gap: var(--space-3); flex: 1; min-width: 0; }
.compare-slot {
  flex: 1; min-width: 100px; max-width: 200px;
  padding: var(--space-2) var(--space-3);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  font-size: .8rem;
  color: var(--gray-400);
  text-align: center;
}
.compare-slot.filled { border-style: solid; border-color: var(--primary); color: var(--gray-700); background: var(--primary-light); }
.compare-count { font-size: .75rem; padding: 1px 6px; }

/* ── DETAIL PAGE ── */
.detail-hero {
  background: var(--grad-hero);
  padding: var(--space-16) 0 var(--space-10);
  color: white;
  position: relative;
}
.detail-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom right, transparent 49%, var(--gray-50) 50%);
}
.detail-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 768px) { .detail-hero-inner { grid-template-columns: 1fr; } }
.detail-hero h1 { color: white; margin-bottom: var(--space-4); font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.detail-hero .meta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-5); }
.detail-hero .meta span { font-size: .88rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 5px; }
.detail-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  min-width: 260px;
}
.detail-card .price { font-size: 1.8rem; font-weight: 800; color: #fbbf24; }
.detail-card .price-label { font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: var(--space-4); }

/* ── FOOTER ── */
footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  color: white;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a {
  color: var(--gray-400);
  font-size: .88rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-col a:hover { color: white; }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.footer-logo-icon {
  width: 40px; height: 40px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.footer-brand-name { font-size: 1.1rem; font-weight: 800; color: white; }
.footer-brand-sub { font-size: .72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; }
.footer-desc { font-size: .87rem; line-height: 1.7; color: var(--gray-400); margin-bottom: var(--space-5); }
.footer-social { display: flex; gap: var(--space-3); }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
  font-size: .9rem;
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .82rem; color: var(--gray-500); }
.footer-bottom a { color: var(--gray-500); font-size: .82rem; }
.footer-bottom a:hover { color: white; }
.footer-disclaimer {
  background: var(--gray-900);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: var(--space-4) 0;
}
.footer-disclaimer p { font-size: .76rem; color: var(--gray-600); line-height: 1.6; }

/* ── AI CHATBOT ── */
.chatbot-widget {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9999;
}
.chatbot-fab {
  width: 60px; height: 60px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  border: none;
  color: white;
  font-size: 1.4rem;
  transition: all var(--transition-spring);
  position: relative;
}
.chatbot-fab:hover { transform: scale(1.1); box-shadow: var(--shadow-glow); }
.chatbot-fab .fab-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 18px; height: 18px;
  background: #25d366;
  border-radius: 50%;
  font-size: .6rem;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  border: 2px solid white;
}

.chatbot-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 380px;
  max-height: 520px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.95);
  transition: all var(--transition-slow);
}
.chatbot-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  padding: var(--space-4) var(--space-5);
  background: var(--grad-primary);
  color: white;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.chatbot-avatar {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.chatbot-header-text h4 { color: white; font-size: .92rem; margin: 0; }
.chatbot-header-text p { color: rgba(255,255,255,.75); font-size: .75rem; margin: 0; }
.chatbot-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 1.1rem; }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--gray-50);
}
.chat-msg {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: .88rem;
  line-height: 1.6;
}
.chat-msg.bot {
  background: white;
  border: 1px solid var(--gray-200);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--gray-700);
}
.chat-msg.user {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-msg.typing {
  background: white;
  border: 1px solid var(--gray-200);
  align-self: flex-start;
  padding: var(--space-3);
}
.typing-dots { display: flex; gap: 4px; }
.typing-dot {
  width: 7px; height: 7px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typingPulse 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0 var(--space-4);
}
.quick-reply-btn {
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(26,86,219,.15);
  transition: all var(--transition);
  text-align: left;
}
.quick-reply-btn:hover { background: var(--primary); color: white; }

.chatbot-input-area {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: var(--space-2);
  background: white;
}
.chatbot-input-area input {
  flex: 1;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: .88rem;
  outline: none;
  transition: border-color var(--transition);
}
.chatbot-input-area input:focus { border-color: var(--primary); }
.chatbot-send {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: white;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chatbot-send:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ── DASHBOARD ── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) { .dashboard-layout { grid-template-columns: 1fr; } }

.dashboard-sidebar {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
.dash-profile {
  background: var(--grad-primary);
  padding: var(--space-6);
  text-align: center;
}
.dash-avatar {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--space-3);
  border: 3px solid rgba(255,255,255,.4);
}
.dash-name { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.dash-status { font-size: .78rem; color: rgba(255,255,255,.7); }
.dash-status-dot { display: inline-block; width: 7px; height: 7px; background: #4ade80; border-radius: 50%; margin-right: 4px; }

.dash-nav { padding: var(--space-3); }
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.dash-nav-item:hover { background: var(--gray-50); color: var(--primary); }
.dash-nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.dash-nav-item .icon { font-size: 1.1rem; width: 22px; text-align: center; }
.dash-nav-item .badge-count {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.dashboard-main { display: flex; flex-direction: column; gap: var(--space-6); }
.dash-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.dash-card-header h3 { font-size: 1.05rem; margin: 0; }

/* Document Status */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}
.doc-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
}
.doc-item:hover { border-color: var(--primary); }
.doc-icon { font-size: 1.4rem; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: .84rem; font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-status { font-size: .74rem; }
.doc-status.uploaded { color: var(--success); }
.doc-status.missing { color: var(--danger); }
.doc-status.reviewing { color: var(--warning); }
.doc-status.approved { color: var(--success); font-weight: 700; }
.doc-status.needs-correction { color: var(--danger); }

/* Progress Bar */
.progress-bar { height: 8px; background: var(--gray-100); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: var(--grad-primary); border-radius: var(--radius-full); transition: width var(--transition-slow); }

/* Application Status */
.app-status-timeline { display: flex; flex-direction: column; gap: var(--space-4); }
.timeline-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.timeline-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}
.timeline-icon.done { background: var(--success-light); color: var(--success); }
.timeline-icon.active { background: var(--primary-light); color: var(--primary); }
.timeline-icon.pending { background: var(--gray-100); color: var(--gray-400); }
.timeline-content h5 { font-size: .88rem; margin-bottom: 2px; }
.timeline-content p { font-size: .8rem; color: var(--gray-400); margin: 0; }

/* ── POPULAR SEARCHES ── */
.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.popular-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: var(--space-2) var(--space-4);
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: .84rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-weight: 500;
}
.popular-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); transform: translateY(-1px); }

/* ── WHY US / FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}
.feature-card {
  padding: var(--space-6);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}
.feature-card h3 { font-size: 1rem; margin-bottom: var(--space-2); }
.feature-card p { font-size: .88rem; color: var(--gray-500); line-height: 1.6; }

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}
.testimonial-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-4); left: var(--space-5);
  font-size: 3.5rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-text { font-size: .92rem; color: var(--gray-600); line-height: 1.7; margin-bottom: var(--space-5); padding-top: var(--space-5); }
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
}
.testimonial-name { font-size: .88rem; font-weight: 700; color: var(--gray-800); }
.testimonial-meta { font-size: .78rem; color: var(--gray-400); }
.testimonial-stars { color: #f59e0b; font-size: .85rem; margin-top: 2px; }

/* ── PROCESS STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  position: relative;
}
.step-card {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  position: relative;
}
.step-number {
  width: 52px; height: 52px;
  background: var(--grad-primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto var(--space-4);
  box-shadow: var(--shadow-glow);
}
.step-card h4 { font-size: .95rem; margin-bottom: var(--space-2); }
.step-card p { font-size: .84rem; color: var(--gray-500); }

/* ── CTA SECTION ── */
.cta-section {
  background: var(--grad-hero);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '🎓';
  position: absolute;
  font-size: 20rem;
  opacity: .04;
  top: -40px; right: -40px;
  pointer-events: none;
}
.cta-section h2 { color: white; margin-bottom: var(--space-4); }
.cta-section p { color: rgba(255,255,255,.78); font-size: 1.05rem; margin-bottom: var(--space-8); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ── AI RECOMMENDATION ── */
.ai-panel {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.ai-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.ai-icon {
  width: 48px; height: 48px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.ai-panel-header h3 { font-size: 1.1rem; margin: 0; color: var(--gray-800); }
.ai-panel-header p { font-size: .85rem; color: var(--gray-500); margin: 0; }

/* ── FAMILY NOTE ── */
.family-note {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.fn-header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.fn-icon { font-size: 1.6rem; }
.fn-header h3 { font-size: 1.05rem; margin: 0; color: var(--gray-800); }
.family-note ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.family-note li { font-size: .9rem; color: var(--gray-700); padding-left: 24px; position: relative; }
.family-note li::before { content: '✅'; position: absolute; left: 0; font-size: .85rem; }

/* ── NOTIFICATION BANNER ── */
.notification-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: var(--space-5);
}
.notification-banner.info { background: var(--primary-light); color: var(--primary-dark); }
.notification-banner.success { background: var(--success-light); color: #065f46; }
.notification-banner.warning { background: var(--warning-light); color: #78350f; }
.notification-banner.error { background: var(--danger-light); color: #7f1d1d; }

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes typingPulse { 0%, 60%, 100% { transform: translateY(0); opacity: .6; } 30% { transform: translateY(-6px); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.animate-fade-in { animation: fadeIn .4s ease both; }
.animate-fade-in-up { animation: fadeInUp .5s ease both; }
.animate-scale-in { animation: scaleIn .3s ease both; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gray { color: var(--gray-500); }
.text-sm { font-size: .85rem; }
.text-xs { font-size: .78rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--gray-200); margin: var(--space-6) 0; }
.sticky-top { position: sticky; top: calc(var(--header-height) + 20px); }

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: all var(--transition-spring);
  z-index: 8888;
  text-decoration: none;
  cursor: pointer;
}
.whatsapp-float:hover { transform: scale(1.12) rotate(-5deg); box-shadow: 0 8px 30px rgba(37,211,102,.6); color: white; }
.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  bottom: 50%;
  transform: translateY(50%);
  background: var(--gray-900);
  color: white;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--gray-900);
  border-right: 0;
}

/* Search highlight */
.search-highlight { background: #fef3c7; color: var(--gray-800); padding: 0 2px; border-radius: 2px; }

/* Success/error states */
.form-success-msg {
  text-align: center;
  padding: var(--space-8);
  display: none;
}
.form-success-msg .check-icon { font-size: 3rem; margin-bottom: var(--space-4); }
.form-success-msg h4 { color: var(--success); margin-bottom: var(--space-2); }
.form-success-msg p { color: var(--gray-500); font-size: .9rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-actions .btn-nav-cta { display: none; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero-search { flex-direction: column; border-radius: var(--radius-lg); padding: var(--space-3); }
  .hero-search input { width: 100%; }
  .hero-search button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .advisor-panel { flex-direction: column; }
  .detail-hero-inner { grid-template-columns: 1fr; }
  .chatbot-window { width: 320px; right: -12px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { flex-direction: column; align-items: center; }
  .whatsapp-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: white;
  z-index: 999;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}
.mobile-nav.open { display: block; animation: fadeInDown .2s ease; }
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition);
}
.mobile-nav-item:hover { background: var(--gray-50); color: var(--primary); }

/* Print */
@media print {
  .site-header, footer, .compare-bar, .chatbot-widget, .whatsapp-float, .advisor-panel { display: none !important; }
}
