/* ===== CSS VARIABLES ===== */
:root {
  /* Dark Mode (Default) */
  --bg-page: #0F1117;
  --bg-surface-1: #1A1D27;
  --bg-surface-2: #252936;
  --bg-surface-3: #2D3240;
  --accent: #F97316;
  --accent-hover: #FB923C;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: #2D3240;
  --color-protein: #60A5FA;
  --color-carbs: #EAB308;
  --color-fat: #F97316;
  --success: #10B981;
  --danger: #F43F5E;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

[data-theme="light"] {
  --bg-page: #FAFAFA;
  --bg-surface-1: #FFFFFF;
  --bg-surface-2: #F5F5F5;
  --bg-surface-3: #EEEEEE;
  --accent: #EA6C00;
  --accent-hover: #F97316;
  --text-primary: #09090B;
  --text-secondary: #525252;
  --text-muted: #737373;
  --border: #E5E5E5;
  --color-protein: #2563EB;
  --color-carbs: #CA8A04;
  --color-fat: #EA6C00;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ===== NAVIGATION ===== */
.logo-accent {
  color: var(--accent);
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 0.2s;
}

.dropdown-toggle:hover {
  color: var(--text-primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.dropdown-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.dropdown-item:hover,
.dropdown-item.active {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

[data-theme="light"] .sun-icon {
  display: block;
}

[data-theme="light"] .moon-icon {
  display: none;
}

/* ===== HERO SECTION ===== */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

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

.btn-secondary {
  background: var(--bg-surface-1);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-surface-2);
}

.btn-text {
  background: none;
  color: var(--text-secondary);
  padding: 0.5rem;
}

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

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ===== CALCULATOR SECTION ===== */
.calculator-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Mode Selection */
.mode-selection {
  text-align: center;
  padding: 3rem 0;
}

.mode-selection h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.mode-card {
  padding: 2rem;
  background: var(--bg-surface-1);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

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

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.mode-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.mode-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.mode-time {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-surface-2);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.mode-note {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== WIZARD ===== */
.wizard-container {
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
}

.wizard-progress {
  height: 4px;
  background: var(--bg-surface-2);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
  width: 16.66%;
}

.wizard-step {
  min-height: 400px;
}

.step-content {
  animation: fadeIn 0.3s ease;
}

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

.step-header {
  margin-bottom: 1.5rem;
}

.step-number {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.step-content h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

/* Unit Selection */
.unit-selection {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.unit-btn {
  padding: 2rem;
  background: var(--bg-surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.unit-btn.active,
.unit-btn:hover {
  border-color: var(--accent);
  background: var(--bg-surface-3);
}

.unit-name {
  display: block;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.unit-desc {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.2s;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

input::placeholder {
  color: var(--text-muted);
}

.error-message {
  display: block;
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  min-height: 1.25rem;
}

.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Radio Cards */
.radio-group {
  display: flex;
  gap: 1rem;
}

.radio-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.radio-card input {
  display: none;
}

.radio-card:has(input:checked),
.radio-card:hover {
  border-color: var(--accent);
  background: var(--bg-surface-3);
}

/* Activity Selection */
.activity-selection {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.activity-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.activity-card input {
  display: none;
}

.activity-content {
  display: flex;
  flex-direction: column;
}

.activity-content strong {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.activity-content span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.activity-card:has(input:checked),
.activity-card:hover {
  border-color: var(--accent);
  background: var(--bg-surface-3);
}

/* Goal Selection */
.goal-selection {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.goal-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.goal-card input {
  display: none;
}

.goal-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.goal-content strong {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.goal-content span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.goal-calorie {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-surface-3);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.5rem;
  width: fit-content;
}

.goal-card:has(input:checked),
.goal-card:hover {
  border-color: var(--accent);
  background: var(--bg-surface-3);
}

/* Wizard Buttons */
.wizard-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.wizard-next,
.wizard-calculate {
  margin-left: auto;
}

/* ===== FAST MODE ===== */
.fast-mode-container {
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
}

.fast-mode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.fast-mode-header h2 {
  font-size: 1.5rem;
}

.unit-toggle {
  display: flex;
  background: var(--bg-surface-2);
  border-radius: var(--radius-md);
  padding: 4px;
}

.unit-toggle-btn {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.unit-toggle-btn.active {
  background: var(--accent);
  color: white;
}

.fast-mode-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===== RESULTS ===== */
.results-container {
  margin-top: 3rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-header h2 {
  font-size: 2rem;
}

.results-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.result-card {
  padding: 2rem;
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.2s;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.result-card.hero {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.result-card.hero .result-label,
.result-card.hero .result-unit,
.result-card.hero .result-desc {
  color: white;
}

.result-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.result-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-unit {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.result-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Macro Section */
.macro-section {
  margin-bottom: 3rem;
}

.macro-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.macro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.macro-card {
  padding: 1.5rem;
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.macro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.macro-card.protein::before {
  background: var(--color-protein);
}

.macro-card.carbs::before {
  background: var(--color-carbs);
}

.macro-card.fat::before {
  background: var(--color-fat);
}

.macro-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.macro-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.macro-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.macro-calories {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.macro-percent {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-surface-2);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Macro Bar */
.macro-bar {
  display: flex;
  height: 12px;
  background: var(--bg-surface-2);
  border-radius: 6px;
  overflow: hidden;
}

.macro-bar-segment {
  height: 100%;
  transition: width 0.5s ease;
}

.macro-bar-segment.protein {
  background: var(--color-protein);
}

.macro-bar-segment.carbs {
  background: var(--color-carbs);
}

.macro-bar-segment.fat {
  background: var(--color-fat);
}

/* Meal Section */
.meal-section {
  margin-bottom: 3rem;
}

.meal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.meal-header h3 {
  font-size: 1.5rem;
}

.meal-toggle {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meal-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.meal-btn.active,
.meal-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.meal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.meal-card {
  padding: 1.25rem;
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.meal-card .meal-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.meal-card .meal-calories {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.meal-card .meal-macros {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Summary Section */
.summary-section {
  padding: 2rem;
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
}

.summary-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.summary-text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== MACRO CHART (CANVAS) ===== */
.macro-chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.chart-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
}

#macroChart {
  width: 100%;
  height: 100%;
  border-radius: 50%; 
  display: block;     
  background: transparent; 
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .macro-chart-container {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ===== FAQ SECTION ===== */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.faq-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.faq-question:hover {
  background: var(--bg-surface-2);
}

.faq-question svg {
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== ADVERTISEMENT ===== */
.ad-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.ad-placeholder {
  padding: 3rem;
  background: var(--bg-surface-1);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.disclaimer {
  max-width: 600px;
  text-align: right;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .calculator-section {
    padding: 0 1rem 3rem;
  }
  
  .wizard-container,
  .fast-mode-container {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .radio-group {
    flex-direction: column;
  }
  
  .macro-cards {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .results-actions {
    width: 100%;
  }
  
  .results-actions .btn {
    flex: 1;
  }
  
  .footer-container {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .disclaimer {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .unit-selection {
    grid-template-columns: 1fr;
  }
  
  .wizard-buttons {
    flex-direction: column;
  }
  
  .wizard-next,
  .wizard-calculate {
    margin-left: 0;
    width: 100%;
  }
  
  .meal-toggle {
    width: 100%;
  }
  
  .meal-btn {
    flex: 1;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  .results-actions,
  .mode-selection,
  .wizard-container,
  .fast-mode-container,
  .faq-section,
  .ad-section {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .results-container {
    display: block !important;
  }
  
  .result-card {
    break-inside: avoid;
    border: 1px solid #ddd;
  }
}

/* ===== CUSTOM MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

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

.modal-header h3 {
  font-size: 1.25rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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