/* ═══════════════════════════════════════════════════════════════════
   TaskRoof AU -Shared Theme
   ───────────────────────────────────────────────────────────────────
   Edit this single file to change colors, fonts, buttons, nav, or
   footer across every page in the application.

   Sections:
   1. Design Tokens (CSS variables)
   2. Reset & Base
   3. Shared Nav (.site-nav)
   4. Shared Footer (.site-footer)
   5. Buttons (.btn-primary, .btn-ghost, .btn-danger, .btn-white)
   6. Forms / Inputs
   7. Cards & Shadows
   8. Scrollbar
   9. Accent Overrides (logos, hero emphasis, category labels)
   10. Utility Helpers (.grad-text, .fade-in)
   ═══════════════════════════════════════════════════════════════════ */


/* ─── 1. DESIGN TOKENS -Global brand (flat-first) ─────────────
   Primary green #00763d · Accent yellow #ffd21f · Secondary #FAC905
   Legacy aliases (--olive, --lime, etc.) map so existing pages update.
   ──────────────────────────────────────────────────────────────── */
:root {
  /* PRIMARY */
  --pear:           #00763d;
  --pear-dark:      #004d2e;
  --pear-light:     #e6f7ef;
  --vanilla:        #f0fdf4;
  --olive:          #00763d;
  --olive-dark:     #004d2e;
  --olive-light:    #c8ebd9;
  --teal:           #00763d;
  --teal-dark:      #004d2e;
  --teal-light:     #c8ebd9;
  --turquoise:      #00763d;
  --turquoise-dark: #004d2e;
  --turquoise-light:#c8ebd9;

  /* ACCENT -yellow + lime secondary */
  --sun:            #ffd21f;
  --sun-light:      #fff9e0;
  --sun-dark:       #d4a800;
  --lime:           #ffd21f;
  --brand-accent-2: #FAC905;
  --gold2:          #ffd21f;
  --gold-dark:      #d4a800;
  --orange:         #ffd21f;
  --tangerine:      #ffd21f;
  --peach:          #fff9e0;
  --mint:           #e6f7ef;

  --rust:           #b45309;
  --rusted-clay:    #92400e;
  --persimmon:      #b45309;

  --navy:           #1e3a5f;
  --navy-light:     #64748b;
  --seeker:         #1e3a5f;
  --seeker-light:   #e2e8f0;
  --provider:       #00763d;
  --provider-light: #e6f7ef;
  --admin:          #06090d;
  --admin-soft:     #1f2933;

  --charcoal:       #06090d;
  --ink:            #1f2933;
  --mid:            #475569;
  --soft:           #94a3b8;
  --cream:          #fafdf9;
  --sand:           #fff9e0;
  --surface:        #ffffff;
  --surface-tint:   #f1faf5;
  --border:         #cfe8da;
  --border-strong:  #00763d;

  /* Flat “gradients” -same-color stops (legacy class compatibility) */
  --grad-primary:       linear-gradient(135deg, #00763d 0%, #00763d 100%);
  --grad-primary-hover: linear-gradient(135deg, #004d2e 0%, #004d2e 100%);
  --grad-accent:        linear-gradient(135deg, #ffd21f 0%, #ffd21f 100%);
  --grad-success:       linear-gradient(135deg, #00763d 0%, #00763d 100%);
  --grad-warm:          linear-gradient(135deg, #ffd21f 0%, #FAC905 100%);
  --grad-cool:          linear-gradient(135deg, #e6f7ef 0%, #c8ebd9 100%);
  --grad-trust:         linear-gradient(135deg, #1e3a5f 0%, #64748b 100%);
  --grad-hero:          linear-gradient(135deg, #fafdf9 0%, #fafdf9 100%);
  --grad-mesh:          none;

  --shadow-xs:   0 1px 2px rgba(0, 118, 61, 0.06);
  --shadow-sm:   0 2px 4px rgba(0, 118, 61, 0.06), 0 4px 12px rgba(0, 118, 61, 0.08);
  --shadow-md:   0 4px 10px rgba(0, 118, 61, 0.08), 0 12px 28px rgba(0, 118, 61, 0.10);
  --shadow-lg:   0 8px 20px rgba(0, 118, 61, 0.10), 0 24px 56px rgba(0, 118, 61, 0.12);
  --shadow-xl:   0 12px 32px rgba(0, 118, 61, 0.12), 0 32px 80px rgba(0, 118, 61, 0.14);
  --shadow-glow: 0 6px 24px rgba(255, 210, 31, 0.45);
  --shadow-pop:  0 8px 28px rgba(0, 118, 61, 0.18), 0 3px 10px rgba(255, 210, 31, 0.25);
  --shadow-ring: 0 0 0 4px rgba(250, 201, 5, 0.25);

  /* Radii -generous & friendly */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 100px;

  /* Typography -friendly modern system stack
     (--font-serif kept for occasional gravitas / quotes) */
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", "Inter", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif:   'Times New Roman', Times, serif;
}


/* ─── 2. RESET & BASE ─────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Footer ends near #050709; avoids pale cream strip below footer / overscroll */
  background-color: #050709;
}
body {
  font-family: var(--font-body) !important;
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
/* Override TNR in inline pages -sans by default everywhere */
button, input, select, textarea, p, a, span, li, td, th, label,
h1, h2, h3, h4, h5, h6, div {
  font-family: var(--font-body);
}
/* Display headings -tighter letter-spacing, heavier weight */
h1, h2, h3 {
  font-weight: 800 !important;
  letter-spacing: -0.022em !important;
  line-height: 1.15 !important;
  color: var(--charcoal);
}
h4, h5, h6 {
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: var(--charcoal);
}


/* ─── 3. SHARED NAV ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(255,255,248,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
}
.site-nav .nav-logo {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  color: var(--olive);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.site-nav .nav-links a {
  text-decoration: none;
  color: var(--mid);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active { color: var(--olive); }

  .site-nav .nav-cta {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  /* Mobile-first: prominent seeker CTA in header (desktop uses hero cards + nav menu) */
  .nav-post-task-btn {
    display: none;
    margin-left: auto;
    margin-right: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--sun);
    color: var(--charcoal);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    border: 1.5px solid rgba(0, 118, 61, 0.18);
    box-shadow: 0 2px 8px rgba(255, 210, 31, 0.35);
    flex-shrink: 0;
  }

  .nav-post-task-btn:hover {
    background: #f5c800;
    color: var(--charcoal);
  }

  @media (max-width: 1024px) {
    .nav-post-task-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
  }

  @media (min-width: 1025px) {
    .nav-post-task-btn {
      display: none;
    }
  }

  /* Hero: mobile Post a Task strip (between role cards and search) */
  .hero-post-task-mobile {
    display: none;
    margin: 4px 0 10px;
  }

  .hero-post-task-mobile__btn {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffd21f 0%, #f5c800 100%);
    color: #004d2e;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 210, 31, 0.45);
  }

  .hero-post-task-mobile__btn:active {
    transform: scale(0.99);
  }

  @media (max-width: 900px) {
    .hero-post-task-mobile {
      display: block;
    }
  }

  @media (min-width: 901px) {
    .hero-post-task-mobile {
      display: none;
    }
  }

/* User pill (shown when logged in) */
.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--olive);
  border-radius: 8px;
  padding: 7px 14px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.nav-user-pill .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.nav-user-pill .role {
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 6px;
}
.nav-user-pill .role-tasker { background: var(--provider); }
.nav-user-pill .role-seeker { background: var(--seeker); }


/* ─── 4. SHARED FOOTER ────────────────────────────────────────── */
.site-footer {
  background: #166534;
  color: white;
  padding: 60px 48px 32px;
  margin-bottom: 0;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.site-footer .footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}
.site-footer .footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.site-footer .footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
}
.site-footer .footer-col a:hover { color: var(--lime); }
.site-footer .footer-logo {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 20px;
  color: white;
}
.site-footer .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}


/* ─── 5. BUTTONS ──────────────────────────────────────────────── */

/* PRIMARY -flat brand green */
.btn-primary,
.submit-btn,
.apply-main-btn,
.publish-btn,
.cta-btn-primary,
.hero-search button,
button.btn-primary,
a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  padding: 11px 22px;
  background: #00763d !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: var(--font-body) !important;
  font-size: 14.5px;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 118, 61, 0.28), 0 2px 6px rgba(0, 77, 46, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.2s ease,
              filter 0.2s ease !important;
}
.btn-primary::before,
.submit-btn::before,
.apply-main-btn::before,
.publish-btn::before,
.cta-btn-primary::before,
.hero-search button::before,
button.btn-primary::before,
a.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
  transition: left 0.6s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.btn-primary:hover,
.submit-btn:hover,
.apply-main-btn:hover,
.publish-btn:hover,
.cta-btn-primary:hover,
.hero-search button:hover,
button.btn-primary:hover,
a.btn-primary:hover {
  background: #004d2e !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 118, 61, 0.35), 0 3px 12px rgba(0, 77, 46, 0.25),
              inset 0 1px 0 rgba(255,255,255,0.18) !important;
  filter: brightness(1.02);
  color: #ffffff !important;
}
.btn-primary:hover::before,
.submit-btn:hover::before,
.apply-main-btn:hover::before,
.publish-btn:hover::before,
.cta-btn-primary:hover::before,
.hero-search button:hover::before,
button.btn-primary:hover::before,
a.btn-primary:hover::before { left: 100%; }
.btn-primary:active,
.submit-btn:active,
.apply-main-btn:active,
.publish-btn:active,
.cta-btn-primary:active,
.hero-search button:active,
button.btn-primary:active,
a.btn-primary:active { transform: translateY(0) !important; filter: brightness(0.98); }

/* GHOST */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: 2px solid var(--pear);
  border-radius: 12px !important;
  color: var(--pear-dark);
  font-family: var(--font-body) !important;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
}
.btn-ghost:hover {
  background: var(--vanilla) !important;
  color: var(--pear-dark) !important;
  border-color: var(--pear-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(114,140,20,0.20);
}

/* DANGER -only for destructive actions */
.btn-danger,
.act-suspend,
.act-reject,
.btn-decline,
.btn-withdraw,
.danger-btn {
  background: var(--rust);
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.btn-danger:hover,
.act-suspend:hover,
.act-reject:hover {
  background: var(--rusted-clay) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* WHITE / OUTLINE-WHITE -used on dark CTA banners */
.btn-white {
  padding: 15px 34px;
  background: white;
  color: var(--olive);
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-body);
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-white {
  padding: 15px 34px;
  border: 2px solid rgba(255,255,255,0.55);
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-body);
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.05);
}
.btn-outline-white:hover {
  border-color: white;
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}


/* ─── 6. FORMS / INPUTS ───────────────────────────────────────── */
input, select, textarea {
  font-family: var(--font-body) !important;
  font-size: 14.5px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease !important;
}
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(250, 201, 5, 0.35) !important;
  border-color: var(--pear) !important;
}


/* ─── 7. CARDS & SHADOWS ──────────────────────────────────────── */
.card, .listing-card, .badge-card, .sidebar-card,
.stat-card, .metric-card, .feature-card, .pricing-card,
.step-card, .testimonial-card, .task-card, .offer-card,
.post-task-block, .filter-group-card,
.rpt-kpi-card, .rpt-fin-card {
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.listing-card:hover, .badge-card:hover, .stat-card:hover,
.feature-card:hover, .pricing-card:hover, .task-card:hover,
.offer-card:hover, .metric-card:hover, .rpt-kpi-card:hover,
.help-card:hover, .topic-card:hover, .step-card:hover,
.case-study:hover, .tier-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--olive);
}


/* ─── 8. SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-tint); }
::-webkit-scrollbar-thumb {
  background: var(--pear);
  border-radius: 100px;
  border: 2px solid var(--surface-tint);
}
::-webkit-scrollbar-thumb:hover { background: var(--pear-dark); }


/* ─── 9. ACCENT OVERRIDES ─────────────────────────────────────── */

/* Nav logo 'Roof' -yellow accent on light backgrounds */
.nav-logo .brand-roof,
.nav-logo span.brand-roof {
  background: none !important;
  -webkit-text-fill-color: var(--sun) !important;
  color: var(--sun) !important;
  font-weight: 800;
}

.nav-logo .brand-task,
.nav-logo > .brand-logo:not(.brand-logo--on-green) .brand-task,
.nav-logo .brand-logo:not(.brand-logo--on-green) .brand-task {
  color: var(--pear) !important;
  -webkit-text-fill-color: var(--pear) !important;
  font-weight: 800;
}

.nav-logo .brand-logo--on-green .brand-task {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 800;
}

.nav-logo .brand-logo--on-green .brand-roof {
  color: var(--sun) !important;
  -webkit-text-fill-color: var(--sun) !important;
  font-weight: 800;
}

/* Footer / admin sidebar / auth panel -white Task, yellow Roof on dark bg */
.footer-logo .brand-task,
.brand-logo--footer .brand-task,
.admin-brand .logo .brand-task,
.auth-left h2 .brand-task {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 800;
}

.footer-logo .brand-roof,
.brand-logo--footer .brand-roof,
.admin-brand .logo .brand-roof,
.auth-left h2 .brand-roof {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: var(--sun) !important;
  color: var(--sun) !important;
  font-weight: 800;
}

/* Green hero backgrounds -white Task, yellow Roof */
.brand-logo--on-green .brand-task,
.page-hero .brand-logo .brand-task,
.help-hero .brand-logo .brand-task {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.brand-logo--on-green .brand-roof,
.page-hero .brand-logo .brand-roof,
.help-hero .brand-logo .brand-roof {
  color: var(--sun) !important;
  -webkit-text-fill-color: var(--sun) !important;
}

.brand-logo {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: inline;
  word-break: keep-all;
  color: inherit;
}

.brand-logo .brand-task {
  color: var(--pear);
  -webkit-text-fill-color: var(--pear);
  font-weight: 800;
}

.brand-logo .brand-roof {
  color: var(--sun);
  -webkit-text-fill-color: var(--sun);
  font-weight: 800;
}

/* Legacy single-span logos: Task<span>Roof</span> -only the Roof span is yellow */
.nav-logo > span:not(.brand-logo):not(.brand-task):not(.brand-roof) {
  background: none !important;
  -webkit-text-fill-color: var(--sun) !important;
  color: var(--sun) !important;
  font-weight: 800;
}

/* Hero h1 emphasis -pear olive green (gradient-clip unreliable cross-browser) */
h1 em,
.hero h1 em,
h1.hero-title em {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: var(--pear) !important;
  color: var(--pear) !important;
  font-style: normal !important;
  font-weight: 800;
}

/* Category / meta labels -olive (was rust) */
.task-cat, .listing-cat, .cat-label,
.meta-cat, .topic-cat, .post-meta-cat, .help-cat,
.badge-cat, .price-perc, .pricing-feat, .cat-tag,
.section-label, .bid-count, .listing-meta strong,
.filter-section-title small {
  color: var(--olive) !important;
}

/* Decorative rust circles → soft gold */
.hero-bg-circle.c2 {
  background: var(--gold2) !important;
  opacity: 0.10 !important;
}

/* Decorative gradients that mixed rust → use gold */
.steps-grid::before {
  background: #00763d !important;
}

/* Pricing ribbons / featured badges -gold (not red) */
.featured-ribbon,
.tier-ribbon,
.badge-ribbon {
  background: var(--lime) !important;
  color: var(--charcoal) !important;
}

/* Pagination + page-link hover */
.page-link:hover,
.pagination .page-btn:hover:not(.active) {
  background: var(--olive) !important;
  color: white !important;
}


/* ─── 10. UTILITY HELPERS ─────────────────────────────────────── */

/* Gradient text helper -only safe on solid light backgrounds.
   Use sparingly; prefer solid color for body text. */
.grad-text {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: var(--pear) !important;
  color: var(--pear) !important;
  font-weight: 800;
}

/* Fade-in animation hook (paired with IntersectionObserver if used) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Shared chrome: nothing after footer in DOM when scripts load from <head defer> */
body.has-shared-chrome {
  padding-bottom: 0;
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   11. FRIENDLY UI UPLIFT LAYER
   ───────────────────────────────────────────────────────────────────
   Modern marketplace patterns inspired by Airtasker / TaskRabbit /
   Fiverr / Upwork. Applied on top with !important.
   ═══════════════════════════════════════════════════════════════════ */

/* ── SHARED NAV -modern friendly look ─────────────────────────── */
.site-nav {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(14px) saturate(1.4) !important;
  border-bottom: 1px solid rgba(180,191,94,0.30) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 4px 16px rgba(13,64,20,0.04);
  height: 72px !important;
}
.site-nav .nav-logo {
  font-family: var(--font-display) !important;
  font-size: 21px !important;
  letter-spacing: -0.02em;
}
.site-nav .nav-links a {
  font-family: var(--font-body) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  padding: 8px 4px;
  position: relative;
}
.site-nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  width: 0; height: 3px;
  background: var(--pear);
  border-radius: 100px;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}
.site-nav .nav-links a:hover::after,
.site-nav .nav-links a.active::after { width: 28px; }

/* ── HERO EYEBROW -punchy pill with banana-yellow gradient ───── */
.hero-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ECBF2D 0%, #FBEA92 100%) !important;
  color: var(--pear-dark) !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  padding: 8px 18px !important;
  border-radius: var(--r-pill) !important;
  box-shadow: 0 6px 20px rgba(236,191,45,0.50), inset 0 1px 0 rgba(255,255,255,0.5) !important;
  text-transform: uppercase;
  font-size: 12px !important;
}

/* ── HEADINGS -friendly modern type ──────────────────────────── */
.hero h1, h1, .section-title, .page-hero h1 {
  font-family: var(--font-display) !important;
  letter-spacing: -0.028em !important;
}

/* ── BODY TEXT -improved legibility ──────────────────────────── */
.hero-sub, .section-sub, p {
  font-family: var(--font-body) !important;
  line-height: 1.65 !important;
}

/* ── SECTION LABEL -friendly green caps ──────────────────────── */
.section-label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: var(--pear-dark) !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
  font-size: 12px !important;
  padding: 6px 14px;
  background: var(--vanilla);
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}

