/* ==========================================================================
   TeraiTrade design system
   Palette derived from the brand mark: pine green (trust/agriculture) +
   harvest gold (prosperity/quality) on warm cream neutrals.
   Type: Fraunces (display serif, warmth + heritage) / Public Sans (body, UI).
   ========================================================================== */

:root {
  color-scheme: light;

  --pine-900: #0f3327;
  --pine-800: #143d2e;
  --pine-700: #1b5e42;
  --pine-600: #216b4d;
  --pine-500: #2d7a57;
  --pine-200: #bfdbcb;
  --pine-100: #e1eee5;

  --gold-700: #8f6a0a;
  --gold-600: #b8860b;
  --gold-500: #c89a2e;
  --gold-400: #d9a83e;
  --gold-200: #ecd8a4;
  --gold-100: #f6ecd1;

  --terracotta: #b85c38;
  --terracotta-100: #f3e0d5;

  --cream-50: #fbf8f2;
  --cream-100: #f3ede0;
  --cream-200: #eae1cc;

  --ink-900: #1c1b17;
  --ink-700: #3a362c;
  --ink-500: #6b675c;
  --ink-300: #a19c8c;

  --bg: var(--cream-50);
  --surface: #ffffff;
  --surface-2: var(--cream-100);
  --text: var(--ink-900);
  --muted: var(--ink-500);
  --line: #e6ddc9;

  --shadow-sm: 0 2px 10px rgba(28, 27, 23, 0.06);
  --shadow: 0 16px 40px rgba(15, 51, 39, 0.12);
  --shadow-md: 0 12px 32px rgba(15, 51, 39, 0.14);
  --shadow-lg: 0 28px 70px rgba(15, 51, 39, 0.2);

  --radius-sm: 7px;
  --radius: 14px;
  --radius-lg: 24px;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------- Reset -------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold-400);
  color: var(--pine-900);
}

h1, h2, h3, h4 {
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pine-900);
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
  overflow-wrap: anywhere;
}

/* -------------------------------- Layout -------------------------------- */

.section {
  padding: clamp(52px, 7vw, 92px) clamp(18px, 4vw, 56px);
}

.section.compact {
  padding-bottom: 32px;
}

.section.tight-top {
  padding-top: clamp(24px, 3vw, 36px);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--gold-600);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--gold-500);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
}

.mt {
  margin-top: 20px;
}

/* Reveal-on-load motion, applied via inline style animation-delay */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: fade-up 0.7s var(--ease) both;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------- Header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--pine-900);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.header-search-wrap {
  position: relative;
  flex: 0 1 420px;
}

.header-search {
  display: flex;
}

.header-search input {
  flex: 1;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: #fff;
  color: var(--ink-900);
  font-size: 0.92rem;
}

.header-search button {
  display: grid;
  place-items: center;
  width: 46px;
  border: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gold-500);
  color: var(--pine-900);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.header-search button:hover {
  background: var(--gold-400);
}

.header-search svg {
  width: 18px;
  height: 18px;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

.search-suggest-group + .search-suggest-group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.search-suggest-heading {
  margin: 4px 8px;
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  transition: background 0.15s var(--ease);
}

.search-suggest-item:hover {
  background: var(--pine-100);
}

.search-suggest-item img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.search-suggest-placeholder {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--pine-100);
  color: var(--pine-700);
  font-weight: 800;
}

.search-suggest-item span:last-child {
  display: grid;
  min-width: 0;
}

.search-suggest-item strong {
  font-size: 0.9rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest-item small {
  color: var(--ink-500);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest-empty {
  padding: 14px 8px;
  margin: 0;
  color: var(--ink-500);
  font-size: 0.86rem;
}

.search-suggest-all {
  display: block;
  margin-top: 6px;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  color: var(--pine-700);
  font-weight: 700;
  font-size: 0.86rem;
}

.search-suggest-all:hover {
  color: var(--gold-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a {
  transition: color 0.15s var(--ease);
}

.nav-links a:hover {
  color: var(--gold-400);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: var(--gold-500);
  color: var(--pine-900);
  font-weight: 800;
  font-size: 0.9rem;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.header-cta:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
}

.logout-form {
  display: inline-flex;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}

/* -------------------------------- Buttons -------------------------------- */

.primary-btn,
.secondary-btn,
.text-btn {
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
  font-family: var(--font-body);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--pine-700);
  color: #fff;
  white-space: nowrap;
}

.primary-btn:hover {
  background: var(--pine-600);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--pine-700);
  background: transparent;
  color: var(--pine-800);
  white-space: nowrap;
}

.secondary-btn:hover {
  background: var(--pine-100);
}

.text-btn,
.text-link {
  background: transparent;
  color: var(--pine-700);
  font-weight: 800;
}

.text-btn.danger,
.text-link.danger {
  color: var(--terracotta);
}

.text-btn:hover,
.text-link:hover {
  color: var(--gold-600);
}

/* --------------------------------- Forms --------------------------------- */

input, select, textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 11px 13px;
  font-size: 0.95rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pine-500);
  box-shadow: 0 0 0 3px var(--pine-100);
}

.rich-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.rich-editor-toolbar button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-800);
  cursor: pointer;
}

.rich-editor-toolbar button:hover {
  border-color: var(--gold-500);
}

.rich-editor-surface {
  min-height: 150px;
  padding: 12px 14px;
  color: var(--ink-900);
  font-weight: 500;
  line-height: 1.65;
  outline: none;
}

.rich-editor-surface ul,
.rich-editor-surface ol {
  padding-left: 22px;
}

.rich-editor-input {
  display: none;
}

.rich-textarea {
  min-height: 220px;
}

.cke_chrome {
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm);
  box-shadow: none !important;
}

.cke_top {
  border-bottom-color: var(--line) !important;
  background: var(--surface-2) !important;
}

.cke_bottom {
  border-top-color: var(--line) !important;
  background: var(--surface-2) !important;
}

.cke_editable,
.cke_wysiwyg_frame {
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.68;
}

