@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");
@import url("fontawesome-all.min.css");
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

@font-face {
  font-family: 'Knockout';
  src: url('../font/Knockout-HTF48-Featherweight.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Home page styles */
@font-face {
    font-family: 'cakefont';
    src: url('../font/cakedingbats-webfont.eot');
    src: url('../font/cakedingbats-webfont.eot?#iefix') format('embedded-opentype'),
    url('../font/cakedingbats-webfont.woff2') format('woff2'),
    url('../font/cakedingbats-webfont.woff') format('woff'),
    url('../font/cakedingbats-webfont.ttf') format('truetype'),
    url('../font/cakedingbats-webfont.svg#cake_dingbatsregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

input {
  color: white !important;
}
header {
    margin-bottom: 30px;
}
img {
    margin-bottom: 30px;
}
h1 {
    font-weight: bold;
}

.home-preview .preview-stage{
  position: relative;
  width: 100%;
  height: 100%;          
  overflow: hidden;      
}

.home-list{
  display: grid;
  grid-template-columns: 58% 42%;
  grid-template-rows: 68% 32%;
  grid-template-areas:
    "menu preview"
    "menu info";
  min-height: 100vh;         /* optional: fill screen */
}


.slideshow-bg{
  position:absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease-in-out;
  will-change: opacity;
}


.lh-menu:has(.lh-link:hover) + .home-preview .slideshow-bg.default{
  opacity: 0;
}

.slideshow-media{
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity .8s ease-in-out;
  pointer-events: none;
  z-index: 0;                     /* under the image layers */
}

.slideshow-media > video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; 
}


/* Intake */
.slideshow-bg.intake {
  background-image: url('/img/RecipeBuilder.webp');
}
.lh-menu:has(li.bg-intake .lh-link:hover) + .home-preview .slideshow-bg.intake {
  opacity: 1;
}


/* MealPlan */
.slideshow-bg.mealplan {
  background-image: url('/img/WeeklyMeal.webp');
}
.lh-menu:has(li.bg-mealplan .lh-link:hover) + .home-preview .slideshow-bg.mealplan {
  opacity: 1;
}


/* Checkin */
.slideshow-bg.checkin {
  background-image: url('/img/WeeklyCheckin.webp');
}
.lh-menu:has(li.bg-checkin .lh-link:hover) + .home-preview .slideshow-bg.checkin {
  opacity: 1;
}

/* Journal */
.slideshow-bg.journal {
  background-image: url('/img/FoodJournal.webp');
}
.lh-menu:has(li.bg-journal .lh-link:hover) + .home-preview .slideshow-bg.journal {
  opacity: 1;
}


.home-info {
  grid-area: info;
  position: relative;
  display: grid;
  align-items: start;
  justify-items: center;
  text-align: center;
  padding-top: 0.25rem;
  height: 100%;
  border-top: 1px solid  rgba(255, 255, 255, 0.25);
}

.preview-text {
  position: absolute;
  left: 0; right: 0;       
  top: 1rem;           
  /* bottom: auto;            */
  /* margin: 0 auto; */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center;  */
  gap: 0.6rem;            
  text-align: center;
  opacity: 0;
  transition: opacity .6s ease-in-out;

}

.preview-text .preview-desc{
  margin: 0;
  width: clamp(26ch, 38vw, 40ch);
  max-width: 40ch;
  font-size: clamp(2rem, 4svh, 4rem);
  line-height: 1.2;
  letter-spacing: .01rem;
  text-wrap: balance;      /* nicer wrapping where supported */
  hyphens: auto;
  transform: none;  
}

/* .preview-text .preview-title {
  position: absolute;
  bottom: 0rem;
  right: 3rem;
  margin: 0;
} */

.lh-menu:has(li.bg-intake .lh-link:hover) + .home-preview + .home-info .preview-text.intake {
  opacity: 1;
}

.lh-menu:has(li.bg-mealplan .lh-link:hover) + .home-preview + .home-info .preview-text.mealplan {
  opacity: 1;
}
.lh-menu:has(li.bg-checkin .lh-link:hover) + .home-preview + .home-info .preview-text.checkin {
  opacity: 1;
}
.lh-menu:has(li.bg-journal .lh-link:hover) + .home-preview + .home-info .preview-text.journal {
  opacity: 1;
}

ul {
    list-style-type: none;
    margin: 0 0 30px 0;
    padding-left: 25px;
}
a {
    color: #0071BC;
    text-decoration: underline;
}
hr {
    border-bottom: 1px solid #e7e7e7;
    border-top: 0;
    margin-bottom: 35px;
}



.text-center {
    text-align: center;
}
.links a {
    margin-right: 10px;
}
.release-name {
    color: #D33C43;
    font-weight: 400;
    font-style: italic;
}
.bullet:before {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    display: inline-block;
    margin-left: -1.3em;
    width: 1.2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: -1px;
}
.success:before {
    color: #88c671;
    content: "\0056";
    margin-top: 100px;
}
.problem:before {
    color: #d33d44;
    content: "\0057";
}
.cake-error {
    padding: 10px;
    margin: 10px 0;
}
#url-rewriting-warning {
    display: none;
}
#questionnaire {
  padding-top: 100px;
  --q-font: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --q-red: #ED1A3B;         /* primary red */
  --q-red-600: #c31631;      /* hover/darker */
  --q-black: #ffffff;
  --q-gray-900: #1f1f1f;
  --q-gray-700: #ffffff;
  --q-gray-400: #cfcfcf;
  --q-bg: #000000;
  --q-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* Container & header */
#questionnaire .quizlet-quiz-container {
  max-width: 820px;          /* a touch wider */
  margin: 24px auto;
}

#questionnaire .quizlet-header {
  display: flex;
  flex-direction: column;   /* was row */
  align-items: center;      /* center horizontally */
  gap: .5rem;               /* space between title and bar */
  text-align: center;
}
#questionnaire .quizlet-header > div {
  width: clamp(220px, 60vw, 520px);  /* responsive width */
  display: flex;
  padding: 10px;
  margin-top: 5px;
  flex-direction: column;
  align-items: center;
}

#questionnaire .quizlet-title { 
    margin:0; 
    font-size: 80px; 
    font-weight: 500; 
    letter-spacing: 1px; 
    font-family: 'Bebas Neue';}

/* Progress */
#questionnaire .progress { 
  width: 100%;
  margin-top: .25rem;
  margin-bottom: 20px;
}

#questionnaire .progress > div {
  height: 100%;
  width: 0%;
  background: var(--q-red);
  transition: width .25s ease;

}

/* Cards */
#questionnaire .quizlet-questions { position: relative; }
#questionnaire .quizlet-question-card {
  display: none;
  background: var(--q-bg);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: var(--q-shadow);
}
#questionnaire .quizlet-question-card.active { display: block; }

#questionnaire .question-number {
  font: 600 .95rem var(--q-font);
  letter-spacing: .02em;
  color: var(--q-gray-700);
  margin-bottom: .35rem;
}

