/* 쑥쑥계산기 - 최종 디자인 (미리보기와 동일한 톤: 더스티블루+네이비) */
.bgc-wrap {
  --bgc-bg: #FBF7EF;
  --bgc-ink: #202B33;
  --bgc-ink-soft: #5B6670;
  --bgc-card: #FFFFFF;
  --bgc-line: #E4DCC9;
  --bgc-blue: #3B6E8F;
  --bgc-blue-dark: #1F3A52;
  --bgc-blue-tint: #E4EEF3;
  --bgc-ochre: #B9791E;
  --bgc-ochre-tint: #FAEDD9;
  --bgc-warn: #B23B2E;
  --bgc-warn-tint: #FBE7E2;

  max-width: 900px;
  margin: 0 auto;
  font-family: 'Noto Sans KR', -apple-system, "Malgun Gothic", sans-serif;
  color: var(--bgc-ink);
}

.bgc-wrap .bgc-field-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 16px;
}
.bgc-wrap .bgc-field { display: block !important; }
.bgc-wrap .bgc-field label {
  display: block !important;
  width: auto !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--bgc-ink-soft) !important;
  margin: 0 0 6px !important;
}
.bgc-wrap input[type="date"],
.bgc-wrap input[type="number"] {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding: 10px 12px;
  border: 1px solid var(--bgc-line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--bgc-ink);
}

.bgc-sex-toggle { display: flex; gap: 8px; }
.bgc-sex-toggle button {
  padding: 10px 16px;
  border: 1px solid var(--bgc-line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: var(--bgc-ink-soft);
}
.bgc-sex-toggle button.active {
  background: var(--bgc-blue-tint);
  border-color: var(--bgc-blue);
  color: var(--bgc-blue-dark);
  font-weight: 500;
}

.bgc-btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--bgc-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
}
.bgc-btn-primary:hover { background: var(--bgc-blue-dark); }

/* 결과 영역 */
.bgc-result {
  margin-top: 30px;
}
.bgc-result-headline {
  text-align: center;
  margin-bottom: 20px;
}
.bgc-result-headline .bgc-rank {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--bgc-blue-dark);
}
.bgc-result-headline .bgc-sub {
  font-size: 13px;
  color: var(--bgc-ink-soft);
  margin-top: 4px;
}

/* 동물 리빌 이미지 영역 */
.bgc-reveal {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--bgc-blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bgc-reveal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bgc-reveal .bgc-reveal-fallback { font-size: 56px; }

.bgc-panel {
  background: var(--bgc-card);
  border: 1px solid var(--bgc-line);
  border-radius: 14px;
  padding: 26px;
}

.bgc-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--bgc-line);
  gap: 10px;
  flex-wrap: wrap;
}
.bgc-metric-row:last-child { border-bottom: none; }
.bgc-metric-name { font-size: 14px; font-weight: 500; min-width: 60px; }
.bgc-metric-value { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--bgc-ink-soft); }
.bgc-metric-bar-wrap { flex: 1; height: 8px; background: var(--bgc-blue-tint); border-radius: 4px; position: relative; min-width: 60px; }
.bgc-metric-bar-fill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 4px; background: var(--bgc-blue); }
.bgc-badge { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.bgc-badge-normal { background: var(--bgc-blue-tint); color: var(--bgc-blue-dark); }
.bgc-badge-caution { background: var(--bgc-ochre-tint); color: var(--bgc-ochre); }
.bgc-badge-warn { background: var(--bgc-warn-tint); color: var(--bgc-warn); }

/* 해외 비교 - 접이식, 눈에 띄지 않게 */
.bgc-intl-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid var(--bgc-line);
  font-size: 13px;
  color: var(--bgc-blue-dark);
  cursor: pointer;
  user-select: none;
}
.bgc-intl-toggle .bgc-intl-icon { font-size: 16px; color: var(--bgc-ink-soft); }
.bgc-intl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
}
.bgc-intl-row .bgc-intl-country { color: var(--bgc-ink-soft); min-width: 100px; }
.bgc-intl-row .bgc-intl-value { font-family: 'IBM Plex Mono', monospace; color: var(--bgc-ink); }

/* 영양 정보 */
.bgc-nutrient {
  margin-top: 20px;
  background: var(--bgc-ochre-tint);
  border-radius: 12px;
  padding: 18px 20px;
}
.bgc-nutrient h4 { margin: 0 0 8px; font-size: 14px; color: var(--bgc-ochre); }
.bgc-nutrient ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--bgc-ink); }
.bgc-coupang-btn {
  display: inline-block;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--bgc-ochre);
  color: var(--bgc-ochre);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.bgc-coupang-btn:hover { background: var(--bgc-ochre); color: #fff; }
.bgc-product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
}
.bgc-product-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.bgc-product-info { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 10px; flex-wrap: wrap; }
.bgc-product-name { font-size: 13px; font-weight: 600; color: var(--bgc-ink); }
.bgc-disclaimer {
  font-size: 11px;
  color: var(--bgc-ink-soft);
  margin-top: 10px;
}
.bgc-coupang-note {
  font-size: 11px;
  color: var(--bgc-ink-soft);
  opacity: 0.8;
}
