/* =========================================================
   StoveHop — https://stovehop.com
   Clean, responsive homepage design inspired by reference
   ========================================================= */

:root {
  --bg-hero: #f9f2ea;
  --bg-page: #ffffff;
  --brand-orange: #1e6b38;
  --brand-orange-hover: #2e8544;
  --brand-rust: #1e6b38;
  --brand-rust-hover: #2e8544;
  --btn-espresso: #0b3319;
  --btn-espresso-hover: #061f0f;
  --text-dark: #231914;
  --text-muted: #6c615b;
  --border-soft: #e3dbd2;
  --shadow-soft: 0 4px 18px rgba(45, 22, 10, 0.07);
  --shadow-card: 0 2px 12px rgba(35, 25, 20, 0.07);
  --shadow-card-hover: 0 14px 30px rgba(35, 25, 20, 0.14);
  --radius-card: 16px;
  --container-max: 980px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
}

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

/* =========================================================
   HERO & TOP NAV
   ========================================================= */

.hero {
  position: relative;
  background-color: var(--bg-hero);
  padding-top: 32px;
  padding-bottom: 50px;
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  background: none;
  border: none;
  padding: 6px 2px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand-rust);
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-rust-hover);
  outline: none;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--brand-rust);
  border: 1px solid rgba(30, 107, 56, 0.16);
  border-radius: 999px;
  height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(35, 25, 20, 0.05);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.lang-pill:hover {
  border-color: rgba(30, 107, 56, 0.42);
  box-shadow: 0 3px 10px rgba(35, 25, 20, 0.08);
  transform: translateY(-1px);
}

.globe-icon {
  color: var(--brand-rust);
  flex-shrink: 0;
}

/* Center Brand & Search */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
}

.brand-badge-link {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 18px;
}

.brand-logo-img {
  display: block;
  width: 196px;
  max-width: 68vw;
  height: auto;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.brand-badge-link:hover .brand-logo-img {
  transform: scale(1.025);
  filter: brightness(1.03);
}

.hero-tagline {
  margin: 0 0 18px;
  font-size: 21px;
  font-weight: 700;
  color: var(--brand-rust);
  letter-spacing: -0.02em;
}

.search-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 638px;
}

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

.search-icon {
  position: absolute;
  left: 16px;
  color: #554c46;
  pointer-events: none;
}