#questionnaire .question-text {
  font: 600 1.8rem var(--q-font);   
  color: var(--q-black);
  margin-bottom: 1rem;
}
#questionnaire .question-options { 
  display: grid; 
  gap: .55rem; 

}

/* RESET wrappers so they don't look like one big box */
#questionnaire .radio,
#questionnaire .checkbox {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* CARD on each option LABEL (works for both single + multiple) */
#questionnaire .radio label,
#questionnaire .checkbox label,
#questionnaire .quizlet-choices label,
#questionnaire .quizlet-multi-choices label {
  display: flex; /* instead of flex */
  align-items: center;
  gap: .65rem;
  margin-bottom: 0.75rem;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  font: 600 1.3rem var(--q-font);
  color: white;
  width: fit-content; /* prevents stretching */
}


/* inputs */
#questionnaire input[type="radio"],
#questionnaire input[type="checkbox"] {
  inline-size: 1.1rem;
  block-size: 1.1rem;
  padding: 5px;
  border: var(--q-red);
  accent-color: var(--q-red);
  cursor: pointer;
  flex: none;
}

/* hover */
#questionnaire .radio label:hover,
#questionnaire .checkbox label:hover,
#questionnaire .quizlet-choices label:hover,
#questionnaire .quizlet-multi-choices label:hover {
  border-color: var(--q-red);
  box-shadow: 0 0 0 3px rgba(237, 26, 59, .12);
}


#questionnaire .radio label:has(input:checked),
#questionnaire .checkbox label:has(input:checked),
#questionnaire .quizlet-choices label:has(input:checked),
#questionnaire .quizlet-multi-choices label:has(input:checked),
#questionnaire .radio input[type="radio"]:checked + label,
#questionnaire .checkbox input[type="checkbox"]:checked + label {
  border-color: var(--q-red);
}


#questionnaire input[type="number"],
#questionnaire textarea {
  width: 100%;
  font: 500 1.05rem var(--q-font);
  color: var(--q-black);
  border: 1.5px solid #e9e9e9;
  border-radius: 12px;
  padding: .8rem .9rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#questionnaire input[type="number"]:focus,
#questionnaire textarea:focus {
  border-color: var(--q-red);
  box-shadow: 0 0 0 3px rgba(237, 26, 59, .12);
}

/* Nav buttons */
#questionnaire .quizlet-nav {
  display: flex;
  gap: .6rem;
  margin-top: 1.1rem;
}
#questionnaire .quizlet-btn {
  font: 700 1rem var(--q-font);
  letter-spacing: .02em;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--q-black);
  background: #fff;
  color: black;
  cursor: pointer;

  transition: transform .06s ease, background .15s, color .15s, border-color .15s;
}
#questionnaire .quizlet-btn:hover { transform: translateY(-1px); }
#questionnaire .quizlet-btn:active { transform: translateY(0); }

#questionnaire .quizlet-btn.primary {
  background: var(--q-red);
  border-color: var(--q-red);
  color: #fff;
}
#questionnaire .quizlet-btn.primary:hover {
  background: var(--q-red-600);
  border-color: var(--q-red-600);
}

/* Footer row inside card */
#questionnaire .quizlet-footer {
  margin-top: .9rem;
  color: var(--q-gray-700);
  font: 600 .95rem var(--q-font);
  display: flex;
  justify-content: space-between;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  #questionnaire .quizlet-title { font-size: 2.4rem; }
  #questionnaire .question-text { font-size: 1.2rem; }
  #questionnaire .progress { width: 160px; }
}
/* ===========================
   Mobile Navigation (≤1023px)
   =========================== */
@media only screen and (max-width: 63.9375rem) {
  /* Lock body scroll when menu is open */
  
  
  /* Header */
  #cs-navigation {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    background: #fff;
    box-shadow: rgba(149,157,165,.2) 0 8px 24px;
    position: fixed;          /* FIX: was 'flex' */
    top: 0; left: 0;          /* ensure it sticks to top */
    z-index: 10000;
  }

  /* Backdrop overlay */
  #cs-navigation::before {
    content: "";
    width: 100%;
    height: 0vh;
    background: rgba(0,0,0,.6);
    opacity: 0;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: -1;
    transition: height .5s, opacity .5s;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  #cs-navigation.cs-active::before {
    height: 150vh;
    opacity: 1;
  }

  /* Container row */
  #cs-navigation .cs-container {
    width: 100%;
    display: flex;
    justify-content: space-between;  /* better spacing on mobile */
    align-items: center;
    gap: .75rem;
  }

  /* Logo */
  #cs-navigation .cs-logo {
    width: 40%;
    max-width: 9.125rem;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
    display: flex; justify-content: center; align-items: center;
    z-index: 10;
  }
  #cs-navigation .cs-logo img {
    width: 100%; height: 100%; object-fit: contain;
  }

  /* Hamburger */
  #cs-navigation .cs-toggle {
    width: clamp(2.75rem, 6vw, 3rem);
    height: clamp(2.75rem, 6vw, 3rem);
    margin-left: auto;
    border: none; border-radius: .25rem;
    display: flex; justify-content: center; align-items: center;
    background: transparent;
    color: black;
  }
  #cs-navigation .cs-box {
    width: 4px;
    height: 4px;
    position: relative;
    color: black;

  }
  #cs-navigation .cs-line {
    width: 100%; height: 2px; background: #1a1a1a; border-radius: 2px;
    position: absolute; left: 50%; transform: translateX(-50%);
    color: black !important;
  }
  #cs-navigation .cs-line1 {
    top: 0;
    transition: transform .5s, top .3s, left .3s;
    transform-origin: center;
    color: black;
    margin-bottom: 3px;
  }
  #cs-navigation .cs-line2 {
    top: 50%;
    transform: translate(-50%,-50%);
    transition: top .3s, left .3s, transform .5s;
  }

  #cs-navigation .cs-line3 {
    margin-top: 5px;
    bottom: 0;
    transition: bottom .3s, opacity .3s;
  }

  #cs-navigation .cs-toggle .cs-line1,
  #cs-navigation .cs-toggle .cs-line2,
  #cs-navigation .cs-toggle .cs-line3 {
    background-color: #000 !important;
  }

  /* Animate hamburger to X when open */
  #cs-navigation.cs-active .cs-line1 { top: 50%; transform: translate(-50%,-50%) rotate(225deg); }
  #cs-navigation.cs-active .cs-line2 { top: 50%; transform: translate(-50%,-50%) rotate(-225deg); }
  #cs-navigation.cs-active .cs-line3 { opacity: 0; bottom: 100%; }

  /* Drawer wrapper */
  #cs-navigation .cs-ul-wrapper {
    width: 100%;
    padding-bottom: 2.4em;
    background: #fff;
    box-shadow: inset rgba(0,0,0,.2) 0 8px 24px;
    opacity: 0;
    position: absolute;   /* sits under fixed header */
    top: 100%; left: 0;
    z-index: -1;
    overflow: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s, opacity .3s;
  }

  /* Open state: show drawer (dark theme) */
  #cs-navigation.cs-active .cs-ul-wrapper {
    opacity: 1;
    transform: scaleY(1);
    transition-delay: .15s;
    background: #000;         /* your black background */
  }

  /* Menu list */
  #cs-navigation .cs-ul {
    width: 100%;
    max-height: 65vh;
    margin: 0; padding: 3rem 0 0;
    display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
    overflow: auto;
  }

  /* Items animate in */
  #cs-navigation .cs-li {
    width: 100%; list-style: none; text-align: center;
    opacity: 0; transform: translateY(-4.375rem);
    transition: transform .6s, opacity .9s;
  }
  #cs-navigation.cs-active .cs-li { opacity: 1; transform: translateY(0); }
  #cs-navigation .cs-li:nth-of-type(1){ transition-delay:.05s; }
  #cs-navigation .cs-li:nth-of-type(2){ transition-delay:.1s; }
  #cs-navigation .cs-li:nth-of-type(3){ transition-delay:.15s; }
  #cs-navigation .cs-li:nth-of-type(4){ transition-delay:.2s; }
  #cs-navigation .cs-li:nth-of-type(5){ transition-delay:.25s; }
  #cs-navigation .cs-li:nth-of-type(6){ transition-delay:.3s; }
  #cs-navigation .cs-li:nth-of-type(7){ transition-delay:.35s; }
  #cs-navigation .cs-li:nth-of-type(8){ transition-delay:.4s; }
  #cs-navigation .cs-li:nth-of-type(9){ transition-delay:.45s; }
  #cs-navigation .cs-li:nth-of-type(10){ transition-delay:.5s; }
  #cs-navigation .cs-li:nth-of-type(11){ transition-delay:.55s; }
  #cs-navigation .cs-li:nth-of-type(12){ transition-delay:.6s; }

  /* Links */
  #cs-navigation .cs-li-link {
    font-family: 'Knockout' !important;
    color: #000;
    line-height: 1.2;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding: .5rem 0;
  }

  /* Make links readable on dark drawer */
  #cs-navigation.cs-active .cs-li-link { color: #fff; }

  /* Active underline */
  #cs-navigation .cs-li-link::before {
    content: "";
    width: 100%; height: 1px; background: currentColor;
    opacity: 1; display: none;
    position: absolute; bottom: -0.125rem; left: 0;
  }
  #cs-navigation .cs-li-link.cs-active::before { display: block; }

  /* Hide solid button in mobile header (keeps desktop intact) */
  #cs-navigation .cs-button-solid { display: none; }
}

