/* ============================================================
   Pasta Pass Diary — styles
   Palette pulled from olivegarden.com's own stylesheet:
   deep olive green, olive-yellow, tomato red/orange, cream,
   golden amber, breadstick brown.
   ============================================================ */

:root {
  --cream: #fdf7f0;
  --cream-alt: #ffedd8;
  --cream-card: #fffaf2;
  --green-deep: #303e1e;
  --green-mid: #46592c;
  --olive: #a8ad00;
  --tomato-deep: #b03d27;
  --tomato-bright: #f15a3d;
  --gold: #f0a74c;
  --gold-bright: #fda330;
  --brown: #54301a;
  --ink: #2a2c25;
  --ink-muted: #756f5e;
  --line: rgba(48, 62, 30, 0.12);
  --shadow-soft: 0 10px 30px rgba(48, 62, 30, 0.1);
  --shadow-card: 0 6px 18px rgba(48, 62, 30, 0.09);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --font-body: "Nunito", sans-serif;
  --font-display: "Fredoka", sans-serif;
  --font-script: "Pacifico", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(48,62,30,0.055) 1.5px, transparent 0);
  background-size: 26px 26px;
  overflow-x: hidden;
  overflow-y: visible;
}
body.modal-open { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--green-deep); margin: 0 0 .4em; }
p { line-height: 1.6; color: var(--ink-muted); margin: 0 0 1em; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.script { font-family: var(--font-script); color: var(--tomato-deep); font-weight: 400; }

/* ---------------- decorative floating flourishes ---------------- */
.bg-flourish { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.flourish {
  position: absolute;
  font-size: 28px;
  opacity: .16;
  animation: drift linear infinite;
  filter: saturate(0.9);
}
.f1 { left: 4%;  top: 8%;  animation-duration: 22s; }
.f2 { left: 92%; top: 14%; animation-duration: 26s; animation-delay: -4s; font-size: 24px; }
.f3 { left: 14%; top: 62%; animation-duration: 19s; animation-delay: -8s; }
.f4 { left: 80%; top: 55%; animation-duration: 24s; animation-delay: -12s; }
.f5 { left: 48%; top: 3%;  animation-duration: 30s; animation-delay: -2s; font-size: 22px; }
.f6 { left: 60%; top: 78%; animation-duration: 21s; animation-delay: -6s; }
.f7 { left: 6%;  top: 88%; animation-duration: 27s; animation-delay: -14s; }
.f8 { left: 36%; top: 40%; animation-duration: 23s; animation-delay: -10s; font-size: 20px; }
@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(18px, -26px) rotate(12deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253, 247, 240, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { font-size: 30px; position: relative; display: inline-block; transform: rotate(-6deg); }
.logo-dot {
  position: absolute; top: -2px; right: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--tomato-bright); animation: bounce-dot 2.4s ease-in-out infinite;
}
@keyframes bounce-dot { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-4px);} }
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--green-deep); }
.logo-text em { font-family: var(--font-script); font-style: normal; color: var(--tomato-deep); }
.site-nav { display: flex; gap: 22px; margin-left: 12px; flex: 1; }
.site-nav a { text-decoration: none; font-weight: 700; color: var(--green-mid); font-size: 14.5px; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0%;
  background: var(--tomato-bright); transition: width .25s ease;
}
.site-nav a:hover::after { width: 100%; }
.btn-nav-cta { white-space: nowrap; }

