/* ==========================================================================
   EMTO Taste - Design System & Stylesheet (Mobile-First)
   Corporate Colors: Burgundy (#8c172a), Dark Slate (#0f0f11), Warm Off-White (#f8fafc)
   ========================================================================== */



:root {
  --emto-primary: #8c172a;
  --emto-primary-hover: #b11d35;
  --emto-primary-dark: #5e0d1b;
  --emto-primary-light: #fdf2f4;
  --emto-primary-soft: rgba(140, 23, 42, 0.08);
  --emto-gold: #d4af37;
  --emto-emerald: #10b981;
  --emto-teal: #0d9488;
  
  --dark-bg: #0f0f11;
  --dark-surface: #18181b;
  --dark-border: rgba(255, 255, 255, 0.1);
  
  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --light-border: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.10);
  --shadow-primary: 0 8px 24px rgba(140, 23, 42, 0.22);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-main: Arial, Helvetica, sans-serif;
  --font-serif: Arial, Helvetica, sans-serif;
  
  --header-height: 64px;
  --bottom-nav-height: 68px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

/* Header & Navigation */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 17, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--emto-primary);
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.brand-logo-img {
  height: 38px;
  width: auto;
  border-radius: 4px;
}

.brand-title-group h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title-group h1 span {
  color: #ff5e78;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
}

.brand-title-group p {
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

/* Language Switcher Toggle (DE / EN) */
.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  user-select: none;
}

.lang-btn .flag {
  font-size: 0.95rem;
  line-height: 1;
}

.lang-btn .lang-code {
  letter-spacing: 0.5px;
}

.lang-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
  background: var(--emto-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(140, 23, 42, 0.45);
}

/* Hide Google Translate top banner, iframe & tooltips for clean native feel */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  border: none !important;
}