/*-- -------------------------- -->
<---     Desktop Navigation     -->
<--- -------------------------- -*/
/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #cs-navigation {
     top: 0;                
  left: 0;  
    width: 100%;
    /* prevents padding and border from affecting height and width */
    box-sizing: border-box;
    background-color: white;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    position: fixed;
    z-index: 10000;
    
  }
  #cs-navigation .cs-container {
    width: 100%;
    max-width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    height: 8rem;
  }

  #cs-navigation .cs-toggle {
    display: none;
  }
  #cs-navigation .cs-logo {
    width: 100px;
    max-width: 21.875rem;
    height: 6rem;
    /* margin-right auto pushes everything away from it to the right */
    
    margin-top:  30px;
   
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }
  #cs-navigation .cs-logo img {
    width: 18rem;
    height: 100%;
    /* ensures the image never overflows the container. It stays contained within it's width and height and expands to fill it then stops once it reaches an edge */
    object-fit: contain;
  }
  #cs-navigation .cs-ul {
    margin-right: 5rem;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* 20px - 36px */
    gap: clamp(1.25rem, 2.6vw, 2.25rem);
    
  }
  #cs-navigation .cs-li {

    margin-bottom: 0;
    list-style: none;
    padding: 2rem 0;
    /* prevent flexbox from squishing it */
    flex: none;
  }
  #cs-navigation .cs-li-link {
    font-family:'montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    /* 14px - 16px */
    font-size: 1.4rem;
    line-height: 1.5em;
    text-decoration: none;
    margin: 0;
    color: black;
    display: block;
    position: relative;
    align-items: center;
  }
  #cs-navigation .cs-li-link:hover:before {
    width: 100%;
  }
  #cs-navigation .cs-li-link.cs-active:before {
    width: 100%;
  }
  #cs-navigation .cs-li-link:before {
    /* active state underline */
    content: "";
    width: 0%;
    height: 2px;
    background: red;
    opacity: 1;
    display: block;
    position: absolute;
    bottom: 0rem;
    left: 0;
    transition: width 0.3s;
  }
  #cs-navigation .cs-button-solid {
   margin-left: 4rem;
    font-size: 1.3rem;
    font-weight: 700;
    /* 46px - 56px */
   
    text-align: center;
    text-decoration: none;
    min-width: 9.375rem;
    
    /* prevents padding from adding to the width */
    box-sizing: border-box;
    padding: 0 1.5rem;
    color: #fff;
    background-color: #ED1A3B;
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    z-index: 1;
  }
  #cs-navigation .cs-button-solid:before {
    content: "";
    width: 0%;
    height: 100%;
    background: #c41630;
    opacity: 1;
    border-radius: 0.25rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width 0.3s;
  }
  #cs-navigation .cs-button-solid:hover:before {
    width: 100%;
  }
}

