/* ═══════════════════════════════════════════════════════════════
   Rogue Sol Regenerative Farms — Main Stylesheet
   Matches the brand palette from the original HTML prototypes.
═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --cream:        #F4EDD8;
  --parchment:    #EAE0C6;
  --sage:         #7A9271;
  --sage-light:   #A8BC9E;
  --forest:       #2B4232;
  --forest-dark:  #1A2B1E;
  --earth:        #6B4F35;
  --terra:        #C4694A;
  --terra-light:  #D98C6F;
  --gold:         #C49A3A;
  --sky:          #7BA7BC;
  --text:         #2A2018;
  --muted:        #7A6E5E;
  --nav-height:   64px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ── Typography ─────────────────────────────────────────────── */
.font-display { font-family: 'Playfair Display', serif; }
.font-mono    { font-family: 'DM Mono', monospace; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(26, 43, 30, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 154, 58, .2);
  gap: .5rem;
  transition: box-shadow .2s;
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }

/* ── Brand ─────────────────────────────────────────────────── */
.nav-brand {
  display: flex; align-items: center; gap: .8rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(196,154,58,.3);
}
.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: .95rem; font-weight: 700; color: var(--cream); line-height: 1.1;
}
.nav-name small {
  display: block; font-family: 'DM Mono', monospace;
  font-size: .52rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sage-light); font-style: normal; font-weight: 400;
}

/* ── Nav links list ─────────────────────────────────────────── */
.nav-links {
  list-style: none;
  display: flex; gap: .8rem; align-items: center;
  flex: 1; justify-content: center;
  margin: 0; padding: 0;
}

.nav-links > li > a {
  font-family: 'DM Mono', monospace;
  font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sage-light); text-decoration: none;
  transition: color .2s; white-space: nowrap; padding: .3rem 0;
  display: block;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--gold); }

/* ── CSA button ─────────────────────────────────────────────── */
.nav-csa-btn {
  padding: .4rem .9rem !important;
  border: 1px solid rgba(196, 154, 58, .45) !important;
  color: var(--gold) !important;
  transition: background .2s, color .2s !important;
}
.nav-csa-btn:hover {
  background: var(--gold) !important;
  color: var(--forest-dark) !important;
}

/* ── Hamburger (mobile only) ────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none; border: none;
  color: var(--cream); font-size: 1.4rem;
  cursor: pointer; padding: .3rem .5rem; line-height: 1;
  flex-shrink: 0;
}

/* ── Dropdown ───────────────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  /* HIDDEN by default — JS adds .open class to show */
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest-dark);
  border: 1px solid rgba(196,154,58,.2);
  min-width: 220px;
  list-style: none;
  margin: 0; padding: 0;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

/* Show dropdown when .open is on the parent li */
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li a {
  display: block;
  padding: .75rem 1.2rem;
  font-family: 'DM Mono', monospace;
  font-size: .65rem; letter-spacing: .08em;
  color: var(--sage-light);
  text-decoration: none;
  transition: background .15s, color .15s;
  border-bottom: 1px solid rgba(255,255,255,.05);
  white-space: nowrap;
}
.nav-dropdown-menu li:last-child a { border-bottom: none; }
.nav-dropdown-menu li a:hover {
  background: rgba(196,154,58,.1);
  color: var(--gold);
}

/* ── Auth area ──────────────────────────────────────────────── */
.nav-auth {
  display: flex; align-items: center; gap: .5rem;
  margin-left: .5rem; flex-shrink: 0;
}
.nav-auth-link {
  font-family: 'DM Mono', monospace;
  font-size: .63rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; transition: color .2s;
}
.nav-auth-signin { color: var(--sage-light); }
.nav-auth-signin:hover { color: var(--cream); }
.nav-auth-join {
  color: var(--forest-dark); background: var(--gold);
  padding: .4rem .9rem; transition: background .2s, color .2s;
}
.nav-auth-join:hover { background: var(--terra-light); color: var(--cream); }
.nav-auth-profile {
  display: flex; align-items: center; gap: .6rem;
  color: var(--sage-light); text-decoration: none;
}
.nav-auth-profile:hover { color: var(--cream); }
.nav-auth-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--terra); color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-auth-name { display: none; } /* hidden to save space */

/* ── Mobile nav ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-hamburger { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--forest-dark);
    flex-direction: column;
    padding: .5rem 0;
    gap: 0;
    border-bottom: 1px solid rgba(196,154,58,.2);
    z-index: 99;
  }
  .nav-links.open { display: flex; }

  .nav-links > li { width: 100%; }
  .nav-links > li > a { padding: .8rem 2rem; border-bottom: 1px solid rgba(255,255,255,.05); }

  /* Mobile dropdowns — inline, not absolutely positioned */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,.2);
    min-width: 0;
  }
  .nav-dropdown-menu li a { padding-left: 3rem; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  padding: .9rem 2.2rem;
  transition: background .2s, color .2s, transform .15s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terra); color: var(--cream); }
