/* ============================================================
   Lokaaro — Teal + Compass Gold Theme
   Lokaaro Home Services
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --brand: #1f706d;
  --brand-dark: #155854;
  --brand-deep: #0f3f3d;
  --brand-soft: #e6f4f2;
  --brand-muted: #b8d9d4;
  --brand-contrast: #f1faf8;

  --gold: #f0c75e;
  --gold-dark: #a97922;
  --gold-soft: #fff4d6;
  --gold-muted: #ead28b;

  --ink: #1a2332;
  --ink-soft: #2d3f55;
  --muted: #5b6b80;
  --muted-light: #8a97a8;

  --surface: #ffffff;
  --surface-alt: #f4f6fb;
  --surface-hover: #eef2fa;
  --border: #d6dde8;
  --border-soft: #e8edf5;

  --green: #1b7a4e;
  --green-soft: #e6f4ed;
  --teal: #2f8f83;
  --teal-soft: #e6f4f2;
  --clay: #b86b4b;
  --clay-soft: #faeee9;
  --plum: #715c91;
  --plum-soft: #f0edf7;
  --sky: #2f6f9f;
  --sky-soft: #e8f2f8;
  --red: #c0392b;
  --red-soft: #fde8e8;
  --orange: #e67e22;
  --orange-soft: #fdf0e0;

  --shadow-sm: 0 1px 4px rgba(31,112,109,.08);
  --shadow-md: 0 3px 12px rgba(31,112,109,.12);
  --shadow-lg: 0 8px 32px rgba(31,112,109,.16);
  --shadow-card: 0 2px 8px rgba(31,112,109,.10), 0 0 0 1px var(--border-soft);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Space Grotesk', 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --tier-bronze: #a0522d;
  --tier-silver: #607080;
  --tier-gold: #c9a227;
  --tier-platinum: #6a5acd;
}

/* --- Base Reset --- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(212,168,83,.07) 0%, transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(31,112,109,.06) 0%, transparent 38%),
    #f7fbfa;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .5rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink) !important;
  letter-spacing: 0;
  padding: .75rem 0;
}

.navbar-brand .brand-dot { color: var(--brand); }

.navbar-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.navbar-brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.navbar-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.navbar-brand-name {
  color: var(--brand);
}

.navbar-brand-location {
  margin-top: .18rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
}

.navbar .nav-link {
  color: var(--ink-soft) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: .75rem .85rem !important;
  transition: color .2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--brand-deep) !important; }

.navbar .btn-nav-cta {
  background: var(--brand-deep);
  color: #fff !important;
  border-radius: 8px;
  padding: .55rem 1.25rem !important;
  font-weight: 600;
  font-size: .875rem;
  margin-left: .75rem;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.navbar .btn-nav-cta:hover { background: var(--brand); transform: translateY(-1px); }

.navbar-toggler { border-color: var(--border) !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26,35,50,.6)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: transparent;
  color: var(--ink);
  padding: 72px 0 64px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--ink);
  margin-bottom: .75rem;
}

.hero h1 .highlight { color: var(--brand); }

.hero p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: .4rem .9rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: 1rem;
}

.search-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(31,112,109,.12);
}

.search-card .form-control,
.search-card .form-select {
  border: 1.5px solid var(--border-soft);
  background: var(--surface-alt);
}

.search-card .form-control:focus,
.search-card .form-select:focus {
  background: var(--surface);
}

.search-card .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  min-height: 52px;
}

.search-card .btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: none; }

/* Hero Panel */
.hero-panel {
  background: linear-gradient(140deg, rgba(31,112,109,.08), rgba(240,199,94,.16));
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(31,112,109,.1);
  border: 1px solid rgba(31,112,109,.08);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.panel-stat {
  color: var(--brand);
  background: var(--brand-soft);
  padding: .2rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}

.panel-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.panel-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border-radius: 12px;
  color: var(--brand);
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(31,112,109,.1);
}

.panel-item h6 {
  margin: 0 0 .2rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-body);
}

.panel-item p {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
}

.panel-stats {
  display: flex;
  border-top: 1px solid rgba(31,112,109,.1);
  padding-top: 1.25rem;
  margin-top: .5rem;
}

.ps-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(31,112,109,.1);
}

.ps-item:last-child { border-right: none; }

.ps-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.ps-lbl {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .25rem;
}

