/* ============================================================
   🧋 PHÒNG LAB R&D – ĐẤU TRƯỜNG "ĐU TREND" ẨM THỰC
   Thiết kế chuẩn Vibe Tiệm Trà Tí Hon (Ấm cúng, Pastel, Gỗ, Chibi)
   ============================================================ */

.rnd-lab-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 4px 28px;
  max-width: 820px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 1. HERO BANNER - ẤM CÚNG, TÔNG TRÀ VÀ GỖ */
.rnd-hero {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 40%, #ffedd5 100%);
  border: 2px solid #fde68a;
  color: #78350f;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.rnd-hero::after {
  content: "🧋✨";
  position: absolute;
  right: -6px;
  bottom: -10px;
  font-size: 4rem;
  opacity: 0.16;
  pointer-events: none;
}

.rnd-hero-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rnd-hero-sub {
  font-size: 0.84rem;
  color: #b45309;
  margin-top: 4px;
  max-width: 500px;
  line-height: 1.45;
}

.rnd-stat-badge {
  background: #ffffff;
  border: 2px solid #fcd34d;
  border-radius: 14px;
  padding: 8px 14px;
  text-align: right;
  min-width: 130px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.rnd-stat-badge .num {
  font-size: 1.35rem;
  font-weight: 900;
  color: #d97706;
}

.rnd-stat-badge .lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  color: #92400e;
}

/* 2. TREND RADAR (BẢN TIN XU HƯỚNG MXH) */
.trend-radar-card {
  background: var(--card, #ffffff);
  border: 1.5px solid #fde68a;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.trend-radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.trend-radar-title {
  font-size: 0.98rem;
  font-weight: 900;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-pill {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 14px;
  border: 1px solid #fde68a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.trend-item-box {
  background: #fffdfa;
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  padding: 12px;
  position: relative;
}

.trend-item-box.primary {
  border: 2px solid #f59e0b;
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.12);
}

.trend-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.trend-name {
  font-size: 0.95rem;
  font-weight: 900;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-badge-hot {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

.trend-desc {
  font-size: 0.8rem;
  color: #78350f;
  line-height: 1.4;
  margin-bottom: 8px;
}

.trend-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.trend-hint-tag {
  background: #ffffff;
  color: #92400e;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid #fde68a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 3. MIX & MATCH STATION */
.rnd-station-card {
  background: var(--card, #ffffff);
  border: 1.5px solid #fde68a;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.rnd-station-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.rnd-station-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .rnd-station-grid {
    grid-template-columns: 1fr;
  }
}

.rnd-selector-group {
  margin-bottom: 12px;
}

.rnd-group-lbl {
  font-size: 0.78rem;
  font-weight: 800;
  color: #78350f;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rnd-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rnd-chip {
  background: #fbfbfc;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink, #374151);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s ease;
  user-select: none;
}

.rnd-chip:hover {
  background: #fef3c7;
  border-color: #fcd34d;
}

.rnd-chip.selected {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.rnd-chip.selected.top-chip {
  background: #fce7f3;
  border-color: #ec4899;
  color: #9d174d;
  box-shadow: 0 2px 6px rgba(236, 72, 153, 0.25);
}

/* LIVE IN-GAME CUP PREVIEW */
.rnd-preview-box {
  background: linear-gradient(145deg, #fffbeb 0%, #fff7ed 100%);
  border: 2px dashed #fcd34d;
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.rnd-in-game-cup-wrap {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transform: scale(1.15);
  transform-origin: center center;
}

.rnd-preview-name-input {
  width: 100%;
  max-width: 220px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  border: 2px solid #fcd34d;
  border-radius: 10px;
  padding: 6px 8px;
  margin-bottom: 8px;
  color: #92400e;
  background: #ffffff;
}

.rnd-preview-name-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.hype-meter-wrap {
  width: 100%;
  background: #e5e7eb;
  border-radius: 10px;
  height: 14px;
  overflow: hidden;
  position: relative;
  margin: 4px 0 8px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.hype-meter-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.hype-meter-fill.super-hot {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

.hype-meter-fill.hot {
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 100%);
}

.hype-meter-fill.normal {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.hype-meter-fill.cold {
  background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 100%);
}

.rnd-meta-pill {
  font-size: 0.76rem;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 10px;
  line-height: 1.4;
}

.rnd-launch-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s ease;
  width: 100%;
  max-width: 220px;
  justify-content: center;
}

.rnd-launch-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(217, 119, 6, 0.35);
}

.rnd-launch-btn:disabled {
  background: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

/* 4. DISHES LIST (MENU SÁNG CHẾ R&D - FIX LỖI CO CHỮ HÌNH 4) */
.rnd-dishes-card {
  background: var(--card, #ffffff);
  border: 1.5px solid #fde68a;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.rnd-dish-item {
  background: #fffdfa;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
}

.rnd-dish-item.signature {
  background: linear-gradient(145deg, #fffdf8 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.15);
}

.rnd-dish-left-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 240px;
  min-width: 200px;
}

.rnd-dish-cup-thumb {
  width: 44px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: scale(0.9);
}

.rnd-dish-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.rnd-dish-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  white-space: normal;
  word-break: break-word;
}

.rnd-dish-name {
  font-size: 0.96rem;
  font-weight: 900;
  color: #78350f;
  line-height: 1.35;
}

.rnd-dish-sig-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.rnd-dish-recipe {
  font-size: 0.8rem;
  color: var(--soft, #6b7280);
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

.rnd-dish-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rnd-price-input-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 4px 8px;
  gap: 4px;
}

.rnd-price-input-box input {
  width: 65px;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: right;
  color: #047857;
  outline: none;
}

.rnd-price-input-box span {
  font-size: 0.8rem;
  font-weight: 800;
  color: #6b7280;
}
