/* ── FONTS ────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

/* ── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Drenio Design System ── */
  --fc-forest:    #1A5C38;   /* Primär — Buttons, Preise, aktive Nav */
  --fc-meadow:    #2D7D4F;   /* Sekundär — Gradient-Akzent */
  --fc-mist:      #E8F4EE;   /* Hintergrund-Grün — Badges, Hover */
  --fc-sprout:    #C0DD97;   /* Timeline-Linie, Progress-Bar */
  --fc-harvest:   #E8690A;   /* Akzent — Delivery-Header, Bring to Market */
  --fc-wheat:     #FAEEDA;   /* Hintergrund-Orange — Pending-Badges */
  --fc-border:    rgba(0,0,0,0.08);

  /* ── Legacy (behalten für Rückwärtskompatibilität) ── */
  --green-dark:   #1a5c1a;
  --green:        #2d6a2d;
  --green-mid:    #4caf50;
  --green-light:  #e8f5e9;
  --green-pale:   #f1f8f1;
  --blue:         #1565c0;
  --orange:       #f57c00;
  --red:          #d32f2f;
  --gold:         #f9a825;

  --bg:           #f4f7f4;
  --surface:      #ffffff;
  --surface-2:    #f8faf8;
  --border:       #e4ebe4;

  --text-1:       #1a2e1a;
  --text-2:       #4a5e4a;
  --text-3:       #8a9e8a;

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);

  --nav-h:        64px;
  --header-h:     56px;
}

html, body {
  /* TWA / PWA: feel native, not browser-like.
     pan-y: vertical scroll only — no horizontal page swipe.
     overscroll-behavior:none: kill the rubber-band bounce + pull-to-refresh.
     DO NOT add overflow rules here — keep them targeted to specific page
     containers. An unscoped `@media (max-width: 700px) { html, body
     { overflow: hidden } }` killed mobile scroll across the whole app
     for a day in 2026-05. Lesson: anything that touches html/body in
     a mobile media query must be page-scoped via :has() or a body class. */
  touch-action: pan-y;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

/* ── HEADER ──────────────────────────────────────────────────────────────── */
header {
  background: var(--green-dark);
  color: white;
  padding: 0 16px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
header h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  vertical-align: middle;
}

.navbar-back-link:hover {
  background: rgba(255,255,255,0.12);
}

.navbar-back-link svg {
  width: 18px;
  height: 18px;
}

.navbar-back-link-tight {
  margin-right: 0;
}

nav { display: none; } /* Hidden — replaced by bottom nav */

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.user-name {
  font-size: 0.82rem;
  opacity: 0.9;
  font-weight: 500;
}
.back-btn {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  font-weight: 500;
}
.back-btn:hover { color: white; }
.location-badge {
  background: rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
}

/* ── BOTTOM NAVIGATION ────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 300;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 8px 4px;
  transition: color 0.15s;
  position: relative;
}
.bottom-nav a.active { color: var(--green); }
.bottom-nav a .nav-icon {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.15s;
}
.bottom-nav a.active .nav-icon { transform: scale(1.12); }
.bottom-nav a .nav-badge {
  position: absolute;
  top: -4px;
  right: -10px;
  background: var(--red);
  color: white;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  line-height: 1.3;
}

/* ── MAIN CONTENT ─────────────────────────────────────────────────────────── */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 14px calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.top-bar h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
}

.plant-top-bar-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dashboard-new-plant-mobile {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-h) + 18px);
  z-index: 350;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(45,106,45,0.28);
}

.dashboard-new-plant-mobile:active {
  transform: scale(0.98);
}

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  padding: 11px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
  min-height: 44px;
  letter-spacing: 0.1px;
}
.btn:active { transform: scale(0.97); }
.btn-green  { background: var(--green); color: white; }
.btn-green:hover { background: var(--green-dark); }
.btn-blue   { background: var(--blue); color: white; }
.btn-danger { background: var(--red); color: white; }
.btn-full   { width: 100%; margin-top: 8px; }
.btn-sm     { padding: 7px 14px; font-size: 0.82rem; min-height: 36px; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}
.btn-outline:hover { background: var(--green-light); }