/* ---------------- mobile nav ---------------- */
.mobile-nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line);
  background: var(--cream-card); cursor: pointer; flex-shrink: 0;
}
.mobile-nav-toggle span { width: 18px; height: 2px; background: var(--green-deep); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-drawer {
  display: none;
  background: var(--cream-card); border-bottom: 2px solid var(--line);
}
.mobile-nav-drawer a {
  text-decoration: none; font-weight: 800; font-family: var(--font-display); font-size: 15px;
  color: var(--green-deep); padding: 14px 24px; border-bottom: 1px solid var(--line);
}
.mobile-nav-drawer a:active { background: var(--cream-alt); }

/* ---------------- auth area (nav) ---------------- */
.auth-area { display: flex; align-items: center; }
.btn-auth { padding: 9px 16px; font-size: 13.5px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream-alt); border-radius: 999px; padding: 5px 6px 5px 14px;
}
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--tomato-deep); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-name { font-weight: 800; font-size: 13.5px; color: var(--green-deep); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-signout {
  background: none; border: none; cursor: pointer; font-size: 15px; color: var(--ink-muted);
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.user-signout:hover { background: var(--tomato-deep); color: #fff; }

/* ---------------- buttons ---------------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14.5px;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, background .18s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:active { transform: scale(.94); }
.btn-primary { background: var(--tomato-deep); color: #fff8ef; box-shadow: 0 4px 0 #7c2915; }
.btn-primary:hover { background: var(--tomato-bright); transform: translateY(-2px); box-shadow: 0 6px 0 #7c2915; }
.btn-primary:active { transform: translateY(1px) scale(.97); box-shadow: 0 2px 0 #7c2915; }
.btn-lg { padding: 15px 26px; font-size: 16.5px; }
.btn-ghost { background: transparent; color: var(--green-deep); border: 2px solid var(--green-deep); padding-top: 13px; padding-bottom: 13px; }
.btn-ghost:hover { background: var(--green-deep); color: var(--cream); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-rate {
  background: var(--cream-alt); color: var(--tomato-deep); box-shadow: none;
  border: 2px solid var(--tomato-deep); padding: 8px 14px; font-size: 13px; width: 100%; justify-content: center;
}
.btn-rate:hover { background: var(--tomato-deep); color: #fff; transform: translateY(-1px); }
.btn-rate-small { width: auto; padding: 8px 16px; }

/* ---------------- hero ---------------- */
.hero { padding: 64px 0 30px; position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--olive); color: var(--green-deep);
  font-weight: 800; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.05; margin-bottom: 18px; }
.hero-sub { font-size: 17px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.hero-art { display: flex; justify-content: center; align-items: center; }
.bowl-wrap { position: relative; width: 260px; height: 260px; display: flex; align-items: center; justify-content: center; }
.bowl-emoji {
  font-size: 130px; animation: bowl-wobble 4.5s ease-in-out infinite;
  filter: drop-shadow(0 18px 24px rgba(48,62,30,.25));
}
@keyframes bowl-wobble {
  0%,100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-10px); }
}
.steam {
  position: absolute; bottom: 58%; width: 10px; height: 46px; border-radius: 50%;
  background: linear-gradient(to top, rgba(253,247,240,0), rgba(255,255,255,.9));
  opacity: .8; animation: steam-rise 3.2s ease-in infinite;
}
.s1 { left: 46%; animation-delay: 0s; }
.s2 { left: 56%; animation-delay: .9s; height: 36px; }
.s3 { left: 38%; animation-delay: 1.7s; height: 40px; }
@keyframes steam-rise {
  0% { transform: translateY(0) scaleX(1); opacity: 0; }
  20% { opacity: .8; }
  100% { transform: translateY(-70px) scaleX(1.6); opacity: 0; }
}

.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 46px; }
.stat-chip {
  background: var(--cream-card); border: 2px solid var(--line); border-radius: var(--radius-md);
  padding: 16px 18px; text-align: center; box-shadow: var(--shadow-card);
  transition: transform .25s ease;
}
.stat-chip:hover { transform: translateY(-4px) rotate(-1deg); }
.stat-chip strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--tomato-deep); }
.stat-chip span { font-size: 12.5px; color: var(--ink-muted); font-weight: 700; }

/* ---------------- hand-drawn pasta icons ---------------- */
.pasta-icon {
  width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -0.15em;
}
.tag-pasta { display: inline-flex; align-items: center; gap: 4px; }
.tag-pasta .pasta-icon { width: 12px; height: 12px; color: var(--brown); }
.combo-card:hover .tag-pasta .pasta-icon { animation: icon-jiggle .5s ease; }
@keyframes icon-jiggle { 0%,100%{ transform: rotate(0);} 25%{ transform: rotate(-14deg);} 75%{ transform: rotate(14deg);} }