html[dir="rtl"] .search-icon {
  left: auto;
  right: 16px;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 42px;
  border-radius: 999px;
  border: 1px solid #dfd7ce;
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: 0 1px 4px rgba(35, 25, 20, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

html[dir="rtl"] .search-input {
  padding: 0 42px 0 44px;
}

.search-input::placeholder {
  color: #8b827b;
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-rust);
  box-shadow: 0 0 0 3px rgba(30, 107, 56, 0.14);
}

.locate-btn {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #4f4640;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

html[dir="rtl"] .locate-btn {
  right: auto;
  left: 8px;
}

.locate-btn:hover {
  background: #eaf5ec;
  color: var(--brand-rust);
}

.locate-btn.locating svg {
  animation: pulseSpin 0.9s linear infinite;
  color: var(--brand-rust);
}

@keyframes pulseSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-lets-go {
  height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  border: none;
  background: var(--brand-rust);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(30, 107, 56, 0.24);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-lets-go:hover {
  background: var(--brand-rust-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 107, 56, 0.3);
}

.cta-lets-go:active {
  transform: translateY(0);
}

/* Autocomplete Suggestions */
.suggestions-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(35, 25, 20, 0.12);
  text-align: left;
  z-index: 35;
}

html[dir="rtl"] .suggestions-list {
  text-align: right;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s ease;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: #eaf5ec;
}

.suggestion-item svg {
  color: var(--brand-orange);
  flex-shrink: 0;
}

.suggestion-sub {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

.suggestions-status {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.suggestions-attr {
  padding: 6px 12px 4px;
  margin-top: 4px;
  border-top: 1px solid #f0ebe5;
  font-size: 11px;
  color: #9b9088;
  text-align: right;
}

/* Active Location Pill */
.location-status {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(30, 107, 56, 0.28);
  color: var(--brand-rust);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(30, 107, 56, 0.08);
}

.location-status[hidden] {
  display: none;
}

.clear-loc-btn {
  position: relative;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: none;
  border: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clear-loc-btn::before,
.clear-loc-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text-muted);
  transition: background 0.15s ease;
}

.clear-loc-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.clear-loc-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.clear-loc-btn:hover::before,
.clear-loc-btn:hover::after {
  background: var(--brand-rust);
}

/* Subtle Hero Wave Divider */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 22px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================================================
   SERVICE BENTO CARDS GRID
   ========================================================= */

.main-content {
  padding: 20px 24px 64px;
}

.services-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-row {
  display: grid;
  gap: 18px;
}

.card-row-two {
  grid-template-columns: repeat(2, 310px);
  justify-content: center;
}

.service-card {
  position: relative;
  height: 390px;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--brand-orange);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  outline: none;
}

.card-media {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #2c2420;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-food .card-media img {
  object-position: center 45%;
}

.card-donations .card-media img {
  object-position: center 42%;
}

.service-card:hover .card-media img {
  transform: scale(1.045);
}

.card-top-scrim {
  position: absolute;
  inset: 0 0 auto 0;
  height: 92px;
  background: linear-gradient(180deg, rgba(20, 12, 8, 0.48) 0%, rgba(20, 12, 8, 0.16) 55%, rgba(20, 12, 8, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.card-title {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.26);
  z-index: 2;
}

/* Orange Wavy Bottom Panel */
.card-footer {
  position: relative;
  height: 124px;
  background: var(--brand-orange);
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.card-wave {
  position: absolute;
  top: -17px;
  left: 0;
  width: 100%;
  height: 19px;
  display: block;
  pointer-events: none;
}

.card-footer-content {
  flex: 1;
  padding: 6px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-desc {
  margin: 0;
  color: #ffffff;
  font-size: 13.3px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-espresso);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 11px;
  border-radius: 5px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.service-card:hover .card-btn {
  background: var(--btn-espresso-hover);
  transform: translateX(2px);
}

html[dir="rtl"] .service-card:hover .card-btn {
  transform: translateX(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  border-top: 1px solid #f0e8df;
  background: #fdfaf7;
  padding: 28px 24px 34px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

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

.footer-logo-img {
  display: block;
  width: 100px;
  height: auto;
}

.footer-note {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #2b633c;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-rust);
  cursor: pointer;
}

.footer-link:hover {
  color: var(--brand-rust-hover);
  text-decoration: underline;
}

.footer-copy {
  width: 100%;
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid #efe7de;
  font-size: 12.5px;
  color: #8b8079;
}

.footer-copy a {
  color: var(--brand-rust);
  text-decoration: none;
  font-weight: 600;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* Dark Bottom Bar */
.bottom-dark-bar {
  background: #262626;
  padding: 20px 24px;
}

.bottom-dark-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-contact-link {
  background: none;
  border: none;
  padding: 4px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #cfcfcf;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
}

.bottom-contact-link:hover,
.bottom-contact-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  outline: none;
}

/* =========================================================
   MODAL & TOAST
   ========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 15, 10, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: fadeIn 0.16s ease-out;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 26px 24px;
  box-shadow: 0 24px 60px rgba(25, 14, 8, 0.28);
  animation: slideUp 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  contain: layout style;
}

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

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: #f6efe8;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-dark);
  transition: background 0.16s ease;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

html[dir="rtl"] .modal-close {
  right: auto;
  left: 16px;
}

.modal-close:hover {
  background: #d8eedc;
}

.modal-close:hover::before,
.modal-close:hover::after {
  background: var(--brand-rust);
}

.modal-badge {
  display: inline-block;
  background: #eaf5ec;
  color: var(--brand-rust);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.modal-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.modal-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.modal-items {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #efe7de;
  border-radius: 12px;
  background: #fdfbf9;
}

.modal-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 2px;
}

.modal-item-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.modal-item-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-rust);
  background: #eaf5ec;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.modal-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.modal-input,
.modal-select,
.modal-textarea {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--text-dark);
  background: #ffffff;
}

.modal-textarea {
  height: auto;
  min-height: 92px;
  padding: 10px 14px;
  resize: vertical;
}

.modal-input:focus,
.modal-select:focus,
.modal-textarea:focus {
  outline: none;
  border-color: var(--brand-rust);
  box-shadow: 0 0 0 3px rgba(30, 107, 56, 0.14);
}

.modal-submit {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #135C3F 0%, #317449 28%, #599356 58%, #80B366 82%, #98C572 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(10, 40, 24, 0.25);
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(19, 92, 63, 0.22);
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.modal-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(19, 92, 63, 0.28);
}

.modal-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.modal-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecec;
  color: #a61d24;
  font-size: 13px;
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a1309;
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  z-index: 150;
}

.toast[hidden] {
  display: none;
}

/* =========================================================
   AUTH BUTTONS, SIGNUP CHECKBOX, ADMIN & CHEF PORTALS
   ========================================================= */

.auth-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-btns[hidden],
.portal-nav-actions[hidden] {
  display: none;
}

.auth-btn-outline[hidden],
.auth-btn-solid[hidden],
[hidden] {
  display: none !important;
}

.auth-btn-outline,
.auth-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.auth-btn-outline {
  background: #ffffff;
  color: var(--brand-rust);
  border: 1px solid rgba(30, 107, 56, 0.24);
  box-shadow: 0 1px 4px rgba(35, 25, 20, 0.05);
}

.auth-btn-outline:hover {
  border-color: var(--brand-rust);
  background: #eaf5ec;
  transform: translateY(-1px);
}

.auth-btn-solid {
  background: var(--brand-rust);
  color: #ffffff;
  border: 1px solid var(--brand-rust);
  box-shadow: 0 2px 8px rgba(30, 107, 56, 0.2);
}

.auth-btn-solid:hover {
  background: var(--brand-rust-hover);
  border-color: var(--brand-rust-hover);
  transform: translateY(-1px);
}

.nav-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-rust);
  padding: 0 4px;
}

.modal-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-address-wrap {
  position: relative;
}

.modal-suggestions-list {
  max-height: 220px;
  overflow-y: auto;
  z-index: 60;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .modal-input {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 7px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.password-toggle-btn:hover,
.password-toggle-btn[aria-pressed="true"] {
  background: #eaf5ec;
  color: var(--brand-rust);
}

.chef-checkbox-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(30, 107, 56, 0.25);
  background: #f2faf3;
  cursor: pointer;
  margin-top: 2px;
}

.chef-checkbox-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-rust);
  cursor: pointer;
  flex-shrink: 0;
}

.chef-checkbox-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
}

.btn-chef-proceed {
  width: 100%;
  min-height: 46px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: #145229;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(20, 82, 41, 0.28);
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn-chef-proceed:hover {
  background: #1e6b38;
  transform: translateY(-1px);
}

.modal-switch-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.modal-switch-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-rust);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Portal Shared Layout (admin.html & chef.html) */
.portal-body {
  background: #ffffff;
  min-height: 100vh;
}

.portal-header {
  background: var(--bg-hero);
  border-bottom: 1px solid #ede4da;
  padding: 30px 24px 12px;
}

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

.portal-logo-link {
  display: inline-flex;
  align-items: center;
}

.portal-logo-img {
  display: block;
  width: 136px;
  height: auto;
}

.portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-user-pill {
  background: #eaf5ec;
  color: var(--brand-rust);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.portal-main {
  padding: 36px 24px 64px;
}

.portal-login-card {
  max-width: 440px;
  margin: 28px auto;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
}

.portal-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.portal-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.portal-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.025em;
}

.portal-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.portal-back-wrap {
  margin: 16px 0 0;
  text-align: center;
}

.portal-back-link {
  color: var(--brand-rust);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.portal-back-link:hover {
  text-decoration: underline;
}

/* Admin Stats & Application Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fdfaf7;
  border: 1px solid #ede4da;
  border-radius: 14px;
  padding: 16px 18px;
}

.stat-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.stat-pending {
  color: #b45309;
}

.stat-approved {
  color: var(--brand-rust);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-tab {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--brand-rust);
  border-color: var(--brand-rust);
  color: #ffffff;
}

.apps-list {
  display: grid;
  gap: 14px;
}

.app-card {
  background: #ffffff;
  border: 1px solid #e7dfd6;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(35, 25, 20, 0.04);
}

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

.app-restaurant {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-rust);
}

.app-chef-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.status-pill {
  text-transform: capitalize;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-approved {
  background: #eaf5ec;
  color: var(--brand-rust);
}

.status-rejected {
  background: #fdecec;
  color: #a61d24;
}

.app-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdfaf7;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.app-details strong {
  color: var(--text-dark);
}

.app-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.app-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-approve,
.btn-reject,
.btn-delete-chef {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.btn-approve {
  background: var(--brand-rust);
  color: #ffffff;
}

.btn-approve:hover {
  background: var(--brand-rust-hover);
  transform: translateY(-1px);
}

.btn-reject {
  background: #fdecec;
  color: #a61d24;
}

.btn-reject:hover {
  background: #f9d5d5;
}

.btn-delete-chef {
  background: #a61d24;
  color: #ffffff;
}

.btn-delete-chef:hover {
  background: #821319;
  transform: translateY(-1px);
}

.empty-state {
  text-align: center;
  padding: 36px 20px;
  background: #fdfaf7;
  border: 1px dashed #ddd3c8;
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Approved Chef Restaurant & Upper-Center Menu Page */
.chef-hero {
  position: relative;
  background: var(--bg-hero);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 44px 24px 62px;
  text-align: center;
  overflow: hidden;
  transition: min-height 0.25s ease;
}

.chef-hero.has-banner {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px 24px 72px;
}

.chef-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.chef-hero.banner-stretch,
.chef-hero.banner-full {
  padding: 0;
  min-height: 280px;
}

.chef-hero.banner-stretch .chef-hero-bg,
.chef-hero.banner-full .chef-hero-bg {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}

.chef-hero.banner-stretch .chef-hero-inner,
.chef-hero.banner-full .chef-hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 40px;
  max-width: none;
}

.chef-hero-bg[hidden] {
  display: none;
}

.chef-hero-scrim {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 14, 0.32) 0%, rgba(10, 22, 14, 0.56) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Interactive Banner Crop / Fit Editor Modal */
.modal-dialog-wide {
  max-width: 680px;
}

.crop-preview-stage {
  width: 100%;
  aspect-ratio: 1600 / 450;
  border-radius: 14px;
  overflow: hidden;
  background: #1b241d;
  border: 1px solid var(--border-soft);
  margin-bottom: 14px;
}

.crop-preview-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.crop-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.crop-mode-btn {
  flex: 1;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.crop-mode-btn.active {
  background: var(--brand-rust);
  border-color: var(--brand-rust);
  color: #ffffff;
}

.crop-sliders {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdfaf7;
  border: 1px solid #efe7de;
}

.crop-sliders[hidden] {
  display: none;
}

.crop-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.crop-slider-row span {
  min-width: 112px;
}

.crop-slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--brand-rust);
}

.chef-hero.has-banner .chef-hero-scrim {
  display: block;
}

.chef-banner-controls {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.banner-upload-btn,
.banner-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(30, 107, 56, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-rust);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.16s ease, transform 0.16s ease;
}

.banner-upload-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.banner-upload-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.banner-remove-btn {
  color: #a61d24;
  border-color: rgba(166, 29, 36, 0.25);
}

.banner-remove-btn:hover {
  background: #fdecec;
}

.banner-remove-btn[hidden] {
  display: none;
}

.banner-tip-box {
  display: inline-block;
  margin: 10px auto 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(234, 245, 236, 0.96);
  border: 1px solid rgba(30, 107, 56, 0.25);
  color: var(--brand-rust);
  font-size: 12.5px;
  font-weight: 700;
}

.banner-tip-box[hidden] {
  display: none;
}

.banner-error-box {
  max-width: 480px;
  margin: 12px auto 0;
}

.chef-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.chef-hero .hero-wave {
  z-index: 2;
}

.chef-verified-badge {
  display: inline-block;
  background: #eaf5ec;
  color: var(--brand-rust);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(30, 107, 56, 0.2);
  margin-bottom: 12px;
}

.chef-hero.has-banner .chef-verified-badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.6);
}

.chef-restaurant-title {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 800;
  color: var(--brand-rust);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.chef-hero.has-banner .chef-restaurant-title {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.chef-restaurant-meta {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.chef-hero.has-banner .chef-restaurant-meta {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.chef-menu-section {
  max-width: 720px;
  margin: 26px auto 64px;
  padding: 0 24px;
}

.chef-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #efe7de;
}

.chef-menu-heading {
  margin: 0 0 2px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
}

.chef-menu-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.chef-menu-list {
  display: grid;
  gap: 14px;
}

.menu-item-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #e6ded5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(35, 25, 20, 0.05);
}

.menu-item-info {
  flex: 1;
}

.menu-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.menu-item-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
}

.menu-item-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-rust);
  white-space: nowrap;
}

.menu-item-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.menu-delete-btn {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: #f6efe8;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-delete-btn::before,
.menu-delete-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-muted);
}

.menu-delete-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-delete-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-delete-btn:hover {
  background: #fdecec;
}

.menu-delete-btn:hover::before,
.menu-delete-btn:hover::after {
  background: #a61d24;
}

/* Nearby 6-Mile Chef Kitchens List inside Modal */
.nearby-chefs-list {
  display: grid;
  gap: 14px;
}

.nearby-chef-card {
  border: 1px solid #e6ded5;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fdfbf9;
}

.nearby-chef-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.nearby-chef-name {
  margin: 0 0 2px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--brand-rust);
}

.nearby-chef-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.nearby-chef-menu {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #efe7de;
}

.nearby-menu-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nearby-menu-name {
  font-size: 13.5px;
  color: var(--text-dark);
}

.nearby-menu-desc {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.nearby-menu-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-rust);
  white-space: nowrap;
}