/* ── CARDS (Plant / Listing) ──────────────────────────────────────────────── */
.plant-grid { display: flex; flex-direction: column; gap: 12px; }
.plant-card-wrap { display: flex; flex-direction: column; gap: 0; }
.plant-card-nudge { border-left: 3px solid #f9a825 !important; }
.plant-nudge { font-size: 0.75rem; margin-top: 3px; display: block; }
.plant-nudge-warn { color: #f57c00; }
.plant-nudge-ok { color: #2d6a2d; }
.plant-stats { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.plant-stat { font-size: 0.75rem; color: #888; }
.plant-market-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #fffde7, #fff8e1);
  color: #e65100; font-size: 0.88rem; font-weight: 700;
  border: 1.5px solid #ffcc02; border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.plant-market-cta:hover { background: #fff8e1; }
.plant-market-cta::after { content: " →"; opacity: 0.6; }

/* ── FARMER DASHBOARD GREETING ────────────────────────────────────────────── */
.dash-greeting {
  background: var(--surface); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.dash-greeting-text { font-size: 1.1rem; color: var(--text-1); }
.dash-greeting-sub { font-size: 0.82rem; color: var(--text-3); margin-top: 3px; }

.dash-messages-banner {
  display: flex; align-items: center; gap: 12px;
  background: #e3f2fd; border: 1.5px solid #90caf9;
  border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 12px; text-decoration: none; color: inherit;
}
.dash-messages-icon { font-size: 1.4rem; flex-shrink: 0; }
.dash-messages-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.dash-messages-text strong { font-size: 0.9rem; color: #1565c0; }
.dash-messages-text span { font-size: 0.78rem; color: #555; }
.dash-messages-arrow { font-size: 1.3rem; color: #90caf9; }

.dash-adoptions-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.dash-adoption-chip {
  background: #e8f5e9; color: #2d6a2d; border-radius: 20px;
  padding: 5px 12px; font-size: 0.78rem; font-weight: 600;
}

/* ── MARKET CARD (plant detail) ───────────────────────────────────────────── */
.market-card { border-left: 4px solid #f9a825 !important; }
.market-card-header {
  display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid #fff3e0;
}
.market-card-header span:first-child { font-size: 1.05rem; font-weight: 700; color: #e65100; }
.market-card-sub { font-size: 0.78rem; color: #795548; }
.market-listed-badge { font-size: 0.85rem; color: #2d6a2d; font-weight: 600; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.btn-market {
  background: #f9a825; color: #fff; font-weight: 700;
  border: none; border-radius: var(--radius); padding: 13px;
  font-size: 1rem; cursor: pointer; transition: background 0.15s;
}
.btn-market:hover { background: #f57f17; }

.plant-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.15s;
  min-height: 76px;
}
.plant-card:active { transform: scale(0.985); background: var(--surface-2); }
.listing-card { border-left: 3px solid var(--orange); }
.plant-card:not(.listing-card) { border-left: 3px solid var(--green-mid); }

.plant-icon { font-size: 2rem; flex-shrink: 0; }
.plant-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.plant-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.plant-info strong { font-size: 0.95rem; font-weight: 600; }
.plant-type {
  font-size: 0.75rem;
  color: var(--green);
  background: var(--green-light);
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
  font-weight: 500;
}
.plant-date { font-size: 0.75rem; color: var(--text-3); }
.arrow { color: var(--border); font-size: 1.2rem; flex-shrink: 0; }
.muted { color: var(--text-3); font-size: 0.88rem; }

/* ── FORM CARD ────────────────────────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.form-card h3 {
  color: var(--text-1);
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 700;
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--surface);
  color: var(--text-1);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,45,0.1);
}

/* Event type buttons */
.event-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.event-type-btn { cursor: pointer; }
.event-type-btn input[type="radio"] { display: none; }
.event-type-btn span {
  display: block;
  padding: 9px 4px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-size: 0.78rem;
  background: var(--surface);
  transition: all 0.15s;
  font-weight: 500;
}
.event-type-btn input:checked + span {
  border-color: var(--color);
  background: var(--color);
  color: white;
  font-weight: 700;
}

/* Photo upload */
.photo-upload { display: flex; flex-direction: column; gap: 8px; }
.photo-upload input[type="file"] { display: none; }
.photo-label {
  display: block;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  text-align: center;
  color: var(--text-2);
  transition: border-color 0.15s;
}
.photo-label:hover { border-color: var(--green); color: var(--green); }
#photo-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--green-mid);
}

/* ── TIMELINE ─────────────────────────────────────────────────────────────── */
.timeline-section h3 { color: var(--text-1); margin-bottom: 14px; font-size: 1rem; font-weight: 700; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-mid), var(--border));
}

.timeline-item { position: relative; margin-bottom: 14px; }
.timeline-dot {
  position: absolute;
  left: -24px; top: 14px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2.5px solid white;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
}
.timeline-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.timeline-header { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.event-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  color: white;
  font-size: 0.76rem;
  font-weight: 700;
  width: fit-content;
}
.timeline-meta { font-size: 0.74rem; color: var(--text-3); }
.timeline-notes { font-size: 0.88rem; color: var(--text-2); line-height: 1.5; }
.timeline-photo { margin-top: 8px; }
.timeline-photo img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ── LANDING PAGE ─────────────────────────────────────────────────────────── */
.landing-body {
  background: linear-gradient(160deg, #0d3b0d 0%, #1a5c1a 40%, #2d8b2d 100%);
  min-height: 100vh;
}

.landing-hero {
  /* Block layout (NOT flex) so tall content stays scrollable. Visual
     "centering" comes from generous symmetric padding instead. Bottom
     padding leaves room for the fixed cookie banner. */
  min-height: 100vh;
  box-sizing: border-box;
  padding: 32px 20px 120px;
  text-align: center;
}
.landing-content {
  text-align: center;
  color: white;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.landing-logo { font-size: 4.5rem; margin-bottom: 10px; }
.landing-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.landing-subtitle {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.landing-roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
@media (min-width: 560px) { .landing-roles-3 { grid-template-columns: repeat(3, 1fr); } }

.role-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  backdrop-filter: blur(12px);
  transition: background 0.2s, transform 0.2s;
}
.role-card:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.role-icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.role-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.role-card p { font-size: 0.82rem; opacity: 0.75; margin-bottom: 18px; line-height: 1.55; }

.landing-login { font-size: 0.88rem; opacity: 0.75; margin-top: 8px; }
.landing-login a { color: white; font-weight: 700; text-decoration: underline; opacity: 1; }

/* ── AUTH PAGES ───────────────────────────────────────────────────────────── */
.auth-body {
  background: linear-gradient(160deg, #0d3b0d, #1a5c1a);
  /* Block layout (NOT flex) so the form is always scrollable on small
     phones. Bottom padding leaves room for the fixed cookie banner. */
  min-height: 100vh;
  box-sizing: border-box;
  padding: 32px 20px 120px;
}
.auth-card { margin: 0 auto; }
.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { font-size: 2.8rem; text-align: center; margin-bottom: 6px; }
.auth-card h2 { text-align: center; color: var(--green); margin-bottom: 24px; font-size: 1.3rem; font-weight: 700; }
.auth-switch { text-align: center; font-size: 0.85rem; color: var(--text-3); margin-top: 18px; }
.auth-switch a { color: var(--green); font-weight: 700; }

.role-toggle { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 18px; }
.role-toggle-btn { cursor: pointer; }
.role-toggle-btn input { display: none; }
.role-toggle-btn span {
  display: block;
  padding: 10px 6px;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  transition: all 0.15s;
  font-weight: 500;
}
.role-toggle-btn input:checked + span {
  border-color: var(--green);
  background: var(--green-light);
  font-weight: 700;
  color: var(--green-dark);
}

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 14px; font-weight: 500; }
.alert-error   { background: #fdecea; color: #b71c1c; border-left: 3px solid #d32f2f; }
.alert-success { background: var(--green-light); color: #1b5e20; border-left: 3px solid var(--green-mid); }

/* ── TINDER CARDS ─────────────────────────────────────────────────────────── */
.browse-main { max-width: 440px !important; }
.browse-hint { text-align: center; color: var(--text-3); font-size: 0.84rem; margin-bottom: -8px; }

#card-stack {
  position: relative;
  height: 580px;
}

.tinder-card {
  position: absolute;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  transform: scale(0.93) translateY(20px);
  pointer-events: none;
}
.tinder-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
  z-index: 10;
}
.tinder-card.behind {
  opacity: 0.55;
  transform: scale(0.95) translateY(12px);
  z-index: 5;
}
.tinder-card.fly-left {
  transform: translateX(-130%) rotate(-15deg) !important;
  opacity: 0 !important;
}
.tinder-card.fly-right {
  transform: translateX(130%) rotate(15deg) !important;
  opacity: 0 !important;
}

.card-photo {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: var(--green-light);
}
.card-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, var(--green-light), #c8e6c9);
}

.card-body { padding: 16px; }
.card-info { margin-bottom: 14px; }
.card-info h2 { font-size: 1.15rem; color: var(--text-1); margin-bottom: 4px; font-weight: 700; }
.card-plant { font-size: 0.84rem; color: var(--text-2); margin-bottom: 4px; }
.card-farmer { font-size: 0.82rem; color: var(--green); font-weight: 600; margin-bottom: 6px; }
.card-bio { font-size: 0.8rem; color: var(--text-3); margin-bottom: 6px; font-style: italic; }
.card-desc { font-size: 0.84rem; color: var(--text-2); margin-bottom: 8px; line-height: 1.45; }
.card-stats { display: flex; gap: 6px; flex-wrap: wrap; }

.stat-chip {
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  color: var(--text-2);
  border: 1px solid var(--border);
  font-weight: 500;
}

.card-actions { display: flex; gap: 10px; }
.btn-skip, .btn-adopt {
  flex: 1;
  padding: 13px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 48px;
}
.btn-skip { background: var(--surface-2); color: var(--text-3); border: 2px solid var(--border); }
.btn-skip:active { transform: scale(0.97); }
.btn-adopt { background: linear-gradient(135deg, var(--green), var(--green-mid)); color: white; box-shadow: 0 4px 16px rgba(45,106,45,0.3); }
.btn-adopt:active { transform: scale(0.97); }

.no-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  color: var(--text-3);
  font-size: 1rem;
  text-align: center;
}

/* ── FARMER INFO CARD ─────────────────────────────────────────────────────── */
.farmer-info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-mid);
  flex-wrap: wrap;
}
.farmer-avatar { font-size: 2.8rem; flex-shrink: 0; }
.farmer-bio-text { font-size: 0.82rem; color: var(--text-3); margin-top: 4px; font-style: italic; }
.adoption-info { display: flex; flex-direction: column; gap: 4px; margin-left: auto; align-items: flex-end; }

/* ── MISC ─────────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.empty-state p { font-size: 0.95rem; }
.empty-state .empty-illo {
  width: 220px;
  max-width: 70%;
  height: auto;
}
.empty-state.spaced { margin: 40px 12px; }
.empty-state.spaced-sm { margin: 32px 12px; }

/* ── CHAT — shared header back-button + customer chat header avatar ───────── */

/* Used in customer/chat + farmer/chat — back-pointing arrow to the chat list. */
.fc-chat-back-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.08);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: #16a34a;
  flex-shrink: 0;
}
.fc-chat-header-title {
  font-size: 15px;
}
.fc-chat-header-sub {
  font-size: 11px;
}
.fc-chat-header-row {
  display: flex; align-items: center; gap: 4px;
}
.fc-chat-header-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #1a5c38; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.fc-chat-header-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.fc-chat-view-plant-link {
  font-size: 0.72rem;
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
}
.fc-bubble-tick { font-size: 0.7rem; letter-spacing: -2px; }
.fc-bubble-mine .fc-bubble-tick { color: rgba(255,255,255,0.6); }
.fc-chat-bubble-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.fc-chat-reload-hint {
  text-align: center;
  padding: 6px 0 2px;
  font-size: 11px; color: #bbb;
  font-family: 'DM Sans', sans-serif;
}

/* Flash-toast (fixed at top, used by all three chat pages) */
.fc-chat-flash-wrap {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: 90%;
  max-width: 400px;
}
.fc-chat-flash-wrap.below-dc-header { top: 120px; }
.fc-chat-flash {
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  text-align: center;
  background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0;
}
.fc-chat-flash.error {
  background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
}

/* ── DELIVERER CHAT (multi-party, role-badged, doubles up below topbar) ──── */

.dc-header {
  position: fixed; top: 56px; left: 0; right: 0;
  background: #fff;
  border-bottom: 0.5px solid var(--fc-border, rgba(0,0,0,0.08));
  z-index: 90;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.dc-back-btn {
  display: flex; align-items: center;
  color: var(--fc-forest, #1a5c38);
  padding: 4px 0;
  flex-shrink: 0;
}
.dc-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--fc-forest, #1a5c38);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.dc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dc-info { flex: 1; min-width: 0; }
.dc-name {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700;
  color: #1a2e1a;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.dc-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 2px;
}
.dc-role-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}
.dc-role-badge.farmer   { background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38); }
.dc-role-badge.customer { background: #e3f2fd; color: #1565c0; }
.dc-phone {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: #aaa;
}
.dc-phone a {
  color: var(--fc-forest, #1a5c38);
  text-decoration: none;
  font-weight: 600;
}

.dc-messages {
  padding: 116px 12px 90px;
  display: flex; flex-direction: column;
  gap: 8px;
  min-height: 100vh;
  background: #f5f9f5;
}
.dc-date-divider {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: #bbb;
  margin: 8px 0;
}

.dc-row {
  display: flex; align-items: flex-end; gap: 6px;
}
.dc-row.mine { flex-direction: row-reverse; }
.dc-row-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #ddd; color: #666;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px; font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.dc-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dc-bubble-wrap {
  max-width: 72%;
  display: flex; flex-direction: column;
}
.dc-row.mine .dc-bubble-wrap { align-items: flex-end; }
.dc-bubble {
  padding: 9px 13px;
  border-radius: 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.dc-row.theirs .dc-bubble {
  background: #fff; color: #1a1a1a;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.dc-row.mine .dc-bubble {
  background: var(--fc-forest, #1a5c38); color: #fff;
  border-bottom-right-radius: 4px;
}
.dc-bubble-time {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; color: #bbb;
  margin-top: 3px;
  padding: 0 4px;
}

.dc-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px;
  text-align: center;
}
.dc-empty-icon { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.4; }
.dc-empty-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: #aaa;
  line-height: 1.5;
}

.dc-input-bar {
  position: fixed; bottom: 60px; left: 0; right: 0;
  background: #fff;
  border-top: 0.5px solid var(--fc-border, rgba(0,0,0,0.08));
  padding: 10px 12px;
  display: flex; gap: 8px; align-items: center;
}
.dc-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  background: #fafafa;
}
.dc-input:focus {
  border-color: var(--fc-forest, #1a5c38);
  background: #fff;
}
.dc-send-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--fc-forest, #1a5c38);
  color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.dc-send-btn:active { opacity: 0.8; }
.danger-zone { border-top: 1px solid var(--border); padding-top: 14px; text-align: right; }

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}
#lightbox-img { max-width: 95vw; max-height: 92vh; border-radius: var(--radius-sm); object-fit: contain; }

/* ── NOTIFICATIONS ────────────────────────────────────────────────────────── */
.notif-bell {
  position: relative;
  font-size: 1.2rem;
  text-decoration: none;
  line-height: 1;
  padding: 8px;
}
.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--red);
  color: white;
  border-radius: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  border: 1.5px solid var(--green-dark);
}
.notif-card { border-left: 3px solid var(--orange); }
.notif-unread { background: #fff8e1; }

/* ── RATING BANNER ────────────────────────────────────────────────────────── */
.rating-banner {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.88rem;
  color: #7c6000;
}

/* ── STATS GRID ───────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
}
@media (min-width: 420px) {
  .profile-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--green); letter-spacing: -1px; }
.stat-label  { font-size: 0.75rem; color: var(--text-3); margin-top: 4px; font-weight: 500; }

/* ── PER-PLANT STATS ──────────────────────────────────────────────────────── */
.plant-stat-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.plant-stat-row:last-child { border-bottom: none; padding-bottom: 0; }
.plant-stat-emoji { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.plant-stat-info { flex: 1; }
.plant-stat-info strong { font-size: 0.95rem; color: var(--text-1); }
.plant-stat-details {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.plant-stat-details span { font-size: 0.78rem; color: var(--text-2); }

/* ── BAR CHART ────────────────────────────────────────────────────────────── */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar-label { font-size: 0.8rem; width: 110px; flex-shrink: 0; color: var(--text-2); }
.bar-track { flex: 1; background: var(--surface-2); border-radius: 6px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; transition: width 0.6s ease; }
.bar-count { font-size: 0.8rem; font-weight: 700; color: var(--text-2); width: 24px; text-align: right; }

/* ── RECENT EVENTS ────────────────────────────────────────────────────────── */
.recent-event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.recent-event:last-child { border-bottom: none; }
.recent-plant { font-size: 0.85rem; color: var(--text-2); flex: 1; }

/* ── RATINGS / REVIEWS ────────────────────────────────────────────────────── */
.rating-display { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.rating-big { font-size: 2.4rem; font-weight: 800; color: var(--gold); }
.stars-display { display: flex; gap: 2px; }
.star { font-size: 1.1rem; color: #ddd; }
.star.filled { color: var(--gold); }
.rating-count { font-size: 0.78rem; color: var(--text-3); }

.review-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.review-stars { color: var(--gold); font-size: 0.95rem; margin-bottom: 4px; }
.review-comment { font-size: 0.85rem; color: var(--text-2); margin-bottom: 4px; }

/* ── STAR PICKER ──────────────────────────────────────────────────────────── */
.star-picker {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
}
.star-picker input { display: none; }
.star-picker label {
  font-size: 2.2rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.1s;
}
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label { color: var(--gold); }

/* ── BADGES ───────────────────────────────────────────────────────────────── */
.new-badge {
  background: var(--orange);
  color: white;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}
.required-star { color: var(--red); }

/* ── DELIVERY CARDS ───────────────────────────────────────────────────────── */
.delivery-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
}
.delivery-pending  { border-left-color: var(--orange); }
.delivery-active   { border-left-color: var(--blue); }
.delivery-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.delivery-body { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.delivery-actions { display: flex; gap: 8px; }

.delivery-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; color: white; }
.badge-pending    { background: var(--orange); }
.badge-accepted   { background: var(--blue); }
.badge-in_transit { background: #6a1b9a; }
.badge-delivered  { background: #2e7d32; }
.badge-completed  { background: #2e7d32; }
.badge-rejected   { background: var(--red); }

.opt-chip {
  background: var(--green-light);
  color: #2e7d32;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  display: inline-block;
  margin-right: 4px;
  margin-top: 4px;
}
.delivery-options { margin-top: 6px; }

/* ── VEHICLE SELECTOR ─────────────────────────────────────────────────────── */
.vehicle-option { cursor: pointer; display: block; margin-bottom: 8px; }
.vehicle-option input[type="radio"] { display: none; }
.vehicle-option-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface-2);
  transition: all 0.15s;
}
.vehicle-option input:checked + .vehicle-option-body {
  border-color: var(--green);
  background: var(--green-light);
}
.vehicle-icon { font-size: 1.6rem; flex-shrink: 0; }
.vehicle-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.vehicle-info strong { font-size: 0.9rem; }

.co2-chip { padding: 4px 10px; border-radius: 20px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.co2-zero { background: var(--green-light); color: #2e7d32; }
.co2-low  { background: #f1f8e9; color: #558b2f; }
.co2-mid  { background: #fff8e1; color: #f57f17; }
.co2-high { background: #fdecea; color: #c62828; }

/* ── DELIVERY OPTIONS CHECKBOXES ──────────────────────────────────────────── */
.delivery-opt-label { cursor: pointer; display: block; margin-bottom: 8px; }
.delivery-opt-label input[type="checkbox"] { display: none; }
.delivery-opt-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface-2);
  transition: all 0.15s;
}
.delivery-opt-label input:checked + .delivery-opt-body {
  border-color: var(--green);
  background: var(--green-light);
}

/* ── PARTY ROW ────────────────────────────────────────────────────────────── */
.party-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.party-row:last-child { border-bottom: none; }
.party-icon { font-size: 1.6rem; flex-shrink: 0; }
.party-role {
  margin-left: auto;
  font-size: 0.74rem;
  background: var(--surface-2);
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* ── STATUS TRACKER ───────────────────────────────────────────────────────── */
.status-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.status-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 2px solid var(--border);
}
.step-done .step-circle  { background: var(--green-light); border-color: var(--green-mid); }
.step-active .step-circle { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px rgba(45,106,45,0.15); }
.step-label { font-size: 0.66rem; color: var(--text-3); text-align: center; font-weight: 500; }
.step-done .step-label  { color: var(--green); font-weight: 600; }
.step-active .step-label { color: var(--green); font-weight: 700; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; flex-shrink: 0; min-width: 16px; }
.line-done { background: var(--green-mid); }

/* ── WEATHER CARD ─────────────────────────────────────────────────────────── */
.weather-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #e3f2fd 0%, var(--green-light) 100%);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid #bbdefb;
}
.weather-icon { font-size: 2.4rem; }
.weather-info { flex: 1; }
.weather-info strong { display: block; font-size: 1rem; color: var(--blue); font-weight: 700; }
.weather-info span { font-size: 0.84rem; color: var(--text-2); }
.weather-location { font-size: 0.7rem; color: var(--text-3); text-align: right; }

/* ── PROGRESS BAR ─────────────────────────────────────────────────────────── */
.progress-track {
  background: var(--green-light);
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
}
.progress-fill {
  background: linear-gradient(90deg, var(--green-mid), var(--green-dark));
  height: 100%;
  border-radius: 20px;
  transition: width 0.8s ease;
}

/* ── PHOTO GALLERY ────────────────────────────────────────────────────────── */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.photo-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
.photo-gallery img:hover { transform: scale(1.04); opacity: 0.9; }

/* ── CHAT ─────────────────────────────────────────────────────────────────── */
.chat-box {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px 0;
}
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg-sent    { align-self: flex-end; align-items: flex-end; }
.chat-msg-received { align-self: flex-start; align-items: flex-start; }
.chat-sender { font-size: 0.7rem; color: var(--text-3); margin-bottom: 2px; }
.chat-bubble {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  border: 1px solid var(--border);
}
.chat-msg-sent .chat-bubble {
  background: var(--green);
  color: white;
  border: none;
}
.chat-time { font-size: 0.66rem; color: var(--text-3); margin-top: 2px; }
.chat-read-tick { font-size: 0.7rem; color: #aaa; margin-left: 2px; letter-spacing: -2px; }
.chat-msg-sent .chat-read-tick { color: rgba(255,255,255,0.6); }
.chat-typing {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px; font-size: 0.75rem; color: #888;
}
.typing-dots span {
  animation: typingBounce 1.2s infinite;
  display: inline-block; font-size: 1.2rem; line-height: 1;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}
.chat-online-dot { display: flex; align-items: center; }
.chat-form { display: flex; gap: 8px; }
.chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: var(--surface);
}
.chat-input:focus { border-color: var(--green-mid); }

/* ── ORDER CARD (Uber-style history) ──────────────────────────────────────── */
.order-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.order-date { font-size: 0.78rem; color: var(--text-3); font-weight: 600; }
.order-body { display: flex; gap: 14px; padding: 14px; }
.order-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--green-light);
}
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.order-details { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.order-actions { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }

/* ── LANGUAGE DROPDOWN ────────────────────────────────────────────────────── */
.lang-dropdown { position: relative; }
.lang-globe-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 1.1rem;
  padding: 4px 10px;
  cursor: pointer;
  min-height: 34px;
  transition: background 0.2s;
}
.lang-globe-btn:hover { background: rgba(255,255,255,0.25); }
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 140px;
  z-index: 200;
  overflow: hidden;
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }
.lang-option {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.lang-option:hover { background: var(--bg); }
.lang-option.active { font-weight: 600; color: var(--primary); }

/* ── USER PILL ────────────────────────────────────────────────────────────── */
.user-pill {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
}
.user-pill-name {
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 12px;
  white-space: nowrap;
}
.user-pill-name:hover { background: rgba(255,255,255,0.1); }
.user-pill-logout {
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-left: 1px solid rgba(255,255,255,0.25);
  opacity: 0.85;
}
.user-pill-logout:hover { background: rgba(255,255,255,0.1); opacity: 1; }

/* ── AVATAR DROPDOWN ──────────────────────────────────────────────────────── */
.avatar-dropdown { position: relative; }
.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #16a34a; color: #fff;
  font-weight: 700; font-size: 1rem; border: 2px solid #16a34a;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; text-decoration: none;
}
.avatar-btn:hover { background: #15803d; border-color: #15803d; }

.dash-figma-body .avatar-btn {
  background: #16a34a;
  color: #fff;
  border: 2px solid #16a34a;
}
.dash-figma-body .avatar-btn:hover {
  background: #15803d;
  border-color: #15803d;
}
.avatar-dropdown-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15); min-width: 210px; z-index: 1000;
  overflow: hidden; border: 1px solid #eee;
}
.avatar-dropdown.open .avatar-dropdown-menu { display: block; }
.avatar-dropdown-name {
  padding: 14px 16px 10px; font-weight: 700; color: #222; font-size: 0.95rem;
  border-bottom: 1px solid #f0f0f0;
}
.avatar-dropdown-item {
  display: block; padding: 11px 16px; color: #333; text-decoration: none;
  font-size: 0.9rem; transition: background 0.15s;
}
.avatar-dropdown-item:hover { background: #f5f5f5; }
.avatar-dropdown-item.active { font-weight: 600; color: #2d6a2d; }
.avatar-dropdown-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.avatar-dropdown-section {
  padding: 8px 16px 4px; font-size: 0.72rem; color: #aaa;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.avatar-dropdown-logout { color: #e53935; }
.avatar-dropdown-logout:hover { background: #fff5f5; }

/* ── SECTION TITLE ────────────────────────────────────────────────────────── */
.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  padding: 4px 0 2px;
}

/* ── GAMIFICATION ──────────────────────────────────────────────────────────── */

/* Badges strip */
.badges-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: #fff8e1;
  border: 1.5px solid #ffd54f;
  font-size: 0.8rem;
  font-weight: 600;
  color: #795548;
}

/* Plant level badges */
.level-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 4px;
}
.level-seed     { background: #e8d5b7; color: #795548; }
.level-sprout   { background: #c8e6c9; color: #2e7d32; }
.level-young    { background: #a5d6a7; color: #1b5e20; }
.level-mature   { background: #66bb6a; color: #fff; }
.level-harvest  { background: #2e7d32; color: #fff; }

/* Level card on timeline */
.level-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #e0e0e0;
}
.level-track {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.level-pip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e0e0e0;
  transition: background 0.3s;
}
.level-pip.filled { background: #4caf50; }

/* Streak badge */
.streak-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff9800, #f44336);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Push notification banner */
.push-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}
.push-banner span { flex: 1; }
.btn-close-push {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #888;
  padding: 0 4px;
}

.timeline-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.timeline-section-header h3 {
  margin-bottom: 0;
}

.floating-record-btn {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-h) + 18px);
  z-index: 350;
  box-shadow: 0 10px 24px rgba(45,106,45,0.28);
}

@media (min-width: 681px) {
  .dashboard-new-plant-mobile {
    display: none;
  }
  .floating-record-btn {
    position: static;
    right: auto;
    bottom: auto;
    z-index: auto;
    box-shadow: none;
    flex-shrink: 0;
  }
}

@media (max-width: 680px) {
  .dashboard-new-plant-desktop {
    display: none;
  }
}

/* Listing detail */
.listing-detail-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.listing-detail-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: var(--green-light);
}
.listing-detail-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}
.listing-detail-body {
  padding: 18px 16px;
}
.listing-detail-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 6px;
}
.listing-detail-subtitle {
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.listing-detail-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.listing-detail-row {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-1);
}
.listing-detail-description {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}
.listing-adopters-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adopter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adopter-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.adopter-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.adopter-avatar,
.adopter-avatar-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.adopter-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 1rem;
  border: 1px solid #cfe3d0;
}
.adopter-avatar-image {
  object-fit: cover;
  border: 1px solid #cfe3d0;
}
.adopter-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adopter-main strong {
  font-size: 0.95rem;
  color: var(--text-1);
}
.adopter-qty {
  background: #fff8e1;
  color: #a05a00;
  border: 1px solid #ffe082;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.adopter-bio {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.5;
}
.adopter-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 480px) {
  .listing-detail-photo {
    height: 220px;
  }
  .adopter-card-top {
    flex-wrap: wrap;
  }
  .adopter-qty {
    margin-left: 60px;
  }
}

header h1 {
    display: flex;
    align-items: center;
    /* Razmak između strelice i teksta postavi na 0 ili jako malo */
    gap: 2px;            
    margin: 0;
    padding: 0;
    /* Smanji slova ovde (npr. sa 1.5rem na 1.2rem ili 1.1rem) */
    font-size: 1.15rem;  
    font-weight: 600;    /* Da ostane uočljivo ali sitnije */
    min-height: 44px;    /* Stabilna visina navbara */
}

.navbar-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    /* Resetujemo sve margine i paddinge koji bi mogli da guraju tekst */
    margin: 0;
    padding: 0; 
    line-height: 0;
}

.navbar-back-link svg {
    /* Smanji i ikonicu ako su slova manja, da bi bilo proporcionalno */
    width: 20px; 
    height: 20px;
    display: block;
}

/* Ako želiš da "Drenio" tekst bude baš uz ivicu ikonice */
header h1 span {
    margin: 0;
    padding: 0;
    display: inline-block;
}

/* ── FIGMA DASHBOARD ─────────────────────────────────────────────────────── */
.dash-figma-body {
  background: linear-gradient(to bottom, #f0fdf4 0%, #ffffff 60%);
  min-height: 100dvh;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-synthesis: none;
}

.dash-figma-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
}

.dash-figma-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  gap: 16px;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .dash-figma-header-inner {
    padding: 16px 32px;
  }
}

.dash-figma-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dash-figma-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  display: block;
  line-height: 1.2;
}

