/* ==========================================================================
   Dear Jov — Fairy-Tale Pastel Bakery Stylesheet
   ========================================================================== */
:root {
  /* Neutrals & Cream Surfaces */
  --bg-cream: #FCFAF6;
  --bg-surface: #FFFFFF;
  --bg-warm-tint: #F7EFE8;
  --bg-card: #FFFFFF;

  /* Cutesy Pastels */
  --pastel-blush: #FCE6E1;
  --pastel-rose: #F3C9C2;
  --pastel-sage: #DDE8D7;
  --pastel-butter: #F9EED4;
  --pastel-lavender: #EBE5F5;
  --pastel-sky: #E3ECF5;
  --pastel-mint: #DDF0E8;

  /* Text & Ink (High-Contrast Warm Espresso for Kitchen Readability) */
  --text-main: #322421;
  --text-muted: #5C4B47;
  --text-light: #786661;
  --border-soft: #EBE0D6;
  --border-accent: #DFC9BA;

  /* Brand Accents */
  --brand-rose: #C97B73;
  --brand-rose-hover: #B76860;
  --brand-terracotta: #B96652;
  --brand-gold: #CCA065;
  --brand-green: #597E52;

  /* Radii & Shadows */
  --shadow-sm: 0 4px 14px rgba(56, 42, 39, 0.04);
  --shadow-md: 0 10px 28px rgba(56, 42, 39, 0.08);
  --shadow-lg: 0 18px 40px rgba(56, 42, 39, 0.11);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-pill: 9999px;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-alt-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;
}

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

html {
  scroll-behavior: smooth;
}

/* Custom Pastel Scrollbars (Arrow-Free Pill Bar) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #E8B8B0 0%, #C97B73 100%);
  border-radius: 9999px;
  border: 2px solid var(--bg-cream);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-rose-hover);
}

.modal-dialog::-webkit-scrollbar {
  width: 8px;
}

.modal-dialog::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.modal-dialog::-webkit-scrollbar-track {
  background: transparent;
  margin: 22px 0;
}

.modal-dialog::-webkit-scrollbar-thumb {
  background: #E2B4AC;
  border-radius: 9999px;
  border: 2px solid #FFFFFF;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(252, 230, 225, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(221, 232, 215, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(249, 238, 212, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 12% 85%, rgba(235, 229, 245, 0.45) 0%, transparent 45%);
  z-index: -2;
}

.container {
  width: min(94vw, 1520px);
  max-width: 1520px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* ==========================================================================
   Whimsical Animated Butterflies
   ========================================================================== */
.butterfly-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.flutter-butterfly {
  position: absolute;
  width: 32px;
  height: 32px;
  opacity: 0.75;
  animation: floatButterfly 20s linear infinite;
}

.flutter-butterfly svg {
  width: 100%;
  height: 100%;
  animation: wingFlutter 0.35s ease-in-out infinite alternate;
  transform-origin: center;
}