.nearby-menu-empty {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Dedicated Chef Kitchens Bubble Page (kitchens.html) */
.kitchens-main {
  max-width: var(--container-max);
  margin: 28px auto 72px;
  padding: 0 24px;
}

.kitchen-bubbles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.kitchen-bubble {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #ffffff;
  border: 2px solid #e4ece6;
  border-radius: 28px;
  padding: 22px 24px 20px;
  box-shadow: 0 6px 20px rgba(30, 107, 56, 0.08);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.kitchen-bubble-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
}

.kitchen-bubble-bottom {
  display: flex;
  flex-direction: column;
}

.kitchen-bubble.has-banner {
  min-height: 268px;
  border-color: rgba(30, 107, 56, 0.24);
  background: #142419;
}

.kitchen-bubble-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.kitchen-bubble.has-banner:hover .kitchen-bubble-bg {
  transform: scale(1.045);
}

.kitchen-bubble-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 14, 0.14) 0%,
    rgba(10, 22, 14, 0.12) 42%,
    rgba(10, 22, 14, 0.68) 74%,
    rgba(10, 22, 14, 0.86) 100%
  );
  pointer-events: none;
}

.kitchen-bubble.has-banner .kitchen-bubble-top {
  margin-bottom: 58px;
}

.kitchen-bubble.has-banner .kitchen-distance-pill {
  background: rgba(255, 255, 255, 0.92);
  color: #135C3F;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.kitchen-bubble.has-banner .open-badge,
.kitchen-bubble.has-banner .kitchen-rating-pill {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.kitchen-bubble.has-banner .kitchen-bubble-name {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.kitchen-bubble.has-banner .kitchen-bubble-meta {
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.kitchen-bubble.has-banner .kitchen-bubble-cta {
  background: linear-gradient(90deg, #135C3F 0%, #317449 32%, #599356 68%, #98C572 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26);
}

.kitchen-bubble:hover,
.kitchen-bubble:focus-visible {
  transform: translateY(-4px);
  border-color: var(--brand-rust);
  box-shadow: 0 14px 32px rgba(30, 107, 56, 0.16);
  outline: none;
}

.kitchen-bubble-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.kitchen-distance-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eaf5ec;
  color: var(--brand-rust);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.kitchen-items-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.kitchen-bubble-name {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  color: var(--brand-rust);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kitchen-bubble-meta {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  flex: 1;
}

.kitchen-bubble-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  background: var(--brand-rust);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.kitchen-bubble:hover .kitchen-bubble-cta {
  background: var(--brand-rust-hover);
  transform: translateX(2px);
}

/* =========================================================
   V45: LOCATION PROMPT, SEPARATED ADDRESS, STRONG PW, TOS,
   50-STATE COMPLIANCE, OPEN/CLOSED, ORDERS, ROUTE & TRACKER
   ========================================================= */

.auth-btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: #ffffff;
  color: #a61d24;
  border: 1px solid rgba(166, 29, 36, 0.32);
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.auth-btn-danger-outline:hover {
  background: #fdecec;
  border-color: #a61d24;
}

.auth-btn-danger-outline[hidden] {
  display: none;
}

/* Address Bar Click -> Use Current Location Prompt */
.loc-prompt-card {
  list-style: none;
  padding: 14px 16px;
  background: #f2faf3;
  border-bottom: 1px solid #d9ebd9;
}

.loc-prompt-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.loc-prompt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.loc-prompt-yes {
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--brand-rust);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.loc-prompt-yes:hover {
  background: var(--brand-rust-hover);
}

.loc-prompt-no {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d5d0c8;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.loc-prompt-no:hover {
  background: #f6f3ee;
}

/* Separated Address 3-Column Row */
.modal-row-3 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.75fr;
  gap: 10px;
}

/* Password Live Strength Inline Chips (Side-by-Side) */
.pw-rules-inline {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pw-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f6f3ee;
  border: 1px solid #e4ddd3;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.pw-chip::before {
  content: "\2022";
  font-size: 12px;
  line-height: 1;
}

.pw-chip.pw-ok {
  background: #eaf5ec;
  border-color: #9ed4ab;
  color: #1E6B38;
  font-weight: 700;
}

.pw-chip.pw-ok::before {
  content: "\2713";
}

.pw-chip.pw-bad {
  background: #fdecec;
  border-color: #f3b5b8;
  color: #a61d24;
  font-weight: 700;
}

.pw-chip.pw-bad::before {
  content: "\2715";
}

/* Social Auth Divider & Pill Buttons (Google / Facebook / Apple) */
.social-auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 12px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.social-auth-divider::before,
.social-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c7c7c7;
}

.social-auth-stack {
  display: grid;
  gap: 10px;
}

.social-pill-btn {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: filter 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.social-pill-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.social-btn-google {
  background: #4285F4;
}

.social-btn-facebook {
  background: #3B5998;
}

.social-btn-apple {
  background: #000000;
}

.social-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.oauth-admin-grid {
  display: grid;
  gap: 10px;
}

.oauth-admin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 720px) {
  .oauth-admin-row {
    grid-template-columns: 1fr;
  }
}

/* Terms of Service & Chef Seller Agreement Box */
.tos-box {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e3dcd2;
  background: #fdfaf7;
}

.tos-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-dark);
  cursor: pointer;
}

.tos-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-rust);
  flex-shrink: 0;
}

.tos-details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2dad0;
  font-size: 12px;
}

.tos-details summary {
  cursor: pointer;
  color: var(--brand-rust);
  font-weight: 700;
}

.tos-details-body {
  margin-top: 8px;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
  line-height: 1.45;
}

.tos-details-body p {
  margin: 0;
}

/* Dynamic 50-State Food Safety Compliance Section */
.state-compliance-box {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(30, 107, 56, 0.28);
  background: #f2faf3;
}

.state-compliance-box[hidden] {
  display: none;
}

.state-compliance-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.state-compliance-header strong {
  font-size: 14.5px;
  color: var(--brand-rust);
}

.state-compliance-agency {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.state-compliance-hint {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--text-dark);
}

.food-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.food-type-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(30, 107, 56, 0.25);
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
}

.food-type-pill input {
  accent-color: var(--brand-rust);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.state-cert-cards {
  display: grid;
  gap: 10px;
}

.state-cert-placeholder {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.state-cert-card {
  background: #ffffff;
  border: 1px solid #d5e6d8;
  border-radius: 12px;
  padding: 12px 14px;
}

.state-cert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.state-cert-badge {
  background: #eaf5ec;
  color: var(--brand-rust);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.state-cert-permit {
  margin: 0 0 5px;
  font-size: 12.5px;
  color: var(--text-dark);
}

.state-cert-summary {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.state-cert-actions {
  display: grid;
  gap: 8px;
}

.state-form-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-rust);
  text-decoration: underline;
}

.state-upload-label {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px dashed rgba(30, 107, 56, 0.35);
  background: #f9fcf9;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.state-upload-label input[type="file"] {
  font-size: 12px;
}

.state-file-chosen {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--brand-rust);
}

/* Open (Green) / Closed (Red) Badges & Chef Toggle Bar */
.chef-dashboard-wide {
  max-width: 1020px;
}

.chef-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 26px;
  border-radius: 18px;
  border: 1px solid #e4ece6;
  background: #fdfbf9;
  box-shadow: 0 4px 16px rgba(30, 107, 56, 0.06);
}

.chef-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot-open {
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.2);
}

.status-dot-closed {
  background: #dc2626;
  box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.2);
}

.status-headline {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-dark);
}

.status-subline {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.chef-status-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.open-closed-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #eceae5;
  gap: 4px;
}

.toggle-open-btn,
.toggle-closed-btn {
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.16s ease;
}

.toggle-open-btn.active {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.35);
}

.toggle-closed-btn.active {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}

.timer-window-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.timer-window-select {
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

.open-badge[hidden] {
  display: none;
}

.open-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.open-badge-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.open-badge-red {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.hero-badges-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-badges-row .chef-verified-badge {
  margin-bottom: 0;
}

.kitchen-bubble-closed {
  opacity: 0.85;
  border-color: #f3d4d4;
}

.closed-notice-banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.45;
}

.closed-notice-banner[hidden] {
  display: none;
}

/* Chef Incoming Orders & Countdown Cards */
.chef-orders-panel {
  margin-bottom: 34px;
}

.chef-orders-list {
  display: grid;
  gap: 14px;
}

.order-card {
  background: #ffffff;
  border: 1px solid #e6ded5;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 3px 12px rgba(35, 25, 20, 0.05);
}

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

.order-title {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-dark);
}

.order-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.order-items-line,
.order-notes-line {
  margin: 4px 0 8px;
  font-size: 13.5px;
  color: var(--text-dark);
}

.order-countdown-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin: 8px 0;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 13px;
  color: #92400e;
}

.order-countdown-val {
  font-size: 16px;
  font-weight: 800;
  color: #b45309;
  font-variant-numeric: tabular-nums;
}

.order-hold-tag {
  font-size: 11.5px;
  font-weight: 600;
  margin-left: auto;
}

.order-address-locked {
  padding: 9px 12px;
  border-radius: 10px;
  background: #f6f4f0;
  color: var(--text-muted);
  font-size: 12.5px;
  margin-bottom: 12px;
}

.order-address-revealed {
  padding: 10px 14px;
  border-radius: 10px;
  background: #eaf5ec;
  border: 1px solid #b7dfc0;
  color: #145229;
  font-size: 13.5px;
  margin-bottom: 12px;
}

.order-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-nav-road {
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: #145229;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-nav-road:hover {
  background: #1e6b38;
}