.dash-figma-sub {
  font-size: 0.72rem;
  color: #6b7280;
  display: block;
}

.dash-figma-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-figma-back {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #16a34a;
  flex-shrink: 0;
}

.dash-figma-title-page {
  font-size: 16px;
}

.dash-figma-add-btn {
  display: none;
}

@media (min-width: 681px) {
  .dash-figma-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1.4;
    font-family: inherit;
  }
  .dash-figma-add-btn:hover {
    background: #15803d;
  }
  .dash-figma-add-btn svg {
    flex-shrink: 0;
  }
}

.dash-fab {
  position: fixed;
  bottom: calc(var(--nav-h, 64px) + 16px);
  right: 16px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(22,163,74,0.35);
  transition: background 0.15s, box-shadow 0.15s;
}
.dash-fab:hover {
  background: #15803d;
  box-shadow: 0 6px 20px rgba(22,163,74,0.45);
}
@media (min-width: 681px) {
  .dash-fab {
    display: none;
  }
}

.dash-figma-main {
  padding-top: calc(80px + env(safe-area-inset-top, 0px));
  padding-bottom: 100px;
  padding-left: 16px;
  padding-right: 16px;
  max-width: 1440px;
  margin: 0 auto;
  gap: 0;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .dash-figma-main {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.dash-stats-grid {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 16px 0;
}

@media (min-width: 1024px) {
  .dash-stats-grid {
    padding: 24px 0;
    gap: 16px;
  }
}

.dash-stat-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  min-width: 0;
}

@media (min-width: 681px) {
  .dash-stat-card {
    padding: 20px;
    border-radius: 16px;
  }
}

@media (min-width: 1024px) {
  .dash-stat-card {
    padding: 28px 24px;
  }
}

.dash-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.dash-stat-label {
  font-size: 0.7rem;
  color: #6b7280;
}

@media (min-width: 681px) {
  .dash-stat-label {
    font-size: 0.85rem;
  }
}

.dash-stat-icon {
  font-size: 1.1rem;
  opacity: 0.5;
}

.dash-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

@media (min-width: 681px) {
  .dash-stat-num {
    font-size: 2.8rem;
  }
}

.dash-plants-section {
  padding: 0;
}

.dash-plants-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px;
}

.dash-plant-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 681px) {
  .dash-plant-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dash-plant-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dash-plant-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
  display: block;
  transition: box-shadow 0.15s;
}

.dash-plant-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.dash-plant-photo-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  background: #f3f4f6;
  overflow: hidden;
}

.dash-plant-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dash-plant-photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: #f3f4f6;
}

.dash-published-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #16a34a;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.dash-plant-info {
  padding: 24px;
}

.dash-plant-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px;
}

.dash-plant-type {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 12px;
}

.dash-plant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dash-level-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.dash-level-seed, .dash-level-sprout {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde68a;
}

.dash-level-young, .dash-level-mature {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.dash-level-harvest {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.dash-update-count {
  font-size: 0.78rem;
  color: #9ca3af;
}

.dash-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
  font-size: 0.88rem;
  color: #4b5563;
}

.dash-price-val {
  color: #16a34a;
  font-weight: 700;
}

.dash-no-update {
  font-size: 0.82rem;
  color: #d97706;
  font-weight: 600;
  margin: 0 0 8px;
}

.dash-photo-hint {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.dash-plant-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 8px;
}

/* ── NOTIFICATIONS ────────────────────────────────────────────────────────── */
.fc-notif-list { display: flex; flex-direction: column; gap: 8px; }
.fc-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  background: #fff;
  border-radius: 11px;
  border: 0.5px solid var(--fc-border);
  border-left: 3px solid var(--fc-forest);
  text-decoration: none;
  color: var(--text-1);
  position: relative;
}
.fc-notif-general  { border-left-color: var(--fc-forest); }
.fc-notif-reservation { border-left-color: var(--fc-harvest); }
.fc-notif-rating   { border-left-color: #f9a825; }
.fc-notif-unread   { background: var(--fc-mist); }
.fc-notif-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.fc-notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fc-notif-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-1);
}
.fc-notif-count {
  display: inline-block;
  background: var(--fc-mist);
  color: var(--fc-forest);
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  padding: 1px 6px;
  border: 0.5px solid var(--fc-sprout);
}
.fc-notif-time {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text-3);
}
.fc-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fc-forest);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ── MESSAGE THREAD LIST ──────────────────────────────────────────────────── */
/* Used by farmer/customer/deliverer messages.html via _msg_macros.html. */
.msg-thread {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 0.5px solid var(--fc-border, rgba(0,0,0,0.08));
  text-decoration: none;
  transition: background 0.15s;
}
.msg-thread:active { background: #f5f9f5; }
.msg-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--fc-forest, #1a5c38); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700;
  flex-shrink: 0; overflow: hidden;
}
.msg-avatar.customer-av { background: #1565c0; }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-body { flex: 1; min-width: 0; }
.msg-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2px;
}
.msg-name {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700; color: #1a2e1a;
}
.msg-time {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: #bbb;
}
.msg-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 20px;
  display: inline-block; margin-bottom: 3px;
}
.msg-role.farmer   { background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38); }
.msg-role.customer { background: #e3f2fd; color: #1565c0; }
.msg-plant {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: var(--fc-forest, #1a5c38);
  font-weight: 600; margin-bottom: 2px;
}
.msg-preview {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: #888;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg-preview.unread { color: #333; font-weight: 600; }
.msg-unread-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--fc-forest, #1a5c38);
  flex-shrink: 0;
}

/* ── CHAT SCREEN ──────────────────────────────────────────────────────────── */
.fc-chat-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.fc-chat-plant-link {
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
}
.fc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 80px 12px 140px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: calc(100vh - 56px - 64px);
}
.fc-chat-empty {
  text-align: center;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  margin-top: 40px;
}
.fc-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}
.fc-bubble-mine { flex-direction: row-reverse; }
.fc-bubble-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fc-mist);
  color: var(--fc-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  border: 0.5px solid var(--fc-sprout);
}
.fc-bubble-wrap { display: flex; flex-direction: column; gap: 2px; max-width: 72%; }
.fc-bubble-mine .fc-bubble-wrap { align-items: flex-end; }
.fc-bubble {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  padding: 9px 13px;
  border-radius: 16px;
  word-break: break-word;
}
.fc-bubble-theirs .fc-bubble {
  background: #fff;
  color: var(--text-1);
  border: 0.5px solid var(--fc-border);
  border-bottom-left-radius: 4px;
}
.fc-bubble-mine .fc-bubble {
  background: var(--fc-forest);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.fc-bubble-time {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--text-3);
  padding: 0 4px;
}
.fc-bubble-tick { font-size: 0.7rem; letter-spacing: -2px; }
.fc-bubble-mine .fc-bubble-tick { color: rgba(255,255,255,0.6); }
.fc-chat-input-bar {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #fff;
  border-top: 0.5px solid var(--fc-border);
  z-index: 50;
}
.fc-chat-input {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border: 0.5px solid var(--fc-border);
  border-radius: 22px;
  background: var(--fc-mist);
  outline: none;
  color: var(--text-1);
}
.fc-chat-input:focus { border-color: var(--fc-forest); }
.fc-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fc-forest);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── SALES DASHBOARD ─────────────────────────────────────────────────────── */
.fc-time-filter {
  display: flex;
  gap: 6px;
  margin: 12px 12px 0;
  padding: 4px;
  background: #f0f4f0;
  border-radius: 12px;
}
.fc-time-btn {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
}
.fc-time-btn:active { transform: scale(0.97); }
.fc-time-btn:focus-visible { outline: 2px solid var(--fc-forest, #1a5c38); outline-offset: 2px; }
.fc-time-active {
  background: var(--fc-forest, #1a5c38);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,92,56,0.25);
}
.fc-sales-hero {
  margin: 12px 12px 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--fc-forest), var(--fc-meadow));
  padding: 18px 16px 14px;
  color: #fff;
}
.fc-sales-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.fc-sales-hero-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
}
.fc-sales-hero-revenue {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 6px;
}
.fc-sales-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  opacity: 0.75;
}
.fc-sales-streak {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 12px;
  white-space: nowrap;
}
.fc-sales-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 0.5px solid rgba(255,255,255,0.2);
  padding-top: 12px;
}
.fc-sales-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.fc-sales-kpi-val {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.fc-sales-kpi-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  opacity: 0.75;
}

/* Card wrapper */
.fc-sales-card {
  margin: 10px 12px 0;
  background: #fff;
  border-radius: 13px;
  border: 0.5px solid var(--fc-border);
  padding: 14px;
}
.fc-sales-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-1);
}

/* Vertical Bar Chart */
.fc-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
}
.fc-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 4px;
}
.fc-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fc-bar-fill {
  width: 70%;
  background: var(--fc-forest);
  border-radius: 4px 4px 0 0;
  min-height: 3px;
  transition: height 0.3s;
}
.fc-bar-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--text-2);
}
.fc-bar-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  color: var(--fc-forest);
  font-weight: 500;
}

/* Horizontal Bar (Best Sellers) */
.fc-hbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.fc-hbar-emoji { font-size: 18px; flex-shrink: 0; }
.fc-hbar-wrap { flex: 1; min-width: 0; }
.fc-hbar-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-hbar-track {
  height: 6px;
  background: var(--fc-mist);
  border-radius: 3px;
  overflow: hidden;
}
.fc-hbar-fill {
  height: 100%;
  background: var(--fc-forest);
  border-radius: 3px;
}
.fc-hbar-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--fc-forest);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Plant Performance Table */
.fc-perf-table { width: 100%; }
.fc-perf-header {
  display: grid;
  grid-template-columns: 1fr 40px 40px 50px;
  gap: 4px;
  padding: 6px 14px;
  background: var(--fc-mist);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fc-perf-row {
  display: grid;
  grid-template-columns: 1fr 40px 40px 50px;
  gap: 4px;
  padding: 10px 14px;
  align-items: center;
  border-top: 0.5px solid var(--fc-border);
}
.fc-perf-name-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.fc-perf-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-perf-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.fc-perf-live { background: var(--fc-mist); color: var(--fc-forest); border: 0.5px solid var(--fc-sprout); }
.fc-perf-draft { background: #f5f5f5; color: #999; border: 0.5px solid #ddd; }
.fc-perf-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-1);
  text-align: right;
}

/* Rating Section */
.fc-rating-overview {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.fc-rating-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
}
.fc-rating-num {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--fc-forest);
  line-height: 1;
}
.fc-rating-stars { font-size: 14px; }
.fc-rating-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text-2);
  text-align: center;
}
.fc-star-dist { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.fc-star-row { display: flex; align-items: center; gap: 6px; }
.fc-star-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text-2);
  width: 22px;
  flex-shrink: 0;
}
.fc-star-track {
  flex: 1;
  height: 6px;
  background: var(--fc-mist);
  border-radius: 3px;
  overflow: hidden;
}
.fc-star-fill {
  height: 100%;
  background: #f9a825;
  border-radius: 3px;
}
.fc-star-cnt {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text-2);
  width: 16px;
  text-align: right;
  flex-shrink: 0;
}

/* ── DESIGN SYSTEM — RECORD TYPE GRID ────────────────────────────────────── */
.fc-record-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fc-record-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 10px;
  border: 0.5px solid var(--fc-border);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.fc-record-type-btn input { display: none; }
.fc-record-type-btn:hover { background: var(--fc-mist); border-color: var(--fc-sprout); }
.fc-record-type-btn.fc-type-selected {
  background: var(--fc-mist);
  border-color: var(--fc-forest);
  border-width: 1.5px;
}
.fc-type-icon { font-size: 22px; line-height: 1; }
.fc-type-label { font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; color: var(--text-1); }

/* ── DESIGN SYSTEM — PHOTO UPLOAD AREA ───────────────────────────────────── */
.fc-photo-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px;
  border: 1.5px dashed var(--fc-sprout);
  border-radius: 12px;
  background: var(--fc-mist);
  cursor: pointer;
  text-align: center;
}
.fc-photo-icon { font-size: 28px; }
.fc-photo-text { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--fc-forest); }
.fc-photo-hint { font-size: 11px; color: var(--text-2); }

/* ── DESIGN SYSTEM — AI BAR ───────────────────────────────────────────────── */
.fc-ai-bar {
  margin: 12px 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fc-forest), var(--fc-meadow));
  overflow: hidden;
}
.fc-ai-bar-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.fc-ai-bar-icon { font-size: 24px; flex-shrink: 0; }
.fc-ai-bar-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fc-ai-bar-text strong { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600; color: #fff; }
.fc-ai-bar-text span { font-size: 12px; color: rgba(255,255,255,0.8); }
.fc-ai-bar-arrow { font-size: 18px; color: rgba(255,255,255,0.7); flex-shrink: 0; }
.fc-ai-status {
  padding: 8px 16px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.15);
}

/* ── DESIGN SYSTEM — CATALOG GRID ────────────────────────────────────────── */
.fc-catalog-section { margin-bottom: 16px; }
.fc-catalog-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-2);
  margin: 0 0 8px;
}
.fc-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.fc-catalog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 10px;
  border: 0.5px solid var(--fc-border);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.fc-catalog-card:hover { border-color: var(--fc-sprout); background: var(--fc-mist); }
.fc-catalog-card.fc-catalog-selected { border-color: var(--fc-forest); border-width: 1.5px; background: var(--fc-mist); }
.fc-catalog-emoji { font-size: 1.7rem; line-height: 1; }
.fc-catalog-name { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-1); font-weight: 500; line-height: 1.2; }
.fc-new-plant-form { display: flex; flex-direction: column; }
.fc-sticky-sub { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-2); }

/* ── DESIGN SYSTEM — TIMELINE ENHANCEMENTS ───────────────────────────────── */
.fc-tl-deleted {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px 10px;
}
.fc-tl-deleted-text {
  font-size: 12px;
  color: #aaa;
  font-style: italic;
}
.fc-tl-footer {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.fc-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 4px 12px;
  min-height: 44px;
  border-radius: 22px;
  border: 0.5px solid var(--fc-border);
  background: #fff;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
}
.fc-like-btn:active { transform: scale(0.96); }
.fc-like-btn:focus-visible { outline: 2px solid var(--fc-forest, #1a5c38); outline-offset: 2px; }
.fc-like-btn.fc-like-active {
  border-color: var(--fc-sprout);
  background: var(--fc-mist);
  color: var(--fc-forest);
  font-weight: 500;
}

/* ── DESIGN SYSTEM — SECTION HEADER ──────────────────────────────────────── */
.fc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 8px;
}
.fc-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
}
.fc-section-add-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fc-forest);
  background: var(--fc-mist);
  border: 0.5px solid var(--fc-sprout);
  border-radius: 8px;
  padding: 6px 12px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

/* ── DESIGN SYSTEM — PLANT GRID (2 cols, photo-background) ───────────────── */
.fc-plant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 12px;
}
.fc-plant-card {
  position: relative;
  border-radius: 13px;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--fc-mist);
  background-size: cover;
  background-position: center;
  border: 0.5px solid var(--fc-border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.fc-plant-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 2;
}
.fc-badge-live {
  background: var(--fc-forest);
  color: #fff;
}
/* Draft = solid, readable status (not a translucent grey blob that reads as a
   render glitch). Wheat/harvest tokens give it gentle "needs attention" weight. */
.fc-badge-draft {
  background: var(--fc-wheat);
  color: var(--fc-harvest);
}
.fc-plant-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  padding: 20px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fc-plant-emoji-fallback {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 8px;
}
.fc-plant-name {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}
.fc-plant-stage {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}
.fc-plant-quick-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1.5px solid rgba(255,255,255,0.9);
  color: #fff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}
.fc-plant-quick-add:active {
  transform: scale(0.92);
  background: rgba(0,0,0,0.75);
}
/* Photo-less draft cards: a fresh farmer's normal state. Replace the black
   bottom-gradient (which reads as a broken image) with a soft green wash, a
   centered product emoji, and a forest-tinted footer so the white text stays
   readable. */
.fc-plant-card--empty {
  background: linear-gradient(160deg, #F4FAF6 0%, var(--fc-mist) 100%);
}
.fc-plant-card--empty .fc-plant-emoji-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 0;
  opacity: 0.6;
  pointer-events: none;
}
.fc-plant-card--empty .fc-plant-overlay {
  background: linear-gradient(to top, rgba(26,92,56,0.85) 0%, rgba(26,92,56,0.15) 55%, transparent 100%);
}

/* ── DESIGN SYSTEM — CLARITY BANNER ──────────────────────────────────────── */
.clarity-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 11px;
  margin: 10px 12px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 1.5;
}
.clarity-banner.cl-ok {
  background: var(--fc-mist);
  border: 0.5px solid var(--fc-sprout);
}
.clarity-banner.cl-act {
  background: var(--fc-wheat);
  border: 0.5px solid #FAC775;
}
.clarity-banner.cl-info {
  background: var(--fc-mist);
  border: 0.5px solid var(--fc-sprout);
}
.clarity-banner .cl-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.clarity-banner .cl-text strong {
  display: block;
  font-weight: 500;
  margin-bottom: 1px;
  font-size: 12px;
}
.clarity-banner .cl-text span {
  font-size: 12px;
  color: var(--text-2);
}