/* ---------------- hero orbiting pasta shapes ---------------- */
.orbit-icon { position: absolute; opacity: .6; animation: orbit-float ease-in-out infinite; }
.orbit-icon .pasta-icon { width: 100%; height: 100%; stroke-width: 2.5; }
.o1 { width: 34px; height: 34px; top: 4%;  left: -8%;  color: var(--olive);        animation-duration: 6s; }
.o2 { width: 26px; height: 26px; bottom: 12%; left: -2%; color: var(--gold);        animation-duration: 7.5s; animation-delay: -2.2s; }
.o3 { width: 30px; height: 30px; top: 2%;  right: -10%; color: var(--tomato-bright); animation-duration: 6.8s; animation-delay: -1.1s; }
.o4 { width: 26px; height: 26px; bottom: 8%; right: -4%; color: var(--brown);        animation-duration: 8s;   animation-delay: -3.4s; }
@keyframes orbit-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-8px, -16px) rotate(16deg); }
}

/* ---------------- "five shapes" legend row ---------------- */
.shapes-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 44px 0 0; }
.shape-chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--cream-card); border: 2px solid var(--line); border-radius: var(--radius-md);
  padding: 14px 20px; box-shadow: var(--shadow-card);
  animation: shape-bob 3.6s ease-in-out infinite;
  transition: transform .25s ease, border-color .25s ease;
}
.shape-chip:hover { transform: translateY(-6px) rotate(-2deg) scale(1.06); border-color: var(--tomato-deep); }
.shape-chip .pasta-icon { width: 32px; height: 32px; stroke-width: 2.5; color: var(--tomato-deep); }
.shape-chip span { font-size: 12px; font-weight: 800; color: var(--green-deep); }
.shape-chip:nth-child(1) { animation-delay: 0s; }
.shape-chip:nth-child(2) { animation-delay: .5s; }
.shape-chip:nth-child(2) .pasta-icon { color: var(--olive); }
.shape-chip:nth-child(3) { animation-delay: 1s; }
.shape-chip:nth-child(3) .pasta-icon { color: var(--gold); }
.shape-chip:nth-child(4) { animation-delay: 1.5s; }
.shape-chip:nth-child(4) .pasta-icon { color: var(--brown); }
.shape-chip:nth-child(5) { animation-delay: 2s; }
.shape-chip:nth-child(5) .pasta-icon { color: var(--tomato-bright); }
@keyframes shape-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}

