:root{
  --bg:#010506;
  --bg-2:#02090b;
  --bg-3:#071116;

  --card:#071015;
  --card-2:#0a1419;
  --card-3:#0d181d;

  --text:#fffaf0;
  --text-strong:#ffffff;
  --muted:#d8d1c2;

  --line:rgba(255,250,240,.10);
  --line-strong:rgba(255,250,240,.18);

  --accent:#fffaf0;
  --accent-soft:#e8e0cf;

  --open-bg:rgba(173, 214, 146, .10);
  --open-border:rgba(173, 214, 146, .28);
  --open-text:#e8f4dc;

  --closed-bg:rgba(138, 151, 168, .12);
  --closed-border:rgba(138, 151, 168, .26);
  --closed-text:#d6deea;

  --yellow:#effb30;

  --shadow:0 18px 48px rgba(0,0,0,.42);
  --shadow-soft:0 10px 28px rgba(0,0,0,.28);

  --radius-xl:26px;
  --radius-lg:20px;
  --radius-md:16px;
  --radius-sm:12px;

  --content-width:1180px;
  --auth-width:520px;
}

*{
  box-sizing:border-box;
}

html{
  margin:0;
  padding:0;
  min-height:100%;
  background:var(--bg);
  overflow-x:hidden;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}

body{
  margin:0;
  padding:0;
  min-height:100vh;
  min-height:100dvh;
  overflow-x:hidden;
  background:
    radial-gradient(900px 280px at 50% -10%, rgba(255,250,240,.025), transparent 60%),
    linear-gradient(180deg, #010506 0%, #02090b 46%, #000304 100%);
  background-color:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.45;
  position:relative;
}

body::before,
body::after{
  display:none !important;
  content:none !important;
}

body.modal-open{
  overflow:hidden;
}

a{
  color:var(--accent);
  text-decoration:none;
}

a:hover{
  color:#ffffff;
  text-decoration:none;
}

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

button,
input,
select,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

.topbar,
main,
.container{
  position:relative;
  z-index:1;
}

main{
  min-height:calc(100dvh - 84px);
  padding:22px 0 38px;
}

.container{
  width:min(var(--content-width), calc(100% - 40px));
  margin:0 auto;
}

/* =========================
   TOPBAR
========================= */

.topbar{
  background:
    radial-gradient(760px 180px at 15% 0%, rgba(163,177,230,.08), transparent 55%),
    linear-gradient(180deg, #020607, #000203);
  color:#fff;
  border-bottom:1px solid rgba(255,250,240,.08);
  box-shadow:0 14px 34px rgba(0,0,0,.34);
}

.topbar .container{
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:12px 0;
}

.brand{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  flex-shrink:0;
}

.brand-logo-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.brand-logo{
  display:block;
  width:250px;
  height:auto;
  object-fit:contain;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,250,240,.10);
  background:rgba(255,255,255,.02);
  color:rgba(248,251,248,.96);
  font-weight:800;
  line-height:1;
  transition:
    background .15s ease,
    border-color .15s ease,
    transform .12s ease,
    box-shadow .15s ease;
}

.nav-link:hover{
  color:#ffffff;
  background:rgba(255,255,255,.05);
  border-color:rgba(255,250,240,.16);
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(0,0,0,.20);
}

.nav-divider{
  width:1px;
  height:22px;
  background:rgba(255,250,240,.10);
  margin:0 2px;
}

.user-pill{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,250,240,.08);
  color:#ffffff;
  font-weight:900;
  line-height:1;
}

.logout-form{
  margin:0;
}

.linklike{
  background:none;
  border:0;
  padding:0;
  margin:0;
  color:rgba(255,255,255,.88);
  cursor:pointer;
  font:inherit;
}

.linklike:hover{
  color:#fff;
}

/* =========================
   BASE
========================= */

