/* ============================================================
   FIZZ SQUAD — styles.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Fredoka:wght@300;400;500;600;700&display=swap');

/* ---- Tokens ---- */
:root {
  --pink:   #ff4d94;
  --peach:  #ff8c42;
  --yellow: #ffd23f;
  --mint:   #2de2b2;
  --sky:    #38b6ff;
  --grape:  #9b5de5;
  --lime:   #8fe82a;
  --ink:    #150f2d;
  --ink-80: rgba(21,15,45,.8);
  --paper:  #fef9f4;
  --white:  #ffffff;
  --radius-card: 24px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 400;
  background-color: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
}

/* ---- Dot-grid background ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(21,15,45,.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ---- Floating bubbles ---- */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bubbles span {
  position: absolute;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(255,255,255,.05));
  border: 2px solid rgba(255,255,255,.6);
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: .9; }
  90%  { opacity: .6; }
  100% { transform: translateY(-115vh) translateX(60px); opacity: 0; }
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(254,249,244,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--ink);
}
.nav-logo {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 26px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-logo .logo-fizz { color: var(--pink); }
.nav-logo .logo-squad { color: var(--sky); }
.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .15s;
}
.nav-links a:hover { background: var(--yellow); }
.nav-submit {
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.nav-submit:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 90px 24px 20px;
  overflow: hidden;
}
.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-circle.c1 {
  width: 600px; height: 600px;
  top: -200px; left: -160px;
  background: radial-gradient(circle, #ffd6ec 0%, transparent 70%);
}
.hero-bg-circle.c2 {
  width: 500px; height: 500px;
  top: -100px; right: -160px;
  background: radial-gradient(circle, #d6f0ff 0%, transparent 70%);
}
.hero-bg-circle.c3 {
  width: 350px; height: 350px;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #e8ffe0 0%, transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  color: var(--grape);
  background: rgba(155,93,229,.12);
  padding: 6px 18px;
  border-radius: 999px;
  border: 2px solid var(--grape);
  margin-bottom: 20px;
}
.title {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: clamp(72px, 15vw, 200px);
  line-height: .88;
  margin: 0 0 8px;
  letter-spacing: -.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.word {
  display: inline-block;
  position: relative;
}
.w1 {
  color: var(--pink);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  transform: rotate(-2deg);
  text-shadow: 6px 6px 0 rgba(21,15,45,.15);
}
.w2 {
  color: var(--sky);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  transform: rotate(1.5deg);
  text-shadow: 6px 6px 0 rgba(21,15,45,.15);
}
.tagline {
  font-size: clamp(17px, 2.2vw, 22px);
  max-width: 560px;
  margin: 28px auto 36px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-80);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Shared button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow);
}
.btn:hover  { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(2px,2px);   box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-ghost   { background: var(--white);  color: var(--ink); }

/* ---- Stats bar ---- */
.stats-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 40px 24px;
  max-width: 780px;
  margin: 0 auto;
}
.stat {
  flex: 1;
  text-align: center;
  padding: 20px 16px;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
}
.stat:first-child { border-radius: 18px 0 0 18px; }
.stat:last-child  { border-radius: 0 18px 18px 0; margin-left: -3px; }
.stat:not(:first-child):not(:last-child) { margin-left: -3px; }
.stat-number {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 42px;
  line-height: 1;
  color: var(--pink);
  display: block;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-80);
  display: block;
  margin-top: 4px;
}

/* ---- Marquee ticker ---- */
.ticker-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 14px 0;
  white-space: nowrap;
  margin: 16px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--yellow);
  padding: 0 28px;
}
.ticker-track span.sep {
  color: var(--pink);
  letter-spacing: 0;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Filters ---- */
.filters {
  position: sticky;
  top: 64px;
  z-index: 50;
  padding: 16px 24px;
  background: rgba(254,249,244,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(21,15,45,.1);
}
.filter-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-80);
  white-space: nowrap;
}
.chip {
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s;
  white-space: nowrap;
}
.chip:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.chip.is-active { background: var(--yellow); }

/* ---- Search bar ---- */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 13px;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}
.search-input {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 36px 9px 34px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  outline: none;
  width: 220px;
  transition: width .25s ease, border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.search-input:focus {
  width: 280px;
  border-color: var(--grape);
  box-shadow: 3px 3px 0 var(--grape);
}
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-80);
  padding: 2px 4px;
  border-radius: 50%;
  transition: color .12s;
  display: none;
}
.search-input:not(:placeholder-shown) ~ .search-clear { display: block; }
.search-clear:hover { color: var(--pink); }