/* === Fonts (local) === */
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root{
  --mp-bg:#000;
  --mp-gridline:#1a1a1c;
  --mp-text:#fff;
  --mp-dim:#cfcfcf;
  --mp-red:#ff2244;
  --mp-red-2:#ff3359;
  --mp-card:#0b0b0b;
  --mp-radius:12px;
  --mp-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.app-background{ background:var(--mp-bg); min-height:100dvh; }

#mealplanner.mp{ color:var(--mp-text); font-family:var(--mp-font); padding:20px; max-width:1600px; margin:0 auto; }

/* Banner */
.mp-banner{ position:relative; padding:10px 0 10px; }
.mp-title{
  margin:0;
  font-size: clamp(44px, 9vw, 110px);
  line-height:.95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mp-planname{
  position:absolute; top:0; left:0;
  color:var(--mp-red);
  font-weight:900;
  letter-spacing:.5px;
}

/* Toolbar (week picker small) */
.mp-toolbar{
  display:flex;
  align-items:center;       /* center vertically */
  gap:14px;
  margin:6px 0 16px;
  flex-wrap: wrap;          /* allow next line */
}
.mp-weekform{ display:flex; gap:8px; align-items:center; }  /* center vertically */
.mp-weekform select{
  background:#0f0f12;
  color:#fff;
  border:1px solid var(--mp-gridline);
  border-radius:10px;
  padding:8px 10px;
  appearance:auto;          /* show native dropdown arrow */
}

.mp-btn{
  background:var(--mp-red); color:#fff; border:none; border-radius:10px;
  padding:8px 14px; font-weight:800; cursor:pointer;
  display: flex;              
  align-items: center;       
  justify-content: center; 
  
}
.mp-btn:hover{ background:var(--mp-red-2); }
.mp-btn-outline{
  background:transparent; color:var(--mp-red); border:1px solid var(--mp-red);
}
.mp-weekof{
  flex-basis: 100%;         /* force onto new line */
  color: var(--mp-dim);
  font-weight: 700;
  margin-top: 4px;
}

/* ===== GRID ===== */
.mp-grid{
  display:grid;
  grid-template-columns: 120px repeat(7, 1fr); /* left rail + 7 days */
  /* header (1) + meals (6) + calories row (1) = 8 rows */
  gap:0;
  border:1px solid var(--mp-gridline);
  border-radius: 18px;
  overflow:hidden;
}

/* Base cell */
.mp-cell{
  min-height:78px;
  background:#000;
  border-right:1px solid var(--mp-gridline);
  border-bottom:1px solid var(--mp-gridline);
  padding:16px;
  position:relative;
}
.mp-cell:last-child{ border-right:1px solid var(--mp-gridline); }

/* Corner cell */
.mp-corner{
  background:#000;
  display:flex; align-items:center; justify-content:center;
}
.mp-headtext{ color:#bdbdbd; text-transform:uppercase; font-weight:900; letter-spacing:.6px; }

/* Day headers */
.mp-dayhead{
  background:#000;
  display:flex; align-items:center; justify-content:center;
}
.mp-dayname{
  font-weight:900; font-size:18px; letter-spacing:.4px;
}

/* Left rail meal numbers */
.mp-mealno{
  background:#000;
  display:flex; align-items:center; justify-content:center;
}
.mp-mealbadge{
  width:48px; height:48px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#111; border:1px solid var(--mp-gridline);
  font-weight:900; font-size:22px;
}

/* Slot cells (select inside) */
.mp-slot{ background:#000; }
.mp-slot .food-select{
  width:100%;
  background:#0f0f12;
  color:#fff;
  border:1px solid var(--mp-gridline);
  border-radius:10px;
  padding:12px 14px;
  appearance:auto;          /* important: restore arrow */
  outline:none;
}
.mp-slot .food-select:focus{
  border-color:var(--mp-red);
  box-shadow:0 0 0 3px rgba(255,34,68,.25);
}



/* Empty cell placeholder */
.mp-empty{ height:42px; }

/* Calories head (left) */
.mp-calhead{
  background: var(--mp-red);
  display:flex; align-items:center; justify-content:center;
  border-top:1px solid var(--mp-gridline);
}
.mp-calheadtext{
  color:#fff; font-weight:900; letter-spacing:.6px; text-transform:uppercase; font-size:18px;
}

/* Calories totals (bottom row) */
.mp-caltotal{
  background: var(--mp-red);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:22px;
}

/* Actions */
.mp-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;       /* center vertically */
  gap:10px;
  margin-top:14px;
}
/* Responsive */
@media (max-width:1100px){
  .mp-grid{ grid-template-columns: 80px repeat(7, 1fr); }
  .mp-mealbadge{ width:40px; height:40px; font-size:18px; }
}
@media (max-width:860px){
  /* At narrow widths, allow horizontal scroll to preserve the 7-day layout */
  .mp-grid{ overflow:auto; display:block; }
  .mp-grid > .mp-cell{ min-width:140px; display:inline-flex; vertical-align:top; }
  .mp-corner{ width:120px; }
  .mp-mealno{ width:120px; }
  .mp-dayhead, .mp-slot, .mp-caltotal{ width:160px; }
  .mp-calhead{ width:120px; }
}

.main-page {
  width: 100%;
  display: flex;
  flex-direction: column;   /* stack buttons vertically */
  align-items: center;      /* center horizontally */
  justify-content: center;  /* center vertically if you want */
}

.btn-save {
  margin-top: 12px;
  width: 25%;
  background: #ED1A3B;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;              
  align-items: center;       
  justify-content: center;   
}

.btn-save:hover { filter: brightness(1.1); }

#register {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #000;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
  }

  .register-container {
    width: 100%;
    max-width: 720px;
  }

  .register-card {
    background: #111;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #222;
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
  }

  .register-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: #ED1A3B;
    margin-bottom: 25px;
    text-align: center;
  }

  #register .form label,
#register .form input,
#register .form select,
#register .form textarea {
  color: #fff !important;
  font-family: 'Knockout';
  font-size: 20px
}

/* optional: lighter white for placeholders */
#register .form ::placeholder { color: rgba(255,255,255,0.75); }
  /* === Form === */
  fieldset {
    border: none;
    margin: 0;
    padding: 0;
  }

  .row {
    display: flex;
    gap: 20px;
  }

  .row .column {
    flex: 1;
  }

  label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
  }

  input, select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #f3f3f3;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  input:focus, select:focus {
    outline: none;
    border-color: #ED1A3B;
    box-shadow: 0 0 0 3px rgba(237, 26, 59, 0.35);
  }

  /* === Buttons === */
  .form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
  }

  .btn-primary {
    background: #ED1A3B;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
  }

  .btn-primary:hover {
    background: #c41630;
  }

  .btn-secondary {
    color: #ED1A3B;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    align-self: center;
  }

  .btn-secondary:hover {
    text-decoration: underline;
  }

  /* Flash messages */
  .message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
  }

   :root {
    --brand: #ED1A3B;
    --black: #0b0b0b;
    --ink: #eaeaea;
    --ink-dim: #bdbdbd;
    --card: #111214;
    --line: #202226;
    --focus: rgba(237,26,59,0.35);
  }
  
  #register {
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 20% 10%, rgba(237,26,59,0.12), transparent),
                linear-gradient(180deg, #000, #060606 60%, #000);
    color: var(--ink);
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    display: grid;
    place-items: stretch;
  }