.card{
  background:
    radial-gradient(520px 180px at 20% 0%, rgba(163,177,230,.08), transparent 52%),
    linear-gradient(180deg, rgba(8,14,18,.98), rgba(4,8,11,.99));
  border:1px solid rgba(255,250,240,.10);
  border-radius:var(--radius-lg);
  padding:18px;
  box-shadow:var(--shadow);
}

.h1{
  font-size:22px;
  margin:0 0 10px 0;
  letter-spacing:.2px;
  color:var(--text-strong);
  font-weight:900;
}

.sub{
  color:var(--muted);
  margin:0;
}

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

.hr{
  height:1px;
  border:0;
  background:rgba(255,250,240,.08);
  margin:14px 0;
}

.input{
  height:44px;
  padding:10px 14px;
  border:1px solid rgba(255,250,240,.14);
  border-radius:14px;
  background:rgba(4,9,12,.98);
  color:#f2f7f3;
  outline:none;
  min-width:160px;
  transition:border-color .12s ease, box-shadow .12s ease;
}

.input:focus{
  border-color:rgba(255,250,240,.24);
  box-shadow:0 0 0 3px rgba(255,250,240,.05);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid rgba(255,250,240,.12);
  background:rgba(255,255,255,.03);
  cursor:pointer;
  font-weight:900;
  color:var(--text);
  transition:background .12s ease, border-color .12s ease, transform .12s ease;
}

.btn:hover{
  background:rgba(255,255,255,.05);
  transform:translateY(-1px);
}

