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

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  /* Brand */
  --brand:        #6d28d9;
  --brand-mid:    #7c3aed;
  --brand-light:  #8b5cf6;
  --brand-dark:   #5b21b6;
  --brand-glow:   rgba(109,40,217,.28);
  --brand-subtle: #f5f3ff;

  /* Accent */
  --accent:       #f59e0b;
  --accent-dark:  #d97706;

  /* Neutrals */
  --bg:           #f7f6ff;
  --surface:      #ffffff;
  --surface-2:    #f0effe;
  --border:       #e5e2f7;
  --border-mid:   #cbc8eb;

  /* Text */
  --tx-primary:   #0f0d1e;
  --tx-secondary: #3d3a5c;
  --tx-muted:     #7b779e;
  --tx-light:     #a9a6c4;

  /* Semantic */
  --success:      #059669;
  --success-bg:   #ecfdf5;
  --danger:       #dc2626;
  --danger-bg:    #fff1f2;
  --warning:      #d97706;
  --warning-bg:   #fffbeb;
  --info:         #0284c7;
  --info-bg:      #eff6ff;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(15,13,30,.05);
  --sh-sm: 0 1px 3px rgba(15,13,30,.07), 0 4px 12px rgba(15,13,30,.06);
  --sh-md: 0 4px 8px rgba(15,13,30,.07), 0 12px 28px rgba(15,13,30,.08);
  --sh-lg: 0 8px 16px rgba(15,13,30,.08), 0 24px 56px rgba(15,13,30,.10);
  --sh-xl: 0 16px 32px rgba(15,13,30,.10), 0 40px 80px rgba(15,13,30,.12);
  --sh-brand: 0 4px 20px rgba(109,40,217,.35);
  --sh-brand-lg: 0 8px 32px rgba(109,40,217,.45);

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: 140ms;
  --t-base: 200ms;
  --t-slow: 320ms;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--tx-primary);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }

/* ── Typography ────────────────────────────────────────── */
.t-hero {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.t-h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.035em; }
.t-h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; letter-spacing: -.025em; }
.t-h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; }
.t-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--brand-light) 0%, #c084fc 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
main { padding: 3rem 0 5rem; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,8,25,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: .85rem 0;
  transition: background var(--t-base) var(--ease);
}
.navbar.scrolled { background: rgba(10,8,25,.95); }

.navbar .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff !important;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand:hover { text-decoration: none; color: #fff; }

.kvepex-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #ef4444 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(245,158,11,.4);
  letter-spacing: 0;
}

.navbar-nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  flex: 1;
}
.navbar-nav-links a {
  color: rgba(255,255,255,.65);
  font-weight: 500;
  font-size: .9rem;
  padding: .45rem .8rem;
  border-radius: var(--r-sm);
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
}
.navbar-nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.18);
  padding: .45rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: .875rem;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.07);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  color: #fff !important;
  border: none;
  padding: .48rem 1.2rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  box-shadow: var(--sh-brand);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-brand-lg);
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: .25rem;
  margin-left: auto;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: .4rem;
  min-width: 180px;
  box-shadow: var(--sh-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all var(--t-base) var(--ease);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .8rem;
  color: var(--tx-primary);
  border-radius: var(--r-xs);
  font-size: .875rem;
  font-weight: 500;
  transition: background var(--t-fast) var(--ease);
}
.nav-dropdown-menu a:hover { background: var(--surface-2); text-decoration: none; }
.nav-dropdown-menu hr { border: none; border-top: 1px solid var(--border); margin: .3rem 0; }

.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: #0c0a1e;
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4rem;
}

/* Animated gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(109,40,217,.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(124,58,237,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 60% 10%, rgba(245,158,11,.10) 0%, transparent 55%);
  animation: heroGlow 10s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: .7; }
  to   { opacity: 1; }
}

/* Grid dot pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-full);
  padding: .35rem 1rem;
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.8); }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.55);
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── Search glass ──────────────────────────────────────── */
.search-glass {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-xl);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

.search-glass .sg-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: .6rem;
  align-items: stretch;
}

.sg-field { display: flex; flex-direction: column; }
.sg-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: .35rem;
  padding-left: .2rem;
}

