/* ============================================================
   SMSProviderHub — Design System
   Fonts: Plus Jakarta Sans (body) + Space Grotesk (headings)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand */
  --brand:         #FF6600;
  --brand-dark:    #E55A00;
  --brand-light:   #FF8533;
  --brand-faint:   rgba(255,102,0,0.08);
  --brand-faint2:  rgba(255,102,0,0.15);

  /* Light Mode */
  --bg:            #F7F8FA;
  --bg-card:       #FFFFFF;
  --bg-nav:        #FFFFFF;
  --bg-input:      #F0F1F5;
  --bg-hover:      #F0F1F5;
  --bg-code:       #F0F1F5;
  --text:          #0D0D0D;
  --text-2:        #4A4A5A;
  --text-3:        #8A8A9A;
  --text-inv:      #FFFFFF;
  --border:        #E2E4EE;
  --border-2:      #C8CAD8;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:     0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-brand:  0 4px 20px rgba(255,102,0,0.25);
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   9999px;

  /* Typography */
  --font-body:     'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-head:     'Space Grotesk', -apple-system, sans-serif;

  /* Transitions */
  --t-fast:  150ms ease;
  --t-base:  220ms ease;
  --t-slow:  350ms ease;

  /* Sidebar */
  --sidebar-w: 260px;

  /* Status */
  --green:   #16A34A;
  --green-bg:#DCFCE7;
  --red:     #DC2626;
  --red-bg:  #FEE2E2;
  --yellow:  #D97706;
  --yellow-bg:#FEF3C7;
  --blue:    #2563EB;
  --blue-bg: #DBEAFE;
}

[data-theme="dark"] {
  --bg:         #0E0E12;
  --bg-card:    #18181F;
  --bg-nav:     #13131A;
  --bg-input:   #1E1E27;
  --bg-hover:   #22222C;
  --bg-code:    #1A1A22;
  --text:       #F0F0F5;
  --text-2:     #A0A0B5;
  --text-3:     #606075;
  --text-inv:   #0D0D0D;
  --border:     #26262F;
  --border-2:   #323240;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 32px rgba(0,0,0,0.5);
  --green-bg:   rgba(22,163,74,0.15);
  --red-bg:     rgba(220,38,38,0.15);
  --yellow-bg:  rgba(217,119,6,0.15);
  --blue-bg:    rgba(37,99,235,0.15);
}

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

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: background var(--t-base), color var(--t-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }
ul, ol { list-style: none; }

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

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--t-base), border-color var(--t-base);
}

.nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__logo img {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.nav__logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  white-space: nowrap;
}

.nav__logo-text span { color: var(--brand); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--t-fast);
  white-space: nowrap;
}

.nav__link:hover, .nav__link--active {
  color: var(--text);
  background: var(--bg-hover);
}

.nav__link--active { color: var(--brand); }

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

.nav__theme {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all var(--t-fast);
  background: transparent;
}

.nav__theme:hover { background: var(--bg-hover); color: var(--text); }

.nav__hamburger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}

.nav__hamburger:hover { background: var(--bg-hover); color: var(--text); }

/* Mobile nav drawer */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.nav__mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.nav__mobile-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-nav);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--t-slow);
}

.nav__mobile.open .nav__mobile-panel { transform: translateX(0); }
.nav__mobile.open { display: block; }

.nav__mobile-links { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; }

.nav__mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--t-fast);
}

.nav__mobile-link:hover, .nav__mobile-link--active {
  background: var(--brand-faint);
  color: var(--brand);
}

/* User dropdown */
.nav__user {
  position: relative;
}

.nav__user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--t-fast);
}

.nav__user-btn:hover { background: var(--bg-hover); }

.nav__user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}

.nav__user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--t-base);
  z-index: 300;
}

.nav__user:hover .nav__dropdown,
.nav__dropdown:hover {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--t-fast);
}

.nav__dropdown-item:hover { background: var(--bg-hover); color: var(--text); }
.nav__dropdown-item--danger:hover { background: var(--red-bg); color: var(--red); }
.nav__dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,102,0,0.35);
}

.btn--secondary {
  background: var(--bg-input);
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-2);
  color: var(--text);
}

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