.butterfly-1 { top: 15%; left: -40px; animation-duration: 24s; animation-delay: 1s; color: #E8A598; }
.butterfly-2 { top: 65%; left: -40px; animation-duration: 28s; animation-delay: 9s; color: #A9C29E; }
.butterfly-3 { top: 40%; left: -40px; animation-duration: 22s; animation-delay: 16s; color: #B59ED0; }

@keyframes floatButterfly {
  0%   { transform: translate(-10vw, 0) rotate(15deg); }
  25%  { transform: translate(25vw, -30px) rotate(25deg); }
  50%  { transform: translate(55vw, 20px) rotate(10deg); }
  75%  { transform: translate(80vw, -40px) rotate(30deg); }
  100% { transform: translate(110vw, 10px) rotate(15deg); }
}

@keyframes wingFlutter {
  0%   { transform: scaleX(1) scaleY(1); }
  100% { transform: scaleX(0.55) scaleY(0.9); }
}

/* ==========================================================================
   Top Navigation
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-butterfly {
  font-size: 1.5rem;
  display: inline-block;
  animation: softBob 3s ease-in-out infinite alternate;
}

@keyframes softBob {
  0%   { transform: translateY(0) rotate(-8deg); }
  100% { transform: translateY(-4px) rotate(10deg); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a, .nav-links button.nav-link-btn {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-links a:hover, .nav-links button.nav-link-btn:hover {
  color: var(--brand-rose);
}

.nav-links a.nav-page-link {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.nav-links a.nav-page-link.active {
  background: var(--pastel-blush);
  color: var(--brand-terracotta);
  font-weight: 700;
}

/* ==========================================================================
   Multi-Page Views (Home, Recipes & Videos, About Jov)
   ========================================================================== */
.page-view {
  display: none;
}

.page-view.active {
  display: block;
  animation: pageFadeIn 0.28s ease-out;
}

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

.home-spotlight-section {
  padding: 56px 0 76px;
}

.recipes-page-view,
.about-page-view {
  padding: 48px 0 80px;
}

.page-hero-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 38px;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.about-pillar-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--pastel-blush);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.about-pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.about-pillar-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.nav-btn-add {
  background: var(--pastel-blush) !important;
  color: var(--brand-terracotta) !important;
  border: 1px solid var(--border-accent) !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-pill);
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.nav-btn-add:hover {
  background: #F8D5CD !important;
  transform: translateY(-2px);
}

.nav-links a.nav-btn-ig,
.nav-btn-ig {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #FFFFFF !important;
  padding: 9px 20px !important;
  border-radius: var(--radius-pill);
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.25);
}

.nav-links a.nav-btn-ig:hover,
.nav-btn-ig:hover {
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.35);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 60px 0 50px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: var(--pastel-butter);
  border: 1px solid #EEDFBE;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: #8C6527;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-title span.italic-accent {
  font-style: italic;
  color: var(--brand-rose);
}

.hero-handwritten {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--brand-rose);
  display: block;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand-rose);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(200, 125, 117, 0.35);
}

.btn-primary:hover {
  background: var(--brand-rose-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 125, 117, 0.45);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-warm-tint);
  transform: translateY(-2px);
}

.hero-card-wrapper {
  position: relative;
}

.hero-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.hero-favorites-card {
  padding: 24px 24px 20px;
  background: linear-gradient(165deg, #FFFFFF 0%, #FCFAF6 100%);
  border: 1px solid var(--border-accent);
}

.hero-favorites-header {
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border-soft);
}

.hero-favorites-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.2;
}

.hero-favorites-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto;
}

.hero-favorites-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-fav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hero-fav-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-rose);
  box-shadow: var(--shadow-md);
}

.hero-fav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.hero-fav-thumb {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.95rem;
  flex-shrink: 0;
  position: relative;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.hero-fav-rank {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--brand-rose);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(200, 125, 117, 0.35);
}

.hero-fav-info {
  min-width: 0;
  flex: 1;
}

.hero-fav-top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.hero-fav-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-terracotta);
}

.hero-fav-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.22;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-fav-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-fav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hero-fav-btn-view {
  background: var(--pastel-blush);
  color: var(--brand-terracotta);
  border: 1px solid var(--border-accent);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-fav-btn-view:hover {
  background: #F8D5CD;
}

.hero-fav-btn-reel {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #FFFFFF;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(220, 39, 67, 0.2);
}

.hero-favorites-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-soft);
  text-align: center;
}

.btn-browse-all-inline {
  width: 100%;
  background: var(--pastel-butter);
  color: #78531B;
  border: 1px solid #EEDFBE;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-browse-all-inline:hover {
  background: #F6E6BD;
  transform: translateY(-1px);
}

.hero-card-banner {
  background: linear-gradient(135deg, #FCE6E1 0%, #F9EED4 50%, #DDE8D7 100%);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-card-banner .big-icon {
  font-size: 4rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.06));
}