/* ── DESIGN SYSTEM — STICKY HEADER ───────────────────────────────────────── */
.fc-sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 0.5px solid var(--fc-border);
}
.fc-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--fc-mist);
  color: var(--fc-forest);
  text-decoration: none;
  flex-shrink: 0;
}
.fc-sticky-title {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fc-sticky-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── DESIGN SYSTEM — PLANT DETAIL MAIN ───────────────────────────────────── */
.fc-plant-detail-main {
  padding-top: calc(90px + env(safe-area-inset-top, 0px));
  padding-bottom: 80px;
}

/* ── DESIGN SYSTEM — PUBLISH PANEL ───────────────────────────────────────── */
.fc-publish-panel {
  margin: 10px 12px;
  border-radius: 13px;
  padding: 14px;
  background: #fff;
}
.fc-panel-live {
  border: 1.5px solid var(--fc-forest);
}
.fc-panel-draft {
  border: 1.5px solid var(--fc-harvest);
}
.fc-panel-live-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.fc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fc-forest);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.fc-panel-live-title {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fc-forest);
  flex: 1;
}
.fc-panel-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fc-forest);
}
.fc-panel-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 10px;
}
.fc-panel-draft-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}
.fc-panel-draft-title {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fc-harvest);
}
.fc-panel-draft-sub {
  font-size: 12px;
  color: var(--text-2);
}
.fc-draft-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fc-form-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fc-form-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-2);
}
.fc-form-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 9px 10px;
  border: 0.5px solid var(--fc-border);
  border-radius: 9px;
  background: #fff;
  color: var(--text-1);
  outline: none;
  width: 100%;
}
.fc-form-input:focus {
  border-color: var(--fc-harvest);
}
.fc-publish-btn {
  width: 100%;
  background: var(--fc-harvest);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 2px;
}

/* ── DESIGN SYSTEM — RESERVATION CARDS ───────────────────────────────────── */
.fc-reservations-title {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.fc-reservation-card {
  background: var(--fc-mist);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 0.5px solid var(--fc-sprout);
}
.fc-reservation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.fc-reservation-customer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fc-customer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fc-forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}
.fc-customer-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  display: block;
}
.fc-customer-city {
  font-size: 11px;
  color: var(--text-2);
}
.fc-reservation-qty {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fc-forest);
  background: #fff;
  padding: 3px 9px;
  border-radius: 20px;
  border: 0.5px solid var(--fc-sprout);
}
.fc-reservation-actions {
  display: flex;
  gap: 6px;
}
.fc-btn-msg {
  flex: 2;
  text-align: center;
  padding: 8px 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
  color: var(--fc-forest);
  border: 0.5px solid var(--fc-sprout);
  text-decoration: none;
  cursor: pointer;
}
.fc-btn-confirm {
  flex: 2;
  padding: 8px 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  background: var(--fc-forest);
  color: #fff;
  border: none;
  cursor: pointer;
}
.fc-btn-decline {
  flex: 1;
  padding: 8px 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
  color: var(--red, #c0392b);
  border: 0.5px solid var(--red, #f5c0bb);
  cursor: pointer;
}
.fc-btn-msg:active, .fc-btn-confirm:active, .fc-btn-decline:active { transform: scale(0.97); }
.fc-btn-msg:focus-visible, .fc-btn-confirm:focus-visible, .fc-btn-decline:focus-visible {
  outline: 2px solid var(--fc-forest, #1a5c38); outline-offset: 2px;
}

/* ── DESIGN SYSTEM — FAB (Floating Action Button) ────────────────────────── */
.fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  background: var(--fc-forest, #1A5C38);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 20px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 20px rgba(92,122,79,0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(92,122,79,0.55);
}
.fab:active { transform: scale(0.97); }

/* ── 2.12 FARMER PROFILE ───────────────────────────────────────────────────── */
.fc-profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 20px;
  gap: 10px;
}
.fc-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--fc-forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.fc-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fc-profile-name {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fc-forest);
  text-align: center;
}
.fc-profile-city {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
}
.fc-profile-badges {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}
.fc-profile-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: var(--fc-mist);
  color: var(--fc-forest);
  border-radius: 20px;
  padding: 4px 12px;
}
.fc-profile-menu {
  margin: 0 12px 24px;
  background: #fff;
  border-radius: 14px;
  border: 0.5px solid var(--fc-border);
  overflow: hidden;
}
.fc-profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  text-decoration: none;
  color: #222;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 0.5px solid var(--fc-border);
  transition: background 0.1s;
}
.fc-profile-menu-item:last-child {
  border-bottom: none;
}
.fc-profile-menu-item:active {
  background: var(--fc-mist);
}
.fc-profile-menu-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
}
.fc-profile-menu-chevron {
  margin-left: auto;
  color: #bbb;
  font-size: 16px;
}
.fc-profile-menu-item.danger {
  color: #c0392b;
}

/* ── 2.13 PROFILE EDIT ─────────────────────────────────────────────────────── */
.fc-edit-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 20px 0 24px;
}
.fc-edit-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--fc-forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 700;
  overflow: hidden;
}
.fc-edit-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fc-edit-avatar-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--fc-forest);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.fc-form-section {
  margin: 0 12px 16px;
  background: #fff;
  border-radius: 14px;
  border: 0.5px solid var(--fc-border);
  overflow: hidden;
}
.fc-form-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  padding: 12px 16px 6px;
}
.fc-form-row {
  padding: 10px 16px;
  border-bottom: 0.5px solid var(--fc-border);
}
.fc-form-row:last-child {
  border-bottom: none;
}
.fc-form-row label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.fc-form-row input,
.fc-form-row textarea {
  width: 100%;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #222;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}
.fc-form-row textarea {
  resize: none;
  min-height: 72px;
}
.fc-cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
}
.fc-cert-pill {
  padding: 6px 14px;
  border: 1.5px solid var(--fc-border);
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.fc-cert-pill.on {
  background: var(--fc-forest);
  color: #fff;
  border-color: var(--fc-forest);
}
.fc-save-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 8px 12px 32px;
  padding: 14px;
  background: var(--fc-forest);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* ── 2.14 SETTINGS ─────────────────────────────────────────────────────────── */
.fc-settings-section {
  margin: 0 12px 16px;
  background: #fff;
  border-radius: 14px;
  border: 0.5px solid var(--fc-border);
  overflow: hidden;
}
.fc-settings-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  padding: 12px 16px 6px;
}
.fc-settings-row {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 0.5px solid var(--fc-border);
  gap: 12px;
}
.fc-settings-row:last-child {
  border-bottom: none;
}
.fc-settings-row-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  flex: 1;
}
.fc-settings-row-sub {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 1px;
}
/* iOS-style toggle */
.fc-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.fc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.fc-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: #ddd;
  transition: background 0.2s;
  cursor: pointer;
}
.fc-toggle input:checked + .fc-toggle-track {
  background: var(--fc-forest);
}
.fc-toggle-track::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.fc-toggle input:checked + .fc-toggle-track::after {
  transform: translateX(20px);
}
.fc-lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  text-decoration: none;
  border-bottom: 0.5px solid var(--fc-border);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  transition: background 0.1s;
}
.fc-lang-option:last-child {
  border-bottom: none;
}
.fc-lang-option.active {
  color: var(--fc-forest);
  font-weight: 600;
}
.fc-lang-check {
  margin-left: auto;
  color: var(--fc-forest);
  font-size: 15px;
}

/* ── 3.4 RESERVE BOTTOM SHEET ──────────────────────────────────────────────── */
.fc-sheet-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 400;
  align-items: flex-end;
}
.fc-sheet-overlay.open {
  display: flex;
}
.fc-sheet {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  animation: fc-sheet-up 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes fc-sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.fc-sheet-handle {
  width: 36px; height: 4px;
  background: #ddd; border-radius: 2px;
  margin: 12px auto 0;
}
.fc-sheet-header {
  padding: 16px 20px 12px;
  border-bottom: 0.5px solid var(--fc-border, #e8f0e8);
}
.fc-sheet-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px; font-weight: 700;
  color: #1a2e1a;
}
.fc-sheet-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: #888;
  margin-top: 3px;
}
/* Reassurance for the reserve-only (no-prepay) flow — eases the "pay with card
   now?" hesitation that is the core trust hurdle in the RS launch market. */