/* Keep hero-search for navbar search */
.hero-search { max-width: 700px; margin: 0 auto; }
.hero-search .input-group { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.hero-search input { border: none; padding: 1rem 1.25rem; font-size: 1rem; height: 56px; flex: 1; }
.hero-search input:focus { box-shadow: none; outline: none; }
.hero-search .btn-search { background: var(--gold); color: var(--brand-dark); border: none; padding: 0 1.75rem; font-weight: 700; font-size: 1rem; height: 56px; white-space: nowrap; transition: background .2s; }
.hero-search .btn-search:hover { background: var(--gold-dark); color: #fff; }

/* ============================================================
   Section Labels
   ============================================================ */
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: .5rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
}

/* ============================================================
   Category Grid
   ============================================================ */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-soft);
  color: inherit;
}

.category-card .icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 1.5rem;
  transition: background .2s, color .2s;
}

.category-card:hover .icon-wrap { background: var(--brand); color: #fff; }
.category-card .cat-name { font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: .25rem; }
.category-card .cat-count { font-size: .8rem; color: var(--muted-light); }

/* ============================================================
   Business Cards
   ============================================================ */
.business-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.business-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pro-card {
  border: 1px solid rgba(31, 112, 109, .10);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(26, 35, 50, .075);
}

.pro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(26, 35, 50, .08);
  border-color: var(--brand-muted);
}

.pro-card-body {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  flex: 1;
  min-height: 0;
  padding: 1.25rem;
}

.pro-card-top {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  min-width: 0;
}

.pro-avatar {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: visible;
  background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft));
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(31, 112, 109, .10);
}

.pro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.pro-card-identity {
  flex: 1;
  min-width: 0;
  padding-top: .25rem;
}

.pro-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

.pro-card-name {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.2;
}

.pro-card-name a {
  color: var(--ink);
  text-decoration: none;
}

.pro-card-name a:hover {
  color: var(--brand);
}

.pro-card-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: .3rem;
  font-size: .8rem;
  font-weight: 700;
  color: #0f172a;
}
.pro-card-rating .fa-star,
.pro-card-rating .fa-star-half-stroke { color: #f59e0b; font-size: .72rem; }
.pro-card-rating .pro-star-empty { color: #e2e8f0; }
.pro-card-rating span { margin-left: .15rem; }
.pro-review-count { color: #94a3b8; font-weight: 500; }

.pro-card-subtitle {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}

.pro-trust-stack {
  display: grid;
  gap: .45rem;
}

.pro-trust-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: #475569;
}

.pro-trust-icon {
  color: var(--brand);
  font-size: .75rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.hours-pill {
  display: inline-flex;
  align-items: center;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hours-pill.open {
  background: var(--green-soft);
  color: var(--green);
}

.hours-pill.closed {
  background: #fee2e2;
  color: #b91c1c;
}

.hours-pill.appointment {
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.hours-pill.unknown {
  background: var(--surface-alt);
  color: var(--muted);
}

.pro-referral-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: #f0fdfa;
  border: 1px solid rgba(45, 212, 191, .2);
  border-radius: 10px;
  padding: .75rem;
}

.pro-referral-label {
  font-size: .7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  min-width: 80px;
  flex-shrink: 0;
}

.pro-referral-main {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
}

.pro-referral-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--brand);
  color: #fff;
  font-size: .7rem;
}

.pro-referral-name {
  color: var(--ink);
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.2;
}

.pro-referral-meta {
  margin-top: .15rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}

.pro-card-description {
  flex: 1;
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pro-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border-soft);
}

.pro-card-location {
  color: #94a3b8;
  font-size: .8rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}

.pro-card-location i {
  font-size: .7rem;
}

.pro-card-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}

.pro-card-actions .btn {
  min-width: 0;
  white-space: nowrap;
}

.pro-call-button {
  padding-inline: .72rem;
  border-width: 1px;
}

.directory-card {
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 24px rgba(31, 42, 48, 0.05);
}

.directory-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

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

.directory-heading {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .3rem;
}

.directory-name {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.directory-name a {
  color: var(--ink);
  text-decoration: none;
}

.directory-name a:hover { color: var(--brand); }

.directory-verified {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(6, 133, 123, 0.08);
  color: var(--brand-deep);
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.directory-verified i {
  font-size: .75rem;
}

.directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .65rem;
  color: var(--muted);
  font-size: .8rem;
}

.directory-meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.directory-meta span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(91, 103, 112, 0.35);
  margin-left: .65rem;
}