.btn--outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
}

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

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

.btn--danger:hover { background: #B91C1C; border-color: #B91C1C; color: #fff; }

.btn--sm { padding: 7px 14px; font-size: 12px; border-radius: var(--radius-sm); }
.btn--lg { padding: 13px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn--xl { padding: 16px 36px; font-size: 17px; border-radius: var(--radius-lg); }
.btn--block { width: 100%; }
.btn--icon { padding: 8px; border-radius: var(--radius-sm); }
.btn--round { border-radius: var(--radius-full); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.form-label--required::after { content: ' *'; color: var(--red); }

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: all var(--t-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--brand);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--brand-faint2);
}

.form-control::placeholder { color: var(--text-3); }
.form-control:invalid { border-color: var(--red); }
.form-control--sm { padding: 8px 12px; font-size: 13px; }

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control { cursor: pointer; }

.form-hint { font-size: 12px; color: var(--text-3); }
.form-error { font-size: 12px; color: var(--red); }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
  margin-top: 2px;
}

.form-check-label { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* Input with icon */
.input-wrap { position: relative; }
.input-wrap .form-control { padding-left: 42px; }
.input-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.input-wrap.input-wrap--right .form-control { padding-left: 14px; padding-right: 42px; }
.input-wrap.input-wrap--right .input-icon { left: auto; right: 14px; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--t-base);
}

.card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__body { padding: 24px; }
.card__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── Provider Cards ────────────────────────────────────────── */
.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.provider-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand-faint2);
  transform: translateY(-3px);
}

.provider-card--featured {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--brand-faint) 100%);
}

.provider-card__top {
  padding: 20px 20px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.provider-logo {
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  object-fit: contain;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 4px;
}

.provider-logo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.provider-logo--initials span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.provider-card__info { flex: 1; min-width: 0; }

.provider-card__name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-card__cat {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
}

.provider-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.provider-card__badges {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.provider-card__desc {
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}

.provider-card__chips {
  padding: 0 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-card__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.provider-card__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.provider-card__price span { font-size: 11px; font-weight: 400; color: var(--text-3); }

.provider-card__compare {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--t-fast);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}

.provider-card__compare:hover { color: var(--brand); border-color: var(--brand); }
.provider-card__compare.active { color: var(--brand); border-color: var(--brand); background: var(--brand-faint); }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--brand    { background: var(--brand-faint2); color: var(--brand); }
.badge--success  { background: var(--green-bg); color: var(--green); }
.badge--warning  { background: var(--yellow-bg); color: var(--yellow); }
.badge--danger   { background: var(--red-bg); color: var(--red); }
.badge--info     { background: var(--blue-bg); color: var(--blue); }
.badge--dark     { background: var(--text); color: var(--text-inv); }
.badge--outline  { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); }

/* ── Chips ─────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-input);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.chip--api     { background: var(--blue-bg);   color: var(--blue);   border-color: var(--blue);  }
.chip--free    { background: var(--green-bg);  color: var(--green);  border-color: var(--green); }
.chip--virtual { background: var(--brand-faint2); color: var(--brand); border-color: var(--brand); }

/* ── Stars ─────────────────────────────────────────────────── */
.stars { display: inline-flex; align-items: center; gap: 1px; }
.star--full  { color: #F59E0B; }
.star--half  { color: #F59E0B; opacity: 0.6; }
.star--empty { color: var(--border-2); }
.rating-num  { font-size: 13px; font-weight: 700; color: var(--text-2); margin-left: 4px; }

/* ── Layout Containers ─────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--sm { max-width: 860px; }
.container--md { max-width: 1060px; }
.container--xl { max-width: 1560px; }

.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 96px 0; }

.section__header { margin-bottom: 48px; }
.section__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.15;
}

.section__sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.7;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,102,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-faint2);
  border: 1px solid rgba(255,102,0,0.25);
  color: var(--brand);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 18px;
}

.hero__title span { color: var(--brand); }

.hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-2);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__search {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.hero__search-input {
  width: 100%;
  padding: 16px 160px 16px 52px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 15px;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
  box-shadow: var(--shadow-md);
  transition: all var(--t-base);
}

.hero__search-input:focus {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--brand-faint2);
}

.hero__search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.hero__search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__stat { text-align: center; }
.hero__stat-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  display: block;
}
.hero__stat-label { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* ── Category Filters ──────────────────────────────────────── */
.category-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 64px;
  z-index: 50;
}

.category-bar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.category-bar__inner::-webkit-scrollbar { display: none; }

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  transition: all var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
}

.category-pill:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-faint); }
.category-pill--active { border-color: var(--brand); color: var(--brand); background: var(--brand-faint2); }