.btn-primary:hover { background: var(--terra-light); }
.btn-outline {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(196, 154, 58, .45);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--terra); }
.btn-gold { background: var(--gold); color: var(--forest-dark); }
.btn-gold:hover { background: var(--terra-light); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ── Section Shell ───────────────────────────────────────────── */
.section { padding: 7rem 3rem; position: relative; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem;
}
.section-body {
  font-size: 1rem; line-height: 1.8; color: var(--muted); max-width: 62ch;
}
.divider {
  width: 50px; height: 2px;
  background: currentColor; margin-bottom: 1.8rem; opacity: .35;
}

/* ── Two-col grid ────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }

/* ── Badge (circular farm image) ────────────────────────────── */
.badge-featured { display: flex; align-items: center; justify-content: center; }
.badge-featured img {
  width: min(340px, 100%); border-radius: 50%;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
  transition: transform .3s;
}
.badge-featured img:hover { transform: scale(1.03) rotate(1deg); }

/* ── Feature list ────────────────────────────────────────────── */
.feature-list { list-style: none; margin-top: 1.8rem; display: flex; flex-direction: column; gap: .85rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 1rem; font-size: .93rem; color: var(--muted); }
.feature-list li::before { content: '→'; color: var(--terra); flex-shrink: 0; margin-top: .1rem; }

/* ── Stat row ────────────────────────────────────────────────── */
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: rgba(107,79,53,.12);
  margin-top: 3rem; border: 1px solid rgba(107,79,53,.12);
}
.stat-tile { background: var(--cream); padding: 2rem 1.5rem; text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 900; line-height: 1; margin-bottom: .4rem;
}
.stat-desc {
  font-family: 'DM Mono', monospace;
  font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--forest); color: var(--cream);
  padding: .9rem 2rem; border: 1px solid rgba(196,154,58,.3);
  font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; z-index: 500; transition: transform .35s ease;
  white-space: nowrap; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: #111A13; color: var(--sage-light);
  padding: 2.5rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
  border-top: 1px solid rgba(196,154,58,.15);
}
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--cream);
}
.footer-name small {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: .56rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); font-weight: 400; margin-top: .15rem;
}
.footer-links { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: .63rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sage-light); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-loc {
  font-family: 'DM Mono', monospace;
  font-size: .63rem; letter-spacing: .08em; color: var(--muted); line-height: 1.7;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeUp .65s ease forwards; }

/* ═══════════════════════════════════════════════════════════════
   FARM HOME PAGE
═══════════════════════════════════════════════════════════════ */

/* Hero */
.hero {
  min-height: 100vh; background: var(--forest-dark);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; overflow: hidden; position: relative;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(196,154,58,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(196,154,58,.04) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.hero-left { padding: 9rem 3rem 5rem 3.5rem; position: relative; z-index: 2; }
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900; line-height: .95; color: var(--cream);
}
.hero-title em { font-style: italic; color: var(--terra-light); display: block; }
.hero-sub { color: var(--gold); font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; margin-top: 1rem; opacity: .8; }
.hero-desc { max-width: 46ch; margin-top: 1.8rem; color: var(--sage-light); font-size: .98rem; line-height: 1.8; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }

.hero-right {
  display: flex; align-items: center; justify-content: center;
  height: 100vh; background: rgba(0,0,0,.15); position: relative; z-index: 2;
}
.hero-logo-wrap {
  width: min(420px, 85%); aspect-ratio: 1; border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(196,154,58,.15), 0 0 160px rgba(196,154,58,.07);
  animation: float 6s ease-in-out infinite;
}
.hero-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Badge strip */
.badge-strip {
  background: var(--parchment); border-bottom: 1px solid rgba(107,79,53,.15);
  padding: 2rem 3rem;
  display: flex; gap: .5rem; overflow-x: auto; align-items: center;
  justify-content: center; flex-wrap: wrap;
}
.badge-link {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-decoration: none; cursor: pointer; transition: transform .25s;
}
.badge-link:hover { transform: translateY(-4px) scale(1.05); }
.badge-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.badge-label {
  font-family: 'DM Mono', monospace; font-size: .58rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center;
}

/* Bloom calendar */
.bloom-calendar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(107,79,53,.1);
  margin-top: 3rem; border: 1px solid rgba(107,79,53,.1);
}
.bloom-month { background: var(--parchment); padding: 1.5rem 1rem; text-align: center; }
.bloom-month-label { font-family: 'DM Mono', monospace; font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.bloom-flowers { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.bloom-tag { font-size: .78rem; padding: .25rem .6rem; border-radius: 2px; display: inline-block; }

/* Solar section */
#solar { background: var(--forest); color: var(--cream); }
#solar .section-body { color: var(--sage-light); }
#solar .stat-tile { background: rgba(255,255,255,.05); }
#solar .stat-tile .stat-desc { color: var(--sage-light); }
#solar .stat-tile .stat-num { color: var(--gold); }
#solar .stat-row { background: rgba(255,255,255,.03); }
#solar .divider { background: var(--gold); opacity: .5; }
#solar .section-tag { color: var(--gold); }

.solar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.solar-card { background: rgba(255,255,255,.05); border: 1px solid rgba(196,154,58,.2); padding: 2rem 1.5rem; transition: background .2s; }
.solar-card:hover { background: rgba(196,154,58,.08); }
.solar-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.solar-card-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--cream); margin-bottom: .6rem; }
.solar-card-text { font-size: .9rem; color: var(--sage-light); line-height: 1.65; }