.btn.primary{
  background:linear-gradient(180deg, #fffaf0, #ddd5c6);
  color:#020607;
  border-color:rgba(255,250,240,.26);
  box-shadow:0 10px 22px rgba(0,0,0,.16);
}

.btn.primary:hover{
  background:linear-gradient(180deg, #ffffff, #e8e0cf);
}

.btn.ghost{
  background:rgba(255,255,255,.02);
  border-color:rgba(255,250,240,.12);
  color:#eff5ef;
}

.btn.ghost:hover{
  background:rgba(255,255,255,.05);
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}

/* =========================
   LOGIN PAGE
   НЕ ЧІПАЄМО, ЗАЛИШАЄМО АКУРАТНО
========================= */

.auth-page{
  min-height:calc(100vh - 150px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 0 18px;
}

.auth-card{
  width:min(100%, var(--auth-width));
  background:
    radial-gradient(520px 180px at 20% 0%, rgba(163,177,230,.12), transparent 50%),
    linear-gradient(180deg, rgba(10,18,22,.97), rgba(7,12,15,.99));
  border:1px solid rgba(255,250,240,.12);
  border-radius:26px;
  padding:26px 24px 22px;
  box-shadow:
    0 24px 60px rgba(0,0,0,.24),
    0 8px 20px rgba(0,0,0,.14);
}

.auth-title{
  margin:0 0 6px 0;
  font-size:20px;
  color:var(--text-strong);
  font-weight:900;
}

.auth-sub{
  margin:0 0 16px 0;
  color:var(--muted);
}

.auth-form{
  margin-top:2px;
}

.auth-field{
  margin-bottom:14px;
}

.auth-label{
  display:block;
  margin-bottom:6px;
  color:var(--text);
  font-weight:800;
  font-size:15px;
}

.auth-submit{
  min-width:120px;
  margin-top:4px;
}

/* =========================
   ORDER PAGE
========================= */

.week-summary-card{
  border:1px solid rgba(239,251,48,.28) !important;
  box-shadow:
    0 0 0 1px rgba(239,251,48,.05),
    0 18px 44px rgba(0,0,0,.24) !important;
}

.week-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

details.day-card{
  border-radius:18px;
  border:1px solid rgba(239,251,48,.24);
  background:linear-gradient(180deg, rgba(7,14,18,.98), rgba(4,9,12,.99));
  box-shadow:
    0 0 0 1px rgba(239,251,48,.04),
    0 14px 36px rgba(0,0,0,.18);
  overflow:hidden;
}

details.day-card[open]{
  border-color:rgba(239,251,48,.34);
  box-shadow:
    0 0 0 1px rgba(239,251,48,.08),
    0 0 18px rgba(239,251,48,.03),
    0 16px 40px rgba(0,0,0,.20);
}

details.day-card.is-closed{
  opacity:.84;
}

details.day-card > summary{
  list-style:none;
  cursor:pointer;
  padding:16px 18px;
  background:linear-gradient(180deg, rgba(239,251,48,.03), rgba(255,255,255,0));
}

details.day-card > summary::-webkit-details-marker{
  display:none;
}

.summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.summary-left{
  display:flex;
  align-items:baseline;
  gap:14px;
  flex-wrap:wrap;
  min-width:0;
}

.day-title{
  font-size:19px;
  font-weight:900;
  color:var(--text-strong);
  letter-spacing:.2px;
}

.day-sub{
  color:#d8d1c2;
  font-weight:800;
}

.day-summary-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:8px;
  min-width:100px;
  flex-shrink:0;
}

.day-date{
  font-weight:900;
  font-size:16px;
  color:rgba(242,247,243,.88);
  line-height:1;
  text-align:right;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:6px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
  line-height:1;
  white-space:nowrap;
}

.badge.open{
  background:var(--open-bg);
  color:var(--open-text);
  border:1px solid var(--open-border);
  box-shadow:0 0 0 1px rgba(173,214,146,.05);
}

.badge.closed{
  background:var(--closed-bg);
  color:var(--closed-text);
  border:1px solid var(--closed-border);
  box-shadow:0 0 0 1px rgba(138,151,168,.04);
}

.day-body{
  padding:0 18px 18px;
}

.day-deadline{
  margin-bottom:8px;
}

.current-choice{
  margin-bottom:14px;
}

.blocks{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.block{
  border:1px solid rgba(239,251,48,.22);
  border-radius:16px;
  background:rgba(6,11,14,.94);
  overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(239,251,48,.03);
}

.block-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid rgba(239,251,48,.18);
  background:linear-gradient(180deg, rgba(12,20,24,.96), rgba(8,13,16,.92));
}

.block-title{
  font-weight:900;
  letter-spacing:.2px;
  color:#fffaf0;
}

.block-head-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-left:auto;
}

.menu-subtitle{
  padding:12px 14px 0;
  font-size:15px;
  font-weight:900;
  color:#fffaf0;
}

.dish-grid{
  padding:12px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}

.tile-wrap{
  position:relative;
  min-width:0;
}

.pick{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.tile{
  display:block;
  position:relative;
  border-radius:14px;
  border:1px solid rgba(239,251,48,.18);
  padding:14px 56px 14px 14px;
  background:rgba(3,7,9,.98);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 2px 12px rgba(0,0,0,.14);
  cursor:pointer;
  transition:transform .06s ease, box-shadow .06s ease, border-color .06s ease, background .06s ease;
  min-height:82px;
}

.tile:hover{
  transform:translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 10px 22px rgba(0,0,0,.20);
  background:rgba(8,13,16,.98);
  border-color:rgba(239,251,48,.28);
}

.pick:checked + .tile{
  border-color:rgba(239,251,48,.70);
  background:rgba(10,17,21,.98);
  box-shadow:
    0 0 0 2px rgba(239,251,48,.08),
    0 0 18px rgba(239,251,48,.04),
    0 12px 28px rgba(0,0,0,.18);
}

.pick:disabled + .tile{
  opacity:.62;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.tile-name{
  display:block;
  font-weight:900;
  color:rgba(242,247,243,.98);
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.tile-desc{
  margin-top:6px;
  color:rgba(216,209,194,.90);
  font-size:13px;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.empty-note{
  padding:12px;
  color:var(--muted);
}

.info-btn{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,250,240,.20);
  background:#fffaf0;
  color:rgba(7,17,22,.96);
  font-weight:900;
  font-size:18px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 14px rgba(0,0,0,.12);
  z-index:5;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}

.info-btn:hover{
  background:#ffffff;
  border-color:rgba(255,250,240,.34);
  transform:scale(1.03);
}

.day-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:14px;
}

.btn-save-day{
  min-width:136px;
}

/* =========================
   SUMMARY PAGE
========================= */

.card > form{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin:10px 0 14px;
}

.card > form > *{
  margin:0;
}

.table-scroll{
  width:100%;
  overflow:auto;
  border-radius:16px;
  border:1px solid rgba(255,250,240,.08);
  background:#030709;
}

.table,
.card table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,250,240,.12);
  background:#040a0d;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 8px 20px rgba(0,0,0,.14);
}

.table th,
.table td,
.card table th,
.card table td{
  text-align:left;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,250,240,.06);
  vertical-align:top;
  color:#f2f7f3;
  word-break:break-word;
}