/* ── Directory Filters Sidebar ─────────────────────────────── */
.directory-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.filters-sidebar {
  position: sticky;
  top: 130px;
}

.filters-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.filters-card__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filters-card__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}

.filters-card__body { padding: 20px; display: flex; flex-direction: column; gap: 24px; }

.filter-section__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  font-size: 13px;
  color: var(--text-2);
}

.filter-option:hover { background: var(--bg-hover); }
.filter-option input { accent-color: var(--brand); }

/* ── Directory Toolbar ─────────────────────────────────────── */
.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.directory-count {
  font-size: 14px;
  color: var(--text-3);
}

.directory-count strong { color: var(--text); }

.toolbar-actions { display: flex; align-items: center; gap: 10px; }

.view-toggle {
  display: flex;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.view-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--text-3);
  transition: all var(--t-fast);
}

.view-btn:hover, .view-btn--active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* List view card */
.provider-card--list {
  flex-direction: row;
  align-items: center;
}

.provider-card--list .provider-card__top { flex: 1; border-bottom: none; }
.provider-card--list .provider-card__desc { padding: 0; flex: 2; border-left: 1px solid var(--border); padding: 0 20px; }
.provider-card--list .provider-card__chips { padding: 0 20px; }
.provider-card--list .provider-card__footer { border-top: none; border-left: 1px solid var(--border); padding: 16px 20px; flex-direction: column; align-items: flex-end; }

/* ── Compare Bar ───────────────────────────────────────────── */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-nav);
  border-top: 2px solid var(--brand);
  padding: 14px 24px;
  z-index: 90;
  transform: translateY(100%);
  transition: transform var(--t-slow);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
}

.compare-bar.visible { transform: translateY(0); }

.compare-bar__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.compare-bar__slots { display: flex; gap: 12px; flex: 1; }
.compare-bar__slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-input);
  border: 1.5px dashed var(--border-2);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-3);
  min-width: 140px;
  height: 44px;
}

.compare-bar__slot--filled {
  border-style: solid;
  border-color: var(--brand);
  color: var(--text);
  background: var(--brand-faint);
}

.compare-bar__slot-remove {
  margin-left: auto;
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--t-fast);
}

.compare-bar__slot-remove:hover { color: var(--red); }

/* ── Flash Messages ────────────────────────────────────────── */
.flash {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

.flash--success { background: var(--green-bg); color: var(--green); border-color: var(--green); }
.flash--error   { background: var(--red-bg);   color: var(--red);   border-color: var(--red);   }
.flash--warning { background: var(--yellow-bg); color: var(--yellow); border-color: var(--yellow); }
.flash--info    { background: var(--blue-bg);   color: var(--blue);   border-color: var(--blue);   }
.flash__close   { margin-left: auto; opacity: 0.7; transition: opacity var(--t-fast); }
.flash__close:hover { opacity: 1; }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb { padding: 16px 0; }
.breadcrumb__list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb__item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.breadcrumb__item a { color: var(--text-3); transition: color var(--t-fast); }
.breadcrumb__item a:hover { color: var(--brand); }
.breadcrumb__item--active span { color: var(--text-2); }
.breadcrumb .icon { color: var(--text-3); }

/* ── Pagination ────────────────────────────────────────────── */
.pagination { padding: 40px 0 8px; display: flex; justify-content: center; }
.pagination__inner { display: flex; align-items: center; gap: 6px; }
.pagination__btn, .pagination__num {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  transition: all var(--t-fast);
}
.pagination__btn:hover, .pagination__num:hover { border-color: var(--brand); color: var(--brand); }
.pagination__num--active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination__dots { color: var(--text-3); padding: 0 4px; font-size: 13px; }

/* ── Stats Row ─────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-box {
  background: var(--bg-card);
  padding: 28px 24px;
  text-align: center;
}

.stat-box__num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--brand);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-box__label { font-size: 13px; color: var(--text-3); font-weight: 500; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer__main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__brand-logo img { height: 32px; border-radius: 7px; }
.footer__brand-logo span { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--text); }
.footer__brand-logo span em { color: var(--brand); font-style: normal; }

.footer__desc { font-size: 13px; color: var(--text-3); line-height: 1.7; margin-bottom: 20px; }

.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-3);
  transition: all var(--t-fast);
  border: 1px solid var(--border);
}
.footer__social a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.footer__col-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 13px; color: var(--text-3); transition: color var(--t-fast); }
.footer__links a:hover { color: var(--brand); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy { font-size: 12px; color: var(--text-3); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 12px; color: var(--text-3); transition: color var(--t-fast); }
.footer__legal a:hover { color: var(--brand); }

/* ── Auth Pages ────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo img { height: 44px; margin: 0 auto 10px; border-radius: 10px; }
.auth-logo h1 { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.auth-logo p  { font-size: 13px; color: var(--text-3); margin-top: 4px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--text-3);
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-3); }
.auth-footer a { color: var(--brand); font-weight: 600; }

/* ── Blog ──────────────────────────────────────────────────── */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t-base);
}

