/* ============================================================
   THE GIVING TEE IDAHO — LUXURY DESIGN SYSTEM v2
   Palette: Forest Green · Slate · Cream · Gold
   Type: Inter (body) · Geist (display/mono)
   Philosophy: Reduction of friction = perceived luxury
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Forest palette */
  --forest-950: #0C1F14;
  --forest-900: #132A1C;
  --forest-800: #1B3A2D;
  --forest-700: #244D3A;
  --forest-600: #2E6049;
  --forest-500: #3A7A5C;
  --forest-400: #5C9E7E;
  --forest-300: #8CBFA6;
  --forest-200: #B8D9CA;
  --forest-100: #DFF0E8;
  --forest-50:  #F0F8F3;

  /* Slate palette */
  --slate-900: #1A1F2E;
  --slate-800: #252B3B;
  --slate-700: #343B4F;
  --slate-600: #4A5568;
  --slate-500: #626B80;
  --slate-400: #8590A4;
  --slate-300: #A8B2C2;
  --slate-200: #CBD3DF;
  --slate-100: #E8ECF2;
  --slate-50:  #F4F6FA;

  /* Cream / warm neutrals */
  --cream-900: #3D2E1E;
  --cream-800: #5C4530;
  --cream-700: #7D6048;
  --cream-600: #A07D5E;
  --cream-500: #BFA080;
  --cream-400: #D4BC9E;
  --cream-300: #E4D4BC;
  --cream-200: #EEE4D4;
  --cream-100: #F5EFE4;
  --cream-50:  #FAF7F2;

  /* Gold accent */
  --gold-700: #8B6914;
  --gold-600: #A8801A;
  --gold-500: #C49A24;
  --gold-400: #D4AE4A;
  --gold-300: #E2C878;
  --gold-200: #EDD9A3;
  --gold-100: #F6EDD0;
  --gold-50:  #FBF5E6;

  /* Semantic aliases */
  --bg:        var(--cream-50);
  --bg-card:   #FFFFFF;
  --bg-subtle: var(--cream-100);
  --bg-muted:  var(--cream-200);

  --text-primary:   var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-muted:     var(--slate-400);
  --text-inverse:   #FFFFFF;

  --border:       rgba(74, 85, 104, 0.12);
  --border-hover: rgba(74, 85, 104, 0.24);
  --border-focus: var(--forest-600);

  --accent:       var(--forest-800);
  --accent-hover: var(--forest-700);
  --accent-light: var(--forest-50);

  --gold:       var(--gold-500);
  --gold-hover: var(--gold-400);

  /* Type */
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono:    'Geist Mono', 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 100px;

  /* Transitions */
  --t-fast:   150ms cubic-bezier(.4,0,.2,1);
  --t-base:   250ms cubic-bezier(.4,0,.2,1);
  --t-slow:   400ms cubic-bezier(.4,0,.2,1);
  --t-spring: 350ms cubic-bezier(.34,1.56,.64,1);

  /* Shadows — muted, editorial */
  --shadow-xs: 0 1px 3px rgba(26,31,46,.06);
  --shadow-sm: 0 2px 8px rgba(26,31,46,.08);
  --shadow-md: 0 4px 20px rgba(26,31,46,.10);
  --shadow-lg: 0 8px 40px rgba(26,31,46,.12);
  --shadow-xl: 0 16px 64px rgba(26,31,46,.14);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── Typography ──────────────────────────────────────────── */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text-primary);
}

.t-heading {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--text-primary);
}

.t-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.t-body  { font-size: 1rem; font-weight: 400; line-height: 1.7; }
.t-small { font-size: .875rem; line-height: 1.5; }
.t-xs    { font-size: .75rem; line-height: 1.4; }

.t-forest  { color: var(--forest-800); }
.t-gold    { color: var(--gold-600); }
.t-muted   { color: var(--text-muted); }
.t-second  { color: var(--text-secondary); }
.t-inverse { color: var(--text-inverse); }
.t-italic  { font-style: italic; }