/* Vehicle & Road Navigation Modal */
.modal-dialog-xl {
  max-width: 820px;
}

.route-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f2faf3;
  border: 1px solid #cce6d1;
  margin-bottom: 12px;
}

.route-metric {
  display: flex;
  flex-direction: column;
}

.route-metric-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.route-metric strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-rust);
}

.route-ext-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.route-map-canvas {
  width: 100%;
  height: 320px;
  border-radius: 14px;
  border: 1px solid #dbe5dd;
  overflow: hidden;
  margin-bottom: 14px;
  z-index: 1;
}

.route-steps-wrap {
  max-height: 210px;
  overflow-y: auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdfaf7;
  border: 1px solid #ede4da;
}

.route-steps-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}

.route-steps-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--text-dark);
}

.route-steps-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.route-steps-list small {
  color: var(--brand-rust);
  font-weight: 700;
  white-space: nowrap;
}

/* Public Menu Ordering Sidebar & Customer Countdown Tracker */
.menu-order-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.btn-add-order {
  height: 36px;
  padding: 0 15px;
  border: none;
  border-radius: 999px;
  background: var(--brand-rust);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-add-order:hover {
  background: var(--brand-rust-hover);
}

.order-cart-card {
  position: sticky;
  top: 20px;
  min-width: 0;
  max-width: 100%;
  background: #fdfaf7;
  border: 1px solid #e7dfd6;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(35, 25, 20, 0.05);
}

.order-cart-card[hidden] {
  display: none;
}

.order-cart-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.cart-items-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.cart-empty-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #ede5dc;
  font-size: 13px;
}

.cart-item-price {
  display: block;
  font-size: 12px;
  color: var(--brand-rust);
  font-weight: 700;
}

.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-ctrl button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #e5ddd3;
  font-size: 15px;
}

.order-hold-disclaimer {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.customer-order-tracker {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f2faf3;
  border: 1px solid #b7dfc0;
}

.customer-order-tracker[hidden] {
  display: none;
}

.customer-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.cust-countdown-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cust-countdown-ok {
  background: #dcfce7;
  color: #15803d;
}

.cust-countdown-void {
  background: #fee2e2;
  color: #b91c1c;
}

/* Business Tracker Page Charts & Table */
.tracker-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tracker-card {
  background: #ffffff;
  border: 1px solid #e7dfd6;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(35, 25, 20, 0.04);
}

.tracker-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tracker-card-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
}

.tracker-alltime {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-rust);
  background: #eaf5ec;
  padding: 4px 10px;
  border-radius: 999px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 190px;
  padding-top: 22px;
  overflow-x: auto;
}

.bar-col {
  flex: 1;
  min-width: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.bar-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dark);
  min-height: 13px;
}

.bar-track {
  width: 100%;
  max-width: 34px;
  flex: 1;
  background: #f4f1ec;
  border-radius: 8px 8px 4px 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  border-radius: 8px 8px 0 0;
  transition: height 0.3s ease;
}

.bar-visitors {
  background: linear-gradient(180deg, #2e8544, #1e6b38);
}

.bar-revenue {
  background: linear-gradient(180deg, #16a34a, #0b3319);
}

.bar-label {
  font-size: 10px;
  color: var(--text-muted);
}

.tracker-table-wrap {
  overflow-x: auto;
}

.tracker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tracker-table th,
.tracker-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #efe7de;
}

.tracker-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: #fdfaf7;
}

/* Admin Geoapify API Card & Certificate Links */
.geoapify-settings-card {
  background: #f2faf3;
  border: 1px solid rgba(30, 107, 56, 0.28);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.geoapify-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.geoapify-status-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.geoapify-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.geoapify-form-row .modal-input {
  flex: 1;
  min-width: 240px;
}

.admin-cert-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-rust);
  font-weight: 700;
  text-decoration: underline;
  margin-right: 10px;
}

/* Circular Menu Dish Photo Uploader & Display (iPhone / Android Friendly) */
.dish-photo-picker-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f9fcf9;
  border: 1px solid #ddebe0;
}

.dish-photo-circle-preview {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid #c6e0cc;
  background: #eef7f0;
  color: var(--brand-rust);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(30, 107, 56, 0.12);
}

.dish-photo-circle-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dish-photo-circle-preview img[hidden] {
  display: none;
}

.dish-photo-picker-controls {
  flex: 1;
  display: grid;
  gap: 6px;
}

.dish-photo-clear-btn {
  background: none;
  border: none;
  padding: 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #a61d24;
  cursor: pointer;
  text-decoration: underline;
}

.dish-photo-clear-btn[hidden] {
  display: none;
}

.dish-photo-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.dish-circle-btn,
.dish-circle-public {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #dce9df;
  box-shadow: 0 3px 10px rgba(30, 107, 56, 0.12);
}

.dish-circle-public {
  object-fit: cover;
  object-position: center;
  display: block;
}

.dish-circle-btn {
  position: relative;
  padding: 0;
  background: #f2faf3;
  color: var(--brand-rust);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.dish-circle-btn:hover {
  transform: scale(1.03);
  border-color: var(--brand-rust);
}

.dish-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dish-circle-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-rust);
}

.dish-circle-edit-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

@media (max-width: 520px) {
  .dish-circle-btn,
  .dish-circle-public {
    width: 72px;
    height: 72px;
  }

  .dish-photo-circle-preview {
    width: 74px;
    height: 74px;
  }
}

/* Chef Delivery Fee Input & Order Cart Fee/Total Rows */
.delivery-fee-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.delivery-fee-input {
  width: 82px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-fee-row,
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.cart-total-row {
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px dashed #ddd4c9;
  font-size: 15.5px;
  color: var(--text-dark);
}

.cart-total-row strong {
  color: var(--brand-rust);
  font-size: 17px;
}

/* Star Ratings & Customer Reviews Section */
.hero-rating-badge,
.kitchen-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
}

.hero-rating-badge[hidden] {
  display: none;
}

.kitchen-rating-new {
  background: #f2faf3;
  color: var(--brand-rust);
  border-color: #b7dfc0;
}

.public-reviews-section,
.chef-reviews-panel {
  margin-top: 38px;
}

.public-reviews-section[hidden] {
  display: none;
}

.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 22px;
  align-items: start;
}

.review-form-card {
  background: #fdfaf7;
  border: 1px solid #e7dfd6;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 3px 12px rgba(35, 25, 20, 0.04);
}

.review-form-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.star-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.star-btn {
  background: none;
  border: none;
  padding: 2px 3px;
  font-size: 30px;
  line-height: 1;
  color: #d6cfc5;
  cursor: pointer;
  transition: transform 0.14s ease, color 0.14s ease;
}

.star-btn:hover {
  transform: scale(1.14);
}

.star-btn.active {
  color: #f59e0b;
}

