/* ==========================================================================
   ZEROMYTH LAB — INTERACTIVE MODULES & LAB SUITE
   - Ingredient X-Ray Slider
   - Crunch Meter Live Sound Analyzer & Reward Voucher Generator
   - Myth Killer / Myth vs Fact Interactive Cards
   - Myth Detector Museum FAQ
   - Flavor Finder Quiz
   - Crunch Wall UGC Community
   ========================================================================== */

.lab-section {
  padding: 8rem 0;
  background-color: var(--color-charcoal);
  position: relative;
  border-top: 1px solid rgba(253, 219, 94, 0.15);
}

/* Lab Navigation Tabs */
.lab-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.lab-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-cream);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s var(--ease-smooth);
}

.lab-tab-btn:hover {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  transform: translateY(-2px);
}

.lab-tab-btn.active {
  background: var(--color-yellow);
  color: #080B09;
  border-color: var(--color-yellow);
  box-shadow: 0 4px 20px rgba(245, 206, 98, 0.35);
}

/* Tab Panels */
.lab-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.lab-panel.active {
  display: block;
}

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

/* ==========================================================================
   1. INGREDIENT X-RAY SPECTROMETER EXPERIENCE
   ========================================================================== */
.xray-container {
  background: rgba(14, 20, 16, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(245, 206, 98, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

.xray-viewer {
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
  background: #080C0A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.9);
}

.xray-side {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xray-pack-view {
  z-index: 1;
  background: radial-gradient(circle at center, rgba(30, 42, 34, 0.6) 0%, #080C0A 100%);
}

.xray-inside-view {
  z-index: 2;
  background: radial-gradient(circle at center, rgba(20, 48, 30, 0.8) 0%, #050806 100%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.xray-inside-view .xray-cutaway-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.xray-pack-img {
  max-height: 440px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.85));
}

/* Glowing Neon Green Laser Line */
.xray-laser-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-green);
  box-shadow: 0 0 15px var(--color-green), 0 0 30px rgba(137, 196, 65, 0.8);
  z-index: 8;
  pointer-events: none;
  transform: translateX(-50%);
}

/* Floating Ingredient Hotspot Nodes */
.ingredient-floating-nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 9;
}

.ingredient-node {
  position: absolute;
  background: rgba(8, 12, 10, 0.85);
  border: 1.5px solid var(--color-green);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.35rem;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.6), 0 0 12px rgba(137, 196, 65, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatNode 4s infinite ease-in-out;
}

.ingredient-node:hover,
.ingredient-node.active {
  background: var(--color-green);
  color: #080B09;
  border-color: #FFFFFF;
  transform: scale(1.08) !important;
  box-shadow: 0 0 25px rgba(137, 196, 65, 0.8);
}

.ingredient-node:nth-child(1) { top: 18%; left: 14%; animation-delay: 0s; }
.ingredient-node:nth-child(2) { top: 26%; right: 14%; animation-delay: 0.8s; }
.ingredient-node:nth-child(3) { bottom: 22%; left: 16%; animation-delay: 1.6s; }
.ingredient-node:nth-child(4) { bottom: 18%; right: 16%; animation-delay: 2.4s; }

@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* X-Ray Slider Handle */
.xray-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: var(--color-yellow);
  color: #080B09;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: ew-resize;
  z-index: 10;
  box-shadow: 0 0 25px rgba(245, 206, 98, 0.8), 0 4px 15px rgba(0,0,0,0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.xray-slider-handle:hover,
.xray-slider-handle.dragging {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 35px rgba(245, 206, 98, 1);
}

/* Spectrometer Telemetry Details Card */
.xray-details-card {
  margin-top: 2rem;
  background: rgba(8, 12, 10, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.xray-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.xray-spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.2rem;
}

.xray-spec-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-yellow);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.xray-spec-val {
  font-size: 0.88rem;
  color: #FFFFFF;
}

/* ==========================================================================
   2. CRUNCH METER — LIVE AUDIO ANALYZER
   ========================================================================== */
.crunch-meter-container {
  background: radial-gradient(circle at center, #2e2c18 0%, #15140b 100%);
  border: 2px solid var(--color-yellow);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-yellow);
}

.audio-visualizer-canvas {
  width: 100%;
  height: 130px;
  background: rgba(23, 22, 11, 0.9);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border: 1px solid rgba(253, 219, 94, 0.25);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(253, 219, 94, 0.1);
}

.crunch-live-status-bar {
  background: rgba(15, 14, 8, 0.92);
  border: 1.5px solid var(--color-yellow);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1rem auto 1.5rem;
  max-width: 540px;
  box-shadow: 0 0 20px rgba(253, 219, 94, 0.25);
  animation: fadeIn 0.3s ease-out;
}

.crunch-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.crunch-pulse-indicator {
  color: #ff4757;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  animation: blinkRec 1s infinite alternate ease-in-out;
}

@keyframes blinkRec {
  0% { opacity: 1; text-shadow: 0 0 8px #ff4757; }
  100% { opacity: 0.4; text-shadow: none; }
}

.crunch-timer-text {
  font-weight: 900;
  color: var(--color-yellow);
  font-size: 1.1rem;
}

.crunch-timer-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.crunch-timer-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-green), var(--color-yellow));
  border-radius: 4px;
  transition: width 0.1s linear;
}