/* ---------------- sections ---------------- */
.section { padding: 68px 0; position: relative; z-index: 1; }
.section-alt { background: var(--cream-alt); }
.section-heading { max-width: 640px; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(26px, 3vw, 34px); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chip-demo {
  font-family: var(--font-body); font-size: 12px; font-weight: 800; color: var(--brown);
  background: var(--gold); padding: 4px 11px; border-radius: 999px; vertical-align: middle;
}

.reveal-section { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal-section.revealed { opacity: 1; transform: translateY(0); }

/* ---------------- charts ---------------- */
.charts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.chart-card {
  background: var(--cream-card); border-radius: var(--radius-lg); border: 2px solid var(--line);
  padding: 20px 20px 8px; box-shadow: var(--shadow-card);
}
.chart-card h3 { font-size: 15.5px; margin-bottom: 10px; }
.chart-card-wide { grid-column: span 3; }
.chart-canvas-wrap { position: relative; height: 190px; }
.chart-canvas-wrap.tall { height: 260px; }

/* ---------------- filter bar ---------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.filter-search, .filter-select {
  font-family: var(--font-body); font-weight: 700; font-size: 13.5px; color: var(--ink);
  border: 2px solid var(--line); background: var(--cream-card); border-radius: 999px;
  padding: 10px 16px;
}
.filter-search { flex: 1 1 200px; }
.filter-search:focus, .filter-select:focus { outline: 2px solid var(--tomato-bright); outline-offset: 1px; }
.chip-toggle {
  border: 2px solid var(--olive); background: transparent; color: var(--green-deep);
  font-weight: 800; font-size: 13px; border-radius: 999px; padding: 9px 16px; cursor: pointer;
  transition: all .2s ease;
}
.chip-toggle.active, .chip-toggle:hover { background: var(--olive); color: var(--green-deep); }
.results-count { font-size: 13px; font-weight: 700; color: var(--ink-muted); margin: 6px 0 20px; }

/* ---------------- combo grid & cards ---------------- */
.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.btn-load-more { display: block; margin: 26px auto 0; }
.btn-load-more.hidden { display: none; }
.combo-card {
  position: relative;
  background: var(--cream-card); border: 2px solid var(--line); border-radius: var(--radius-md);
  padding: 18px 16px 16px; box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1.3), box-shadow .25s ease, border-color .25s ease;
  transition-delay: calc(var(--stagger, 0) * 45ms);
}
.combo-card.revealed { opacity: 1; transform: translateY(0) scale(1); }
.combo-card:hover { box-shadow: var(--shadow-soft); border-color: var(--tomato-deep); transform: translateY(-4px) rotate(-.4deg); }
.badge-new {
  position: absolute; top: -9px; right: 14px; background: var(--tomato-bright); color: #fff;
  font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; letter-spacing: .03em;
  box-shadow: 0 3px 6px rgba(177,61,39,.4); animation: pulse-badge 2.2s ease-in-out infinite;
}
@keyframes pulse-badge { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.08); } }
.badge-tried {
  position: absolute; top: -9px; left: 14px; background: var(--olive); color: var(--green-deep);
  font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
}
.combo-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.tag .pasta-icon { width: 11px; height: 11px; }
.tag-pasta { background: var(--cream-alt); color: var(--brown); }
.tag-sauce { background: #fbe4da; color: var(--tomato-deep); }
.tag-topping { background: #eef0d4; color: #5c5f10; }

.combo-card-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rating-number { font-weight: 800; color: var(--green-deep); font-size: 14px; }
.review-count { font-size: 12px; color: var(--ink-muted); }
.my-avg { font-size: 12px; color: var(--tomato-deep); margin-bottom: 10px; font-weight: 700; }

/* star display fill trick */
.stars-display {
  position: relative; display: inline-block; color: rgba(48,62,30,.18);
  font-size: 16px; letter-spacing: 2px; line-height: 1;
}
.stars-display::before {
  content: "★★★★★"; position: absolute; inset: 0; overflow: hidden;
  width: calc(var(--rating) / 5 * 100%); color: var(--gold-bright);
  white-space: nowrap; transition: width .8s cubic-bezier(.2,.7,.3,1.2);
}

/* ---------------- sides ---------------- */
.sides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.side-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--cream-card); border: 2px solid var(--line); border-radius: var(--radius-md);
  padding: 16px; box-shadow: var(--shadow-card); transition: transform .25s ease;
}
.side-card:hover { transform: translateY(-3px); }
.side-emoji { font-size: 40px; flex-shrink: 0; }
.side-info { flex: 1; }
.side-category { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--olive); }
.side-info h4 { margin: 2px 0 6px; font-size: 15.5px; }