/* LANDING PAGE */
 .landing {
  padding: 10px 10px;
  background: linear-gradient(180deg, #330000, #1a0000 60%, #000);
  text-align: center;
  color: white;
}

.content {
  max-width: 800px;
  margin: 0 auto;
}

.landing h1 {
  font-size: 160px;
  color:var(--brand);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.landing h2 {
  font-size: 80px;
  font-weight: 100px;
  letter-spacing: 1.5px;
  color: transparent;
  -webkit-text-stroke: 1px white;
  text-align: center;
}

.landing p {
    font-size: 20px;
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

.cta {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn.login {
  background: var(--brand);
  font-size: 30px;
  letter-spacing: 1.5px;
  color: white;
  border: 1px solid white;
  border-radius: 0;
}

.btn.signup {
  background: var(--brand);
  font-size: 30px;
  letter-spacing: 1.5px;
  color: white;
  border: 1px solid white;
  border-radius: 0;
}

/* TABLE LAYOUT - ONBOARDING */
.response-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #111;
  color: #eee;
  font-size: 16px;
  margin-top: 30px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}

.response-table th,
.response-table td {
  padding: 20px;
  border-bottom: 1px solid #333;
  vertical-align: top;
}

.response-table th {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  color: #ff3344;
  background-color: #1a1a1a;
  border-bottom: 2px solid #ff3344;
}

.response-table tr:hover {
  background-color: #222;
}

.answer-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.answer-list li {
  padding: 4px 0;
  border-left: 3px solid #ff3344;
  padding-left: 10px;
  margin-bottom: 4px;
  color: #ccc;
}


  /* ===== Layout ===== */
  #register .grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 100vh;
  }

  /* Left brand pane */
  .brand-pane {
    position: relative;
    background: linear-gradient(180deg, var(--brand), #0f0103 95%);
    padding: 56px clamp(24px, 6vw, 72px);
    display: grid;
    align-content: center;
    overflow: hidden;
  }
  .brand-inner {
    max-width: 560px;
    color: #fff;
  }
  .badge {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.25);
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
  }
  .brand-pane h1 {
    font-family: 'Bebas Neue';
    font-size: clamp(28px, 4.2vw, 48px);
    line-height: 1.05;
    margin: 0 0 12px 0;
    color: white;
  }
  .brand-pane p {
    margin: 0 0 18px 0;
    color: #fff;
    opacity: .95;
  }
  .highlights {
    list-style: none;
    padding: 0;
    margin: 18px 0 0 0;
    display: grid;
    gap: 8px;
  }
  .highlights li {
    position: relative;
    padding-left: 20px;
  }
  .highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .6em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #fff;
    transform: rotate(45deg);
    opacity: .9;
  }
  .stripe {
    position: absolute;
    inset: auto -40% -40% auto;
    width: 120%;
    height: 28%;
    background: linear-gradient(90deg, rgba(255,255,255,.15), rgba(255,255,255,0));
    transform: rotate(-12deg);
    pointer-events: none;
  }

  /* Right form pane */
  .form-pane {
    display: grid;
    place-items: center;
    padding: 40px 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) ;
  }
  .card {
    width: min(720px, 92vw);
    background: var(--card);
    border: 1px solid var(--line);
    padding: clamp(20px, 4vw, 36px);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
  }
  .card-head h2 {
    font-family: 'Bebas Neue';
    font-size: 48px;
    margin: 0 0 4px;
    color: white;
  }
  .card-head .sub {
    color: var(--ink-dim);
    margin: 0 0 18px;
  }
  .card-head .sub a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
  }
  .card-head .sub a:hover { text-decoration: underline; }

  /* ===== Form ===== */
  .form { display: grid; gap: 16px; }
  .row { margin-left: 2px;display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
  .col { display: grid; gap: 8px; }

  .field { display: grid; gap: 8px; }

  /* Style Cake inputs & selects */
  .form input[type="text"],
  .form input[type="email"],
  .form input[type="password"],
  .form input[type="number"],
  .form input[type="date"],
  .form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #131417;
    color: var(--ink);
    font-size: 0.98rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    font-size: 1.5rem;
  }
  .form label {
    font-weight: 100;
    color: #e9e9e9;
    font-size: 1.5rem;
  }
  .form input:focus,
  .form select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--focus);
    background: #14161a;
  }

  .actions {
    margin-top: 8px;
  }
  .btn {
    width: 100%;
    background: var(--brand);
    border: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 14px 18px;
    display: flex ;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .05s ease, filter .2s ease, box-shadow .2s ease;
    font-family: 'Montserrat', sans-serif;
  }
  .btn:hover { filter: brightness(.95); }
  .btn:active { transform: translateY(1px); }

  /* Flash messages */
  .message {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    border: 1px solid var(--line);
  }
  .message.error   { background: #2a1013; color: #ffd2d7; border-color: #44151b; }
  .message.success { background: #102a14; color: #c6f7d0; border-color: #1c3b22; }

  /* ===== Responsive ===== */
  @media (max-width: 1024px) {
    #register .grid { grid-template-columns: 1fr; }
    .brand-pane { min-height: 36vh; border-bottom: 1px solid rgba(255,255,255,.15); }
    .form-pane { padding-top: 24px; }
  }
  @media (max-width: 560px) {
    .row { grid-template-columns: 1fr; }
  }

  :root {
    --brand: #ED1A3B;
    --black: #0b0b0b;
    --ink: #eaeaea;
    --ink-dim: #bdbdbd;
    --card: #111214;
    --line: #202226;
    --focus: rgba(237,26,59,0.35);
  }

  #login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #330000, #1a0000 60%, #000);
    font-family: 'Oswald', sans-serif;
    color: var(--ink);
  }

  .login-container {
    width: 100%;
    max-width: 450px;
    padding: 16px;
  }

  .login-card {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 40px 32px;
    box-shadow: 0 20px 20px rgba(0,0,0,.45);
  }

  .login-header h1 {
    font-family: "Knockout";
    letter-spacing: 1px;
    font-size: 60px;
    color: var(--brand);
    margin: 0 0 2px 0;
    text-align: center;
    letter-spacing: 1px;
  }

  .login-header .sub {
    text-align: center;
    font-size: 20px;
    color: white;
    margin-bottom: 15px;
  }

  fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
  }

  label {
    font-family: 'Knockout';
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 18px;
    font-weight: 100;
    margin-bottom: 6px;
    display: inline-block;
    font-size: 2rem;
  }

  input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #1a1a1a;
    color: var(--ink);
    font-size: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--focus);
  }

  .actions {
    margin-top: 20px;
  }

  .btn {
    width: 100%;
    background: var(--brand);
    border: none;
    padding: 14px;
    border-radius: 8px;
    color: #fff;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: filter 0.2s, transform 0.05s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Knockout';
    font-size: 20px;
  }
  .btn:hover { filter: brightness(.95); }
  .btn:active { transform: translateY(1px); }

  .btn-outline {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--brand);
    border-radius: 8px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    margin-top: 12px;
  }
  .btn-outline:hover {
    background: var(--brand);
    color: #fff;
  }

  .divider {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .links {
    text-align: right;
    margin-top: 12px;
  }
  .link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
  }
  .link:hover { text-decoration: underline; }

  .message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 600;
  }

   header#home-hero {
        position: relative;
        padding: 80px 20px 46px;
        background:
          radial-gradient(900px 400px at 10% 0%, rgba(237,26,59,0.15), rgba(0,0,0,0)),
          linear-gradient(180deg, #0b0b0b, #050505 60%, #000);
        border-bottom: 1px solid #1f1f1f;
        text-align: left;
      }
      header#home-hero h1 {
        font-family: 'Oswald', sans-serif;
        font-size: clamp(28px, 4.2vw, 52px);
        line-height: 1.05;
        margin: 0 0 10px 0;
        color: #ED1A3B;
      }
      header#home-hero p {
        margin: 0;
        color: #bdbdbd;
        font-size: clamp(14px, 1.5vw, 18px);
      }

      /* ===== Main Grid ===== */
      main#home-main {
        padding: 28px 20px 60px;
      }
      .feature-grid {
        display: grid;
        gap: 16px;
        grid-template-columns: repeat(3, 1fr);
      }
      @media (max-width: 1200px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
      @media (max-width: 680px)  { .feature-grid { grid-template-columns: repeat(1, 1fr); } }
      @media (max-width: 440px)  { .feature-grid { grid-template-columns: 1fr; } }

      /* ===== Feature Card Buttons ===== */
      .feature-card {
        display: grid;
        align-content: center;
        gap: 8px;
        padding: 18px 16px;
        background: #111214;
        border: 1px solid #202226;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,.35);
        transition: transform .08s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
        text-align: left;
      }
      .feature-card:hover {
        transform: translateY(-2px);
        border-color: #ED1A3B;
        box-shadow: 0 16px 40px rgba(237,26,59,.15);
        background: #121419;
      }
      .feature-title {
        font-family: 'Oswald', sans-serif;
        font-size: 2rem;
        letter-spacing: .02em;
        color: #fff;
        margin: 0;
      }
      .feature-sub {
        margin: 0;
        
        color: #a6a6a6;
        font-size: 1.8rem;
      }
      .feature-cta {
        margin-top: 10px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        color: #ED1A3B;
      }
      .feature-cta::after {
        content: '→';
        font-size: 1rem;
        line-height: 1;
        transform: translateX(0);
        transition: transform .18s ease;
      }
      .feature-card:hover .feature-cta::after { transform: translateX(2px); }

      /* ===== Footer strip (optional) ===== */
      .foot-accent {
        height: 4px;
        background: linear-gradient(90deg, #ED1A3B, #9b0f25 60%, #ED1A3B);
        opacity: .9;
      }
    

      #profile {
  background:
    radial-gradient(900px 400px at 8% -10%, rgba(237,26,59,0.12), rgba(0,0,0,0)),
    linear-gradient(180deg, #000, #080808 60%, #000);
}

.app-background {
  background:  
    radial-gradient(900px 400px at 8% -10%, rgba(237,26,59,0.12), rgba(0,0,0,0)),
    linear-gradient(180deg, #000, #080808 60%, #000);
  background-size: cover;
}

/* Cards / surfaces */
.card-surface {
  background: #111214;
  border: 1px solid #202226;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,.45);
}

/* Header block */
.profile-head .title {
  font-family: 'Oswald', sans-serif;
  color: #ED1A3B;
  font-size: 1.9rem;
  margin: 0 0 6px 0;
}
.profile-head .subtitle {
  margin: 0;
  color: #bdbdbd;
}
.profile-head .meta {
  margin: 8px 0 16px;
  color: #a9a9a9;
}
.profile-head .meta span { color: #eaeaea; }

/* Avatar & upload */
.profile-img {
  text-align: center;
  padding: 24px;
}
.profile-img .avatar {
  width: 200px; height: 200px; object-fit: cover;
  border-radius: 16px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.upload-btn {
  margin-top: 14px;
  background: #ED1A3B;
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: filter .2s, transform .05s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.upload-btn:hover { filter: brightness(.95); }
.upload-btn:active { transform: translateY(1px); }

/* Tabs */
.profile-tabs {
  border-bottom: 1px solid #202226;
  margin-top: 12px;
}
.profile-tabs .nav-link {
  color: #c7c7c7;
  border: none;
  padding: 10px 14px;
  transition: color .18s, border-color .18s, background .18s;
}
.profile-tabs .nav-link:hover {
  color: #fff;
  background: #141518;
}
.profile-tabs .nav-link.active {
  color: #ED1A3B !important;
  background: transparent;
  border-bottom: 2px solid #ED1A3B;
}

/* Tab content card */
.profile-tab {
  margin-top: 12px;
}
.profile-tab label {
  color: #eaeaea;
  font-weight: 600;
}
.profile-tab p {
  margin: 0;
  color: #bdbdbd;
}

.email {
  font-weight: 100;
  color: white;
  font-size: 1.2rem;

}
/* Buttons */
.btn-accent {
  background: #ED1A3B;
  border: none;
  color: #fff !important;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 16px;
  transition: filter .2s, transform .05s, box-shadow .2s;
  box-shadow: 0 8px 26px rgba(237,26,59,.18);
}
.btn-accent:hover { filter: brightness(.96); }
.btn-accent:active { transform: translateY(1px); }

/* Quick links */
.profile-work {
  padding: 16px 16px 12px;
}
.profile-work .section-label {
  font-family: 'Oswald', sans-serif;
  color: #ED1A3B;
  margin: 0 0 8px 0;
  letter-spacing: .02em;
}
.link-accent {
  color: #ED1A3B;
  font-weight: 600;
  text-decoration: none;
}
.link-accent:hover { text-decoration: underline; }

/* Utilities */
.emp-profile { margin-top: 10px; }
.row.py-2 { border-bottom: 1px dashed #202226; }
.row.py-2:last-child { border-bottom: none; }

/* Responsive */
@media (max-width: 767.98px) {
  #profile { padding-top: 24px; }
  .profile-head .title { font-size: 1.6rem; }
  .profile-img .avatar { width: 160px; height: 160px; }
}

#lh-home{
  /* min-height:90vh;
  display:flex;
  align-items:center;

  background-attachment: fixed;
  overflow: hidden; */
  width: 100vw;
  display: grid;
  grid-template-columns: 58% 42%;
  grid-template-rows: 68% 32%;
  grid-template-areas:
    "menu preview"
    "menu info";
  min-height: 100vh;
  row-gap: 3;
  background:linear-gradient(to right, #410206, #000);
  overflow: hidden;
  height: calc(100svh - var(--nav-h));

}

#lh-home .lh-menu{
  /* list-style:none;
  margin: 0;
  margin-bottom: 0 !important; */
  grid-area: menu;
  margin: 0;
  padding: 2rem;
  position: relative;

}

:root { --nav-h: 8rem; }

.home-preview{
  display: grid;
  align-items: end;
 }

 /* html, body { height: 100%; overflow: hidden; }  lock the page */

.home-info{ 
  grid-area: info; 
}

#lh-home .lh-link{
  font-family: 'Knockout';
  /* crisp outline without ghost fill */
  color: transparent;
  text-transform: uppercase;
  -webkit-text-fill-color: transparent;
-webkit-text-stroke: 1px#fff; /* thinner = fewer artifacts */
  font-weight: 100;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
   font-size:150px;
    text-decoration: none !important;
  border-bottom: 0 !important;        /* for frameworks that use borders */
  background-image: none !important;  
          /* for fancy underline effects */
}

#lh-home .lh-menu::after{
  content:"";
  position: absolute;
  top:0;
  bottom:0;
  right:0;                          /* sit on the column boundary */
  width:3px;
  background: rgba(254, 252, 252, 0.25);/* your line color */
  pointer-events:none;
}

#lh-home .lh-link:hover,
#lh-home .lh-link:focus-visible{
  /* solid on hover: remove stroke so no inner lines remain */
  -webkit-text-stroke: 0 transparent;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

#lh-home .lh-menu > li{ margin: 0.4rem; }
#lh-home .lh-link{ margin:0; line-height:1; }  /* remove old link margin */

/* tiny screens: thinner stroke for legibility */
@media (max-width:480px){
  #lh-home .lh-link{ -webkit-text-stroke:2px #fff; }
}

/* non-WebKit fallback: if text-stroke unsupported, show white on hover only */
@supports not (-webkit-text-stroke: 1px #fff){
  #lh-home .lh-link{ color:#fff; opacity:.15; }
  #lh-home .lh-link:hover,
  #lh-home .lh-link:focus-visible{ opacity:1; }
}
.week-picker select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2rem; /* give space for custom arrow */
  background-image: none; /* remove the default triangle */
}
.week-picker {
  position: relative;
}
.week-picker::after {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #333;   /* pick color you like */
}

/* Add Form Section */
#add-form {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Montserrat', sans-serif;
}

#add-form h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
  font-weight: 600;
}

#add-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

#add-form .form-input {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.3s ease;
  color: black !important
}