.hero-card-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.hero-card-banner p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 280px;
}

.hero-floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  z-index: 3;
  animation: floatSlow 5s ease-in-out infinite;
}

.hero-pill-1 { top: -16px; right: -16px; }
.hero-pill-2 { bottom: -16px; left: -16px; animation-delay: 2.5s; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ==========================================================================
   Belizean Heritage Banner
   ========================================================================== */
.heritage-bar {
  margin: 40px auto 60px;
  background: linear-gradient(135deg, #FBF3EB 0%, #F5ECE0 50%, #F2EAE0 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 42px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.heritage-tag {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-terracotta);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.heritage-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.heritage-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 840px;
}

.heritage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-badge {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Recipes Section & Controls
   ========================================================================== */
.recipes-section {
  padding: 40px 0 80px;
}

.section-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 36px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-terracotta);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

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

.controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.search-input-box {
  width: 100%;
  max-width: 560px;
  position: relative;
}

.search-input-box input,
.search-input-box input[type="text"] {
  width: 100%;
  padding: 12px 20px 12px 48px !important;
  border-radius: var(--radius-pill) !important;
  border: 1px solid var(--border-soft);
  background: #FFFFFF !important;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-input-box input:focus {
  border-color: var(--brand-rose);
  box-shadow: 0 0 0 3px rgba(200, 125, 117, 0.15);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.6;
}

.filter-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}

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

.filter-btn.active {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
  box-shadow: 0 4px 14px rgba(56, 42, 39, 0.2);
}

/* ==========================================================================
   Recipe Cards Grid
   ========================================================================== */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.recipe-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

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

.recipe-card-header {
  padding: 28px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 155px;
  background: linear-gradient(135deg, var(--pastel-blush) 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-soft);
  background-size: cover;
  background-position: center;
}

.recipe-card-header.has-photo {
  min-height: 215px;
}

.recipe-icon-bubble {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border: 3px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

.recipe-card-header.has-photo .recipe-icon-bubble {
  position: absolute;
  bottom: 12px;
  left: 14px;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
}

.recipe-card:hover .recipe-icon-bubble {
  transform: scale(1.1) rotate(6deg);
}

.recipe-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-terracotta);
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.recipe-like-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-soft);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-rose);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.recipe-like-btn:hover {
  transform: scale(1.08);
  background: #FFF0ED;
}

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

.recipe-cat-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: 6px;
}

.recipe-title {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.recipe-meta-row {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-soft);
  flex-wrap: wrap;
}

.recipe-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.recipe-btn-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  margin-top: auto;
}

.btn-view-recipe {
  background: var(--pastel-blush);
  color: var(--brand-terracotta);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-view-recipe:hover {
  background: #F8D5CD;
  transform: translateY(-2px);
}

.btn-video-ig {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(220, 39, 67, 0.2);
}

.btn-video-ig:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(220, 39, 67, 0.3);
}

/* Inline Admin Controls on Card (only shown when Jov is logged in) */
.card-admin-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-accent);
}

.btn-card-admin {
  flex: 1;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  background: var(--bg-cream);
  color: var(--text-main);
  font-family: inherit;
  transition: all 0.2s;
}

.btn-card-admin:hover {
  background: var(--pastel-butter);
  border-color: var(--brand-gold);
}

.btn-card-admin.danger:hover {
  background: #FDE8E8;
  color: #B91C1C;
  border-color: #FCA5A5;
}

/* ==========================================================================
   About Jov Section & Instagram Hub
   ========================================================================== */
.about-section {
  padding: 70px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: center;
}

.about-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #FCFAF6 0%, #F9ECE6 100%);
}

.about-portrait {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 5px solid var(--pastel-blush);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.6rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 300px;
  margin-bottom: 16px;
}

.about-content h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 18px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.signature-area {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-soft);
  display: flex;
  align-items: center;
  gap: 16px;
}

.signature-hand {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--brand-rose);
}