.star-rating-label {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.reviews-list {
  display: grid;
  gap: 12px;
}

.review-card {
  background: #ffffff;
  border: 1px solid #e6ded5;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(35, 25, 20, 0.04);
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.review-author {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-right: 10px;
}

.review-stars {
  font-size: 16px;
  letter-spacing: 1px;
  color: #f59e0b;
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
}

.review-comment {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
  white-space: pre-wrap;
}

@media (max-width: 820px) {
  .reviews-layout {
    grid-template-columns: 1fr;
  }
}

/* Clickable User Name Bubble — Head & Shoulders Waving Silhouette */
.nav-user-link,
.portal-user-pill-link {
  --wave-bg: #eaf5ec;
  --wave-stroke: rgba(30, 107, 56, 0.42);
  --wave-ink: var(--brand-rust);
  position: relative;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--wave-ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.nav-user-link:hover,
.portal-user-pill-link:hover {
  --wave-bg: #d8eedc;
  --wave-stroke: var(--brand-rust);
  background: transparent;
  border-color: transparent;
  transform: translateY(-1px);
}

.nav-user-link:focus-visible .user-wave-shoulders,
.portal-user-pill-link:focus-visible .user-wave-shoulders {
  outline: 2px solid var(--brand-rust);
  outline-offset: 2px;
}

.nav-user-link[hidden],
.portal-user-pill-link[hidden] {
  display: none;
}

.user-wave-crown {
  display: block;
  width: 68px;
  height: 21px;
  margin-bottom: 0;
  position: absolute;
  left: 50%;
  bottom: calc(100% - 3px);
  transform: translateX(-50%);
  z-index: 2;
  overflow: visible;
  pointer-events: none;
  flex-shrink: 0;
}

.user-wave-chef-hat {
  display: none;
}

.is-chef-bubble .user-wave-chef-hat {
  display: inline;
}

.is-chef-bubble .user-wave-crown {
  height: 29px;
}

.user-wave-hat-fill {
  fill: #ffffff;
}

.user-wave-hat-stroke {
  stroke: var(--wave-stroke);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-wave-hat-pleat {
  stroke: var(--wave-stroke);
  stroke-width: 1.05;
  stroke-linecap: round;
  opacity: 0.55;
}

.user-wave-hat-trim {
  stroke: var(--wave-ink);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.55;
}

.user-wave-fill {
  fill: var(--wave-bg);
  transition: fill 0.18s ease;
}

.user-wave-stroke {
  fill: none;
  stroke: var(--wave-stroke);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.18s ease;
}

.user-wave-feature {
  fill: var(--wave-ink);
}

.user-wave-smile {
  fill: none;
  stroke: var(--wave-ink);
  stroke-width: 1.45;
  stroke-linecap: round;
}

.user-wave-motion {
  fill: none;
  stroke: var(--wave-ink);
  stroke-width: 1.35;
  stroke-linecap: round;
  opacity: 0.72;
}

.user-wave-arm {
  transform-box: view-box;
  transform-origin: 61.5px 26.5px;
  animation: stovehopUserWave 4.2s ease-in-out infinite;
}

.user-wave-arm .user-wave-stroke {
  stroke-width: 1.4;
}

.nav-user-link:hover .user-wave-arm,
.portal-user-pill-link:hover .user-wave-arm {
  animation: stovehopUserWaveHover 0.9s ease-in-out infinite;
}

.user-wave-shoulders {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--wave-bg);
  border: 1.5px solid var(--wave-stroke);
  color: var(--wave-ink);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(19, 92, 63, 0.1);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-user-link:hover .user-wave-shoulders,
.portal-user-pill-link:hover .user-wave-shoulders {
  box-shadow: 0 4px 12px rgba(19, 92, 63, 0.18);
}

.user-wave-name {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes stovehopUserWave {
  0%, 56%, 100% {
    transform: rotate(0deg);
  }
  64% {
    transform: rotate(12deg);
  }
  72% {
    transform: rotate(-9deg);
  }
  80% {
    transform: rotate(10deg);
  }
  88% {
    transform: rotate(-5deg);
  }
}

@keyframes stovehopUserWaveHover {
  0%, 100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(13deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .user-wave-arm,
  .nav-user-link:hover .user-wave-arm,
  .portal-user-pill-link:hover .user-wave-arm {
    animation: none;
  }
}

@media (max-width: 560px) {
  .user-wave-crown {
    width: 60px;
    height: 19px;
    bottom: calc(100% - 2.5px);
  }
  .is-chef-bubble .user-wave-crown {
    height: 26px;
  }
  .user-wave-shoulders {
    min-width: 84px;
    height: 36px;
    padding: 0 12px;
    font-size: 12.5px;
  }
  .nav-user-link,
  .portal-user-pill-link,
  .lang-pill,
  .auth-btn-outline,
  .auth-btn-solid,
  .meal-status-nav-btn {
    height: 36px;
    min-height: 36px;
  }
}

.account-container {
  max-width: 760px;
}

.account-card {
  background: #ffffff;
  border: 1px solid #e7dfd6;
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 3px 12px rgba(35, 25, 20, 0.04);
}

.account-card-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.account-kv {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdfaf7;
  border: 1px solid #efe7de;
}

.account-kv span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.account-kv strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  word-break: break-word;
}

.account-danger-card {
  border-color: #f3c6c8;
  background: #fffafa;
}

.account-danger-card[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .account-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* 5-Digit Verification Code Box (Sign Up & Chef Application) */
.verify-code-box {
  padding: 13px 15px;
  border-radius: 14px;
  background: #f2faf3;
  border: 1px solid rgba(30, 107, 56, 0.28);
  display: grid;
  gap: 10px;
}

.verify-code-head strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-rust);
}

.verify-code-head span {
  font-size: 12px;
  color: var(--text-muted);
}

.verify-channel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.verify-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d5e5d8;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
}

.verify-radio-pill input {
  accent-color: var(--brand-rust);
}

.verify-status-msg {
  margin: 0;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
}

.verify-status-msg[hidden] {
  display: none;
}

.verify-status-ok,
.verify-status-msg.is-ok {
  background: #dcfce7;
  color: #14532d;
}

.verify-status-err,
.verify-status-msg.is-err {
  background: #fdecec;
  color: #a61d24;
}

.verify-code-input {
  max-width: 190px;
  letter-spacing: 0.28em;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

/* Saved Addresses & Payment Methods List Cards (account.html) */
.account-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.saved-items-list {
  display: grid;
  gap: 10px;
}

.saved-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid #e6ded5;
  background: #fdfaf7;
}

.saved-item-row.is-active-item {
  border-color: #9ed4ab;
  background: #f2faf3;
}

.saved-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.saved-item-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.saved-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.saved-add-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #ddd3c8;
}

.saved-add-form[hidden] {
  display: none;
}

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

@media (max-width: 860px) {
  .menu-order-layout,
  .tracker-charts-grid {
    grid-template-columns: 1fr;
  }

  .order-cart-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .food-type-grid {
    grid-template-columns: 1fr;
  }

  .modal-row-3 {
    grid-template-columns: 1fr;
  }

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

  .app-details {
    grid-template-columns: 1fr;
  }

  .card-row-two {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    height: 374px;
  }
}

@media (max-width: 680px) {
  .top-nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .top-nav-right {
    width: 100%;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }

  .top-nav-right .auth-btns {
    margin-left: 0;
    justify-content: flex-end;
    gap: 6px;
  }

  .top-nav-right .lang-pill {
    height: 34px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .top-nav-right .auth-btn-outline,
  .top-nav-right .auth-btn-solid {
    height: 34px;
    padding: 0 13px;
    font-size: 13px;
  }

  .portal-nav-actions {
    margin-left: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .top-nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .modal-row-2 {
    grid-template-columns: 1fr;
  }

  .chef-restaurant-title {
    font-size: 28px;
  }
  .hero {
    padding-bottom: 42px;
  }

  .hero-inner {
    padding: 0 16px;
  }

  .top-nav-left {
    gap: 14px;
  }

  .nav-link {
    font-size: 13.5px;
  }

  .brand-logo-img {
    width: 168px;
  }

  .hero-tagline {
    font-size: 18px;
  }

  .search-row {
    flex-direction: column;
    gap: 10px;
  }

  .search-input-wrap,
  .cta-lets-go {
    width: 100%;
  }

  .main-content {
    padding: 16px 16px 48px;
  }

  .card-row-two {
    grid-template-columns: 1fr;
  }

  .service-card {
    height: 345px;
  }
}

/* Account Page — Saved Addresses Interactive Map & Autocomplete */
.account-map-wrap {
  margin-top: 14px;
  margin-bottom: 14px;
  border: 1px solid #d5e5d9;
  border-radius: 16px;
  overflow: hidden;
  background: #f5faf6;
}

.account-map-wrap[hidden] {
  display: none;
}

.account-map-canvas {
  width: 100%;
  height: 220px;
  z-index: 1;
}

.account-map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #2f523a;
  background: #eff7f1;
  border-top: 1px solid #dcebe0;
}

.addr-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.addr-search-row .modal-input {
  flex: 1 1 auto;
}

.addr-locate-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 14px;
  font-size: 13px;
}

.saved-addr-mapped-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff7f1;
  border: 1px solid #c9e3d0;
  color: #1e6b38;
  font-size: 11.5px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .addr-search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .account-map-canvas {
    height: 190px;
  }
}

/* Menu Cart Selected Badge & Mini Confetti Blast */
.btn-add-order.in-cart {
  background: linear-gradient(135deg, #135C3F 0%, #1E6B38 60%, #4E944F 100%);
  color: #ffffff;
  border-color: #135C3F;
  box-shadow: 0 3px 10px rgba(19, 92, 63, 0.22);
}

.confetti-bit {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  will-change: transform, opacity;
}

/* =========================================================
   LIVE ORDER STAGES (Chef Controls + Customer Animated View)
   ========================================================= */

.chef-stage-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6fbf7;
  border: 1px solid #d5e8da;
}

.chef-stage-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.chef-stage-panel-head strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #135C3F;
}

.chef-stage-panel-head span {
  font-size: 12px;
  color: #5c7063;
}

.chef-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.chef-stage-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1.5px solid #d9e6dd;
  background: #ffffff;
  color: #2f4236;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.chef-stage-btn:hover {
  border-color: #1E6B38;
  background: #f0f9f2;
  transform: translateY(-1px);
}

.chef-stage-btn.is-active {
  border-color: #1E6B38;
  background: #e5f5e9;
  color: #135C3F;
  box-shadow: 0 3px 10px rgba(19, 92, 63, 0.16);
}

.chef-stage-btn.stage-btn-delivering.is-active {
  border-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.16);
}

.chef-stage-btn-label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.chef-stage-active-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #1E6B38;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.chef-stage-btn.stage-btn-delivering.is-active .chef-stage-active-dot {
  background: #dc2626;
}

/* Customer Live Order Stage Tracker (menu.html & account.html) */
.cust-stage-wrap {
  margin-top: 14px;
}

.account-order-stage-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9e4dc;
}

.cust-stage-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #eff8f1;
  border: 1px solid #cce6d3;
  margin-bottom: 12px;
}

.cust-stage-hero.stage-delivering {
  background: #fff5f5;
  border-color: #fecaca;
}

.cust-stage-hero-anim {
  width: 78px;
  height: 54px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(19, 92, 63, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(19, 92, 63, 0.08);
}

.cust-stage-hero.stage-delivering .cust-stage-hero-anim {
  border-color: rgba(220, 38, 38, 0.25);
}

.cust-stage-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cust-stage-live-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1E6B38;
}

.cust-stage-hero.stage-delivering .cust-stage-live-pill {
  color: #dc2626;
}

.cust-stage-hero-title {
  font-size: 17px;
  font-weight: 800;
  color: #1a2b20;
}