/* ── Announcement Bar ────────────────────────────────────── */
.announcement {
  background: var(--forest-800);
  color: rgba(255,255,255,.8);
  text-align: center;
  padding: 10px 1rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .01em;
  position: relative;
  z-index: 101;
}
.announcement a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }
.announcement strong { color: #fff; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: var(--t-base);
}
.nav.has-announcement { top: 38px; }
.nav.scrolled {
  background: rgba(250,247,242,.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--forest-800);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-300);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--forest-800);
  line-height: 1.2;
}
.nav-logo-sub {
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  flex: 1;
}
.nav-links a {
  display: block;
  padding: .5rem .875rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-md);
  transition: var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--forest-800); background: var(--forest-50); }
.nav-links a.active { color: var(--forest-800); background: var(--forest-50); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  cursor: pointer;
  border-radius: var(--r-md);
  transition: var(--t-fast);
}
.nav-toggle:hover { background: var(--bg-subtle); }
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--t-base);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.375rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  transition: var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--forest-800);
  color: #fff;
  border-color: var(--forest-800);
}
.btn-primary:hover {
  background: var(--forest-700);
  border-color: var(--forest-700);
  box-shadow: var(--shadow-sm);
}

.btn-gold {
  background: var(--gold-500);
  color: var(--forest-900);
  border-color: var(--gold-500);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  box-shadow: 0 4px 16px rgba(196,154,36,.28);
}

.btn-outline {
  background: transparent;
  color: var(--forest-800);
  border-color: var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--forest-800);
  background: var(--forest-50);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.btn-white {
  background: #fff;
  color: var(--forest-800);
  border-color: rgba(255,255,255,.3);
}
.btn-white:hover {
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}

.btn-sm  { padding: .4rem .875rem; font-size: .8125rem; }
.btn-lg  { padding: .8125rem 1.875rem; font-size: 1rem; }
.btn-xl  { padding: 1rem 2.25rem; font-size: 1.0625rem; border-radius: var(--r-lg); }
.btn-pill { border-radius: var(--r-pill); }
.btn-block { width: 100%; }
.btn-icon { padding: .625rem; aspect-ratio: 1; }

/* ── Layout ──────────────────────────────────────────────── */
.container     { max-width: 1320px; margin: 0 auto; padding: 0 2rem; }
.container-md  { max-width: 960px;  margin: 0 auto; padding: 0 2rem; }
.container-sm  { max-width: 720px;  margin: 0 auto; padding: 0 2rem; }

.section        { padding: var(--s24) 0; }
.section-sm     { padding: var(--s16) 0; }
.section-lg     { padding: calc(var(--s24) * 1.5) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  transition: var(--t-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.card-flat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
}
.card-subtle {
  background: var(--bg-subtle);
  border-radius: var(--r-xl);
  padding: var(--s8);
}

/* ── Section Headers ─────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: var(--s16); }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--forest-500);
  margin-bottom: var(--s3);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: var(--s4);
}
.section-title em { font-style: italic; color: var(--forest-600); }
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--forest-950) 0%, var(--forest-800) 45%, var(--forest-700) 100%);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .15;
  mix-blend-mode: luminosity;
}
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 8rem 2rem 6rem;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .75rem;
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge-forest { background: var(--forest-100); color: var(--forest-700); }
.badge-gold   { background: var(--gold-100);   color: var(--gold-700); }
.badge-slate  { background: var(--slate-100);  color: var(--slate-700); }
.badge-cream  { background: var(--cream-100);  color: var(--cream-700); }
.badge-white  { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.2); }

/* ── Stats Band ──────────────────────────────────────────── */
.stats-band {
  background: var(--forest-900);
  padding: var(--s16) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--s8);
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--gold-300);
  line-height: 1;
  margin-bottom: .375rem;
}
.stat-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .03em;
}

