/* ==========================================================================
   EQUA — GLASSMORPHISM & HIGH-TECH HUD STYLING (PORTFOLIO GRADE)
   ========================================================================== */

/* Universal Frosted Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 245, 160, 0.05);
}

/* Card Headers & Badges */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-accent {
  color: var(--accent-green);
  width: 22px;
  height: 22px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.live-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.35);
  color: var(--accent-green);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

/* ==========================================================================
   SECTION 2: INFRARED AI FOOD SCANNER ARENA (HOLOGRAPHIC ENHANCEMENT)
   ========================================================================== */
.scanner-interactive-container {
  padding: 2.5rem;
}

/* Food Selector Ribbon */
.food-selector-ribbon {
  margin-bottom: 2.2rem;
}

.ribbon-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.9rem;
}

.food-buttons-group {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.food-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  user-select: none;
}

.food-pill-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.food-pill-btn.active {
  background: rgba(0, 245, 160, 0.12);
  border-color: var(--accent-green);
  color: #fff;
  box-shadow: 0 0 22px var(--accent-green-glow);
}

/* Scanner Arena Layout */
.scanner-arena {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.8rem;
  align-items: center;
}

/* Scan Stage Visualizer */
.scan-stage {
  position: relative;
  min-height: 400px;
  background: radial-gradient(circle at center, rgba(14, 16, 26, 0.9) 0%, rgba(8, 9, 14, 0.95) 100%);
  background-image: 
    radial-gradient(rgba(0, 245, 160, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px;
  border: 1px solid rgba(0, 245, 160, 0.18);
  border-radius: 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

/* Holographic Targeting Reticle */
.targeting-reticle {
  position: absolute;
  width: 250px;
  height: 250px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reticle-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--accent-green);
  border-style: solid;
  border-width: 0;
  transition: all 0.35s ease;
}

.reticle-corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.reticle-corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.reticle-corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.reticle-corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.reticle-center-cross {
  width: 14px;
  height: 14px;
  position: relative;
}
.reticle-center-cross::before, .reticle-center-cross::after {
  content: '';
  position: absolute;
  background: rgba(0, 245, 160, 0.6);
}
.reticle-center-cross::before { top: 6px; left: 0; width: 14px; height: 2px; }
.reticle-center-cross::after { top: 0; left: 6px; width: 2px; height: 14px; }

/* Laser Sweep Line */
.laser-sweep-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-green), var(--accent-cyan), transparent);
  box-shadow: 0 0 20px var(--accent-green), 0 0 35px var(--accent-cyan);
  opacity: 0;
}

.targeting-reticle.scanning .laser-sweep-line {
  opacity: 1;
  animation: laserScan 1.2s infinite ease-in-out;
}

.targeting-reticle.scanning .reticle-corner {
  border-color: var(--accent-cyan);
  transform: scale(0.92);
}

@keyframes laserScan {
  0% { top: 5%; }
  50% { top: 95%; }
  100% { top: 5%; }
}

.scan-status-pill {
  position: absolute;
  bottom: -32px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--accent-green);
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Dish Display Wrap */
.dish-display-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  z-index: 5;
  margin-bottom: 2.2rem;
}

.dish-emoji {
  font-size: 5rem;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.7));
  transition: transform 0.4s var(--ease-out);
}

.dish-halo {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-green-glow) 0%, transparent 70%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
  transition: background 0.4s ease;
}

.dish-name-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: -0.01em;
}

.btn-scan-trigger {
  z-index: 10;
  font-size: 0.82rem;
  padding: 0.7rem 1.6rem;
}

/* Scanner Analysis HUD Right Panel */
.scanner-analysis-hud {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hud-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hud-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-green);
  font-size: 0.72rem;
}

/* Macro Big Highlight */
.macro-highlight {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1.4rem 1.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 1.1rem;
}

.macro-num {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.macro-unit {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.45rem;
}

.macro-confidence {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.conf-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.conf-val {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Nutrient Progress Bars */
.nutrient-meters {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.nutrient-meter .nut-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.nut-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.nut-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s var(--ease-out);
}

.bar-green { background: linear-gradient(90deg, #00c782, var(--accent-green)); box-shadow: 0 0 12px var(--accent-green-glow); }
.bar-coral { background: linear-gradient(90deg, #e61e53, var(--accent-coral)); box-shadow: 0 0 12px var(--accent-coral-glow); }
.bar-purple { background: linear-gradient(90deg, #6d28d9, var(--accent-purple)); box-shadow: 0 0 12px var(--accent-purple-glow); }
.bar-cyan { background: linear-gradient(90deg, #00a3cc, var(--accent-cyan)); box-shadow: 0 0 12px var(--accent-cyan-glow); }

/* AI Recommendation Box */
.ai-recommendation-box {
  display: flex;
  gap: 1.1rem;
  padding: 1.3rem;
  background: rgba(0, 245, 160, 0.05);
  border: 1px solid rgba(0, 245, 160, 0.22);
  border-radius: 1.1rem;
  align-items: flex-start;
}

.ai-coach-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 245, 160, 0.16);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-rec-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-green);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.ai-rec-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   SECTION 3: AI ASSISTANT DIALOGUE
   ========================================================================== */
.ai-chat-interface {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem;
}

.ai-voice-wave-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

#voice-wave-canvas {
  width: 100%;
  max-width: 540px;
  height: 70px;
  display: block;
}

.voice-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-green);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseLed 1.5s infinite ease-in-out;
}

.ai-quick-prompts {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.prompt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font-sub);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.prompt-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.ai-dialogue-window {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.chat-bubble {
  padding: 1.4rem 1.8rem;
  border-radius: 1.2rem;
  position: relative;
}

.bubble-sender {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.bubble-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #fff;
}

.user-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  align-self: flex-end;
  max-width: 80%;
}

.ai-bubble {
  background: rgba(0, 245, 160, 0.06);
  border: 1px solid rgba(0, 245, 160, 0.28);
  align-self: flex-start;
  max-width: 85%;
}

/* ==========================================================================
   SECTION 4: 3D STUDIO & CUSTOMIZER
   ========================================================================== */
.customizer-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.palette-picker, .band-picker {
  margin-bottom: 2rem;
}

.picker-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.85rem;
}

.color-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.color-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.color-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateY(-1px);
}

.color-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-green);
  color: #fff;
  box-shadow: 0 0 18px var(--accent-green-glow);
}

.color-swatch {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.swatch-onyx { background: #1a1a20; border: 1px solid #3a3b45; }
.swatch-titanium { background: #dcdfe4; border: 1px solid #fff; }
.swatch-nebula { background: linear-gradient(135deg, #7928ca, #ff3366); }

.band-options {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.band-btn {
  padding: 0.55rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.band-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.band-btn.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.studio-controls-bar {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Device Specs Card Right */
.device-specs-card {
  padding: 2.5rem;
}

.spec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-edition-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.spec-rows {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2.2rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.spec-k {
  color: var(--text-muted);
}

.spec-v {
  color: #fff;
  font-weight: 500;
}

.spec-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  display: block;
}

.price-curr {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
}

@media (max-width: 992px) {
  .scanner-arena { grid-template-columns: 1fr; }
  .customizer-layout { grid-template-columns: 1fr; }
  .ai-chat-interface { padding: 2rem 1.5rem; }
}