.cke_focus {
  border-color: var(--pine-500) !important;
  box-shadow: 0 0 0 3px var(--pine-100) !important;
}

.rich-textarea-fallback {
  min-height: 220px;
}

.rich-content {
  color: var(--ink-800);
  line-height: 1.75;
}

.rich-content > * + * {
  margin-top: 12px;
}

.rich-content ul,
.rich-content ol {
  padding-left: 24px;
}

.rich-content blockquote {
  margin: 14px 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold-500);
  color: var(--muted);
  font-weight: 700;
}

.rich-content img,
.article-body img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.rich-content figure,
.article-body figure {
  margin: 20px 0;
}

.rich-content figcaption,
.article-body figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

/* Tom Select overrides — match brand palette instead of the default blue theme */

.ts-wrapper.single .ts-control,
.ts-wrapper .ts-control {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 8px 12px;
  font-family: var(--font-body);
  box-shadow: none;
}

.ts-wrapper.focus .ts-control {
  border-color: var(--pine-500);
  box-shadow: 0 0 0 3px var(--pine-100);
}

.ts-dropdown {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  box-shadow: var(--shadow);
}

.ts-dropdown .active {
  background: var(--pine-100);
  color: var(--pine-800);
}

.ts-dropdown .option:hover {
  background: var(--pine-100);
}

.ts-control .item {
  background: var(--pine-700);
  color: #fff;
  border-radius: 999px;
  padding: 2px 10px;
}

.ts-wrapper.single .ts-control::after {
  border-color: var(--muted) transparent transparent transparent;
}

/* Locale switcher in the dark header — override the default white Tom Select control */

.locale-form {
  flex-shrink: 0;
}

.locale-form .ts-wrapper {
  width: 112px;
}

.locale-form .ts-wrapper.single .ts-control {
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
}

.locale-form .ts-wrapper.focus .ts-control {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(217, 168, 62, 0.24);
}

.locale-form .ts-wrapper.single .ts-control::after {
  border-color: rgba(255, 255, 255, 0.7) transparent transparent transparent;
}

.locale-form .ts-dropdown {
  min-width: 130px;
  color: var(--ink-900);
}

.lead-form, .rfq-form, .review-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.crud-form {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.form-grid label,
.crud-form > label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-700);
}

.form-grid label.span-2 {
  grid-column: span 2;
}

.advanced-form {
  padding: clamp(20px, 3vw, 36px);
}

.form-section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 24px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
}

.form-section-title:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.form-section-title span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--pine-700);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.form-section-title h3 {
  margin: 0;
  font-size: 1.05rem;
}

.form-section-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.onboarding-hero {
  background: var(--bg);
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 6px 0 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

.toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-error {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--terracotta-100);
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.88rem;
}

.status-note {
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--pine-100);
  color: var(--pine-800);
  font-weight: 700;
}

.inline-form {
  display: inline;
}

/* --------------------------------- Badges --------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--pine-100);
  color: var(--pine-800);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.badge.gold {
  background: var(--gold-100);
  color: var(--gold-700);
}

.badge.unclaimed {
  background: var(--terracotta-100);
  color: var(--terracotta);
}

.badge.verified::before {
  content: "\2713";
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-600);
  font-weight: 800;
  font-size: 0.86rem;
}

.rating-stars .stars {
  letter-spacing: 1px;
}

/* --------------------------------- Cards --------------------------------- */

.business-grid,
.product-grid,
.marketing-grid,
.admin-grid {
  display: grid;
  gap: 20px;
}

.business-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.business-card,
.product-card,
.lead-box,
.marketing-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.business-card,
.product-card,
.marketing-grid article {
  padding: 20px;
}

.business-card:hover,
.product-card:hover,
.marketing-grid article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--pine-200);
}

.business-card.premium {
  border: 2px solid var(--gold-500);
  background: linear-gradient(180deg, var(--gold-100) 0%, var(--surface) 30%);
  box-shadow: 0 10px 28px rgba(184, 134, 11, 0.18);
}

.business-card.premium:hover {
  border-color: var(--gold-600);
  box-shadow: 0 16px 36px rgba(184, 134, 11, 0.26);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.logo-box {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--pine-100);
  color: var(--pine-700);
  font-weight: 900;
  overflow: hidden;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-700);
  font-size: 0.78rem;
  font-weight: 700;
}

.lead-box {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 16px 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list li::before {
  content: "\2713";
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--pine-600);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
}

/* ------------------------------ Breadcrumbs ------------------------------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px clamp(18px, 4vw, 56px) 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumbs a {
  color: var(--pine-700);
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--gold-600);
}

.breadcrumbs span:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--ink-300);
}

/* --------------------------------- Reviews -------------------------------- */

.review-card {
  padding: 16px 18px;
}

.review-card + .review-card {
  margin-top: 12px;
}

/* -------------------------------- Directory ------------------------------- */

.directory-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.filter-panel h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.filter-panel label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-strip {
  display: grid;
  gap: 6px;
}