#add-form label {
  color: #000;   /* make all labels black */
  font-weight: 500;  /* optional: make them a bit bolder */
}
#add-form select {
  appearance: none;        /* Remove default OS styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 10px center;
  background-size: 16px 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
  height: 55px;      
  color: black;      
}

/* ===== Admin Dashboard ===== */
#admin-dashboard {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px 40px;
  font-family: 'Montserrat', sans-serif;
}

#admin-dashboard .dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

#admin-dashboard h1 {
  font-size: 35px;
  margin: 0;
  color: #dfdcdc;
  font-weight: 400;
}


#admin-dashboard td {
  color: black;
}


#admin-dashboard .quick-actions .btn { margin-left: 8px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #e9eef3;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.kpi-title { font-size: 14px; color: #697386; margin-bottom: 6px; }
.kpi-value {
  font-size: 30px; font-weight: 700; color: #0f172a;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.kpi-actions { display: flex; gap: 8px; }

.panel {
  background: #fff;
  border: 1px solid #e9eef3;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e9eef3;
}
.panel-header h3 { margin: 0; font-weight: 600; color: #111; }

.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}
.table thead th { color: #475569; font-weight: 600; }
.table tbody tr:hover { background: #222; }
.table .row-actions .link { margin-right: 10px; color: #0ea5e9; text-decoration: none; }
.table .row-actions .link:hover { text-decoration: underline; }
.table .empty { text-align: center; color: #94a3b8; }

.legend {
  color: black !important;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
}
.badge-admin  { background: #fee2e2; color: #991b1b; }
.badge-user   { background: #dcfce7; color: #166534; }
.badge-coach  { background: #dbeafe; color: #1e3a8a; }

/* Buttons */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow .2s, transform .02s;
}
.btn:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: white;
  border-color: white;
}
.btn-primary:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); }

.btn-outline {
  font-size: 18px;
  letter-spacing: 1px;
  background: var(--brand);
  color: white;
  border-radius: 0;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}


.btn-small { padding: 8px 12px; font-size: 13px; }
/* Keep the option rows tidy */
#responses-stepper .options { display: grid; gap: 10px; }

/* Two columns: small control + flexible label */
#responses-stepper .option {
  display: grid !important;
  grid-template-columns: 20px 1fr !important;
  align-items: start;
  column-gap: 10px;
}
/* ===========================================
   Brand + font
   =========================================== */
@font-face {
  font-family: 'Knockout';
  src: url('/fonts/Knockout.woff2') format('woff2'); /* put your licensed file here */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root{
  --brand: #dc2626;        /* red 600 */
  --brand-700: #b91c1c;    /* red 700 */
  --ink: #0b0b0b;
  --ink-2: #161616;
  --ink-3: #222;
  --text: #fff;
  --muted: #9ca3af;
  --stroke: #2b2b2b;
}

#responses-stepper {
  font-family: 'Knockout', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

/* ===========================================
   Buttons + actions bar
   =========================================== */
.actions-bar{
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
}

.btn{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  border-radius: 12px;
  padding: 12px 18px;
  border: 1px solid var(--stroke);
  background: var(--brand);
  color: var(--text);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: transform .02s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); background: var(--brand-700)}
.btn:disabled{ opacity: .6; cursor: not-allowed; }

/* sizes */
.btn.btn-lg { padding: 14px 22px; }

/* themes */
.btn.btn-primary{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn.btn-primary:hover{ background: var(--brand-700); border-color: var(--brand-700); }

.btn.btn-outline{
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}
.btn.btn-outline:hover{ background: color-mix(in srgb, var(--brand) 12%, transparent); }

.btn.btn-ghost{
  background: #fff;
  border-color: #fff;
  color: #0f172a;
}
.btn.btn-ghost:hover{ background: #f2f2f2; }

/* focus ring */
.btn:focus-visible{
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 55%, transparent);
}

/* ===========================================
   Progress bar → red
   =========================================== */
#responses-stepper #progress-bar{ background: var(--brand); }

/* ===========================================
   Radios / Checkboxes → red accent
   =========================================== */
#responses-stepper .option input[type="checkbox"],
#responses-stepper .option input[type="radio"]{
  accent-color: var(--brand);
  width: 18px !important;
  height: 18px;
  display: inline-block !important;
  margin: 2px 8px 0 0;
  padding: 0 !important;
  float: none !important;
}

/* Keep the option layout tight */
#responses-stepper .options { display: grid; gap: 10px; }
#responses-stepper .option {
  display: grid !important;
  grid-template-columns: 20px 1fr !important;
  align-items: start;
  column-gap: 10px;
}
#responses-stepper .option-label{
  margin:0 !important; text-align:left !important; white-space:normal; word-break:break-word;
}

/* ===========================================
   Inputs (text/number/date/etc.) → dark fields
   =========================================== */
#responses-stepper input[type="text"],
#responses-stepper input[type="number"],
#responses-stepper input[type="email"],
#responses-stepper input[type="date"],
#responses-stepper textarea,
#responses-stepper select{
  background: var(--ink-2);
  color: #fff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
#responses-stepper input::placeholder,
#responses-stepper textarea::placeholder{ color: var(--muted); }

/* ===========================================
   Select (custom arrow, no purple triangles)
   =========================================== */
#responses-stepper select,
#responses-stepper .styled-select{
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-color: var(--ink-2);
  color: #fff;
  border: 1px solid var(--stroke);
  padding-right: 42px; /* room for arrow */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 22px 22px;
  line-height: 1.2;
}
#responses-stepper select::-ms-expand{ display:none; } /* old IE */
#responses-stepper select:focus{
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 40%, transparent);
  border-color: var(--brand);
}