.table th,
.card table th{
  background:linear-gradient(180deg, #0d1418 0%, #080d10 100%);
  font-weight:900;
  color:#ffffff;
  border-bottom:1px solid rgba(255,250,240,.10);
}

.table tbody tr:nth-child(even),
.card table tbody tr:nth-child(even){
  background:#060d10;
}

.table tbody tr:hover,
.card table tbody tr:hover{
  background:#0b1317;
}

.table tr:last-child td,
.card table tr:last-child td{
  border-bottom:0;
}

.wrap{
  white-space:normal;
  word-break:break-word;
}

.section-title{
  font-size:18px;
  font-weight:900;
  margin:14px 0 10px;
  color:#ffffff;
  letter-spacing:.2px;
}

/* =========================
   FINAL OVERRIDE:
   HISTORY + TOP BUTTONS YELLOW OUTLINE
========================= */

/* верхні кнопки */
.nav-link,
.user-pill,
.topbar .nav-link,
.topbar .user-pill,
.topbar .nav a,
.topbar .nav button,
.logout-form button{
  border:1px solid rgba(239,251,48,.28) !important;
  box-shadow:0 0 0 1px rgba(239,251,48,.04) inset !important;
}

.nav-link:hover,
.topbar .nav-link:hover,
.topbar .nav a:hover,
.logout-form button:hover{
  border-color:rgba(239,251,48,.50) !important;
  background:rgba(239,251,48,.06) !important;
}

.user-pill{
  border-color:rgba(239,251,48,.28) !important;
}

/* історія замовлень */
.history-page{
  width:min(920px, 100%);
  margin:0 auto;
}

.history-head{
  margin-bottom:18px;
}

.history-title{
  margin:0 0 8px 0;
  font-size:20px;
  font-weight:900;
  color:#ffffff;
}

.history-sub{
  margin:0;
  color:var(--muted);
}

.history-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

details.history-card{
  border:1px solid rgba(239,251,48,.24) !important;
  border-radius:18px;
  background:
    radial-gradient(420px 120px at 18% 0%, rgba(163,177,230,.06), transparent 55%),
    linear-gradient(180deg, rgba(8,14,18,.98), rgba(4,8,11,.99));
  overflow:hidden;
  box-shadow:
    0 0 0 1px rgba(239,251,48,.04),
    0 12px 30px rgba(0,0,0,.18) !important;
}

details.history-card:hover{
  border-color:rgba(239,251,48,.38) !important;
}

details.history-card[open]{
  border-color:#effb30 !important;
  box-shadow:
    0 0 0 1px rgba(239,251,48,.08),
    0 0 18px rgba(239,251,48,.04),
    0 16px 34px rgba(0,0,0,.22) !important;
}

details.history-card > summary{
  list-style:none;
  cursor:pointer;
  padding:16px 18px;
  background:linear-gradient(180deg, rgba(239,251,48,.03), rgba(255,255,255,0));
}

details.history-card > summary::-webkit-details-marker{
  display:none;
}

.history-card__summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.history-card__left{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.history-card__weekday{
  font-size:18px;
  font-weight:900;
  color:#ffffff;
  line-height:1.15;
}

.history-card__date{
  color:var(--muted);
  font-weight:800;
  line-height:1.15;
}

.history-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(239,251,48,.26) !important;
  background:rgba(239,251,48,.08) !important;
  color:#fffaf0 !important;
  font-weight:900;
  font-size:13px;
  white-space:nowrap;
  box-shadow:0 0 0 1px rgba(239,251,48,.04) inset;
}

.history-card__body{
  padding:0 18px 18px;
  border-top:1px solid rgba(239,251,48,.14) !important;
}

.history-items{
  list-style:none;
  padding:14px 0 0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.history-item{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(239,251,48,.14);
  background:rgba(255,255,255,.02);
}

.history-item__name{
  font-weight:900;
  color:#ffffff;
  line-height:1.35;
}

.history-item__meta{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}

.history-empty{
  padding:22px;
  text-align:center;
  color:var(--muted);
  border:1px solid rgba(239,251,48,.18);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(8,14,18,.98), rgba(4,8,11,.99));
}

@media (max-width: 640px){
  .history-card__summary{
    align-items:flex-start;
    flex-direction:column;
  }
}
 

/* =========================
   SAVE TOAST
========================= */

.save-toast-wrap{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1200;
  width:min(400px, calc(100vw - 24px));
}

.save-toast-wrap[hidden]{
  display:none;
}

.save-toast{
  border:1px solid rgba(255,250,240,.16);
  background:rgba(8,13,16,.96);
  color:#fffaf0;
  border-radius:18px;
  box-shadow:
    0 0 0 1px rgba(255,250,240,.05),
    0 18px 40px rgba(0,0,0,.34);
  padding:14px 14px 12px;
  backdrop-filter:blur(10px);
}

.save-toast-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.save-toast-title{
  font-size:16px;
  font-weight:900;
  color:#fffaf0;
}

.save-toast-close{
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid rgba(255,250,240,.18);
  background:rgba(255,255,255,.04);
  color:#fffaf0;
  font-size:18px;
  line-height:1;
}

.save-toast-close:hover{
  background:rgba(255,255,255,.08);
}

.save-toast-sub{
  font-size:13px;
  color:#d8d1c2;
  margin-bottom:8px;
}

.save-toast-list{
  margin:0;
  padding-left:18px;
}

.save-toast-list li{
  margin:0 0 4px 0;
  line-height:1.35;
}

/* =========================
   DISH MODAL
========================= */

.dish-modal[hidden]{
  display:none;
}

.dish-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.dish-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(1,4,5,.80);
  backdrop-filter:blur(4px);
}