/* ── HERO BACKGROUND -soft mesh gradient + decorative blobs (.hero only)
    Inner pages use .page-hero with their own solid bg + light text in page CSS;
    do not apply cream mesh here or white-on-white contrast breaks. ──────── */
.hero {
  position: relative;
  background: var(--grad-mesh), var(--cream) !important;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  top: -180px; right: -160px;
  background: radial-gradient(circle, var(--sun-light) 0%, transparent 65%);
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  bottom: -160px; left: -120px;
  background: radial-gradient(circle, var(--vanilla) 0%, transparent 65%);
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
}
.hero > *, .page-hero > * { position: relative; z-index: 1; }

/* ── CARDS -modern marketplace style with top accent stripe ──── */
.listing-card, .task-card, .feature-card, .help-card,
.topic-card, .pricing-card, .step-card, .case-study {
  position: relative !important;
  border: 1.5px solid var(--border) !important;
  background: var(--surface) !important;
  border-radius: var(--r-lg) !important;
  padding-top: 24px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.28s ease,
              border-color 0.28s ease !important;
}
.listing-card::before, .task-card::before, .feature-card::before,
.help-card::before, .topic-card::before, .step-card::before,
.case-study::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pear) 0%, var(--pear-light) 50%, var(--sun) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 2;
}
.listing-card:hover::before, .task-card:hover::before,
.feature-card:hover::before, .help-card:hover::before,
.topic-card:hover::before, .step-card:hover::before,
.case-study:hover::before { transform: scaleX(1); }
.listing-card:hover, .task-card:hover, .feature-card:hover,
.help-card:hover, .topic-card:hover, .step-card:hover,
.case-study:hover {
  border-color: var(--pear) !important;
  box-shadow: 0 14px 36px rgba(13,64,20,0.14), 0 4px 12px rgba(236,191,45,0.18) !important;
  transform: translateY(-5px) !important;
}