/* If any global styles right-align labels, neutralize inside stepper */
#responses-stepper label{ width:auto; display:inline-block; text-align:left !important; }

.top-strip{
  display:grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap:12px;
  margin:8px 0 12px;
  align-items:start;
}


.tile-row{
  display:grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap:12px;
  margin:0 0 12px;
}


.card .tile{
  padding:10px;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
  height: 200px;
   display: flex;
  flex-direction: column;  
  align-items: center;     
  text-align: center;
  justify-content: center;
  gap: 4px;      
}


/* smaller texts */
.card h3{ margin:0 0 6px; font-size:13px; }
.emoji{ font-size:24px; line-height:1; }
.big{ font-size:18px; font-weight:700; margin-top:2px; color: black}
.sub{ font-size:11px; color:#666; letter-spacing:.05em; }
.muted-kcal{ color:#666; font-size:11px; margin-top:4px; }

/* force the donut to stay small */
#calDonut{
  display:block;
  width:120px !important;
  height:120px !important;
  margin:4px auto 0;
}
  
.cards, .tiles{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:10px;
  padding:10px;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
  height: 200px;
   display: flex;
  flex-direction: column;  
  align-items: center;     
  text-align: center;
  justify-content: center;
  gap: 4px;      
}

input[type=range] {
  accent-color: red;
}

/* Scope all styling to the builder page only */
#recipe-builder {
  --w-cal: 80px;   /* widened a bit */
  --w-name: 260px; /* widened a bit */
  --w-sel: 100px;  /* each dropdown a bit wider */
  --w-total: 110px;
  --w-act: 90px;
  --gap: 8px;
  --font: 12px;

  /* Colors – red/black theme */
  --bg: #0e0e11;
  --panel: #15161a;
  --border: #2a2c33;
  --text: #e7e7ea;
  --muted: #9aa0a6;
  --red: #e10600;
  --green: #09b66d;
  --blue: #4aa3ff;
  --orange: #ff9b73;
  --mint: #7de3c1;
}