.cust-stage-hero-sub {
  font-size: 13px;
  color: #4f6356;
}

.cust-stage-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cust-stage-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid #e5ece7;
  background: #fafcfb;
  opacity: 0.56;
  text-align: center;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cust-stage-step.is-done {
  opacity: 0.9;
  border-color: #c5e2cd;
  background: #f2faf4;
}

.cust-stage-step.is-current {
  opacity: 1;
  border: 1.5px solid #1E6B38;
  background: #e7f6eb;
  box-shadow: 0 3px 10px rgba(19, 92, 63, 0.14);
}

.cust-stage-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cust-stage-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #203728;
  line-height: 1.2;
}

.cust-countdown-delivering {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* Order Stage SVG Sizing & Smooth Animations */
.order-stage-svg {
  width: 68px;
  height: 46px;
  overflow: visible;
  display: block;
}

.order-stage-svg-sm {
  width: 52px;
  height: 36px;
}

/* 1. Preparing: Chopping Carrot Animation */
.stg-chop-knife {
  transform-box: fill-box;
  transform-origin: 20% 25%;
}

.stg-carrot-slice-1,
.stg-carrot-slice-2 {
  transform-box: fill-box;
  transform-origin: center;
}

.is-active .stg-chop-knife,
.is-current .stg-chop-knife,
.cust-stage-hero .stg-chop-knife,
.chef-stage-btn:hover .stg-chop-knife {
  animation: stgChopKnife 0.65s ease-in-out infinite;
}

.is-active .stg-carrot-slice-1,
.is-current .stg-carrot-slice-1,
.cust-stage-hero .stg-carrot-slice-1,
.chef-stage-btn:hover .stg-carrot-slice-1 {
  animation: stgCarrotPop 0.65s ease-in-out infinite;
}

.is-active .stg-carrot-slice-2,
.is-current .stg-carrot-slice-2,
.cust-stage-hero .stg-carrot-slice-2,
.chef-stage-btn:hover .stg-carrot-slice-2 {
  animation: stgCarrotPop 0.65s ease-in-out 0.1s infinite;
}

@keyframes stgChopKnife {
  0%, 100% { transform: translateY(-4px) rotate(-18deg); }
  45% { transform: translateY(3px) rotate(4deg); }
  65% { transform: translateY(-1px) rotate(-6deg); }
}

@keyframes stgCarrotPop {
  0%, 38%, 100% { transform: translate(0, 0); }
  58% { transform: translate(2.5px, -2.5px); }
}

/* 2. Cooking: Sizzling Skillet & Rising Steam */
.is-active .stg-steam-1,
.is-current .stg-steam-1,
.cust-stage-hero .stg-steam-1,
.chef-stage-btn:hover .stg-steam-1 {
  animation: stgSteamRise 1.4s ease-in-out infinite;
}

.is-active .stg-steam-2,
.is-current .stg-steam-2,
.cust-stage-hero .stg-steam-2,
.chef-stage-btn:hover .stg-steam-2 {
  animation: stgSteamRise 1.4s ease-in-out 0.35s infinite;
}

.is-active .stg-steam-3,
.is-current .stg-steam-3,
.cust-stage-hero .stg-steam-3,
.chef-stage-btn:hover .stg-steam-3 {
  animation: stgSteamRise 1.4s ease-in-out 0.7s infinite;
}

.is-active .stg-stove-flames,
.is-current .stg-stove-flames,
.cust-stage-hero .stg-stove-flames,
.chef-stage-btn:hover .stg-stove-flames {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: stgFlameFlicker 0.55s ease-in-out infinite alternate;
}

@keyframes stgSteamRise {
  0% { transform: translateY(4px); opacity: 0; }
  40% { opacity: 0.9; }
  100% { transform: translateY(-5px); opacity: 0; }
}

@keyframes stgFlameFlicker {
  0% { transform: scaleY(0.86) scaleX(0.96); opacity: 0.85; }
  100% { transform: scaleY(1.12) scaleX(1.04); opacity: 1; }
}

/* 3. Packaging: Dropping Food into Clear Plastic Container & Closing Lid */
.stg-pack-food {
  transform-box: fill-box;
  transform-origin: center;
}

.stg-pack-lid {
  transform-box: fill-box;
  transform-origin: left bottom;
}

.is-active .stg-pack-food,
.is-current .stg-pack-food,
.cust-stage-hero .stg-pack-food,
.chef-stage-btn:hover .stg-pack-food {
  animation: stgPackFoodDrop 1.8s ease-in-out infinite;
}

.is-active .stg-pack-lid,
.is-current .stg-pack-lid,
.cust-stage-hero .stg-pack-lid,
.chef-stage-btn:hover .stg-pack-lid {
  animation: stgPackLidClose 1.8s ease-in-out infinite;
}

@keyframes stgPackFoodDrop {
  0% { transform: translateY(-14px); opacity: 0; }
  20% { transform: translateY(-10px); opacity: 1; }
  48%, 85% { transform: translateY(5px); opacity: 1; }
  100% { transform: translateY(5px); opacity: 0; }
}

@keyframes stgPackLidClose {
  0%, 42% { transform: rotate(-48deg); }
  66%, 88% { transform: rotate(0deg); }
  100% { transform: rotate(-48deg); }
}

/* 4. Delivering: Fast Red Racecar Animation */
.stg-racecar {
  transform-box: fill-box;
  transform-origin: center;
}

.is-active .stg-racecar,
.is-current .stg-racecar,
.cust-stage-hero .stg-racecar,
.chef-stage-btn:hover .stg-racecar {
  animation: stgRacecarZoom 0.85s ease-in-out infinite;
}

.is-active .stg-speed-lines,
.is-current .stg-speed-lines,
.cust-stage-hero .stg-speed-lines,
.chef-stage-btn:hover .stg-speed-lines {
  animation: stgSpeedStreak 0.45s linear infinite;
}

.is-active .stg-road-dash,
.is-current .stg-road-dash,
.cust-stage-hero .stg-road-dash,
.chef-stage-btn:hover .stg-road-dash {
  animation: stgRoadScroll 0.4s linear infinite;
}

@keyframes stgRacecarZoom {
  0%, 100% { transform: translate(-2px, 0px); }
  35% { transform: translate(3.5px, -1.2px); }
  70% { transform: translate(1.5px, 0.5px); }
}

@keyframes stgSpeedStreak {
  0% { transform: translateX(4px); opacity: 0.95; }
  100% { transform: translateX(-7px); opacity: 0.15; }
}

@keyframes stgRoadScroll {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 22; }
}

@media (prefers-reduced-motion: reduce) {
  .stg-chop-knife,
  .stg-carrot-slice-1,
  .stg-carrot-slice-2,
  .stg-steam,
  .stg-stove-flames,
  .stg-pack-food,
  .stg-pack-lid,
  .stg-racecar,
  .stg-speed-lines,
  .stg-road-dash {
    animation: none !important;
  }
}

@media (max-width: 680px) {
  .chef-stage-grid,
  .cust-stage-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   TOP-RIGHT "MEAL STATUS" LIVE NAV BUTTON & POPOVER
   ========================================================= */

.meal-status-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  min-height: 38px;
  padding: 0 13px 0 9px;
  border-radius: 999px;
  border: 1.5px solid rgba(30, 107, 56, 0.3);
  background: #ffffff;
  color: #1a2e22;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(19, 92, 63, 0.09);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.meal-status-nav-btn[hidden] {
  display: none;
}

.meal-status-nav-btn:hover {
  transform: translateY(-1px);
  border-color: #1E6B38;
  background: #f4fbf6;
  box-shadow: 0 4px 12px rgba(19, 92, 63, 0.15);
}

.meal-status-nav-btn.ms-active {
  background: #eaf7ee;
  border-color: #1E6B38;
}

.meal-status-nav-btn.ms-delivering {
  background: #fef2f2;
  border-color: #dc2626;
}

.meal-status-nav-btn.ms-delivering:hover {
  background: #fee2e2;
  border-color: #b91c1c;
}

.meal-status-nav-btn.ms-pending {
  background: #fffbeb;
  border-color: #d97706;
}

.ms-anim-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  flex-shrink: 0;
}

.ms-anim-icon .order-stage-svg-sm {
  width: 38px;
  height: 28px;
}

.ms-idle-icon {
  font-size: 16px;
  line-height: 1;
}

.ms-text-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.ms-top-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1E6B38;
}

.meal-status-nav-btn.ms-delivering .ms-top-label {
  color: #dc2626;
}

.meal-status-nav-btn.ms-pending .ms-top-label {
  color: #b45309;
}

.ms-sub-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #182b1f;
}

.ms-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
  animation: msPulseDot 1.6s ease-out infinite;
}

.meal-status-nav-btn.ms-delivering .ms-live-dot {
  background: #dc2626;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55);
}

.ms-live-dot.ms-dot-amber {
  background: #d97706;
}

@keyframes msPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.meal-status-dialog {
  max-width: 560px;
}

.meal-modal-last {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f6faf7;
  border: 1px solid #dbeadf;
  font-size: 13.5px;
  color: #24382b;
}

@media (max-width: 560px) {
  .meal-status-nav-btn {
    padding: 3px 10px 3px 7px;
    gap: 6px;
  }
  .ms-sub-label {
    font-size: 11.5px;
  }
}