/* ---------------- diary ---------------- */
.diary-empty { text-align: center; padding: 50px 20px; color: var(--ink-muted); }
.diary-empty span { font-size: 44px; display: block; margin-bottom: 10px; }
.diary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.diary-entry {
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start;
  background: var(--cream-card); border: 2px solid var(--line); border-radius: var(--radius-md);
  padding: 16px 18px; box-shadow: var(--shadow-card);
  animation: entry-in .4s cubic-bezier(.2,.7,.3,1.2);
}
@keyframes entry-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
.diary-entry-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.diary-date { font-size: 12px; font-weight: 800; color: var(--ink-muted); }
.diary-entry h4 { margin: 2px 0 4px; font-size: 15.5px; }
.diary-review { margin: 0; font-size: 13.5px; }
.diary-photo {
  display: block; max-width: 220px; width: 100%; margin-top: 10px;
  border-radius: var(--radius-sm); border: 2px solid var(--line);
  cursor: zoom-in; transition: transform .18s ease;
}
.diary-photo:hover { transform: scale(1.02); }
.admin-photo {
  display: block; width: 46px; height: 46px; object-fit: cover; flex-shrink: 0;
  border-radius: 8px; border: 2px solid var(--line);
}
.diary-delete {
  background: none; border: none; cursor: pointer; font-size: 16px; opacity: .5;
  transition: opacity .2s ease, transform .2s ease; flex-shrink: 0;
}
.diary-delete:hover { opacity: 1; transform: scale(1.15) rotate(-8deg); }