#recipe-builder { background: var(--bg); color: var(--text); }
#recipe-builder .table-responsive .table { color: var(--text); }
#recipe-builder .table thead th { border-bottom: 1px solid var(--border); }
#recipe-builder .table td, #recipe-builder .table th { border-color: var(--border) !important; }

#recipe-builder .toolbar { position: sticky; top: 0; z-index: 5; background: var(--bg); }
#recipe-builder .btn-danger { background: var(--red); border-color: var(--red); }
#recipe-builder .btn-success { background: var(--green); border-color: var(--green); }
#recipe-builder .btn-secondary { background: #666; border-color: #666; }

#recipe-builder .row-wrapper { transform-origin: left top; will-change: transform; }
#recipe-builder .recipe-row {
  display: grid;
  grid-auto-flow: column;
  gap: var(--gap);
  align-items: center;
  width: max-content;
  font-size: var(--font);
}

#recipe-builder .col-cal   { width: var(--w-cal); }
#recipe-builder .col-name  { width: var(--w-name); }
#recipe-builder .col-sel   { width: var(--w-sel); }
#recipe-builder .col-total { width: var(--w-total); }
#recipe-builder .col-act   { width: var(--w-act); }

#recipe-builder .label {
  font-size: 10px;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 3px;
  white-space: nowrap;
}

#recipe-builder .recipe-input,
#recipe-builder .recipe-select {
  height: 30px;
  padding: 2px 26px 2px 6px; /* leave room for caret */
  font-size: 12px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* “caret only” look: empty placeholder + custom arrow */
#recipe-builder .recipe-select {
  background-image:
     linear-gradient(45deg, transparent 50%, var(--text) 50%),
     linear-gradient(135deg, var(--text) 50%, transparent 50%),
     linear-gradient(to right, var(--border), var(--border));
  background-position:
     calc(100% - 16px) 11px,
     calc(100% - 11px) 11px,
     calc(100% - 26px) 50%;
  background-size: 5px 5px, 5px 5px, 1px 60%;
  background-repeat: no-repeat;
  appearance: none; /* hide native arrow */
}

/* pills above selects */
#recipe-builder .chip {
  display: inline-block;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  margin-bottom: 4px;
  background: #222;
  border: 1px solid var(--border);
  color: var(--text);
}
#recipe-builder .chip-protein { box-shadow: inset 0 0 0 1px var(--blue); }
#recipe-builder .chip-side    { box-shadow: inset 0 0 0 1px var(--orange); }
#recipe-builder .chip-lchn    { box-shadow: inset 0 0 0 1px var(--mint); }

#recipe-builder .total-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 12px;
  text-align: center;
  background: var(--panel);
}

#recipe-builder .btn-xxs {
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.1;
  border-radius: 8px;
}
#recipe-builder .btn-outline-danger {
  color: #ff6868; border-color: #ff6868; background: transparent;
}
#recipe-builder .btn-outline-danger:hover {
  color: #fff; background: #ff6868; border-color: #ff6868;
}
#recipe-builder .total-box.over-target{
  border-color:#ff4d4f;
  background:#3a0a0a;
  color:#ffb3b3;
}
#recipe-builder .total-warn{
  margin-top:4px;
  font-size:11px;
  color:#ff6b6b;
}

@media (max-width: 768px) {
  /* Reset changes for mobile layout */
  body, html {
    margin: 0;
    padding: 0;
    height: 100%;
  }

  #lh-home {
    display: flex;  /* Stacked vertically on mobile */
    height: 100%;    /* Height adjusts based on content */
    min-height: 100vh; /* No fixed height */
    padding: 1rem;   /* Padding for spacing */
    background: linear-gradient(to right, #410206, #000); /* You may want to tweak or remove this */
    height: calc(100vh - var(--nav-h)); /* Ensure full view height */
    padding-bottom: 0; /* Remove padding if it's causing the extra black space */
    overflow: hidden; /* Prevent overflow */
  }

  .lh-menu {
    padding: 0 1rem; /* Ensuring padding isn't too large */
    margin: 0;
    position: relative;
    justify-content: center;
    display: flex;
    flex-direction: column; /* Stack menu items vertically */
    gap: 1rem;  /* Space between items */
  }

  /* Hide preview section on mobile */
  .home-preview {
    display: none !important; 
  }

  /* Show info section and adjust layout */
  .home-info {
    display: block;
    padding: 1rem 1.25rem;
    border-top: 0;
    text-align: center;  /* Center text */
  }

  /* Link styling adjustment */
  .lh-link {
    font-size: clamp(5rem, 12vw, 8rem) !important;  /* Restore font size for mobile */
    line-height: 1.05;
    color: white !important;
    text-align: start;
    -webkit-text-stroke: 0 !important;
    -webkit-text-fill-color: white !important;
    justify-content: center;
    /* white-space: nowrap; Prevents text from breaking */
    overflow: hidden; /* Prevent overflow */
    /* text-overflow: ellipsis; Add ellipsis if text is too long */
    width: 100%;  /* Ensure it takes up the full width */
    display: inline-block; /* Make it behave like a block element */
    word-break: break-word; /* Allow text to wrap if needed */
  }

  /* Description visibility and layout */
  .preview-text {
    position: static; 
    opacity: 1 !important;
    display: block;
    gap: .5rem;
    text-align: center; 
  }

  .preview-text .preview-desc {
    font-size: 1.4rem; /* Adjust description font size */
    display: none ;
  }
}