.category-strip button {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.category-strip button:hover {
  background: var(--surface-2);
}

.category-strip button.active {
  background: var(--pine-700);
  color: #fff;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

/* --------------------------------- Product -------------------------------- */

.product-section {
  background: var(--surface-2);
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card .price {
  color: var(--pine-700);
  font-size: 1.24rem;
  font-weight: 900;
  font-family: var(--font-display);
}

.trade-product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.product-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--pine-100);
  color: var(--pine-700);
  font-weight: 900;
  font-size: 1.4rem;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-700);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.product-card-body {
  padding: 16px;
  flex: 1;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.compare-check {
  display: none;
}

.trade-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.trade-badges span {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0;
}

.price-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.stock-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.78rem;
}

.stock-widget.green b { color: var(--pine-700); }
.stock-widget.yellow b { color: var(--gold-700); }
.stock-widget.red b { color: var(--terracotta); }

.supplier-snapshot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.supplier-snapshot a {
  color: var(--pine-700);
  font-weight: 800;
  font-size: 0.85rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}

.product-actions .primary-btn,
.product-actions .secondary-btn {
  flex: 1 1 140px;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.86rem;
  white-space: normal;
}

/* --------------------------------- Footer --------------------------------- */

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 40px;
  padding: 56px clamp(18px, 4vw, 56px) 32px;
  background: var(--pine-900);
  color: rgba(255, 255, 255, 0.82);
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 340px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.footer-brand .primary-btn {
  width: fit-content;
  background: var(--gold-500);
  color: var(--pine-900);
}

.footer-brand .primary-btn:hover {
  background: var(--gold-400);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-columns div {
  display: grid;
  gap: 10px;
}

.footer-columns strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.footer-columns a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  transition: color 0.15s var(--ease);
}

.footer-columns a:hover {
  color: var(--gold-400);
}

/* .footer-columns div sets display:grid at higher specificity (class+element
   vs. this single class), so this must win with two classes worth of
   specificity rather than relying on source order. */
.footer-columns .footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-powered-by {
  margin-left: auto;
  white-space: nowrap;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
}

/* ==========================================================================
   Homepage
   ========================================================================== */

.premium-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 40px;
  overflow: hidden;
  padding: clamp(56px, 8vw, 100px) clamp(18px, 4vw, 56px);
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(217, 168, 62, 0.28), transparent 60%),
    linear-gradient(160deg, var(--pine-900) 0%, var(--pine-800) 55%, var(--pine-700) 100%);
  color: #fff;
}

.premium-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

.premium-hero-copy {
  position: relative;
  z-index: 1;
}

.premium-hero .eyebrow {
  color: var(--gold-400);
}

.premium-hero .eyebrow::before {
  background: var(--gold-400);
}

.premium-hero h1 {
  color: #fff;
}

.premium-hero .hero-copy {
  max-width: 560px;
  margin: 20px 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.premium-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.premium-hero .secondary-btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.premium-hero .secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.floating-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.floating-badges span {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px);
}

.floating-dashboard {
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.dashboard-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.dashboard-status span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(217, 168, 62, 0.24);
}

.dashboard-status small {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.6);
}

.dash-list {
  display: grid;
  gap: 10px;
}

.dash-list p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.dash-list span {
  color: var(--gold-400);
  font-weight: 800;
}

.kpi-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.kpi-stack article {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.kpi-stack strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-400);
}

.kpi-stack span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

/* Trusted strip */

.trusted-strip {
  padding: 22px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.logo-carousel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 34px;
  color: var(--ink-300);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Services */

.premium-services {
  background: var(--bg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.service-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--gold-400);
}

.service-card > span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--pine-100);
  color: var(--pine-700);
}

.service-card > span svg {
  width: 24px;
  height: 24px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Network / map section */

.global-network {
  background: var(--pine-900);
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 0 clamp(18px, 4vw, 56px);
  width: auto;
  padding: clamp(40px, 6vw, 72px);
}

.network-copy {
  max-width: 640px;
  margin-bottom: 28px;
}

.map-frame {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

#nepal-map {
  width: 100%;
  height: 420px;
  z-index: 1;
}

.map-sidebar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: rgba(15, 51, 39, 0.94);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  overflow-y: auto;
}

.map-sidebar h3 {
  padding: 16px 16px 8px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.map-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px;
}

.map-sidebar-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.map-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.map-sidebar-item span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

.map-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}

.map-toggle svg {
  width: 18px;
  height: 18px;
}

.map-marker-gold span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--gold-400);
  border: 3px solid var(--pine-900);
  box-shadow: 0 0 0 4px rgba(217, 168, 62, 0.3);
}

.network-copy .eyebrow {
  color: var(--gold-400);
}

.network-copy h2 {
  color: #fff;
}

.network-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.network-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

.network-stats span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

.network-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-400);
}

/* Bento / why-choose section */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.bento-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.bento-grid strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-600);
}

.bento-grid p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Process timeline */

.process-section {
  background: var(--surface-2);
}

.timeline {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.timeline article {
  position: relative;
  z-index: 1;
  flex: 1 1 140px;
  text-align: center;
}

.timeline article span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border: 4px solid var(--bg);
  border-radius: 999px;
  background: var(--pine-700);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.timeline article h3 {
  font-size: 1rem;
}

.timeline article p {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
}

/* Metric band */

.metric-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 4px;
  padding: clamp(36px, 5vw, 56px) clamp(18px, 4vw, 56px);
  background: var(--pine-800);
  color: #fff;
  text-align: center;
}

.metric-band article {
  padding: 12px;
}

.metric-band strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--gold-400);
}

.metric-band span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

/* Industries */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.industry-grid a {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 24px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.industry-grid a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--gold-400);
}

.industry-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--pine-100);
  color: var(--pine-700);
  font-weight: 900;
  font-size: 0.78rem;
}

.industry-grid strong {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-700);
}

/* Testimonials */

.testimonials-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.testimonial-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--pine-100);
}

.testimonial-card.secondary {
  background: var(--gold-100);
}

.testimonial-card blockquote {
  margin: 8px 0 20px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--pine-900);
}

.testimonial-card div strong {
  display: block;
  font-family: var(--font-body);
  color: var(--ink-900);
}

.testimonial-card div span {
  color: var(--muted);
  font-size: 0.86rem;
}

/* Final CTA */

.final-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(48px, 6vw, 76px) clamp(18px, 4vw, 56px);
  background: linear-gradient(120deg, var(--pine-900), var(--pine-700));
  color: #fff;
}

.final-cta h2 {
  color: #fff;
  max-width: 640px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 560px;
}

.final-cta .secondary-btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* ==========================================================================
   Business profile / premium page
   ========================================================================== */

.business-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
  background: var(--surface-2);
}

.profile-tagline {
  color: var(--gold-700);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.profile-tagline.light {
  color: var(--gold-400);
}

.marketing-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.marketing-grid p {
  color: var(--muted);
}

.map-section {
  background: var(--surface);
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
}

.map-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
}

.reviews-section .lead-box {
  position: static;
}