.dish-modal__dialog{
  position:relative;
  width:min(1180px, 96vw);
  max-height:92vh;
  border-radius:24px;
  border:1px solid rgba(255,250,240,.14);
  background:
    radial-gradient(900px 260px at 18% 0%, rgba(163,177,230,.12), transparent 56%),
    rgba(8,15,18,.98);
  box-shadow:0 30px 80px rgba(0,0,0,.32);
  overflow:hidden;
  z-index:2;
}

.dish-modal__close{
  position:absolute;
  top:16px;
  right:16px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,250,240,.20);
  background:#fffaf0;
  color:rgba(7,17,22,.96);
  font-size:22px;
  font-weight:900;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:3;
}

.dish-modal__close:hover{
  background:#ffffff;
}

.dish-modal__content{
  display:grid;
  grid-template-columns:480px 1fr;
  gap:0;
  min-height:420px;
  max-height:92vh;
}

.dish-modal__media{
  border-right:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px;
}

.dish-modal__media[hidden]{
  display:none;
}

.dish-modal__media img{
  width:100%;
  max-width:420px;
  max-height:420px;
  object-fit:cover;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 16px 34px rgba(0,0,0,.24);
  cursor:zoom-in;
  transition:transform .12s ease, box-shadow .12s ease;
}

.dish-modal__media img:hover{
  transform:scale(1.015);
  box-shadow:0 20px 40px rgba(0,0,0,.30);
}

.dish-modal__body{
  padding:28px 28px 24px;
  overflow:auto;
}