.instagram-hub {
  padding: 64px 0 74px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-soft);
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hub-left {
  text-align: left;
}

.hub-icon-badge {
  font-size: 2.8rem;
  margin-bottom: 10px;
  line-height: 1;
}

.hub-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.2;
}

.hub-desc {
  color: var(--text-muted);
  max-width: 540px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.ig-button-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ig-action-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
}

.ig-action-card:hover {
  background: #FFFFFF;
  border-color: var(--brand-rose);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Footer (With Small Discreet Admin Login Button on Bottom Right!)
   ========================================================================== */
.site-footer {
  background: #2D2321;
  color: #E6D8D4;
  padding: 60px 0 28px;
  text-align: center;
  position: relative;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  list-style: none;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #C0AEA8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: #9E8881;
}

/* Small little admin login button in the bottom-right of the footer */
.footer-admin-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #B9A39C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.footer-admin-btn:hover {
  background: rgba(247, 220, 213, 0.16);
  color: #FCE6E1;
  border-color: rgba(247, 220, 213, 0.35);
}

.footer-admin-btn.logged-in {
  background: rgba(201, 123, 115, 0.28);
  color: #FCE6E1;
  border-color: #C97B73;
}

/* ==========================================================================
   Modals (Recipe Detail, Inquiry Modal, Login Modal, Baker's Studio)
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 34, 32, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: #FFFFFF;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog.recipe-wide {
  max-width: min(92vw, 1280px);
  max-height: 92vh;
}

.modal-cookbook-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.25fr;
  gap: 36px;
  align-items: start;
}

.modal-dialog.studio-wide {
  max-width: min(94vw, 1440px);
  max-height: 92vh;
  background: var(--bg-cream);
}

.modal-dialog.compact {
  max-width: 440px;
}

@keyframes modalPop {
  from { transform: scale(0.95) translateY(14px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-main);
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.modal-hero-banner {
  padding: 40px 32px 30px;
  position: relative;
  text-align: center;
  background: var(--pastel-blush);
  border-bottom: 1px solid var(--border-soft);
}

.modal-hero-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  display: none;
}

.modal-hero-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
  display: inline-block;
}

.modal-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-main);
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #FFFFFF;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.modal-meta-item { text-align: center; }
.modal-meta-label { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: var(--text-light); display: block; }
.modal-meta-val { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }

.modal-body { padding: 32px; }

.kitchen-utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.kitchen-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: #FFFFFF;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.kitchen-tool-btn:hover {
  border-color: var(--brand-rose);
  background: var(--pastel-blush);
  color: var(--brand-terracotta);
}

.kitchen-tool-btn.active {
  background: var(--pastel-butter);
  border-color: var(--brand-gold);
  color: #7A541B;
}

.modal-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.batch-scale-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-cream);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
}

.batch-scale-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 4px;
}

.batch-scale-btn {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.batch-scale-btn:hover {
  color: var(--brand-terracotta);
}

.batch-scale-btn.active {
  background: var(--brand-rose);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.modal-note-box {
  background: var(--bg-cream);
  border-left: 4px solid var(--brand-rose);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.modal-section-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin-bottom: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ingredients-list {
  list-style: none;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.ingredient-item:hover { background: #FFFFFF; border-color: var(--brand-rose); }
.ingredient-checkbox { width: 18px; height: 18px; accent-color: var(--brand-rose); cursor: pointer; margin-top: 3px; }
.ingredient-item.checked { opacity: 0.55; text-decoration: line-through; }

.ingredient-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 4px;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--brand-terracotta);
  border-bottom: 1.5px dashed var(--border-accent);
  user-select: none;
}

.ingredient-group-header:first-child {
  margin-top: 0;
  padding-top: 2px;
}

.instructions-list {
  list-style: none;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.instruction-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.instruction-step:hover {
  background: var(--bg-cream);
  border-color: var(--border-soft);
}

.instruction-step.completed {
  opacity: 0.58;
  background: var(--bg-cream);
}

.instruction-step.completed .step-text {
  text-decoration: line-through;
}

.instruction-step.completed .step-number {
  background: var(--pastel-sage);
  color: var(--brand-green);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pastel-blush);
  color: var(--brand-terracotta);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ig-autofill-box {
  background: var(--bg-cream);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.ig-autofill-box summary {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-terracotta);
  cursor: pointer;
  user-select: none;
}

.modal-footer-cta {
  border-top: 1px dashed var(--border-soft);
  padding-top: 24px;
  text-align: center;
}

/* ==========================================================================
   Jov's Baker's Studio (Full Admin CMS Interface)
   ========================================================================== */
