:root {
  --bg: #FDF7FA;
  --card: #ffffff;
  --ink: #3A2E3F;
  --mauve: #8a7790;
  --mauve-soft: #cdbcd2;
  --berry: #C2557E;          /* Berry Rose — CTAs */
  --berry-deep: #a8456b;
  --lavender: #D9C8EF;
  --pink: #F3C9DD;
  --mint-bg: #D6F0E0;
  --mint-ink: #2F8F5B;
  --line: #efe4ea;
  --shadow: 0 4px 18px rgba(120, 80, 110, 0.10);
  --radius: 18px;
  --hero-grad: linear-gradient(115deg, #DCC9F0 0%, #F0C4DA 55%, #F4C0D2 100%);
  --tile-grad: linear-gradient(135deg, #D9C8EF 0%, #F3C9DD 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.01em; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(253, 247, 250, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.brand span { color: var(--berry); }
.brand img { height: 30px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-nav a { color: var(--mauve); }
.nav-cta {
  background: var(--berry);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500;
}
.site-nav .nav-badge {
  display: inline-block; background: #C2557E; color: #fff;
  font-size: 11px; font-weight: 500; min-width: 18px; height: 18px;
  line-height: 18px; text-align: center; border-radius: 999px; padding: 0 5px;
  margin-left: 2px; vertical-align: middle;
}
.site-nav .nav-badge[hidden] { display: none; }

/* Logged-in customer header: two bare Berry Rose icons flush right.
   Selectors are scoped to .site-nav--icons so they beat ".site-nav a" (which
   would otherwise force the icons to Mauve). */
.site-nav--icons { gap: 14px; }
.site-nav--icons .hdr-icon { position: relative; display: flex; align-items: center; color: #C2557E; line-height: 1; }
.site-nav--icons .hdr-icon .ti { font-size: 22px; color: #C2557E; }
.hdr-dot {
  position: absolute; top: -1px; right: -1px;
  width: 7px; height: 7px; border-radius: 50%; background: #2C1A24;
}
.hdr-dot[hidden] { display: none; }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* App-style bottom nav for logged-in customers (4 boxes, fixed) */
.cust-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #F9E4EE;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.cust-nav-inner {
  max-width: 344px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.cust-nav-box {
  position: relative; aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(160deg, #D4C8E0 0%, #F2C4D8 100%);
  border: 1.5px solid #C2557E; border-radius: 10px;
  text-decoration: none;
}
.cust-nav-icon { font-size: 22px; color: #C2557E; line-height: 1; }
.cust-nav-label { font-size: 8px; color: #C2557E; font-weight: 500; line-height: 1; }
.cust-nav-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%; background: #2C1A24;
}
.cust-nav-dot[hidden] { display: none; }
body.has-cust-nav { padding-bottom: 124px; }
/* Keep the add-to-home-screen banner above the fixed bottom nav. */
body.has-cust-nav .bkd-a2hs { bottom: 104px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary { background: var(--berry); color: #fff; }
.btn-primary:hover { background: var(--berry-deep); }
.btn-outline { background: #fff; color: var(--berry); border: 1.5px solid var(--berry); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Hero */
.hero {
  background: var(--hero-grad);
  border-radius: 0 0 28px 28px;
  margin: 0 -24px;
  padding: 64px 24px 56px;
  text-align: center;
}
.hero-compact { padding: 44px 24px 40px; }
.hero-inner { max-width: 600px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.18em; font-weight: 500;
  color: var(--berry-deep); margin-bottom: 12px;
}
.hero h1 { font-size: 40px; line-height: 1.12; margin: 0 0 14px; }
.hero h1 span { color: var(--berry); }
.hero-sub { font-size: 16px; color: #6b5a72; margin: 0 0 26px; }
.hero-reassure { text-align: center; color: var(--mauve); font-size: 13px; font-weight: 400; margin: 0 0 8px; }

/* Date-first search block */
.search-block {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 8px 26px rgba(150, 90, 130, 0.18);
  max-width: 560px; margin: 0 auto;
  text-align: left;
  accent-color: var(--berry);
}
.search-prompt { font-weight: 500; font-size: 16px; color: var(--ink); margin-bottom: 12px; }

/* CSS-only single/range toggle */
.mode-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.mode-tabs { display: inline-flex; gap: 4px; background: #f6ecf1; border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.mode-tabs label {
  font-size: 13px; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  color: var(--mauve); transition: all 0.12s ease;
}
#mode-single:checked ~ .mode-tabs label[for="mode-single"],
#mode-range:checked ~ .mode-tabs label[for="mode-range"] {
  background: var(--berry); color: #fff; font-weight: 500;
}

.date-fields { margin-bottom: 14px; }
.df-range { display: none; align-items: center; gap: 10px; }
#mode-range:checked ~ .date-fields .df-single { display: none; }
#mode-range:checked ~ .date-fields .df-range { display: flex; }
.to-sep { color: var(--mauve); font-size: 14px; }

.search-block input[type="date"],
.search-block input[type="text"],
.search-block input[type="search"] {
  font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--mauve-soft); border-radius: 999px;
  padding: 12px 18px; background: #fff; width: 100%;
  box-sizing: border-box; max-width: 100%; min-width: 0;
  -webkit-appearance: none; appearance: none;
}
.df-range input[type="date"] { flex: 1; min-width: 0; }
.search-block input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }

.search-geo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.search-geo input[type="text"] { flex: 1; }
.search-geo select {
  font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--mauve-soft); border-radius: 999px;
  padding: 12px 18px; background: #fff; box-sizing: border-box;
  -webkit-appearance: none; appearance: none; cursor: pointer; flex-shrink: 0;
}
.search-geo input:focus, .search-geo select:focus { outline: none; border-color: var(--berry); }

.search-secondary { display: flex; align-items: center; gap: 10px; }
.search-icon { color: var(--berry); display: flex; flex-shrink: 0; }
.search-secondary input[type="search"] { flex: 1; }
/* Date + search placeholders share the same Mauve so the two fields match. */
.search-block input::placeholder { color: #7A5068; }
.search-secondary .btn { flex-shrink: 0; }

/* Sections */
.section { padding: 36px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2, .section h2 { font-size: 24px; margin: 0; }
.see-all { color: var(--berry); font-weight: 500; font-size: 14px; }
.empty { color: var(--mauve); text-align: center; padding: 48px 0; }

/* Directory controls */
.dir-controls { padding: 24px 0 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  border: 1px solid var(--mauve-soft);
  background: #fff; color: var(--mauve);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 400;
  transition: all 0.12s ease;
}
.pill:hover { border-color: var(--berry); color: var(--berry); }
.pill-active { background: var(--berry); color: #fff; border-color: var(--berry); font-weight: 500; }
.result-count { color: var(--mauve); font-size: 14px; margin-top: 16px; }
.result-count strong { color: var(--ink); font-weight: 500; }

/* Baker grid + full-bleed cards */
.baker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.baker-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

/* Favorite (heart) toggle. Berry Rose when filled, outline when not. */
.fav-btn {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 999px;
  background: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  box-shadow: 0 2px 8px rgba(44, 26, 36, 0.18);
  -webkit-tap-highlight-color: transparent;
}
.fav-btn:active { transform: scale(0.92); }
.fav-btn-inline { position: static; box-shadow: none; background: transparent; width: 34px; height: 34px; flex: 0 0 auto; }
.fav-heart { width: 20px; height: 20px; fill: none; stroke: var(--berry); stroke-width: 2; }
.fav-btn[aria-pressed="true"] .fav-heart { fill: var(--berry); stroke: var(--berry); }
.profile-title-row { display: flex; align-items: center; gap: 10px; }
.baker-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(120, 80, 110, 0.16); }
.card-photo {
  position: relative;
  height: 168px;
  background-size: cover; background-position: center;
  background-color: #eadcf0;
}
.card-photo-empty { background: var(--tile-grad); display: flex; align-items: center; justify-content: center; }
.card-photo-emoji { font-size: 48px; opacity: 0.6; }
.card-badge {
  position: absolute; top: 12px; left: 12px;
}
.card-loc {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.92); color: var(--ink);
  font-size: 12px; padding: 4px 12px; border-radius: 999px; font-weight: 500;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 { margin: 0; font-size: 17px; }
.card-bio {
  font-size: 14px; color: var(--mauve); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.taking { font-size: 13px; color: var(--mint-ink); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.taking .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--mint-ink); display: inline-block; }
.taking-off { color: var(--mauve); }

/* Badges */
.badge { font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 999px; display: inline-block; }
.badge-verified { background: var(--mint-bg); color: var(--mint-ink); }
.badge-founding { background: linear-gradient(120deg, var(--lavender), var(--pink)); color: #6b3b58; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #fbe8f0; color: var(--berry); font-size: 12px; padding: 4px 11px; border-radius: 999px; }

/* How it works */
.how { text-align: center; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.how-step { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--berry); color: #fff; font-weight: 500; margin-bottom: 10px;
}
.how-step h4 { margin: 4px 0; font-size: 16px; }
.how-step p { color: var(--mauve); font-size: 14px; margin: 0; }

/* Profile */
.crumbs { padding: 24px 0 16px; }
.crumbs a { color: var(--mauve); font-size: 14px; }
.profile-card { background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px; }
.profile-banner {
  height: 200px; background: var(--tile-grad);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.banner-emoji { font-size: 64px; opacity: 0.7; }
.profile-head { padding: 26px 30px 32px; }
.profile-headline { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.profile-headline h1 { font-size: 28px; margin: 0; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-location { color: var(--mauve); font-size: 15px; margin-top: 6px; }
.profile-bio { font-size: 15px; color: #5f5165; margin: 16px 0 4px; max-width: 640px; }

.profile-section { padding: 22px 0; border-top: 1px solid var(--line); margin-top: 18px; }
.section-label { font-size: 12px; letter-spacing: 0.14em; color: var(--mauve); margin-bottom: 14px; }

/* Menu rows */
.menu-rows { display: flex; flex-direction: column; }
.menu-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-row:last-child { border-bottom: none; }
.menu-text { flex: 1 1 auto; min-width: 130px; }
.menu-name { font-weight: 500; font-size: 15px; overflow-wrap: break-word; }
.menu-sub { font-size: 13px; color: var(--mauve); margin-top: 2px; }
.menu-price { color: var(--berry); font-weight: 500; font-size: 15px; white-space: nowrap; }
.menu-price-col { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.menu-min { color: var(--mauve); font-weight: 400; font-size: 12px; white-space: normal; }
.order-min { color: var(--mauve); font-size: 14px; margin: -14px 0 20px; }

/* Portfolio */
.portfolio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.portfolio-tile { aspect-ratio: 1; border-radius: 14px; background-size: cover; background-position: center; }
.portfolio-empty { background: var(--tile-grad); }
.order-cover { width: 100%; height: 220px; border-radius: 16px; background-size: cover; background-position: center; margin-bottom: 16px; }
.portfolio-soon { color: var(--mauve); font-size: 14px; }

/* Reviews */
.reviews { display: flex; flex-direction: column; gap: 14px; }
.review { background: #fbf4f8; border-radius: 14px; padding: 16px; }
.review-head { display: flex; justify-content: space-between; align-items: center; }
.review-name { font-weight: 500; }
.review-stars { color: var(--berry); letter-spacing: 2px; }
.review p { margin: 8px 0 0; font-size: 14px; color: #5f5165; }

/* Profile actions */
.profile-actions { display: flex; gap: 12px; margin-top: 26px; }
.profile-actions .btn-block { flex: 1; }
.custom-quote {
  margin-top: 14px; text-align: center;
  background: linear-gradient(120deg, #f3eafb, #fbe8f0);
  border-radius: 999px; padding: 12px 18px;
  font-size: 13px; color: var(--mauve);
}
.custom-quote a { color: var(--berry); font-weight: 500; }

/* Not found */
.notfound { text-align: center; padding: 90px 0; }
.notfound h1 { font-size: 30px; }
.notfound p { color: var(--mauve); margin-bottom: 24px; }

/* Menu request links (profile) */
.menu-right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; margin-left: auto; }
.menu-request { color: var(--berry); font-weight: 500; font-size: 14px; border: 1px solid var(--berry); padding: 6px 14px; border-radius: 999px; flex: 0 0 auto; white-space: nowrap; }
.menu-request:hover { background: var(--berry); color: #fff; }

/* ── Order flow ─────────────────────────────────────────────── */
.order-flow { max-width: 560px; margin: 0 auto; padding-bottom: 48px; }
.order-progress { display: flex; gap: 8px; justify-content: center; margin: 8px 0 24px; }
.pdot { width: 28px; height: 5px; border-radius: 999px; background: var(--line); transition: background 0.15s ease; }
.pdot.active { background: var(--berry); }
.ostep { display: none; }
.ostep.active { display: block; }
.ostep h1 { font-size: 26px; margin: 0 0 4px; }
.ostep h2 { font-size: 22px; margin: 0 0 4px; }
.price-line { color: var(--berry); font-weight: 500; font-size: 17px; margin-bottom: 20px; }
.muted { color: var(--mauve); font-size: 14px; }

.field { margin: 18px 0; }
.field > label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 10px; }
textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--mauve-soft); border-radius: 16px; padding: 12px 16px; resize: vertical;
}

/* Steppers */
.stepper { display: inline-flex; align-items: center; gap: 16px; }
.stepper.big { gap: 22px; }
.step-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--mauve-soft);
  background: #fff; color: var(--berry); font-size: 20px; line-height: 1; cursor: pointer;
}
.step-btn:hover { border-color: var(--berry); }
.step-val { min-width: 28px; text-align: center; font-weight: 500; font-size: 17px; }

/* Date pills */
.date-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.date-pill {
  border: 1px solid var(--mauve-soft); background: #fff; color: var(--ink);
  padding: 10px 16px; border-radius: 999px; font-family: inherit; font-size: 14px; cursor: pointer;
}
.date-pill:hover { border-color: var(--berry); }
.date-pill.selected { background: var(--berry); color: #fff; border-color: var(--berry); }

/* Add-ons */
.addons { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.addon-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.addon-name { display: block; font-weight: 500; font-size: 15px; }
.addon-meta { display: block; color: var(--mauve); font-size: 13px; }
.addon-check { position: relative; display: inline-flex; cursor: pointer; }
.addon-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.addon-box { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--mauve-soft); display: inline-block; transition: all 0.12s ease; }
.addon-check input:checked ~ .addon-box { background: var(--berry); border-color: var(--berry); }
.addon-check input:checked ~ .addon-box::after { content: '✓'; color: #fff; display: flex; align-items: center; justify-content: center; height: 100%; font-size: 15px; }

.running-total { text-align: right; font-size: 15px; color: var(--mauve); margin: 18px 0; }
.running-total strong { color: var(--ink); font-size: 18px; font-weight: 500; margin-left: 6px; }

.step-actions { margin-top: 26px; }
.step-actions.two { display: flex; gap: 12px; }
.step-actions.two .btn { flex: 1; }

/* Summary */
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.sum-row.plain span:last-child { color: var(--mauve); }
.sum-divider { height: 1px; background: var(--line); margin: 10px 0; }
.sum-total .sum-row { font-weight: 500; font-size: 18px; padding-top: 8px; }
.sum-total .sum-row span:last-child { color: var(--berry); }
.pay-note { background: #f3eafb; color: #6b5a72; border-radius: 14px; padding: 12px 16px; font-size: 13px; margin: 18px 0; }
.tax-disclaimer { color: #7A5068; font-size: 11px; font-weight: 400; text-align: center; margin-top: 14px; }
/* "This is a request, not a confirmed order" helper text under the send button. */
.request-disclaimer { color: #7A5068; font-size: 12px; font-weight: 400; text-align: center; line-height: 1.45; margin: 12px 0 0; }
.done-card .done-lead { margin-bottom: 10px; }
.done-reassure { color: #7A5068; font-size: 13px; font-weight: 400; line-height: 1.45; margin: 0 0 24px; }

/* Logged-out signup modal on baker profiles */
.bsm-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(44, 26, 36, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.bsm-overlay[hidden] { display: none; }
.bsm-card {
  width: 100%; max-width: 420px; background: #FDF6F9;
  border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(44, 26, 36, 0.35);
}
.bsm-header {
  background: #C2557E; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.bsm-logo { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.bsm-close { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.bsm-body { padding: 22px 22px 24px; }
.bsm-title { margin: 0 0 8px; color: #2C1A24; font-size: 20px; font-weight: 500; line-height: 1.25; }
.bsm-sub { margin: 0 0 18px; color: #7A5068; font-size: 14px; line-height: 1.5; }
.bsm-form { display: flex; flex-direction: column; gap: 10px; }
.bsm-two { display: flex; gap: 10px; }
.bsm-two input { flex: 1; min-width: 0; }
.bsm-form input {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 15px; color: #2C1A24;
  background: #fff; border: 1.5px solid #D4C8E0; border-radius: 12px; padding: 12px 14px;
}
.bsm-form input::placeholder { color: #7A5068; }
.bsm-form input:focus { outline: none; border-color: #C2557E; }
.bsm-submit {
  margin-top: 4px; background: #C2557E; color: #fff; border: 0;
  font-family: inherit; font-size: 15px; font-weight: 500;
  padding: 14px; border-radius: 999px; cursor: pointer;
}
.bsm-submit:disabled { opacity: 0.7; cursor: wait; }
.bsm-error { margin: 4px 0 0; color: #C2557E; font-size: 13px; }
.bsm-signin { margin: 16px 0 0; text-align: center; color: #7A5068; font-size: 13px; }
.bsm-signin a { color: #C2557E; font-weight: 500; }

.done-card { text-align: center; padding: 40px 16px; }
.done-emoji { font-size: 52px; }
.done-card h2 { margin: 12px 0 8px; }
.done-card p { color: var(--mauve); margin-bottom: 24px; }

.form-error { color: #b3306b; font-size: 14px; margin-top: 12px; }
.form-note { color: var(--mint-ink); font-size: 14px; margin-top: 12px; }

/* Auth pages */
.auth-wrap { max-width: 420px; margin: 48px auto; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; margin: 0 0 6px; }
.auth-card .field input {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--mauve-soft); border-radius: 999px; padding: 12px 16px;
}
.auth-card .btn-block { margin-top: 8px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--mauve); margin: 18px 0 0; }
.auth-switch a { color: var(--berry); font-weight: 500; }

/* ── Customer account screens ───────────────────────────────── */
.cust-page { max-width: 620px; margin: 0 auto; padding-bottom: 48px; }
.cust-page h1 { font-size: 26px; margin: 8px 0 18px; }
.cust-tabs { display: flex; gap: 8px; margin: 16px 0 24px; }
.cust-tabs a { padding: 9px 18px; border-radius: 999px; font-size: 14px; color: var(--mauve); border: 1px solid var(--line); }
.cust-tabs a.active { background: var(--berry); color: #fff; border-color: var(--berry); }

/* Profile */
.profile-top { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.cust-avatar {
  position: relative; width: 96px; height: 96px; border-radius: 999px; flex-shrink: 0;
  overflow: hidden; cursor: pointer; background: var(--tile-grad);
  display: flex; align-items: center; justify-content: center;
}
.cust-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* No-photo placeholder: a person icon in brand Berry Rose, marking the circle as a photo upload slot. */
.avatar-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: #F2C4D8;
}
.avatar-placeholder .ti { font-size: 44px; color: #C2557E; }
.avatar-edit { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(58,46,63,0.6); color: #fff; font-size: 11px; text-align: center; padding: 3px 0; }
.cust-avatar.uploading { opacity: 0.6; }
.profile-fields { flex: 1; min-width: 240px; }
.two-col { display: flex; gap: 12px; }
.two-col .field { flex: 1; }
.profile-fields .field input {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--mauve-soft); border-radius: 12px; padding: 10px 14px;
}
.readonly { color: var(--mauve); padding: 10px 0; font-size: 15px; }
.save-state { color: var(--mint-ink); font-size: 14px; margin-left: 10px; }

.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { cursor: pointer; border: 1px solid var(--mauve-soft); color: var(--mauve); padding: 7px 14px; border-radius: 999px; font-size: 13px; }
.tag-chip input { display: none; }
.tag-chip.on { background: #fbe8f0; border-color: var(--berry); color: var(--berry); }

.rating-display { display: flex; align-items: center; gap: 10px; }
.rating-stars { color: var(--berry); letter-spacing: 2px; font-size: 20px; }
.rating-num { font-weight: 500; font-size: 18px; }
.rating-count { color: var(--mauve); }
.rating-empty { color: var(--mauve); font-size: 14px; }

.mini-orders { display: flex; flex-direction: column; gap: 10px; }
.mini-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.mini-order-name { font-weight: 500; }
.mini-order-sub { color: var(--mauve); font-size: 13px; }

/* Order list (past orders) */
.order-list { display: flex; flex-direction: column; gap: 14px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.order-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.row-thumb { width: 56px; height: 56px; border-radius: 12px; background-size: cover; background-position: center; flex-shrink: 0; background-color: #eadcf0; }
.row-thumb-empty { background: var(--tile-grad); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.order-info { display: flex; flex-direction: column; min-width: 0; }
.order-baker { font-weight: 500; }
.order-item { color: var(--ink); font-size: 14px; }
.order-date { color: var(--mauve); font-size: 13px; }
.order-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.order-total { font-weight: 500; }
.order-details-link { color: var(--berry); font-size: 13px; }

/* Status badges */
.status-badge { font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 999px; display: inline-block; }
.status-pending { background: #efe6fb; color: #6b4fa0; }
.status-confirmed { background: #e2f0fb; color: #2f6fa0; }
.status-fulfilled { background: var(--mint-bg); color: var(--mint-ink); }
.status-disputed { background: #fdeecf; color: #9a6a1a; }
.status-cancelled { background: #f0e7ec; color: var(--mauve); }

/* Order status page */
.order-status-page .from-baker { margin-top: -10px; margin-bottom: 16px; }
.status-banner { border-radius: 14px; padding: 14px 18px; font-size: 15px; margin-bottom: 20px; }
.status-banner.status-pending { background: #efe6fb; color: #5a3f8f; }
.status-banner.status-confirmed { background: #e2f0fb; color: #2a6190; }
.status-banner.status-fulfilled { background: var(--mint-bg); color: var(--mint-ink); }
.status-banner.status-disputed { background: #fdeecf; color: #8a5e16; }
.status-banner.status-cancelled { background: #f0e7ec; color: var(--mauve); }

.timeline { display: flex; gap: 0; margin: 8px 0 24px; }
.tl-step { flex: 1; text-align: center; position: relative; color: var(--mauve); font-size: 12px; }
.tl-step .tl-dot { width: 14px; height: 14px; border-radius: 999px; background: var(--line); display: block; margin: 0 auto 6px; }
.tl-step.done .tl-dot { background: var(--berry); }
.tl-step.current .tl-label { color: var(--berry); font-weight: 500; }
.tl-step::before { content: ''; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.tl-step:first-child::before { display: none; }
.tl-step.done::before { background: var(--berry); }

.star-input { display: flex; gap: 6px; font-size: 32px; color: var(--berry); margin: 10px 0 16px; }
.star-input .star { background: none; border: none; cursor: pointer; color: var(--berry); font-size: 32px; line-height: 1; padding: 0; }
.status-actions { display: flex; gap: 12px; margin-top: 26px; }
.status-actions .btn { flex: 1; }

@media (max-width: 640px) {
  .two-col { flex-direction: column; gap: 0; }
}

/* ── Messaging ──────────────────────────────────────────────── */
.msg-page { max-width: 860px; }
.msg-layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.thread-list { display: flex; flex-direction: column; gap: 8px; }
.empty-threads { padding: 16px; }
.thread-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); position: relative; }
.thread-item.active { border-color: var(--berry); background: #fdf2f7; }
.thread-thumb { width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0; background-size: cover; background-position: center; background-color: #eadcf0; display: flex; align-items: center; justify-content: center; }
.thread-thumb-empty { background: var(--tile-grad); font-size: 20px; }
.thread-meta { min-width: 0; flex: 1; }
.thread-name { display: block; font-weight: 500; font-size: 14px; }
.quote-tag { background: #efe6fb; color: #6b4fa0; font-size: 10px; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.thread-preview { display: block; color: var(--mauve); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--berry); flex-shrink: 0; }

.thread-view { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--card); min-height: 460px; overflow: hidden; }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-baker { display: inline-flex; align-items: center; gap: 10px; }
.thread-baker-name { font-weight: 500; }
.quote-banner { background: linear-gradient(120deg, #f3eafb, #fbe8f0); color: #6b4fa0; padding: 10px 18px; font-size: 13px; }
.bubbles { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 460px; }
.bubbles-empty { margin: auto; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.bubble-text { white-space: pre-wrap; word-wrap: break-word; }
.bubble-time { display: block; font-size: 10px; opacity: 0.7; margin-top: 3px; }
.bubble-customer { align-self: flex-end; background: var(--berry); color: #fff; border-bottom-right-radius: 5px; }
.bubble-baker { align-self: flex-start; background: #efe6fb; color: var(--ink); border-bottom-left-radius: 5px; }
.composer { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.composer input { flex: 1; font-family: inherit; font-size: 15px; border: 1px solid var(--mauve-soft); border-radius: 999px; padding: 11px 16px; }
.composer .btn { flex-shrink: 0; }
.thread-empty { margin: auto; padding: 40px; text-align: center; }

@media (max-width: 700px) {
  .msg-layout { grid-template-columns: 1fr; }
  .thread-list { flex-direction: row; overflow-x: auto; }
  .thread-item { min-width: 200px; }
  .thread-preview { max-width: 140px; }
}

/* Ratings */
.rating-line { color: var(--berry); font-weight: 500; font-size: 15px; margin: 4px 0 8px; }
.rating-line .rating-count { color: var(--mauve); font-weight: 400; }
.card-body .rating-line { font-size: 14px; }
#ratePrompt textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--mauve-soft); border-radius: 14px; padding: 12px 16px;
  margin-bottom: 12px; resize: vertical;
}
.review-own { font-size: 15px; color: #5f5165; margin: 8px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 24px; text-align: center; color: var(--mauve); font-size: 14px; }
.footer-links { margin-top: 6px; }
.footer-links a { color: var(--berry); }
.footer-baker-cta { display: block; margin-top: 14px; color: #7A5068; font-size: 12px; text-decoration: none; }

/* Responsive */
@media (max-width: 640px) {
  .site-nav { gap: 12px; font-size: 13px; }
  /* Hide marketing links on mobile, but keep the customer header icons. */
  .site-nav a:not(.nav-cta):not(.hdr-icon) { display: none; }
  .site-nav--icons { gap: 14px; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 44px 20px 40px; }
  .how-grid { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .profile-actions { flex-direction: column; }
  .profile-head { padding: 22px 20px 26px; }
  .search-secondary { flex-wrap: wrap; }
  .search-secondary input[type="search"] { flex: 1 1 100%; order: 1; }
  .search-secondary .search-icon { display: none; }
  .search-secondary .btn { flex: 1 1 100%; order: 2; }
}

/* ── AI FAQ widget (/faq) ── */
.faq-page { max-width: 640px; margin: 0 auto; padding: 24px 0 48px; }
.faq-title { font-size: 28px; font-weight: 500; color: #2C1A24; text-align: center; margin: 8px 0 6px; }
.faq-subtitle { color: #7A5068; font-size: 15px; text-align: center; margin: 0 0 24px; }
.faq-thread { display: flex; flex-direction: column; gap: 12px; min-height: 80px; margin-bottom: 16px; }
.faq-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-pill { background: #fff; border: 1.5px solid #D4C8E0; color: #C2557E; border-radius: 999px; padding: 9px 16px; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.faq-pill:hover { border-color: #C2557E; }
.faq-bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; max-width: 88%; }
.faq-user { align-self: flex-end; background: #C2557E; color: #fff; border-bottom-right-radius: 4px; }
.faq-bot { align-self: flex-start; background: #FDF6F9; color: #2C1A24; border: 1px solid #F0E8EE; border-bottom-left-radius: 4px; }
.faq-inputbar { display: flex; gap: 8px; }
.faq-inputbar input { flex: 1; min-width: 0; border: 1.5px solid #D4C8E0; border-radius: 999px; padding: 13px 18px; font-family: inherit; font-size: 15px; color: #2C1A24; background: #fff; outline: none; }
.faq-inputbar input::placeholder { color: #7A5068; }
.faq-inputbar input:focus { border-color: #C2557E; }
.faq-send { background: #C2557E; color: #fff; border: 0; border-radius: 999px; padding: 0 22px; font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