.directory-rating {
  display: flex;
  align-items: center;
  min-height: 30px;
}

.directory-feedback-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(4, 130, 136, 0.08);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
}

.directory-feedback-chip i {
  color: #d3a11b;
  font-size: .78rem;
}

.directory-feedback-chip.is-muted {
  background: rgba(91, 103, 112, 0.08);
  color: var(--muted);
}

.review-count {
  color: var(--muted);
  font-weight: 500;
}

.directory-description {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.directory-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.directory-actions .btn {
  min-width: 132px;
}

.directory-call-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
}

.directory-call-link:hover {
  color: var(--brand);
}

.business-card .card-logo {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--brand-soft);
  flex-shrink: 0;
}

.business-card .card-logo-placeholder {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.business-card .card-body { padding: 1.25rem; flex: 1; }

.business-card .card-footer {
  padding: .875rem 1.25rem;
  background: var(--surface-alt);
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.rank-badge.rank-1 { background: var(--gold); color: var(--brand-dark); }
.rank-badge.rank-2 { background: #9ba0ab; }
.rank-badge.rank-3 { background: #a0522d; }

/* ============================================================
   Stars & Ratings
   ============================================================ */
.stars {
  color: var(--gold);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.stars .empty { color: #dce1e9; }

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--gold-soft);
  color: var(--gold-dark);
  border-radius: 20px;
  padding: .2rem .65rem;
  font-size: .8rem;
  font-weight: 700;
}

.review-count { font-size: .8rem; color: var(--muted); }

/* ============================================================
   Badges & Pills
   ============================================================ */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #b8e0cd;
  border-radius: 20px;
  padding: .2rem .7rem;
  font-size: .75rem;
  font-weight: 700;
}

.badge-pro {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: linear-gradient(135deg, var(--gold-soft), #fde8b0);
  color: var(--gold-dark);
  border: 1px solid var(--gold-muted);
  border-radius: 20px;
  padding: .2rem .7rem;
  font-size: .75rem;
  font-weight: 700;
}

.badge-featured {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: linear-gradient(135deg, #ede8f8, #ddd5f5);
  color: #6a5acd;
  border: 1px solid #c8b8f0;
  border-radius: 20px;
  padding: .2rem .7rem;
  font-size: .75rem;
  font-weight: 700;
}

.status-pill {
  display: inline-block;
  border-radius: 20px;
  padding: .2rem .65rem;
  font-size: .75rem;
  font-weight: 600;
}

.status-pill.pending, .status-pill.sent, .status-pill.viewed { background: var(--gold-soft); color: var(--gold-dark); }
.status-pill.approved, .status-pill.active, .status-pill.confirmed { background: var(--green-soft); color: var(--green); }
.status-pill.accepted, .status-pill.contacted { background: var(--teal-soft); color: var(--teal); }
.status-pill.booked { background: var(--sky-soft); color: var(--sky); }
.status-pill.completed { background: var(--green-soft); color: var(--green); }
.status-pill.rejected, .status-pill.cancelled, .status-pill.declined, .status-pill.expired { background: var(--red-soft); color: var(--red); }

.accent-house-cleaning, .accent-home-cleaning { --accent: var(--teal); --accent-soft: var(--teal-soft); }
.accent-lawn-care, .accent-landscaping, .accent-tree-service { --accent: var(--green); --accent-soft: var(--green-soft); }
.accent-handyman, .accent-electricians { --accent: var(--gold-dark); --accent-soft: var(--gold-soft); }
.accent-plumbers, .accent-hvac { --accent: var(--sky); --accent-soft: var(--sky-soft); }
.accent-roofing, .accent-house-painting, .accent-moving-services, .accent-moving { --accent: var(--clay); --accent-soft: var(--clay-soft); }
.accent-gutter-cleaning { --accent: var(--brand); --accent-soft: var(--brand-soft); }

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-radius: 20px;
  padding: .2rem .65rem;
  font-size: .75rem;
  font-weight: 700;
}

.tier-bronze { background: #f7ede6; color: var(--tier-bronze); border: 1px solid #e8c8b4; }
.tier-silver { background: #eef1f4; color: var(--tier-silver); border: 1px solid #c8d0d8; }
.tier-gold { background: var(--gold-soft); color: var(--tier-gold); border: 1px solid var(--gold-muted); }
.tier-platinum { background: #ede8f8; color: var(--tier-platinum); border: 1px solid #c8b8f0; }

/* ============================================================
   Business Profile
   ============================================================ */
.profile-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 40px 0;
}

.profile-logo {
  width: 90px; height: 90px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.3);
}

.profile-logo-placeholder {
  width: 90px; height: 90px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  border: 3px solid rgba(255,255,255,.2);
}

.profile-meta .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.12);
  color: var(--brand-muted);
  border-radius: 20px;
  padding: .3rem .8rem;
  font-size: .8rem;
  margin: .2rem .2rem 0 0;
}

.profile-tabs {
  background: var(--surface);
  border-bottom: 2px solid var(--border-soft);
  position: sticky;
  top: 65px;
  z-index: 100;
}

.profile-tabs .nav-link {
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: .875rem 1.25rem;
  font-weight: 600;
  font-size: .9rem;
  transition: color .2s;
}

.profile-tabs .nav-link:hover { color: var(--brand); }
.profile-tabs .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ============================================================
   Reviews
   ============================================================ */
.review-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow .2s;
}

.review-card:hover { box-shadow: var(--shadow-md); }

.reviewer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.reviewer-avatar-placeholder {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand);
  font-size: 1rem;
  flex-shrink: 0;
}

.review-response {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .875rem 1rem;
  margin-top: 1rem;
}

.review-response .owner-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .3rem;
}

