@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@100..900&family=Noto+Serif+Armenian:wght@100..900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  /* Colors - N.DIET Dynamic Day Themes */
  --active-primary: #be185d;
  --active-primary-dark: #881337;
  --active-soft: #fff1f2;

  --primary: var(--active-primary);
  --primary-dark: var(--active-primary-dark);
  --primary-gradient: linear-gradient(135deg, var(--active-primary) 0%, var(--active-primary-dark) 100%);
  --primary-gradient-hover: linear-gradient(135deg, var(--active-primary-dark) 0%, var(--active-primary) 100%);
  --accent-soft-1: var(--active-soft);
  --accent-soft-2: var(--active-soft);
  --accent-soft-3: var(--active-soft);

  --text-dark: #1c1917; /* warm stone */
  --text-muted: #78716c;
  --text-light: #a8a29e;
  --bg-main: #faf7f2; /* warm beige/cream */
  --white: #ffffff;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.06);
  --border-color: #f2ede4;
  --border-accent: var(--active-soft);
  
  /* Fonts */
  --font-title: 'Noto Sans Armenian', 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Noto Sans Armenian', 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Brand Logo Circle */
.brand-logo-circle {
  background: #000;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  user-select: none;
}

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

body {
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--text-dark);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background Decorative Elements - Disabled */
.blob-container, .floating-bg {
  display: none !important;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.42;
  mix-blend-mode: multiply;
  animation: float-blob 16s infinite alternate ease-in-out;
}

.blob-1 {
  background-color: var(--accent-soft-2);
  width: 480px;
  height: 480px;
  top: -100px;
  left: -100px;
}

.blob-2 {
  background-color: #fef3c7; /* soft amber */
  width: 550px;
  height: 550px;
  bottom: 5%;
  right: -100px;
  animation-delay: 3s;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(60px, 80px) scale(1.15) rotate(90deg); }
  100% { transform: translate(-30px, 40px) scale(0.9) rotate(-45deg); }
}

/* Layout Containers (Mobile-First) */
.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Landing Page top components */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-soft-1);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.025em;
  box-shadow: var(--shadow-sm);
}

.portrait-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.portrait-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--white);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  display: block;
}

.title-serif {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.title-serif span.accent {
  color: var(--primary-dark);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 500;
  max-width: 500px;
}

.intro-text {
  font-size: 1.05rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.intro-text p {
  line-height: 1.7;
}

/* Product Card */
.card {
  background-color: var(--white);
  border-radius: 24px;
  padding: 2rem 1.25rem;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-accent);
  position: relative;
  margin-bottom: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(136, 19, 55, 0.12);
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* Checklist */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-align: left;
}

.checklist-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  color: var(--primary);
}

/* Buttons & CTAs */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: var(--primary-gradient);
  color: var(--white);
  padding: 1.1rem 2rem;
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(190, 24, 93, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 1rem;
}