/* Premium hero (business-facing) */

.hero {
  position: relative;
  min-height: 62vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: clamp(64px, 8vw, 108px) clamp(18px, 4vw, 56px) 42px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(15, 51, 39, 0.94) 0%, rgba(15, 51, 39, 0.72) 45%, rgba(15, 51, 39, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

.hero-copy {
  max-width: 700px;
  margin: 20px 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-stats span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
}

.hero-stats strong {
  color: var(--gold-400);
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.feature-pills span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-700);
  font-weight: 800;
  font-size: 0.82rem;
}

.blog-band {
  background: var(--surface-2);
}

/* ==========================================================================
   Blog
   ========================================================================== */

.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-700);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding-top: clamp(40px, 6vw, 64px);
}

.article-copy {
  color: var(--muted);
  font-size: 1.12rem;
}

.article-body {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 1.06rem;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 1.3em;
}

.seo-keywords span {
  background: var(--pine-100);
  color: var(--pine-800);
}

.why-bento,
.industries-section {
  background: var(--surface-2);
}

.rfq-section {
  background: var(--pine-100);
}

/* Premium showcase cards (platform-sections partial) */

.premium-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.premium-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  background: var(--surface);
}

.premium-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.premium-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 40px);
}

.premium-card p:not(.eyebrow) {
  color: var(--muted);
}

/* ==========================================================================
   Dashboards & admin
   ========================================================================== */

.tools {
  background: var(--bg);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dash-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.dash-nav span {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.dash-nav .active {
  background: var(--surface);
  color: var(--pine-700);
}

.dash-main {
  padding: 24px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.metric-row article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-row span,
.metric-row small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-row strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--pine-800);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.pipeline {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.pipeline div {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 14px;
}

.pipeline span {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pine-600), var(--gold-500));
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 130px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.mini-chart span {
  flex: 1;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--gold-400), var(--pine-700));
}

.admin {
  background: transparent;
  padding: clamp(18px, 2.6vw, 34px);
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 86px);
  background:
    linear-gradient(135deg, rgba(15, 51, 39, 0.05), transparent 42%),
    var(--surface-2);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: calc(100vh - 86px);
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: #102f25;
  color: rgba(255, 255, 255, 0.82);
  overflow-y: auto;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(217, 168, 62, 0.18);
  color: var(--gold-400);
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
  display: block;
}

.admin-sidebar-brand strong {
  color: #fff;
  font-size: 0.96rem;
}

.admin-sidebar-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-sidebar-nav {
  display: grid;
  gap: 18px;
  padding: 18px 0;
}

.admin-nav-group {
  display: grid;
  gap: 4px;
}