.rating-bar-row .bar-track {
  flex: 1;
  height: 8px;
  background: var(--border-soft);
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-row .bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
}

.rating-bar-row .bar-label,
.rating-bar-row .bar-count {
  font-size: .75rem;
  color: var(--muted);
  min-width: 20px;
}

.rating-bar-row .bar-count { text-align: right; }

/* ============================================================
   Dashboard
   ============================================================ */
.dashboard-wrapper { display: flex; min-height: calc(100vh - 80px); }

.dashboard-sidebar {
  width: 260px;
  background: var(--brand-dark);
  flex-shrink: 0;
  padding: 1.5rem 0;
}

.sidebar-business-info {
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1rem;
}

.sidebar-nav .nav-item a {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--brand-muted);
  padding: .7rem 1.25rem;
  font-weight: 600;
  font-size: .9rem;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-item a:hover,
.sidebar-nav .nav-item a.active {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-left-color: var(--gold);
}

.sidebar-nav .nav-item a.is-locked {
  color: rgba(255, 255, 255, .46);
}

.owner-nav-lock {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-muted);
  font-size: .72rem;
}

.dashboard-content { flex: 1; padding: 2rem; overflow-x: hidden; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow .2s;
}

.stat-card:hover { box-shadow: var(--shadow-md); }

.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-card .stat-icon.blue { background: var(--brand-soft); color: var(--brand); }
.stat-card .stat-icon.gold { background: var(--gold-soft); color: var(--gold-dark); }
.stat-card .stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-card .stat-icon.purple { background: #ede8f8; color: #6a5acd; }

.stat-card .stat-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.stat-card .stat-label { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

.owner-shell {
  background: #f6f8f8;
}

.owner-sidebar {
  background:
    linear-gradient(180deg, var(--brand-deep), var(--brand-dark));
  box-shadow: inset -1px 0 rgba(255, 255, 255, .05);
}

.owner-sidebar-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
}

.owner-sidebar-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}

.owner-sidebar-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-sidebar-name {
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
}

.owner-sidebar-meta {
  color: rgba(255, 255, 255, .62);
  font-size: .82rem;
  font-weight: 600;
}

.owner-plan-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .2rem .65rem;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .68);
  font-size: .72rem;
  font-weight: 750;
}

.owner-workspace {
  padding: 1.75rem;
}

.owner-hero,
.owner-upgrade,
.owner-panel,
.owner-metric {
  border: 1px solid rgba(31, 112, 109, .1);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 44px rgba(26, 35, 50, .06);
}

.owner-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem;
  border-radius: 22px;
  margin-bottom: 1rem;
}

.owner-eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.owner-hero h1,
.owner-panel h2 {
  margin: .18rem 0 0;
  font-family: var(--font-body);
  letter-spacing: 0;
}

.owner-hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 850;
}

.owner-hero p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.owner-hero-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.owner-upgrade {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft));
}

.owner-upgrade-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #fff;
  color: var(--gold-dark);
}