/* ── Feature Checks ──────────────────────────────────────── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.check-list .chk {
  width: 20px; height: 20px;
  background: var(--forest-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .6875rem;
  color: var(--forest-700);
  flex-shrink: 0;
  margin-top: 1px;
}
.check-list-inverse li { color: rgba(255,255,255,.75); }
.check-list-inverse .chk { background: rgba(255,255,255,.12); color: var(--gold-300); }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8) var(--s8) var(--s10);
  position: relative;
  transition: var(--t-base);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.featured {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: #fff;
  box-shadow: var(--shadow-xl);
}
.pricing-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold-500);
  color: var(--forest-900);
  font-size: .6875rem;
  font-weight: 800;
  padding: .25rem 1rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
  letter-spacing: .04em;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--text-primary);
}
.pricing-card.featured .price-amount { color: var(--gold-300); }
.price-period { font-size: .8125rem; color: var(--text-muted); margin-top: .25rem; }
.pricing-card.featured .price-period { color: rgba(255,255,255,.5); }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin: var(--s6) 0 auto;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: var(--text-secondary);
}
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,.75); }
.pricing-features .chk { color: var(--forest-500); font-weight: 700; }
.pricing-card.featured .pricing-features .chk { color: var(--gold-300); }

/* ── Testimonials ────────────────────────────────────────── */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  position: relative;
}
.testimonial-quote {
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--s6);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .875rem;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--forest-800);
  color: var(--gold-300);
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name { font-size: .9375rem; font-weight: 600; color: var(--text-primary); }
.testimonial-role { font-size: .8125rem; color: var(--text-muted); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .375rem; }
label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: .01em;
}
input[type=text], input[type=email], input[type=tel],
input[type=password], input[type=number], input[type=date],
input[type=url], select, textarea {
  font-family: var(--font-sans);
  font-size: .9375rem;
  padding: .6875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
  -webkit-appearance: none;
}
input:hover, select:hover, textarea:hover { border-color: var(--border-hover); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(46,96,73,.12);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234A5568' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .875rem center; padding-right: 2.5rem; }
::placeholder { color: var(--text-muted); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  font-size: .875rem;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.alert-success { background: var(--forest-50); border-color: var(--forest-200); color: var(--forest-700); }
.alert-error   { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-warning { background: var(--gold-50); border-color: var(--gold-200); color: var(--gold-700); }
.alert-info    { background: var(--slate-50); border-color: var(--slate-200); color: var(--slate-700); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--forest-950);
  color: rgba(255,255,255,.6);
  padding: var(--s24) 0 var(--s8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s16);
  margin-bottom: var(--s16);
}
.footer-brand-desc {
  font-size: .875rem;
  line-height: 1.7;
  margin: var(--s5) 0 var(--s6);
  color: rgba(255,255,255,.5);
}
.footer-social {
  display: flex;
  gap: .5rem;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem;
  transition: var(--t-fast);
  color: rgba(255,255,255,.6);
}
.footer-social a:hover { background: var(--gold-500); color: var(--forest-900); }
.footer-col h4 {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: var(--s5);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: var(--t-fast);
}
.footer-col ul li a:hover { color: var(--gold-300); }
.footer-bottom {
  padding-top: var(--s8);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: var(--s4);
}
.footer-bottom a { color: rgba(255,255,255,.35); transition: var(--t-fast); }
.footer-bottom a:hover { color: rgba(255,255,255,.6); }

/* ── Product Cards ───────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: var(--t-base);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-hover);
}
.product-img {
  height: 200px;
  background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: var(--s5) var(--s6); }
.product-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: .25rem;
}
.product-meta { font-size: .8125rem; color: var(--text-muted); margin-bottom: var(--s4); }
.product-price { font-size: 1.125rem; font-weight: 700; color: var(--forest-800); }
.product-price .from { font-size: .75rem; font-weight: 400; color: var(--text-muted); }

/* ── Dashboard Shell ─────────────────────────────────────── */
.dash-layout { display: flex; min-height: 100vh; background: #F2F4F1; }
.dash-sidebar {
  width: 256px;
  background: var(--forest-900);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.dash-sidebar-header {
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.dash-nav-section { padding: .875rem .625rem; }
.dash-nav-section + .dash-nav-section { border-top: 1px solid rgba(255,255,255,.06); }
.dash-nav-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: .25rem .625rem;
  margin-bottom: .25rem;
}
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5625rem .625rem;
  border-radius: 8px;
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  transition: var(--t-fast);
  cursor: pointer;
  text-decoration: none;
}
.dash-nav-link:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.dash-nav-link.active { background: rgba(196,154,36,.15); color: var(--gold-300); }
.dash-nav-link .icon { width: 16px; text-align: center; font-size: .9rem; flex-shrink: 0; }
.dash-main { margin-left: 256px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.dash-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: .875rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
}
.dash-page-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -.01em;
}
.dash-content { padding: 1.75rem; flex: 1; }
.dash-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.375rem 1.5rem;
}
.dash-stat-label {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .375rem;
}
.dash-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: .375rem;
}
.dash-stat-change { font-size: .8125rem; color: var(--forest-600); font-weight: 500; }
.dash-stat-change.down { color: #DC2626; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  text-align: left;
  padding: .625rem 1rem;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
.dash-table td {
  padding: .875rem 1rem;
  font-size: .875rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--bg-subtle); }