/* Aquaponics loop diagram */
#aquaponics { background: #E8F0EA; }
.loop-diagram { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 3rem; flex-wrap: wrap; }
.loop-node { background: var(--cream); border: 2px solid var(--sage); width: 120px; height: 120px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .8rem; }
.loop-node-icon { font-size: 1.6rem; }
.loop-node-label { font-family: 'DM Mono', monospace; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; margin-top: .3rem; color: var(--forest); }
.loop-arrow { font-size: 1.4rem; color: var(--sage); margin: 0 .4rem; }

/* Pizza farm / earth section */
#pizza-farm { background: var(--earth); color: var(--cream); }
#pizza-farm .section-body { color: #D4B89A; }
#pizza-farm .section-tag { color: var(--terra-light); }
#pizza-farm .divider { background: var(--terra-light); opacity: .5; }

.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px; background: rgba(255,255,255,.1);
  margin-top: 3rem; border: 1px solid rgba(255,255,255,.1);
}
.menu-item { background: rgba(0,0,0,.15); padding: 2rem 1.5rem; transition: background .2s; }
.menu-item:hover { background: rgba(0,0,0,.3); }
.menu-item-icon { font-size: 1.8rem; margin-bottom: .8rem; }
.menu-item-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.menu-item-desc { font-size: .88rem; color: #D4B89A; line-height: 1.55; }

/* Greenhouse / citrus */
#greenhouse { background: var(--cream); }
.citrus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.citrus-card { border-top: 3px solid var(--gold); padding: 1.5rem; background: var(--parchment); }
.citrus-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.citrus-use { font-size: .83rem; color: var(--muted); font-style: italic; }

/* Livestock cards */
#livestock { background: var(--parchment); }
.livestock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.livestock-card { background: var(--cream); border: 1px solid rgba(107,79,53,.1); overflow: hidden; transition: transform .2s; }
.livestock-card:hover { transform: translateY(-4px); }
.livestock-badge { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.livestock-badge img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.livestock-info { padding: 0 1.5rem 1.8rem; }
.livestock-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.livestock-desc { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* The Land */
#land { background: #EDF0E8; }
.land-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.land-feature { background: var(--cream); border-left: 3px solid var(--sage); padding: 1.5rem 1.5rem 1.5rem 1.8rem; }
.land-feature-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.land-feature-text { font-size: .87rem; color: var(--muted); line-height: 1.6; }

/* Vision */
#vision { background: var(--forest-dark); color: var(--cream); text-align: center; }
.vision-logo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 2.5rem; box-shadow: 0 0 60px rgba(196,154,58,.2); }
.vision-quote { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 3.5vw, 2.4rem); font-weight: 400; font-style: italic; max-width: 760px; margin: 0 auto; line-height: 1.5; }
.vision-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--cream); margin-top: 2.5rem; }
.vision-sub { font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: .5rem; }
.vision-body { max-width: 680px; margin: 2rem auto 0; font-size: .96rem; color: var(--sage-light); line-height: 1.85; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.pillar { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); padding: 2rem 1.5rem; }
.pillar-icon { font-size: 2rem; margin-bottom: 1rem; }
.pillar-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--cream); margin-bottom: .6rem; }
.pillar-text { font-size: .88rem; color: var(--sage-light); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════
   CSA SHOP PAGE
═══════════════════════════════════════════════════════════════ */

.shop-hero {
  min-height: 52vh; background: var(--forest-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 9rem 2rem 5rem; position: relative; overflow: hidden;
}
.shop-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(196,154,58,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(196,154,58,.04) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.shop-hero-badge {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  margin-bottom: 2rem; position: relative; z-index: 2;
  box-shadow: 0 0 60px rgba(196,154,58,.2);
  animation: float 6s ease-in-out infinite;
}
.shop-hero-tag { font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; position: relative; z-index: 2; }
.shop-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; color: var(--cream); line-height: .95; position: relative; z-index: 2; }
.shop-hero-title em { font-style: italic; color: var(--terra-light); display: block; }
.shop-hero-sub { max-width: 52ch; margin: 1.5rem auto 0; color: var(--sage-light); font-size: 1rem; line-height: 1.8; position: relative; z-index: 2; }

/* Season banner */
.season-banner {
  background: var(--forest); color: var(--cream);
  padding: 1.2rem 3rem;
  display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap;
}
.season-label { font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.season-items { font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .08em; color: var(--sage-light); }

/* Cart bar */
.cart-bar {
  position: sticky; top: var(--nav-height); z-index: 90;
  background: rgba(43, 66, 50, .97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196,154,58,.2);
  padding: .7rem 3rem; display: flex; align-items: center; justify-content: space-between;
}
.cart-bar-summary { font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .08em; color: var(--sage-light); }
.cart-bar-total { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--gold); display: none; }
.cart-bar-right { display: flex; align-items: center; gap: 1.5rem; }

/* What is CSA */
.what-is { background: var(--parchment); padding: 5rem 3rem; border-bottom: 1px solid rgba(107,79,53,.12); }
.what-is-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.what-is h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--forest); margin-bottom: 1rem; line-height: 1.1; }
.what-is p { font-size: .97rem; color: var(--muted); line-height: 1.85; margin-bottom: 1rem; }
.how-steps { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.how-steps li { display: flex; gap: 1.2rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--terra); color: white; font-family: 'DM Mono', monospace; font-size: .7rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .15rem; }
.what-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-badge { border-radius: 50%; object-fit: cover; width: 100%; aspect-ratio: 1; box-shadow: 0 4px 16px rgba(0,0,0,.12); transition: transform .3s; }
.mini-badge:hover { transform: scale(1.05) rotate(2deg); }