.btn-primary:hover {
  background: var(--primary-gradient-hover);
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(190, 24, 93, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.cta-subtext {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 0.5rem;
  display: block;
}

/* Trust Pills */
.trust-pills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  width: 100%;
}

.trust-pill {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* Footer styling */
.footer {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid #f5eef0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ==========================================================================
   COURSE PAGE - LOCKED / ACCORDION / APP STYLES
   ========================================================================== */

/* Locked state centered screen */
.locked-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  padding: 1.5rem;
}

.locked-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 2.5rem 1.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  animation: fade-in-scale 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fade-in-scale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lock-header-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--accent-soft-1);
  color: var(--primary-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.locked-card h1 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.locked-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.input-group {
  position: relative;
  margin-bottom: 1.25rem;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: #faf8f9;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px var(--accent-soft-3);
}

.error-message {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-weight: 500;
  display: none;
  text-align: left;
}

.locked-back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.locked-back-link:hover {
  color: var(--primary-dark);
}

/* Unlocked Course State */
.course-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Banner */
.course-header {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 1.5rem 1rem 2rem;
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1024px;
  margin: 0 auto;
  width: 100%;
  margin-bottom: 1.5rem;
}

.brand-mark {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.btn-signout {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

.header-intro {
  max-width: 1024px;
  margin: 0 auto;
  width: 100%;
}

.header-intro .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.header-intro h1 {
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.header-intro p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Main Content Area */
.course-main {
  flex: 1;
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Info Box */
.info-box {
  background-color: var(--white);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.info-box-title {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Day Picker Container - Tabs connected to each other */
.day-picker-container {
  margin-bottom: 2rem;
  width: 100%;
}

.day-picker {
  display: flex;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow-x: auto;
  gap: 0; /* connected tabs */
  padding: 0;
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
  width: 100%;
}

.day-picker::-webkit-scrollbar {
  display: none;
}

.day-pill {
  flex: 1 1 54px; /* stretch to fill, but don't shrink below 54px */
  min-width: 54px; /* ensure it doesn't shrink below 54px */
  min-height: 60px;
  background: var(--white);
  border: none;
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem 0.25rem;
  transition: all 0.2s ease;
  border-radius: 0;
}

.day-pill:last-child {
  border-right: none;
}

.day-tab-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.day-tab-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.day-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 0.2rem;
  transition: all 0.2s ease;
}

/* Day Dot Colors */
.day-dot-red { background-color: #c0392b; }
.day-dot-purple { background-color: #8e44ad; }
.day-dot-green { background-color: #7ba871; }
.day-dot-beige { background-color: #a8885c; }
.day-dot-orange { background-color: #f29c11; }
.day-dot-white { background-color: #d1cfc7; }

/* Active Day State */
.day-pill.active {
  background-color: var(--active-primary);
  color: var(--white);
}

.day-pill.active .day-tab-num {
  color: var(--white);
}

.day-pill.active .day-tab-name {
  color: rgba(255, 255, 255, 0.85);
}

.day-pill.active .day-tab-dot {
  background-color: var(--white);
}

/* Hover effects */
.day-pill:not(.active):hover {
  background-color: #faf9f6;
}

/* Day content transition animations */
.day-content-wrapper {
  animation: fade-in-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Summary Card */
.summary-card {
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.summary-day-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  opacity: 0.9;
  margin-bottom: 0.25rem;
  display: block;
}

.summary-day-theme {
  font-family: var(--font-title);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.macro-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.6rem 0.4rem;
  text-align: center;
}

.macro-value {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  display: block;
}

.macro-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  font-weight: 600;
  display: block;
  margin-top: 0.1rem;
}

/* Meal Cards (Mobile-first Layout) */
.meal-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.meal-card {
  background-color: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.meal-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

/* Meal Header */
.meal-header {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.25s ease;
}

.meal-header:hover {
  background-color: var(--accent-soft-1);
}

.meal-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* Specific Meal Icon Colors */
.meal-breakfast { background-color: #fdf2f8; color: #db2777; }
.meal-lunch { background-color: #fef3c7; color: #d97706; }
.meal-snack { background-color: #ecfdf5; color: #10b981; }
.meal-dinner { background-color: #e0f2fe; color: #0284c7; }

.meal-title-area {
  flex: 1;
}

.meal-type-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 0.1rem;
}

.meal-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

.meal-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 0.15rem;
}

/* Meal Body - Stacks vertically on Mobile */
.meal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

/* Circular Chart Dials */
.circular-chart {
  width: 100%;
  height: 100%;
}

.circle-bg {
  fill: none;
  stroke: #f2ede4;
  stroke-width: 3;
}

.circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.animate-draw-circle {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-circle 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes draw-circle {
  to {
    stroke-dashoffset: 0;
  }
}

.meal-column-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border-color);
  width: fit-content;
}

.lang-section {
  margin-bottom: 0.75rem;
}

.lang-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

/* Meal Ingredients List */
.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.ingredient-bullet {
  color: var(--primary);
  font-weight: bold;
}

/* Meal Recipe Steps */
.recipe-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.recipe-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.recipe-step-num {
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--accent-soft-2);
  color: var(--primary-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.recipe-step-text {
  flex: 1;
}

/* Watch Prep Button */
.btn-prep {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(220, 39, 67, 0.15);
}

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

.btn-prep svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

/* Previous / Next Day Buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-nav {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-nav:hover:not(:disabled) {
  background-color: var(--accent-soft-1);
  border-color: var(--border-accent);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Support Box */
.support-box {
  background-color: var(--accent-soft-1);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.support-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.support-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px dashed var(--primary);
  padding-bottom: 0.1rem;
  transition: border-style 0.2s;
}

.support-link:hover {
  border-bottom-style: solid;
}

/* Welcoming Card Styling */
.welcoming-card {
  background-color: var(--white);
  border-radius: 24px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  text-align: left;
}

.welcoming-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-soft-2);
  outline: 2px solid var(--primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.welcoming-content {
  flex: 1;
}

.welcoming-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.welcoming-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Floating Background elements */
.floating-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.floating-item {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.16; /* increased from 0.08 for vivacity */
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.04));
  animation: float-slow 15s infinite ease-in-out;
}

.lemon-1 {
  width: 140px;
  height: 140px;
  top: 12%;
  left: 3%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f1c40f'><path d='M19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7 3.13-7 7-7 7 3.13 7 7zm3.17-2.61c.46-.86.83-2.07 1-3.39.23-1.83.05-2.73-1-3.78s-1.95-1.23-3.78-1c-1.32.17-2.53.54-3.39 1A9.97 9.97 0 0 0 12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-.85-.11-1.68-.32-2.48l.49-.13z'/></svg>");
}

.grape-1 {
  width: 130px;
  height: 130px;
  top: 48%;
  right: 2%;
  animation-delay: 2.5s;
  animation-duration: 20s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237ba871'><circle cx='12' cy='6' r='3'/><circle cx='8' cy='10' r='3'/><circle cx='16' cy='10' r='3'/><circle cx='12' cy='14' r='3'/><circle cx='8' cy='18' r='3'/><circle cx='16' cy='18' r='3'/><circle cx='12' cy='22' r='3'/></svg>");
}

.daisy-1 {
  width: 110px;
  height: 110px;
  top: 78%;
  left: 2%;
  animation-delay: 4.5s;
  animation-duration: 14s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='3' fill='%23f1c40f'/><path fill='%23ffffff' d='M12 2a2 2 0 0 1 2 2v2a2 2 0 0 1-4 0V4a2 2 0 0 1 2-2zm0 16a2 2 0 0 1 2 2v2a2 2 0 0 1-4 0v-2a2 2 0 0 1 2-2zm8-8a2 2 0 0 1 2 2v2a2 2 0 0 1-4 0v-2a2 2 0 0 1 2-2zM4 10a2 2 0 0 1 2 2v2a2 2 0 0 1-4 0v-2a2 2 0 0 1 2-2zm12.24-4.24a2 2 0 0 1 0 2.83l-1.41 1.41a2 2 0 1 1-2.83-2.83l1.41-1.41a2 2 0 0 1 2.83 0zm-8.48 8.48a2 2 0 0 1 0 2.83l-1.41 1.41a2 2 0 1 1-2.83-2.83l1.41-1.41a2 2 0 0 1 2.83 0zm11.31 0a2 2 0 0 1 2.83 0l1.41 1.41a2 2 0 1 1-2.83 2.83l-1.41-1.41a2 2 0 0 1 0-2.83zm-14.14-14.14a2 2 0 0 1 2.83 0l1.41 1.41a2 2 0 1 1-2.83 2.83l-1.41-1.41a2 2 0 0 1 0-2.83z'/></svg>");
}

.lemon-2 {
  width: 120px;
  height: 120px;
  bottom: 15%;
  right: 5%;
  animation-delay: 1.2s;
  animation-duration: 18s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f1c40f'><path d='M19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7 3.13-7 7-7 7 3.13 7 7zm3.17-2.61c.46-.86.83-2.07 1-3.39.23-1.83.05-2.73-1-3.78s-1.95-1.23-3.78-1c-1.32.17-2.53.54-3.39 1A9.97 9.97 0 0 0 12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-.85-.11-1.68-.32-2.48l.49-.13z'/></svg>");
}

.daisy-2 {
  width: 90px;
  height: 90px;
  top: 18%;
  right: 18%;
  animation-delay: 5.5s;
  animation-duration: 15s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='3' fill='%23f1c40f'/><path fill='%23ffffff' d='M12 2a2 2 0 0 1 2 2v2a2 2 0 0 1-4 0V4a2 2 0 0 1 2-2zm0 16a2 2 0 0 1 2 2v2a2 2 0 0 1-4 0v-2a2 2 0 0 1 2-2zm8-8a2 2 0 0 1 2 2v2a2 2 0 0 1-4 0v-2a2 2 0 0 1 2-2zM4 10a2 2 0 0 1 2 2v2a2 2 0 0 1-4 0v-2a2 2 0 0 1 2-2zm12.24-4.24a2 2 0 0 1 0 2.83l-1.41 1.41a2 2 0 1 1-2.83-2.83l1.41-1.41a2 2 0 0 1 2.83 0zm-8.48 8.48a2 2 0 0 1 0 2.83l-1.41 1.41a2 2 0 1 1-2.83-2.83l1.41-1.41a2 2 0 0 1 2.83 0zm11.31 0a2 2 0 0 1 2.83 0l1.41 1.41a2 2 0 1 1-2.83 2.83l-1.41-1.41a2 2 0 0 1 0-2.83zm-14.14-14.14a2 2 0 0 1 2.83 0l1.41 1.41a2 2 0 1 1-2.83 2.83l-1.41-1.41a2 2 0 0 1 0-2.83z'/></svg>");
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-28px) translateX(18px) rotate(12deg) scale(1.08);
  }
  66% {
    transform: translateY(18px) translateX(-22px) rotate(-10deg) scale(0.92);
  }
}

/* Day Hero Section */
.day-hero-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.day-photo-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-accent);
  position: relative;
  aspect-ratio: 4/3;
  max-height: 380px;
  background-color: var(--white);
}

.day-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   DESKTOP / PROGRESSIVE ENHANCEMENT (Large Screens)
   ========================================================================== */

@media (min-width: 640px) {
  .day-color-circle {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }
}

@media (min-width: 768px) {
  /* Layout Containers */
  .container {
    max-width: 640px;
    padding: 4rem 2rem;
  }
  
  /* Course header bigger spacing */
  .course-header {
    padding: 2rem 2rem 3rem;
  }
  
  .course-main {
    padding: 2.5rem 2rem 4rem;
  }
  
  /* Larger headlines */
  .title-serif {
    font-size: 2.75rem;
  }
  
  .card {
    padding: 2.5rem;
  }
  
  /* Day pill adjustments */
  
  /* Summary Card size */
  .summary-card {
    padding: 2rem;
  }
  
  .summary-day-theme {
    font-size: 1.75rem;
  }
  
  .macro-value {
    font-size: 1.2rem;
  }
  
  /* Two-column layout in Meal Body */
  .meal-body {
    padding: 1.75rem;
    flex-direction: row;
    gap: 2rem;
  }
  
  .meal-col-left {
    flex: 0 0 42%;
    border-right: 1px solid var(--border-color);
    padding-right: 1.5rem;
  }
  
  .meal-col-right {
    flex: 0 0 58%;
    padding-left: 0.5rem;
  }
  
  .meal-column-title {
    margin-bottom: 1rem;
  }
  
  .day-hero-container {
    flex-direction: row;
    align-items: stretch;
  }
  
  .day-photo-card {
    flex: 1 1 50%;
    max-height: none;
    margin-bottom: 0;
  }
  
  .day-hero-container .summary-card {
    flex: 1 1 50%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ==========================================================================
   PERSONALIZED DIET MODAL STYLES
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 25, 22, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: modal-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-lg), 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  box-sizing: border-box;
  margin: auto 0;
  animation: modal-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 10;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: center;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
}

.success-icon-box {
  width: 4rem;
  height: 4rem;
  background-color: var(--accent-soft-1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto 0;
  box-shadow: var(--shadow-sm);
}

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

/* Water Calculator Media Query */
@media (max-width: 480px) {
  #water-inputs-grid {
    grid-template-columns: 1fr !important;
  }
}
