/* ============================================
   DIET-TO-SKIN CHECKER - STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6a2a9b;
  --primary-light: #8a4ab8;
  --primary-dark: #5a1a8b;
  --accent: #f4a460;
  --accent-light: #f5b876;
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --neutral-light: #f9f7f4;
  --neutral-medium: #e8e0d4;
  --neutral-dark: #8a7a6a;
  --text-dark: #2d2520;
  --text-light: #8a7a6a;
  --bg-gradient: linear-gradient(135deg, #fdf8f0 0%, #fff5eb 100%);
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================
   LAYOUT
   ============================================ */

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

.app-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: var(--spacing-lg) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 4px solid var(--accent);
}

.header-content h1 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
}

.header-content .subtitle {
  font-size: 0.9rem;
  opacity: 0.95;
  font-weight: 400;
}

.btn-menu {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-menu:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   NAVIGATION TABS
   ============================================ */

.tab-navigation {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--neutral-light);
  border-bottom: 1px solid var(--neutral-medium);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  flex-shrink: 0;
  background: white;
  border: 2px solid var(--neutral-medium);
  color: var(--text-dark);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.app-content {
  flex: 1;
  padding: var(--spacing-lg) var(--spacing-md);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
  display: block;
}

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

/* ============================================
   GLOW SCORE CARD (TODAY'S GLOW)
   ============================================ */

.glow-score-card {
  background: linear-gradient(135deg, #fff9f0 0%, #fff5eb 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.glow-circle {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.glow-meter {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.glow-bg {
  fill: none;
  stroke: var(--neutral-medium);
  stroke-width: 4;
}

.glow-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 282.7;
  stroke-dashoffset: calc(282.7 - (282.7 * var(--percentage) / 100));
  transition: stroke-dashoffset 0.5s ease;
}

.glow-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.glow-number span {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.glow-number small {
  font-size: 0.8rem;
  color: var(--text-light);
}

.glow-status h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.glow-message {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================
   QUICK ADD SECTION
   ============================================ */

.quick-add-section {
  margin-bottom: var(--spacing-lg);
}

.quick-add-section h3 {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.food-input-group {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.food-input {
  flex: 1;
  padding: var(--spacing-md);
  border: 2px solid var(--neutral-medium);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.food-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 42, 155, 0.1);
}

.food-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.suggestion-chip {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--neutral-light);
  border: 1px solid var(--neutral-medium);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.suggestion-chip:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--neutral-light);
  color: var(--text-dark);
  border: 1px solid var(--neutral-medium);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--neutral-medium);
  border-color: var(--text-dark);
}

.btn-remove {
  background: #ffebee;
  color: var(--danger);
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remove:hover {
  background: var(--danger);
  color: white;
}

/* ============================================
   TODAY'S FOODS LIST
   ============================================ */

.today-foods-section {
  margin-bottom: var(--spacing-lg);
}

.today-foods-section h3 {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.foods-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.food-item {
  background: var(--neutral-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.food-item:hover {
  box-shadow: var(--shadow-sm);
}

.food-item-info h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

.food-item-score {
  font-size: 0.85rem;
  color: var(--text-light);
}

.food-item-score.positive {
  color: var(--success);
  font-weight: 600;
}

.food-item-score.negative {
  color: var(--danger);
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================
   HYDRATION TRACKER
   ============================================ */

.hydration-section {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}

.hydration-section h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary);
}

.hydration-tracker {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.hydration-info {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.hydration-info p {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.hydration-info strong {
  color: var(--primary);
  font-size: 1.2rem;
}

.hydration-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.btn-hydration {
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-hydration:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.hydration-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--primary);
}

.hydration-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 100px;
}

/* ============================================
   TRACKER TAB
   ============================================ */

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.tracker-header h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
}

.date-selector {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.btn-date {
  background: var(--neutral-light);
  border: 1px solid var(--neutral-medium);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-date:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.current-date {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 80px;
  text-align: center;
}

/* ============================================
   NUTRIENT SUMMARY
   ============================================ */

.nutrient-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.nutrient-card {
  background: white;
  border: 2px solid var(--neutral-medium);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.nutrient-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.nutrient-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: var(--spacing-xs);
}

.nutrient-name {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.nutrient-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

/* ============================================
   MEALS BREAKDOWN
   ============================================ */

.meals-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.meal-section {
  background: var(--neutral-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

.meal-section h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.meal-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.meal-item {
  background: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.meal-item-name {
  flex: 1;
  color: var(--text-dark);
}

.meal-item-score {
  font-weight: 600;
  margin-right: var(--spacing-sm);
}

.meal-item-score.positive {
  color: var(--success);
}

.meal-item-score.negative {
  color: var(--danger);
}

.btn-add-meal {
  width: 100%;
  padding: var(--spacing-md);
  background: white;
  border: 2px dashed var(--primary);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-meal:hover {
  background: var(--primary);
  color: white;
  border-style: solid;
}

/* ============================================
   FORECAST CARDS
   ============================================ */

.forecast-header {
  margin-bottom: var(--spacing-lg);
}

.forecast-header h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

.forecast-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
}

.forecast-card {
  background: white;
  border: 2px solid var(--neutral-medium);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  transition: all 0.2s;
}

.forecast-card:hover {
  box-shadow: var(--shadow-md);
}

.forecast-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.forecast-card h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.risk-meter {
  height: 20px;
  background: var(--neutral-light);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--neutral-medium);
}

.risk-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
  transition: width 0.5s ease;
  border-radius: 100px;
}

.forecast-message {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================
   FACE DIAGRAM
   ============================================ */

.deficiency-map {
  background: white;
  border: 2px solid var(--neutral-medium);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.deficiency-map h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.face-diagram {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.face-svg {
  width: 200px;
  height: 300px;
}

.face-zone {
  cursor: pointer;
  transition: all 0.2s;
  fill: rgba(106, 42, 155, 0.1);
  stroke: var(--primary);
  stroke-width: 1;
}

.face-zone:hover {
  fill: var(--accent);
  stroke-width: 2;
}

.deficiency-info {
  background: var(--neutral-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ============================================
   RECIPES SECTION
   ============================================ */

.recipes-header {
  margin-bottom: var(--spacing-lg);
}

.recipes-header h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

.recipes-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
}

.recipe-filters {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--spacing-sm);
}

.filter-btn {
  flex-shrink: 0;
  background: white;
  border: 2px solid var(--neutral-medium);
  color: var(--text-dark);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--spacing-md);
}

.recipe-card {
  background: white;
  border: 2px solid var(--neutral-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.recipe-image {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.recipe-info {
  padding: var(--spacing-md);
}

.recipe-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
}

.recipe-time {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.recipe-glow {
  background: #fff9e6;
  color: #ff9800;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* ============================================
   INSIGHTS SECTION
   ============================================ */

.insights-header {
  margin-bottom: var(--spacing-lg);
}

.insights-header h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

.insights-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
}

.insight-card {
  background: white;
  border: 2px solid var(--neutral-medium);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.insight-card h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.triggers-list,
.boosters-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.trigger-tag,
.booster-tag {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
}

.trigger-tag {
  background: #ffebee;
  color: var(--danger);
}

.booster-tag {
  background: #e8f5e9;
  color: var(--success);
}

.trend-chart,
.nutrient-balance {
  background: var(--neutral-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.recommendation-item {
  background: var(--neutral-light);
  padding: var(--spacing-md);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
}

.recommendation-item strong {
  color: var(--primary);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.recommendation-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   MODALS
   ============================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease-in;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--spacing-lg);
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--neutral-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   RECIPE DETAIL MODAL
   ============================================ */

.recipe-detail {
  padding-top: var(--spacing-lg);
}

.recipe-detail-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
}

.recipe-detail-header {
  margin-bottom: var(--spacing-lg);
}

.recipe-detail-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.recipe-detail-meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--text-light);
}

.recipe-detail-section {
  margin-bottom: var(--spacing-lg);
}

.recipe-detail-section h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: var(--spacing-sm);
}

.ingredients-list,
.instructions-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.ingredient-item,
.instruction-item {
  padding: var(--spacing-sm);
  background: var(--neutral-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
}

.instruction-item {
  padding-left: var(--spacing-lg);
  position: relative;
}

.instruction-item::before {
  content: attr(data-step);
  position: absolute;
  left: var(--spacing-sm);
  top: var(--spacing-sm);
  background: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.nutrition-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.nutrition-highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
}

.nutrition-highlight-value {
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
  margin-bottom: var(--spacing-xs);
}

.nutrition-highlight-label {
  font-size: 0.85rem;
  opacity: 0.95;
}

.btn-add-recipe {
  width: 100%;
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-recipe:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   DEFICIENCY DETAIL MODAL
   ============================================ */

.deficiency-detail {
  padding-top: var(--spacing-lg);
}

.deficiency-detail-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.deficiency-detail-zone {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.deficiency-detail-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.deficiency-detail-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.deficiency-detail-section {
  margin-bottom: var(--spacing-lg);
}

.deficiency-detail-section h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: var(--spacing-sm);
}

.food-sources-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--spacing-md);
}

.food-source {
  background: var(--neutral-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.food-source:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.food-source-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.food-source-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.symptoms-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.symptom-badge {
  background: #fff3e0;
  color: #e65100;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 480px) {
  .app-header {
    padding: var(--spacing-md);
  }

  .header-content h1 {
    font-size: 1.5rem;
  }

  .glow-score-card {
    flex-direction: column;
    text-align: center;
  }

  .glow-circle {
    width: 100px;
    height: 100px;
  }

  .nutrient-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nutrition-highlights {
    grid-template-columns: 1fr;
  }

  .modal-content {
    max-height: 95vh;
    padding: var(--spacing-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