.fc-sheet-reassure {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--fc-forest, #1a5c38);
  margin-top: 6px;
}
.fc-sheet-body {
  padding: 16px 20px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.fc-sheet-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: none; cursor: pointer; width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  text-align: left;
  transition: opacity 0.1s;
}
.fc-sheet-btn:active { opacity: 0.7; }
.fc-sheet-btn-primary {
  background: var(--fc-forest, #1a5c38);
  color: #fff;
}
.fc-sheet-btn-secondary {
  background: #f2f4f2;
  color: #333;
}
.fc-sheet-btn-icon {
  font-size: 20px;
  width: 28px; text-align: center; flex-shrink: 0;
}
.fc-sheet-btn-text { flex: 1; }
.fc-sheet-btn-label { display: block; font-size: 14px; font-weight: 600; }
.fc-sheet-btn-hint  { display: block; font-size: 11px; font-weight: 400; opacity: 0.65; margin-top: 1px; }
.fc-sheet-skip {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--fc-forest, #1a5c38);
  background: none; border: none;
  cursor: pointer; padding: 10px; width: 100%;
  text-decoration: underline;
}

/* ── CHAPTER 16: ADOPTION CONFIRM ──────────────────────────────────────────── */
.fc-confirm-hero {
  text-align: center;
  padding: 40px 20px 28px;
}
.fc-confirm-icon {
  font-size: 52px; margin-bottom: 12px;
}
.fc-confirm-title {
  font-family: 'Sora', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--fc-forest, #1a5c38);
  margin-bottom: 6px;
}
.fc-confirm-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: #888;
}
.fc-payment-card {
  margin: 0 16px 16px;
  background: #fff;
  border-radius: 14px;
  border: 0.5px solid var(--fc-border, #e8f0e8);
  overflow: hidden;
}
.fc-payment-card-header {
  padding: 12px 16px 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: #999;
}
.fc-payment-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 16px;
  border-top: 0.5px solid #f3f3f3;
}
.fc-payment-row-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.fc-payment-row-text { flex: 1; }
.fc-payment-row-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; color: #222;
}
.fc-payment-row-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #888; margin-top: 2px;
}
.fc-roadmap-note {
  margin: 0 16px 16px;
  padding: 12px 14px;
  background: var(--fc-mist, #f0f7f1);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #666;
}
.fc-roadmap-note strong { color: var(--fc-forest, #1a5c38); }
.fc-confirm-cta {
  display: block;
  margin: 8px 16px 32px;
  padding: 14px;
  background: var(--fc-forest, #1a5c38);
  color: #fff; text-decoration: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  text-align: center;
}

/* ── 3.7 PUBLIC FARMER PROFILE ─────────────────────────────────────────────── */
.pfp-hero {
  background: linear-gradient(145deg, #1a5c38 0%, #2d7a4f 55%, #3a9e62 100%);
  padding: 24px 16px 18px;
}
.pfp-hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pfp-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.35);
}
.pfp-avatar img { width:100%;height:100%;object-fit:cover; }
.pfp-hero-info { flex: 1; }
.pfp-name {
  font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800;
  color: #fff; letter-spacing: -0.02em; margin-bottom: 2px;
}
.pfp-location { font-family: 'DM Sans', sans-serif; font-size: 12px; color: rgba(255,255,255,0.65); }
.pfp-streak {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg,#ff5722,#ff9800); color:#fff;
  padding: 3px 10px; border-radius: 20px; display: inline-block; margin-top: 4px;
}
.pfp-kpi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 2px;
}
.pfp-kpi {
  background: rgba(255,255,255,0.15); border-radius: 10px;
  padding: 8px 10px; text-align: center; backdrop-filter: blur(4px);
}
.pfp-kpi-val {
  font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 800; color: #fff;
  display: block;
}
.pfp-kpi-label {
  font-family: 'DM Sans', sans-serif; font-size: 10px; color: rgba(255,255,255,0.6);
  display: block; margin-top: 2px;
}
.pfp-contact-btns {
  display: flex; gap: 8px; margin-top: 14px;
}
.pfp-btn {
  flex: 1; padding: 10px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  text-align: center; text-decoration: none; cursor: pointer; border: none;
}
.pfp-btn-primary {
  background: #fff; color: var(--fc-forest, #1a5c38);
}
.pfp-btn-secondary {
  background: rgba(255,255,255,0.2); color: #fff; backdrop-filter: blur(4px);
}
.pfp-section {
  margin: 0 12px 12px;
  background: #fff; border-radius: 14px;
  border: 0.5px solid var(--fc-border);
  overflow: hidden;
}
.pfp-section-title {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: #999;
  padding: 12px 14px 6px;
}
.pfp-gallery {
  display: flex; gap: 8px; padding: 0 14px 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.pfp-gallery::-webkit-scrollbar { display: none; }
.pfp-gallery-img {
  width: 110px; height: 90px; flex-shrink: 0;
  border-radius: 10px; object-fit: cover; background: #eee;
}
.pfp-methods {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 14px;
}
.pfp-method-tag {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  background: var(--fc-mist, #f0f7f1); color: var(--fc-forest, #1a5c38);
  border: 1px solid var(--fc-sprout, #b7dfc5);
}
.pfp-verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  background: #e3f2fd; color: #1565c0; border-radius: 20px; padding: 3px 10px;
}
.pfp-farm-facts {
  padding: 0 14px 14px; display: flex; flex-wrap: wrap; gap: 8px;
}
.pfp-fact {
  font-family: 'DM Sans', sans-serif; font-size: 12px; color: #666;
  background: #f8f8f8; border-radius: 8px; padding: 5px 10px;
}
.pfp-listing-card {
  display: flex; gap: 10px; padding: 10px 14px;
  border-top: 0.5px solid #f3f3f3; text-decoration: none;
}
.pfp-listing-photo {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 8px;
  background: linear-gradient(135deg,#e8f5e9,#c8e6c9) center/cover;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.pfp-listing-info { flex: 1; min-width: 0; }
.pfp-listing-name {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; color: #1a2e1a;
}
.pfp-listing-meta {
  font-family: 'DM Sans', sans-serif; font-size: 11px; color: #999; margin-top: 2px;
}
.pfp-listing-price {
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 800;
  color: var(--fc-forest, #1a5c38); align-self: center; flex-shrink: 0;
}

/* ── 3.8 BESTELLUNGEN (HISTORY) ─────────────────────────────────────────────── */
.ord-hero {
  background: linear-gradient(145deg, var(--fc-forest, #1a5c38) 0%, var(--fc-meadow, #2d7a4f) 100%);
  padding: 20px 16px 18px;
}
.ord-hero-title {
  font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800;
  color: #fff; margin-bottom: 14px;
}
.ord-kpi-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.ord-kpi {
  background: rgba(255,255,255,0.15); border-radius: 10px;
  padding: 9px 12px; backdrop-filter: blur(4px);
}
.ord-kpi-val {
  font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 800; color: #fff;
  display: block;
}
.ord-kpi-label {
  font-family: 'DM Sans', sans-serif; font-size: 10px; color: rgba(255,255,255,0.6);
  display: block; margin-top: 1px;
}
.ord-co2-section {
  margin: 10px 12px 0;
  background: #fff; border-radius: 14px;
  border: 0.5px solid var(--fc-border); padding: 14px;
}
.ord-co2-title {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700;
  color: #333; margin-bottom: 12px;
}
.ord-co2-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.ord-co2-label {
  font-family: 'DM Sans', sans-serif; font-size: 12px; color: #666;
  width: 80px; flex-shrink: 0;
}
.ord-co2-bar-wrap {
  flex: 1; height: 6px; background: #eee; border-radius: 3px; overflow: hidden;
}
.ord-co2-bar-fill { height: 100%; border-radius: 3px; }
.ord-co2-val {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  color: #555; width: 40px; text-align: right;
}
.ord-co2-note {
  font-family: 'DM Sans', sans-serif; font-size: 11px; color: #aaa;
  margin-top: 10px; padding-top: 8px; border-top: 0.5px solid #f0f0f0;
}
.ord-card {
  margin: 10px 12px 0;
  background: #fff; border-radius: 14px;
  border: 0.5px solid var(--fc-border); overflow: hidden;
}
.ord-card.status-abgeholt { border-left: 3px solid var(--fc-meadow, #4caf50); }
.ord-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px 8px;
}
.ord-date {
  font-family: 'DM Sans', sans-serif; font-size: 11px; color: #aaa;
}
.ord-status {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.ord-status-pending  { background: #fef3c7; color: #92400e; }
.ord-status-growing  { background: var(--fc-mist, #e8f5e9); color: var(--fc-forest, #2d6a2d); }
.ord-status-transit  { background: #fff3e0; color: #e65100; }
.ord-status-done     { background: var(--fc-mist, #e8f5e9); color: var(--fc-forest, #1b5e20); }

/* ── ORDER STEPPER ─────────────────────────────────────────────────────── */
.ord-stepper {
  display: flex;
  align-items: flex-start;
  padding: 4px 14px 12px;
  gap: 0;
}
.ord-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}
.ord-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #ccc;
}
.ord-step-active .ord-step-dot {
  background: var(--fc-forest, #1a5c38);
  box-shadow: 0 0 0 3px rgba(26,92,56,0.2);
}
.ord-step-done .ord-step-dot {
  background: var(--fc-mist, #e8f5e9);
}
.ord-step-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  color: #bbb;
  margin-top: 3px;
  text-align: center;
  max-width: 50px;
  line-height: 1.2;
}
.ord-step-active .ord-step-label {
  color: var(--fc-forest, #1a5c38);
  font-weight: 700;
}
.ord-step-done .ord-step-label {
  color: #888;
}
.ord-step-line {
  flex: 1;
  height: 2px;
  background: #e8e8e8;
  margin-top: 13px;
  min-width: 8px;
}
.ord-line-done {
  background: var(--fc-forest, #1a5c38);
}
.ord-card-body {
  display: flex; gap: 10px; padding: 0 14px 10px; align-items: flex-start;
}
.ord-thumb {
  width: 60px; height: 60px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--fc-mist, #e8f5e9), var(--fc-sprout, #c8e6c9)) center/cover;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  overflow: hidden;
}
.ord-thumb img { width:100%;height:100%;object-fit:cover; }
.ord-info { flex: 1; min-width: 0; }
.ord-plant-name {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; color: #1a2e1a;
}
.ord-meta {
  font-family: 'DM Sans', sans-serif; font-size: 11px; color: #999; margin: 2px 0 6px;
}
.ord-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ord-tag {
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600;
  background: #f5f5f5; color: #555; border-radius: 6px; padding: 2px 7px;
}
.ord-co2-mini { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.ord-co2-mini-bar { flex: 1; height: 4px; background: #eee; border-radius: 2px; overflow: hidden; }
.ord-co2-mini-fill { height: 100%; border-radius: 2px; }
.ord-co2-mini-val { font-family: 'DM Sans', sans-serif; font-size: 10px; color: #aaa; }
.ord-card-actions {
  padding: 8px 14px 12px; display: flex; gap: 8px;
}
.ord-btn {
  flex: 1; padding: 8px; border-radius: 9px; text-align: center;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  min-height: 44px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.08s ease;
}
.ord-btn:active:not(.ord-btn-disabled) { transform: scale(0.97); }
.ord-btn:focus-visible { outline: 2px solid var(--fc-forest, #1a5c38); outline-offset: 2px; }
.ord-btn-primary { background: var(--fc-forest,#1a5c38); color:#fff; }
.ord-btn-secondary { background: #f0f0f0; color:#555; }
.ord-btn-disabled { background: #f5f5f5; color:#bbb; cursor: not-allowed; }
.ord-btn-orange { background: #fff3e0; color: #e65100; }

/* Pagination — touch-friendly tap targets + press feedback (#10) */
.ord-pagination a, .ord-pagination span {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.ord-pagination a { transition: transform 0.08s ease; }
.ord-pagination a:active { transform: scale(0.96); }
.ord-pagination a:focus-visible { outline: 2px solid var(--fc-forest, #1a5c38); outline-offset: 2px; }

/* ── PLANT TIMELINE ───────────────────────────────────────────────────────── */
.fc-timeline {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.fc-tl-item {
  display: flex; align-items: flex-start; gap: 10px;
  position: relative;
  padding-bottom: 16px;
}
/* Vertical connector line */
.fc-tl-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px; top: 18px; bottom: 0;
  width: 2px;
  background: #e8f0e8;
}
.fc-tl-dot {
  width: 16px; height: 16px; border-radius: 50%;
  flex-shrink: 0; margin-top: 3px;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 3px #f5f9f5;
}
.fc-tl-content {
  flex: 1; min-width: 0;
  background: #fff;
  border-radius: 12px;
  border: 0.5px solid var(--fc-border, #e0e8e0);
  overflow: hidden;
}
.fc-tl-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 6px;
  flex-wrap: wrap;
}
.fc-tl-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  color: #fff;
  padding: 2px 9px; border-radius: 20px;
  white-space: nowrap;
}
.fc-tl-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: #aaa;
  margin-left: auto;
}
.fc-tl-notes {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: #333;
  line-height: 1.5;
  margin: 0; padding: 0 12px 8px;
}
.fc-tl-photo {
  margin: 0 12px 10px;
  border-radius: 8px; overflow: hidden;
  position: relative;
}
.fc-tl-photo img {
  width: 100%; display: block;
  max-height: 200px; object-fit: cover;
  border-radius: 8px; cursor: zoom-in;
}
/* Like row */
.fc-tl-like-row {
  padding: 6px 12px 10px;
  border-top: 0.5px solid #f0f0f0;
}
.fc-tl-like-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 4px 0;
  cursor: pointer; font-size: 13px;
}
.fc-tl-like-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: #999; font-weight: 600;
}
.fc-tl-like-btn.liked .fc-tl-like-count { color: #e53935; }
/* Deleted entry */
.fc-tl-deleted {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #bbb; font-style: italic;
  border: 0.5px dashed #ddd;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UX UPGRADE PACK — April 2026
   Visual-only additions. No functionality changes.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── #1 EMPTY STATES — motivierend mit CTA ───────────────────────────────── */
.empty-state .empty-icon {
  font-size: 3.5rem;
  opacity: 0.8;
  line-height: 1;
}
.empty-state h3 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-1);
  margin: 0;
}
.empty-state .empty-sub {
  font-size: 0.9rem;
  color: var(--text-3);
  max-width: 320px;
  line-height: 1.5;
}
.empty-state .empty-cta {
  margin-top: 4px;
}
.empty-state .empty-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-2);
}
.empty-state .empty-steps li {
  list-style: none;
  padding-left: 0;
}

/* ── #2 LOADING STATES on submit buttons ─────────────────────────────────── */
.btn[data-loading="true"],
button[data-loading="true"] {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}
.btn[data-loading="true"]::after,
button[data-loading="true"]::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ── #3 READ RECEIPTS — WhatsApp-style blue ticks ────────────────────────── */
.fc-bubble-mine .fc-bubble-tick {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  margin-left: 3px;
  letter-spacing: -2px;
}
.fc-bubble-mine .fc-bubble-tick-read {
  color: #4A9EE8;
}

/* ── #4 BOTTOM NAV — labels always visible ───────────────────────────────── */
.bottom-nav a span:not(.nav-icon) {
  display: block !important;
  font-size: 11px;
  margin-top: 2px;
  line-height: 1.1;
}
.bottom-nav a.active span:not(.nav-icon) {
  font-weight: 700;
}

/* ── #7 REAL-TIME FORM VALIDATION ─────────────────────────────────────────── */
input:not(:placeholder-shown):invalid,
textarea:not(:placeholder-shown):invalid {
  border-color: var(--red) !important;
  background: rgba(184, 76, 62, 0.06) !important;
}
input:not(:placeholder-shown):valid,
textarea:not(:placeholder-shown):valid {
  border-color: var(--green, var(--fc-forest)) !important;
}
input[readonly]:invalid,
input[disabled]:invalid,
textarea[readonly]:invalid,
textarea[disabled]:invalid {
  border-color: var(--border) !important;
  background: var(--surface-2) !important;
}
.fc-password-match {
  display: block;
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 1.2em;
}
.fc-password-match.ok { color: var(--green, var(--fc-forest)); }
.fc-password-match.bad { color: var(--red); }

/* ── #8 REQUIRED FIELDS — clearer marking ─────────────────────────────────── */
.required-star {
  color: var(--red);
  font-weight: 700;
  margin-left: 3px;
}
label:has(.required-star) {
  font-weight: 600;
}
label[data-optional="true"]::after {
  content: " (optional)";
  color: var(--text-3);
  font-weight: 400;
  font-size: 0.85em;
}
.fc-form-hint {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 16px;
}

/* ── #9 ACTIVE STATE — haptic-style press feedback ───────────────────────── */
button:active:not(:disabled),
.btn:active:not(:disabled),
a.btn:active,
.role-card:active,
.plant-card:active,
.listing-card:active,
.ob-role-opt:active,
.rs-role-btn:active,
.ar-role-btn:active,
.notif-item:active,
.msg-thread:active,
.fp-menu-item:active,
.cp-menu-item:active,
.dp-menu-item:active,
.fc-plant-card:active,
.dash-stat-pill:active {
  transform: scale(0.97);
  transition: transform 0.08s;
}

/* ── #10 STICKY HEADER — glassmorphism blur ──────────────────────────────── */
.dash-figma-header {
  background: rgba(255, 253, 247, 0.85) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(93, 76, 50, 0.08);
  transition: box-shadow 0.2s ease;
}
.fc-sticky-header {
  background: rgba(255, 253, 247, 0.85) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: box-shadow 0.2s ease;
}
.dash-figma-header.scrolled,
.fc-sticky-header.scrolled {
  box-shadow: 0 2px 12px rgba(93, 76, 50, 0.08);
}

/* ── #11 SCROLL-TO-TOP button ─────────────────────────────────────────────── */
.fc-scroll-top {
  position: fixed;
  bottom: calc(var(--nav-h, 64px) + 24px);
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fc-forest, var(--green, #5C7A4F));
  color: white;
  border: none;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(93, 76, 50, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.25s ease;
  z-index: 100;
}
.fc-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── #14 TEL / EMAIL LINKS ────────────────────────────────────────────────── */
.fc-phone-link,
.fc-email-link {
  color: var(--fc-forest, var(--green));
  text-decoration: none;
  font-weight: 600;
}
.fc-phone-link:hover,
.fc-email-link:hover {
  text-decoration: underline;
}

/* ── #15 CUSTOM CONFIRM MODAL ─────────────────────────────────────────────── */
.fc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 42, 36, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 20px;
}
.fc-modal-backdrop.open {
  opacity: 1;
}
.fc-modal {
  background: var(--surface);
  border-radius: 22px;
  padding: 24px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.fc-modal-backdrop.open .fc-modal {
  transform: scale(1);
}
.fc-modal-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-1);
  margin: 0 0 10px;
}
.fc-modal-message {
  font-size: 0.95rem;
  color: var(--text-2);
  margin: 0 0 20px;
  line-height: 1.5;
}
.fc-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.fc-modal-btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  min-width: 90px;
}
.fc-modal-btn-cancel {
  background: var(--surface-2);
  color: var(--text-2);
}
.fc-modal-btn-confirm {
  background: var(--fc-forest, var(--green));
  color: white;
}
.fc-modal-btn-danger {
  background: var(--red);
  color: white;
}

/* ── #16 CLIENT-SIDE SEARCH BAR ───────────────────────────────────────────── */
.fc-search-bar {
  position: relative;
  padding: 12px;
  background: var(--bg);
}
.fc-search-input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border-radius: 100px;
  border: 1px solid var(--fc-border, var(--border));
  font-size: 14px;
  background: var(--surface);
  font-family: inherit;
  color: var(--text-1);
}
.fc-search-input:focus {
  outline: none;
  border-color: var(--fc-forest, var(--green));
}
.fc-search-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.4;
  font-size: 14px;
}

/* ── #17 LAZY IMAGE SHIMMER ───────────────────────────────────────────────── */
img:not(.loaded):not([src=""]) {
  background: linear-gradient(90deg,
    var(--surface-2) 0%,
    rgba(245, 238, 224, 0.5) 50%,
    var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: img-shimmer 1.5s linear infinite;
}
img.loaded {
  animation: none;
}
@keyframes img-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── #6 UNDO TOAST ────────────────────────────────────────────────────────── */
.fc-undo-toast {
  position: fixed;
  bottom: calc(var(--nav-h, 64px) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  color: var(--text-1);
  padding: 10px 14px 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--fc-border, var(--border));
  box-shadow: 0 4px 20px rgba(93, 76, 50, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 0.9rem;
  max-width: calc(100vw - 24px);
}
.fc-undo-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fc-undo-toast-msg {
  flex: 1;
  color: var(--text-1);
}
.fc-undo-toast-btn {
  background: none;
  border: none;
  color: var(--fc-forest, var(--green));
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 8px;
}
.fc-undo-toast-btn:active {
  background: var(--surface-2);
}

/* ── #19 SWIPE-TO-DELETE ──────────────────────────────────────────────────── */
[data-swipe="true"] {
  position: relative;
  transition: transform 0.25s ease;
  touch-action: pan-y;
  overflow: hidden;
}
[data-swipe="true"].swiping {
  transition: none;
}
.fc-swipe-action {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 0;
  border: none;
  cursor: pointer;
}

/* ── #21 ONBOARDING REWARD PREVIEW ───────────────────────────────────────── */
.ob-reward-preview {
  background: var(--fc-wheat, var(--green-pale));
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 20px;
}
.ob-reward-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.ob-reward-text strong {
  display: block;
  font-size: 14px;
  color: var(--text-1);
}
.ob-reward-text span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ── #22 DASHBOARD STATS PILLS ───────────────────────────────────────────── */
.dash-quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 12px 16px;
}
.dash-stat-pill {
  background: var(--surface);
  border-radius: 14px;
  padding: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--fc-border, var(--border));
  color: inherit;
  transition: transform 0.15s;
  min-width: 0;
}
.dash-stat-icon { font-size: 20px; flex-shrink: 0; }
.dash-stat-val {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fc-forest, var(--green));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-stat-lbl {
  display: block;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── #24 SETTINGS NOTIFICATION TOGGLES ───────────────────────────────────── */
.fc-settings-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 8px 16px;
  border: 1px solid var(--border);
  margin: 12px 0;
}
.fc-settings-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 0 8px;
  color: var(--text-1);
}
.fc-settings-toggle {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--fc-border, var(--border));
  cursor: pointer;
  align-items: flex-start;
}
.fc-settings-toggle:last-child { border-bottom: none; }
.fc-settings-toggle input { margin-top: 3px; flex-shrink: 0; }
.fc-settings-label { flex: 1; }
.fc-settings-label strong {
  display: block;
  font-size: 14px;
  color: var(--text-1);
}
.fc-settings-label small {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ── #25 HELP TOOLTIPS ────────────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fc-mist, var(--green-pale));
  color: var(--fc-forest, var(--green));
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
  font-style: normal;
  border: none;
  font-family: inherit;
  padding: 0;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-1);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
  line-height: 1.4;
  text-align: left;
}
[data-tooltip].fc-tooltip-active::after,
[data-tooltip]:hover::after {
  opacity: 1;
}

/* ── DELIVERER DASHBOARD ──────────────────────────────────────────────────── */
.dv-main {
  padding: 64px 0 90px;
  background: #f5f9f5;
  min-height: 100vh;
}
.dv-alert { margin: 10px 12px 0; }

/* Vehicle card */
.dv-vehicle-card {
  margin: 12px 12px 0;
  background: #fff;
  border-radius: 14px;
  border: 0.5px solid var(--fc-border, rgba(0,0,0,0.08));
  border-left: 3px solid var(--fc-forest, #1a5c38);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.dv-vehicle-icon { font-size: 2rem; flex-shrink: 0; }
.dv-vehicle-info { flex: 1; min-width: 0; }
.dv-vehicle-name {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700; color: #1a2e1a;
  margin: 0 0 2px;
}
.dv-vehicle-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #888;
}
.dv-vehicle-change {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700;
  color: var(--fc-forest, #1a5c38);
  background: var(--fc-mist, #e8f4ee);
  border: none; border-radius: 8px;
  padding: 6px 12px; cursor: pointer;
  text-decoration: none; flex-shrink: 0;
}

/* Tours shortcut card */
.dv-tours-shortcut {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 12px 0;
  padding: 14px 16px;
  background: #fff;
  border: 0.5px solid rgba(0,0,0,.08);
  border-radius: 14px;
  border-left: 3px solid #7b1fa2;
  text-decoration: none; color: inherit;
}
.dv-tours-icon { font-size: 22px; }
.dv-tours-body { flex: 1; min-width: 0; }
.dv-tours-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700; color: #1a2e1a;
}
.dv-tours-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #888;
}

/* Section header */
.dv-section-header {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 16px 8px;
}
.dv-section-header.tight { padding-top: 8px; }
.dv-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700; color: #1a2e1a;
}
.dv-section-badge {
  background: var(--fc-forest, #1a5c38); color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  border-radius: 20px; padding: 2px 8px;
}
.dv-section-badge.pool { background: #7b1fa2; }
.dv-section-badge.active { background: #ff9800; }

/* Pool map */
.dv-pool-map {
  height: 240px;
  margin: 0 12px 6px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  background: #e8f0e8;
}
.dv-pool-hint {
  margin: 0 12px 8px;
  font-size: 11px; color: #888;
}
.dv-pool-explain {
  margin: 0 12px 8px;
  font-size: 12px; color: #6b7a6b;
  font-style: italic;
}

/* Request card */
.dv-req-card {
  margin: 0 12px 10px;
  background: #fff;
  border-radius: 14px;
  border: 0.5px solid var(--fc-border, rgba(0,0,0,0.08));
  overflow: hidden;
}
.dv-req-card.pool { border-color: #e8d5f5; }
.dv-req-card.pool.below-threshold { border-color: #f59e0b; }
.dv-req-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 6px;
}
.dv-pending-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  background: var(--fc-wheat, #faeeda);
  color: #a05000;
  border-radius: 20px; padding: 3px 9px;
}
.dv-pending-badge.pool { background: #7b1fa2; color: #fff; }
.dv-pending-badge.warn { background: #f59e0b; color: #fff; margin-left: 6px; }
.dv-req-timestamp {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: #bbb;
  margin-left: auto;
}
.dv-req-body { padding: 0 14px 10px; }
.dv-req-plant {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700; color: #1a2e1a;
  margin: 0 0 6px;
}
.dv-req-route {
  display: flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #666;
  margin-bottom: 8px;
}
.dv-req-route-arrow {
  color: #aaa; font-size: 14px;
}
.dv-req-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.dv-req-chips.mt6 { margin-top: 6px; }
.dv-req-chip {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  background: #f5f5f5; color: #555;
}
.dv-req-chip.green { background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38); }
.dv-req-chip.orange { background: #fff3e0; color: #e65100; }
.dv-req-chip.window { background: #fff8e1; color: #8d6e00; }

/* Action buttons */
.dv-req-actions {
  display: flex; gap: 8px;
  padding: 0 14px 14px;
}
.dv-grow-2 { flex: 2; min-width: 0; }
.dv-grow-1 { flex: 1; min-width: 0; }
.dv-btn-route {
  flex: 2;
  padding: 11px 10px;
  background: var(--fc-forest, #1a5c38); color: #fff;
  border: none; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.15s;
  width: 100%;
}
.dv-btn-route:active { opacity: 0.85; }
.dv-btn-decline {
  flex: 1;
  padding: 11px 10px;
  background: #fdecea; color: #c62828;
  border: none; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.dv-btn-decline:active { opacity: 0.85; }

/* Active delivery card */
.dv-active-card {
  margin: 0 12px 10px;
  background: #fff;
  border-radius: 14px;
  border: 0.5px solid var(--fc-border, rgba(0,0,0,0.08));
  border-left: 3px solid #ff9800;
  overflow: hidden;
}
.dv-active-head {
  padding: 12px 14px 6px;
  display: flex; align-items: center; gap: 8px;
}
.dv-active-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  border-radius: 20px; padding: 3px 9px;
}
.dv-active-badge.accepted { background: #e3f2fd; color: #1565c0; }
.dv-active-badge.in_transit { background: #fff3e0; color: #e65100; }
.dv-active-badge.delivered { background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38); }
.dv-active-details {
  margin-left: auto;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--fc-forest, #1a5c38);
  text-decoration: none;
  font-weight: 600;
}
.dv-active-body { padding: 0 14px 10px; }
.dv-active-plant {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700; color: #1a2e1a;
  margin: 0 0 4px;
}
.dv-active-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #888;
}
.dv-active-meta.window { color: #8d6e00; font-weight: 600; }
.dv-active-actions { padding: 0 14px 14px; display: flex; gap: 8px; }
.dv-btn-action {
  flex: 1; padding: 10px;
  background: var(--fc-forest, #1a5c38); color: #fff;
  border: none; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; width: 100%;
}
.dv-btn-secondary {
  background: #f0f0f0; color: #333;
  border: none; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 10px; flex: 1; cursor: pointer;
  text-decoration: none; text-align: center;
}
/* Touch targets >=44px — driver acts on these on the road (design review #6) */
.dv-btn-route, .dv-btn-decline, .dv-btn-action, .dv-btn-secondary { min-height: 44px; }
.dv-btn-decline, .dv-btn-action, .dv-btn-secondary {
  display: flex; align-items: center; justify-content: center;
}
.dv-btn-action:active, .dv-btn-secondary:active { opacity: 0.85; }

/* Empty state */
.dv-empty {
  background: #fff;
  margin: 14px 12px;
  padding: 24px 18px;
  border-radius: 14px;
  text-align: center;
}
.dv-empty-illo {
  width: 200px; max-width: 70%; height: auto;
}
.dv-empty-title {
  font-size: 1rem; font-weight: 700;
  color: #1a2e1a;
  margin: 10px 0 14px;
}
.dv-empty-how {
  text-align: left;
  background: #f5f9f5;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 auto 14px;
  max-width: 320px;
}
.dv-empty-how-title {
  font-size: 12px; font-weight: 700;
  color: #1a5c38;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dv-empty-step {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #444;
  margin-bottom: 8px;
}
.dv-empty-step:last-child { margin-bottom: 0; }
.dv-empty-step-num {
  background: #1a5c38; color: #fff;
  border-radius: 50%;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.dv-empty-cta-hint {
  font-size: 13px; color: #6b7a6b;
  margin-bottom: 10px;
}
.dv-empty-cta {
  display: inline-block;
  background: #2d6a2d; color: #fff;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 0.875rem; font-weight: 700;
  text-decoration: none;
}

/* ── FARMER DASHBOARD EMPTY STATE ─────────────────────────────────────────── */
.fc-empty {
  margin: 40px 16px;
  text-align: center;
}
.fc-empty-illo {
  width: 220px; max-width: 70%; height: auto;
  margin-bottom: 14px;
}
.fc-empty-title {
  font-size: 1.15rem; font-weight: 800;
  color: #1a2e1a;
  margin-bottom: 8px;
}
.fc-empty-desc {
  font-size: 0.875rem;
  color: #6b7a6b;
  margin-bottom: 24px;
  line-height: 1.5;
}
.fc-empty-cta {
  display: inline-block;
  background: #2d6a2d; color: #fff;
  border-radius: 14px;
  padding: 14px 28px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
}
.fc-howto {
  margin-top: 28px;
  background: #f4f7f4;
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.fc-howto-title {
  font-size: 0.78rem; font-weight: 700;
  color: #2d6a2d;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.fc-howto-row {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #e8eee8;
}
.fc-howto-row:last-child { border-bottom: none; }
.fc-howto-row span:last-child {
  font-size: 0.85rem;
  color: #3a4e3a;
}

/* ── CUSTOMER MY GARDEN ───────────────────────────────────────────────────── */

/* Hero band */
.mg-hero {
  /* Token-driven so FARM_THEME warms this to soft sage (#5C7A4F→#7A9A6A)
     instead of the harsh material green that clashed with the cream page. */
  background: linear-gradient(145deg, var(--fc-forest, #1a5c38) 0%, var(--fc-meadow, #2d7a4f) 100%);
  padding: 22px 16px 16px;
}
.mg-hero-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.mg-hero-name {
  font-family: 'Sora', sans-serif;
  font-size: 22px; font-weight: 800;
  color: #fff; letter-spacing: -0.03em;
  margin: 0 0 3px;
}
.mg-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: rgba(255,255,255,0.65);
  margin: 0 0 14px;
}

/* Badges strip on hero */
.mg-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.mg-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 20px;
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}

/* Tile grid */
.mg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px 3px 90px;
  background: var(--fc-mist, #eef3ee);
}

/* Plant tile */
.mg-tile {
  position: relative;
  aspect-ratio: 1 / 1.18;
  overflow: hidden;
  border-radius: 6px;
  text-decoration: none;
  display: block;
  background: var(--fc-sprout, #c8e6c9);
}
.mg-tile-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.35s ease;
}
.mg-tile:active .mg-tile-bg { transform: scale(1.04); }

/* Placeholder background (no photo) — shared gradient + emoji */
.mg-tile-bg-placeholder {
  background: linear-gradient(160deg, var(--fc-sprout, #c8e6c9) 0%, var(--fc-sprout, #a5d6a7) 40%, var(--fc-mist, #e8f4ee) 100%);
}

.mg-tile-emoji {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -62%);
  font-size: 3rem;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.5));
  animation: mg-sway 4s ease-in-out infinite;
}
@keyframes mg-sway {
  0%,100% { transform: translate(-50%, -62%); }
  50%      { transform: translate(-50%, -70%); }
}

/* Dark gradient overlay */
.mg-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.08) 45%,
    rgba(0,0,0,0.72) 78%,
    rgba(0,0,0,0.88) 100%
  );
}

/* Info section (above progress bar) */
.mg-tile-info {
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  padding: 8px 10px 8px;
}
.mg-tile-name {
  font-family: 'Sora', sans-serif;
  font-size: 12px; font-weight: 700;
  color: #fff; margin: 0 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mg-tile-stage {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; color: rgba(255,255,255,0.7);
  margin: 0;
}
.mg-tile-farmer {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; color: rgba(255,255,255,0.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}

/* Progress bar — absolute bottom, 4px, no label */
.mg-tile-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.15);
}
.mg-tile-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fc-meadow, #4caf50), var(--fc-sprout, #a5d6a7));
  transition: width 0.6s ease;
}

/* "X days ago" badge — top left */
.mg-tile-update-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(26, 92, 56, 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

/* "+" Add tile */
.mg-tile-add {
  aspect-ratio: 1 / 1.18;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  background: #fff;
  border: 2px dashed var(--fc-sprout, #b2dfb2);
  border-radius: 6px;
  text-decoration: none;
}
.mg-tile-add-icon  { font-size: 1.8rem; opacity: 0.45; }
.mg-tile-add-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: #999;
  text-align: center; line-height: 1.3;
  padding: 0 8px;
}

/* Cancelled section */
.mg-cancelled-section { padding: 12px 12px 0; }
.mg-cancelled-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700; color: #999;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.mg-cancelled-card {
  background: #f9f9f9; border-radius: 14px;
  border: 1.5px solid #e0e0e0;
  padding: 12px 14px; margin-bottom: 8px;
  opacity: 0.7;
}
.mg-cancelled-row {
  display: flex; align-items: center; justify-content: space-between;
}
.mg-cancelled-plant {
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700;
  color: #999; text-decoration: line-through;
}
.mg-cancelled-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  background: #f0f0f0; color: #999;
  padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase;
}
.mg-cancelled-meta {
  font-family: 'DM Sans', sans-serif; font-size: 12px; color: #bbb;
  margin-top: 4px;
}

/* Pending section */
.mg-pending-section { padding: 12px 12px 0; }
.mg-pending-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700; color: #f57c00;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.mg-pending-card {
  background: #fff; border-radius: 14px;
  border: 1.5px solid #fff3cd;
  padding: 12px 14px; margin-bottom: 8px;
}
.mg-pending-row {
  display: flex; align-items: center; justify-content: space-between;
}
.mg-pending-plant {
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700;
  color: #1a2e1a;
}
.mg-pending-status {
  background: #fff3cd; color: #f57c00;
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}
.mg-pending-meta {
  font-family: 'DM Sans', sans-serif; font-size: 11px; color: #aaa;
  margin-top: 3px;
}
.mg-pending-hint {
  font-size: 12px; color: #666;
  margin-top: 4px; font-style: italic;
}
.mg-pending-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 8px;
}
.mg-action-btn {
  background: none; border-radius: 8px;
  padding: 5px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.mg-action-btn.cancel { border: 1.5px solid #e53935; color: #e53935; }
.mg-action-btn.reduce { border: 1.5px solid var(--fc-meadow, #4caf50); color: var(--fc-meadow, #4caf50); }
.mg-action-btn.save {
  background: var(--fc-meadow, #4caf50); color: #fff; border: none;
  margin-left: 4px;
}
.mg-reduce-form {
  display: none;
  width: 100%;
  margin-top: 6px;
}
.mg-reduce-hint {
  font-size: 12px; color: #666;
  margin-bottom: 6px;
}
.mg-reduce-input { padding: 5px; width: 90px; font-size: 12px; }
.mg-reduce-unit { font-size: 12px; }

/* Harvest action overlay */
.mg-tile-harvest-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(26,92,56,0.85) 0%, rgba(45,138,87,0.92) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 10px;
  z-index: 5;
}
.mg-tile-harvest-overlay form { width: 100%; }
.mg-harvest-title {
  font-family: 'Sora', sans-serif;
  font-size: 11px; font-weight: 800; color: #fff;
  text-align: center; line-height: 1.3;
}
.mg-harvest-btn {
  display: block; width: 100%; text-align: center;
  padding: 8px 6px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  border: none; cursor: pointer;
  text-decoration: none;
}
.mg-harvest-btn-pickup { background: #fff; color: var(--fc-forest, #1a5c38); }
.mg-harvest-btn-delivery {
  background: rgba(255,255,255,0.18); color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}

/* Completed-state overlay (rate / dispute) */
.mg-tile-completed-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  border-radius: 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 12px;
}
.mg-completed-icon { font-size: 2rem; }
.mg-completed-label {
  font-family: 'Sora', sans-serif;
  font-size: 13px; font-weight: 800; color: #fff;
}
.mg-completed-rate-btn {
  margin-top: 4px;
  background: #f9a825; color: #1a2e1a;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700;
  text-decoration: none;
}
.mg-completed-rated {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: rgba(255,255,255,0.7);
}
.mg-completed-dispute {
  margin-top: 2px;
  color: rgba(255,255,255,0.6);
  font-size: 11px; text-decoration: none;
}

/* Empty state */
.mg-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 56px 24px 100px; text-align: center;
  background: var(--fc-mist, #eef3ee); min-height: 40vh;
}
.mg-empty-illo {
  width: 220px; max-width: 70%; height: auto;
  margin-bottom: 14px;
}
.mg-empty-title {
  font-size: 1.1rem; font-weight: 800;
  color: #1a2e1a;
  margin-bottom: 10px;
}
.mg-empty-icon { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.55; }
.mg-empty-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: #999;
  margin-bottom: 20px;
}
.mg-empty-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--fc-forest, #1a5c38);
  color: #fff; text-decoration: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
}

/* How-it-works panel in empty state */
.mg-howto {
  margin-top: 28px;
  background: var(--surface-2, #f4f7f4);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.mg-howto-title {
  font-size: 0.78rem; font-weight: 700;
  color: var(--fc-forest, #1a5c38);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.mg-howto-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--fc-border, #e8eee8);
}
.mg-howto-row:last-child { border-bottom: none; }
.mg-howto-row span:last-child {
  font-size: 0.85rem;
  color: #3a4e3a;
  line-height: 1.4;
}

/* Local main spacing override (was inline) */
.mg-main { padding: 60px 0 0; }
.mg-banner { margin: 10px 12px 0; }

/* ── CUSTOMER LISTING DETAIL ──────────────────────────────────────────────── */
/* Three classes use a `detail-` prefix to dodge globals: */
/*   .detail-farmer-avatar — global .farmer-avatar is 2.8rem emoji span */
/*   .detail-event-type    — global .event-type is the new-event radio styling */
/*   .detail-review-stars  — global .review-stars uses different size */

.ld-body { background: #f5f7f5; }

/* Hero */
.detail-hero {
  width: 100%; height: 280px;
  background: linear-gradient(135deg, var(--fc-mist, #e8f4ee), var(--fc-sprout, #c8e6c9));
  background-size: cover; background-position: center;
  position: relative;
}
.detail-back {
  position: absolute; top: 72px; left: 14px;
  background: rgba(255,255,255,0.92); border: none; border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; text-decoration: none; color: #1b3a1b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.detail-hero-actions {
  position: absolute; top: 72px; right: 14px;
  display: flex; gap: 8px; z-index: 3;
}
.detail-hero-btn {
  background: rgba(255,255,255,0.92);
  border: none; border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.fc-fav-btn.detail-hero-btn { position: static; font-size: 18px; }

.detail-sold-out-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: white; letter-spacing: 0.05em;
}

/* Body container */
.detail-body { max-width: 680px; margin: 0 auto; padding: 0 0 120px; }

/* Main info card */
.detail-main {
  background: white; border-radius: 0 0 18px 18px;
  padding: 20px 20px 16px; margin-bottom: 12px;
}
.detail-title {
  font-size: 1.3rem; font-weight: 800; color: #1b3a1b;
  margin: 0 0 6px;
}
.detail-meta {
  font-size: 0.85rem; color: #888;
  margin-bottom: 10px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.detail-rating { color: #f9a825; font-weight: 700; }
.detail-rating-count { color: #aaa; font-weight: 400; }
.detail-qty {
  display: inline-block; padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.82rem; font-weight: 600;
  background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38);
  margin-bottom: 10px;
}
.detail-qty.sold-out { background: #fce4e4; color: #e53935; }
.detail-description {
  font-size: 0.92rem; color: #444; line-height: 1.55;
  margin-top: 10px;
}

/* Allergen disclosure — must remain visually distinct from chrome so the
   customer can't miss it. The warning state uses a clear yellow background;
   neutral states use grey/green tones so they don't trigger false alarm. */
.detail-allergen-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  border: 1px solid transparent;
}
.detail-allergen-warning {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #78350f;
}
.detail-allergen-warning .detail-allergen-list {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  color: #5b2a07;
}
.detail-allergen-none {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #14532d;
}
.detail-allergen-unknown {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #4b5563;
}
.detail-allergen-disclaimer {
  margin-top: 6px;
  font-size: 0.78rem;
  opacity: 0.75;
  font-style: italic;
}

/* Product info card */
.detail-info-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 16px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-info-pill {
  background: #f0fdf4;
  border-radius: 10px;
  padding: 10px 12px;
}
.detail-info-pill.harvest { background: #fffbeb; }
.detail-info-pill.storage { background: #eff6ff; }
.detail-info-pill-label {
  font-size: 10px; font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.detail-info-pill-value {
  font-size: 13px; font-weight: 600;
  color: var(--text-1, #1a2e1a);
}
.detail-info-pill.harvest .detail-info-pill-value { color: #92400e; }
.detail-info-pill.storage .detail-info-pill-value { color: #1e40af; }
.detail-info-callout {
  margin-top: 10px;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; gap: 8px;
  align-items: flex-start;
}
.detail-info-callout.tip { background: #fefce8; }
.detail-info-callout.methods { background: #f0fdf4; }
.detail-info-callout-icon { font-size: 14px; }
.detail-info-callout-label {
  font-size: 10px; font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.detail-info-callout-text {
  font-size: 13px; line-height: 1.4;
}
.detail-info-callout.tip .detail-info-callout-text { color: #713f12; }
.detail-info-callout.methods .detail-info-callout-text { color: #166534; }

/* Farmer card */
.detail-farmer {
  background: white;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex; gap: 14px;
  align-items: flex-start;
}
.detail-farmer-avatar {
  width: 58px; height: 58px;
  border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, var(--fc-sprout, #c8e6c9), var(--fc-forest, #1a5c38));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
  color: white; flex-shrink: 0;
}
.farmer-info { flex: 1; min-width: 0; }
.farmer-info-name {
  font-size: 1rem; font-weight: 700;
  color: #1b3a1b;
  text-decoration: none;
}
.farmer-info-sub {
  font-size: 0.82rem; color: #888;
  margin: 2px 0 6px;
}
.farmer-info-bio {
  font-size: 0.85rem; color: #555; line-height: 1.5;
}
.farmer-badges {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 6px;
}
.farmer-badge {
  font-size: 0.75rem;
  background: #f1f8e9; color: var(--fc-forest, #1a5c38);
  border-radius: 10px; padding: 2px 8px;
}
.farmer-website {
  margin-top: 6px;
}
.farmer-website a {
  font-size: 0.82rem; color: var(--fc-forest, #1a5c38);
}

/* Section title */
.detail-section-title {
  font-size: 0.78rem; font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 20px 8px;
}

/* Events list */
.detail-events {
  background: white;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.event-row {
  display: flex; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f4f0;
  align-items: flex-start;
}
.event-row:last-child { border-bottom: none; }
.event-row.deleted { opacity: 0.5; }
.event-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.event-info { flex: 1; min-width: 0; }
.detail-event-type {
  font-size: 0.82rem; font-weight: 700;
  color: #1b3a1b;
}
.detail-event-type.deleted {
  color: #aaa; font-style: italic; font-weight: 400;
}
.event-date {
  font-size: 0.75rem; color: #aaa;
  margin-top: 1px;
}
.event-notes {
  font-size: 0.83rem; color: #555;
  margin-top: 3px;
}
.event-photo {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Reviews */
.detail-reviews {
  background: white;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.review-row {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f4f0;
}
.review-row:last-child { border-bottom: none; }
.review-header {
  display: flex; justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.review-name {
  font-size: 0.85rem; font-weight: 600;
  color: #1b3a1b;
}
.detail-review-stars {
  color: #f9a825; font-size: 0.82rem;
}
.review-text { font-size: 0.83rem; color: #555; }
.review-photo {
  width: 100%; max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin: 8px 0;
}
.review-date {
  font-size: 0.73rem; color: #bbb;
  margin-top: 2px;
}

/* Sticky adopt bar */
.detail-sticky {
  position: fixed; bottom: 60px; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--fc-mist, #e8f4ee);
  padding: 12px 20px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 100;
}
.sticky-price {
  font-size: 1.1rem; font-weight: 800;
  color: #1b3a1b; flex: 1;
}
.sticky-price span {
  font-size: 0.78rem; color: #888;
  font-weight: 400;
}
.sticky-distance { margin-left: 8px; }
.sticky-qty {
  width: 60px; padding: 8px 6px;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  font-size: 0.9rem; text-align: center;
}
.btn-adopt-big {
  padding: 11px 22px;
  background: var(--fc-forest, #1a5c38); color: white;
  border: none; border-radius: 12px;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer;
}
.btn-adopt-big:disabled { background: #aaa; cursor: not-allowed; }
.btn-adopt-big:hover:not(:disabled) { background: #1b4d1b; }
.btn-adopt-big.notify-subscribed {
  background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38);
  border: 2px solid #4caf50;
}
.btn-adopt-big.notify-available {
  background: #fff3e0; color: #e65100;
  border: 2px solid #ff9800;
}
/* "Already reserved → view status" — a calmer secondary look so it doesn't
   read as a fresh CTA (it's a link to My Garden, not a reserve action). */
.btn-adopt-reserved {
  background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38);
  text-decoration: none; display: flex; align-items: center; justify-content: center;
}
/* Pre-purchase growth-journal teaser + no-prepay reassurance. */
.detail-journal-teaser {
  margin: 12px 0 4px; padding: 10px 14px; border-radius: 12px;
  background: var(--fc-mist, #e8f4ee); color: var(--text-2, #4a5e4a);
  font-family: 'DM Sans', sans-serif; font-size: 13px; text-align: center;
}
.rp-no-prepay {
  text-align: center; margin: 8px 0 2px;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  color: var(--fc-forest, #1a5c38);
}
.already-bought-tag {
  background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 0.8rem; font-weight: 600;
  margin-left: 8px;
}

/* Reserve popup sheet */
.rp-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.rp-overlay.open { opacity: 1; pointer-events: all; }
.rp-sheet {
  width: 100%;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 20px 16px 90px;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 92vh;
  overflow-y: auto;
}
.rp-overlay.open .rp-sheet { transform: translateY(0); }
.rp-handle {
  width: 36px; height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 0 auto 16px;
}
.rp-title {
  font-family: 'Sora', sans-serif;
  font-size: 16px; font-weight: 800;
  color: var(--text-1, #1a2e1a);
  margin-bottom: 4px;
}
.rp-distance {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #aaa;
  margin-bottom: 14px;
}
.rp-qty-group { margin-bottom: 12px; }
.rp-qty-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #aaa;
}
.rp-qty-input {
  width: 80px;
  margin-top: 4px;
}
.rp-option {
  border: 1.5px solid #e8e8e8;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.rp-option.selected {
  border-color: var(--fc-forest, #1a5c38);
  background: #f5fbf7;
}
.rp-option-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.rp-option-icon { font-size: 1.4rem; }
.rp-option-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--text-1, #1a2e1a);
}
.rp-option-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.rp-chip {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  background: #f0f4f0; color: #666;
  border-radius: 20px;
  padding: 2px 9px;
}
.rp-chip.green {
  background: var(--fc-mist, #e8f4ee);
  color: var(--fc-forest, #1a5c38);
}
.rp-breakdown {
  margin-top: 10px;
  border-top: 0.5px solid #f0f0f0;
  padding-top: 8px;
  display: none;
}
.rp-option.selected .rp-breakdown { display: block; }
.rp-breakdown-row {
  display: flex; justify-content: space-between;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #888;
  padding: 2px 0;
}
.rp-breakdown-total {
  display: flex; justify-content: space-between;
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 800;
  color: var(--text-1, #1a2e1a);
  padding: 6px 0 0;
  border-top: 1px solid #e0e0e0;
  margin-top: 4px;
}
.rp-delivery-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; color: #bbb;
  margin-top: 6px;
}
.rp-delivery-warning {
  margin-top: 8px;
  padding: 8px 10px;
  background: #fff8e1;
  border-radius: 8px;
  border-left: 3px solid #f9a825;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: #7a6000;
  line-height: 1.5;
}
.rp-skip {
  text-align: center;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: #aaa;
  cursor: pointer;
  text-decoration: underline;
}
.rp-confirm-btn {
  width: 100%;
  padding: 15px;
  background: var(--fc-forest, #1a5c38);
  color: #fff; border: none;
  border-radius: 14px;
  font-family: 'Sora', sans-serif;
  font-size: 15px; font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
}
.rp-confirm-btn:disabled { background: #ccc; }

/* Share sheet + QR modal */
.share-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
}
.share-overlay.open { display: block; }
.share-sheet {
  position: fixed; bottom: -300px; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 32px;
  z-index: 9999;
  transition: bottom 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.share-sheet.open { bottom: 0; }
.share-handle {
  width: 36px; height: 4px;
  background: #ddd;
  border-radius: 4px;
  margin: 0 auto 16px;
}
.share-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem; font-weight: 800;
  color: var(--text-1, #1a2e1a);
  margin-bottom: 16px;
}
.share-list { display: flex; flex-direction: column; gap: 10px; }
.share-btn {
  display: flex; align-items: center; gap: 12px;
  border: none; border-radius: 12px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
}
.share-btn-whatsapp { background: #25D366; color: #fff; }
.share-btn-link { background: #f0f0f0; color: #333; }
.share-btn-qr { background: var(--fc-mist, #e8f4ee); color: var(--text-1, #1a2e1a); }
.share-btn-icon { font-size: 1.3rem; }
.share-cancel {
  background: none; border: none;
  color: #999;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  padding: 10px;
  cursor: pointer;
}

.qr-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
}
.qr-overlay.open { display: block; }
.qr-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px 20px;
  z-index: 9999;
  max-width: 340px; width: 88vw;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.qr-modal.open { display: block; }
.qr-modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem; font-weight: 800;
  color: var(--text-1, #1a2e1a);
  margin-bottom: 6px;
}
.qr-modal-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; color: #666;
  margin-bottom: 16px;
}
.qr-frame {
  background: #f9faf9;
  border-radius: 14px;
  padding: 14px;
  display: inline-block;
}
.qr-img {
  display: block;
  width: 240px; height: 240px;
  image-rendering: pixelated;
}
.qr-actions {
  display: flex; gap: 10px;
  margin-top: 18px;
}
.qr-action-btn {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
}
.qr-action-btn.primary { background: var(--text-1, #1a2e1a); color: #fff; }
.qr-action-btn.secondary { background: #f0f0f0; color: #333; }

/* ── CUSTOMER DELIVERY TRACKING ───────────────────────────────────────────── */

.trk-main {
  padding: 0 0 90px;
  background: #f5f9f5;
  min-height: 100vh;
}
.trk-banner { margin: 10px 12px 0; }
.trk-back-btn { margin-right: 6px; }

/* Route card */
.trk-card {
  margin: 12px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.trk-card-header {
  background: linear-gradient(135deg, #1a5c38 0%, #2d7a4f 60%, #3a9e62 100%);
  padding: 18px 16px 14px;
}
.trk-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 16px; font-weight: 800;
  color: #fff; margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.trk-deliverer-row {
  display: flex; align-items: center; gap: 10px;
}
.trk-deliverer-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.trk-deliverer-name {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700; color: #fff;
}
.trk-deliverer-vehicle {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: rgba(255,255,255,0.65);
  margin-top: 1px;
}

/* KPI strip inside the card header */
.trk-kpi-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 14px;
}
.trk-kpi {
  background: rgba(255,255,255,0.12);
  padding: 10px 8px;
  text-align: center;
}
.trk-kpi-val {
  font-family: 'Sora', sans-serif;
  font-size: 15px; font-weight: 800; color: #fff;
}
.trk-kpi-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* Two-step pickup/delivery timeline */
.trk-stops {
  background: #fff;
  padding: 16px 16px 4px;
}
.trk-stop {
  display: flex; align-items: flex-start; gap: 12px;
  padding-bottom: 16px;
  position: relative;
}
.trk-stop:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px; top: 32px;
  width: 2px; bottom: 0;
  background: #e0e0e0;
}
.trk-stop-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  position: relative; z-index: 1;
}
.trk-stop-dot.done {
  background: #e8f5e9;
  border: 2px solid #4caf50;
}
.trk-stop-dot.active {
  background: #fff3e0;
  border: 2px solid #ff9800;
}
.trk-stop-body { flex: 1; padding-top: 4px; }
.trk-stop-label {
  font-family: 'Sora', sans-serif;
  font-size: 13px; font-weight: 700;
  color: #1a1a1a; margin: 0 0 2px;
}
.trk-stop-label.done { color: #4caf50; }
.trk-stop-label.active { color: #e65100; }
.trk-stop-addr {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #888;
}
.trk-stop-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  display: inline-block; margin-top: 4px;
}
.trk-stop-badge.done { background: #e8f5e9; color: #2e7d32; }
.trk-stop-badge.active { background: #fff3e0; color: #e65100; }

/* Contact buttons (call + chat) */
.trk-contact-row {
  display: flex; gap: 10px;
  margin: 0 12px 12px;
}
.trk-contact-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 10px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  border: none; cursor: pointer;
}
.trk-contact-btn.call {
  background: #e8f5e9; color: #1a5c38;
}
.trk-contact-btn.msg {
  background: #e3f2fd; color: #1565c0;
}

/* Confirm-receipt card (customer only, after delivered) */
.trk-confirm-card {
  margin: 0 12px 12px;
  background: #fff;
  border-radius: 16px;
  border-left: 4px solid #4caf50;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.trk-confirm-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700; color: #1a5c38;
  margin: 0 0 6px;
}
.trk-confirm-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: #666;
  margin: 0 0 12px;
}
.trk-confirm-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #1a5c38, #2d7a4f);
  color: #fff;
  border: none; border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
}

/* Delivery confirmation photo */
.trk-photo-card {
  margin: 0 12px 12px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.trk-photo-card img {
  width: 100%; display: block;
  max-height: 220px; object-fit: cover;
}
.trk-photo-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: #777;
  padding: 8px 12px 10px;
}

/* Rejected state */
.trk-rejected {
  margin: 0 12px 12px;
  background: #fdecea;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: #c62828;
}
.trk-rejected a { color: #c62828; font-weight: 700; }

/* ── PROFILE EDIT FORM ────────────────────────────────────────────────────── */

.pe-main {
  padding: 64px 0 90px;
  background: #f5f9f5;
  min-height: 100vh;
}
.pe-alert { margin: 10px 12px 0; }

/* Avatar */
.pe-avatar-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px 16px; gap: 8px;
}
.pe-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(26,92,56,0.12);
  border: 2px solid #1a5c38;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 700;
  color: #1a5c38; overflow: hidden;
}
.pe-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pe-avatar-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; color: #1a5c38; cursor: pointer;
}
.pe-avatar-input { display: none; }

/* Card sections */
.pe-section {
  margin: 0 12px 12px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 0.5px solid rgba(0,0,0,0.08);
}
.pe-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 12px; font-weight: 700; color: #1a5c38;
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 14px;
}

/* Form fields */
.pe-field { margin-bottom: 14px; position: relative; }
.pe-field:last-child { margin-bottom: 0; }
.pe-field.mt12 { margin-top: 12px; }
.pe-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700; color: #666;
  text-transform: uppercase; letter-spacing: 0.05em;
  display: block; margin-bottom: 6px;
}
.pe-input {
  width: 100%; padding: 11px 14px;
  border: 0.5px solid rgba(0,0,0,0.15);
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: #1a2e1a;
  background: #fafafa;
  outline: none; transition: border-color 0.15s;
}
.pe-input:focus { border-color: #1a5c38; background: #fff; }
textarea.pe-input { resize: vertical; min-height: 80px; padding-top: 10px; }
textarea.pe-input.bio { min-height: 110px; }
.pe-input-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: #aaa; margin-top: 4px;
}
.pe-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Location autocomplete suggestions */
.pe-suggestions {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 2px 0 0; padding: 0;
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.pe-suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}
.pe-suggestion-item:hover { background: #f4f7f4; }
.pe-suggestion-item:last-child { border-bottom: none; }

/* Toggle pills */
.pe-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-pill-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  padding: 6px 13px; border-radius: 20px;
  border: 1.5px solid #d0d0d0; cursor: pointer;
  background: #f5f5f5; color: #666;
  transition: all 0.15s;
}
.pe-pill-btn.on {
  background: var(--fc-mist, #e8f4ee);
  border-color: var(--fc-forest, #1a5c38);
  color: var(--fc-forest, #1a5c38);
}

/* Farm gallery */
.pe-gallery-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 4px 0 8px; scrollbar-width: none;
}
.pe-gallery-scroll::-webkit-scrollbar { display: none; }
.pe-gallery-thumb {
  position: relative; flex-shrink: 0;
  width: 90px; height: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}
.pe-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pe-gallery-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff;
  border: none; cursor: pointer;
  font-size: 13px; line-height: 22px; text-align: center;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; padding: 0;
}
.pe-gallery-add {
  flex-shrink: 0; width: 90px; height: 90px;
  border-radius: 10px;
  border: 2px dashed #c0d8c8;
  background: #f5faf5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; color: #1a5c38; gap: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
}
.pe-gallery-add span { font-size: 1.6rem; line-height: 1; }

/* Save buttons */
.pe-save-btn {
  display: block; width: calc(100% - 24px);
  margin: 0 12px 12px;
  background: #1a5c38; color: #fff;
  border: none; border-radius: 10px;
  padding: 14px;
  font-family: 'Sora', sans-serif;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.pe-save-btn.secondary {
  background: #fff; color: #1a5c38;
  border: 1.5px solid #1a5c38;
}

/* Password section divider */
.pe-divider {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700; color: #bbb;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-align: center;
  margin: 8px 12px 12px;
  display: flex; align-items: center; gap: 8px;
}
.pe-divider::before, .pe-divider::after {
  content: ''; flex: 1; height: 1px; background: #e8e8e8;
}

/* Deliverer-specific settings rows */
.pe-settings-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  color: #1a2e1a;
}
.pe-settings-row + .pe-settings-row {
  border-top: 0.5px solid rgba(0,0,0,0.06);
}
.pe-settings-icon { font-size: 1.2rem; }
.pe-settings-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  flex: 1;
}
.pe-settings-chev { color: #ccc; font-size: 1.1rem; }

/* ── DELIVERER AVAILABILITY ───────────────────────────────────────────────── */

.av-main { padding: 64px 0 80px; }
.av-banner { margin: 10px 12px 0; }

/* Local override of the global .fc-form-row grid layout — this page wants
   the classic stacked layout (label on its own line) so long route lists
   don't fight the label for horizontal space. */
.fc-form-section .fc-form-row { display: block; }
.fc-form-section .fc-form-row label { display: block; margin-bottom: 4px; }
.fc-form-section .fc-form-row input,
.fc-form-section .fc-form-row textarea { width: 100%; }
.fc-form-section .fc-form-row textarea {
  min-height: 64px; resize: vertical;
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  border: none; outline: none; background: transparent; padding: 0;
}
.fc-form-section.overflow-visible,
.fc-form-section.overflow-visible .fc-form-row { overflow: visible; }

/* Day toggles */
.av-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 4px;
}
.av-day-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  gap: 4px; padding: 10px 4px;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid #e8e8e8;
  background: #fff;
  transition: all 0.15s;
  user-select: none;
}
/* Rate fields >=16px so iOS doesn't zoom-on-focus while filling the 4 numbers */
#baseFareInput, #pricePerKmInput, #minFareInput, #minAcceptableInput { font-size: 16px; }
.av-day-btn.active {
  background: var(--fc-mist, #e8f4ee);
  border-color: var(--fc-forest, #1a5c38);
}
.av-day-short {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700; color: #aaa;
}
.av-day-btn.active .av-day-short { color: var(--fc-forest, #1a5c38); }
.av-day-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e0e0e0;
}
.av-day-btn.active .av-day-dot { background: var(--fc-forest, #1a5c38); }

/* Route chips (with per-chip radius selector) */
.rp-chips-wrap {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 4px 0 8px;
}
.rp-chip-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--fc-mist, #e8f4ee);
  border: 1px solid var(--fc-forest, #1a5c38);
  border-radius: 999px;
  padding: 5px 4px 5px 11px;
  font-size: 13px; color: #1a2e1a;
  font-family: 'DM Sans', sans-serif;
}
.rp-chip-name {
  font-weight: 600;
  max-width: 140px;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-chip-radius {
  border: none; background: transparent;
  font-size: 12px; color: #1a5c38; font-weight: 600;
  padding: 0 2px; cursor: pointer; outline: none;
}
.rp-chip-radius:focus { text-decoration: underline; }
.rp-chip-remove {
  border: none;
  background: rgba(26,92,56,0.15);
  color: #1a5c38;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; margin-left: 2px;
}
.rp-chip-remove:hover { background: rgba(26,92,56,0.25); }
.rp-chip-hint {
  font-size: 11px; color: #888;
  margin-top: 4px;
}
.rp-map {
  height: 240px; width: 100%;
  border-radius: 12px; overflow: hidden;
  margin-top: 8px;
  border: 1px solid #e8e8e8;
  background: #e8f0e8;
}
.rp-map.is-loading {
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 13px;
}
.rp-map .leaflet-container { font-family: 'DM Sans', sans-serif; }

/* City autocomplete dropdown — shared by home + routes */
.av-dropdown-anchor { position: relative; }
.av-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  list-style: none;
  margin: 2px 0 0; padding: 4px 0;
  max-height: 220px;
  overflow-y: auto;
}
.av-dropdown-item {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.87rem;
  color: #333;
}
.av-dropdown-item:hover { background: #f5faf5; }

/* Vehicle picker */
.av-vehicle-list {
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 4px 0 8px;
}
.av-vehicle-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #e8e8e8;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.av-vehicle-row.selected {
  border-color: #1a5c38;
  background: #eef5ee;
}
.av-vehicle-row input[type="radio"] { display: none; }
.av-vehicle-icon { font-size: 1.3rem; }
.av-vehicle-name {
  flex: 1;
  font-size: 0.88rem; font-weight: 600;
  color: #1a2e1a;
}
.av-co2-pill {
  font-size: 0.73rem; font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: #d1fae5; color: #065f46;
}
.av-co2-pill.med { background: #fef3c7; color: #92400e; }
.av-co2-pill.high { background: #fee2e2; color: #991b1b; }
.av-co2-info {
  font-size: 0.82rem; color: #6b7a6b;
  padding: 4px 0 8px;
}
.av-capacity-row { margin-top: 8px; }

/* Pricing preview block */
.av-pricing-preview {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f0f7f0;
  border-left: 3px solid #1a5c38;
}
.av-pricing-preview-title {
  font-size: 0.82rem; font-weight: 700;
  color: #1a5c38;
  margin-bottom: 6px;
}
.av-pricing-preview-row {
  display: flex; justify-content: space-between;
  font-size: 0.84rem; color: #1a2e1a;
  padding: 2px 0;
}
.av-pricing-formula {
  font-size: 0.75rem; color: #6b7a6b;
  margin-top: 6px;
}
.av-pricing-hint {
  color: #888; font-size: 0.78rem;
  display: block; margin-top: 4px;
}

/* ── CUSTOMER BROWSE / DISCOVER ───────────────────────────────────────────── */
/* The browse page is the only customer screen that needs a hard-locked */
/* viewport (split map + list with no body scroll). Search/filter/listing */
/* classes use a `disc-` prefix because the existing `.fc-search-bar` and */
/* `.fc-search-input` styles in this file target a different (messages-list) */
/* layout and would clash. */

.disc-search-bar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  margin-top: 64px; /* offset for fixed dash-figma-header */
  background: #fff;
  border-bottom: 0.5px solid var(--fc-border, #e8f0e8);
}
.disc-search-icon {
  font-size: 16px; flex-shrink: 0; color: #999;
}
.disc-search-input {
  flex: 1;
  border: 1.5px solid #e0e0e0;
  border-radius: 22px;
  padding: 7px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: #1a2e1a;
  background: #f7faf7;
  outline: none;
  transition: border-color 0.15s;
}
.disc-search-input:focus {
  border-color: var(--fc-forest, #1a5c38);
  background: #fff;
}
.disc-search-input::placeholder { color: #bbb; }

/* Filter bar */
.fc-filter-bar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border-bottom: 0.5px solid var(--fc-border, #e8f0e8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fc-filter-bar::-webkit-scrollbar { display: none; }
.fc-filter-chip {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.fc-filter-chip:hover { border-color: var(--fc-forest, #1a5c38); color: var(--fc-forest, #1a5c38); }
.fc-filter-chip.active { background: var(--fc-forest, #1a5c38); color: #fff; border-color: var(--fc-forest, #1a5c38); }
.fc-filter-chip.disc-chip-season {
  text-decoration: none;
  background: #fef3c7; color: #92400e; border-color: #fbbf24;
}
.fc-filter-chip.disc-chip-fav {
  text-decoration: none;
  background: #fde8e8; color: #c0392b; border-color: #e74c3c;
}
.fc-filter-select {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  color: #555;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.fc-filter-select:focus { border-color: var(--fc-forest, #1a5c38); }
.disc-filter-sep {
  width: 1px; height: 20px;
  background: #e0e0e0;
  flex-shrink: 0;
}

/* Main split layout */
#discover-wrap {
  flex: 1; min-height: 0;
  display: flex; flex-direction: row;
}
#listings-panel {
  width: 48%;
  display: flex; flex-direction: column;
  border-right: 0.5px solid #e8f0e8;
  overflow: hidden;
  background: #f7faf7;
}
#results-header {
  padding: 10px 14px 6px;
  flex-shrink: 0;
}
#results-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700;
  color: #999; text-transform: uppercase;
  letter-spacing: 0.05em;
}
#listings-scroll {
  flex: 1; overflow-y: auto;
  padding: 6px 10px 80px;
}
#listings-scroll::-webkit-scrollbar { width: 3px; }
#listings-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* Listing card (horizontal, compact) */
.fc-lcard {
  display: flex; gap: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fc-lcard:hover, .fc-lcard.highlighted {
  border-color: var(--fc-forest, #1a5c38);
  box-shadow: 0 3px 14px rgba(0,0,0,0.12);
}
.fc-lcard.hidden, .fc-lcard.paginated-hidden { display: none; }
.fc-load-more {
  display: block; width: 90%; margin: 12px auto; padding: 10px;
  background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38); border: 1px solid var(--fc-sprout, #c8e6c9);
  border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.fc-load-more:hover { background: var(--fc-sprout, #c8e6c9); }
.fc-lcard-photo {
  width: 88px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--fc-mist, #e8f4ee), var(--fc-sprout, #c8e6c9)) center/cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; position: relative;
}
.fc-lcard-soldout {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #fff;
  text-align: center; padding: 4px;
}
.fc-fav-btn {
  position: absolute; top: 6px; right: 6px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
  border: none; border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  font-size: 17px; line-height: 1;
  transition: transform 0.2s ease;
}
.fc-fav-btn:active { transform: scale(1.25); }
@keyframes fc-fav-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.fc-fav-pop { animation: fc-fav-pop 0.3s ease; }
.fc-mcard .fc-fav-btn {
  position: static; width: 36px; height: 36px; flex-shrink: 0;
}
.fc-lcard-notify {
  background: #fff3e0; color: #e65100; border: 1.5px solid #ff9800;
  border-radius: 8px; padding: 6px 12px;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.fc-lcard-notify.fc-notify-active {
  background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38); border-color: #4caf50;
}
.fc-mcard .fc-lcard-notify { font-size: 11px; }
.fc-lcard-body {
  flex: 1; padding: 9px 10px 8px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-width: 0;
}
.fc-lcard-name {
  font-size: 13px; font-weight: 700;
  color: #1a2e1a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-lcard-meta {
  font-size: 11px; color: #999;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: 2px 0 6px;
}
.fc-lcard-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.fc-lcard-price {
  font-size: 13px; font-weight: 800;
  color: var(--fc-forest, #1a5c38);
}
.fc-lcard-qty {
  font-size: 11px; font-weight: 600;
  color: var(--fc-forest, #1a5c38);
}
.fc-lcard-qty.sold { color: #e53935; }
.fc-lcard-reserve {
  padding: 5px 10px;
  background: var(--fc-forest, #1a5c38);
  color: #fff; border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.fc-lcard-reserve:disabled { background: #bbb; cursor: not-allowed; }
.fc-lcard-already {
  font-size: 11px; background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38);
  border-radius: 6px; padding: 4px 8px; font-weight: 600;
}

#no-results {
  text-align: center; padding: 48px 20px;
  color: #bbb; font-size: 14px;
  display: none;
}
#no-results .no-results-icon { font-size: 2.5rem; margin-bottom: 10px; }
.fc-noresults-reset {
  margin-top: 14px; padding: 10px 18px; min-height: 44px;
  background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38);
  border: none; border-radius: 22px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700;
}

.disc-empty {
  text-align: center; padding: 48px 20px; color: #bbb;
}
.disc-empty-icon { font-size: 2.5rem; margin-bottom: 10px; }

/* Right panel: map */
#map-panel {
  flex: 1; position: relative; overflow: hidden;
}
#map { position: absolute; inset: 0; }

/* No-maps fallback: listings take full width, map panel hidden */
[data-no-maps] #listings-panel { width: 100%; border-right: none; }
[data-no-maps] #map-panel { display: none; }
@media (max-width: 700px) {
  [data-no-maps] #listings-panel { display: flex; }
  [data-no-maps] #mobile-drawer { display: none !important; }
  [data-no-maps] html, [data-no-maps] body { overflow: auto; }
}

/* Price pins on the map */
.price-pill {
  background: #fff;
  color: var(--fc-forest, #1a5c38);
  font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  border: 1.5px solid var(--fc-forest, #1a5c38);
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  user-select: none;
}
.price-pill.active {
  background: var(--fc-forest, #1a5c38);
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Mobile drawer */
#mobile-drawer { display: none; }

/* Reserve-sheet quantity selector */
.disc-qty-wrap { display: none; padding: 0 16px 12px; }
.disc-qty-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700;
  color: #666; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 6px;
}
.disc-qty-row { display: flex; align-items: center; gap: 10px; }
.disc-qty-btn {
  width: 44px; height: 44px;
  border-radius: 50%; border: 1.5px solid #d0d0d0;
  background: #f5f5f5;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.disc-qty-input {
  width: 80px; text-align: center; padding: 8px;
  border: 1.5px solid #d0d0d0; border-radius: 9px;
  font-family: 'Sora', sans-serif;
  font-size: 16px; font-weight: 700;
}
.disc-delivery-warning {
  margin: 4px 4px 8px; padding: 9px 12px;
  background: #fff8e1; border-radius: 10px;
  border-left: 3px solid #f9a825;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: #7a6000; line-height: 1.5;
}

/* Mobile-card action bar (right side of card) */
.disc-mcard-actions {
  display: flex; align-items: center; gap: 6px;
}
.disc-mcard-already {
  font-size: 11px; background: var(--fc-mist, #e8f4ee); color: var(--fc-forest, #1a5c38);
  border-radius: 6px; padding: 4px 8px; font-weight: 600;
}
.disc-listings-limit {
  text-align: center; padding: 16px;
  font-size: 13px; color: #888;
}

@media (max-width: 700px) {
  /* IMPORTANT: scope overflow:hidden to the discover page only.
     Unscoped, this rule killed vertical scroll on every mobile page
     (privacy, my-garden, reservations, ...). :has(#discover-wrap)
     targets just the browse/map page where we want the body locked
     so the user pans the Leaflet map instead of scrolling the page. */
  html:has(#discover-wrap), body:has(#discover-wrap) { overflow: hidden; }

  .disc-search-bar { padding: 7px 12px; }

  #discover-wrap {
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: auto;
  }
  #listings-panel { display: none; }
  #map-panel { width: 100%; height: 100%; flex: none; }

  #mobile-drawer {
    display: flex; flex-direction: column;
    position: fixed;
    bottom: 58px; /* bottom nav height */
    left: 0; right: 0;
    height: 160px;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.14);
    z-index: 200;
    transition: height 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
  }
  #mobile-drawer.expanded {
    height: calc(78vh - 58px);
  }

  #drawer-handle {
    flex-shrink: 0;
    padding: 10px 16px 8px;
    cursor: pointer;
    user-select: none;
  }
  #drawer-knob {
    width: 36px; height: 4px;
    background: #ddd; border-radius: 2px;
    margin: 0 auto 8px;
  }
  #drawer-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; font-weight: 600;
    color: #444;
    display: block; text-align: center;
  }
  #drawer-scroll {
    flex: 1; overflow-y: auto;
    padding: 4px 12px 16px;
    -webkit-overflow-scrolling: touch;
  }

  /* Mobile cards: horizontal, slightly bigger */
  .fc-mcard {
    display: flex; gap: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 0.5px solid #eee;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    cursor: pointer;
  }
  .fc-mcard.hidden, .fc-mcard.paginated-hidden { display: none; }
  .fc-mcard-photo {
    width: 96px; height: 80px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--fc-mist, #e8f4ee), var(--fc-sprout, #c8e6c9)) center/cover;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
  }
  .fc-mcard-body {
    flex: 1; padding: 9px 10px 8px;
    display: flex; flex-direction: column; justify-content: space-between;
    min-width: 0;
  }
  .fc-mcard-name {
    font-size: 14px; font-weight: 700; color: #1a2e1a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .fc-mcard-meta {
    font-size: 11px; color: #999; margin: 2px 0 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .fc-mcard-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
  }
  .fc-mcard-price {
    font-size: 13px; font-weight: 800;
    color: var(--fc-forest, #1a5c38);
  }
  .fc-mcard-qty { font-size: 11px; color: var(--fc-forest, #1a5c38); font-weight: 600; }
  .fc-mcard-reserve {
    padding: 5px 11px;
    background: var(--fc-forest, #1a5c38); color: #fff;
    border: none; border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px; font-weight: 700; cursor: pointer;
  }
  .fc-mcard-reserve:disabled { background: #bbb; }
}

/* ── #20 DARK MODE ── (temporarily disabled) */