/* =========================================================
   DELIVERING: LIVE DRIVER-TO-HOME MAP TRACKER
   ========================================================= */

.live-delivery-map-card {
  margin-bottom: 12px;
  border-radius: 16px;
  border: 1.5px solid #fecaca;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.1);
  animation: liveMapSlideIn 0.32s ease-out;
}

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

.live-delivery-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #fff5f5 0%, #eff8f1 100%);
  border-bottom: 1px solid #f2dcd9;
}

.live-delivery-map-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #dc2626;
}

.live-map-badge .ms-live-dot {
  background: #dc2626;
}

.live-delivery-map-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #1a2b20;
}

.live-delivery-eta-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: #1E6B38;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.live-delivery-map-canvas {
  width: 100%;
  height: 245px;
  z-index: 1;
  background: #eaf3ec;
}

.live-delivery-map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 9px 14px;
  background: #f8fbf9;
  border-top: 1px solid #e3ece5;
  font-size: 12.5px;
  font-weight: 600;
  color: #375040;
}

.live-map-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.legend-driver {
  background: #fee2e2;
  color: #991b1b;
}

.legend-home {
  background: #e6f5ea;
  color: #135C3F;
}

/* Custom Leaflet Driver Racecar & Home Pin Markers */
.live-driver-car-icon,
.live-home-pin-icon {
  background: transparent;
  border: none;
}

.driver-pin-wrap {
  position: relative;
  width: 48px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-pin-pulse {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.25);
  animation: driverRadarPulse 1.6s ease-out infinite;
}

@keyframes driverRadarPulse {
  0% { transform: scale(0.75); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

.driver-pin-badge {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #dc2626;
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-pin-badge .order-stage-svg-sm {
  width: 38px;
  height: 26px;
}

.home-pin-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1E6B38;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 3px 10px rgba(19, 92, 63, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

@media (max-width: 560px) {
  .live-delivery-map-canvas {
    height: 210px;
  }
}

/* Sign-In Modal — Reset Password Link Row */
.modal-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.modal-forgot-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-rust);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-forgot-btn:hover {
  color: var(--brand-rust-hover);
}

/* Password Strength 3-Segment Effectiveness Banner */
.pw-strength-banner {
  margin-top: 10px;
  margin-bottom: 4px;
}

.pw-strength-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.pw-bar-seg {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #d5dce6;
  transition: background-color 0.22s ease;
}

.pw-strength-banner.pw-level-1 .pw-bar-seg[data-seg="1"] {
  background: #dc2626;
}

.pw-strength-banner.pw-level-2 .pw-bar-seg[data-seg="1"],
.pw-strength-banner.pw-level-2 .pw-bar-seg[data-seg="2"] {
  background: #2f8a00;
}

.pw-strength-banner.pw-level-3 .pw-bar-seg[data-seg="1"],
.pw-strength-banner.pw-level-3 .pw-bar-seg[data-seg="2"],
.pw-strength-banner.pw-level-3 .pw-bar-seg[data-seg="3"] {
  background: #2f8a00;
}

.pw-strength-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pw-strength-icon {
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pw-icon-circle {
  fill: #52647a;
  transition: fill 0.2s ease;
}

.pw-strength-banner.pw-state-weak .pw-icon-circle {
  fill: #dc2626;
}

.pw-strength-banner.pw-state-fair .pw-icon-circle {
  fill: #52647a;
}

.pw-strength-banner.pw-state-strong .pw-icon-circle {
  fill: #2f8a00;
}

.pw-strength-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #425466;
}

.pw-strength-banner.pw-state-weak .pw-strength-text {
  color: #b91c1c;
}

.pw-strength-banner.pw-state-strong .pw-strength-text {
  color: #1e6b38;
  font-weight: 600;
}

/* =========================================================
   LIVE ORDER CHAT WINDOW (Chef <-> Customer) & REVIEW MODAL
   ========================================================= */

.btn-order-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid #1E6B38;
  background: #eaf7ee;
  color: #135C3F;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-order-chat:hover {
  background: #d8f0df;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(19, 92, 63, 0.16);
}

.chat-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1E6B38;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.cust-order-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.order-chat-window {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  width: 348px;
  max-width: calc(100vw - 24px);
  max-height: min(490px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #ffffff;
  border: 1.5px solid rgba(19, 92, 63, 0.25);
  box-shadow: 0 14px 40px rgba(15, 36, 23, 0.24);
  overflow: hidden;
  animation: liveMapSlideIn 0.22s ease-out;
}

.order-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #135C3F 0%, #1E6B38 70%, #3E8E41 100%);
  color: #ffffff;
}

.order-chat-title {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
}

.order-chat-sub {
  display: block;
  font-size: 11px;
  opacity: 0.88;
  margin-top: 2px;
}

.order-chat-close {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-chat-close::before,
.order-chat-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
}

.order-chat-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.order-chat-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.order-chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.order-chat-messages {
  flex: 1 1 auto;
  min-height: 190px;
  max-height: 300px;
  overflow-y: auto;
  padding: 12px 12px 10px;
  background: #f6faf7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-chat-empty {
  margin: auto;
  text-align: center;
  font-size: 13px;
  color: #5c7063;
  padding: 16px 10px;
}

.order-chat-bubble {
  max-width: 84%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.38;
  word-break: break-word;
}

.order-chat-bubble.is-mine {
  align-self: flex-end;
  background: #1E6B38;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.order-chat-bubble.is-theirs {
  align-self: flex-start;
  background: #ffffff;
  color: #1c2e22;
  border: 1px solid #d8e7dc;
  border-bottom-left-radius: 4px;
}

.order-chat-meta {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.78;
  margin-bottom: 3px;
}

.order-chat-error {
  margin: 0;
  padding: 6px 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
}

.order-chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  background: #ffffff;
  border-top: 1px solid #e2ece5;
}

.order-chat-input {
  flex: 1 1 auto;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid #cfe0d4;
  font-size: 13.5px;
  outline: none;
}

.order-chat-input:focus {
  border-color: #1E6B38;
}

.order-chat-send {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #135C3F 0%, #98C572 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.order-chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.order-review-dialog {
  max-width: 500px;
}

@media (max-width: 560px) {
  .order-chat-window {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

/* Floating "Chat with Chef" Launcher Pill (Bottom Right while Order Accepted) */
.order-chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1180;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #135C3F 0%, #1E6B38 65%, #5FA84E 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(19, 92, 63, 0.34);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.order-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(19, 92, 63, 0.42);
}

.order-chat-fab.has-unread {
  animation: chatFabBounce 1.4s ease-in-out infinite;
}

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

.chat-fab-icon {
  font-size: 17px;
  line-height: 1;
}

.chat-fab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

@media (max-width: 560px) {
  .order-chat-fab {
    right: 14px;
    bottom: 14px;
    height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }
}

/* Donations Modal — Logo-Gradient "Apply Here :)" Bubble */
.donation-apply-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #135C3F 0%, #317449 28%, #599356 58%, #80B366 82%, #98C572 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(19, 92, 63, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.donation-apply-bubble:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(19, 92, 63, 0.32);
  filter: brightness(1.04);
}

/* Admin Portal — Organized Donation Verification Documents & Preview Modal */
.don-mini-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.don-docs-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6faf7;
  border: 1px solid #d6e6db;
}

.don-docs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: #135C3F;
}

.don-doc-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e5f4e9;
  color: #135C3F;
  font-size: 12px;
  font-weight: 700;
}

.don-docs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.don-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #dce9df;
}

.don-doc-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.don-doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.don-doc-badge.is-pdf {
  background: #fee2e2;
  color: #b91c1c;
}

.don-doc-badge.is-img {
  background: #e0f2fe;
  color: #0369a1;
}

.don-doc-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.don-doc-meta strong {
  font-size: 13.5px;
  color: #1b2d21;
  word-break: break-word;
}

.don-doc-meta span {
  font-size: 12px;
  color: #5b6f62;
}

.don-doc-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.don-reject-reason-box {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 11px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.45;
}

.doc-preview-dialog {
  max-width: 780px;
}

.doc-preview-body {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dce6de;
  background: #f3f7f4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.doc-preview-frame {
  width: 100%;
  height: 68vh;
  border: none;
  background: #ffffff;
}

.doc-preview-img {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

/* Future Date/Time Picker (Date + AM/PM Toggle + Horizontal Hours Scroll) */
.future-schedule-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.future-schedule-group > * {
  min-width: 0;
  max-width: 100%;
}

.future-ampm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.future-ampm-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #edf4ef;
  border: 1px solid #cfe0d4;
  gap: 4px;
}

.future-ampm-btn {
  border: none;
  background: transparent;
  color: #2c4a38;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.future-ampm-btn:hover:not(.active) {
  background: rgba(45, 106, 79, 0.1);
}

.future-ampm-btn.active {
  background: linear-gradient(90deg, #1b4332 0%, #2d6a4f 55%, #74b743 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(27, 67, 50, 0.25);
}

.future-hours-scroll-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.future-hours-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d5e2d8;
  background: #ffffff;
  color: #1b4332;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.future-hours-arrow:hover {
  background: #eef7f0;
  border-color: #2d6a4f;
}