.owner-upgrade-title {
  color: var(--ink);
  font-weight: 850;
}

.owner-upgrade p {
  margin: .1rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.owner-upgrade .btn {
  margin-left: auto;
  flex: 0 0 auto;
}

.owner-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1rem;
}

.owner-metric {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem;
  border-radius: 18px;
}

.owner-metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.owner-metric-icon.is-gold { background: var(--gold-soft); color: var(--gold-dark); }
.owner-metric-icon.is-brand { background: var(--brand-soft); color: var(--brand); }
.owner-metric-icon.is-green { background: var(--green-soft); color: var(--green); }
.owner-metric-icon.is-soft { background: #eef2f7; color: #475569; }

.owner-metric strong {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 850;
}

.owner-metric span:last-child {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
}

.owner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
  gap: 1rem;
  align-items: start;
}

.owner-grid.secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.owner-panel {
  border-radius: 22px;
  overflow: hidden;
}

.owner-panel-main {
  min-height: 420px;
}

.owner-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}

.owner-panel-head.compact {
  border-bottom: none;
  padding-bottom: .75rem;
}

.owner-panel h2 {
  font-size: 1.05rem;
  font-weight: 850;
}

.owner-panel-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .3rem .7rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .78rem;
  font-weight: 850;
}

.owner-report {
  margin-bottom: 1rem;
}

.owner-report-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
  padding: 1rem;
}

.owner-report-card {
  min-height: 120px;
  padding: .95rem;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: #fff;
}

.owner-report-card span,
.owner-report-card small {
  display: block;
}

.owner-report-card span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.owner-report-card strong {
  display: block;
  margin: .45rem 0 .35rem;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.owner-report-card small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.owner-report-card small.is-up {
  color: var(--green);
}

.owner-report-card small.is-down {
  color: var(--red);
}

.owner-report-card.is-muted {
  background: #f8fafc;
}

.owner-lead-list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1rem;
}

.owner-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: #fff;
}

.owner-lead-topline,
.owner-lead-meta,
.owner-lead-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.owner-lead-topline {
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .45rem;
}

.owner-lead-code {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
}

.owner-lead-main h3 {
  margin: 0 0 .5rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 850;
}

.owner-lead-meta {
  gap: .7rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
}

.owner-lead-meta span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.owner-lead-meta i {
  color: var(--brand);
  font-size: .75rem;
}

.owner-lead-main p {
  margin: .65rem 0 0;
  color: #475569;
  font-size: .88rem;
  line-height: 1.55;
}

.owner-lead-side {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.owner-contact-box {
  padding: .75rem;
  border-radius: 14px;
  background: #f7faf9;
  border: 1px solid var(--border-soft);
}

.owner-contact-box span,
.owner-contact-box small {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.owner-contact-box strong {
  display: block;
  margin: .15rem 0;
  color: var(--ink);
  font-size: .9rem;
}

.owner-contact-box a {
  display: block;
  font-size: .82rem;
  font-weight: 700;
}

.owner-lead-actions {
  gap: .45rem;
  justify-content: flex-end;
}

.owner-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.owner-progress {
  height: 10px;
  margin: 0 1.25rem;
  border-radius: 999px;
  background: #edf2f2;
  overflow: hidden;
}

.owner-progress div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

.owner-side-copy {
  margin: .85rem 1.25rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.owner-checklist,
.owner-action-list,
.owner-history-list {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
}

.owner-checklist {
  list-style: none;
  display: grid;
  gap: .45rem;
}

.owner-checklist li {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.owner-checklist li.is-done {
  color: var(--green);
}

.owner-action-list {
  display: grid;
  gap: .5rem;
}

.owner-action-list a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .75rem;
  border-radius: 12px;
  background: #f7faf9;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 750;
}

.owner-action-list a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.owner-history-list {
  display: grid;
  gap: .65rem;
}

.owner-history-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.owner-history-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.owner-history-item strong,
.owner-history-item span,
.owner-history-item small {
  display: block;
}

.owner-history-item strong {
  color: var(--ink);
  font-size: .9rem;
}

.owner-history-item span,
.owner-history-item small,
.owner-muted {
  color: var(--muted);
  font-size: .8rem;
}

.owner-muted {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
}

.owner-empty {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 300px;
  padding: 2rem;
}

.owner-empty i {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.25rem;
}

.owner-empty h3 {
  font-family: var(--font-body);
  font-weight: 850;
}

.owner-empty p {
  color: var(--muted);
  max-width: 360px;
}

.hours-editor {
  display: grid;
  gap: .45rem;
  padding: .75rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #f8fafc;
}

.hours-editor-head,
.hours-editor-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(105px, .75fr) minmax(105px, .75fr) minmax(86px, .55fr);
  gap: .65rem;
  align-items: center;
}

.hours-editor-head {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hours-editor-row {
  padding: .55rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
}

.hours-day {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
}

.hours-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 750;
}

.hours-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand);
}