.admin-nav-group p {
  margin: 0;
  padding: 0 10px 6px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-nav-group a,
.admin-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-nav-group a:hover,
.admin-sidebar-footer a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav-group a.active {
  background: #fff;
  color: var(--pine-900);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.admin-nav-group a.active .lucide-icon {
  color: var(--gold-600);
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-main-frame {
  min-width: 0;
  padding: 18px clamp(16px, 2.5vw, 30px) 34px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.admin-topbar strong,
.admin-topbar-kicker {
  display: block;
}

.admin-topbar strong {
  color: var(--pine-900);
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.admin-topbar-kicker {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-topbar-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--pine-800);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-page-header h2 {
  margin-bottom: 8px;
}

.admin-page-header p {
  max-width: 760px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 14px;
}

.ops-card,
.command-panel,
.attention-panel,
.settings-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ops-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
}

.ops-card.priority {
  background: linear-gradient(135deg, rgba(15, 51, 39, 0.96), rgba(27, 94, 66, 0.92));
  color: #fff;
}

.ops-card span,
.ops-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

.ops-card.priority span,
.ops-card.priority p {
  color: rgba(255, 255, 255, 0.76);
}

.ops-card strong {
  color: var(--pine-800);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.ops-card.priority strong {
  color: #fff;
}

.admin-workbench {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(260px, 0.8fr);
  gap: 16px;
}

.command-panel,
.attention-panel,
.settings-panel {
  padding: 18px;
}

.command-panel {
  display: grid;
  gap: 10px;
}

.command-panel h3,
.attention-panel h3,
.settings-panel h3 {
  margin: 0;
}

.command-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-800);
  font-weight: 800;
}

.command-panel a:last-child {
  border-bottom: 0;
}

.attention-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.attention-list a {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.attention-list strong {
  color: var(--pine-800);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.attention-list span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-log-output {
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--pine-900);
  color: rgba(255, 255, 255, 0.86);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-section-stack,
.admin-settings-shell {
  display: grid;
  gap: 18px;
}

.settings-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.settings-panel-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.sticky-savebar {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.sticky-savebar span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-grid span {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 800;
  text-align: center;
}

/* ==========================================================================
   Auth pages
   ========================================================================== */

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  min-height: calc(100vh - 76px);
}

.auth-visual {
  position: relative;
  padding: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(900px 460px at 20% 110%, rgba(217, 168, 62, 0.24), transparent 60%),
    linear-gradient(160deg, var(--pine-900), var(--pine-700));
  color: #fff;
}

.auth-visual .eyebrow {
  color: var(--gold-400);
}

.auth-visual h2 {
  color: #fff;
}

.auth-visual p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 420px;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.auth-benefits article {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.auth-benefits h3 {
  color: var(--gold-400);
  font-size: 1.02rem;
}

.auth-benefits .check-list {
  color: rgba(255, 255, 255, 0.82);
  margin: 12px 0 0;
}

.auth-benefits .check-list li::before {
  background: var(--gold-500);
  color: var(--pine-900);
}

.auth-panel {
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 22px;
  padding: clamp(32px, 6vw, 72px);
}

.auth-card {
  width: min(420px, 100%);
  margin: 0 auto;
}

.auth-card .brand-logo {
  height: 40px;
  margin-bottom: 24px;
}

.auth-card form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-card label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-card .primary-btn {
  width: 100%;
}

.auth-footer-link {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .directory-shell {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .premium-hero,
  .global-network,
  .business-profile-hero,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .global-network {
    margin: 0 clamp(18px, 4vw, 32px);
  }

  .premium-section {
    grid-template-columns: 1fr;
  }

  .premium-card {
    grid-template-columns: 1fr;
  }

  .premium-card img {
    min-height: 220px;
  }
}

@media (max-width: 900px) {
  .map-toggle {
    display: flex;
  }

  .map-frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .map-sidebar {
    display: none;
    max-height: 240px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .map-sidebar.open {
    display: flex;
  }

  .site-header {
    padding-bottom: 10px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-search-wrap {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    margin: 8px 0 0;
  }

  .nav-links {
    order: 2;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    margin-left: 0;
    padding-bottom: 2px;
  }

  .split,
  .dashboard-shell,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .lead-box {
    position: static;
  }
}

@media (max-width: 620px) {
  .timeline {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline::before {
    display: none;
  }

  .timeline article {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
  }

  .timeline article span {
    flex-shrink: 0;
    margin: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 90px;
  }

  .hero-overlay {
    background: rgba(15, 51, 39, 0.82);
  }

  .hero-stats,
  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .dash-nav {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pipeline div {
    grid-template-columns: 1fr;
  }

  .final-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------- Ad slots -------------------------------- */

.ad-slot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 10px 12px;
}

.ad-label {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border: 1px solid var(--ink-300);
  border-radius: 3px;
  color: var(--ink-500);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ad-slot-house {
  padding: 8px 10px;
}

.ad-slot-house .ad-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad-slot-house .ad-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.ad-copy {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.ad-copy strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-copy small {
  flex-shrink: 0;
  color: var(--ink-500);
  font-size: 0.76rem;
}

.ad-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ad-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink-500);
  font-size: 0.7rem;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.ad-icon-btn:hover {
  border-color: var(--pine-500);
  color: var(--pine-700);
}

.ad-info-popover {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.76rem;
  color: var(--ink-700);
}

.ad-info-popover p {
  margin: 0;
}

.ad-slot-network {
  text-align: center;
}

/* --------------------------- FOMO / activity ------------------------------ */

.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px; 
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pine-100);
  color: var(--pine-800);
  font-size: 0.8rem;
  font-weight: 700;
}

.activity-ticker {
  position: fixed;
  left: clamp(14px, 3vw, 34px);
  right: clamp(14px, 3vw, 34px);
  bottom: 18px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(217, 168, 62, 0.34);
  border-radius: 999px;
  background: rgba(15, 51, 39, 0.94);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.ticker-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(217, 168, 62, 0.24);
}

.ticker-viewport {
  position: relative;
  flex: 1;
  min-height: 1.4em;
  min-width: 0;
  overflow: hidden;
}

.ticker-viewport::before,
.ticker-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 36px;
  pointer-events: none;
}

.ticker-viewport::before {
  left: 0;
  background: linear-gradient(90deg, rgba(15, 51, 39, 0.94), transparent);
}

.ticker-viewport::after {
  right: 0;
  background: linear-gradient(270deg, rgba(15, 51, 39, 0.94), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 22px;
  white-space: nowrap;
  animation: ticker-marquee 28s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(217, 168, 62, 0.72);
}

.ticker-dismiss {
  flex-shrink: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.ticker-dismiss:hover {
  color: var(--gold-400);
}

@keyframes ticker-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

.card-cta-row .primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-view-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .ad-slot-house a {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-ticker {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: 0.78rem;
  }
}

/* --------------------------------- Icons ---------------------------------- */

.lucide-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --------------------------------- Lottie ---------------------------------- */

.lottie-player {
  margin: 0 auto;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  grid-column: 1 / -1;
}

.success-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.success-note .lottie-player {
  margin: 0;
}

/* ------------------------------ Wizard form -------------------------------- */

.wizard-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.wizard-stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 120px;
  position: relative;
}

.wizard-stepper li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 6px;
}

.wizard-stepper li.done:not(:last-child)::after {
  background: var(--pine-500);
}

.wizard-stepper button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink-500);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: not-allowed;
}

.wizard-stepper li.active button {
  border-color: var(--pine-700);
  background: var(--pine-700);
  color: #fff;
  cursor: default;
}

.wizard-stepper li.done button {
  border-color: var(--pine-500);
  background: var(--pine-100);
  color: var(--pine-700);
  cursor: pointer;
}

.wizard-stepper span {
  display: none;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-500);
}

.wizard-stepper li.active span {
  color: var(--ink-900);
}

@media (min-width: 960px) {
  .wizard-stepper span {
    display: inline;
  }
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hours-grid {
  display: grid;
  gap: 8px;
}

.hours-row {
  display: grid;
  grid-template-columns: 100px 110px 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hours-day {
  font-weight: 700;
  font-size: 0.86rem;
}

.toggle-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.checkbox-grid h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.checkbox-grid .toggle-inline {
  margin-bottom: 6px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.review-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.review-grid article.span-2 {
  grid-column: span 2;
}

.review-grid h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .hours-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----------------------------- Facebook-style cards ------------------------- */

.fb-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fb-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 132px;
  background: linear-gradient(135deg, var(--pine-700), var(--pine-500));
  overflow: visible;
}

.fb-cover img,
.fb-cover-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-cover-placeholder {
  background: linear-gradient(135deg, var(--pine-700), var(--gold-500));
}

.fb-avatar {
  position: absolute;
  left: 18px;
  bottom: -28px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--pine-100);
  color: var(--pine-700);
  font-weight: 900;
  font-size: 0.9rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.fb-card-body {
  position: relative;
  padding: 38px 20px 20px;
}

.fb-badges {
  margin: 0 0 8px;
  justify-content: flex-end;
}

/* ------------------------ Facebook-style profile hero ----------------------- */

.fb-profile-hero {
  overflow: visible;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  max-width: 1360px;
  margin: 24px clamp(18px, 4vw, 56px) 28px;
}

@media (min-width: 1424px) {
  .fb-profile-hero {
    margin-left: auto;
    margin-right: auto;
  }
}

.fb-profile-cover {
  position: relative;
  width: 100%;
  height: clamp(180px, 30vw, 320px);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pine-700), var(--pine-500));
}

.fb-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 51, 39, 0) 55%, rgba(15, 51, 39, 0.38) 100%);
  pointer-events: none;
}

.fb-profile-header {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 36px) 20px;
  margin-top: -48px;
  flex-wrap: wrap;
}

.fb-profile-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid var(--surface);
  background: var(--pine-100);
  color: var(--pine-700);
  font-weight: 900;
  font-size: 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.fb-profile-info {
  flex: 1;
  min-width: 240px;
  padding-top: 12px;
}

.fb-profile-info h1 {
  margin: 4px 0 2px;
}

.fb-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 0.86rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.quick-action-btn:hover {
  border-color: var(--pine-500);
  transform: translateY(-1px);
}

.quick-action-btn.primary {
  border-color: var(--pine-700);
  background: var(--pine-700);
  color: #fff;
}

.fb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.fb-stats span {
  padding: 0px 12px;
  border-radius: 999px;
  background: var(--pine-100);
  color: var(--pine-800);
  font-size: 0.86rem;
}

.fb-stats strong {
  color: var(--pine-700);
}

@media (max-width: 640px) {
  .fb-profile-header {
    align-items: center;
    text-align: center;
    flex-direction: column;
    margin-top: -60px;
  }

  .fb-profile-avatar {
    width: 96px;
    height: 96px;
  }

  .fb-stats {
    justify-content: center;
  }
}

/* ---------------------------------- Stories --------------------------------- */

.fb-profile-avatar.has-story {
  cursor: pointer;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-200), var(--shadow);
}

.story-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  max-width: 1360px;
  margin: 0 auto 28px;
  padding: 0 clamp(18px, 4vw, 56px);
}