.filter-divider {
  width: 2px;
  height: 28px;
  background: rgba(21,15,45,.12);
  border-radius: 2px;
  flex-shrink: 0;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding-left: 16px;
  border-left: 2px solid rgba(21,15,45,.15);
}
.select-shell {
  position: relative;
}
.select-shell::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 13px;
  color: var(--ink);
}
.select-shell select {
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 9px 36px 9px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.select-shell select:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.select-shell select:focus { outline: none; background: var(--yellow); }

/* ---- Reviews section ---- */
.reviews {
  position: relative;
  z-index: 1;
  padding: 48px 24px 100px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  margin: 0;
}
.result-count {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-80);
}

/* ---- Card grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* ---- Featured card (first result) ---- */
.card.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 340px;
}
.card.is-featured .card-header {
  border-radius: calc(var(--radius-card) - 4px) 0 0 calc(var(--radius-card) - 4px);
}
.card.is-featured .card-body {
  padding: 36px 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card.is-featured .flavor {
  font-size: 40px;
}
.card.is-featured .review {
  font-size: 17px;
  max-width: 560px;
}

/* ---- Card base ---- */
.card {
  position: relative;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  transition: transform .22s cubic-bezier(.3,1.4,.4,1), box-shadow .22s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-lg);
}
.card:hover .can-svg { transform: scale(1.06) rotate(-3deg); }

/* Card header band */
.card-header {
  background: var(--card-color, var(--peach));
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.card-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.25) 0%, transparent 60%);
  pointer-events: none;
}
/* squiggle divider between header and body */
.card-header::before {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 18px;
  background: var(--white);
  clip-path: ellipse(52% 100% at 50% 100%);
  z-index: 2;
}

/* Can SVG */
.can-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}
.can-svg {
  transition: transform .3s cubic-bezier(.3,1.4,.4,1);
  filter: drop-shadow(4px 6px 0 rgba(21,15,45,.3));
}

/* Score badge in header */
.score-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 22px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 14px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.score-badge .out-of {
  font-family: 'Fredoka', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,210,63,.7);
  letter-spacing: .05em;
}

/* Tag ribbon */
.tag-ribbon {
  position: absolute;
  top: 16px;
  left: -2px;
  z-index: 3;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 5px 12px 5px 14px;
  border-radius: 0 8px 8px 0;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.tag-ribbon.top   { background: var(--yellow); }
.tag-ribbon.wild  { background: var(--mint); }
.tag-ribbon.fave  { background: var(--pink); color: #fff; }
.tag-ribbon.polar { background: var(--grape); color: #fff; }

/* Card body */
.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.brand {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--grape);
  margin: 0 0 4px;
}
.flavor {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 28px;
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--ink);
}
.ai-scored-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(155,93,229,.12);
  color: var(--grape);
  border: 1.5px solid rgba(155,93,229,.3);
  margin-bottom: 10px;
  align-self: flex-start;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(21,15,45,.07);
  color: var(--ink-80);
  margin-bottom: 14px;
  align-self: flex-start;
}
.review {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-80);
  margin: 0;
  flex: 1;
}

/* ---- Container icons ---- */
.container-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}
.ctype-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(21,15,45,.06);
  border: 2px solid rgba(21,15,45,.15);
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
}
.ctype-svg {
  width: 14px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ink);
}

/* ---- Vector bubble scale ---- */
.vectors {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 16px;
  padding: 14px 0 0;
  border-top: 2px dashed rgba(21,15,45,.12);
}
.vector-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 8px;
}
.vector-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .01em;
}
.vector-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}
.v-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(21,15,45,.25);
  background: transparent;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.v-dot.on {
  border-color: transparent;
}
.vector-hi {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-80);
  white-space: nowrap;
  opacity: .6;
}

/* Rating footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed rgba(21,15,45,.15);
}
.stars {
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--peach);
  line-height: 1;
}
.fizz-meter {
  display: flex;
  gap: 3px;
  align-items: center;
}
.fizz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  transition: background .2s;
}
.fizz-dot.filled { background: var(--card-color, var(--peach)); }

/* ---- Nav soon badge ---- */
.nav-shop-link { position: relative; }
.soon-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--pink);
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1.4;
}