.source-bar { margin-bottom: 1rem; }
.source-bar .source-label {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .3rem;
}
.source-bar .bar-track { height: 10px; background: var(--border-soft); border-radius: 5px; overflow: hidden; }
.source-bar .bar-fill { height: 100%; border-radius: 5px; }
.source-bar .bar-fill.google { background: #4285f4; }
.source-bar .bar-fill.search { background: var(--brand); }
.source-bar .bar-fill.social { background: #e91e63; }
.source-bar .bar-fill.direct { background: var(--gold); }

.chart-container { position: relative; height: 280px; width: 100%; }

.period-toggle .btn {
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  transition: all .15s;
}

.period-toggle .btn.active,
.period-toggle .btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  text-align: center;
  padding: 64px 0 80px;
}

.pricing-hero h1 { color: #fff; }
.pricing-hero p { color: var(--brand-muted); }

.pricing-cards-wrapper { margin-top: -48px; }

.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow-lg); }

.pricing-card .plan-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border-radius: 20px;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.pricing-card .plan-badge.gold-badge { background: var(--gold); color: var(--brand-dark); }

.pricing-card .plan-price {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.pricing-card .plan-price span { font-size: 1rem; color: var(--muted); font-family: var(--font-body); }
.pricing-card .plan-name { font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }

.pricing-card .feature-list { list-style: none; padding: 0; margin: 1.5rem 0; }

.pricing-card .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: .9rem;
  color: var(--ink-soft);
}

.pricing-card .feature-list li:last-child { border-bottom: none; }
.pricing-card .feature-list li .check { color: var(--green); font-size: .85rem; margin-top: .15rem; flex-shrink: 0; }

/* ============================================================
   Forms
   ============================================================ */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-size: .95rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,112,109,.12);
  outline: none;
}

.form-label { font-weight: 600; font-size: .875rem; color: var(--ink-soft); margin-bottom: .4rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  padding: .6rem 1.25rem;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); }

.btn-gold { background: var(--gold); border: none; color: var(--brand-dark); font-weight: 700; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }

.btn-outline-brand { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,.3); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-soft);
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: 1.5rem; }

/* ============================================================
   User Profile
   ============================================================ */
.user-profile-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 48px 0;
}

.user-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.3); }

.user-avatar-placeholder {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  border: 4px solid rgba(255,255,255,.2);
}

.badge-grid { display: flex; flex-wrap: wrap; gap: .75rem; }

.badge-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: .875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 180px;
}

.badge-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.badge-icon.gold { background: var(--gold-soft); color: var(--gold-dark); }
.badge-icon.blue { background: var(--brand-soft); color: var(--brand); }
.badge-icon.green { background: var(--green-soft); color: var(--green); }
.badge-icon.purple { background: #ede8f8; color: #6a5acd; }

.points-progress { background: var(--border-soft); border-radius: 8px; height: 10px; overflow: hidden; }
.points-progress .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  border-radius: 8px;
  transition: width .4s ease;
}

/* ============================================================
   Admin
   ============================================================ */
.admin-layout { display: flex; min-height: calc(100vh - 80px); }

.admin-sidebar {
  width: 240px;
  background: var(--ink);
  flex-shrink: 0;
  padding: 1.5rem 0;
}

.admin-sidebar .admin-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #8a97a8;
  padding: .65rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  transition: all .15s;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.admin-sidebar .admin-nav-link:hover,
.admin-sidebar .admin-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-left-color: var(--gold);
}

.admin-content { flex: 1; padding: 2rem; background: var(--surface-alt); }

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.admin-stat-card .stat-num {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}