.dish-modal__title{
  margin:0 0 12px 0;
  font-size:30px;
  line-height:1.18;
  font-weight:900;
  color:#ffffff;
}

.dish-modal__desc{
  color:var(--muted);
  margin-bottom:18px;
  line-height:1.55;
  font-size:16px;
}

.dish-modal__section-title{
  font-size:17px;
  font-weight:900;
  color:#ffffff;
  margin-bottom:12px;
}

.dish-modal__ingredients{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.dish-modal__ingredients li{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:rgba(242,247,243,.94);
  font-weight:800;
  font-size:15px;
}

.dish-modal__empty{
  color:var(--muted);
  font-size:15px;
}

/* =========================
   IMAGE LIGHTBOX
========================= */

.image-lightbox[hidden]{
  display:none;
}

.image-lightbox{
  position:fixed;
  inset:0;
  z-index:1100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.image-lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.88);
  backdrop-filter:blur(4px);
}

.image-lightbox__dialog{
  position:relative;
  z-index:2;
  width:min(1500px, 96vw);
  height:min(92vh, 1000px);
  display:flex;
  align-items:center;
  justify-content:center;
}

.image-lightbox__close{
  position:absolute;
  top:0;
  right:0;
  transform:translateY(-54px);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:#fffaf0;
  color:#081116;
  font-size:24px;
  font-weight:900;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:3;
}

.image-lightbox__close:hover{
  background:#ffffff;
}

.image-lightbox__img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 24px 60px rgba(0,0,0,.36);
  background:#081116;
}

@media (max-width: 900px){
  .dish-modal__dialog{
    width:min(96vw, 96vw);
  }

  .dish-modal__content{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .dish-modal__media{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.08);
    padding:18px;
  }

  .dish-modal__media img{
    max-width:100%;
    max-height:320px;
  }

  .dish-modal__body{
    padding:20px 18px 18px;
  }

  .dish-modal__title{
    font-size:24px;
  }
}

@media (max-width: 640px){
  .dish-modal{
    padding:10px;
  }

  .dish-modal__dialog{
    width:96vw;
    max-height:94vh;
    border-radius:20px;
  }

  .dish-modal__content{
    min-height:auto;
  }

  .dish-modal__body{
    padding:18px 14px 16px;
  }

  .dish-modal__title{
    font-size:20px;
  }

  .dish-modal__desc{
    font-size:14px;
  }

  .dish-modal__ingredients li{
    font-size:14px;
    padding:8px 12px;
  }

  .image-lightbox{
    padding:10px;
  }

  .image-lightbox__dialog{
    width:96vw;
    height:90vh;
  }

  .image-lightbox__close{
    transform:translateY(-48px);
    width:40px;
    height:40px;
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px){
  .dish-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .brand-logo{
    width:220px;
  }

  .dish-modal__content{
    grid-template-columns:1fr;
  }

  .dish-modal__media{
    border-right:0;
    border-bottom:1px solid rgba(255,250,240,.08);
  }
}

@media (max-width: 640px){
  .container{
    width:min(var(--content-width), calc(100% - 20px));
  }

  .topbar .container{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    min-height:auto;
  }

  .nav{
    justify-content:flex-start;
    width:100%;
    gap:8px;
  }

  .brand-logo{
    width:180px;
  }

  .card{
    padding:14px;
    border-radius:16px;
  }

  .h1{
    font-size:18px;
  }

  .summary-row{
    align-items:flex-start;
  }

  .summary-left{
    gap:6px;
    flex-direction:column;
    align-items:flex-start;
  }

  .day-summary-right{
    min-width:auto;
    gap:6px;
  }

  .day-date{
    font-size:14px;
  }

  .day-title{
    font-size:17px;
  }

  .block-head{
    flex-direction:column;
    align-items:stretch;
  }

  .block-head-actions{
    margin-left:0;
    width:100%;
  }

  .dish-grid{
    grid-template-columns:1fr;
    padding:10px;
    gap:8px;
  }

  .tile{
    min-height:auto;
    padding:14px 48px 14px 12px;
  }

  .info-btn{
    width:30px;
    height:30px;
    font-size:16px;
  }

  .day-actions{
    justify-content:stretch;
  }

  .btn-save-day{
    width:100%;
  }

  .history-card__summary{
    align-items:flex-start;
    flex-direction:column;
  }

  .save-toast-wrap{
    left:10px;
    right:10px;
    bottom:10px;
    width:auto;
  }

  .dish-modal{
    padding:10px;
  }

  .dish-modal__dialog{
    width:96vw;
  }

  .dish-modal__body{
    padding:18px 14px 16px;
  }

  .dish-modal__title{
    font-size:18px;
  }
}

@media (max-width: 520px){
  .nav-link,
  .user-pill{
    min-height:34px;
    padding:7px 11px;
    font-size:13px;
  }

  .brand-logo{
    width:160px;
  }

  .input{
    width:100%;
  }

  .btn{
    width:100%;
  }

  .card > form{
    align-items:stretch;
  }

  .card > form > *{
    width:100%;
  }
}

.nav-link-disabled{
  pointer-events:none;
  cursor:default;
  opacity:.55;
}

.day-date-wrap{
  display:flex;
  align-items:center;
  gap:8px;
}

.day-saved-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border-radius:999px;
  border:1px solid rgba(239,251,48,.34);
  background:rgba(239,251,48,.10);
  color:#effb30;
  font-size:13px;
  font-weight:900;
  line-height:1;
  box-shadow:0 0 0 1px rgba(239,251,48,.04) inset;
}