.story-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 76px;
  border: 0;
  background: none;
  cursor: pointer;
}

.story-strip-avatar {
  position: static;
  width: 64px;
  height: 64px;
  font-size: 1rem;
}

.story-strip-item small {
  color: var(--ink-700);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.story-thumb {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
}

.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  background: rgba(15, 51, 39, 0.92);
}

.story-overlay[hidden] {
  display: none;
}

.story-overlay:not([hidden]) {
  display: flex;
}

.story-overlay-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
}

.story-progress {
  display: flex;
  gap: 4px;
}

.story-progress span {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.story-progress span i {
  display: block;
  width: 0%;
  height: 100%;
  background: #fff;
  transition: width 4s linear;
}

.story-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 1;
}

.story-frame {
  position: relative;
  width: min(420px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.story-business {
  color: #fff;
  font-weight: 800;
  margin: 0 0 8px;
}

.story-frame img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #000;
}

.story-caption {
  color: rgba(255, 255, 255, 0.86);
  margin-top: 10px;
}

.story-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.story-prev {
  left: -50px;
}

.story-next {
  right: -50px;
}

@media (max-width: 640px) {
  .story-prev {
    left: 6px;
  }

  .story-next {
    right: 6px;
  }
}

/* ------------------------------- Certificate --------------------------------- */

.certificate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.certificate-preview {
  display: flex;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.certificate-preview canvas {
  width: 100%;
  max-width: 420px;
  height: auto;
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
}

@media (max-width: 800px) {
  .certificate-layout {
    grid-template-columns: 1fr;
  }
}

.claim-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 56px);
  background: var(--terracotta-100);
  color: var(--ink-900);
  flex-wrap: wrap;
}

.claim-banner p {
  flex: 1;
  min-width: 220px;
  margin: 0;
  font-size: 0.9rem;
}

/* ----------------------------- Form builder --------------------------------- */

.field-row {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.share-link {
  word-break: break-all;
  font-size: 0.78rem;
}

.public-form-section {
  display: flex;
  justify-content: center;
}

.public-form-card {
  width: min(640px, 100%);
}

.investor-cta {
  background: linear-gradient(120deg, var(--gold-700), var(--gold-500));
}

/* ----------------------- Business profile content polish -------------------- */

.info-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--pine-100);
  color: var(--pine-700);
}

.marketing-grid.compact article h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.marketing-grid.compact article h3 .info-card-icon {
  margin-bottom: 0;
}

.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 clamp(18px, 4vw, 56px) 4px;
  max-width: 1360px;
  margin: -12px auto 28px;
}

.gallery-strip img {
  flex-shrink: 0;
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------- Pricing ----------------------------------- */

.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.billing-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-500);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.billing-toggle-btn.active {
  background: var(--pine-700);
  color: #fff;
}

.save-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--pine-900);
  font-size: 0.68rem;
  font-weight: 800;
}

.billing-toggle-btn:not(.active) .save-pill {
  background: var(--gold-200);
  color: var(--gold-700);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pricing-card.recommended {
  border: 2px solid var(--gold-500);
  background: linear-gradient(180deg, var(--gold-100) 0%, var(--surface) 34%);
  box-shadow: 0 20px 44px rgba(184, 134, 11, 0.2);
  transform: scale(1.04);
  z-index: 1;
}

.pricing-card.recommended:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--pine-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.pricing-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--pine-100);
  color: var(--pine-700);
}

.pricing-card.recommended .pricing-card-icon {
  background: var(--gold-500);
  color: var(--pine-900);
}

.pricing-card h3 {
  margin: 0 0 12px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.pricing-amount strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink-900);
}

.pricing-amount span {
  color: var(--muted);
  font-size: 0.86rem;
}

.pricing-yearly-note {
  margin: 0 0 20px;
  color: var(--gold-700);
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 1.2em;
}

.pricing-feature-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.pricing-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-700);
  font-size: 0.88rem;
}

.pricing-feature-list li .lucide-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--pine-600);
}

.pricing-card.recommended .pricing-feature-list li .lucide-icon {
  color: var(--gold-600);
}