.sg-input-wrap { position: relative; display: flex; align-items: center; }
.sg-input-wrap .sg-icon {
  position: absolute;
  left: .8rem;
  color: rgba(255,255,255,.4);
  font-size: .95rem;
  pointer-events: none;
}

.sg-input {
  width: 100%;
  background: rgba(255,255,255,.09);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm);
  color: #fff;
  padding: .7rem .85rem .7rem 2.3rem;
  font-size: .9rem;
  font-family: inherit;
  transition: all var(--t-base) var(--ease);
}
.sg-input::placeholder { color: rgba(255,255,255,.35); }
.sg-input:focus {
  outline: none;
  border-color: var(--brand-light);
  background: rgba(255,255,255,.13);
  box-shadow: 0 0 0 3px rgba(139,92,246,.2);
}
.sg-input option { background: #1a1533; color: #fff; }

.sg-input-wrap .btn-locate-hero {
  position: absolute;
  right: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  width: 28px; height: 28px;
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.btn-locate-hero:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-locate-hero .spinner { width: .75rem; height: .75rem; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-search-big {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: .7rem 1.8rem;
  font-weight: 700;
  font-size: .95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  box-shadow: var(--sh-brand);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .5rem;
  align-self: flex-end;
}
.btn-search-big:hover { transform: translateY(-2px); box-shadow: var(--sh-brand-lg); }

.locate-hint {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  margin-top: .75rem;
  text-align: left;
  min-height: 1.1rem;
}

/* ── Hero stats ────────────────────────────────────────── */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .3rem;
}

/* ── Section headers ───────────────────────────────────── */
.section-head { margin-bottom: 2rem; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand);
  margin-bottom: .5rem;
}
.section-eyebrow::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--brand);
  border-radius: 1px;
}
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; color: var(--tx-primary); }
.section-sub { color: var(--tx-muted); font-size: .95rem; margin-top: .4rem; }

/* ── Category cards ────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.cat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none !important;
  color: var(--tx-primary) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  transition: all var(--t-base) var(--ease);
  cursor: pointer;
  box-shadow: var(--sh-xs);
}
.cat-card:hover {
  border-color: var(--brand);
  box-shadow: var(--sh-md), 0 0 0 3px rgba(109,40,217,.08);
  transform: translateY(-4px);
}
.cat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  transition: transform var(--t-base) var(--ease);
}
.cat-card:hover .cat-icon { transform: scale(1.1) rotate(-4deg); }
.cat-name { font-size: .83rem; font-weight: 600; line-height: 1.3; }

.ci-0 { background: #f3f0ff; color: #7c3aed; }
.ci-1 { background: #eff6ff; color: #1d4ed8; }
.ci-2 { background: #fdf2f8; color: #be185d; }
.ci-3 { background: #ecfdf5; color: #059669; }
.ci-4 { background: #fff7ed; color: #c2410c; }
.ci-5 { background: #fefce8; color: #a16207; }
.ci-6 { background: #f0fdf4; color: #15803d; }
.ci-7 { background: #f8fafc; color: #475569; }

/* ── Provider cards ────────────────────────────────────── */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.prov-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-sm);
}
.prov-card:hover {
  border-color: var(--brand-light);
  box-shadow: var(--sh-lg);
  transform: translateY(-5px);
}