.tile-name{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.vegan-inline-icon{
  width:30px;
  height:30px;
  min-width:30px;
  min-height:30px;
  object-fit:contain;
  display:inline-block;
  vertical-align:middle;
  margin-left:4px;
  transform:translateY(-1px);
}

/* =========================
   FEEDBACK
========================= */

.topbar-right{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.feedback-fab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(239,251,48,.24);
  background:rgba(8,15,18,.96);
  color:#fffaf0;
  font-weight:900;
  cursor:pointer;
  box-shadow:
    0 0 0 1px rgba(239,251,48,.04) inset,
    0 10px 24px rgba(0,0,0,.22);
  transition:background .12s ease, border-color .12s ease, transform .12s ease;
}

.feedback-fab:hover{
  background:rgba(239,251,48,.07);
  border-color:rgba(239,251,48,.40);
  transform:translateY(-1px);
}

.feedback-fab-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:rgba(239,251,48,.12);
  color:#effb30;
  font-size:14px;
  line-height:1;
}

.feedback-fab-text{
  line-height:1;
}

.nav-link-feedback-list{
  border-color:rgba(239,251,48,.24) !important;
  box-shadow:0 0 0 1px rgba(239,251,48,.04) inset !important;
}

.feedback-modal[hidden]{
  display:none;
}

.feedback-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.feedback-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(1,4,5,.78);
  backdrop-filter:blur(3px);
}

.feedback-modal-dialog{
  position:relative;
  z-index:2;
  width:min(560px, 96vw);
  border-radius:22px;
  border:1px solid rgba(239,251,48,.16);
  background:
    radial-gradient(700px 240px at 18% 0%, rgba(163,177,230,.12), transparent 56%),
    rgba(8,15,18,.98);
  box-shadow:0 30px 80px rgba(0,0,0,.30);
  padding:24px 22px 20px;
}

.feedback-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(255,250,240,.20);
  background:#fffaf0;
  color:rgba(7,17,22,.96);
  font-size:20px;
  font-weight:900;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.feedback-modal-title{
  font-size:22px;
  font-weight:900;
  color:#ffffff;
  line-height:1.25;
  margin-bottom:8px;
  padding-right:44px;
}

.feedback-modal-subtitle{
  color:var(--muted);
  line-height:1.5;
  margin-bottom:16px;
}