/* Shop layout */
.shop-layout { max-width: 1200px; margin: 0 auto; padding: 4rem 3rem; display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }

/* Box cards */
.boxes-section-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--forest); margin-bottom: .4rem; }
.section-sub { font-family: 'DM Mono', monospace; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.5rem; }
.box-cards { display: flex; flex-direction: column; gap: 1.5rem; }

.box-card { background: var(--parchment); border: 2px solid transparent; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; cursor: pointer; position: relative; }
.box-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.box-card.selected { border-color: var(--terra); box-shadow: 0 0 0 1px var(--terra); }

.box-card-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; padding: 1.8rem 2rem; border-bottom: 1px solid rgba(107,79,53,.1); }
.box-icon-wrap { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; }
.box-card-name { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--forest); }
.box-card-tagline { font-size: .88rem; color: var(--muted); margin-top: .2rem; }
.box-price-block { text-align: right; }
.box-price { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--terra); line-height: 1; }
.box-price-period { font-family: 'DM Mono', monospace; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.box-savings { font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: white; padding: .2rem .5rem; margin-top: .4rem; display: inline-block; }
.popular-badge { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--gold); color: white; font-family: 'DM Mono', monospace; font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .7rem; }

.box-card-body { padding: 1.5rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.box-contents h4 { font-family: 'DM Mono', monospace; font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.box-item-list { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.box-item-list li { font-size: .88rem; color: var(--text); display: flex; align-items: baseline; gap: .6rem; }
.box-item-list li::before { content: '·'; color: var(--terra); font-size: 1.2rem; flex-shrink: 0; }

.box-card-actions { padding: 0 2rem 1.8rem; display: flex; gap: 1rem; align-items: center; }
.add-btn { flex: 1; padding: .85rem; background: var(--forest); color: var(--cream); font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border: none; cursor: pointer; transition: background .2s; }
.add-btn:hover, .add-btn.added { background: var(--terra); }
.frequency-select { padding: .85rem 1rem; border: 1px solid rgba(107,79,53,.25); background: var(--cream); font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .06em; color: var(--text); cursor: pointer; }

/* Add-ons */
.addons-section { margin-top: 3rem; }
.addons-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--forest); margin-bottom: .4rem; }
.addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.addon-card { background: var(--parchment); border: 1px solid rgba(107,79,53,.12); padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: 1.2rem; cursor: pointer; transition: background .2s, border-color .2s; position: relative; }
.addon-card:hover { background: var(--cream); border-color: rgba(107,79,53,.3); }
.addon-card.selected { border-color: var(--terra); background: rgba(196,105,74,.05); }
.addon-badge-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.addon-name { font-family: 'Playfair Display', serif; font-size: .98rem; font-weight: 700; color: var(--forest); }
.addon-desc { font-size: .8rem; color: var(--muted); margin-top: .15rem; line-height: 1.45; }
.addon-price { font-family: 'DM Mono', monospace; font-size: .75rem; color: var(--terra); margin-top: .3rem; }
.addon-check { width: 22px; height: 22px; border: 2px solid rgba(107,79,53,.25); border-radius: 2px; position: absolute; top: 1.2rem; right: 1.2rem; display: flex; align-items: center; justify-content: center; font-size: .85rem; background: white; transition: all .2s; }
.addon-card.selected .addon-check { background: var(--terra); border-color: var(--terra); color: white; }

/* Pickup box */
.pickup-box { margin-top: 3rem; padding: 2rem; background: var(--parchment); border: 1px solid rgba(107,79,53,.12); }
.pickup-box h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--forest); margin-bottom: 1rem; }
.pickup-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pickup-opt { padding: 1.2rem; background: var(--cream); }
.pickup-opt-tag { font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.pickup-opt-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--forest); }
.pickup-opt-detail { font-size: .85rem; color: var(--muted); margin-top: .4rem; line-height: 1.6; }