/* ---------------- feed ---------------- */
.feed-author { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.feed-author .user-avatar { width: 22px; height: 22px; font-size: 10.5px; }
.feed-author-name { font-weight: 800; font-size: 13px; color: var(--green-deep); }

/* ---------------- admin ---------------- */
.admin-stats { display: flex; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.admin-stats .stat-chip { min-width: 160px; }
.admin-columns { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.admin-columns h3 { font-size: 16px; margin-bottom: 12px; }
.admin-users-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-user-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream-card); border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.admin-user-name { flex: 1; font-weight: 800; font-size: 12.5px; color: var(--green-deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-count { font-size: 11px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
.admin-col-ratings .filter-search { width: 100%; margin-bottom: 14px; }
.admin-col-ratings .diary-list { max-height: 640px; overflow-y: auto; padding-right: 4px; }
.diary-delete.confirm-armed { opacity: 1; animation: confirm-pulse 1s ease-in-out infinite; }
@keyframes confirm-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@media (max-width: 900px) {
  .admin-columns { grid-template-columns: 1fr; }
}
.admin-section-tabs { max-width: 360px; margin-bottom: 26px; }
.admin-panel.hidden { display: none; }
.admin-note { font-size: 13.5px; color: var(--ink-muted); margin: -14px 0 22px; }

/* ---------------- deploy guide ---------------- */
.deploy-guide { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.deploy-block {
  background: var(--cream-card); border: 2px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 24px;
}
.deploy-block h3 { font-size: 16px; margin-bottom: 10px; }
.deploy-block > p { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin: 0 0 10px; }
.deploy-block > p:last-child { margin-bottom: 0; }
.deploy-list, .deploy-steps { margin: 0 0 10px; padding-left: 22px; font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.deploy-list:last-child, .deploy-steps:last-child { margin-bottom: 0; }
.deploy-list li, .deploy-steps li { margin-bottom: 6px; }
.deploy-steps li p { margin: 6px 0; }
.deploy-block code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px; background: var(--cream-alt); color: var(--tomato-deep);
  padding: 2px 6px; border-radius: 5px;
}
.deploy-block pre {
  background: var(--green-deep); color: #f4ecd8; border-radius: var(--radius-sm);
  padding: 12px 16px; overflow-x: auto; margin: 8px 0 10px;
}
.deploy-block pre code {
  background: none; color: inherit; padding: 0; font-size: 13px;
}
.deploy-block a { color: var(--tomato-deep); font-weight: 700; }
.deploy-alt { font-size: 12.5px !important; color: var(--ink-muted) !important; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px !important; }
.deploy-note { font-size: 12.5px; color: var(--ink-muted); }
.deploy-note-pending { font-size: 13.5px; color: var(--ink-muted); font-style: italic; }
.deploy-caution {
  font-size: 12.5px; color: var(--brown); background: var(--cream-alt);
  border: 2px solid var(--gold); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px !important;
}
.deploy-pick {
  background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 14px;
}
.deploy-pick.primary { border-color: var(--gold); background: var(--cream-alt); }
.deploy-pick-label {
  display: inline-block; font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--tomato-deep); margin-bottom: 4px;
}
.deploy-pick-domain { display: block; font-family: var(--font-display); font-size: 17px; color: var(--green-deep); margin-bottom: 4px; }
.deploy-pick p { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.5; }
.deploy-pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) {
  .deploy-pick-row { grid-template-columns: 1fr; }
}

/* ---------------- footer ---------------- */
.site-footer { padding: 30px 0 60px; text-align: center; position: relative; z-index: 1; }
.footer-inner p { font-size: 12.5px; color: var(--ink-muted); margin: 0; }

/* ---------------- cost gauge ---------------- */
.cost-gauge {
  position: fixed; top: 50%; left: 0; z-index: 35;
  transform: translateY(-50%); transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.cost-gauge.hidden { display: none; }
.cost-gauge.collapsed { transform: translateY(-50%) translateX(calc(-100% + 34px)); }
.cost-gauge-toggle {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--cream-card); border: 2px solid var(--line); border-left: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 22px 26px 26px 18px; box-shadow: var(--shadow-soft); cursor: pointer;
  font-family: var(--font-body); position: relative;
}
.cost-gauge-readout { text-align: center; }
.cost-gauge-amount {
  display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: var(--tomato-deep); line-height: 1.15; transition: color .4s ease;
}
.cost-gauge-amount.past-breakeven { color: var(--green-deep); }
.cost-gauge-sub {
  display: block; font-size: 11px; color: var(--ink-muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; max-width: 108px; margin-top: 4px; line-height: 1.3;
}
.cost-gauge-svg { display: block; width: clamp(58px, 7vw, 80px); height: clamp(280px, 46vh, 400px); overflow: visible; }
.cost-gauge-glass { fill: var(--cream-alt); stroke: var(--line); stroke-width: 4; }
#cost-gauge-mercury-tube, #cost-gauge-mercury-bulb {
  transition: y .6s cubic-bezier(.2,.8,.3,1), height .6s cubic-bezier(.2,.8,.3,1), fill .4s ease;
}
.cost-gauge-marker-line { stroke: var(--green-deep); stroke-width: 3; stroke-dasharray: 5 4; opacity: .85; }
.cost-gauge-marker-text {
  font-family: var(--font-display); font-size: 15px; font-weight: 700; fill: var(--green-deep);
}
.cost-gauge-tick { stroke: var(--ink-muted); stroke-width: 2.5; opacity: .4; }
.cost-gauge-shine { stroke: rgba(255,255,255,.55); stroke-width: 4; stroke-linecap: round; opacity: .6; pointer-events: none; }
.cost-gauge-sparkles path { fill: var(--gold-bright); opacity: 0; transition: opacity .4s ease; transform-origin: center; transform-box: fill-box; }
.cost-gauge-sparkles.active path { opacity: 1; animation: cost-gauge-sparkle-pulse 1.7s ease-in-out infinite; }
.cost-gauge-sparkles.active path:nth-child(2) { animation-delay: .3s; }
.cost-gauge-sparkles.active path:nth-child(3) { animation-delay: .6s; }
@keyframes cost-gauge-sparkle-pulse {
  0%, 100% { transform: scale(.7) rotate(0deg); opacity: .5; }
  50% { transform: scale(1.15) rotate(12deg); opacity: 1; }
}
.cost-gauge-collapse-arrow {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%) rotate(180deg);
  font-size: 17px; color: var(--ink-muted); transition: transform .3s ease;
}
.cost-gauge.collapsed .cost-gauge-collapse-arrow { transform: translateY(-50%) rotate(0deg); }
@media (max-width: 900px) {
  .cost-gauge-toggle { padding: 12px 14px 14px 10px; gap: 7px; }
  .cost-gauge-svg { width: 32px; height: 150px; }
  .cost-gauge-amount { font-size: 16px; }
  .cost-gauge-sub { max-width: 62px; font-size: 8.5px; }
  .cost-gauge-marker-text { display: none; }
  .cost-gauge.collapsed { transform: translateY(-50%) translateX(calc(-100% + 26px)); }
}

/* ---------------- fab ---------------- */
.fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 30;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--tomato-deep); color: #fff8ef; font-size: 30px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(177,61,39,.45);
  display: flex; align-items: center; justify-content: center;
  animation: fab-pulse 3.2s ease-in-out infinite;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.fab:hover { transform: scale(1.1) rotate(90deg); background: var(--tomato-bright); }
@keyframes fab-pulse {
  0%,100% { box-shadow: 0 8px 20px rgba(177,61,39,.45); }
  50% { box-shadow: 0 8px 26px rgba(177,61,39,.7), 0 0 0 8px rgba(177,61,39,.08); }
}

/* ---------------- modal ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(42,44,37,.5); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 50;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; top: 50%; left: 50%; width: min(480px, 92vw);
  background: var(--cream-card); border-radius: var(--radius-lg); padding: 30px 28px 26px;
  box-shadow: 0 30px 60px rgba(42,44,37,.35);
  transform: translate(-50%, -46%) scale(.94); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.2,.9,.3,1.25), opacity .25s ease;
  z-index: 51; max-height: 88vh; overflow-y: auto;
}
.modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 26px;
  cursor: pointer; color: var(--ink-muted); line-height: 1; transition: transform .2s ease;
}
.modal-close:hover { transform: rotate(90deg); color: var(--tomato-deep); }
.modal-tabs { display: flex; gap: 8px; margin-bottom: 18px; background: var(--cream-alt); padding: 5px; border-radius: 999px; }
.modal-tab {
  flex: 1; border: none; background: none; padding: 9px 10px; border-radius: 999px; cursor: pointer;
  font-weight: 800; font-family: var(--font-display); font-size: 13.5px; color: var(--ink-muted);
  transition: all .2s ease;
}
.modal-tab.active { background: var(--tomato-deep); color: #fff; }

/* ---------------- auth modal ---------------- */
.auth-hint { font-size: 13.5px; margin-top: -6px; margin-bottom: 16px; }
.auth-field { margin-bottom: 14px; }
.auth-field input {
  width: 100%; font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--ink);
  border: 2px solid var(--line); background: var(--cream); border-radius: var(--radius-sm);
  padding: 11px 14px;
}
.auth-field input:focus { outline: 2px solid var(--tomato-bright); outline-offset: 1px; }
.auth-error {
  background: #fbe4da; color: var(--tomato-deep); font-weight: 700; font-size: 13px;
  padding: 10px 13px; border-radius: var(--radius-sm); margin: -4px 0 14px;
}
.picker-grid { display: grid; gap: 4px; margin-bottom: 16px; }
.picker-group { margin-bottom: 6px; }
.picker-group .rate-label { margin: 4px 0 7px; }
.icon-picker-row { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-picker-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 66px; padding: 9px 4px 8px; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: var(--cream);
  cursor: pointer; transition: transform .18s cubic-bezier(.34,1.56,.64,1), outline-color .18s ease, background .18s ease;
}
.icon-picker-btn .pasta-icon { width: 26px; height: 26px; stroke-width: 2.4; }
.icon-picker-btn .side-emoji-btn { font-size: 24px; line-height: 1; }
.icon-picker-btn span:last-child {
  font-size: 9.5px; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.15;
}
.icon-picker-btn:hover { transform: translateY(-3px) rotate(-2deg); }
.icon-picker-btn.selected {
  outline: 3px solid var(--tomato-deep); outline-offset: 1px;
  background: var(--cream-alt); transform: translateY(-2px) scale(1.05); box-shadow: var(--shadow-card);
}
.order-preview {
  background: var(--cream-alt); border-radius: var(--radius-sm); padding: 13px 15px;
  font-weight: 700; color: var(--ink-muted); font-size: 14px; margin-bottom: 4px;
  transition: color .2s ease, background .2s ease;
}
.order-preview.filled { color: var(--green-deep); background: #eef0d4; }

.rate-section { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s ease, margin .35s ease; }
.rate-section.shown { max-height: 640px; opacity: 1; margin-top: 14px; }
.rate-label { display: block; font-weight: 800; font-size: 13px; color: var(--green-deep); margin: 12px 0 8px; }
.star-input { position: relative; display: flex; gap: 6px; margin-bottom: 4px; }
.star-btn {
  background: none; border: none; font-size: 32px; cursor: pointer; color: rgba(48,62,30,.2);
  transition: transform .15s cubic-bezier(.34,1.56,.64,1), color .15s ease; line-height: 1;
}
.star-btn.on { color: var(--gold-bright); }
.star-btn:hover { transform: scale(1.25) rotate(-6deg); }
.star-input.locked .star-btn.on { animation: star-pop .3s ease; }
@keyframes star-pop { 0%{ transform: scale(1);} 40%{ transform: scale(1.4);} 100%{ transform: scale(1);} }
#review-input {
  width: 100%; font-family: var(--font-body); font-size: 13.5px; border: 2px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px; resize: vertical; margin-bottom: 14px; color: var(--ink);
}
#review-input:focus, .picker-grid select:focus { outline: 2px solid var(--tomato-bright); outline-offset: 1px; }

.photo-upload { margin-bottom: 16px; }
.photo-upload-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 14px;
  cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--ink-muted);
  background: var(--cream-alt); transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.photo-upload-btn:hover { border-color: var(--tomato-bright); color: var(--tomato-deep); background: #fff2e6; }
.photo-upload-icon { font-size: 18px; }
.photo-preview-wrap { position: relative; display: inline-block; }
.photo-preview {
  display: block; max-width: 100%; max-height: 220px; border-radius: var(--radius-sm);
  border: 2px solid var(--line); object-fit: cover;
}
.photo-remove-btn {
  position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--tomato-deep); color: #fff; border: 2px solid var(--cream-card); cursor: pointer;
  font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.photo-remove-btn:hover { transform: scale(1.15) rotate(90deg); }

.shake { animation: shake .4s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* ---------------- confetti ---------------- */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti-piece {
  position: absolute; top: -14px; width: 9px; height: 14px; opacity: .95;
  animation: fall var(--fall-duration, 2s) var(--fall-delay, 0s) ease-in forwards;
  border-radius: 2px;
}
@keyframes fall {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) translateX(var(--drift, 0px)) rotate(var(--spin, 360deg)); opacity: .4; }
}
.confetti-piece.confetti-emoji {
  background: none; width: auto; height: auto; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- sparkle burst (5-star hit) ---------------- */
.sparkle-piece {
  position: absolute; font-size: 15px; pointer-events: none;
  animation: sparkle-pop .8s ease-out forwards;
}
@keyframes sparkle-pop {
  0% { transform: translate(0, 0) scale(.4); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(var(--sx, 0), var(--sy, -30px)) scale(1); opacity: 0; }
}

/* ---------------- toast ---------------- */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 20px);
  background: var(--green-deep); color: var(--cream-alt); font-weight: 700; font-size: 13.5px;
  padding: 13px 22px; border-radius: 999px; box-shadow: 0 10px 24px rgba(48,62,30,.35);
  opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.2,.9,.3,1.25), opacity .3s ease;
  z-index: 70; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-card-wide { grid-column: span 2; }
  .site-nav { display: none; }
  .combo-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .mobile-nav-toggle { display: flex; }
  .mobile-nav-drawer {
    display: flex; flex-direction: column; gap: 2px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .25s ease;
  }
  .mobile-nav-drawer.open { max-height: 400px; opacity: 1; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts-grid { grid-template-columns: minmax(0, 1fr); }
  .chart-card-wide { grid-column: span 1; }
  .combo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { flex-wrap: wrap; }
  .btn-nav-cta { display: none; }
}
@media (max-width: 420px) {
  .combo-grid { grid-template-columns: minmax(0, 1fr); }
  .sides-grid { grid-template-columns: minmax(0, 1fr); }
}