/* ── Status Badges ───────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .625rem;
  border-radius: var(--r-pill);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}
.status-active    { background: var(--forest-100); color: var(--forest-700); }
.status-pending   { background: var(--gold-100);   color: var(--gold-700); }
.status-complete  { background: var(--slate-100);  color: var(--slate-700); }
.status-cancelled { background: #FEE2E2;           color: #991B1B; }

/* ── Toggle Switch ───────────────────────────────────────── */
.toggle { position: relative; display: inline-flex; align-items: center; gap: .625rem; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  width: 38px; height: 22px;
  background: var(--slate-200);
  border-radius: var(--r-pill);
  transition: background var(--t-fast);
  position: relative;
  flex-shrink: 0;
}
.toggle input:checked + .toggle-track { background: var(--forest-700); }
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--t-spring);
  box-shadow: var(--shadow-xs);
}
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }

/* ── Scroll Animations ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Divider ─────────────────────────────────────────────── */
hr, .divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--s8) 0;
}

/* ── Mobile Nav ──────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--cream-50);
  padding: 5rem 1.5rem 2rem;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: .875rem 1rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--r-md);
  transition: var(--t-fast);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { background: var(--forest-50); color: var(--forest-800); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: var(--s8); }

/* ── Affiliate-specific ──────────────────────────────────── */
.affiliate-tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  position: relative;
  text-align: center;
  transition: var(--t-base);
}
.affiliate-tier:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.affiliate-tier.featured {
  border-color: var(--gold-400);
  background: linear-gradient(160deg, var(--gold-50) 0%, #fff 50%);
}
.affiliate-commission {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--forest-800);
  line-height: 1;
  letter-spacing: -.03em;
}
.affiliate-tier.featured .affiliate-commission { color: var(--gold-600); }

.referral-link-box {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .75rem 1rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--text-secondary);
}
.referral-link-box input {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--text-secondary);
  padding: 0;
  min-width: 0;
}
.referral-link-box input:focus { outline: none; box-shadow: none; border: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s10); }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-sidebar { transform: translateX(-100%); transition: transform var(--t-base); }
  .dash-sidebar.open { transform: none; }
  .dash-main { margin-left: 0; }
  :root { --s24: 4rem; --s16: 3rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
  .pricing-card.featured { transform: none; }
}