/* Order sidebar */
.order-sidebar { background: var(--forest-dark); color: var(--cream); position: sticky; top: calc(var(--nav-height) + 52px); border: 1px solid rgba(196,154,58,.15); }
.sidebar-header { padding: 1.8rem 2rem; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 1rem; }
.sidebar-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.sidebar-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; }
.sidebar-sub { font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: .2rem; }

.sidebar-body { padding: 1.5rem 2rem; }
.empty-state { text-align: center; padding: 2rem 0; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.empty-text { font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-light); }

.order-item { display: flex; justify-content: space-between; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.07); gap: 1rem; }
.order-item-name { font-family: 'Playfair Display', serif; font-size: .95rem; font-weight: 700; color: var(--cream); }
.order-item-detail { font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-light); margin-top: .2rem; }
.order-item-price { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.order-item-remove { background: none; border: none; color: rgba(255,255,255,.2); font-size: .85rem; cursor: pointer; padding: .2rem; transition: color .2s; }
.order-item-remove:hover { color: var(--terra-light); }

.sidebar-totals { padding: 1.5rem 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.total-label { font-family: 'DM Mono', monospace; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-light); }
.total-value { font-family: 'DM Mono', monospace; font-size: .78rem; color: var(--cream); }
.grand-total-label { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--cream); }
.grand-total-value { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 900; color: var(--gold); }

.checkout-section { padding: 1.5rem 2rem 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.checkout-form label { display: block; font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-light); margin-bottom: .4rem; }
.checkout-form input,
.checkout-form select { width: 100%; padding: .75rem 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--cream); font-family: 'DM Mono', monospace; font-size: .75rem; margin-bottom: 1rem; outline: none; transition: border-color .2s; }
.checkout-form input:focus,
.checkout-form select:focus { border-color: var(--gold); }
.checkout-form input::placeholder { color: rgba(255,255,255,.25); }
.checkout-form select option { background: var(--forest-dark); color: var(--cream); }

.stripe-placeholder { margin-top: .5rem; padding: 1.5rem; background: rgba(255,255,255,.04); border: 1px dashed rgba(196,154,58,.3); text-align: center; }
.stripe-placeholder p { font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); line-height: 1.8; }
.stripe-placeholder .stripe-note-detail { color: var(--sage-light); }

.stripe-btn { width: 100%; padding: 1rem; margin-top: .5rem; background: var(--terra); color: var(--cream); font-family: 'DM Mono', monospace; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; border: none; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: .8rem; }
.stripe-btn:hover { background: var(--terra-light); }
.stripe-btn:disabled { opacity: .4; cursor: not-allowed; }
.stripe-btn-note { font-family: 'DM Mono', monospace; font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.25); text-align: center; margin-top: .8rem; line-height: 1.6; }

/* FAQ */
.faq-section { background: var(--parchment); padding: 5rem 3rem; border-top: 1px solid rgba(107,79,53,.12); }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-inner h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--forest); margin-bottom: 2.5rem; }
.faq-item { border-bottom: 1px solid rgba(107,79,53,.15); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 0; cursor: pointer; font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--forest); user-select: none; }
.faq-toggle { font-family: 'DM Mono', monospace; font-size: 1.2rem; color: var(--terra); transition: transform .25s; flex-shrink: 0; margin-left: 1rem; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .25s; font-size: .93rem; color: var(--muted); line-height: 1.8; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.4rem; }