.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-2); }

.blog-card__img {
  height: 200px;
  background: var(--bg-input);
  overflow: hidden;
  position: relative;
}

.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card__img img { transform: scale(1.04); }

.blog-card__body { padding: 22px; }
.blog-card__cat { font-size: 11px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.blog-card__title { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.35; }
.blog-card__title a { color: var(--text); transition: color var(--t-fast); }
.blog-card__title a:hover { color: var(--brand); }
.blog-card__excerpt { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.blog-card__meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-3); }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--bg-card); }
thead th {
  padding: 13px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 14px 16px; font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-hover); }

/* ── Icons ─────────────────────────────────────────────────── */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── Utility ───────────────────────────────────────────────── */
.text-brand    { color: var(--brand); }
.text-muted    { color: var(--text-3); }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.font-head     { font-family: var(--font-head); }
.fw-700        { font-weight: 700; }
.mt-auto       { margin-top: auto; }
.mb-0          { margin-bottom: 0 !important; }
.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.gap-8         { gap: 8px; }
.gap-12        { gap: 12px; }
.gap-16        { gap: 16px; }
.gap-24        { gap: 24px; }
.hidden        { display: none !important; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-hover) 50%, var(--bg-input) 75%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .directory-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section--lg { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr; gap: 32px; }
  .container { padding: 0 16px; }
  .auth-card { padding: 28px 22px; }
  .hero__stats { gap: 24px; }
  .provider-card--list { flex-direction: column; }
  .provider-card--list .provider-card__desc { border-left: none; border-top: 1px solid var(--border); padding: 16px 20px; }
  .compare-bar__slots { display: none; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero__search-input { padding-right: 56px; }
  .hero__search-btn span { display: none; }
}

/* ── Page-specific: Provider Detail ───────────────────────── */
.provider-detail-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.provider-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.provider-sticky-card {
  position: sticky;
  top: 90px;
}

/* ── Compare Table ─────────────────────────────────────────── */
.compare-table-wrap { overflow-x: auto; }
.compare-table { min-width: 600px; }
.compare-table th:first-child, .compare-table td:first-child { width: 160px; background: var(--bg); }
.compare-table .yes  { color: var(--green); }
.compare-table .no   { color: var(--text-3); }

/* ── Support Page ──────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t-fast);
}

.faq-question:hover { color: var(--brand); }
.faq-answer { overflow: hidden; height: 0; transition: height var(--t-slow); }
.faq-answer__inner { padding-bottom: 18px; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.faq-item.open .faq-question { color: var(--brand); }

/* ── Admin is in admin.css ─────────────────────────────────── */

/* ── Scrollbar (nice thin) ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Selection ─────────────────────────────────────────────── */
::selection { background: var(--brand-faint2); color: var(--brand-dark); }