.feedback-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.feedback-textarea{
  width:100%;
  min-height:160px;
  resize:vertical;
  border-radius:16px;
  border:1px solid rgba(255,250,240,.14);
  background:rgba(4,9,12,.98);
  color:#f2f7f3;
  padding:14px 16px;
  outline:none;
  font:inherit;
  line-height:1.5;
}

.feedback-textarea:focus{
  border-color:rgba(239,251,48,.24);
  box-shadow:0 0 0 3px rgba(239,251,48,.05);
}

.feedback-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.feedback-success,
.feedback-error{
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  line-height:1.4;
}

.feedback-success{
  border:1px solid rgba(173,214,146,.25);
  background:rgba(173,214,146,.09);
  color:#e7f4dc;
}

.feedback-error{
  border:1px solid rgba(255,160,160,.22);
  background:rgba(255,160,160,.08);
  color:#ffdada;
}

/* =========================
   FEEDBACK MESSAGES PAGE
========================= */

.messages-page{
  width:min(980px, 100%);
  margin:0 auto;
}

.messages-page-card{
  padding:20px;
}

.messages-page-head{
  margin-bottom:16px;
}

.messages-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.message-card{
  border:1px solid rgba(255,250,240,.10);
  border-radius:18px;
  background:
    radial-gradient(420px 120px at 18% 0%, rgba(163,177,230,.06), transparent 55%),
    linear-gradient(180deg, rgba(8,14,18,.98), rgba(4,8,11,.99));
  padding:16px 16px 14px;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}

.message-card.is-unread{
  border-color:rgba(239,251,48,.24);
  box-shadow:
    0 0 0 1px rgba(239,251,48,.04),
    0 12px 30px rgba(0,0,0,.18);
}

.message-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:8px;
}

.message-author{
  font-size:17px;
  font-weight:900;
  color:#ffffff;
  line-height:1.25;
}

.message-date{
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}

.message-meta{
  color:var(--muted);
  font-size:13px;
  margin-bottom:10px;
}

.message-text{
  color:#f2f7f3;
  line-height:1.6;
  font-size:15px;
  white-space:normal;
  word-break:break-word;
}

.message-status{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}

.message-status.read{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,250,240,.10);
  color:#e5ddd0;
}

.message-status.unread{
  background:rgba(239,251,48,.10);
  border:1px solid rgba(239,251,48,.24);
  color:#fffaf0;
}

.empty-messages{
  border:1px solid rgba(255,250,240,.10);
  border-radius:18px;
  padding:22px;
  text-align:center;
  color:var(--muted);
  background:linear-gradient(180deg, rgba(8,14,18,.98), rgba(4,8,11,.99));
}

@media (max-width: 900px){
  .topbar-right{
    width:100%;
    align-items:flex-start;
    justify-content:flex-start;
    flex-direction:column;
  }
}

@media (max-width: 640px){
  .feedback-fab{
    width:100%;
    justify-content:center;
  }

  .feedback-modal{
    padding:10px;
  }

  .feedback-modal-dialog{
    width:96vw;
    padding:18px 14px 16px;
  }

  .feedback-modal-title{
    font-size:18px;
  }

  .feedback-form-actions{
    justify-content:stretch;
  }

  .feedback-form-actions .btn{
    width:100%;
  }

  .message-card-top{
    flex-direction:column;
    gap:6px;
  }

  .message-date{
    white-space:normal;
  }
}

.feedback-fab-corner{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:1100;
}

.feedback-fab-corner{
  position:fixed;
  top:92px;
  right:28px;
  left:auto;
  bottom:auto;
  z-index:1100;
}

@media (max-width: 640px){
  .feedback-fab-corner{
    position:static;
    display:flex;
    width:calc(100% - 24px);
    margin:18px auto 28px;
    justify-content:center;
    padding:10px 14px;
    min-height:42px;
    border-radius:16px;
  }

  .feedback-fab-text{
    font-size:15px;
  }

  .feedback-fab-icon{
    width:20px;
    height:20px;
    font-size:13px;
  }
}

.feedback-fab-corner{
  display:none !important;
}