/* ---- Shop section ---- */
.shop {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding: 80px 24px 90px;
  text-align: center;
}
.shop-inner {
  max-width: 560px;
  margin: 0 auto;
}
.shop-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 16px;
}
.shop-title {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  color: #fff;
  margin: 0 0 16px;
  line-height: 1;
}
.shop-sub {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,.65);
  margin: 0 0 36px;
}
.shop-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.shop-input {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #fff;
  width: 260px;
  outline: none;
  transition: border-color .15s;
}
.shop-input::placeholder { color: rgba(255,255,255,.35); }
.shop-input:focus { border-color: var(--yellow); }
.shop-btn { border-color: var(--yellow); }

/* ================================================================
   BULK BUY ENGINE
   ================================================================ */
.bulk-section {
  position: relative;
  z-index: 1;
  padding: 80px 24px 90px;
  background:
    radial-gradient(circle at 15% 50%, rgba(56,182,255,.1) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(155,93,229,.1) 0%, transparent 50%),
    var(--paper);
}
.bulk-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.bulk-header {
  text-align: center;
  margin-bottom: 48px;
}
.bulk-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--grape);
  background: rgba(155,93,229,.1);
  border: 2px solid var(--grape);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 16px;
}
.bulk-title {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  margin: 0 0 12px;
}
.bulk-sub {
  font-size: 17px;
  color: var(--ink-80);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Controls */
.bulk-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.bulk-control-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bulk-control-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-80);
  white-space: nowrap;
  min-width: 90px;
}
.bulk-brand-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bulk-brand-pill {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.bulk-brand-pill:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.bulk-brand-pill.is-active { background: var(--sky); }

.bulk-priority-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.priority-pill {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.priority-pill:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.priority-pill.is-active { background: var(--mint); }

/* Deal grid */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Deal card */
.deal-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: pop .4s cubic-bezier(.4,1.5,.4,1) backwards;
}
.deal-card:nth-child(1) { animation-delay: .04s; }
.deal-card:nth-child(2) { animation-delay: .09s; }
.deal-card:nth-child(3) { animation-delay: .14s; }
.deal-card:hover {
  transform: translate(-3px,-3px);
  box-shadow: var(--shadow-lg);
}
.deal-card.is-top-pick {
  border-width: 4px;
  border-color: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
}
.deal-top-banner {
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;
  padding: 7px 12px;
  border-bottom: 2px solid var(--ink);
}
.deal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  color: #fff;
}
.deal-retailer-emoji { font-size: 26px; line-height: 1; }
.deal-retailer-name {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 22px;
  line-height: 1;
  color: #fff;
}

.deal-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.deal-pack-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.deal-qty {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-80);
}
.deal-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--mint);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 3px 9px;
  border-radius: 999px;
}

.deal-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.deal-total {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}
.deal-per {
  font-size: 14px;
  color: var(--ink-80);
}
.deal-per strong {
  color: var(--grape);
  font-size: 16px;
}

.deal-modes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mode-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.mode-pill.online  { background: rgba(56,182,255,.18); }
.mode-pill.instore { background: rgba(45,226,178,.18); }

.deal-tip {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-80);
  margin: 0 0 14px;
  padding-top: 10px;
  border-top: 1.5px dashed rgba(21,15,45,.12);
}
.deal-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--yellow);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(0,0,0,.2);
  transition: transform .14s, box-shadow .14s, background .14s;
  cursor: pointer;
}
.deal-buy-btn:hover {
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 rgba(0,0,0,.25);
  background: #2a1f55;
}
.deal-card.is-top-pick .deal-buy-btn {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}
.deal-card.is-top-pick .deal-buy-btn:hover { background: #ffc107; }

@media (max-width: 600px) {
  .bulk-controls { padding: 20px; }
  .bulk-control-group { flex-direction: column; align-items: flex-start; }
}

/* ---- Wave divider ---- */
.wave {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: relative;
  z-index: 1;
  margin-top: -2px;
}
.wave svg { display: block; }

/* ---- About ---- */
.about {
  position: relative;
  z-index: 1;
  padding: 60px 24px 80px;
}
.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-card {
  background: var(--mint);
  border: 4px solid var(--ink);
  border-radius: 32px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.about-card.dark {
  background: var(--ink);
  color: var(--white);
}
.about-card h2 {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 36px;
  margin: 0 0 14px;
}
.about-card p { font-size: 16px; line-height: 1.6; margin: 0 0 10px; }
.about-card .signoff { font-weight: 700; font-size: 17px; margin-top: 16px; }
.mission-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}
.mission-list li::before {
  content: "🫧";
  flex-shrink: 0;
  font-size: 18px;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 36px 24px;
  font-size: 14px;
}
.footer strong { color: var(--yellow); }
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.footer-links a { color: rgba(255,255,255,.55); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--yellow); }