.crunch-db-live-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(251, 248, 238, 0.7);
}

.crunch-live-db {
  color: var(--color-green);
  font-weight: 800;
}

.crunch-score-display {
  display: none;
  margin: 2.5rem 0;
  animation: popScale 0.5s var(--ease-spring) forwards;
}

@keyframes popScale {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.crunch-score-number {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--color-yellow);
  line-height: 1;
  text-shadow: 0 0 30px rgba(253, 219, 94, 0.5);
}

.crunch-score-badge {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-green);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.crunch-audio-player-card {
  margin: 1.5rem auto;
  max-width: 580px;
  background: rgba(10, 10, 5, 0.75);
  border: 1px solid rgba(253, 219, 94, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease-out;
}

.crunch-reward-card {
  background: rgba(153, 202, 60, 0.12);
  border: 1px dashed var(--color-green);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 480px;
}

.crunch-reward-code {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-yellow);
  letter-spacing: 0.1em;
  margin: 0.5rem 0;
}

/* ==========================================================================
   3. 3D FLIPPABLE MYTH-BUSTER CARDS (HOVER & TAP FLIP + CONFETTI BLAST)
   ========================================================================== */
.myth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.myth-flip-card {
  perspective: 1200px;
  min-height: 380px;
  cursor: pointer;
}

.myth-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
}

.myth-flip-card:hover .myth-flip-inner,
.myth-flip-card.flipped .myth-flip-inner {
  transform: rotateY(180deg);
}

.myth-flip-front,
.myth-flip-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Front Side: The Myth */
.myth-flip-front {
  background: rgba(14, 20, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.myth-flip-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-yellow);
  background: rgba(245, 206, 98, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 206, 98, 0.28);
}

.myth-quote-container {
  margin: 1.5rem 0;
  position: relative;
}

.myth-quote-mark {
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  font-size: 4rem;
  color: rgba(255, 71, 87, 0.2);
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.myth-quote {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ff6b81;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

.myth-front-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.myth-busted-count-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-green);
  background: rgba(153, 202, 60, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
}

.myth-action-pill {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-yellow);
}

