/* ???????????????????????????????????????????
   ZESTLINK ? Design System v3
   Mobile-first ? Inter font ? Professional
??????????????????????????????????????????? */

:root {
  --purple:   #4b1fa8;
  --purple-d: #3b1686;
  --purple-l: #ede9fe;
  --teal:     #14b8a6;
  --teal-d:   #0d9488;
  --text:     #111827;
  --muted:    #6b7280;
  --line:     #e5e7eb;
  --surface:  #ffffff;
  --bg:       #f9fafb;
  --footer-bg:#1e1b4b;
  --radius:   12px;
  --radius-lg:18px;
  --shadow-sm:0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05);
  --shadow:   0 4px 12px rgba(0,0,0,.08),0 2px 4px rgba(0,0,0,.04);
  --shadow-md:0 6px 18px rgba(0,0,0,.09),0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:0 10px 30px rgba(0,0,0,.10),0 4px 8px rgba(0,0,0,.05);
  --content-max: 1160px;
  --content-pad: 20px;
}

/* ?? Reset ?? */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-d); }
h1,h2,h3,h4,h5 { line-height: 1.25; font-weight: 700; margin: 0 0 .5rem; color: var(--text); }
p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }

/* ?? Utility ?? */
.muted     { color: var(--muted); }
.error     { color: #dc2626; }
.success-text { color: #16a34a; }
.warn-text { color: #d97706; }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.hidden { display: none !important; }
.inline-form { display: inline; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ?? Max-width wrapper ?? */
.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

/* ??????????????????????????????????????????
   HEADER / NAV
?????????????????????????????????????????? */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.hdr-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; gap: 10px; }
.brand-logo { display: block; max-height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.brand-text-fallback { font-size: 1.35rem; font-weight: 800; color: var(--purple); }
.brand-zest { font-size: 1.35rem; font-weight: 800; color: var(--purple); }
.brand-link { font-size: 1.35rem; font-weight: 800; color: var(--teal); }

.hdr-nav {
  display: none;
  gap: 28px;
  align-items: center;
  flex: 1;
}
.hdr-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.hdr-nav a:hover { color: var(--purple); border-bottom-color: var(--purple); }

.hdr-actions {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.btn-text {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 40px;
  transition: background .15s, color .15s;
}
.btn-text:hover { background: var(--bg); color: var(--purple); }
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  background: var(--purple);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}
.btn-cta:hover { background: var(--purple-d); color: #fff; transform: translateY(-1px); }

.hdr-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  margin-left: auto;
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.hdr-burger:hover { border-color: var(--purple); color: var(--purple); }

/* ?? Full-screen mobile menu overlay ?? */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 68px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mm-close {
  width: 40px; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.mm-close:hover { border-color: var(--purple); color: var(--purple); }
.mm-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 8px 20px;
}
.mm-nav a {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: color .15s;
}
.mm-nav a:last-child { border-bottom: none; }
.mm-nav a:hover, .mm-nav a:active { color: var(--purple); }
.mm-footer {
  padding: 20px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Alpine transition */
.mm-enter { transition: opacity .18s ease, transform .18s ease; }
.mm-enter-start { opacity: 0; transform: translateY(-6px); }
.mm-enter-end   { opacity: 1; transform: translateY(0); }
.mm-leave { transition: opacity .12s ease; }
.mm-leave-start { opacity: 1; }
.mm-leave-end   { opacity: 0; }

/* ??????????????????????????????????????????
   MAIN / LAYOUT
?????????????????????????????????????????? */
.site-main { min-height: 60vh; }
.site-section { padding: 56px 0; }
.site-section + .site-section { border-top: 1px solid var(--line); }

/* Direct sections under main — same max width as nav; horizontal padding comes from inner `.wrap` / `.site-content` */
.site-main > .site-section {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
.section-sub { color: var(--muted); max-width: 58ch; margin-bottom: 2rem; font-size: 1rem; }

/* ??????????????????????????????????????????
   HERO SECTIONS
?????????????????????????????????????????? */
.home-hero {
  background: var(--purple);
  color: #fff;
  padding: 80px 0 72px;
  text-align: center;
}
/* Inner wrapper aligns hero content with the main page wrap */
.home-hero > .wrap,
.home-hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  box-sizing: border-box;
}
.home-hero > .home-hero-inner {
  width: 100%;
}
.home-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto .75rem;
}
.home-hero > p,
.home-hero .hero-sub {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.page-hero {
  background: var(--purple);
  color: #fff;
  padding: 52px 0 44px;
}
/* Align hero inner content with main page wrap (1160px) ? not narrower */
.page-hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--content-pad);
  box-sizing: border-box;
}
.page-hero--with-gap {
  margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); color: #fff; }
.page-hero p  { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 64ch; }
.page-hero em { font-style: normal; }
.admin-page-section {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.admin-page-section h1 { color: var(--purple); }
.admin-page-section p  { color: var(--muted); }

/* ??????????????????????????????????????????
   CARDS
?????????????????????????????????????????? */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  border: 1px solid var(--line);
}
.card > h1, .card > h2, .card > h3 { margin-top: 0; }
.card > p:last-child { margin-bottom: 0; }
.card.centered { text-align: center; }
.list-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.provider-offer-thumb {
  width: 100%;
  max-width: 180px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  background: #f8fafc;
}
.provider-offer-thumb-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.provider-offer-thumb-row .provider-offer-thumb,
.provider-offer-thumb-row .provider-offer-thumb-wrap {
  flex: 0 0 auto;
}
.provider-offer-thumb-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}
.provider-offer-thumb-check {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.callout {
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  background: #f0fdfa;
  border-radius: 0 8px 8px 0;
}

/* ??????????????????????????????????????????
   GRID SYSTEM
?????????????????????????????????????????? */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ??????????????????????????????????????????
   FORMS
?????????????????????????????????????????? */
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}
input, textarea, select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(75,31,168,.1);
}
textarea { resize: vertical; min-height: 100px; }

/* ??????????????????????????????????????????
   BUTTONS
?????????????????????????????????????????? */
button { font-family: inherit; cursor: pointer; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 22px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn-primary:hover { background: var(--purple-d); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(75,31,168,.3); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 22px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}
.btn-secondary:hover { background: var(--teal-d); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 20px;
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--purple-l); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 20px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }

.btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 0 22px;
  background: #fff; color: var(--purple);
  border: none; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: box-shadow .15s, transform .1s;
}
.btn-white:hover { color: var(--purple-d); box-shadow: 0 4px 14px rgba(0,0,0,.15); transform: translateY(-1px); }

/* ???????????????????????????????????????????
   DUAL SEARCH BAR  (What + Where)
??????????????????????????????????????????? */
.dual-search-bar {
  display: flex;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 28px rgba(0,0,0,.18);
  overflow: visible; /* allow dropdown to escape */
  position: relative;
}
/* Each half-field */
.dsb-field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 180px;
  position: relative;
  padding: 0 4px;
}
.dsb-what { border-radius: 999px 0 0 999px; overflow: hidden; }
.dsb-where { border-radius: 0;              overflow: visible; }
.dsb-icon {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
  padding: 0 4px 0 16px;
}
.dsb-field input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  padding: 14px 10px;
  font-size: 15px;
  margin: 0;
  box-shadow: none;
  outline: none;
  background: transparent;
}
.dsb-field input:focus { box-shadow: none; border-color: transparent; }
/* Vertical divider between fields */
.dsb-divider {
  width: 1px; background: #e5e7eb;
  height: 28px; align-self: center; flex-shrink: 0;
}
/* Submit button */
.dsb-btn {
  flex: 0 0 auto;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 999px;
  margin: 5px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
  min-height: auto; width: auto;
  transition: background .15s;
}
.dsb-btn:hover { background: var(--purple-d); }

/* Mobile: stack fields */
@media (max-width: 540px) {
  .dual-search-bar { border-radius: var(--radius-lg); flex-direction: column; }
  .dsb-what, .dsb-where { border-radius: 0; overflow: visible; }
  .dsb-divider { width: 100%; height: 1px; margin: 0 16px; align-self: auto; }
  .dsb-btn { border-radius: var(--radius); margin: 5px 8px 8px; width: calc(100% - 16px); justify-content: center; padding: 12px; }
  .dsb-btn span { display: inline; }
}

/* ?? Location autocomplete dropdown ?????????? */
.dsb-where { z-index: 100; }
.loc-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: -16px; right: 0;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 4px 0;
  margin: 0;
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
}
.loc-dropdown li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
  gap: 10px;
}
.loc-dropdown li:hover, .loc-dropdown li.lac-active {
  background: var(--purple-l);
}
.lac-name { font-weight: 500; color: var(--text); }
.lac-prov {
  font-size: 11px; font-weight: 700;
  color: var(--purple); background: var(--purple-l);
  padding: 2px 7px; border-radius: 99px;
  flex-shrink: 0;
}

/* Legacy single search-bar (keep for any leftover uses) */
.search-bar {
  display: flex; max-width: 620px; margin: 0 auto;
  background: #fff; border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18); overflow: hidden;
}
.search-bar input {
  flex: 1; min-width: 0; border: none; border-radius: 0;
  padding: 14px 20px; font-size: 15px; margin: 0; box-shadow: none; outline: none;
}
.search-bar input:focus { box-shadow: none; border-color: transparent; }
.search-bar button {
  flex: 0 0 auto; background: var(--purple); color: #fff; border: none;
  border-radius: 0; padding: 14px 24px; font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  white-space: nowrap; min-height: auto; width: auto; transition: background .15s;
}
.search-bar button:hover { background: var(--purple-d); }