/* ---- Scroll-triggered card entrance ---- */
@keyframes cardIn {
  0%   { opacity: 0; transform: translateY(28px) scale(0.95); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.card {
  opacity: 0;
  transform: translateY(28px) scale(0.95);
  transition: box-shadow .22s ease, transform .22s cubic-bezier(.3,1.4,.4,1);
}
.card.in-view {
  animation: cardIn .5s cubic-bezier(.4,1.2,.4,1) both;
  animation-delay: calc(var(--stagger, 0) * 55ms);
}
/* deal cards keep simpler fade */
.deal-card { animation: pop .4s cubic-bezier(.4,1.5,.4,1) backwards; }
.deal-card:nth-child(1) { animation-delay: .04s; }
.deal-card:nth-child(2) { animation-delay: .09s; }
.deal-card:nth-child(3) { animation-delay: .14s; }

/* ================================================================
   SUBMIT MODAL
   ================================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(21,15,45,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.is-open { display: flex; }

.modal-box {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  padding: 40px 40px 36px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s;
}
.modal-close:hover { transform: rotate(90deg); }
.modal-title {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 34px;
  margin: 0 0 6px;
}
.modal-sub {
  font-size: 15px;
  color: var(--ink-80);
  margin: 0 0 28px;
}

/* Form layout */
.submit-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-80);
}
.form-field input[type="text"],
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input[type="text"]:focus,
.form-field textarea:focus {
  border-color: var(--grape);
  box-shadow: 0 0 0 3px rgba(155,93,229,.15);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--grape);
  cursor: pointer;
}
.select-shell.dark select {
  background: var(--paper);
}

/* Container checkboxes */
.checkbox-row { display: flex; gap: 10px; flex-wrap: wrap; }
.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  background: var(--paper);
  transition: background .12s;
}
.check-pill input { accent-color: var(--grape); }
.check-pill:has(input:checked) { background: var(--mint); }

/* Vector sliders in form */
.vectors-fieldset {
  border: 2.5px solid rgba(21,15,45,.15);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0;
}
.vectors-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-80);
  padding: 0 8px;
}
.legend-hint { font-size: 11px; font-weight: 400; text-transform: none; opacity: .6; }
.vector-inputs { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.vi-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; }
.vi-row label { font-size: 12.5px; font-weight: 600; color: var(--ink-80); }
.vi-ends { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-80); opacity: .6; }
.vi-row { grid-template-rows: auto auto; }
.vi-row input[type="range"] { grid-column: 2; }
.vi-row .vi-ends { grid-column: 2; }

/* Error / submit */
.submit-error { color: var(--pink); font-size: 14px; font-weight: 600; min-height: 20px; margin: 0; }
.submit-btn { width: 100%; justify-content: center; font-size: 18px; padding: 16px; }

/* Honeypot — visually hidden, kept in tab order off, zero opacity */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---- Score hero (used in submit form) ---- */
.score-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--ink);
  border-radius: 20px;
  padding: 24px 28px;
  margin: 20px 0 14px;
}
.score-big-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}
.score-big {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 64px;
  line-height: 1;
  color: var(--yellow);
}
.score-big-label {
  font-size: 20px;
  color: rgba(255,255,255,.5);
  font-weight: 600;
}
.score-adjust { flex: 1; }
.score-adjust-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}
.score-adjust input[type="range"] { accent-color: var(--yellow); }

/* Success state */
.submit-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px 0;
}
.success-icon { font-size: 64px; line-height: 1; }
.submit-success h3 {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 32px;
  margin: 0;
}
.submit-success p { color: var(--ink-80); margin: 0; }