.future-hours-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 6px;
  flex: 1 1 auto;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: #9ec3a8 transparent;
}

.future-hours-track::-webkit-scrollbar {
  height: 5px;
}

.future-hours-track::-webkit-scrollbar-track {
  background: transparent;
}

.future-hours-track::-webkit-scrollbar-thumb {
  background: #9ec3a8;
  border-radius: 999px;
}

.future-hour-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid #d2e0d6;
  background: #ffffff;
  color: #1f3327;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.future-hour-chip:hover:not(:disabled):not(.active) {
  border-color: #2d6a4f;
  background: #f1f8f3;
}

.future-hour-chip.active {
  background: linear-gradient(90deg, #1b4332 0%, #2d6a4f 55%, #74b743 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
}

.future-hour-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f3f4f6;
  color: #7c857e;
  border-color: #e5e7eb;
}

.future-selected-summary {
  margin: 0;
  padding: 7px 11px;
  border-radius: 10px;
  background: #eef8f1;
  border: 1px solid #cbe4d2;
  color: #164e36;
  font-size: 12.5px;
  font-weight: 700;
}

.future-selected-summary.is-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

/* Cute Gear Address Edit Button & Animated Delivery Dropoff Settings */
.addr-input-gear-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.addr-input-gear-row .modal-input {
  flex: 1 1 auto;
  min-width: 0;
}

.addr-gear-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1.5px solid #c7decb;
  background: linear-gradient(135deg, #f4fbf6 0%, #e1f3e6 100%);
  color: #1b4332;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.addr-gear-btn:hover {
  border-color: #2d6a4f;
  background: linear-gradient(135deg, #e7f6ec 0%, #d1ebd9 100%);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.18);
  transform: translateY(-1px);
}

.addr-gear-btn .cute-gear-svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.addr-gear-btn:hover .cute-gear-svg {
  transform: rotate(60deg) scale(1.08);
}

.addr-dropoff-badge {
  margin-top: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid #cce3d2;
  background: #f2faf4;
  color: #164e36;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.addr-dropoff-badge:hover {
  background: #e6f5ea;
  border-color: #2d6a4f;
}

.addr-dropoff-badge-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.addr-dropoff-badge-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.addr-dropoff-badge-text {
  font-size: 13px;
  font-weight: 800;
  color: #164e36;
}

.addr-dropoff-badge-edit {
  font-size: 11.5px;
  font-weight: 700;
  color: #2d6a4f;
  background: #ffffff;
  border: 1px solid #c7decb;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.saved-addr-dropoff-pill {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  border: 1px solid #c9e2cf;
  background: #ffffff;
  color: #164e36;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.saved-addr-dropoff-pill:hover {
  background: #eaf7ee;
  border-color: #2d6a4f;
}

/* Chef Delivery Handoff Banner & Modal (shown immediately on Delivering icon) */
.chef-dropoff-banner {
  margin: 10px 0 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 2px solid #2d6a4f;
  background: linear-gradient(135deg, #eefaf2 0%, #ddf3e4 100%);
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.12);
}

.chef-dropoff-banner-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #cce3d2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.08);
}

.chef-dropoff-banner-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.chef-dropoff-banner-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1e6b38;
  margin-bottom: 2px;
}

.chef-dropoff-banner-title {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #143d29;
  line-height: 1.2;
}

.chef-dropoff-banner-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #355444;
  line-height: 1.35;
}

.chef-dropoff-modal-hero {
  margin: 10px 0 14px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 2px solid #2d6a4f;
  background: linear-gradient(135deg, #effaf2 0%, #dff4e5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.chef-dropoff-modal-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: #ffffff;
  border: 1.5px solid #c9e2cf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.14);
}

.chef-dropoff-modal-label {
  font-size: 21px;
  font-weight: 900;
  color: #143d29;
  margin: 2px 0 0;
}

.chef-dropoff-modal-desc {
  margin: 0;
  font-size: 13.5px;
  color: #2f5240;
  line-height: 1.45;
}

.chef-dropoff-modal-meta {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #cde3d3;
  text-align: left;
  font-size: 13px;
  color: #1c3326;
  line-height: 1.45;
}

.chef-dropoff-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chef-dropoff-modal-actions > button {
  flex: 1 1 140px;
}

/* Smooth Fast Custom Document Type Dropdown (Donation Application) */
.don-doctype-wrap {
  position: relative;
}

.don-doctype-trigger {
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.don-doctype-trigger:hover {
  border-color: #2d6a4f;
  background: #fbfdfb;
}

.don-doctype-trigger.is-open,
.don-doctype-trigger:focus-visible {
  outline: none;
  border-color: #1e6b38;
  box-shadow: 0 0 0 3px rgba(30, 107, 56, 0.15);
}

.don-doctype-trigger.is-placeholder {
  color: #6b7280;
  font-weight: 500;
}

.don-doctype-chevron {
  flex: 0 0 auto;
  color: #2d6a4f;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.don-doctype-trigger.is-open .don-doctype-chevron {
  transform: rotate(180deg);
}

.don-doctype-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 6px;
  border-radius: 12px;
  border: 1.5px solid #cde2d3;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(20, 56, 36, 0.18);
  display: grid;
  gap: 4px;
  transform-origin: top center;
  animation: donDocPop 0.11s cubic-bezier(0.16, 1, 0.3, 1);
}

.don-doctype-menu[hidden] {
  display: none !important;
}

@keyframes donDocPop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.don-doctype-opt {
  width: 100%;
  border: none;
  background: transparent;
  color: #1c3326;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 9px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
}

.don-doctype-opt:hover {
  background: #eef8f1;
  color: #144d2f;
}

.don-doctype-opt.is-selected {
  background: linear-gradient(90deg, #1b4332 0%, #2d6a4f 58%, #74b743 100%);
  color: #ffffff;
  font-weight: 700;
}

.don-doctype-opt .don-opt-check {
  opacity: 0;
  font-weight: 900;
  font-size: 13px;
}

.don-doctype-opt.is-selected .don-opt-check {
  opacity: 1;
}

/* Dedicated Step-2 Account Verification Screen Bubble */
.verify-screen-bubble {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f3fbf5 0%, #e7f6ec 100%);
  border: 1.5px solid #bfe0c8;
  display: grid;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.08);
}

.verify-channel-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.verify-channel-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 13px;
  background: #ffffff;
  border: 1.5px solid #cfe3d5;
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.verify-channel-card:hover {
  border-color: #2d6a4f;
  background: #f9fdf9;
}

.verify-channel-card:has(input:checked) {
  border-color: #1e6b38;
  background: #f1faf3;
  box-shadow: 0 0 0 3px rgba(30, 107, 56, 0.12);
}

.verify-channel-card input {
  margin-top: 2px;
  accent-color: #1e6b38;
  flex-shrink: 0;
}

.verify-channel-card-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.verify-channel-card-copy strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #164e36;
}

.verify-channel-card-copy span {
  font-size: 12px;
  color: #526a5d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verify-send-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.verify-code-center {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.verify-code-center .verify-code-input {
  max-width: 220px;
  height: 48px;
  font-size: 22px;
  letter-spacing: 0.34em;
  border-width: 1.5px;
}

@media (max-width: 520px) {
  .verify-channel-cards {
    grid-template-columns: 1fr;
  }
}

.dropoff-options-grid {
  display: grid;
  gap: 10px;
}

.dropoff-option-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 15px;
  border: 2px solid #dce8df;
  background: #ffffff;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.dropoff-option-card:hover {
  border-color: #74b743;
  background: #f8fcf9;
}

.dropoff-option-card.active {
  border-color: #1e6b38;
  background: linear-gradient(135deg, #f1faf3 0%, #e5f5e9 100%);
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.14);
}

.dropoff-option-anim {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dce9df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.08);
}

.dropoff-option-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.dropoff-option-copy strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #163a28;
}

.dropoff-option-copy span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: #52685b;
  line-height: 1.35;
}

.dropoff-option-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #bfd6c5;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.dropoff-option-card.active .dropoff-option-check {
  border-color: #1e6b38;
  background: linear-gradient(135deg, #1b4332 0%, #74b743 100%);
}

/* Steamy Burger on Stairs Animation */
.burger-steam {
  opacity: 0;
  animation: burgerSteamRise 2.1s ease-in-out infinite;
}

.burger-steam.s2 {
  animation-delay: 0.65s;
}

.burger-steam.s3 {
  animation-delay: 1.3s;
}

@keyframes burgerSteamRise {
  0% {
    opacity: 0;
    transform: translateY(3px) scale(0.92);
  }
  30% {
    opacity: 0.9;
  }
  75% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translateY(-5.5px) scale(1.08);
  }
}

/* Happy Person Opening Door Animation */
.door-swing-leaf {
  transform-origin: 15px 30px;
  animation: doorSwingGreet 2.6s ease-in-out infinite;
}

.door-person-wave {
  transform-origin: 33px 35px;
  animation: doorPersonWave 1.35s ease-in-out infinite;
}

@keyframes doorSwingGreet {
  0%, 100% {
    transform: scaleX(1);
  }
  45%, 65% {
    transform: scaleX(0.76);
  }
}

@keyframes doorPersonWave {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(12deg);
  }
  75% {
    transform: rotate(-14deg);
  }
}