/* Success page */
.success-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 8rem 2rem 4rem; }
.success-card { background: var(--parchment); border: 1px solid rgba(107,79,53,.12); max-width: 560px; width: 100%; padding: 3rem; text-align: center; }
.success-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.success-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 900; color: var(--forest); margin-bottom: 1rem; }
.success-subtitle { font-size: 1rem; color: var(--muted); line-height: 1.75; margin-bottom: 2rem; }
.success-detail { background: var(--cream); border-left: 3px solid var(--sage); padding: 1.2rem 1.5rem; text-align: left; margin-bottom: 2rem; }
.success-detail-label { font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.success-detail-value { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--forest); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .order-sidebar { position: static; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { height: 50vw; min-height: 260px; }
  .hero-left { padding: 7rem 1.5rem 3rem; }
  .nav-links { display: none; }
  .section { padding: 5rem 1.5rem; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.flip { direction: ltr; }
  .solar-grid { grid-template-columns: 1fr; }
  .bloom-calendar { grid-template-columns: 1fr 1fr; }
  .land-features { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .what-is-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .box-card-body { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .pickup-opts { grid-template-columns: 1fr; }
  .what-is, .faq-section { padding: 4rem 1.5rem; }
  .cart-bar { padding: .7rem 1.5rem; }
  .badge-strip { padding: 1.5rem; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES  (login, register, edit profile, change password)
═══════════════════════════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 1.5rem 4rem;
  background: var(--cream);
}

.auth-card {
  background: var(--parchment);
  border: 1px solid rgba(107,79,53,.12);
  max-width: 480px; width: 100%;
  padding: 3rem 2.5rem;
}

.auth-card-wide { max-width: 680px; }

.auth-logo-wrap {
  display: flex; justify-content: center; margin-bottom: 2rem;
}
.auth-logo {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900; color: var(--forest);
  text-align: center; margin-bottom: .5rem; line-height: 1.1;
}

.auth-subtitle {
  font-size: .92rem; color: var(--muted); text-align: center;
  line-height: 1.7; margin-bottom: 2rem;
}

.auth-section-label {
  font-family: 'DM Mono', monospace;
  font-size: .63rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem; margin-top: .5rem;
}

.auth-form { display: flex; flex-direction: column; gap: 0; }

.auth-field {
  display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem;
}

.auth-field label {
  font-family: 'DM Mono', monospace;
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  padding: .8rem 1rem;
  border: 1px solid rgba(107,79,53,.2);
  background: var(--cream);
  color: var(--text);
  font-family: 'Lora', Georgia, serif; font-size: .93rem;
  outline: none; transition: border-color .2s;
  width: 100%;
}
.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus { border-color: var(--terra); }
.auth-field input::placeholder,
.auth-field textarea::placeholder { color: rgba(42,32,24,.3); }
.auth-field textarea { resize: vertical; min-height: 80px; }

.auth-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.auth-hint {
  font-size: .78rem; color: var(--muted); font-style: italic; line-height: 1.5;
}
.auth-optional { font-size: .75em; color: var(--muted); font-style: italic; }

.auth-error {
  font-family: 'DM Mono', monospace;
  font-size: .68rem; color: var(--terra);
  background: rgba(196,105,74,.08);
  border-left: 2px solid var(--terra);
  padding: .4rem .7rem;
}
.auth-error-global { margin-top: .5rem; }

.auth-submit-btn {
  width: 100%; padding: 1rem;
  background: var(--terra); color: var(--cream);
  font-family: 'DM Mono', monospace; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
  border: none; cursor: pointer; transition: background .2s;
  margin-top: .5rem;
}
.auth-submit-btn:hover { background: var(--terra-light); }

.auth-divider {
  height: 1px; background: rgba(107,79,53,.15);
  margin: 2rem 0 1.5rem;
}

.auth-footer-links {
  text-align: center;
  font-size: .88rem; color: var(--muted); line-height: 1.7;
}
.auth-footer-links a { color: var(--terra); text-decoration: none; }
.auth-footer-links a:hover { text-decoration: underline; }

/* ── Flash messages ─────────────────────────────────────────── */
.messages-container {
  position: fixed; top: calc(var(--nav-height) + .8rem);
  left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column;
  gap: .5rem; width: min(520px, calc(100vw - 2rem));
}

.flash-message {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.2rem;
  font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .06em;
  border: 1px solid transparent;
  animation: slideDown .3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flash-message.success { background: #EAF0E4; border-color: var(--sage); color: var(--forest); }
.flash-message.error   { background: #F5E4DC; border-color: var(--terra); color: #7A2810; }
.flash-message.info    { background: #E4EDF5; border-color: var(--sky);   color: #1C4060; }
.flash-message.warning { background: #F5EDDC; border-color: var(--gold);  color: #6B4800; }

.flash-close {
  background: none; border: none; cursor: pointer;
  font-size: .85rem; opacity: .5; padding: 0 .2rem;
  transition: opacity .2s; flex-shrink: 0; margin-left: 1rem;
}
.flash-close:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   PROFILE PAGE
═══════════════════════════════════════════════════════════════ */

.profile-page { padding-top: var(--nav-height); }

/* Profile hero */
.profile-hero {
  background: var(--forest-dark); color: var(--cream);
  padding: 3.5rem 3rem 3rem;
  border-bottom: 1px solid rgba(196,154,58,.12);
}
.profile-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}

.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--terra);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--cream);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(196,154,58,.3);
}

.profile-hero-text { flex: 1; min-width: 200px; }
.profile-eyebrow {
  font-family: 'DM Mono', monospace; font-size: .63rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .4rem;
}
.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900;
  color: var(--cream); line-height: 1.1; margin-bottom: .5rem;
}
.profile-meta {
  font-family: 'DM Mono', monospace; font-size: .65rem;
  letter-spacing: .08em; color: var(--sage-light); line-height: 1.6;
}

.profile-hero-actions {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.profile-edit-btn {
  color: var(--cream) !important;
  border-color: rgba(196,154,58,.4) !important;
  font-size: .7rem !important;
}

/* Layout */
.profile-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 3rem 5rem;
  display: grid; grid-template-columns: 1fr 320px; gap: 3rem;
  align-items: start;
}

/* Sections */
.profile-section { margin-bottom: 3rem; }

.profile-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.profile-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--forest);
  display: flex; align-items: center; gap: .6rem;
}
.profile-section-icon { font-size: 1.2rem; }

.profile-subsection-title {
  font-family: 'DM Mono', monospace;
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}

.profile-empty {
  background: var(--parchment); border: 1px dashed rgba(107,79,53,.2);
  padding: 2.5rem; text-align: center;
}
.profile-empty-icon { font-size: 2.5rem; margin-bottom: .8rem; opacity: .5; }
.profile-empty p { font-size: .92rem; color: var(--muted); }

/* Subscription cards */
.sub-cards { display: flex; flex-direction: column; gap: 1rem; }

.sub-card {
  background: var(--parchment);
  border: 1px solid rgba(107,79,53,.12);
  overflow: hidden; transition: box-shadow .2s;
}
.sub-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.sub-card-past { opacity: .75; }

.sub-card-header {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.4rem 1.6rem;
}
.sub-card-icon {
  font-size: 2rem; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.sub-card-info { flex: 1; }
.sub-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--forest);
}
.sub-card-meta {
  font-family: 'DM Mono', monospace;
  font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-top: .2rem;
}

.sub-status-badge {
  font-family: 'DM Mono', monospace; font-size: .6rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 2px; flex-shrink: 0;
}
.sub-status-active    { background: #EAF0E4; color: var(--forest); border: 1px solid var(--sage); }
.sub-status-paused    { background: #F5EDDC; color: #6B4800;       border: 1px solid var(--gold); }
.sub-status-past_due  { background: #F5E4DC; color: #7A2810;       border: 1px solid var(--terra); }
.sub-status-cancelled { background: rgba(107,79,53,.08); color: var(--muted); border: 1px solid rgba(107,79,53,.15); }

.sub-addons {
  padding: .6rem 1.6rem;
  border-top: 1px solid rgba(107,79,53,.08);
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.sub-addons-label {
  font-family: 'DM Mono', monospace; font-size: .6rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.sub-addon-chip {
  background: var(--cream); border: 1px solid rgba(107,79,53,.15);
  padding: .2rem .6rem; font-size: .78rem; color: var(--text);
}

.sub-pickup {
  padding: .5rem 1.6rem;
  font-size: .82rem; color: var(--muted);
  border-top: 1px solid rgba(107,79,53,.08);
}

.sub-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.6rem;
  background: rgba(107,79,53,.04);
  border-top: 1px solid rgba(107,79,53,.08);
}
.sub-since {
  font-family: 'DM Mono', monospace; font-size: .6rem;
  letter-spacing: .06em; color: var(--muted);
}
.sub-manage-link {
  font-family: 'DM Mono', monospace; font-size: .62rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--terra); text-decoration: none;
  transition: color .2s;
}
.sub-manage-link:hover { color: var(--terra-light); }

/* Favourites grid */
.fav-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.fav-card {
  background: var(--parchment); border: 1px solid rgba(107,79,53,.12);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.fav-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.1); }

.fav-card-icon {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.fav-card-badge-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}

.fav-card-body { padding: 1rem 1.2rem; flex: 1; }
.fav-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--forest); margin-bottom: .2rem;
}
.fav-card-price {
  font-family: 'DM Mono', monospace; font-size: .68rem;
  color: var(--terra); letter-spacing: .06em; margin-bottom: .3rem;
}
.fav-card-tagline { font-size: .82rem; color: var(--muted); line-height: 1.5; }

.fav-card-actions {
  padding: .8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(107,79,53,.1);
}
.fav-shop-btn {
  font-size: .65rem !important; padding: .5rem 1rem !important;
}
.fav-remove-btn {
  background: none; border: 1px solid rgba(196,105,74,.25);
  color: var(--terra); font-size: 1rem; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.fav-remove-btn:hover { background: var(--terra); color: var(--cream); }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar-card {
  background: var(--parchment); border: 1px solid rgba(107,79,53,.12);
  padding: 1.8rem; margin-bottom: 1.5rem;
}
.sidebar-card-dark { background: var(--forest-dark); border-color: rgba(196,154,58,.15); }

.sidebar-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; color: var(--forest);
  margin-bottom: 1.2rem;
}
.sidebar-card-dark .sidebar-card-title { color: var(--cream); }

.sidebar-card-body { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.6; }

.sidebar-detail-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .55rem 0; border-bottom: 1px solid rgba(107,79,53,.1);
  gap: 1rem;
}
.sidebar-detail-label {
  font-family: 'DM Mono', monospace; font-size: .6rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex-shrink: 0;
}
.sidebar-detail-value { font-size: .88rem; color: var(--text); text-align: right; }

.sidebar-edit-link {
  display: block; margin-top: 1.2rem;
  font-family: 'DM Mono', monospace; font-size: .65rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--terra); text-decoration: none; transition: color .2s;
}
.sidebar-edit-link:hover { color: var(--terra-light); }