.studio-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
}

.studio-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-tab-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-cream);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.studio-tab-btn.active {
  background: var(--brand-rose);
  color: #FFFFFF;
  border-color: var(--brand-rose);
}

.studio-pane {
  display: none;
  padding: 28px;
}

.studio-pane.active {
  display: block;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-row.form-row-3 { grid-template-columns: repeat(3, 1fr); }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

label span.hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.76rem;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg-cream);
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  background: #FFFFFF;
  border-color: var(--brand-rose);
  box-shadow: 0 0 0 3px rgba(200, 125, 117, 0.15);
}

textarea { resize: vertical; min-height: 95px; line-height: 1.55; }

.picker-options { display: flex; gap: 8px; flex-wrap: wrap; }

.color-chip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.color-chip.active { border-color: var(--text-main); transform: scale(1.15); }

.icon-chip {
  padding: 5px 12px;
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.icon-chip.active {
  background: var(--brand-rose);
  color: #FFFFFF;
  border-color: var(--brand-rose);
}

/* Studio Drag-and-Drop Reorder List */
.studio-reorder-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-recipe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-cream);
  border: 1.5px solid var(--border-soft);
  border-radius: 16px;
  flex-wrap: wrap;
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.studio-recipe-row:hover {
  background: #FFFFFF;
  border-color: var(--pastel-rose);
  box-shadow: var(--shadow-sm);
}

.studio-recipe-row:active {
  cursor: grabbing;
}

.studio-recipe-row.dragging {
  opacity: 0.45;
  transform: scale(0.99);
  border-style: dashed;
  border-color: var(--brand-rose);
}

.studio-recipe-row.drop-target {
  border-color: var(--brand-rose);
  background: #FFF5F2;
  box-shadow: 0 0 0 3px rgba(200, 125, 117, 0.22);
  transform: translateY(-2px);
}

.studio-recipe-row.just-saved {
  border-color: var(--brand-rose);
  background: linear-gradient(90deg, #FFF5F2 0%, #FFFFFF 100%);
  box-shadow: 0 6px 18px rgba(200, 125, 117, 0.22);
}

.drag-handle {
  font-size: 1.35rem;
  color: var(--brand-rose);
  cursor: grab;
  padding: 4px 6px;
  user-select: none;
  line-height: 1;
}

.order-rank-pill {
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-terracotta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.just-saved-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--pastel-butter);
  border: 1px solid #EEDFBE;
  color: #8C6527;
  font-size: 0.74rem;
  font-weight: 700;
  margin-left: 8px;
}

.reorder-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: #FFFFFF;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.reorder-arrow-btn:hover:not(:disabled) {
  background: var(--pastel-blush);
  border-color: var(--brand-rose);
  color: var(--brand-terracotta);
}

.reorder-arrow-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ==========================================================================
   Interactive Visual Mini-Page Website Editor (Edit Website Tab)
   ========================================================================== */
.visual-editor-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.visual-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: var(--shadow-sm);
}

.visual-mini-page {
  background: var(--bg-cream);
  border: 2px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.vmp-navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.vmp-page-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-cream);
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.vmp-page-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.vmp-page-tab:hover {
  color: var(--brand-rose);
}