/* ------------------------------ Owner dashboard ------------------------------ */

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.dashboard-stat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dashboard-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--pine-100);
  color: var(--pine-700);
}

.dashboard-stat.accent-gold .dashboard-stat-icon {
  background: var(--gold-100);
  color: var(--gold-700);
}

.dashboard-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink-900);
  line-height: 1.1;
}

.dashboard-stat-label {
  display: block;
  margin-top: 2px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink-700);
}

.dashboard-stat-caption {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.dashboard-group-title {
  margin: 32px 0 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.action-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.action-tile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.action-tile:hover {
  border-color: var(--pine-500);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.action-tile.accent-gold {
  border-color: var(--gold-200);
  background: linear-gradient(180deg, var(--gold-100) 0%, var(--surface) 60%);
}

.action-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pine-100);
  color: var(--pine-700);
}

.action-tile.accent-gold .action-tile-icon {
  background: var(--gold-500);
  color: var(--pine-900);
}

.action-tile-title {
  display: block;
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--ink-900);
}

.action-tile-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.owner-business-list {
  display: grid;
  gap: 12px;
}

.owner-business-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.owner-business-row strong {
  display: block;
}

.lead-widget-list {
  display: grid;
  gap: 4px;
}

.lead-widget-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.lead-widget-row:last-child {
  border-bottom: 0;
}

.lead-widget-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pine-100);
  color: var(--pine-700);
  font-weight: 800;
  font-size: 0.82rem;
}

.lead-status-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.lead-status-pill.status-new {
  background: var(--gold-100);
  color: var(--gold-700);
}

.lead-status-pill.status-responded {
  background: var(--pine-100);
  color: var(--pine-700);
}

/* --------------------------- Product showcase slider --------------------------- */

.showcase-slider {
  position: relative;
}

.showcase-track {
  display: flex;
  gap: 14px;
  padding: 4px 2px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.showcase-track::-webkit-scrollbar {
  display: none;
}

.showcase-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.showcase-track > * {
  flex: 0 0 248px;
  scroll-snap-align: start;
}

.showcase-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-900);
  box-shadow: var(--shadow);
  transform: translateY(-50%);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.showcase-arrow:hover {
  border-color: var(--pine-500);
  transform: translateY(calc(-50% - 1px));
}

.showcase-arrow.prev {
  left: -12px;
}

.showcase-arrow.next {
  right: -12px;
}

@media (max-width: 640px) {
  .showcase-track > * {
    flex-basis: 218px;
  }

  .showcase-arrow {
    display: none;
  }
}

/* Google Maps-style compact place card */

.place-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.place-media {
  position: relative;
  display: block;
  height: 128px;
  background: linear-gradient(135deg, var(--pine-100), var(--cream-200, var(--surface-2)));
}

.place-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--pine-700);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.place-body {
  display: grid;
  gap: 3px;
  padding: 12px 14px 14px;
}

.place-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.place-body h3 a {
  color: var(--ink-900);
}

.place-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-700);
}

.place-rating-value {
  font-weight: 700;
}

.place-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--gold-600);
}

.place-stars svg {
  fill: currentColor;
}

.place-rating-count {
  color: var(--muted);
}

.place-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.place-status {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pine-600, var(--pine-700));
}

.showcase-cta {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.showcase-cta .secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.showcase-track.no-snap {
  scroll-snap-type: none;
}

/* ------------------------------ Hero collage ------------------------------ */

.hero-collage {
  gap: 18px;
}

.collage-frame {
  position: relative;
  height: clamp(320px, 34vw, 440px);
}

.collage-img {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  will-change: transform;
}

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

.collage-img.main {
  top: 0;
  right: 6%;
  z-index: 1;
  width: 64%;
  height: 66%;
  rotate: 2deg;
}

.collage-img.one {
  bottom: 6%;
  left: 0;
  z-index: 2;
  width: 46%;
  height: 52%;
  rotate: -3deg;
}

.collage-img.two {
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 38%;
  height: 40%;
  rotate: 3deg;
}

.collage-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 51, 39, 0.72);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  will-change: transform;
}

.collage-badge svg {
  color: var(--gold-400);
}

.collage-badge.b1 {
  top: 7%;
  left: 4%;
}

.collage-badge.b2 {
  top: 38%;
  right: -2%;
}

.collage-badge.b3 {
  bottom: 30%;
  left: 38%;
}

/* Cycling story CTA card under the collage */

.hero-story-card {
  position: relative;
  overflow: hidden;
  padding: 14px 18px 16px;
}

.hero-story-progress {
  height: 3px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.hero-story-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--gold-400);
}

.hero-story-slides {
  position: relative;
  min-height: 44px;
}

.hero-story-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}

.hero-story-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-story-slide .hero-story-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(217, 168, 62, 0.18);
  color: var(--gold-400);
}

.hero-story-slide b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--gold-400);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Story-ring CTAs (Instagram-story style rings) */

.story-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.story-cta {
  display: grid;
  gap: 7px;
  justify-items: center;
  color: rgba(255, 255, 255, 0.85);
}

.story-cta small {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.story-cta-ring {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, var(--gold-400), #f6d98a, var(--gold-600), var(--gold-400));
  will-change: transform;
}

.story-cta-disc {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 2px solid var(--pine-900);
  border-radius: 50%;
  background: rgba(15, 51, 39, 0.9);
  color: #fff;
  transition: background 0.2s var(--ease);
}

.story-cta:hover .story-cta-disc {
  background: var(--pine-700);
}

.story-cta:hover small {
  color: #fff;
}

@media (max-width: 980px) {
  .collage-frame {
    height: clamp(280px, 52vw, 380px);
  }
}

@media (max-width: 640px) {
  .story-cta-row {
    gap: 14px;
  }

  .story-cta-ring {
    width: 52px;
    height: 52px;
  }

  .hero-story-slide {
    font-size: 0.82rem;
  }
}

/* ------------------------------- Review list ------------------------------- */

.review-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.review-summary-score {
  font-family: var(--font-display, inherit);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-900);
}

.review-summary .meta {
  margin: 4px 0 0;
}