body {
  top: 0px !important;
  position: static !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

.skiptranslate {
  display: inline;
}

#google_translate_element {
  display: none !important;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.btn-icon:hover {
  background: var(--emto-primary);
  border-color: var(--emto-primary-hover);
  transform: translateY(-2px);
}

.btn-cms-badge {
  background: var(--emto-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.btn-cms-badge:hover {
  background: var(--emto-primary-hover);
  transform: scale(1.03);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(15, 15, 17, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 500;
  gap: 3px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
}

.bottom-nav-item .icon {
  font-size: 1.25rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: #ffffff;
}

.bottom-nav-item.active .icon {
  transform: scale(1.15);
  color: #ff5e78;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #180307 0%, #3d0812 40%, #0f0f11 100%);
  color: #ffffff;
  padding: 28px 16px 36px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(177, 29, 53, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fde8ec;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #ffffff;
}

.hero-title span {
  background: linear-gradient(120deg, #ffffff 40%, #ff8597 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

/* Interactive Portion Scaler Bar */
.portion-calculator-bar {
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: -24px 16px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(140, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 10;
  max-width: 1200px;
}

@media (min-width: 1232px) {
  .portion-calculator-bar {
    margin: -24px auto 24px;
  }
}

.baking-batch-bar {
  border-left: 6px solid var(--emto-gold) !important;
  background: linear-gradient(135deg, #ffffff 0%, #fffdfa 100%) !important;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.12);
}

.portion-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--emto-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.portion-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stepper-control {
  display: flex;
  align-items: center;
  background: var(--light-bg);
  border: 2px solid var(--emto-primary-soft);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.stepper-btn {
  background: var(--light-surface);
  color: var(--emto-primary);
  border: 1px solid #e2e8f0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.stepper-btn:hover, .stepper-btn:active {
  background: var(--emto-primary);
  color: #ffffff;
  border-color: var(--emto-primary);
}

.stepper-input {
  width: 52px;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--emto-primary-dark);
}

.stepper-input:focus {
  outline: none;
}

/* Category Filter Bar (Horizontal Scroll on Mobile) */
.category-filter-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 12px;
}

.category-scroll-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-scroll-container::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex-shrink: 0;
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.category-pill .badge-count {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.category-pill:hover {
  border-color: var(--emto-primary);
  color: var(--emto-primary);
}

.category-pill.active {
  background: var(--emto-primary);
  color: #ffffff;
  border-color: var(--emto-primary);
  box-shadow: var(--shadow-primary);
}

.category-pill.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Quick Search Box */
.search-bar-container {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 16px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input-box input:focus {
  outline: none;
  border-color: var(--emto-primary);
  box-shadow: 0 0 0 3px rgba(140, 23, 42, 0.12);
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Quick Jump Ribbon */
.rubriken-quick-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 auto 24px;
  max-width: 1200px;
  padding: 12px 18px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.rubriken-quick-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
}

.rubrik-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rubrik-jump-btn:hover {
  background: var(--emto-primary-light);
  color: var(--emto-primary);
  border-color: rgba(140, 23, 42, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(140, 23, 42, 0.1);
}

.rubrik-jump-btn span.badge-num {
  font-size: 0.7rem;
  background: rgba(15, 23, 42, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  color: #64748b;
}

.rubrik-jump-btn:hover span.badge-num {
  background: rgba(140, 23, 42, 0.15);
  color: var(--emto-primary);
}

/* Rubrik Section & Header */
.rubrik-section {
  margin-bottom: 50px;
  position: relative;
  scroll-margin-top: 90px;
  transition: opacity 0.3s ease;
}

.rubrik-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #fdfcfc 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
  border-left: 6px solid var(--emto-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

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

.rubrik-icon {
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  background: var(--emto-primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(140, 23, 42, 0.12);
}

.rubrik-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rubrik-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rubrik-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--emto-primary);
  background: var(--emto-primary-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.rubrik-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.rubrik-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}

.rubrik-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 650px;
}

.rubrik-jump-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--light-border);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rubrik-jump-top:hover {
  color: var(--emto-primary);
  border-color: var(--emto-primary);
  background: var(--emto-primary-light);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .rubrik-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }
  .rubrik-jump-top {
    align-self: flex-end;
  }
  .rubrik-icon {
    font-size: 1.8rem;
    width: 46px;
    height: 46px;
  }
  .rubrik-title {
    font-size: 1.25rem;
  }
}

/* Recipe Grid & Cards */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .recipes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.recipe-card {
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(140, 23, 42, 0.25);
}

.card-media-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #18181b;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-card:hover .card-img {
  transform: scale(1.06);
}

.card-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.badge-pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-cat {
  background: rgba(140, 23, 42, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-time {
  background: rgba(15, 15, 17, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-title a:hover {
  color: var(--emto-primary);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag-item {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--emto-primary-light);
  color: var(--emto-primary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* Ingredients Section inside Card */
.card-ingredients {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.ingredients-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emto-primary-dark);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ingredients-list {
  list-style: none;
  font-size: 0.85rem;
  max-height: 130px;
  overflow-y: auto;
  padding-right: 4px;
}

.ingredients-list li {
  padding: 3px 0;
  border-bottom: 1px dashed #e2e8f0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ingredients-list li:last-child {
  border-bottom: none;
}

.ing-qty {
  font-weight: 700;
  color: var(--emto-primary);
  flex-shrink: 0;
}

.ing-name {
  color: #334155;
}

/* Instructions Summary */
.card-instructions {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Actions */
.card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--light-border);
}

.btn-detail {
  flex-grow: 1;
  background: var(--emto-primary);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-detail:hover {
  background: var(--emto-primary-hover);
  box-shadow: var(--shadow-primary);
}

.btn-quick-edit {
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-quick-edit:hover {
  background: #ffffff;
  color: var(--emto-primary);
  border-color: var(--emto-primary);
}

/* Detail Recipe Page Styles */
.recipe-detail-header {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 16px 0 16px;
  box-shadow: var(--shadow-md);
  background: #18181b;
}

@media (min-width: 768px) {
  .recipe-detail-header {
    height: 420px;
    margin: 24px 0 20px;
  }
}

.detail-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating Navigation & Action Bar on Photo */
.detail-floating-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.detail-floating-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-floating-nav,
.btn-floating-icon {
  pointer-events: auto;
  background: rgba(15, 15, 17, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.btn-floating-nav:hover,
.btn-floating-icon:hover {
  background: var(--emto-primary);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Recipe Title Card (Distinct from photo, 100% clean and readable) */
.recipe-title-card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.title-category-row {
  margin-bottom: 10px;
}

.badge-cat {
  background: var(--emto-primary-soft);
  color: var(--emto-primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(140, 23, 42, 0.15);
}

.recipe-main-title {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.detail-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 0.85rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.meta-pill-diff {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

/* Cook Mode Checklist */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.checklist-item:hover {
  background: #f1f5f9;
}

.checklist-item.checked {
  background: #f8fafc;
  opacity: 0.6;
  border-color: #cbd5e1;
}

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

.check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--emto-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.checklist-item.checked .check-box {
  background: var(--emto-primary);
  color: #ffffff;
}

/* Steps Display */
.step-card {
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--emto-primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-content {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

/* 3-Tages-Einkaufslisten Generator */
.shopping-block {
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.shopping-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emto-primary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--emto-primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Admin / CMS Styling */
.admin-card {
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #ffffff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--emto-primary);
  box-shadow: 0 0 0 3px rgba(140, 23, 42, 0.12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn-primary {
  background: var(--emto-primary);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--emto-primary-hover);
  box-shadow: var(--shadow-primary);
}

.btn-secondary {
  background: #e2e8f0;
  color: #334155;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger:hover {
  background: #dc2626;
}

/* Image Upload Preview Box */
.image-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: var(--transition);
}

.image-upload-zone:hover {
  border-color: var(--emto-primary);
  background: var(--emto-primary-light);
}

.preview-thumb {
  max-width: 220px;
  max-height: 160px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 12px auto 0;
  object-fit: cover;
}

/* Flash Messages */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer */
.app-footer {
  background: #0f0f11;
  color: #94a3b8;
  padding: 40px 16px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  text-align: center;
  margin-top: auto;
}

.app-footer a {
  color: #e2e8f0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Optimization Engine
   Tailored for touch ergonomics, responsive typography, and notch safe-areas
   ========================================================================== */

/* iOS Notch & Home-Indicator Safe Area Support */
body {
  padding-bottom: calc(var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-nav {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}

/* Tablet & Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
  /* Quick Jump Ribbon: Horizontal touch-swipe ribbon */
  .rubriken-quick-ribbon {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 14px;
    margin: 0 0 16px;
    border-radius: var(--radius-md);
    gap: 8px;
  }
  .rubriken-quick-ribbon::-webkit-scrollbar {
    display: none;
  }
  .rubriken-quick-label {
    flex-shrink: 0;
    font-size: 0.76rem;
  }
  .rubrik-jump-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  /* Category pills: Smooth momentum scroll */
  .category-scroll-container {
    padding: 4px 0 10px;
    -webkit-overflow-scrolling: touch;
  }
  .category-pill {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
}

/* Mobile Smartphone Breakpoint (max-width: 640px) */
@media (max-width: 640px) {
  /* Header Nav layout */
  .header-inner {
    padding: 0 12px;
    gap: 8px;
    height: 56px;
  }
  .brand-wrapper {
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
  }
  .brand-logo-img {
    height: 28px;
    width: auto;
  }
  .brand-title-group h1 {
    font-size: 1.05rem;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
    margin: 0;
    line-height: 1;
  }
  .brand-title-group h1 span {
    display: inline-block !important; /* The stylish Taste brand logo remains visible at all times! */
    color: #ff5e78;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
  }
  .brand-title-group p {
    display: none !important; /* Hide subtitle domain to avoid cramped header */
  }
  .header-actions {
    gap: 4px;
    flex-shrink: 0;
  }
  /* On mobile (< 640px), Cart and CMS are prominently in the bottom navigation bar */
  .header-actions .btn-cart-header,
  .header-actions .btn-cms-header {
    display: none !important;
  }
  .btn-cms-badge .cms-text {
    display: none; /* Icon-only on mobile */
  }
  .btn-cms-badge {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Compact Language Switcher */
  .lang-switch-toggle {
    padding: 2px;
  }
  .lang-btn {
    padding: 4px 7px;
    font-size: 0.72rem;
    gap: 3px;
  }
  .lang-btn .flag {
    font-size: 0.85rem;
  }

  /* Hero Banner */
  .hero-section {
    padding: 22px 14px 28px;
  }
  .hero-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
    margin-bottom: 12px;
  }
  .hero-title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }
  .hero-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Portion Calculator Bar */
  .portion-calculator-bar {
    margin: -16px 12px 16px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    border-radius: var(--radius-md);
  }
  .portion-info h3 {
    justify-content: center;
    font-size: 0.95rem;
  }
  .portion-info p {
    font-size: 0.75rem;
  }
  .stepper-control {
    justify-content: center;
    margin: 4px auto 0;
    width: fit-content;
  }
  .stepper-btn {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }

  /* Mobile Category Filter Bar: Sauber untereinander */
  .category-filter-wrapper {
    padding: 0 12px 14px;
    margin: 0 auto 10px;
  }
  .category-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: visible;
    padding: 0;
  }
  .category-pill {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background: var(--light-surface);
    border: 1px solid var(--light-border);
    white-space: normal;
    text-align: left;
  }
  .category-pill .cat-pill-name {
    margin-right: auto;
    padding-left: 8px;
  }
  .category-pill .badge-count {
    margin-left: auto;
    font-size: 0.74rem;
    padding: 3px 8px;
    flex-shrink: 0;
  }
  /* Hide duplicate jump ribbon on mobile */
  .rubriken-quick-ribbon {
    display: none !important;
  }

  /* Search Input */
  .search-bar-container {
    padding: 0 12px;
    margin-bottom: 16px;
  }
  .search-input-box input {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    padding: 11px 14px 11px 40px;
  }
  .search-icon {
    left: 12px;
    font-size: 1rem;
  }

  /* Rubrik Section & Header */
  .rubrik-section {
    margin-bottom: 36px;
    scroll-margin-top: 70px;
  }
  .rubrik-header {
    padding: 14px;
    margin-bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-left-width: 4px;
    border-radius: var(--radius-md);
  }
  .rubrik-title-wrapper {
    gap: 12px;
  }
  .rubrik-icon {
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
    border-radius: 10px;
  }
  .rubrik-title {
    font-size: 1.2rem;
  }
  .rubrik-desc {
    font-size: 0.8rem;
    line-height: 1.45;
  }
  .rubrik-jump-top {
    align-self: flex-end;
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  /* Recipe Cards */
  .recipes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .recipe-card {
    border-radius: var(--radius-md);
  }
  .card-media-wrapper {
    height: 190px;
  }
  .card-body {
    padding: 14px;
  }
  .card-title {
    font-size: 1.08rem;
    line-height: 1.3;
  }
  .card-ingredients {
    padding: 10px 12px;
    margin: 12px 0;
  }
  .card-instructions {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }
  .card-actions {
    gap: 6px;
  }
  .card-actions .btn-detail {
    font-size: 0.85rem;
    padding: 10px 14px;
  }
  .btn-quick-edit {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Detail Page Mobile */
  .recipe-detail-header {
    height: 240px;
    margin: 12px 0 14px;
    border-radius: var(--radius-lg);
  }
  .detail-floating-bar {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .floating-btn-label {
    display: none !important; /* Keep floating icons compact and circular */
  }
  .btn-floating-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
  }
  .btn-floating-nav {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .recipe-title-card {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
  }
  .recipe-main-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .detail-meta-strip {
    gap: 6px;
  }
  .meta-item {
    font-size: 0.78rem;
    padding: 4px 10px;
  }
  .step-card {
    padding: 12px 14px;
    gap: 12px;
  }
  .step-num {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }
  .checklist-item {
    padding: 10px 12px;
  }
}

/* Extra small devices (max-width: 380px) */
@media (max-width: 380px) {
  .brand-title-group h1 {
    font-size: 0.95rem;
    gap: 4px;
  }
  .brand-title-group h1 span {
    display: inline-block !important; /* Taste logo remains visible at all times */
    color: #ff5e78;
  }
  .brand-logo-img {
    height: 24px;
  }
  .header-actions {
    gap: 4px;
  }
  .lang-btn {
    padding: 3px 5px;
    font-size: 0.68rem;
  }
  .btn-icon {
    width: 34px;
    height: 34px;
  }
}

/* Interactive Recipe Action Bar (Share & Print) */
/* Interactive Recipe Action Bar (Share & Print) */
.recipe-action-bar {
  display: block;
  background: var(--light-surface, #ffffff);
  border: 1px solid var(--light-border, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.action-bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

.action-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-md, 12px);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
  box-sizing: border-box;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}
.btn-whatsapp:hover {
  background: #20bd5a;
  color: #ffffff;
}

.btn-pinterest {
  background: #e60023;
  color: #ffffff;
}
.btn-pinterest:hover {
  background: #cc001f;
  color: #ffffff;
}

.btn-share {
  background: #3b82f6;
  color: #ffffff;
}
.btn-share:hover {
  background: #2563eb;
  color: #ffffff;
}

.btn-copy {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}
.btn-copy:hover {
  background: #e2e8f0;
}

.action-bar-print-row {
  width: 100%;
}

.action-bar-print-row .btn-print {
  width: 100%;
  background: linear-gradient(135deg, #8c172a 0%, #b11d35 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(140, 23, 42, 0.25);
  font-size: 0.92rem;
  padding: 11px 16px;
  border-radius: var(--radius-md, 12px);
}
.action-bar-print-row .btn-print:hover {
  background: #721222;
  color: #ffffff;
}

@media (max-width: 640px) {
  .recipe-action-bar {
    padding: 14px;
    margin-bottom: 20px;
    border-radius: var(--radius-md, 12px);
  }
  .action-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
  }
  .action-btn {
    padding: 9px 8px;
    font-size: 0.82rem;
    gap: 6px;
  }
  .action-bar-print-row .btn-print {
    padding: 10px 14px;
    font-size: 0.88rem;
  }
}

/* Print-Only Elements (Hidden on screen) */
.print-only {
  display: none !important;
}

/* Comprehensive Kitchen Print Stylesheet */
@media print {
  @page {
    margin: 1.2cm 1.2cm 1.5cm 1.2cm;
    size: A4 portrait;
  }

  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Hide all non-printable UI elements */
  .app-header,
  .app-footer,
  .mobile-bottom-nav,
  .recipe-action-bar,
  .recipe-detail-header,
  .portion-calculator-bar,
  .baking-batch-bar,
  .btn-back,
  .category-filter-wrapper,
  .search-bar-container,
  .rubriken-quick-ribbon,
  #google_translate_element,
  .skiptranslate,
  #app-toast,
  .card-tags,
  .card-actions,
  button,
  .ingredients-header span:last-child {
    display: none !important;
  }

  /* Show Print-Only Header */
  .print-only {
    display: block !important;
  }

  .print-header {
    border-bottom: 2px solid #8c172a;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .print-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .print-logo {
    height: 42px;
    width: auto;
  }

  .print-brand-title {
    margin: 0;
    font-size: 16pt;
    font-weight: 800;
    color: #8c172a;
  }

  .print-brand-title span {
    color: #111827;
  }

  .print-brand-sub {
    margin: 2px 0 0;
    font-size: 8pt;
    color: #6b7280;
  }

  .print-qr-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .print-qr-img {
    width: 75px;
    height: 75px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
  }

  .print-qr-hint {
    font-size: 7pt;
    color: #6b7280;
    margin-top: 3px;
    max-width: 140px;
    line-height: 1.1;
  }

  .print-recipe-info {
    margin-top: 10px;
  }

  .print-title {
    font-size: 18pt;
    font-weight: 800;
    color: #111827;
    margin: 6px 0;
    line-height: 1.2;
  }

  .print-meta {
    display: flex;
    gap: 16px;
    font-size: 8.5pt;
    color: #4b5563;
    padding: 4px 0;
  }

  /* Two-column print layout */
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .admin-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  /* Checkboxes as printable boxes */
  .checklist-item {
    display: flex !important;
    align-items: center !important;
    padding: 3px 0 !important;
    border-bottom: 1px dotted #e5e7eb !important;
    page-break-inside: avoid;
  }

  .checklist-item .check-box {
    display: inline-block !important;
    width: 13px !important;
    height: 13px !important;
    border: 1.5px solid #374151 !important;
    border-radius: 2px !important;
    margin-right: 8px !important;
    color: transparent !important;
    background: transparent !important;
    flex-shrink: 0;
  }

  .checklist-item.checked .check-box {
    background: #e5e7eb !important;
    color: #000 !important;
  }

  .ing-qty {
    font-weight: 700 !important;
    color: #000000 !important;
    min-width: 65px;
    display: inline-block;
  }

  /* Steps styling */
  .step-card {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
    padding: 6px 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    page-break-inside: avoid;
  }

  .step-num {
    background: #8c172a !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    font-size: 8pt !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .step-content {
    font-size: 9.5pt !important;
    color: #1f2937 !important;
    line-height: 1.4 !important;
  }

  /* Print Footer */
  .print-footer {
    margin-top: 24px;
    page-break-inside: avoid;
    font-size: 8pt;
    color: #6b7280;
  }
}

/* High-Resolution Image Lightbox Modal */
.image-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.image-lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-content {
  max-width: 96vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: zoomLightbox 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomLightbox {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.image-lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(24, 24, 27, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.image-lightbox-title {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}

.image-lightbox-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.image-lightbox-close:hover {
  background: #8c172a;
}

.image-lightbox-body {
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090b;
  max-height: calc(90vh - 100px);
  padding: 8px;
}

.image-lightbox-img {
  max-width: 100%;
  max-height: calc(90vh - 100px);
  object-fit: contain;
  border-radius: 6px;
}

.image-lightbox-footer {
  padding: 10px 18px;
  background: rgba(24, 24, 27, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

.image-lightbox-dl {
  color: #d4af37;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: background 0.2s ease;
}

.image-lightbox-dl:hover {
  background: rgba(212, 175, 55, 0.25);
}