/* Browse & Save list */
.browse-list { display: flex; flex-direction: column; gap: 0; }

.browse-item {
  display: flex; align-items: center; gap: .9rem;
  padding: .75rem 0; border-bottom: 1px solid rgba(107,79,53,.1);
}
.browse-item:last-child { border-bottom: none; }
.browse-item-icon { font-size: 1.3rem; flex-shrink: 0; width: 28px; text-align: center; }
.browse-item-badge {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.browse-item-info { flex: 1; min-width: 0; }
.browse-item-name { font-size: .9rem; font-weight: 500; color: var(--text); }
.browse-item-price {
  font-family: 'DM Mono', monospace; font-size: .6rem;
  letter-spacing: .06em; color: var(--muted);
}

.browse-separator {
  font-family: 'DM Mono', monospace; font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: .8rem 0 .4rem;
  border-bottom: 1px solid rgba(107,79,53,.1);
}

/* ♥ heart buttons */
.fav-heart-btn, .shop-heart-btn {
  background: none; border: 1px solid rgba(107,79,53,.2);
  color: rgba(107,79,53,.3); font-size: 1rem; cursor: pointer;
  width: 32px; height: 32px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: color .2s, background .2s, border-color .2s;
}
.fav-heart-btn:hover, .shop-heart-btn:hover {
  color: var(--terra); border-color: var(--terra);
}
.fav-heart-btn.is-fav, .shop-heart-btn.is-fav {
  color: var(--terra); border-color: var(--terra);
  background: rgba(196,105,74,.08);
}
.fav-heart-btn:disabled, .shop-heart-btn:disabled { opacity: .4; cursor: wait; }

/* Shop page inline heart */
.shop-heart-btn {
  margin-top: .5rem;
  width: 100%;
  border-radius: 0;
  font-size: .85rem; letter-spacing: .06em;
}
.shop-heart-btn::after { content: " Save"; font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.shop-heart-btn.is-fav::after { content: " Saved"; }

/* Sidebar action links */
.sidebar-action-link {
  display: block; padding: .7rem 1rem;
  background: rgba(255,255,255,.05); color: var(--sage-light);
  font-family: 'DM Mono', monospace; font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; transition: background .2s, color .2s;
  border: 1px solid rgba(255,255,255,.06);
}
.sidebar-action-link:hover { background: rgba(255,255,255,.1); color: var(--cream); }
.sidebar-action-signout { color: var(--terra-light) !important; border-color: rgba(196,105,74,.25) !important; }
.sidebar-action-signout:hover { background: rgba(196,105,74,.15) !important; }

/* Nav auth area */
.nav-auth {
  display: flex; align-items: center; gap: .6rem; margin-left: 1.5rem; flex-shrink: 0;
}
.nav-auth-link {
  font-family: 'DM Mono', monospace; font-size: .63rem;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; transition: color .2s;
}
.nav-auth-signin { color: var(--sage-light); }
.nav-auth-signin:hover { color: var(--cream); }
.nav-auth-join {
  color: var(--forest-dark); background: var(--gold);
  padding: .4rem .9rem; transition: background .2s;
}
.nav-auth-join:hover { background: var(--terra-light); color: var(--cream); }
.nav-auth-profile {
  display: flex; align-items: center; gap: .6rem; color: var(--sage-light);
}
.nav-auth-profile:hover { color: var(--cream); }
.nav-auth-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--terra); color: var(--cream);
  font-family: 'Playfair Display', serif; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-auth-name {
  font-family: 'DM Mono', monospace; font-size: .63rem; letter-spacing: .08em;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — profile page
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .profile-layout { grid-template-columns: 1fr; padding: 2rem 1.5rem 4rem; }
  .profile-hero { padding: 2.5rem 1.5rem 2rem; }
  .profile-hero-inner { flex-wrap: wrap; }
  .profile-hero-actions { width: 100%; }
}

@media (max-width: 600px) {
  .auth-field-row { grid-template-columns: 1fr; }
  .auth-card { padding: 2rem 1.5rem; }
  .fav-grid { grid-template-columns: 1fr; }
  .profile-avatar { width: 56px; height: 56px; font-size: 1.2rem; }
  .nav-auth-name { display: none; }
}
