:root {
  --primary: #c2593f;
  --primary-hover: #a8472f;
  --primary-light: #fbf1ee;
  --primary-dark: #7e2f1c;
  --secondary: #2f6f55;
  --secondary-light: #eaf4ef;
  --accent: #d9822b;
  --accent-light: #fdf5eb;
  
  --bg-page: #f9f8f5;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f3f1ec;
  --bg-hover: #ece9e2;
  
  --text-main: #232220;
  --text-muted: #6e6b65;
  --text-subtle: #98948d;
  
  --border-light: #e7e4dc;
  --border-strong: #d5d1c6;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(40, 30, 20, 0.04);
  --shadow-md: 0 8px 20px rgba(40, 30, 20, 0.06);
  --shadow-lg: 0 16px 36px rgba(40, 30, 20, 0.1);
  --shadow-xl: 0 24px 50px rgba(40, 30, 20, 0.14);
  
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background subtle texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: radial-gradient(circle at 50% -100px, rgba(194, 89, 63, 0.08) 0%, rgba(249, 248, 245, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Top App Header */
.app-header {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(249, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(194, 89, 63, 0.3);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #d46348);
  color: white;
  box-shadow: 0 4px 14px rgba(194, 89, 63, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  box-shadow: 0 6px 18px rgba(194, 89, 63, 0.38);
}

.btn-outline {
  border-color: var(--border-strong);
  background: transparent;
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

/* Hero Section */
.hero-banner {
  padding: 44px 0 24px;
  text-align: center;
}

.hero-tagline {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 8px;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-desc {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--text-muted);
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-surface);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-stats strong {
  color: var(--text-main);
  font-weight: 700;
}

.stat-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* Filters & Search Control Bar */
.filter-section {
  margin: 28px 0 36px;
}

.search-filter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 18px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(194, 89, 63, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--text-subtle);
  cursor: pointer;
  display: none;
}

.search-clear-btn:hover {
  color: var(--text-main);
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.pill-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.pill-btn.active {
  background: var(--text-main);
  color: white;
  border-color: var(--text-main);
  box-shadow: 0 4px 10px rgba(35, 34, 32, 0.2);
}

.pill-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.pill-btn.active .pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Secondary Filters Bar */
.secondary-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 13.5px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  color: var(--text-muted);
  font-weight: 600;
}

.select-custom {
  padding: 8px 32px 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6b65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.select-custom:focus {
  outline: none;
  border-color: var(--primary);
}

.difficulty-buttons {
  display: flex;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.diff-btn {
  border: none;
  background: var(--bg-page);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.diff-btn:not(:last-child) {
  border-right: 1px solid var(--border-light);
}

.diff-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.diff-btn.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Results count and active filter summary */
.results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.results-info strong {
  color: var(--text-main);
}

.btn-reset-filters {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Recipe Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

/* Recipe Card */
.recipe-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-strong);
}

.card-top-banner {
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f7efe7, #fdf8f4);
  overflow: hidden;
}

.card-icon {
  font-size: 64px;
  transition: transform var(--transition-normal);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.recipe-card:hover .card-icon {
  transform: scale(1.15) rotate(4deg);
}

.card-favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-subtle);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.card-favorite-btn:hover {
  transform: scale(1.1);
  color: #e04b4b;
}

.card-favorite-btn.favorited {
  color: #e04b4b;
}

.card-category-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.cuisine-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
}

.diff-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.diff-einfach { background-color: #2e8b57; }
.diff-mittel { background-color: #e67e22; }
.diff-anspruchsvoll { background-color: #c0392b; }

.card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.card-description {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-ingredients-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.ing-chip {
  background: var(--bg-subtle);
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-card-view {
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  background: var(--bg-subtle);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.recipe-card:hover .btn-card-view {
  background: var(--primary);
  color: white;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  margin: 40px 0;
}

.empty-icon {
  font-size: 52px;
  margin-bottom: 16px;
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Modal Overlay & Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 16, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
  border: 1px solid var(--border-light);
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-surface) 100%);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.modal-close-btn:hover {
  background: var(--text-main);
  color: white;
}

.modal-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.modal-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.modal-icon {
  font-size: 54px;
  line-height: 1;
  padding: 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.modal-titles {
  flex: 1;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

/* Modal Nav Tabs */
.modal-tabs {
  display: flex;
  padding: 0 32px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.tab-btn {
  padding: 12px 18px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

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

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

/* Modal Scrollable Body */
.modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  flex: 1;
}

.modal-info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.info-box {
  background: var(--bg-page);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
}

.info-box-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-subtle);
  font-weight: 700;
  margin-bottom: 4px;
}

.info-box-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-desc-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
  background: var(--bg-page);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

/* Recipe Content Layout (Two Columns) */
.recipe-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .recipe-content-grid {
    grid-template-columns: 1fr;
  }
}

.section-headline {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Portion Scaler Control */
.portion-scaler {
  display: inline-flex;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px 6px;
  gap: 8px;
}

.scale-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all var(--transition-fast);
}

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

.scale-count {
  font-size: 13.5px;
  font-weight: 700;
  min-width: 65px;
  text-align: center;
}

/* Ingredients List */
.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.ingredient-item:hover {
  background: var(--bg-hover);
}

.ingredient-item.checked {
  background: #f7f6f4;
  opacity: 0.6;
}

.ingredient-item.checked .ing-text {
  text-decoration: line-through;
  color: var(--text-subtle);
}

.ing-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.ingredient-item.checked .ing-checkbox {
  background: var(--secondary);
  border-color: var(--secondary);
  color: white;
}

.ing-qty-unit {
  font-weight: 700;
  color: var(--primary-dark);
  min-width: 70px;
  font-size: 13.5px;
}

.ing-text {
  font-size: 14px;
  color: var(--text-main);
  flex: 1;
}

/* Instructions List */
.instructions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.step-item:hover {
  border-color: var(--border-strong);
}

.step-item.step-done {
  opacity: 0.6;
  background: var(--bg-page);
}

.step-item.step-done .step-text {
  text-decoration: line-through;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.step-item.step-done .step-number {
  background: var(--secondary);
  color: white;
}

.step-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-main);
  padding-top: 3px;
}

/* Chef's Tips Callout */
.chef-tips-card {
  background: #fdf8ee;
  border: 1px solid #fae8c6;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.tips-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #a86208;
  margin-bottom: 8px;
}

.tips-list {
  padding-left: 20px;
  font-size: 13.5px;
  color: #634516;
  line-height: 1.6;
}

/* Nutrition Panel */
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: var(--bg-page);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-top: 14px;
  text-align: center;
}

.nutrition-item {
  display: flex;
  flex-direction: column;
}

.nutrition-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.nutrition-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
}

/* Raw XML Viewer */
.xml-container {
  display: none;
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.xml-container.active {
  display: block;
}

/* Modal Actions Bar (Footer) */
.modal-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left-buttons, .footer-right-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-main);
  color: white;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer of the page */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  padding: 36px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Notice Banner (for XML loading mode) */
.banner-notice {
  background: #eef7f2;
  border: 1px solid #cae8d5;
  color: #1e5e3a;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin: 16px 0 24px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.banner-notice.warning {
  background: #fff8e6;
  border-color: #f7e0a2;
  color: #8c5d00;
}

/* Print Styles */
@media print {
  .app-header,
  .hero-banner,
  .filter-section,
  .results-info,
  .recipe-grid,
  .app-footer,
  .modal-close-btn,
  .modal-tabs,
  .modal-footer,
  .portion-scaler,
  .toast-msg,
  .banner-notice {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }

  .modal-overlay {
    position: static !important;
    background: none !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .modal-dialog {
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    max-height: none !important;
    transform: none !important;
  }

  .modal-body {
    overflow: visible !important;
    padding: 0 !important;
  }

  .recipe-content-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  
  .step-item, .ingredient-item {
    page-break-inside: avoid;
  }
}