.vmp-page-tab.active {
  background: var(--pastel-blush);
  color: var(--brand-terracotta);
  box-shadow: var(--shadow-sm);
}

.vmp-page-section {
  display: none;
}

.vmp-page-section.active {
  display: block;
}

.vmp-ig-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ve-pill-input,
.ve-editable.ve-pill-input:hover {
  background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin: 0;
}

.ve-editable.ve-pill-input:focus {
  background: #FFFFFF !important;
  color: var(--text-main) !important;
  caret-color: var(--brand-terracotta);
  outline: 2px solid #dc2743;
  box-shadow: 0 0 0 4px rgba(220, 39, 67, 0.18);
}

.vmp-ig-url-input {
  width: 240px !important;
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
  border-radius: var(--radius-pill) !important;
  background: #FFFFFF !important;
}

.vmp-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-terracotta);
  margin-bottom: 12px;
  opacity: 0.88;
}

.vmp-hero {
  padding: 28px 30px;
  border-bottom: 1px dashed var(--border-soft);
}

.vmp-hero-two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.vmp-fav-card {
  background: #FFFFFF;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.vmp-fav-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vmp-fav-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  font-size: 0.84rem;
}

.vmp-recipes-page {
  padding: 28px 30px;
  background: var(--bg-cream);
  border-bottom: 1px dashed var(--border-soft);
}

.vmp-hero-title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.vmp-hero-title .italic-accent {
  font-style: italic;
  color: var(--brand-rose);
}

.vmp-hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 680px;
}

.vmp-heritage {
  padding: 26px 30px;
  background: linear-gradient(135deg, #FBF3EB 0%, #F4E6DF 50%, #EBF1E7 100%);
  border-bottom: 1px dashed var(--border-soft);
}

.vmp-heritage-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.vmp-pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.vmp-pill-remove {
  border: none;
  background: var(--pastel-blush);
  color: var(--brand-terracotta);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vmp-about {
  padding: 28px 30px;
  background: #FFFFFF;
  border-bottom: 1px dashed var(--border-soft);
}

.vmp-about-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: center;
}

.vmp-footer {
  padding: 20px 30px;
  text-align: center;
  background: var(--bg-warm-tint);
}

.vmp-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 8px;
}

/* Click-to-Edit Inline Highlighting */
.ve-editable {
  border-radius: 8px;
  padding: 2px 6px;
  margin: -2px -6px;
  transition: background 0.15s ease, box-shadow 0.15s ease, outline 0.15s ease;
  cursor: text;
  outline: 1.5px dashed transparent;
}

.ve-editable:hover {
  outline-color: var(--brand-rose);
  background: rgba(255, 255, 255, 0.75);
}

.ve-editable:focus {
  outline: 2px solid var(--brand-rose);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(201, 123, 115, 0.15);
}

/* Boring Stuff Admin Dashboard Cards */
.boring-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.boring-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.boring-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-terracotta);
  line-height: 1.15;
  margin-bottom: 4px;
}

.boring-stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Floating Admin Bar when Jov is signed in */
.floating-admin-bar {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  background: #2D2321;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  align-items: center;
  gap: 10px;
  border: 2px solid var(--pastel-rose);
}

.floating-admin-bar.active {
  display: flex;
}

.toast-banner {
  position: fixed;
  top: 82px;
  right: 24px;
  z-index: 2000;
  background: #2D2321;
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 8px;
}

.toast-banner.active {
  display: inline-flex;
}

/* ==========================================================================
   Responsive Scaling: Tablet (<= 992px), Mobile (<= 768px) & Small Phone (<= 480px)
   (Desktop > 992px remains 100% unmodified)
   ========================================================================== */