/* ??????????????????????????????????????????
   TRUST STRIP
?????????????????????????????????????????? */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px var(--content-pad);
}
.trust-strip-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.trust-strip-inner i { color: var(--teal); margin-right: 5px; }

/* ??????????????????????????????????????????
   SECTOR CARDS
?????????????????????????????????????????? */
.sector-card {
  text-align: center;
  padding: 24px 16px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sector-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sector-card h3 { font-size: 13px; font-weight: 600; margin: 0; }
.sector-card p { font-size: 11px; color: var(--muted); margin: 0; }
.card-icon-wrap {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--purple-l);
  color: var(--purple);
  margin: 0 auto 4px;
  flex-shrink: 0;
}
.card-icon-wrap i { font-size: 20px; }

/* ???????????????????????????????????????????
   PROVIDER CARDS  (search results)
??????????????????????????????????????????? */
.provider-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-width: 0;
}
/* Left accent bar per tier */
.provider-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}
.pc-accent-amber::before { background: #f59e0b; }
.pc-accent-purple::before { background: var(--purple); }
.pc-accent-teal::before   { background: var(--teal); }

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

/* Top section: avatar + info */
.pc-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pc-avatar {
  flex: 0 0 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
  overflow: hidden;
  position: relative;
  background: #e5e7eb;
}
.pc-avatar-amber  { background: #f59e0b; }
.pc-avatar-purple { background: var(--purple); }
.pc-avatar-teal   { background: var(--teal); }
.pc-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.pc-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1;
}

.pc-info { flex: 1; min-width: 0; }

.pc-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.pc-name {
  font-size: 15px; font-weight: 700;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.pc-tier-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px 4px 10px;
  border-radius: 0;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(0,0,0,.16);
}
.pc-tier-pill::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
}
.pc-tier-pill::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 10px solid;
}
.pc-pill-amber  { background: linear-gradient(90deg, #f59e0b, #d97706); color: #fff; border: 1px solid #c26a05; }
.pc-pill-amber::before { border-top: 7px solid #92400e; }
.pc-pill-amber::after { border-left-color: #b45309; }
.pc-pill-purple { background: linear-gradient(90deg, #6d28d9, #4b1fa8); color: #fff; border: 1px solid #3d178b; }
.pc-pill-purple::before { border-top: 7px solid #2e1065; }
.pc-pill-purple::after { border-left-color: #3d178b; }

/* Stars in card */
.pc-stars {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; margin-bottom: 6px;
}
.pc-stars i       { color: #f59e0b; }
.pc-stars span    { font-weight: 700; font-size: 13px; margin-left: 3px; color: var(--text); }
.pc-rev-count     { color: var(--muted); font-size: 12px; font-weight: 400; }
.pc-no-reviews    { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.pc-no-reviews i  { color: #d1d5db; }

/* Chips row */
.pc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pc-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 99px;
  max-width: 100%;
}
.pc-chip i { font-size: 9px; }
.pc-chip-areas { color: var(--purple); border-color: rgba(75,31,168,.2); background: var(--purple-l); }

/* Description preview */
.pc-desc {
  font-size: 13px; color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  line-height: 1.5;
}

/* Badge chips */
.pc-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.pc-badge-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #047857;
  background: #d1fae5; border: 1px solid #a7f3d0;
  padding: 2px 8px; border-radius: 99px;
}
.pc-badge-chip i { font-size: 9px; }

/* Card footer */
.pc-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.pc-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600;
  color: var(--purple);
  transition: gap .15s;
}
.provider-card:hover .pc-cta { gap: 8px; }

.location-card .pc-top {
  align-items: center;
}
.location-card .pc-footer {
  margin-top: auto;
}
.locations-filter-card {
  margin-bottom: 18px;
}
.locations-filter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}
.locations-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.locations-result-count {
  margin: 10px 0 0;
}
.locations-province-group {
  margin-top: 22px;
}
.locations-province-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.locations-province-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--purple-l);
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
}

@media (min-width: 768px) {
  .locations-filter-form {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  }
}

.providers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ??????????????????????????????????????????
   AUTH / TWO-COLUMN LAYOUT
?????????????????????????????????????????? */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px var(--content-pad);
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}
.auth-form-col .card { margin: 0; }
.auth-trust-col h3 { margin-bottom: 14px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px; color: var(--muted); cursor: pointer; margin-bottom: 14px;
}
.checkbox-label input[type="checkbox"] { width: auto; min-height: auto; flex-shrink: 0; margin-top: 2px; margin-bottom: 0; }
.trust-list {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-direction: column; gap: 11px;
}
.trust-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.trust-list i  { color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* ??????????????????????????????????????????
   STAGES / BADGES
?????????????????????????????????????????? */
.badge {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
.badge-stage {
  display: inline-flex; align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.badge-stage.bronze  { background: #92400e; color: #fff; }
.badge-stage.silver  { background: #6b7280; color: #fff; }
.badge-stage.gold    { background: #d97706; color: #fff; }
.badge-stage.platinum { background: #1e1b4b; color: #e0e7ff; }
.stage-list { display: flex; flex-direction: column; gap: 10px; }
.stage-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.status-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #f3f4f6; color: var(--muted); }
.status-active, .status-succeeded, .status-approved, .status-paid { background: #dcfce7; color: #166534; }
.status-pending, .status-under_review, .status-queued { background: #fef9c3; color: #854d0e; }
.status-cancelled, .status-failed, .status-rejected, .status-inactive { background: #fee2e2; color: #991b1b; }

/* ??????????????????????????????????????????
   STEPS LIST (verification)
?????????????????????????????????????????? */
.steps-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px 12px 54px;
  box-shadow: var(--shadow-sm);
}
.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-list i  {
  font-size: 1rem;
  color: var(--teal);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ??????????????????????????????????????????
   DASHBOARD LAYOUT
?????????????????????????????????????????? */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px var(--content-pad) 40px;
  box-sizing: border-box;
}
.dashboard-main { display: flex; flex-direction: column; gap: 16px; }
.dashboard-sidebar { display: flex; flex-direction: column; gap: 16px; }
.onboarding-inline-form {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.onboarding-cat-picker {
  position: relative;
  flex: 1;
  min-width: 260px;
}
.onboarding-inline-help {
  margin-top: 6px;
}

/* ??????????????????????????????????????????
   STAT CARDS
?????????????????????????????????????????? */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.stat-card--accent { border-color: var(--purple); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--purple-l);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.stat-card--accent .stat-icon { background: var(--purple); color: #fff; }
.stat-value { font-size: 1.55rem; font-weight: 700; line-height: 1; color: var(--text); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ??????????????????????????????????????????
   CHECKLIST
?????????????????????????????????????????? */
.checklist-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.completion-circle {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.progress-bar-wrap { background: #f1f5f9; border-radius: 999px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--teal); border-radius: 999px; transition: width .4s ease; }
.checklist-items { display: flex; flex-direction: column; gap: 10px; }
.checklist-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  cursor: pointer; background: #fdfdff; transition: border-color .15s, background .15s;
}
.checklist-item input[type="checkbox"] { width: auto; min-height: auto; flex-shrink: 0; margin-top: 2px; margin-bottom: 0; }
.checklist-item:has(input:checked) { border-color: var(--teal); background: #f0fdf4; }
.checklist-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--purple-l); color: var(--purple);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.checklist-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.checklist-text strong { font-weight: 600; }
.checklist-text .muted { font-size: 12px; }
.ai-tips-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.ai-tips-list li { font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }

/* ??????????????????????????????????????????
   EVENT ANALYTICS
?????????????????????????????????????????? */
.event-breakdown { display: flex; flex-direction: column; gap: 12px; }
.event-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.event-row-label { width: 180px; flex-shrink: 0; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.event-row-label i { color: var(--teal); width: 14px; text-align: center; }
.event-row-bar { flex: 1; background: #f1f5f9; border-radius: 999px; height: 9px; overflow: hidden; }
.event-bar-fill { height: 100%; background: var(--teal); border-radius: 999px; }
.event-row-count { width: 36px; text-align: right; font-weight: 700; }
.benchmark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.benchmark-item { text-align: center; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.benchmark-val { display: block; font-size: 1.35rem; font-weight: 700; color: var(--purple); }
.benchmark-label { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ??????????????????????????????????????????
   BILLING PLANS
?????????????????????????????????????????? */
.billing-plans { display: grid; grid-template-columns: 1fr; gap: 14px; }
.billing-plan-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.billing-plan-card--popular { border-color: var(--purple); }
.billing-plan-price { font-size: 1.6rem; font-weight: 700; color: var(--purple); margin: .5rem 0; }
.billing-plan-price span { font-size: .85rem; font-weight: 400; color: var(--muted); }
.billing-feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }

/* ??????????????????????????????????????????
   ADMIN PENDING ITEMS
?????????????????????????????????????????? */
.pending-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  text-decoration: none; color: var(--text);
  background: #fff;
  gap: 14px; transition: border-color .15s, background .15s;
}
.pending-item:hover { border-color: var(--purple); background: #faf5ff; }
.pending-item--alert { border-color: #fbbf24; background: #fffbeb; }
.pending-item p { margin: .2rem 0 0; font-size: 12px; color: var(--muted); }
.pending-count {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.pending-item--alert .pending-count { background: #d97706; }

/* ???????????????????????????????????????????
   PRICING PAGE
??????????????????????????????????????????? */

/* Hero */
.pricing-hero-section {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 40px;
  text-align: center;
}
.pricing-hero-inner h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 10px; }
.pricing-hero-sub { font-size: 1rem; color: var(--muted); margin-bottom: 28px; }

/* Billing toggle */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 99px; padding: 6px 18px;
}
.toggle-label { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.toggle-label.tl-active { color: var(--text); }
.toggle-switch {
  width: 46px; height: 26px; border-radius: 99px;
  background: var(--line); border: none; cursor: pointer;
  position: relative; transition: background .25s;
  flex-shrink: 0;
}
.toggle-switch.ts-on { background: var(--purple); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .25s;
}
.toggle-switch.ts-on .toggle-thumb { transform: translateX(20px); }
.save-pill {
  display: inline-block;
  background: #d1fae5; color: #065f46;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  border: 1px solid #6ee7b7;
}

/* Grid */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* Card base */
.pricing-card {
  border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; background: var(--surface);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Popular card ? dark purple */
.pricing-card--popular {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 8px 32px rgba(75,31,168,.35);
}
.pricing-card--popular:hover { box-shadow: 0 14px 40px rgba(75,31,168,.45); }

/* Popular badge */
.pricing-popular-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 99px; padding: 4px 14px;
  font-size: 11px; font-weight: 700;
  margin-bottom: 18px; align-self: flex-start;
  border: 1px solid rgba(255,255,255,.3);
}

/* Plan head: icon bubble + name */
.pricing-plan-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px;
}
.plan-icon-bubble {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.plan-icon-basic    { background: rgba(20,184,166,.12); color: var(--teal); }
.plan-icon-featured { background: rgba(255,255,255,.2); color: #fff; }
.plan-icon-sponsored{ background: rgba(245,158,11,.12); color: #f59e0b; }
.pricing-plan-name  { font-size: 1.1rem; margin: 0 0 2px; }
.pricing-plan-tagline { font-size: 13px; margin: 0; opacity: .75; }
.pricing-card--popular .pricing-plan-name    { color: #fff; }
.pricing-card--popular .pricing-plan-tagline { color: rgba(255,255,255,.75); }

/* Price block */
.pricing-price-block {
  display: flex; align-items: baseline; gap: 10px;
  flex-wrap: wrap; margin-bottom: 4px;
}
.pricing-anchor {
  font-size: 1.05rem; font-weight: 600;
  color: var(--muted); text-decoration: line-through;
}
/* anchor is visible (white, semi-transparent) on the popular card */
.pricing-card--popular .pricing-anchor { color: rgba(255,255,255,.55); }

.pricing-live-wrap  { display: flex; align-items: baseline; gap: 3px; }
.pricing-live       { font-size: 2.4rem; font-weight: 900; color: var(--purple); line-height: 1; }
.pricing-period     { font-size: .95rem; font-weight: 400; color: var(--muted); }
.pricing-card--popular .pricing-live   { color: #fff; }
.pricing-card--popular .pricing-period { color: rgba(255,255,255,.7); }

/* Save label */
.pricing-save-label {
  font-size: 12px; font-weight: 600;
  color: #16a34a; margin-bottom: 20px;
}
.pricing-card--popular .pricing-save-label { color: #86efac; }

/* Divider */
.pricing-divider {
  height: 1px; background: var(--line); margin-bottom: 20px;
}
.pricing-card--popular .pricing-divider { background: rgba(255,255,255,.2); }

/* Features */
.pricing-features {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; flex: 1;
}
.pricing-features li { display: flex; align-items: flex-start; gap: 9px; }
.pricing-features i  { color: var(--teal); margin-top: 2px; flex-shrink: 0; font-size: 12px; }
.pricing-card--popular .pricing-features li { color: rgba(255,255,255,.9); }
.pricing-card--popular .pricing-features i  { color: #86efac; }

/* CTAs */
.pricing-cta-popular,
.pricing-cta-default {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 99px;
  font-size: 15px; font-weight: 700;
  text-decoration: none; margin-top: auto;
  transition: opacity .15s, transform .15s;
}
.pricing-cta-popular:hover,
.pricing-cta-default:hover { opacity: .88; transform: translateY(-1px); }
.pricing-cta-popular {
  background: #fff; color: var(--purple);
}
.pricing-cta-default {
  background: var(--purple); color: #fff;
  box-shadow: 0 2px 8px rgba(75,31,168,.25);
}

/* Trust items */
.pricing-trust-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-bottom: 24px;
}
.pricing-trust-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.ptrust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--purple-l); margin-bottom: 12px;
  font-size: 18px; color: var(--purple);
}
.pricing-trust-item h3 { font-size: 1rem; margin-bottom: 6px; }
.pricing-trust-item p  { font-size: 13px; color: var(--muted); margin: 0; }
.pricing-objection-copy {
  text-align: center; font-size: 13px; color: var(--muted);
  padding: 16px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); margin-top: 8px;
}
.pricing-ozow-trust {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}
.pricing-ozow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.pricing-ozow-link:hover {
  border-color: rgba(75,31,168,.22);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.pricing-ozow-logo {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 4px;
}

/* Bottom CTA band */
.pricing-bottom-cta {
  background: var(--purple); padding: 56px 20px; text-align: center;
}
.pricing-bottom-inner h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 10px; }
.pricing-bottom-inner p  { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.pricing-fine-print { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 14px; margin-bottom: 0; }

.pricing-how-section {
  background: #f8fafc;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.pricing-how-inner { max-width: 980px; text-align: center; }
.pricing-how-sub {
  color: var(--muted);
  margin-top: .5rem;
  font-size: 15px;
  line-height: 1.7;
}
.pricing-how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 1.5rem;
}
.pricing-how-grid-upgraded {
  margin-top: 1.75rem;
}
.pricing-how-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 16px 16px;
  text-align: center;
  position: relative;
}
.pricing-how-card-upgraded {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 30px;
  min-height: 250px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pricing-how-card-upgraded:hover {
  transform: translateY(-4px);
  border-color: rgba(75,31,168,.25);
  box-shadow: 0 14px 28px rgba(15,23,42,.10);
}
.pricing-how-num {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-how-icon {
  width: 42px;
  height: 42px;
  margin: 4px auto 10px;
  border-radius: 10px;
  background: var(--purple-l);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.pricing-how-card-upgraded .pricing-how-icon { margin: 2px 0 4px; }
.pricing-how-card strong { display: block; margin-bottom: 6px; }
.pricing-how-card p { font-size: 13px; }
.pricing-upgrade-note {
  font-size: 11px;
  text-align: center;
  margin-top: 8px;
  opacity: .65;
}

/* Shared step badge ribbon (top-right, partial-width) */
.step-badge {
  position: absolute;
  top: -12px;
  right: 14px;
  z-index: 2;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 14px;
  border-radius: 14px 14px 14px 4px;
  border: 1px solid rgba(75,31,168,.2);
  background: #fff;
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(15,23,42,.12);
}

/* About page refresh */
.about-shell { padding-bottom: 0; }
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.about-intro-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}
.about-intro-card--accent {
  border-color: rgba(75,31,168,.2);
  background: #faf5ff;
}
.about-steps-section { padding-top: 8px; }
.about-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.about-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.about-contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ??????????????????????????????????????????
   BLOG
?????????????????????????????????????????? */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.blog-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.blog-card-meta { display: flex; align-items: center; gap: 10px; }
.blog-category { background: var(--purple-l); color: var(--purple); font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.blog-card-title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.blog-card-excerpt { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.blog-post-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
.blog-post-sidebar { display: flex; flex-direction: column; gap: 16px; }
.blog-lead { font-size: 1.1rem; color: var(--muted); line-height: 1.65; border-left: 3px solid var(--teal); padding-left: 16px; margin-bottom: 1.5rem; }
.blog-content { line-height: 1.8; font-size: 15.5px; }
.blog-content h2, .blog-content h3 { color: var(--purple); margin-top: 1.75rem; }
.blog-content p { margin-bottom: 1.1rem; }
.blog-content ul, .blog-content ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.blog-content blockquote { border-left: 3px solid var(--teal); padding-left: 16px; color: var(--muted); margin-left: 0; }
.blog-empty-card { text-align: center; padding: 3rem 1.5rem; }
.blog-empty-icon { font-size: 2.5rem; color: #d1d5db; margin-bottom: 1rem; }
.blog-card-link { text-decoration: none; color: inherit; }
.blog-date-xs { font-size: 12px; }
.blog-author-xs { font-size: 13px; }
.blog-author-xs i { margin-right: 4px; }
.blog-read-pill { font-size: 13px; padding: 4px 12px; min-height: auto; }
.blog-post-category-pill {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  margin-bottom: .75rem;
}
.blog-post-meta { opacity: .85; margin-top: .5rem; font-size: .95rem; }
.blog-post-meta i { margin-right: 5px; }
.blog-gallery-card { margin-top: 1.5rem; }
.blog-gallery-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .75rem; }
.blog-tags-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 6px; }
.blog-tag-chip {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--muted);
}
.blog-cta-card { background: #f0fdf4; border-color: #bbf7d0; margin-top: 1.5rem; text-align: center; }
.blog-cta-btn { margin-top: .5rem; display: inline-block; }
.blog-share-stack { display: flex; flex-direction: column; gap: 8px; margin-top: .5rem; }
.blog-sidebar-note { font-size: 13px; }
.blog-sidebar-search-btn { display: block; text-align: center; margin-top: .75rem; }
.blog-comments-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1.5rem; }
.blog-comment-text { margin: .5rem 0 0; }
.blog-comment-reply { margin-top: .75rem; }
.blog-comment-reply-text { margin: .25rem 0 0; }
.blog-comment-empty { margin-bottom: 1.25rem; }
.blog-comment-form { margin-top: .75rem; }
.blog-comment-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.blog-comment-help { font-size: 12px; }
.blog-comment-submit { margin-top: .5rem; }

/* ???????????????????????????????????????????
   PROVIDER PROFILE PAGE
??????????????????????????????????????????? */

/* Hero band */
.profile-hero-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 32px 0 28px;
}
.profile-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Avatar */
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar-initials {
  width: 96px; height: 96px;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.pav-amber  { background: #f59e0b; }
.pav-purple { background: var(--purple); }
.pav-teal   { background: var(--teal); }
.profile-avatar-img {
  width: 96px; height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.profile-plan-badge {
  position: absolute;
  top: -8px; right: -10px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px 4px 10px;
  border-radius: 0;
  box-shadow: 0 9px 18px rgba(0,0,0,.18);
}
.profile-plan-badge::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
}
.profile-plan-badge::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 10px solid;
}
.ppb-amber  { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border: 1px solid #c26a05; }
.ppb-amber::before { border-top: 7px solid #92400e; }
.ppb-amber::after { border-left-color: #b45309; }
.ppb-purple { background: linear-gradient(135deg, #6d28d9, #4b1fa8); color: #fff; border: 1px solid #3d178b; }
.ppb-purple::before { border-top: 7px solid #2e1065; }
.ppb-purple::after { border-left-color: #3d178b; }

/* Hero info */
.profile-hero-info { flex: 1; min-width: 0; }
.profile-biz-name {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.profile-meta-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
}
.profile-meta-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 99px;
}
.profile-meta-chip i { font-size: 11px; color: var(--teal); }

/* Rating row */
.profile-rating-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.profile-stars { display: flex; gap: 2px; }
.profile-stars i { font-size: 14px; color: #f59e0b; }
.profile-stars .star-empty { color: #d1d5db; }
.profile-rating-row strong { font-size: 15px; }

/* Trust badges */
.profile-badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.profile-trust-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  color: #047857;
  background: #d1fae5; border: 1px solid #6ee7b7;
  padding: 3px 10px; border-radius: 99px;
}
.profile-trust-badge i { font-size: 10px; }

/* Quick action buttons in hero (shown on mobile; sidebar handles desktop) */
.profile-quick-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 6px;
}
.pqa-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: opacity .15s;
}
.pqa-btn:hover { opacity: .85; color: inherit; }
.pqa-whatsapp { background: #25d366; color: #fff; }
.pqa-call     { background: var(--teal);   color: #fff; }
.pqa-web      { background: var(--surface); color: var(--text); border-color: var(--line); }
.pqa-dir      { background: var(--surface); color: var(--text); border-color: var(--line); }

/* Body layout */
.profile-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  /* Vertical only — when combined with `.wrap`, keep horizontal padding from `.wrap` */
  padding-top: 28px;
  padding-bottom: 56px;
}
.profile-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Profile cards (not the generic .card) */
.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.pcard-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.pcard-head i  { font-size: 16px; color: var(--purple); flex-shrink: 0; }
.pcard-head h2 { margin: 0; font-size: 1.05rem; }
.pcard-head-count {
  margin-left: auto;
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  background: var(--bg); border: 1px solid var(--line);
  padding: 2px 9px; border-radius: 99px;
}
.pcard-body-text { font-size: 14px; line-height: 1.7; color: var(--text); white-space: pre-line; }
.pcard-muted {
  background: var(--bg);
  box-shadow: none;
}
.pcard-muted details summary {
  cursor: pointer;
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
  list-style: none;
}
.pcard-muted details summary i { font-size: 12px; }
.report-form-wrap { margin-top: 14px; }
.pcard-report-compact { border-style: dashed; }
.pcard-report-simple { border-style: dashed; }
.report-toggle-btn { width: auto; font-size: 13px; }
.report-form-wrap-hidden { display: none; }
.report-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
}
.report-details summary small { font-weight: 500; font-size: 12px; }
.report-submit-btn { width: auto; }

/* Offer grid */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.offer-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.offer-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  background: #eef2f7;
}
.offer-image-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* Global overflow guards (do not list layout wrappers that define their own max-width) */
.site-main,
.auth-shell,
.lp-hero-inner,
.lp-steps-inner,
.lp-proof-inner,
.lp-cta-inner {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

@media (max-width: 767px) {
  .wrap,
  .hdr-inner,
  .ftr-inner,
  .admin-content {
    padding-left: 14px;
    padding-right: 14px;
  }
  .offer-image-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .provider-offer-thumb {
    max-width: 100%;
    height: 120px;
  }

  /* Enforce visible side breathing room on wrapped mobile layouts */
  .site-main .site-content,
  .site-main .wrap,
  .site-main .page-hero-inner,
  .site-main .home-hero-inner,
  .site-main .auth-layout,
  .site-main .auth-form-side,
  .site-main .auth-form-body,
  .site-main .dashboard-layout,
  .site-main .profile-body,
  .site-main .profile-form-shell,
  .site-main .lp-hero-inner,
  .site-main .lp-steps-inner,
  .site-main .lp-proof-inner,
  .site-main .lp-cta-inner {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Avoid overlap/side-scroll from long chips/buttons/text blocks */
  .site-main * {
    min-width: 0;
  }
  .site-main .badge,
  .site-main .badge-stage,
  .site-main .btn-cta,
  .site-main .btn-primary,
  .site-main .btn-ghost {
    white-space: normal;
    text-align: center;
  }
  .site-main p,
  .site-main li,
  .site-main h1,
  .site-main h2,
  .site-main h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .report-details summary {
    flex-wrap: wrap;
  }
  .report-submit-btn {
    width: 100%;
    justify-content: center;
  }
}
.offer-card-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.offer-title { font-size: 14px; font-weight: 700; }
.offer-price {
  font-size: 14px; font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}
.offer-cat-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 99px;
  width: fit-content;
}
.offer-cat-chip i { font-size: 9px; }
.offer-desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Provider profile gallery slider */
.pcard-gallery { margin-bottom: 8px; }
.profile-gallery { display: flex; flex-direction: column; gap: 12px; }
.profile-gallery-main-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f172a;
}
.profile-gallery-main {
  display: block;
  width: 100%;
  height: clamp(220px, 42vw, 420px);
  object-fit: cover;
}
.profile-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(15,23,42,.6);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-gallery-prev { left: 10px; }
.profile-gallery-next { right: 10px; }
.profile-gallery-nav:hover { background: rgba(15,23,42,.85); }
.profile-gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.profile-gallery-thumb {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.profile-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-gallery-thumb.is-active {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(20,184,166,.2);
}

/* Reviews */
.reviews-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.review-item  { display: flex; gap: 12px; align-items: flex-start; }
.review-avatar {
  flex: 0 0 38px; height: 38px;
  border-radius: 50%;
  background: var(--purple-l);
  color: var(--purple);
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.review-body  { flex: 1; }
.review-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px;
  margin-bottom: 4px;
}
.review-header strong { font-size: 14px; }
.review-stars { display: flex; gap: 2px; }
.review-stars i { font-size: 12px; color: #f59e0b; }
.review-stars .star-empty { color: #d1d5db; }
.review-text { font-size: 14px; color: var(--text); line-height: 1.6; margin: 0; }
.review-empty {
  text-align: center; padding: 28px 16px;
  color: var(--muted);
}
.review-empty i { font-size: 2rem; display: block; margin-bottom: 8px; color: #d1d5db; }
.review-empty p { margin: 0; }
.review-form-wrap {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 4px;
}
.review-form-wrap h3 { font-size: 1rem; margin-bottom: 14px; }

/* Profile sidebar */
.profile-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* Contact card */
.pcard-contact h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; margin-bottom: 14px;
}
.pcard-contact h3 i { color: var(--purple); }
.contact-actions { display: flex; flex-direction: column; gap: 10px; }
.contact-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: background .15s, border-color .15s;
}
.contact-btn i { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.contact-btn span { display: flex; flex-direction: column; line-height: 1.3; }
.contact-btn span strong { font-size: 14px; }
.contact-btn span small  { font-size: 11px; color: var(--muted); }
.contact-btn:hover { background: var(--bg); border-color: #c4c9d4; color: var(--text); }
.contact-whatsapp { background: #f0fdf4; border-color: #86efac; }
.contact-whatsapp i { color: #16a34a; }
.contact-whatsapp:hover { background: #dcfce7; }
.contact-call { }
.contact-call i { color: var(--teal); }
.contact-web i  { color: var(--purple); }
.contact-dir i  { color: #ef4444; }

/* Business detail list */
.biz-detail-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.biz-detail-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
}
.biz-detail-list li i { color: var(--purple); width: 16px; text-align: center; margin-top: 2px; flex-shrink: 0; }
.biz-detail-list div { display: flex; flex-direction: column; line-height: 1.4; }
.biz-detail-list small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.pcard-bizdetails { border-color: #d9deea; background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%); }
.pcard-bizdetails h3 { display:flex; align-items:center; gap:8px; margin-bottom: 12px; }
.pcard-bizdetails h3 i { color: var(--purple); }
.biz-service-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.biz-service-chip {
  display:inline-flex; align-items:center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f4f6ff;
  border: 1px solid #dfe4f4;
  color: #374151;
  font-size: 12px;
  line-height: 1.25;
}

/* Share buttons */
.pcard-share h3 { font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pcard-share h3 i { color: var(--purple); }
.share-btns { display: flex; gap: 8px; }
.share-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.share-btn:hover { color: var(--text); }
.share-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-x:hover  { background: #000;    color: #fff; border-color: #000; }
.share-copy:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

/* Owner CTA nudge */
.pcard-cta-nudge { text-align: center; }
.pcard-cta-nudge p { margin-bottom: 6px; }

/* Responsive: profile hero + layout */
@media (min-width: 900px) {
  .profile-quick-actions { display: none; } /* sidebar handles it on desktop */
  .profile-body { grid-template-columns: 1fr 300px; align-items: start; }
}

@media (max-width: 767px) {
  .pcard {
    padding: 16px;
  }
  .report-toggle-btn,
  .report-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ??????????????????????????????????????????
   SEARCH META
?????????????????????????????????????????? */
.search-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.search-meta i { color: var(--teal); }

/* ??????????????????????????????????????????
   NEWSLETTER SECTION
?????????????????????????????????????????? */
.newsletter-section {
  background: var(--purple);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  color: #fff;
}
.newsletter-inner { display: grid; grid-template-columns: 1fr; gap: 24px; }
.newsletter-section h2 { color: #fff; }
.newsletter-section p { color: rgba(255,255,255,.8); }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  border-radius: 10px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.7); box-shadow: none; }

/* ??????????????????????????????????????????
   TABLES
?????????????????????????????????????????? */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
.table th { padding: 10px 14px; background: var(--bg); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }

/* ??????????????????????????????????????????
   LEGAL / BLOG BODY
?????????????????????????????????????????? */
.legal-body { line-height: 1.8; font-size: 15px; }
.legal-body h2, .legal-body h3 { color: var(--purple); margin-top: 1.75rem; }
.legal-body p { margin-bottom: 1rem; }

/* ??????????????????????????????????????????
   IMAGES
?????????????????????????????????????????? */
.image-thumb    { max-width: 180px; border-radius: 8px; border: 1px solid var(--line); }
.image-thumb-lg { max-width: 280px; border-radius: 10px; border: 1px solid var(--line); }
.quill-editor   { height: 280px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; }

/* ??????????????????????????????????????????
   FOOTER
?????????????????????????????????????????? */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.75);
  margin-top: 60px;
}
.ftr-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px var(--content-pad) 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.ftr-logo { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.brand-logo--footer { max-height: 44px; max-width: 240px; }
.brand-text-fallback--footer { color: #fff; }
.ftr-logo .brand-zest { color: #fff; }

.profile-form-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px var(--content-pad) 56px;
  box-sizing: border-box;
}
.profile-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.profile-form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.profile-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #f5f3ff;
  color: var(--purple);
  font-weight: 700;
  white-space: nowrap;
}
.profile-form-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.profile-form-section {
  background: #fbfcff;
  border: 1px solid #eef2ff;
  border-radius: 16px;
  padding: 18px;
}
.profile-form-section h3 {
  margin-bottom: 14px;
  font-size: 16px;
}
.profile-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.profile-form-row:last-child { margin-bottom: 0; }
.profile-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
}
.admin-rich-editor {
  background: #fff;
  margin-bottom: 12px;
}
.admin-rich-editor .ql-editor {
  min-height: 180px;
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 820px) {
  .profile-form-card { padding: 20px; border-radius: 16px; }
  .profile-form-head { flex-direction: column; }
  .profile-form-row { grid-template-columns: 1fr; }
  .profile-form-actions { flex-direction: column; align-items: stretch; }
}
.ftr-brand p { font-size: 14px; line-height: 1.65; max-width: 280px; }
.ftr-social { display: flex; gap: 12px; margin-top: 18px; }
.ftr-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; text-decoration: none;
  transition: background .15s;
}
.ftr-social a:hover { background: rgba(255,255,255,.25); color: #fff; }
.ftr-col { display: flex; flex-direction: column; gap: 10px; }
.ftr-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin: 0 0 6px; }
.ftr-col a { font-size: 13px; color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s; display: flex; align-items: center; gap: 7px; }
.ftr-col a:hover { color: #fff; }
.ftr-col i { width: 14px; text-align: center; }
.ftr-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.ftr-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.ftr-legal a { color: rgba(255,255,255,.4); text-decoration: none; font-size: 12px; }
.ftr-legal a:hover { color: rgba(255,255,255,.8); }

/* ??????????????????????????????????????????
   RESPONSIVE ? TABLET / DESKTOP
?????????????????????????????????????????? */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .billing-plans { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-comment-row { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .newsletter-form { flex-direction: row; flex-wrap: wrap; }
  .newsletter-form button { width: auto; }
  .pricing-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-how-grid { grid-template-columns: repeat(3, 1fr); }
  .about-intro-grid { grid-template-columns: 1.2fr 1fr; }
  .about-steps-grid { grid-template-columns: repeat(3, 1fr); }
  .about-contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .hdr-burger { display: none; }
  .hdr-nav { display: flex; }
  .hdr-actions { display: flex; }
  .mobile-menu { display: none !important; }

  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .ftr-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .auth-layout { grid-template-columns: 1fr 1fr; align-items: start; max-width: 960px; }
  .dashboard-layout { grid-template-columns: 1fr 300px; align-items: start; }
  /* .provider-layout superseded by .profile-body responsive rule in profile section */
  .blog-post-layout { grid-template-columns: 1fr 280px; align-items: start; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-trust-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .providers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .providers-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ??????????????????????????????????????????
   SITE-CONTENT WRAPPER (inner pages)
?????????????????????????????????????????? */
.site-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad) 40px;
}

/* ??????????????????????????????????????????
   ADMIN LAYOUT
?????????????????????????????????????????? */
.admin-body { background: var(--bg); }

/* Admin header tweaks */
.admin-header .admin-badge-pill {
  font-size: 10px; font-weight: 700;
  background: #ede9fe; color: var(--purple);
  border-radius: 999px; padding: 2px 8px;
  margin-left: 6px; letter-spacing: .05em;
  vertical-align: middle;
}
.admin-header .admin-user-pill {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden;
  max-width: 180px; text-overflow: ellipsis;
}
/* Active link in admin header nav */
.admin-hdr-nav a.active {
  color: var(--purple);
  font-weight: 600;
}

/* Full-width flex wrapper for sidebar + main */
.admin-layout-wrap {
  display: flex;
  min-height: calc(100vh - 64px);
}

/* Login-only centered layout */
.admin-login-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Sidebar */
.admin-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 16px 0 0;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}
.admin-main {
  flex: 1;
  min-width: 0;
  background: var(--bg);
}
.admin-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px var(--content-pad) 60px;
  box-sizing: border-box;
}

/* Sidebar nav */
.admin-sidebar-nav { display: flex; flex-direction: column; flex: 1; }
.admin-nav-group { padding: 6px 12px 2px; }
.admin-nav-label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); padding: 2px 8px; margin-bottom: 2px;
}
.admin-nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text);
  text-decoration: none; margin-bottom: 1px;
  transition: background .12s, color .12s;
}
.admin-nav-link:hover,
.admin-nav-link--active {
  background: var(--purple-l);
  color: var(--purple);
}
.admin-nav-link i { width: 16px; text-align: center; color: var(--muted); flex-shrink: 0; }
.admin-nav-link:hover i,
.admin-nav-link--active i { color: var(--purple); }

/* Sidebar user identity footer */
.admin-sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  background: #fafafa;
}
.admin-sidebar-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--purple); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-sidebar-meta { display: flex; flex-direction: column; min-width: 0; }
.admin-sidebar-email {
  font-size: 11px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-sidebar-role {
  font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}

@media (min-width: 768px) {
  .admin-sidebar { display: flex; }
}
@media (max-width: 767px) {
  .admin-content { padding: 16px 14px 40px; }
}

/* ------------------------------------------
   AUTH PAGE ? SPLIT PANEL LAYOUT
------------------------------------------ */
.auth-page {
  display: flex;
  min-height: calc(100vh - 64px);
}

/* Left: white form side */
.auth-form-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  background: #fff;
}
.auth-brand-link { margin-bottom: 24px; }
.auth-brand-link a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.auth-brand-link a:hover { color: var(--purple); }

.auth-form-body {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0 40px;
}

.auth-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 6px;
  line-height: 1.2;
}
.auth-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}
.auth-form { display: flex; flex-direction: column; gap: 0; }
.form-row { display: flex; flex-direction: column; margin-bottom: 14px; }
.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.form-row input {
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s;
  outline: none;
}
.form-row input:focus { border-color: var(--purple); background: #fff; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-optional { font-weight: 400; color: var(--muted); font-size: 11px; }

.btn-full { width: 100%; justify-content: center; margin-top: 8px; }

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}
.auth-switch a { color: var(--purple); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-terms {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.auth-terms a { color: var(--muted); }

/* Right: coloured benefit side */
.auth-benefit-side {
  display: none; /* hidden on mobile */
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.auth-buyer-bg    { background: var(--purple); }
.auth-provider-bg { background: #0f766e; }
.auth-affiliate-bg{ background: #7c3aed; }

.auth-benefit-inner { position: relative; z-index: 1; max-width: 420px; }
.auth-benefit-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  margin-bottom: 20px;
}
.auth-benefit-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.25;
}
.auth-benefit-sub {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  margin-bottom: 24px;
  line-height: 1.6;
}
.auth-benefit-list {
  list-style: none;
  padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.auth-benefit-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,.9); line-height: 1.5;
}
.auth-benefit-list li i { color: rgba(255,255,255,.7); margin-top: 2px; flex-shrink: 0; }

/* social proof strip (buyer/provider) */
.auth-social-proof {
  display: flex; gap: 16px;
  margin-top: 8px;
}
.auth-proof-stat {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 10px 16px;
}
.auth-proof-stat span { font-size: 18px; font-weight: 800; color: #fff; }
.auth-proof-stat small { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 2px; }

/* pricing teaser (provider register) */
.auth-pricing-teaser {
  background: rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.auth-price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 14px; color: rgba(255,255,255,.85);
}
.auth-price-row:last-of-type { border-bottom: none; }
.auth-price-row.featured { font-weight: 700; color: #fff; }
.auth-price-amount { font-size: 14px; }
.auth-price-amount strong { font-size: 16px; color: #fff; }
.auth-price-amount small { font-size: 11px; color: rgba(255,255,255,.6); }
.auth-price-amount s { font-size: 12px; }
.auth-provider-bg .auth-pricing-teaser .auth-price-amount s {
  color: rgba(255,255,255,.78);
  text-decoration-color: rgba(255,255,255,.78);
  opacity: 1;
}
.badge-popular {
  display: inline-block; font-size: 10px; font-weight: 700;
  background: #fbbf24; color: #78350f;
  padding: 1px 7px; border-radius: 99px; margin-left: 6px;
  vertical-align: middle;
}
.auth-pricing-note {
  font-size: 12px; color: rgba(255,255,255,.7);
  margin: 10px 0 0;
}
.auth-cta-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9);
  text-decoration: none;
  transition: color .15s;
}
.auth-cta-link:hover { color: #fff; }

/* affiliate stages */
.auth-stages {
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.auth-stage-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.85);
}

/* ------------------------------------------
   CAMPAIGN LANDING PAGE
------------------------------------------ */

/* Hero */
.lp-hero {
  background: var(--purple);
  padding: 72px 0 56px;
}
.lp-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.lp-hero-text { flex: 1; }
.lp-accent-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: 13px; font-weight: 600;
  padding: 5px 14px; border-radius: 99px;
  margin-bottom: 16px;
}
.lp-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.15;
}
.lp-hero p {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 28px;
}
.lp-hero-ctas {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.lp-btn-lg {
  font-size: 15px !important;
  padding: 13px 28px !important;
}
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--purple);
  font-size: 14px; font-weight: 700;
  padding: 11px 24px; border-radius: 999px;
  text-decoration: none; border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.lp-link-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.lp-link-cta:hover { color: #fff; }
.lp-hero-icon-block {
  width: 160px; height: 160px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: none; /* shows on desktop */
  align-items: center; justify-content: center;
  font-size: 64px; color: rgba(255,255,255,.6);
  flex-shrink: 0;
}

/* Stats bar */
.lp-stats-bar {
  background: #1e1b4b;
  padding: 20px 0;
}
.lp-stats-inner {
  display: flex; align-items: center;
  justify-content: space-around;
  flex-wrap: wrap; gap: 16px;
}
.lp-stat {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.lp-stat-value {
  font-size: 20px; font-weight: 800;
  color: #fff; line-height: 1;
}
.lp-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 3px;
}

/* Section helpers */
.lp-section { padding: 64px 0; }
.lp-section-header { text-align: center; margin-bottom: 40px; }
.lp-features-bg { background: var(--bg); }

/* Steps */
.lp-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.lp-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 18px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 240px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lp-step:hover {
  transform: translateY(-4px);
  border-color: rgba(75,31,168,.25);
  box-shadow: 0 14px 28px rgba(15,23,42,.10);
}
.lp-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(76,29,149,.10);
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 2px 0 4px;
}
.lp-step h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
  color:#0f172a;
}
.lp-step p {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

/* Feature cards */
.lp-feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow .15s;
}
.lp-feature-card:hover { box-shadow: var(--shadow-md); }
.lp-feature-icon {
  font-size: 24px; color: var(--purple);
  margin-bottom: 14px;
}
.lp-feature-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.lp-feature-card p { font-size: 14px; margin: 0; }

/* SEO callout */
.lp-seo-callout {
  display: flex; align-items: flex-start; gap: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.lp-seo-icon {
  font-size: 22px; color: #16a34a; flex-shrink: 0; margin-top: 2px;
}
.lp-seo-callout p { font-size: 14px; color: var(--text); margin: 0; line-height: 1.6; }

/* Final CTA block */
.lp-cta-block {
  background: var(--purple);
  padding: 72px 0;
  text-align: center;
}
.lp-cta-inner { max-width: 600px; margin: 0 auto; padding: 0 24px; }
.lp-cta-block h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900; color: #fff; margin: 0 0 10px;
}
.lp-cta-block p {
  font-size: 16px; color: rgba(255,255,255,.8);
  margin: 0 0 28px; line-height: 1.6;
}

/* ------------------------------------------
   RESPONSIVE ? AUTH + CAMPAIGN
------------------------------------------ */
@media (min-width: 768px) {
  .auth-benefit-side { display: flex; width: 46%; max-width: 500px; }
  .lp-hero-icon-block { display: flex; }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .auth-form-body { padding: 32px 0 40px; }
  .lp-steps { grid-template-columns: repeat(4, 1fr); }
  .grid-3.grid { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------
   HOMEPAGE ? QUICK SEARCH CHIPS
------------------------------------------ */
.hero-quick-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.quick-cat-chip {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: 13px; font-weight: 500;
  padding: 5px 14px; border-radius: 999px;
  text-decoration: none; border: 1px solid rgba(255,255,255,.25);
  transition: background .15s;
}
.quick-cat-chip:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ------------------------------------------
   HOW IT WORKS ? TABS + STEPS
------------------------------------------ */
.how-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.how-steps-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}
.how-steps-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: #475569;
}
.how-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff; color: var(--muted);
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.how-tab.active,
.how-tab:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-l);
}
.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.how-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 18px 18px;
  text-align: left;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 240px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.how-step:hover {
  transform: translateY(-4px);
  border-color: rgba(75,31,168,.25);
  box-shadow: 0 14px 28px rgba(15,23,42,.10);
}
.how-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 2px 0 4px;
}
.how-step-icon--buyer {
  background: rgba(13,148,136,.10);
  color: #0f766e;
}
.how-step-icon--provider {
  background: rgba(76,29,149,.10);
  color: var(--purple);
}
.how-step h3 { font-size: 16px; font-weight: 800; margin: 0 0 4px; color:#0f172a; }
.how-step p  { font-size: 13px; margin: 0; line-height: 1.5; }
.how-step-outcome {
  margin-top: auto !important;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: #334155;
  font-weight: 600;
}

.home-action-grid { align-items: stretch; }
.home-action-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.home-action-card h3 { margin-bottom: 10px; }
.home-action-card p { margin-bottom: 0; }
.home-action-card--primary {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(75,31,168,.1), var(--shadow-sm);
}
.home-action-icon { margin: 0 auto 16px; }
.home-action-icon--primary {
  background: var(--purple);
  color: #fff;
}

@media (min-width: 768px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------
   TIER BADGES (search tier-label section)
------------------------------------------ */
.tier-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 5px 12px 5px 10px;
  border-radius: 0;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(0,0,0,.14);
}
.tier-badge::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
}
.tier-badge::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 10px solid;
}
.tier-sponsored { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border: 1px solid #c26a05; }
.tier-sponsored::before { border-top: 8px solid #92400e; }
.tier-sponsored::after { border-left-color: #b45309; }
.tier-featured  { background: linear-gradient(135deg, #6d28d9, #4b1fa8); color: #fff; border: 1px solid #3d178b; }
.tier-featured::before { border-top: 8px solid #2e1065; }
.tier-featured::after { border-left-color: #3d178b; }

/* ------------------------------------------
   SEARCH ? TIER SECTIONS
------------------------------------------ */
.search-tier-section { margin-bottom: 32px; }
.search-tier-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}

/* ------------------------------------------
   CATEGORIES ? SECTOR PREVIEW CHIPS
------------------------------------------ */
.sector-cat-preview {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 8px;
}
.sector-cat-preview span {
  font-size: 11px;
  background: var(--bg);
  color: var(--muted);
  padding: 2px 8px; border-radius: 99px;
  border: 1px solid var(--line);
}

/* ------------------------------------------
   BREADCRUMB NAV
------------------------------------------ */
.breadcrumb-nav {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.75);
}
.breadcrumb-nav a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb-nav a:hover { color: #fff; }
.breadcrumb-nav i { font-size: 10px; }

/* ------------------------------------------
   GRID-4 VARIANT
------------------------------------------ */
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------
   SECTOR GRID ? square stacked-colour cards
------------------------------------------ */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
/* Smaller variant used on homepage and "Other Sectors" strip */
.sector-grid-sm {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* The card itself ? white square with a coloured pseudo-card behind it */
.sector-sq-card {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 14px 16px;
  text-decoration: none;
  color: inherit;
  overflow: visible;
  z-index: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Coloured card peeking from behind ? slightly rotated offset layer */
.sector-sq-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--accent, var(--purple));
  opacity: 0.18;
  transform: rotate(-4deg) scale(1.03);
  z-index: -1;
  transition: transform .22s ease, opacity .22s ease;
}
/* Second layer ? slightly different rotation for a true stack effect */
.sector-sq-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--accent, var(--purple));
  opacity: 0.09;
  transform: rotate(3deg) scale(1.05);
  z-index: -2;
  transition: transform .22s ease, opacity .22s ease;
}

.sector-sq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.09);
}
.sector-sq-card:hover::before {
  transform: rotate(-6deg) scale(1.05);
  opacity: 0.22;
}
.sector-sq-card:hover::after {
  transform: rotate(5deg) scale(1.07);
  opacity: 0.12;
}

/* Icon circle */
.sector-sq-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(0,0,0,.06);
  color: var(--accent, var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
  flex-shrink: 0;
  transition: background .2s;
}
.sector-sq-card:hover .sector-sq-icon {
  background: rgba(0,0,0,.1);
}

.sector-sq-name {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 3px;
  line-height: 1.3;
}
.sector-sq-count {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
}

/* Preview chips ? only show on categories/index (not homepage sm cards) */
.sector-sq-preview {
  display: flex; flex-wrap: wrap; gap: 4px;
  justify-content: center;
  margin-top: 2px;
}
.sector-sq-preview span {
  font-size: 10px;
  background: var(--bg);
  color: var(--muted);
  padding: 2px 7px; border-radius: 99px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.more-chip { color: var(--purple) !important; background: var(--purple-l) !important; border-color: transparent !important; }

/* ------------------------------------------
   CATEGORY TREE CARDS (sector detail page)
------------------------------------------ */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, var(--purple));
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .15s;
}
.cat-card:hover { box-shadow: var(--shadow-sm); }

.cat-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}
.cat-card-main:hover .cat-find-link { color: var(--accent, var(--purple)); }

.cat-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,.05);
  color: var(--accent, var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.cat-card-body {
  display: flex; flex-direction: column; gap: 1px;
}
.cat-card-body strong { font-size: 14px; font-weight: 700; }
.cat-find-link {
  font-size: 12px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .15s;
}

.cat-subs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
}
@media (min-width: 480px) {
  .cat-subs {
    padding: 8px 18px 14px 72px;
    border-top: none;
  }
}
.cat-sub-chip {
  font-size: 11px;
  background: var(--bg);
  color: var(--text);
  padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-sub-chip:hover {
  background: var(--purple-l);
  border-color: var(--accent, var(--purple));
  color: var(--accent, var(--purple));
}

/* ------------------------------------------
   RESPONSIVE GRIDS
------------------------------------------ */
@media (min-width: 480px) {
  /* Keep mobile-friendly density: 2 cards per row */
  .sector-grid     { grid-template-columns: repeat(2, 1fr); }
  .sector-grid-sm  { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .sector-grid     { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .sector-grid-sm  { grid-template-columns: repeat(3, 1fr); }
  .cat-grid        { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .sector-grid     { grid-template-columns: repeat(4, 1fr); }
  .sector-grid-sm  { grid-template-columns: repeat(4, 1fr); }
  .cat-grid        { grid-template-columns: repeat(2, 1fr); }
  .sector-sq-card  { padding: 24px 16px 20px; }
  .sector-sq-icon  { width: 54px; height: 54px; font-size: 24px; }
  .sector-sq-name  { font-size: 14px; }
}
@media (min-width: 1280px) {
  .sector-grid { grid-template-columns: repeat(4, 1fr); }
  .sector-grid-sm { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------
   MOBILE GLOBAL PADDING
------------------------------------------ */
@media (max-width: 480px) {
  .site-content { padding-left: 14px !important; padding-right: 14px !important; }
  .cat-grid     { gap: 8px; }
  .cat-card-main { padding: 12px 14px; gap: 10px; }
  .cat-card-icon { width: 34px; height: 34px; font-size: 14px; border-radius: 8px; }
  .cat-card-body strong { font-size: 13px; }
  .cat-subs { gap: 5px; padding: 8px 12px 12px; }
  .cat-sub-chip { font-size: 10px; padding: 3px 8px; }
}

/* Ultra-small phones: prioritize readability over density */
@media (max-width: 360px) {
  .sector-grid,
  .sector-grid-sm,
  .cat-grid,
  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .sector-sq-card {
    min-height: 132px;
    padding: 14px 12px;
  }
}

/* ------------------------------------------
   SEARCH META CHIPS
------------------------------------------ */
.search-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; margin-bottom: 20px;
}
.meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple-l);
  color: var(--purple);
  border: 1px solid rgba(75,31,168,.15);
  font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: 99px;
  white-space: nowrap;
}
.meta-chip i { font-size: 11px; }
.meta-chip.loc-chip {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

/* ------------------------------------------
   CONSISTENT SECTOR CARD SIZES ? MOBILE FIRST
------------------------------------------ */

/* On very small screens remove the strict square ratio so content fits */
@media (max-width: 479px) {
  .sector-sq-card {
    aspect-ratio: auto;
    min-height: 120px;
    padding: 16px 10px 14px;
  }
  .sector-sq-icon {
    width: 38px; height: 38px; font-size: 17px;
    margin-bottom: 8px;
  }
  .sector-sq-name { font-size: 12px; }
  .sector-sq-count { font-size: 10px; margin-bottom: 4px; }
  /* Hide preview chips entirely on tiny phones ? they cause overflow */
  .sector-sq-preview { display: none; }
}

/* At 480?767px: allow chips but cap them */
@media (min-width: 480px) and (max-width: 767px) {
  .sector-grid,
  .sector-grid-sm {
    grid-template-columns: repeat(2, 1fr);
  }
  .sector-sq-card .sector-sq-preview {
    max-height: 42px;
    overflow: hidden;
  }
}

/* ------------------------------------------
   PAGE HERO ? consistent inner padding
------------------------------------------ */
/* .page-hero-inner padding is now handled in the base rule above */

/* ------------------------------------------
   SECTOR + CATEGORY ? cross-page consistency
------------------------------------------ */

/* Make sure sector-sq-name doesn't overflow on small aspect-ratio cards */
.sector-sq-name {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

/* Cat card top-level name */
.cat-card-body strong {
  color: var(--text);
  line-height: 1.4;
}

/* Cat card hover state ? highlight the whole row */
.cat-card-main:hover .cat-card-body strong {
  color: var(--accent, var(--purple));
}

/* Sector sq card ? ensure icon stays centered even on tiny cards */
.sector-sq-card {
  min-height: 0; /* override any browser min */
}

/* ------------------------------------------
   PROVIDER ONBOARDING ? SERVICE AREAS
------------------------------------------ */
/* ------------------------------------------
   PROVIDER PROFILE ? SERVICE AREAS DISPLAY
------------------------------------------ */
.profile-service-areas {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; margin-top: 8px;
}
.profile-area-chip {
  font-size: 11px; font-weight: 500;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 99px; padding: 3px 10px;
  color: rgba(255,255,255,.9);
}

/* ------------------------------------------
   PROVIDER ONBOARDING ? SERVICE AREAS MGMT
------------------------------------------ */
.service-area-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.service-area-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 999px; padding: 5px 10px;
  font-size: 13px; font-weight: 500; color: var(--text);
}
.sa-prov {
  font-size: 10px; font-weight: 700; color: #15803d;
  background: #dcfce7; border-radius: 4px; padding: 1px 5px;
}
.sa-remove {
  background: none; border: none; padding: 0; margin: 0;
  color: #9ca3af; cursor: pointer; font-size: 11px;
  display: flex; align-items: center; line-height: 1;
  transition: color .12s;
}
.sa-remove:hover { color: #dc2626; }

/* Checklist item variants */
.checklist-item--required { background: #fef9c3; border-color: #fde68a; }
.required-chip {
  font-size: 10px; font-weight: 700; color: #dc2626;
  background: #fee2e2; border-radius: 4px; padding: 1px 6px;
  margin-left: 4px; letter-spacing: .03em; text-transform: uppercase;
}
.optional-chip {
  font-size: 10px; font-weight: 600; color: var(--muted);
  background: #f1f5f9; border-radius: 4px; padding: 1px 6px;
  margin-left: 4px; letter-spacing: .03em; text-transform: uppercase;
}
.plan-limit-chip {
  font-size: 10px; font-weight: 600; color: var(--teal);
  background: #f0fdfa; border: 1px solid #99f6e4;
  border-radius: 4px; padding: 1px 6px;
  margin-left: 4px; letter-spacing: .03em;
}

/* Alert boxes */
.alert-success, .alert-warning, .alert-danger {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: 10px;
  margin-bottom: 1rem; font-size: 14px; line-height: 1.6;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-warning { background: #fef9c3; border: 1px solid #fde68a; color: #854d0e; }
.alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-danger i, .alert-warning i, .alert-success i { margin-top: 2px; flex-shrink: 0; }

/* ------------------------------------------
   PRICING ? PLAN LIMITS PILLS
------------------------------------------ */
.pricing-limits-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 12px 0;
}
.plimit-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  background: rgba(0,0,0,.05);
  border-radius: 99px; padding: 4px 10px;
  white-space: nowrap;
}
.pricing-card--popular .plimit-pill {
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
}
/* Excluded features (X marks) */
.pf-excluded { opacity: .45; }
.pf-excluded i { color: #9ca3af !important; }

/* ------------------------------------------
   AFFILIATE SALES PLAYBOOK
------------------------------------------ */
.playbook-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.playbook-section:first-child { border-top: none; margin-top: 1rem; padding-top: 0; }
.playbook-section h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .6rem;
}
.playbook-tip {
  background: #f0fdf4;
  border-left: 3px solid var(--teal);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.6;
  margin-top: .75rem;
}
.playbook-step-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.playbook-step-row:last-child { border-bottom: none; }
.playbook-step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.objection-row {
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.objection-q {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.objection-a {
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ------------------------------------------
   AFFILIATE EARNINGS CALCULATOR
------------------------------------------ */
.calc-plan-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.calc-plan-header {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}
.calc-plan-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-earn {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 4px;
}
@media (max-width: 600px) {
  #calc-grid { grid-template-columns: 1fr !important; }
}

/* ------------------------------------------
   EMAIL / WHATSAPP TEMPLATES
------------------------------------------ */
.template-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  position: relative;
}
.template-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--purple);
  margin-bottom: 8px;
}
.template-subject {
  font-size: 12px;
  color: var(--muted);
  background: #e0e7ff;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-style: italic;
}
pre.template-text {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  margin: 0;
}

/* ------------------------------------------
  AFFILIATE DASHBOARD POLISH (MODAL + BANK)
------------------------------------------ */
.affiliate-bank-summary {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  font-size: 13px;
}
.affiliate-bank-summary p { margin: 0; color: var(--muted); }
.affiliate-bank-summary strong { color: var(--text); }
.affiliate-bank-open { width: auto; }

.affiliate-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 50;
}
.affiliate-modal-card {
  position: fixed;
  z-index: 60;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
}
.affiliate-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.affiliate-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.affiliate-modal-close {
  width: auto;
  min-width: 40px;
  padding-inline: 10px;
}
.affiliate-modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* ------------------------------------------
   ADMIN COMMISSION SETTINGS PREVIEW BOX
------------------------------------------ */
.commission-preview-box strong { color: var(--text); }

/* ------------------------------------------
   CLEAN URL CONSISTENCY ? internal chip links
------------------------------------------ */
.quick-cat-chip, .cat-chip, .subcat-chip {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.quick-cat-chip:hover, .cat-chip:hover, .subcat-chip:hover {
  text-decoration: none;
}

/* ------------------------------------------
   DESIGN CONSISTENCY ? unstyled elements fix
------------------------------------------ */

/* Ensure all admin section headings are consistent */
.admin-page-section h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.admin-page-section p  { color: var(--muted); font-size: 15px; }

.ai-range-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.ai-range-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.ai-range-chip:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-l);
}
.ai-range-chip--active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

/* Table wrap scrollable on mobile */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-weight: 600; color: var(--text); background: #f8fafc; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f8fafc; }

/* Success text */
.success-text { color: #15803d; font-size: 14px; margin-bottom: .75rem; }

/* Muted links */
a.muted { color: var(--muted); }
a.muted:hover { color: var(--text); }

/* ?? Handle claim input (joined prefix + field) ???????????????????? */
.handle-input-wrap {
  display: flex; align-items: stretch; max-width: 420px;
}
.handle-input-wrap .handle-prefix {
  display: flex; align-items: center; padding: 0 10px;
  background: #e2e8f0; border: 1px solid #cbd5e1;
  border-right: none; border-radius: 8px 0 0 8px;
  font-size: 14px; color: var(--muted); white-space: nowrap;
}
.handle-input-wrap input[type="text"] {
  border-radius: 0 8px 8px 0 !important;
  border-left: none !important; flex: 1;
}

/* 404 page */
.page-404-wrap { text-align: center; padding: 4rem 1rem; }
.page-404-wrap .err-code { font-size: 6rem; font-weight: 900; color: var(--teal); line-height: 1; }

/* ------------------------------------------
   UI CONSISTENCY HELPERS (dashboards/admin)
------------------------------------------ */
.ui-stack-16 { display: flex; flex-direction: column; gap: 16px; }
.ui-stack-24 { display: flex; flex-direction: column; gap: 24px; }
.ui-section-gap { margin-top: 24px; }
.card-spaced { margin-bottom: 16px; }

.toolbar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
}
.toolbar-grid .toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.stat-tile {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.stat-tile strong { display: block; font-size: 1.1rem; }

.form-inline-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.form-inline-row select,
.form-inline-row input {
  width: auto;
  min-width: 120px;
  margin-bottom: 0;
  min-height: 34px;
}
.form-inline-row button {
  width: auto;
  min-height: 34px;
  padding: 6px 12px;
}

.muted-xs { font-size: 12px; color: var(--muted); }
.muted-xxs { font-size: 11px; color: var(--muted); }
.metric-counter { text-align: right; font-size: 13px; color: var(--muted); }
.metric-counter strong { font-size: 1.25rem; color: var(--teal); }
.stack-col-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-col-10 { display: flex; flex-direction: column; gap: 10px; }
.inline-flex-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.space-top-12 { margin-top: 12px; }
.space-top-16 { margin-top: 16px; }
.text-center { text-align: center; }

.card-tint-success { background: #f0fdf4; border-color: #bbf7d0; }
.card-tint-warn { background: #fff7ed; border-color: #fed7aa; }

.subhead-tight { margin: 0 0 6px; }
.muted-tight { margin: 0; font-size: 13px; color: var(--muted); }

.icon-check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.icon-check-list li i { color: var(--teal); margin-right: 6px; }

.kv-code { font-size: 11px; }

.settings-divider { margin: 16px 0; border: none; border-top: 1px solid var(--line); }
.settings-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.settings-grid-3 { display: grid; grid-template-columns: 1fr; gap: 12px; font-size: 13px; }
.settings-muted-note { margin-bottom: 1rem; font-size: 13px; color: var(--muted); }
.settings-mini-note { font-size: 12px; color: var(--muted); }
.settings-chip-label { color: var(--muted); font-size: 12px; }
.settings-preview-box { margin-top: 1rem; padding: 14px 18px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; }
.settings-preview-title { margin: 0 0 .5rem; font-size: 13px; font-weight: 600; color: var(--text); }
.settings-preview-col { text-align: center; }
.settings-btn-row { margin-top: 1.25rem; }

/* Third sweep helpers */
.section-label-soft { color: rgba(255,255,255,.7); }
.icon-teal { color: var(--teal); }
.icon-gold { color: #f59e0b; }
.icon-purple { color: var(--purple); }
.icon-wa { color: #25d366; }
.center-wrap { text-align: center; margin-top: 24px; }
.btn-mt { margin-top: 1rem; }
.newsletter-shell { margin: 0 20px 60px; border-radius: var(--radius-lg); max-width: 1120px; margin-left: auto; margin-right: auto; }

.smart-assistant-card { margin-bottom: 40px; }
.smart-assistant-row { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.smart-assistant-icon { flex: 0 0 52px; height: 52px; border-radius: 14px; background: var(--purple-l); color: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.smart-assistant-main { flex: 1; min-width: 220px; }
.smart-form { margin-top: 1rem; }
.smart-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.smart-form-input { flex: 1; min-width: 180px; margin: 0; }
.smart-form-btn { width: auto; border-radius: 999px; }
.smart-output { margin-top: 1rem; }
.loading-inline { display: flex; align-items: center; gap: 8px; }

.search-page-top { padding-top: 24px; }
.search-empty-card { text-align: center; padding: 56px 24px; margin-top: 16px; }
.search-empty-icon { font-size: 2.5rem; color: #d1d5db; margin-bottom: 1rem; display: block; }
.search-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.search-footer-cta { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); text-align: center; }
.link-strong { color: var(--purple); font-weight: 600; }

.metric-inline { font-size: 13px; }
.promo-warning { margin-top: 1rem; padding: 12px 14px; background: #fef9c3; border-radius: 8px; border: 1px solid #fde68a; font-size: 14px; }
.promo-warning i { color: #d97706; margin-right: 6px; }

/* Final polish helpers (auth/admin) */
.panel-narrow {
  max-width: 440px;
  margin: 32px auto 0;
}
.panel-medium {
  max-width: 560px;
  margin: 32px auto;
}
.auth-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #166534;
}
.auth-switch-right {
  margin: 0 0 10px;
  text-align: right;
}
.link-row-top {
  margin-top: 16px;
}
.admin-inline-form {
  margin: 0;
}
.btn-compact {
  min-height: 36px;
  font-size: 13px;
  width: auto;
}

@media (min-width: 768px) {
  .toolbar-grid {
    grid-template-columns: 180px 1fr auto;
  }
  .stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .settings-grid-2 { grid-template-columns: 1fr 1fr; }
  .settings-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Site-wide cookie consent modal */
.zl-cookie-modal {
  position: sticky;
  bottom: 0;
  z-index: 250;
  width: min(1120px, calc(100% - 28px));
  margin: 14px auto 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: auto;
}
.zl-cookie-modal.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.zl-cookie-modal__inner {
  background: linear-gradient(135deg, #4b1fa8 0%, #5b21b6 100%);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(31, 17, 84, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zl-cookie-modal__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  line-height: 1.45;
}
.zl-cookie-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.zl-cookie-modal__link {
  color: #ddd6fe;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.zl-cookie-modal__link:hover {
  color: #fff;
}
.zl-cookie-modal__btn {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: #fff;
  color: #4b1fa8;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.zl-cookie-modal__btn:hover {
  background: #f5f3ff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}
@media (min-width: 768px) {
  .zl-cookie-modal {
    width: min(1120px, calc(100% - 44px));
    margin-top: 20px;
  }
  .zl-cookie-modal__inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 14px 18px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .zl-cookie-modal__text {
    font-size: 14px;
    margin-right: 12px;
  }
  .zl-cookie-modal__actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
}