@media (max-width: 500px) {
  .modal-box { padding: 28px 22px 24px; border-radius: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .vi-row { grid-template-columns: 1fr; }
  .vi-row label { font-size: 12px; }
}

/* ================================================================
   VOTING
   ================================================================ */
.vote-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px dashed rgba(21,15,45,.12);
}
.vote-inline { border-top: none; padding-top: 0; margin-top: 0; }
.vote-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-80);
  margin-right: 2px;
}
.vote-btn {
  font-size: 18px;
  background: var(--paper);
  border: 2px solid rgba(21,15,45,.2);
  border-radius: 10px;
  padding: 5px 10px;
  cursor: pointer;
  transition: transform .12s, border-color .12s, background .12s;
  line-height: 1;
}
.vote-btn:hover { transform: scale(1.2); }
.vote-btn.agree.active  { background: rgba(45,226,178,.25); border-color: var(--mint); }
.vote-btn.disagree.active { background: rgba(255,77,148,.2); border-color: var(--pink); }

.card-tap-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-80);
  opacity: .45;
  text-align: right;
  margin: 8px 0 0;
  letter-spacing: .04em;
}

.origin-badge {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  margin: 2px 0;
}

.card-date {
  font-size: 11px;
  color: var(--ink-80);
  opacity: .45;
  margin: 4px 0 0;
  letter-spacing: .02em;
}

.detail-date {
  font-size: 12px;
  color: var(--grape);
  opacity: .7;
  margin: 2px 0 4px;
  letter-spacing: .03em;
}

/* ================================================================
   DETAIL MODAL
   ================================================================ */
.detail-overlay .modal-box { max-width: 860px; padding: 0; overflow: hidden; max-height: 92vh; }
.detail-box { border-radius: 28px; }

/* Scroll happens on the content wrapper, not the individual right column */
.detail-overlay #detailContent {
  overflow-y: auto;
  max-height: 92vh;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
}
.detail-left {
  position: relative;
  background: var(--card-color, var(--sky));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 32px;
  min-height: 320px;
  overflow: hidden;
}
.detail-can-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.25) 0%, transparent 60%);
}
.detail-can { position: relative; z-index: 1; filter: drop-shadow(6px 8px 0 rgba(21,15,45,.3)); }
.detail-score-pill {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 2;
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 28px;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 16px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.2);
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.detail-score-pill span { font-family: 'Fredoka', sans-serif; font-size: 13px; color: rgba(255,210,63,.7); }

.detail-right {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-brand {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--grape);
  margin: 0;
}
.detail-flavor {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 36px;
  line-height: 1.05;
  margin: 0 0 4px;
}
.detail-review {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-80);
  margin: 8px 0 4px;
  flex: 1;
}
.detail-stars { font-size: 22px; color: var(--peach); letter-spacing: 3px; }
.share-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
  align-self: flex-start;
  margin-top: 4px;
}
.share-btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }

/* Radar section */
.detail-radar-section {
  padding: 24px 32px 32px;
  border-top: 2px dashed rgba(21,15,45,.1);
  background: var(--paper);
}
.detail-radar-title {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 22px;
  margin: 0 0 18px;
}
.detail-radar-wrap {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.detail-vector-list { flex: 1; min-width: 200px; }
.detail-vector-list .vectors { border-top: none; padding-top: 0; }

/* ================================================================
   MOBILE HAMBURGER NAV
   ================================================================ */
.nav-right { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s;
}
.hamburger:hover { transform: translate(-1px,-1px); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- Responsive ---- */
@media (max-width: 780px) {
  /* hamburger */
  .hamburger { display: flex; }
  .nav-submit { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    padding: 12px 0 18px;
    z-index: 99;
    box-shadow: 0 8px 32px rgba(21,15,45,.12);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 17px;
  }
  .nav-links a:hover { background: var(--yellow); }

  .card.is-featured {
    grid-template-columns: 1fr;
  }
  .card.is-featured .card-header {
    border-radius: calc(var(--radius-card) - 4px) calc(var(--radius-card) - 4px) 0 0;
  }
  .about-inner { grid-template-columns: 1fr; }
  .stats-bar { gap: 0; }

  /* detail modal on mobile */
  .detail-layout { grid-template-columns: 1fr; }
  .detail-left { min-height: 200px; padding: 24px; }
  .detail-right { padding: 20px 20px 16px; }
  .detail-flavor { font-size: 28px; }
  .detail-radar-wrap { flex-direction: column; }
  .detail-overlay .modal-box { max-height: 95vh; }
  .detail-overlay #detailContent { max-height: 95vh; }
}
@media (max-width: 500px) {
  .title { font-size: clamp(60px, 20vw, 80px); }
  .card-grid { grid-template-columns: 1fr; }
  .search-input { width: 160px; }
  .search-input:focus { width: 200px; }
  .filter-inner { gap: 8px; }
}

/* ================================================================
   CAN OF THE WEEK
   ================================================================ */
.cotw-section {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding: 0 24px;
  overflow: hidden;
}
.cotw-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.cotw-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--yellow);
  background: rgba(255,210,63,.12);
  border: 1.5px solid rgba(255,210,63,.3);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cotw-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}