@media (max-width: 992px) {
  .container {
    width: 100%;
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero-grid,
  .about-grid,
  .hub-grid,
  .studio-grid,
  .modal-cookbook-grid,
  .vmp-hero-two-col,
  .vmp-heritage-inner,
  .vmp-about-grid,
  .vmp-hub-grid,
  .about-pillars-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-left,
  .hub-left {
    text-align: center;
  }

  .hero-desc,
  .hub-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.65rem;
  }

  .heritage-bar {
    flex-direction: column;
    text-align: center;
    padding: 30px 26px;
    margin: 28px auto 44px;
  }

  .heritage-tag,
  .heritage-pills {
    justify-content: center;
  }

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

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

  .studio-live-preview-col {
    position: static !important;
  }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Navbar & Mobile Menu Drawer */
  .navbar {
    padding: 12px 0;
  }

  .brand-logo {
    font-size: 1.5rem;
    gap: 8px;
  }

  .brand-butterfly {
    font-size: 1.3rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--pastel-blush);
    border: 1px solid var(--border-accent);
    font-size: 1.35rem;
    color: var(--brand-terracotta);
    box-shadow: var(--shadow-sm);
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(252, 250, 246, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-accent);
    padding: 18px 16px 22px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open li {
    width: 100%;
    text-align: center;
  }

  .nav-links.open a.nav-page-link,
  .nav-links.open button.nav-link-btn,
  .nav-links.open a.nav-btn-ig {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 16px !important;
    font-size: 0.96rem;
    border-radius: var(--radius-pill);
  }

  /* Home Page: Hero & Signature Favorites */
  .hero {
    padding: 26px 0 28px;
  }

  .hero-handwritten {
    font-size: 1.48rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.18;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 140px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .hero-favorites-card {
    padding: 18px 14px 16px;
    border-radius: 22px;
  }

  .hero-favorites-title {
    font-size: 1.55rem;
  }

  .hero-favorites-desc {
    font-size: 0.84rem;
  }

  .hero-fav-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .hero-fav-left {
    gap: 12px;
  }

  .hero-fav-thumb {
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
  }

  .hero-fav-title {
    white-space: normal;
    font-size: 1.08rem;
    line-height: 1.26;
  }

  .hero-fav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .hero-fav-btn-view,
  .hero-fav-btn-reel {
    justify-content: center;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* Heritage Banner */
  .heritage-bar {
    padding: 22px 16px;
    margin: 18px auto 28px;
    gap: 18px;
    border-radius: 22px;
  }

  .heritage-title {
    font-size: 1.48rem;
  }

  .heritage-text {
    font-size: 0.93rem;
  }

  .pill-badge {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  /* Recipes & Videos Page + About Page */
  .recipes-page-view,
  .about-page-view {
    padding: 28px 0 54px;
  }

  .page-hero-header {
    margin-bottom: 24px;
  }

  .page-hero-header .section-title,
  .section-title {
    font-size: 1.95rem !important;
  }

  .section-desc {
    font-size: 0.94rem;
  }

  .controls-wrapper {
    gap: 14px;
    margin-bottom: 24px;
  }

  .filter-pills {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .recipes-grid,
  .form-row,
  .form-row.form-row-3 {
    grid-template-columns: 1fr;
  }

  .recipe-card-header {
    min-height: 140px;
    padding: 22px 16px;
  }

  .recipe-card-header.has-photo {
    min-height: 195px;
  }

  .recipe-card-body {
    padding: 18px 16px;
  }

  .recipe-title {
    font-size: 1.3rem;
  }

  /* About Jov & Instagram Hub */
  .about-card {
    padding: 24px 18px;
  }

  .about-portrait {
    width: 118px;
    height: 118px;
    font-size: 2.9rem;
    margin-bottom: 14px;
  }

  .about-content {
    text-align: center;
  }

  .about-content h2 {
    font-size: 1.75rem;
  }

  .about-content p {
    font-size: 0.95rem;
  }

  .signature-area {
    justify-content: center;
  }

  .about-pillars-grid {
    gap: 16px;
    margin-top: 28px;
  }

  .about-pillar-card {
    padding: 22px 18px;
  }

  .instagram-hub {
    padding: 44px 0 60px;
  }

  #hubTitle {
    font-size: 1.85rem !important;
  }

  .ig-action-card {
    padding: 14px 16px;
    font-size: 0.92rem;
  }

  /* Modals: Recipe Detail, Inquiry, Login & Studio */
  .modal-backdrop {
    padding: 10px;
    align-items: flex-start;
  }

  .modal-dialog,
  .modal-dialog.recipe-wide,
  .modal-dialog.studio-wide {
    max-width: 100%;
    max-height: 94vh;
    border-radius: 22px;
    margin: auto 0;
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .modal-hero-banner {
    padding: 28px 16px 20px;
  }

  .modal-title {
    font-size: 1.55rem;
  }

  .modal-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 12px;
  }

  .modal-body {
    padding: 18px 14px;
  }

  .kitchen-utility-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  .kitchen-utility-bar > .kitchen-tool-btn {
    width: 100%;
    justify-content: center;
  }

  .kitchen-utility-bar > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .kitchen-utility-bar > div .kitchen-tool-btn {
    justify-content: center;
  }

  .modal-section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .batch-scale-group {
    width: 100%;
    justify-content: space-between;
  }

  .batch-scale-btn {
    flex: 1;
    text-align: center;
    padding: 6px 8px;
  }

  .modal-note-box {
    padding: 14px;
    margin-bottom: 20px;
  }

  /* Jov's Baker's Studio on Phone */
  .studio-topbar {
    padding: 14px;
    gap: 10px;
  }

  .studio-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 6px;
    order: 3;
  }

  .studio-tab-btn {
    padding: 8px 8px;
    font-size: 0.78rem;
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .studio-pane {
    padding: 16px 12px;
  }

  .form-card {
    padding: 16px 14px;
  }

  .studio-recipe-row {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }

  .studio-recipe-row-actions {
    width: 100%;
    justify-content: flex-end;
    border-top: 1px dashed var(--border-soft);
    padding-top: 8px;
  }

  /* Interactive Website Editor on Phone */
  .visual-editor-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .visual-editor-toolbar .btn {
    width: 100%;
  }

  .vmp-navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 10px;
  }

  .vmp-page-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    border-radius: 16px;
  }

  .vmp-page-tab {
    text-align: center;
    padding: 8px 6px;
    font-size: 0.76rem;
  }

  .vmp-ig-bar {
    width: 100%;
  }

  .vmp-ig-url-input {
    width: 100% !important;
    flex: 1;
    min-width: 140px;
  }

  .vmp-hero,
  .vmp-heritage,
  .vmp-recipes-page,
  .vmp-about,
  .vmp-footer {
    padding: 18px 14px;
  }

  .vmp-hero-title {
    font-size: 1.55rem;
  }

  /* Prevent iOS Safari zoom on input focus */
  input[type="text"],
  input[type="url"],
  input[type="password"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Floating Admin Bar & Toast on Phone */
  .floating-admin-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 18px;
    padding: 8px 12px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
  }

  .toast-banner {
    left: 14px;
    right: 14px;
    top: 72px;
    justify-content: center;
    text-align: center;
  }

  .hero-pill-1,
  .hero-pill-2 {
    display: none;
  }

  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-title {
    font-size: 1.88rem;
  }

  .boring-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .boring-stat-card {
    padding: 12px 10px;
  }

  .boring-stat-num {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flutter-butterfly,
  .flutter-butterfly svg,
  .brand-butterfly {
    animation: none !important;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: 0.5in;
  }
  html, body {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #FFFFFF !important;
  }
  body > *:not(#recipeModal) {
    display: none !important;
  }
  .no-print,
  .modal-close-btn {
    display: none !important;
  }
  #recipeModal {
    position: static !important;
    display: block !important;
    height: auto !important;
    max-height: none !important;
    background: #FFFFFF !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  #recipeModal .modal-dialog {
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
  }
}