/* Back Side: The Fact & Bust Action */
.myth-flip-back {
  background: linear-gradient(145deg, #173623 0%, #0d1e15 100%);
  border: 2px solid var(--color-green);
  transform: rotateY(180deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(153, 202, 60, 0.25);
}

.myth-stamp-badge {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 900;
  color: #000;
  background: var(--color-green);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px rgba(153, 202, 60, 0.5);
}

.fact-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #FBF8EE;
  margin: 1.25rem 0;
}

.btn-bust-myth-blast {
  width: 100%;
  background: var(--color-yellow);
  color: #000;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(253, 219, 94, 0.4);
  transition: all 0.25s var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-bust-myth-blast:hover {
  transform: scale(1.04);
  background: #fff;
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5);
}

.busted-pulse {
  animation: bustedPulseAnim 0.5s ease-out;
}

@keyframes bustedPulseAnim {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.quiz-opt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  color: var(--color-yellow);
}

.quiz-option-btn:hover .quiz-opt-icon {
  color: var(--color-charcoal);
}

/* ==========================================================================
   4. MYTH DETECTOR MUSEUM FAQ
   ========================================================================== */
.myth-detector-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detector-item {
  background: rgba(44, 43, 24, 0.45);
  border: 1px solid rgba(253, 219, 94, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.detector-item.open {
  border-color: var(--color-yellow);
  background: rgba(44, 43, 24, 0.8);
}

.detector-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.detector-question {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-cream);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detector-icon {
  color: var(--color-yellow);
  font-size: 1.4rem;
  transition: transform 0.3s;
}

.detector-item.open .detector-icon {
  transform: rotate(45deg);
  color: var(--color-green);
}

.detector-body {
  padding: 0 2rem 1.75rem;
  display: none;
  border-top: 1px solid rgba(253, 219, 94, 0.1);
  margin-top: 0.5rem;
  color: rgba(251, 248, 238, 0.85);
}

.detector-item.open .detector-body {
  display: block;
}

/* ==========================================================================
   5. FLAVOR FINDER QUIZ
   ========================================================================== */
.quiz-card {
  background: rgba(34, 33, 17, 0.85);
  border: 2px solid var(--color-yellow);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--color-yellow);
  width: 33%;
  transition: width 0.3s ease;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.quiz-option-btn {
  background: rgba(44, 43, 24, 0.6);
  border: 1.5px solid rgba(253, 219, 94, 0.25);
  color: var(--color-cream);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.quiz-option-btn:hover {
  border-color: var(--color-yellow);
  background: var(--color-yellow);
  color: var(--color-charcoal);
  transform: translateY(-4px);
}

/* ==========================================================================
   6. THE CRUNCH WALL — UGC HUB
   ========================================================================== */
.ugc-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.ugc-card {
  background: rgba(44, 43, 24, 0.5);
  border: 1px solid rgba(253, 219, 94, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.ugc-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-green);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.ugc-media-holder {
  height: 220px;
  background: #1a190f;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ugc-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ugc-score-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-charcoal);
  border: 1px solid var(--color-yellow);
  color: var(--color-yellow);
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.ugc-card-body {
  padding: 1.5rem;
}

.ugc-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ugc-author-name {
  font-weight: 800;
  color: var(--color-cream);
  font-size: 0.95rem;
}

.ugc-flavor-tag {
  color: var(--color-green);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.ugc-comment {
  font-size: 0.88rem;
  color: rgba(251, 248, 238, 0.75);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .xray-viewer { height: 380px; }
  .pdp-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SPIN-TO-WIN WHEEL MODAL & GAME SUITE
   ========================================================================== */
.spin-wheel-card {
  background: rgba(14, 20, 16, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(245, 206, 98, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  margin-top: 2rem;
}

.wheel-stage-wrap {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#spinWheelCanvas {
  width: 100%;
  height: 100%;
}

.wheel-pointer-arrow {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid #F5CE62;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8));
}

.prize-popup-card {
  margin-top: 1.5rem;
  background: rgba(245, 206, 98, 0.12);
  border: 1px solid rgba(245, 206, 98, 0.4);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  animation: fadeIn 0.4s ease;
}

.prize-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-yellow);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.prize-headline {
  font-size: 1.8rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.prize-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.prize-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   CUSTOM FLAVOR INFUSION STUDIO (MIXER)
   ========================================================================== */
.mixer-studio-card {
  background: rgba(14, 20, 16, 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.mixer-spices-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.mixer-spice-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-cream);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mixer-spice-chip:hover {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
}

.mixer-spice-chip.active {
  background: var(--color-yellow);
  color: #080B09;
  border-color: var(--color-yellow);
  box-shadow: 0 4px 15px rgba(245, 206, 98, 0.35);
}

.mixer-preview-card {
  background: radial-gradient(circle at center, rgba(35, 52, 42, 0.7) 0%, rgba(8, 12, 10, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mixer-preview-img {
  max-height: 200px;
  object-fit: contain;
  margin: 1rem auto;
}

/* ==========================================================================
   DYNAMIC SOCIAL PROOF TICKER
   ========================================================================== */
#liveSocialTicker {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#liveSocialTicker.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.live-ticker-card {
  background: rgba(12, 18, 14, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 206, 98, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  max-width: 380px;
}

.ticker-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-green);
  flex-shrink: 0;
  animation: pulseGlow 1.5s infinite;
}

.ticker-text {
  display: block;
  font-size: 0.82rem;
  color: #FFFFFF;
}

.ticker-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #8E9E93;
  margin-top: 0.2rem;
}

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.search-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-box {
  width: 90%;
  max-width: 680px;
  background: rgba(14, 20, 16, 0.95);
  border: 1px solid rgba(245, 206, 98, 0.28);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

.search-input-header {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
}

.search-input-field {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: #FFFFFF;
  font-family: var(--font-body);
  outline: none;
}

.search-results-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 1rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-res-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 4px;
}

.search-res-info {
  flex: 1;
}

.search-res-title {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 0.95rem;
}

.search-res-tagline {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.search-res-price {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--color-yellow);
}

.search-empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
  .xray-container { padding: 1.5rem; }
  .quiz-card { padding: 2rem 1.25rem; }
  .crunch-meter-container { padding: 2rem 1.25rem; }
}