.cotw-can {
  flex-shrink: 0;
  filter: drop-shadow(3px 4px 0 rgba(255,255,255,.1));
}
.cotw-info {
  flex: 1;
  min-width: 160px;
}
.cotw-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,.45);
  margin: 0 0 2px;
}
.cotw-flavor {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 22px;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.1;
}
.cotw-blurb {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin: 0;
  line-height: 1.5;
}
.cotw-score-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}
.cotw-score {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 40px;
  line-height: 1;
  color: var(--yellow);
}
.cotw-score-label {
  font-size: 15px;
  color: rgba(255,255,255,.4);
  font-weight: 600;
}
.cotw-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, transform .12s;
}
.cotw-btn:hover {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
  transform: translate(-1px, -1px);
}
@media (max-width: 640px) {
  .cotw-inner { gap: 14px; }
  .cotw-can { display: none; }
  .cotw-score { font-size: 32px; }
}

/* ================================================================
   SKELETON LOADING
   ================================================================ */
.card-skeleton {
  pointer-events: none;
  overflow: hidden;
  opacity: 1 !important;
  transform: none !important;
}
.skel-header {
  height: 180px;
  background: #e8e2f5;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skel {
  border-radius: 8px;
  background: #e8e2f5;
  animation: shimmer 1.4s ease-in-out infinite;
  margin-bottom: 10px;
}
.skel-sm   { height: 10px; width: 55%; }
.skel-lg   { height: 22px; width: 80%; }
.skel-pill { height: 18px; width: 30%; border-radius: 999px; }
.skel-text { height: 12px; width: 100%; }
.skel-short { width: 70%; }

@keyframes shimmer {
  0%   { opacity: .5; }
  50%  { opacity: 1;  }
  100% { opacity: .5; }
}

/* ================================================================
   EMPTY & ERROR STATES
   ================================================================ */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  gap: 14px;
}
.empty-icon {
  font-size: 52px;
  line-height: 1;
  display: block;
  animation: wobble 2.4s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50%       { transform: rotate(4deg) scale(1.08); }
}
.empty-title {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: 28px;
  margin: 0;
}
.empty-sub {
  font-size: 16px;
  color: var(--ink-80);
  margin: 0;
  max-width: 380px;
  line-height: 1.6;
}
.empty-retry {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--grape);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.empty-retry:hover { color: var(--pink); }
.error-state .empty-title { color: var(--pink); }

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */
#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
}
.toast {
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--yellow);
  border: 2.5px solid rgba(255,255,255,.15);
  box-shadow: 4px 4px 0 rgba(21,15,45,.35);
  max-width: 320px;
  line-height: 1.4;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px) scale(.95);
  transition: opacity .22s ease, transform .22s cubic-bezier(.4,1.3,.4,1);
}
.toast.toast-show {
  opacity: 1;
  transform: none;
}
.toast.toast-hide {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s ease;
}
.toast.toast-ok  { color: var(--mint); border-color: rgba(45,226,178,.35); }
.toast.toast-err { color: var(--pink); border-color: rgba(255,77,148,.35); }

@media (max-width: 500px) {
  #toastContainer { right: 12px; bottom: 16px; left: 12px; align-items: stretch; }
  .toast { max-width: none; }
}

/* ================================================================
   FOCUS & ACCESSIBILITY POLISH
   ================================================================ */
:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.chip:focus-visible,
.nav-submit:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
}

/* ================================================================
   MISC POLISH
   ================================================================ */
/* Smooth transitions on color filter changes */
.card-grid { transition: opacity .12s; }

/* Better placeholder */
::placeholder { opacity: .55; }