.prov-card-top {
  height: 88px;
  background: linear-gradient(135deg, #f3f0ff 0%, #e0e7ff 100%);
  position: relative;
  flex-shrink: 0;
}
.prov-card:nth-child(2) .prov-card-top { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.prov-card:nth-child(3) .prov-card-top { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.prov-card:nth-child(4) .prov-card-top { background: linear-gradient(135deg, #fdf4ff, #fae8ff); }
.prov-card:nth-child(5) .prov-card-top { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.prov-card:nth-child(6) .prov-card-top { background: linear-gradient(135deg, #fefce8, #fef08a); }

.prov-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  object-fit: cover;
  position: absolute;
  bottom: -26px;
  left: 1.25rem;
  box-shadow: var(--sh-sm);
  background: var(--surface-2);
}

.prov-card-body {
  padding: 2rem 1.25rem 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.prov-name { font-size: 1rem; font-weight: 700; color: var(--tx-primary); }

.prov-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.prov-city {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  color: var(--tx-muted);
  font-weight: 500;
}
.prov-city i { color: var(--brand-light); font-size: .75rem; }

.prov-rating {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.stars { display: inline-flex; gap: 1px; }
.stars i { font-size: .8rem; }
.bi-star-fill { color: var(--accent) !important; }
.bi-star-half { color: var(--accent) !important; }
.bi-star       { color: #e5e7eb !important; }
.rating-num { font-weight: 700; font-size: .85rem; color: var(--tx-primary); }
.rating-cnt { font-size: .78rem; color: var(--tx-muted); }

.prov-bio {
  font-size: .85rem;
  color: var(--tx-secondary);
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prov-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.prov-tag {
  background: var(--surface-2);
  color: var(--tx-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: .18rem .65rem;
  font-size: .73rem;
  font-weight: 500;
}

.btn-book-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  background: var(--brand-subtle);
  color: var(--brand) !important;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .6rem;
  font-weight: 600;
  font-size: .875rem;
  transition: all var(--t-base) var(--ease);
  text-decoration: none !important;
  margin-top: .25rem;
}
.btn-book-now:hover {
  background: var(--brand);
  color: #fff !important;
  border-color: var(--brand);
  box-shadow: var(--sh-brand);
  transform: translateY(-1px);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.4rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .875rem;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--t-base) var(--ease);
  text-decoration: none !important;
  line-height: 1;
}
.btn-brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  color: #fff !important;
  box-shadow: var(--sh-brand);
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: var(--sh-brand-lg); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--border-mid);
}
.btn-outline:hover { border-color: var(--brand); background: var(--brand-subtle); color: var(--brand-dark); }

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #fca5a5;
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: #86efac;
}
.btn-success:hover { background: var(--success); color: #fff; }

.btn-lg { padding: .8rem 2rem; font-size: 1rem; border-radius: var(--r-md); }
.btn-sm { padding: .35rem .9rem; font-size: .8rem; border-radius: var(--r-xs); }

/* ── Form controls ─────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label { font-size: .83rem; font-weight: 600; color: var(--tx-secondary); }
.form-hint  { font-size: .75rem; color: var(--tx-muted); }

.form-control,
.form-select {
  width: 100%;
  padding: .65rem .9rem;
  background: var(--surface);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--tx-primary);
  transition: all var(--t-base) var(--ease);
  line-height: 1.5;
}
.form-control::placeholder { color: var(--tx-light); }
.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(109,40,217,.12);
}
textarea.form-control { resize: vertical; min-height: 90px; }

.input-group { position: relative; display: flex; }
.input-group .form-control { border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: none; }
.btn-locate-inline {
  background: var(--surface-2);
  border: 1.5px solid var(--border-mid);
  border-left: none;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--brand);
  padding: 0 .85rem;
  cursor: pointer;
  font-size: .95rem;
  transition: all var(--t-fast) var(--ease);
  display: flex;
  align-items: center;
}
.btn-locate-inline:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Auth ──────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f3f0ff 0%, #eff6ff 50%, #f3f0ff 100%);
}

.auth-box {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--sh-xl);
}

.auth-logo {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  color: #fff;
  font-weight: 900;
  font-size: 1.3rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(245,158,11,.35);
}

.auth-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; text-align: center; }
.auth-sub { text-align: center; color: var(--tx-muted); font-size: .875rem; margin-top: .3rem; margin-bottom: 2rem; }

.role-selector { display: flex; gap: .75rem; }
.role-opt {
  flex: 1;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  padding: .9rem;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  position: relative;
}
.role-opt input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.role-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-subtle); }
.role-opt-icon { font-size: 1.4rem; margin-bottom: .35rem; }
.role-opt-title { font-weight: 700; font-size: .875rem; }
.role-opt-desc  { font-size: .73rem; color: var(--tx-muted); margin-top: .15rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--tx-light);
  font-size: .8rem;
  margin: 1.5rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-full-brand {
  width: 100%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  color: #fff !important;
  border: none;
  border-radius: var(--r-sm);
  padding: .75rem;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  box-shadow: var(--sh-brand);
  text-align: center;
  display: block;
  text-decoration: none;
}
.btn-full-brand:hover { transform: translateY(-2px); box-shadow: var(--sh-brand-lg); }

/* ── Alerts ────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  font-size: .875rem;
  border: 1.5px solid transparent;
}
.alert i { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.alert-danger  { background: var(--danger-bg);  border-color: #fca5a5; color: #991b1b; }
.alert-success { background: var(--success-bg); border-color: #86efac; color: #065f46; }
.alert-info    { background: var(--info-bg);    border-color: #93c5fd; color: #1e40af; }
.alert-warning { background: var(--warning-bg); border-color: #fcd34d; color: #92400e; }

/* ── Cards (generic) ───────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tx-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-body { padding: 1.5rem; }

/* ── Badge ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .7rem;
  border-radius: var(--r-full);
  font-size: .73rem;
  font-weight: 700;
}
.badge-purple  { background: #f3f0ff; color: var(--brand); }
.badge-green   { background: var(--success-bg); color: #065f46; }
.badge-red     { background: var(--danger-bg); color: #991b1b; }
.badge-yellow  { background: var(--warning-bg); color: #92400e; }
.badge-blue    { background: var(--info-bg); color: #1e40af; }
.badge-gray    { background: #f1f5f9; color: #475569; }

/* ── Table ─────────────────────────────────────────────── */
.kvx-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.kvx-table th {
  text-align: left;
  padding: .75rem 1rem;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tx-muted);
  border-bottom: 2px solid var(--border);
  background: #fafafa;
}
.kvx-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.kvx-table tr:last-child td { border-bottom: none; }
.kvx-table tr:hover td { background: var(--surface-2); }
.kvx-table th:first-child { border-radius: var(--r-xs) 0 0 0; }
.kvx-table th:last-child  { border-radius: 0 var(--r-xs) 0 0; }

/* ── Search results page ───────────────────────────────── */
.search-bar-wrap {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--sh-sm);
  margin-bottom: 2rem;
}
.search-bar-wrap form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: .75rem;
  align-items: flex-end;
}
.sb-label { font-size: .75rem; font-weight: 700; color: var(--tx-muted); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── Filter pills ──────────────────────────────────────── */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.fpill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 600;
}
.fpill-q    { background: #f3f0ff; color: var(--brand); }
.fpill-cat  { background: var(--success-bg); color: #065f46; }
.fpill-city { background: var(--info-bg); color: #1e40af; }
.fpill a    { font-weight: 700; margin-left: .2rem; color: inherit; opacity: .7; }
.fpill a:hover { opacity: 1; }

/* ── Legal pages ───────────────────────────────────────── */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.legal-header {
  background: linear-gradient(135deg, #0c0a1e, #1a1245);
  border-radius: var(--r-xl);
  padding: 3rem 2.5rem;
  color: #fff;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.legal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(109,40,217,.25), transparent);
}
.legal-header-inner { position: relative; z-index: 1; }
.legal-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .5rem; }
.legal-updated { font-size: .8rem; color: rgba(255,255,255,.45); margin-top: .75rem; }

.legal-toc {
  background: var(--brand-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.legal-toc-title { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-muted); margin-bottom: .75rem; }
.legal-toc ol { padding-left: 1.2rem; }
.legal-toc li { margin-bottom: .35rem; }
.legal-toc a { font-size: .875rem; font-weight: 500; }

.legal-section { margin-bottom: 2.5rem; }
.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--tx-primary);
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.legal-section h2 .sec-num {
  width: 28px; height: 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.legal-section h3 { font-size: 1rem; font-weight: 700; color: var(--tx-secondary); margin: 1.1rem 0 .5rem; }
.legal-section p  { color: var(--tx-secondary); line-height: 1.75; margin-bottom: .85rem; font-size: .9rem; }
.legal-section ul, .legal-section ol { padding-left: 1.4rem; margin-bottom: .85rem; }
.legal-section li { color: var(--tx-secondary); line-height: 1.7; font-size: .9rem; margin-bottom: .3rem; }
.legal-section strong { color: var(--tx-primary); font-weight: 600; }

.legal-contact-box {
  background: var(--brand-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-top: 2.5rem;
}
.legal-contact-box h3 { font-weight: 700; margin-bottom: .75rem; font-size: 1rem; }
.legal-contact-box p  { font-size: .875rem; color: var(--tx-secondary); margin-bottom: .35rem; }

/* ── How it works ──────────────────────────────────────── */
.hiw-section {
  background: linear-gradient(135deg, #0c0a1e 0%, #1a1245 100%);
  border-radius: var(--r-xl);
  padding: 3.5rem 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}
.hiw-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(109,40,217,.2), transparent);
  pointer-events: none;
}
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.hiw-step { text-align: center; }
.hiw-num {
  width: 52px; height: 52px;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
  background: rgba(255,255,255,.05);
}
.hiw-step h3 { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.hiw-step p  { color: rgba(255,255,255,.5); font-size: .85rem; line-height: 1.65; }

/* ── Cookie banner ─────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: min(92vw, 720px);
  background: var(--surface);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  transition: all .4s var(--ease);
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-icon { font-size: 1.75rem; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text strong { display: block; font-weight: 700; margin-bottom: .2rem; font-size: .9rem; }
.cookie-text p { font-size: .8rem; color: var(--tx-muted); margin: 0; }
.cookie-text a { font-weight: 600; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: .5rem 1.1rem;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}
.btn-cookie-accept:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-cookie-decline {
  background: var(--surface-2);
  color: var(--tx-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .5rem 1.1rem;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}
.btn-cookie-decline:hover { border-color: var(--border-mid); color: var(--tx-primary); }

/* ── Footer ────────────────────────────────────────────── */
footer {
  background: #0c0a1e;
  color: rgba(255,255,255,.5);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  font-size: .875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.footer-brand-name { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.footer-desc { color: rgba(255,255,255,.38); font-size: .82rem; line-height: 1.7; max-width: 230px; }
.footer-col-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.4); margin-bottom: .85rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-links a { color: rgba(255,255,255,.5); font-size: .83rem; transition: color var(--t-fast) var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .78rem; color: rgba(255,255,255,.35); transition: color var(--t-fast) var(--ease); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── Dashboard ─────────────────────────────────────────── */
.dash-stat {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.dash-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.dsi-purple { background: #f3f0ff; color: var(--brand); }
.dsi-green  { background: var(--success-bg); color: var(--success); }
.dsi-blue   { background: var(--info-bg); color: var(--info); }
.dsi-red    { background: var(--danger-bg); color: var(--danger); }
.dash-stat-val { font-size: 1.8rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.dash-stat-lbl { font-size: .78rem; color: var(--tx-muted); margin-top: .2rem; }

.dash-quick-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none !important;
  color: var(--tx-primary) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  transition: all var(--t-base) var(--ease);
}
.dash-quick-card:hover { border-color: var(--brand); box-shadow: var(--sh-md); transform: translateY(-3px); }
.dash-quick-icon { font-size: 1.6rem; }
.dash-quick-label { font-weight: 700; font-size: .875rem; }

/* ── Breadcrumb ────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .83rem; color: var(--tx-muted); margin-bottom: 1.5rem; list-style: none; }
.breadcrumb a { color: var(--tx-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-sep { color: var(--tx-light); }
.breadcrumb-active { color: var(--tx-primary); font-weight: 500; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .hero { padding: 3.5rem 0 3rem; }
  .search-glass .sg-row { grid-template-columns: 1fr; }
  .btn-search-big { width: 100%; justify-content: center; }
  .hero-stats { gap: 2rem; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .providers-grid { grid-template-columns: 1fr; }
  .hiw-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .search-bar-wrap form { grid-template-columns: 1fr; }
  .auth-box { padding: 1.75rem 1.25rem; }
  .legal-header { padding: 2rem 1.5rem; }
  .cookie-banner { bottom: 0; left: 0; right: 0; transform: translateY(100%); width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .cookie-banner.visible { transform: translateY(0); }
  .navbar-nav-links, .navbar-actions { display: none; }
  .nav-toggle { display: flex; }
  .navbar.menu-open .navbar-nav-links,
  .navbar.menu-open .navbar-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: .75rem 0;
  }
  .navbar .container { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.6rem; }
}