.admin-stat-card .stat-lbl { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

.admin-stat-card .stat-badge {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  border-bottom: 2px solid var(--border-soft);
  padding: .75rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: .875rem;
  vertical-align: middle;
}

.data-table tbody tr:hover { background: var(--surface-alt); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  border-radius: var(--radius);
  border: none;
  padding: .875rem 1.25rem;
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.alert-success { background: var(--green-soft); color: #0f5c35; }
.alert-danger { background: var(--red-soft); color: #8b1a1a; }
.alert-warning { background: var(--orange-soft); color: #7c4a00; }
.alert-info { background: var(--brand-soft); color: var(--brand-dark); }

/* ============================================================
   Trust Strip & Footer
   ============================================================ */
.trust-strip {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: .75rem 0;
  text-align: center;
  font-size: .825rem;
  border-top: 1px solid rgba(31,112,109,.08);
  border-bottom: 1px solid rgba(31,112,109,.08);
}

.trust-strip .trust-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 1.25rem;
  font-weight: 600;
}

.trust-strip .trust-item i { color: var(--brand); }

footer {
  background: #f6fbfa;
  color: var(--muted);
  padding: 34px 0 20px;
  border-top: 1px solid rgba(31,112,109,.09);
}

footer h5 { font-family: var(--font-body); color: var(--ink); font-size: .88rem; font-weight: 800; margin-bottom: .75rem; }

footer a { color: var(--muted); font-size: .875rem; display: block; margin-bottom: .36rem; transition: color .15s; }
footer a:hover { color: var(--brand); }

.footer-brand { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--brand-deep); margin-bottom: .45rem; }
.footer-brand .dot { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(31,112,109,.09);
  margin-top: 1.35rem;
  padding-top: 1rem;
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { display: inline; font-size: .8rem; }

@media (max-width: 575px) {
  footer { padding: 28px 0 16px; }
  .footer-brand { font-size: 1.25rem; }
  footer .row > div { padding-bottom: .25rem; }
  footer h5 { margin-bottom: .5rem; }
  footer a { font-size: .8rem; margin-bottom: .25rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: .35rem; }
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination .page-link {
  border: 1px solid var(--border);
  color: var(--brand);
  padding: .5rem .875rem;
  font-size: .875rem;
  font-weight: 600;
  transition: all .15s;
}

.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-link:hover { background: var(--brand-soft); border-color: var(--brand); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
  .dashboard-sidebar { display: none; }
  .dashboard-wrapper { display: block; }
  .dashboard-content { padding: 1.25rem; }
  .owner-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-grid,
  .owner-grid.secondary { grid-template-columns: 1fr; }
  .owner-lead-card { grid-template-columns: 1fr; }
  .owner-lead-actions { justify-content: flex-start; }
  .admin-sidebar { display: none; }
  .admin-layout { display: block; }
}

@media (max-width: 767px) {
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 1.25rem; }
  .pricing-card { margin-bottom: 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .owner-hero,
  .owner-upgrade { align-items: flex-start; flex-direction: column; }
  .owner-hero-actions { justify-content: flex-start; width: 100%; }
  .owner-hero-actions .btn,
  .owner-upgrade .btn { width: 100%; margin-left: 0; }
  .owner-history-item { flex-direction: column; }
  .hours-editor-head { display: none; }
  .hours-editor-row {
    grid-template-columns: 1fr 1fr;
  }
  .hours-day,
  .hours-toggle {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .stat-card { flex-direction: column; }
  .owner-workspace { padding: 1rem; }
  .owner-metrics { grid-template-columns: 1fr; }
  .owner-report-grid { grid-template-columns: 1fr; }
  .owner-lead-list { padding: .75rem; }
  .owner-lead-card { padding: .85rem; }
  .hero-search input { font-size: .9rem; }
}

/* ============================================================
   Utilities
   ============================================================ */
.text-brand { color: var(--brand) !important; }
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--muted) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-soft) !important; }
.bg-gold-soft { background: var(--gold-soft) !important; }
.bg-surface-alt { background: var(--surface-alt) !important; }
.border-brand { border-color: var(--brand) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.font-head { font-family: var(--font-head) !important; }

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

.fade-up { animation: fadeUp .45s ease both; }
.fade-up-delay-1 { animation-delay: .1s; }
.fade-up-delay-2 { animation-delay: .2s; }
.fade-up-delay-3 { animation-delay: .3s; }

@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@media print {
  .navbar, footer, .dashboard-sidebar, .admin-sidebar, .btn { display: none !important; }
  .profile-hero { background: #fff; color: #000; }
}