.review-stars {
  display: inline-flex;
  gap: 2px;
}

.review-stars .star-filled {
  color: var(--gold-600);
  fill: var(--gold-500);
  stroke: var(--gold-600);
}

.review-stars .star-empty {
  color: var(--line);
  stroke: var(--ink-300, #c9c2b2);
  fill: none;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.review-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pine-100);
  color: var(--pine-700);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.review-body p {
  margin: 4px 0 0;
  color: var(--ink-700);
  font-size: 0.92rem;
  line-height: 1.55;
}

.review-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.review-head strong {
  color: var(--ink-900);
}

/* ------------------------------ Media manager ------------------------------ */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.media-thumb {
  height: 140px;
  background: var(--surface-2);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-body {
  display: grid;
  gap: 6px;
  padding: 12px 14px 14px;
}

.media-name {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-path {
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.72rem;
  word-break: break-all;
  color: var(--ink-700);
}

.media-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  padding: 7px 12px;
}

.library-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.library-toolbar label {
  display: grid;
  gap: 6px;
  flex: 1;
  color: var(--ink-700);
  font-size: 0.86rem;
  font-weight: 800;
}

.media-details {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.media-details summary {
  cursor: pointer;
  color: var(--pine-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.media-details label {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  color: var(--ink-700);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .admin-sidebar-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .admin-nav-group {
    min-width: 210px;
  }

  .admin-main-frame {
    padding: 14px;
  }

  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-grid,
  .admin-workbench {
    grid-template-columns: 1fr;
  }

  .admin-page-header,
  .sticky-savebar,
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* -------------------- Admin-set section background images ------------------- */

#top {
  display: flex;
  flex-direction: column;
}

/* A translucent cream wash sits over the photo so section content stays
   readable on any image. */
.section.has-bg {
  background-image:
    linear-gradient(rgba(251, 248, 242, 0.93), rgba(251, 248, 242, 0.93)),
    var(--section-bg);
  background-size: cover;
  background-position: center;
}

.auth-inline-link {
  margin-left: auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--pine-700);
}

/* -------------------------------- Legal pages ------------------------------ */

.legal-page .legal-body {
  max-width: 780px;
}

.legal-body h3 {
  margin: 28px 0 8px;
  font-size: 1.08rem;
}

.legal-body p {
  margin: 0 0 12px;
  color: var(--ink-700);
  line-height: 1.7;
}

/* --------------------------------- FAQ accordion --------------------------------- */

.faq-accordion {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px;
}

.faq-answer p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.6;
}

.faq-ask-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.faq-ask-more p {
  margin: 0;
  color: var(--muted);
}

/* ------------------------------ Engagement popup ------------------------------ */

.engagement-popup[hidden] {
  display: none;
}

.engagement-popup:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.engagement-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 51, 39, 0.5);
  backdrop-filter: blur(2px);
}

.engagement-popup-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: engagement-pop-in 0.25s var(--ease);
}

@keyframes engagement-pop-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.engagement-popup-card h3 {
  margin: 4px 0 6px;
}

.engagement-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-700);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.engagement-popup-close:hover {
  background: var(--pine-100);
  color: var(--pine-700);
}

@media (max-width: 640px) {
  .faq-question {
    padding: 14px 16px;
    font-size: 0.96rem;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }
}

/* ----------------------------- Section navigator ---------------------------- */

.section-nav {
  position: fixed;
  right: 32px;
  bottom: 90px;
  z-index: 45;
  width: 60px;
  height: 60px;
  --radius: 120px;
}

.section-nav-fab {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pine-700);
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease);
}

.section-nav-fab:hover {
  background: var(--pine-800);
}

.section-nav.is-open .section-nav-fab {
  background: var(--gold-500);
  color: var(--pine-900);
  transform: rotate(90deg);
}

.nav-icon-close {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.section-nav.is-open .nav-icon-compass {
  display: none;
}

.section-nav.is-open .nav-icon-close {
  display: block;
}

.section-nav-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Invisible circle spanning the full FAB-to-item travel distance. Without
   this, the cursor crosses empty (non-hoverable) space on its way from the
   FAB to any ring item, firing mouseleave on .section-nav before the click
   ever lands — the ring would open on hover but close again mid-reach. This
   sits behind the visible items in stacking order, so item clicks still win. */
.section-nav-hitbox {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: calc((var(--radius) + 50px) * 2);
  height: calc((var(--radius) + 50px) * 2);
  margin-left: calc(-1 * (var(--radius) + 50px));
  margin-top: calc(-1 * (var(--radius) + 50px));
  border-radius: 50%;
  pointer-events: none;
}

.section-nav.is-open .section-nav-hitbox {
  pointer-events: auto;
}

.section-nav-item {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--pine-700);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle))) scale(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s var(--ease), opacity 0.22s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}

.section-nav.is-open .section-nav-item {
  transform: rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle))) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.section-nav-item:hover,
.section-nav-item.is-active {
  background: var(--pine-700);
  color: #fff;
  border-color: var(--pine-700);
}

/* Slight stagger so the ring "unfurls" rather than popping all at once.
   nth-of-type (not nth-child) so the .section-nav-hitbox span sharing this
   parent doesn't shift the count. */
.section-nav-item:nth-of-type(1) { transition-delay: 0s; }
.section-nav-item:nth-of-type(2) { transition-delay: 0.02s; }
.section-nav-item:nth-of-type(3) { transition-delay: 0.04s; }
.section-nav-item:nth-of-type(4) { transition-delay: 0.06s; }
.section-nav-item:nth-of-type(5) { transition-delay: 0.08s; }
.section-nav-item:nth-of-type(6) { transition-delay: 0.1s; }
.section-nav-item:nth-of-type(7) { transition-delay: 0.12s; }
.section-nav-item:nth-of-type(8) { transition-delay: 0.14s; }

@media (max-width: 640px) {
  .section-nav {
    right: 50%;
    bottom: 70px;
    transform: translateX(50%);
    --radius: 92px;
  }
}