/* ── TRUST PILLS -pop on hover ───────────────────────────────── */
.trust-pill {
  background: var(--surface) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-pill) !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}
.trust-pill:hover {
  border-color: var(--sun) !important;
  background: linear-gradient(135deg, #FFFCED 0%, var(--surface) 100%) !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(236,191,45,0.30) !important;
}

/* ── CATEGORY CARDS -friendly hover ──────────────────────────── */
.cat-card {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  background: var(--surface) !important;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}
.cat-card:hover {
  border-color: var(--pear) !important;
  background: linear-gradient(135deg, #FFFFFE 0%, var(--surface-tint) 100%) !important;
  box-shadow: 0 12px 32px rgba(114,140,20,0.22) !important;
  transform: translateY(-5px) scale(1.01);
}
.cat-card.featured {
  background: var(--grad-primary) !important;
  border-color: var(--pear-dark) !important;
  color: white !important;
}

/* ── STAT NUMBERS -bold display ──────────────────────────────── */
.stat-num {
  color: var(--pear-dark) !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

/* ── FLOATING BADGES -friendly glow ──────────────────────────── */
.floating-badge,
.completion-badge {
  background: var(--surface) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  padding: 12px 18px !important;
  box-shadow: 0 12px 32px rgba(114,140,20,0.20),
              0 3px 10px rgba(236,191,45,0.25) !important;
}

/* ── PRICING RIBBON -vibrant gold pop ────────────────────────── */
.tier-popular,
.featured-ribbon,
.tier-ribbon,
.badge-ribbon,
.popular-badge {
  background: linear-gradient(135deg, var(--sun) 0%, var(--sun-light) 100%) !important;
  color: var(--pear-dark) !important;
  box-shadow: 0 6px 18px rgba(236,191,45,0.50) !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 11px !important;
}

/* ── DECORATIVE COMM SECTION ICONS -friendly tint ────────────── */
.comm-feat-icon, .opt-icon, .qr-btn {
  background: linear-gradient(135deg, rgba(180,191,94,0.22), rgba(206,217,167,0.35)) !important;
  border-radius: var(--r-md) !important;
}

/* ── NOTIFICATION DOTS / NEW TAGS -banana yellow with glow ───── */
.notif-dot, .new-tag, .new-badge {
  background: var(--sun) !important;
  box-shadow: 0 0 0 3px rgba(236,191,45,0.25), 0 2px 6px rgba(236,191,45,0.40);
  border-radius: var(--r-pill);
}

/* ── AVATAR -friendly ring + smooth lift ─────────────────────── */
.avatar, .rev-avatar, .leader-avatar, .thread-avatar, .offer-avatar,
.member-avatar, .post-avatar, .user-avatar {
  border: 2px solid var(--surface) !important;
  box-shadow: 0 0 0 2px var(--border), 0 2px 6px rgba(13,64,20,0.10) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.avatar:hover, .rev-avatar:hover, .leader-avatar:hover,
.thread-avatar:hover, .offer-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px var(--pear), 0 6px 14px rgba(114,140,20,0.25) !important;
}

/* ── BADGES (general) -pill style with subtle gradient ───────── */
.badge, .pill, .tag, .status-pill, .role-badge, .meta-badge,
.cat-tag, .listing-cat-badge, .listing-cat {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 4px 12px !important;
  border-radius: var(--r-pill) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}

/* ── LISTING / TASK META -friendly typography ────────────────── */
.listing-title, .task-title {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.3 !important;
}
.listing-price, .task-price, .listing-meta {
  font-family: var(--font-body) !important;
  font-weight: 600;
}
.listing-price, .task-price {
  color: var(--pear-dark) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

/* ── FOOTER refinements ───────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #166534 0%, #0d4a22 100%) !important;
  padding: 32px 32px 24px !important;
  margin-bottom: 0 !important;
}
.site-footer .footer-grid { margin-bottom: 24px !important; }
.site-footer .footer-col a { transition: color 0.2s ease, transform 0.2s ease; }
.site-footer .footer-col a:hover {
  color: var(--sun) !important;
  transform: translateX(3px);
}
.site-footer .footer-logo {
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  letter-spacing: -0.02em;
}

/* ── ROLE TAGS -distinct colors for seeker / provider / admin ── */
.role-seeker, .seeker-tag, .badge-seeker {
  background: rgba(46,66,101,0.12) !important;
  color: var(--navy) !important;
}
.role-tasker, .provider-tag, .badge-provider {
  background: rgba(114,140,20,0.15) !important;
  color: var(--pear-dark) !important;
}
.role-admin, .admin-tag, .badge-admin {
  background: rgba(170,109,8,0.15) !important;
  color: var(--sun-dark) !important;
}

/* ── BREADCRUMB -softer, more spacious ───────────────────────── */
.breadcrumb {
  font-size: 13px !important;
  color: var(--mid) !important;
  padding: 18px 48px !important;
}
.breadcrumb a {
  color: var(--pear-dark) !important;
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover { color: var(--sun-dark) !important; text-decoration: underline; }

/* ── EMOJI / ICON sizing in headings ─────────────────────────── */
h1 .icon, h2 .icon, .hero-eyebrow::before { font-size: 1.1em; }

/* ── SUBTLE PAGE TRANSITIONS ──────────────────────────────────── */
a, button { transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease; }

/* ── SELECTION color ──────────────────────────────────────────── */
::selection {
  background: var(--sun);
  color: var(--pear-dark);
}

/* ── MODAL DIALOGS (auth, dashboard, global) ─────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 32, 18, 0.52);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-overlay.open {
  display: flex;
}
.modal-overlay .modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}
.modal-overlay .modal h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--charcoal);
  line-height: 1.25;
}
.modal-confirm-dialog {
  max-width: 460px;
}
.modal-confirm-dialog__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 16px;
}
.modal-confirm-dialog__icon--info {
  background: rgba(114, 140, 20, 0.14);
  color: var(--olive);
}
.modal-confirm-dialog__icon--danger {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}
.modal-confirm-dialog__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mid);
  margin-bottom: 22px;
  text-align: center;
}
.modal-confirm-dialog h3 {
  text-align: center;
}
.modal-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.modal-btns--stacked {
  flex-direction: column;
  align-items: stretch;
}
.modal-btns--stacked .modal-confirm {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
}
.modal-btns--stacked .modal-btns-row {
  display: flex;
  gap: 10px;
}
.modal-btns--stacked .modal-btns-row .modal-cancel,
.modal-btns--stacked .modal-btns-row .modal-secondary {
  flex: 1;
}
.modal-cancel,
.modal-secondary {
  padding: 11px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.modal-secondary {
  color: var(--olive);
  border-color: rgba(114, 140, 20, 0.45);
  background: rgba(114, 140, 20, 0.06);
}
.modal-cancel:hover:not(:disabled),
.modal-secondary:hover:not(:disabled) {
  background: var(--sand);
}
.modal-cancel:disabled,
.modal-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.modal-confirm {
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.modal-confirm:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.modal-confirm.approve {
  background: var(--olive);
}
.modal-confirm.approve:hover:not(:disabled) {
  filter: brightness(0.95);
  transform: translateY(-1px);
}
.modal-confirm.reject {
  background: #c0392b;
}
.modal-confirm.reject:hover:not(:disabled) {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
