/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  --brand:        #16a34a;
  --brand-dark:   #15803d;
  --brand-light:  #dcfce7;
  --accent:       #22c55e;
  --accent-dark:  #16a34a;
  --accent-light: #f0fdf4;
  --surface:      #ffffff;
  --surface-2:    #f8fafc;
  --border:       #e2e8f0;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --danger:       #ef4444;
  --radius:       12px;
  --radius-lg:    18px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:       0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:    0 20px 48px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.06);
  --transition:   150ms cubic-bezier(.4,0,.2,1);
}

/* ── Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  background: #f0fdf4;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(22,163,74,.10), transparent),
    radial-gradient(ellipse 60% 40% at 90% 80%,  rgba(34,197,94,.07), transparent),
    radial-gradient(ellipse 50% 40% at 10% 60%,  rgba(21,128,61,.05), transparent);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  margin-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Focus ring ────────────────────────────────────────────────── */
.btn:focus-visible,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(22,163,74,.25) !important;
  outline: none;
}

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  border-bottom: 0 !important;
  box-shadow: 0 4px 24px rgba(160,16,64,.35) !important;
  padding: 0.55rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.brand-mark {
  color: #ffffff !important;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* brand logo image used instead of emoji */

.navbar .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem !important;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.navbar .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,.15);
}

.navbar .btn {
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
}

.navbar .btn-outline-secondary {
  color: #fff !important;
  border-color: rgba(255,255,255,.45) !important;
  background: transparent;
}

.navbar .btn-outline-secondary:hover {
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.7) !important;
}

.navbar .btn-outline-primary {
  color: #fff !important;
  border-color: rgba(255,255,255,.5) !important;
  background: transparent !important;
}

.navbar .btn-outline-primary:hover {
  background: rgba(255,255,255,.18) !important;
  border-color: #fff !important;
}

.navbar .btn-primary {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(236,72,153,.4);
}

.navbar .btn-primary:hover {
  background: #166534 !important;
  border-color: #166534 !important;
  box-shadow: 0 4px 14px rgba(22,163,74,.5);
}

.nav-user-chip {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 14px;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover  { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 4px 12px rgba(22,163,74,.35); }
.btn-primary:active { background: #166534; }

.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(22,163,74,.3); }

.btn-outline-secondary {
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-outline-secondary:hover { background: var(--surface-2); color: var(--text); border-color: #cbd5e1; }

.btn-light { background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.5); color: var(--text); }
.btn-light:hover { background: #fff; border-color: #fff; box-shadow: var(--shadow); }

.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.8); color: #fff; }

.btn-outline-danger { color: var(--danger); border-color: #fecaca; }
.btn-outline-danger:hover { background: #fef2f2; border-color: var(--danger); }

/* ── Form controls ─────────────────────────────────────────────── */
.form-control,
.form-select {
  border-color: var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  padding: 0.6rem 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
}

.form-label {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

/* ── Card / surface ────────────────────────────────────────────── */
.card-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ── Page hero ─────────────────────────────────────────────────── */
.page-hero {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: #fff;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.compact-hero {
  align-items: center;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 36px 40px;
}

.compact-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.compact-hero p { color: rgba(255,255,255,.85); margin-bottom: 0; }

.admin-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 55%, #3b82f6 100%) !important;
}

.hero-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.eyebrow {
  color: rgba(255,255,255,.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--brand); }

/* ── Home page ─────────────────────────────────────────────────── */
.fs-hero {
  margin-top: 16px;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, #f5f8f1 0%, #f5f8f1 38%, rgba(245,248,241,.92) 45%, rgba(245,248,241,.15) 70%),
    url("/images/onam-sadya.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.fs-hero__content {
  width: 48%;
  padding: 48px 0 30px 34px;
  position: relative;
  z-index: 2;
}

.fs-eyebrow {
  color: #166b3c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.fs-brand {
  font-size: clamp(3rem, 8vw, 67px);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 17px;
  letter-spacing: -3px;
}

.fs-sub {
  font-size: clamp(1.2rem, 3vw, 29px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
}

.fs-desc {
  color: #5d6470;
  font-size: 17px;
  line-height: 1.55;
  max-width: 500px;
  margin-bottom: 25px;
}

.fs-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.fs-btn-primary {
  height: 55px;
  padding: 0 27px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  background: #199344;
  color: #fff !important;
  border: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.fs-btn-primary:hover { background: #15803d; color: #fff !important; }

.fs-btn-secondary {
  height: 55px;
  padding: 0 27px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  background: #fff;
  border: 1.5px solid #278f51;
  color: #18213a !important;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.fs-btn-secondary:hover { border-color: #15803d; }

.fs-btn-instant {
  height: 55px;
  padding: 0 27px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #15803d !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.fs-btn-instant:hover { background: #dcfce7; }

.fs-features { display: flex; gap: 35px; }

.fs-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #283343;
}

.fs-ficon { font-size: 22px; }

.fs-services { padding: 32px 0 18px; }

.fs-section-label {
  color: #178341;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  margin-bottom: 15px;
}

.fs-section-h2 {
  font-size: clamp(1.6rem, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.fs-section-desc {
  font-size: 17px;
  color: #596177;
  margin-bottom: 22px;
}

.fs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fs-card {
  background: var(--surface);
  border-radius: 15px;
  padding: 20px 28px;
  min-height: 210px;
  box-shadow: 0 4px 15px rgba(0,0,0,.07);
}

.fs-card-top {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 17px;
}

.fs-card-icon {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ecfae8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.fs-card-num {
  font-size: 12px;
  font-weight: 700;
  color: #178b42;
  margin-bottom: 8px;
}

.fs-card h3 { font-size: 19px; font-weight: 700; }
.fs-card p  { color: #747b8c; font-size: 16px; line-height: 1.45; }

.fs-contact {
  margin-top: 17px;
  min-height: 86px;
  border-radius: 14px;
  background: #188d42;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  align-items: center;
}

.fs-contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,.25);
}
.fs-contact-item:last-child { border-right: 0; }

.fs-contact-icon {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  color: #188d42;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.fs-contact-label {
  font-size: 11px;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 5px;
}

.fs-contact-value { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }

.fs-categories {
  margin-top: 12px;
  background: #edf9f2;
  min-height: 68px;
  border-radius: 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  overflow: hidden;
}

.fs-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid #b9cfc2;
  color: #303945;
  font-size: 14px;
  font-weight: 500;
}
.fs-cat:last-child { border-right: 0; }
.fs-cat span { font-size: 22px; }

@media (max-width: 900px) {
  .fs-hero { min-height: 600px; background-position: 65% center; }
  .fs-hero__content { width: 70%; }
  .fs-cards { grid-template-columns: 1fr; }
  .fs-contact { grid-template-columns: 1fr; }
  .fs-contact-item { padding: 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
  .fs-contact-item:last-child { border-bottom: 0; }
  .fs-categories { flex-wrap: wrap; padding: 10px; }
  .fs-cat { width: 33.33%; padding: 12px; border-right: 0; }
}

@media (max-width: 600px) {
  .fs-hero {
    min-height: 680px;
    background: linear-gradient(180deg, rgba(245,248,241,.96) 0%, rgba(245,248,241,.90) 45%, rgba(245,248,241,.10) 75%), url("/images/onam-sadya.jpg");
    background-position: center;
    background-size: cover;
  }
  .fs-hero__content { width: 100%; padding: 30px 22px; }
  .fs-brand { font-size: 48px; }
  .fs-sub { font-size: 24px; }
  .fs-btns { flex-direction: column; }
  .fs-features { flex-wrap: wrap; gap: 15px; }
  .fs-section-h2 { font-size: 27px; }
  .fs-cat { width: 50%; }
}

/* ── Home hero (legacy unused) ─────────────────────────────────── */
.hc-wrap { padding: 1.25rem 0 0; }

.hc-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 28px rgba(0,0,0,.08);
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 430px;
  overflow: hidden;
}

.hc-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem 3rem 3rem;
}

.hc-eyebrow {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hc-brand {
  color: var(--text);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: .35rem;
}

.hc-lead {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 1.6rem;
  max-width: 390px;
}

.hc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.hc-btn-primary {
  background: var(--brand);
  border: none;
  border-radius: 8px;
  color: #fff !important;
  font-size: .875rem;
  font-weight: 600;
  padding: .62rem 1.2rem;
}
.hc-btn-primary:hover { background: var(--brand-dark); color: #fff !important; }

.hc-btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text) !important;
  font-size: .875rem;
  font-weight: 600;
  padding: .62rem 1.2rem;
}
.hc-btn-outline:hover { border-color: var(--brand); color: var(--brand) !important; }

.hc-btn-instant {
  align-items: center;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 8px;
  color: #15803d !important;
  display: inline-flex;
  font-size: .875rem;
  font-weight: 700;
  gap: .4rem;
  padding: .62rem 1.2rem;
}
.hc-btn-instant:hover { background: #dcfce7; color: #15803d !important; }

.hc-trust { display: flex; flex-wrap: wrap; gap: 1rem; }

.hc-trust-item {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: .74rem;
  font-weight: 500;
  gap: .35rem;
}

.hc-trust-icon {
  align-items: center;
  background: #f0fdf4;
  border-radius: 50%;
  display: inline-flex;
  font-size: .7rem;
  height: 19px;
  justify-content: center;
  width: 19px;
}

.hc-right {
  overflow: hidden;
  position: relative;
}

.hc-right img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hc-watermark {
  bottom: 1.2rem;
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.4;
  position: absolute;
  right: 1.4rem;
  text-align: right;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  text-transform: uppercase;
}

.home-section__sub {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.feature-icon-wrap {
  align-items: center;
  background: #f0fdf4;
  border-radius: 12px;
  display: flex;
  font-size: 1.3rem;
  height: 46px;
  justify-content: center;
  margin-bottom: .85rem;
  width: 46px;
}

.hc-service-strip {
  background: #071a0d;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: .9rem 0;
}

.hc-service-strip__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  justify-content: center;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hc-service-strip__inner span {
  color: rgba(255,255,255,.5);
  font-size: .74rem;
  font-weight: 500;
}

.hc-service-strip__inner .sep { color: rgba(255,255,255,.18); font-size: .6rem; }

@media (max-width: 768px) {
  .hc-card { grid-template-columns: 1fr; }
  .hc-right { height: 220px; }
  .hc-left { padding: 2rem 1.5rem; }
  .hc-actions { flex-direction: column; align-items: flex-start; }
}

/* ── Home hero (legacy) ────────────────────────────────────────── */
.home-hero {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(10,40,20,.88) 0%, rgba(10,40,20,.6) 55%, rgba(10,40,20,.25) 100%),
    url("https://images.unsplash.com/photo-1543353071-10c8ba85a904?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(560px, calc(100vh - 180px));
  overflow: hidden;
  padding: 56px;
}

.home-hero__content { max-width: 760px; }

.home-hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 18px;
}

.home-hero__lead {
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 580px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.home-hero__panel {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  color: var(--text);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.home-hero__panel div {
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}

.home-hero__panel div:last-child { border-bottom: 0; }

.hero-meal-icon {
  border-radius: 8px;
  font-size: 1.4rem;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-meal-icon.breakfast { background: #fef9c3; }
.hero-meal-icon.lunch     { background: #dcfce7; }
.hero-meal-icon.dinner    { background: #ede9fe; }

.home-hero__panel span {
  color: var(--text-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-hero__panel strong { display: block; font-size: 0.95rem; font-weight: 700; }

/* ── Home sections ─────────────────────────────────────────────── */
.home-section { margin-top: 40px; }

.home-section__heading { max-width: 760px; }

.home-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.home-feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.home-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.home-feature:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.feature-number {
  background: linear-gradient(135deg, var(--brand), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.home-feature h3 { font-size: 1.1rem; font-weight: 700; margin-top: 14px; }
.home-feature p  { color: var(--text-muted); font-size: 0.925rem; margin-bottom: 0; }

.home-contact-band {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  display: grid;
  gap: 0;
  margin-top: 20px;
  overflow: hidden;
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.home-contact-band > div {
  border-right: 1px solid rgba(255,255,255,.1);
  padding: 24px 28px;
}

.home-contact-band > div:last-child { border-right: 0; }

.home-contact-band span  { color: rgba(255,255,255,.65); display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 4px; text-transform: uppercase; }
.home-contact-band strong { display: block; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }

/* ── Contact band (customer page) ─────────────────────────────── */
.contact-band {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-radius: var(--radius);
  color: #fff;
  display: grid;
  gap: 0;
  overflow: hidden;
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.contact-band > div {
  border-right: 1px solid rgba(255,255,255,.15);
  padding: 18px 22px;
}

.contact-band > div:last-child { border-right: 0; }
.contact-band span   { color: rgba(255,255,255,.7); display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; text-transform: uppercase; }
.contact-band strong { display: block; font-size: 0.92rem; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 768px) {
  .contact-band { grid-template-columns: 1fr; }
  .contact-band > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .contact-band > div:last-child { border-bottom: 0; }
}

/* Mobile login header hidden on desktop */
.login-mobile-header { display: none; }

/* ── Auth panels ───────────────────────────────────────────────── */
.auth-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 32px auto;
  max-width: 460px;
  padding: 36px;
}

.auth-panel h1,
.auth-panel h2 { font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.auth-panel .text-muted { font-size: 0.9rem; margin-bottom: 24px; }

.profile-panel { max-width: 720px; }

.login-showcase {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0,1.1fr) minmax(360px,.8fr);
}

.login-story {
  background:
    linear-gradient(rgba(10,40,20,.7), rgba(10,40,20,.7)),
    url("https://images.unsplash.com/photo-1601050690597-df0568f70950?auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 580px;
  padding: 48px;
}

.login-story h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.login-story p  { color: rgba(255,255,255,.88); font-size: 1.05rem; max-width: 580px; }

.login-panel { align-self: center; margin: 0; }

.contact-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  color: #fff;
  margin-top: 20px;
  max-width: 440px;
  padding: 16px;
}

.contact-card strong { font-size: 0.85rem; font-weight: 700; letter-spacing: .04em; opacity: .7; text-transform: uppercase; }
.contact-card span   { display: block; font-size: 0.95rem; margin-top: 4px; }

/* ── Stats grid ────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
}

.stats-grid > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  transition: box-shadow var(--transition);
}

.stats-grid > div:hover { box-shadow: var(--shadow); }

.stats-grid span   { color: var(--text-muted); display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; text-transform: uppercase; }
.stats-grid strong { color: var(--text); display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }

/* ── Admin stat cards ────────────────────────────────────────────────────── */
.admin-stat-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.admin-stat-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.admin-stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.admin-stat-card span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.admin-stat-card strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.admin-stat-card strong small {
  font-size: 1rem;
  font-weight: 700;
  vertical-align: super;
  margin-right: 1px;
}

.admin-stat-card > small {
  display: block;
  font-size: 0.72rem;
  margin-top: 4px;
  opacity: 0.7;
}

.stat-neutral              { background: #f8fafc; }
.stat-neutral span         { color: var(--text-muted); }
.stat-neutral strong       { color: var(--text); }

.stat-breakfast            { background: linear-gradient(135deg,#fffbeb,#fef9c3); border-color:#fde68a; }
.stat-breakfast span       { color: #92400e; }
.stat-breakfast strong     { color: #78350f; }

.stat-lunch                { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-color:#86efac; }
.stat-lunch span           { color: #166534; }
.stat-lunch strong         { color: #14532d; }

.stat-dinner               { background: linear-gradient(135deg,#f5f3ff,#ede9fe); border-color:#c4b5fd; }
.stat-dinner span          { color: #5b21b6; }
.stat-dinner strong        { color: #4c1d95; }

.stat-money                { background: #f8fafc; border-color: var(--border); }
.stat-money span           { color: var(--text-muted); }
.stat-money strong         { color: var(--text); }

.stat-carry                { background: linear-gradient(135deg,#fff7ed,#ffedd5); border-color:#fdba74; }
.stat-carry span           { color: #9a3412; }
.stat-carry strong         { color: #7c2d12; }

.stat-total                { background: linear-gradient(135deg,#eff6ff,#dbeafe); border-color:#93c5fd; }
.stat-total span           { color: #1e40af; }
.stat-total strong         { color: #1e3a8a; }

.stat-received             { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-color:#bbf7d0; }
.stat-received span        { color: #166534; }
.stat-received strong      { color: #15803d; }

.stat-pending              { background: linear-gradient(135deg,#fff1f2,#ffe4e6); border-color:#fca5a5; }
.stat-pending span         { color: #9f1239; }
.stat-pending strong       { color: #881337; }

/* ── Accounting module ────────────────────────────────────────────────── */
.acct-filter-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 14px 18px;
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
}
.acct-filter-group { display: flex; flex-direction: column; gap: 4px; }
.acct-filter-group label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.acct-filter-inner { display: flex; gap: 6px; }
.acct-filter-inner select[name="month"],
.acct-filter-inner select[name="fromMonth"],
.acct-filter-inner select[name="toMonth"] { min-width: 120px; }
.acct-filter-inner select[name="year"],
.acct-filter-inner select[name="fromYear"],
.acct-filter-inner select[name="toYear"]   { min-width: 80px; }
.acct-filter-arrow { font-size: 1.2rem; color: var(--text-muted); align-self: flex-end; padding-bottom: 6px; }

.acct-kpi-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); }
.acct-kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.acct-kpi:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.acct-kpi::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.acct-kpi span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.acct-kpi strong { display: block; font-size: 2rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.acct-kpi strong small { font-size: 1rem; font-weight: 700; vertical-align: super; margin-right: 1px; }
.acct-kpi > small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.acct-kpi-revenue::before  { background: #2563eb; }
.acct-kpi-revenue strong   { color: #2563eb; }
.acct-kpi-expense::before  { background: #d97706; }
.acct-kpi-expense strong   { color: #d97706; }
.acct-kpi-delivery::before { background: #7c3aed; }
.acct-kpi-delivery strong  { color: #7c3aed; }
.acct-kpi-profit::before   { background: #16a34a; }
.acct-kpi-profit strong    { color: #16a34a; }
.acct-kpi-loss::before     { background: #dc2626; }
.acct-kpi-loss strong      { color: #dc2626; }
.acct-kpi-margin::before   { background: #8b5cf6; }
.acct-kpi-margin strong    { color: #7c3aed; }
.acct-kpi-other::before    { background: #dc2626; }
.acct-kpi-other strong     { color: #dc2626; }

.acct-pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.acct-pill-profit  { background: #f0fdf4; color: #16a34a; }
.acct-pill-loss    { background: #fef2f2; color: #dc2626; }
.acct-pill-pending { background: #fef9c3; color: #854d0e; }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-section-head { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.acct-total-row td { background: var(--surface-alt, #f8fafc); font-weight: 700; border-top: 2px solid var(--border); }

.acct-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .acct-two-col { grid-template-columns: 1fr; } }

.acct-summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.acct-summary-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.acct-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.acct-summary-row span:first-child { color: var(--text-muted); }
.acct-summary-row:last-child { border-bottom: none; padding-top: 12px; margin-top: 2px; }
.acct-summary-total { font-size: 14px !important; }

/* Scrollable table body inside accounting panels */
.acct-scroll-body { max-height: 300px; overflow-y: auto; }

/* Scrollable table with sticky header + footer (shows ~6 rows) */
.acct-scroll-table { overflow-x: auto; max-height: 340px; overflow-y: auto; }
.acct-sticky-head th { position: sticky; top: 0; z-index: 2; background: var(--surface); box-shadow: 0 1px 0 var(--border); }
.acct-sticky-foot td { position: sticky; bottom: 0; z-index: 2; background: var(--surface-alt, #f8fafc); box-shadow: 0 -1px 0 var(--border); }

/* Accounting entry add-form */
.acct-required { color: #dc2626; font-weight: 700; margin-left: 1px; }
.acct-entry-form { padding-top: 4px; }
.acct-entry-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.acct-entry-field { display: flex; flex-direction: column; }
.acct-ef-day   { width: 68px;  flex-shrink: 0; }
.acct-ef-type  { width: 120px; flex-shrink: 0; }
.acct-ef-type select { padding-right: 28px; text-overflow: ellipsis; }
.acct-ef-cat   { width: 160px; flex-shrink: 0; }
.acct-ef-desc  { flex: 1 1 180px; }
.acct-ef-amt   { width: 110px; flex-shrink: 0; }
.acct-ef-notes { flex: 1 1 140px; }
.acct-ef-btn   { width: 70px;  flex-shrink: 0; }
.acct-ef-btn .form-label { visibility: hidden; }

/* ── Meal board ────────────────────────────────────────────────── */
.meal-board { display: grid; gap: 12px; }

.meal-board > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
}

.meal-board span   { color: var(--text-muted); display: block; font-size: 0.82rem; font-weight: 600; }
.meal-board strong { color: var(--text); display: block; font-size: 1.3rem; font-weight: 700; }

/* ── Rate strip ────────────────────────────────────────────────── */
.rate-strip {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-radius: var(--radius);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
}

.rate-strip span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
}

/* ── Tool strip ────────────────────────────────────────────────── */
.tool-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px;
}

/* ── Meal table ────────────────────────────────────────────────── */
.meal-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.meal-table table { margin-bottom: 0; }

.meal-check { height: 1.25rem; width: 1.25rem; }

.colorful-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.colorful-table thead th {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 0;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 14px 16px;
  text-transform: uppercase;
}

.colorful-table tbody tr {
  border-bottom: 1px solid #f8fafc;
  transition: background var(--transition);
}

.colorful-table tbody tr:hover { background: #f8fafc; }
.colorful-table tbody td { padding: 14px 16px; vertical-align: middle; }

/* ── Top save bar ──────────────────────────────────────────────── */
.top-save-bar {
  align-items: center;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding: 16px 20px;
}

.top-save-bar div  { margin-right: auto; }
.top-save-bar span { color: rgba(255,255,255,.72); display: block; font-size: 0.82rem; }
.top-save-bar strong { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.1; }

/* ── Feature tiles ─────────────────────────────────────────────── */
.feature-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.feature-tile h2 { font-size: 1.1rem; font-weight: 700; }

/* ── Report / billing panels ───────────────────────────────────── */
.report-panel,
.billing-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.report-panel h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }

.billing-panel {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(140px,1fr));
  margin-bottom: 16px;
}

/* ── Delivery panel ────────────────────────────────────────────── */
.delivery-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(140px,1fr));
  margin-bottom: 16px;
  padding: 20px;
}

.delivery-panel span { color: var(--text-muted); display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 2px; }
.delivery-panel .wide { grid-column: span 2; }

/* ── Report section ────────────────────────────────────────────── */
.report-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 24px;
}

.report-section h2 { font-size: 1.2rem; font-weight: 700; }

/* ── Role pill ─────────────────────────────────────────────────── */
.role-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.role-pill.admin    { background: #dcfce7; color: #15803d; }
.role-pill.customer { background: #fef9c3; color: #713f12; }

/* ── Meal type buttons ─────────────────────────────────────────── */
.btn-sun       { background: var(--accent);    border-color: var(--accent);    color: #fff; }
.btn-sun:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-breakfast       { background: #eab308; border-color: #eab308; color: #fff; }
.btn-breakfast:hover { background: #ca8a04; border-color: #ca8a04; color: #fff; }

.btn-lunch       { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-lunch:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-dinner       { background: #6366f1; border-color: #6366f1; color: #fff; }
.btn-dinner:hover { background: #4f46e5; border-color: #4f46e5; }

/* ── Alerts ────────────────────────────────────────────────────── */
.alert {
  border: 0;
  border-radius: var(--radius);
  font-weight: 500;
}

.alert-success {
  background: var(--brand-light);
  color: #166534;
}

/* ── Google Maps links in report ────────────────────────────────── */
.map-link {
  color: #1a73e8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.map-link::after {
  content: '🗺';
  font-size: 0.8rem;
  opacity: 0.7;
}

.map-link:hover {
  color: #1557b0;
  text-decoration: underline;
}

.map-link--address {
  color: #64748b;
  font-size: 0.82rem;
}

.map-link--address:hover { color: #1a73e8; }

@media print {
  /* Keep links blue and visible when printing */
  .map-link,
  .map-link--address {
    color: #1a73e8 !important;
    text-decoration: underline !important;
  }

  /* Show full URL below the link text in print */
  .map-link--address::after {
    content: none;
  }
}

/* ── Daily delivery report ───────────────────────────────────────── */
.date-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-nav__form input[type="date"] {
  min-width: 160px;
  cursor: pointer;
}

.delivery-report-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.delivery-report-header {
  align-items: center;
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.morning-header { background: linear-gradient(135deg, #fefce8, #fef9c3); }
.evening-header { background: linear-gradient(135deg, #eef2ff, #e0e7ff); }

.delivery-icon {
  font-size: 2rem;
  line-height: 1;
}

.delivery-report-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.delivery-report-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.delivery-table thead th {
  background: #f8fafc;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 10px 14px;
  text-transform: uppercase;
}

.delivery-table tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #f8fafc;
}

.delivery-table tbody tr:last-child td { border-bottom: 0; }
.delivery-table tbody tr:hover { background: #f8fafc; }

.row-num {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  width: 32px;
}

.meal-tag {
  border-radius: 6px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 3px 8px;
  margin-right: 3px;
}

.meal-tag.breakfast { background: #fef9c3; color: #713f12; }
.meal-tag.lunch     { background: #dcfce7; color: #14532d; }
.meal-tag.dinner    { background: #ede9fe; color: #4c1d95; }

/* ── Masked / readonly field ─────────────────────────────────────── */
.field-masked {
  background: #f1f5f9 !important;
  color: var(--text-muted) !important;
  cursor: not-allowed !important;
  border-color: var(--border) !important;
}

/* ── OTP panels ─────────────────────────────────────────────────── */
.otp-header {
  margin-bottom: 24px;
  text-align: center;
}

.otp-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 12px;
}

.otp-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.otp-input {
  font-size: 1.8rem !important;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-align: center;
  padding: 0.65rem 1rem !important;
  border-radius: 10px !important;
}

.otp-resend {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
  text-align: center;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-top: 0 !important;
  color: rgba(255,255,255,.8);
  font-size: 0.875rem;
  margin-top: auto;
  padding: 20px 0;
}

.footer strong { color: #fff; }

/* ── Meal chip (saved menu item display) ───────────────────────── */
/* Pink "Booked" badge for locked checked meals (no menu item) */
.booked-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #fbcfe8;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.meal-chip-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.meal-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.breakfast-chip { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.lunch-chip     { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.dinner-chip    { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.btn-chip-change {
  background: none; border: 1px solid #d1d5db; border-radius: 6px;
  color: #6b7280; font-size: 0.7rem; cursor: pointer; padding: 1px 5px;
  line-height: 1.4; transition: all 120ms;
}
.btn-chip-change:hover { background: #f3f4f6; color: #374151; border-color: #9ca3af; }

/* ── Print ─────────────────────────────────────────────────────── */
.print-title { display: none; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .compact-hero { align-items: stretch; flex-direction: column; padding: 28px 24px; }
  .hero-actions { justify-content: flex-start; }
  .stats-grid   { grid-template-columns: repeat(2, minmax(130px,1fr)); }
  .billing-panel, .delivery-panel { grid-template-columns: 1fr; }
  .delivery-panel .wide { grid-column: auto; }
  .login-showcase { grid-template-columns: 1fr; }
  .login-story { min-height: 380px; padding: 32px; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding: 32px 28px; }
  .home-feature-grid, .home-contact-band { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .home-contact-band > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .home-contact-band > div:last-child { border-bottom: 0; }
  .auth-panel { margin: 16px auto; padding: 24px; }
}

/* ── Payments table ────────────────────────────────────────────── */
.payments-table thead th { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.payments-table tbody tr:hover { background: var(--surface-2); }
.amount-badge {
  display: inline-block;
  background: #dcfce7;
  color: #14532d;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 2px 10px;
  border-radius: 20px;
}

/* ── Modal overlay (QR, receipt view) ─────────────────────────── */
.qr-modal-overlay {
  position: fixed; inset: 0; z-index: 1080;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
  animation: modalFadeIn .18s ease;
}
@keyframes modalFadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes modalPopIn  { from { transform:scale(.85); opacity:0 } to { transform:scale(1); opacity:1 } }

.qr-modal-box {
  background: #fff; border-radius: 18px;
  padding: 28px 28px 22px; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  position: relative; max-width: 340px; width: 90%;
  animation: modalPopIn .2s cubic-bezier(.34,1.56,.64,1);
}
.qr-modal-box img { width: 260px; height: 260px; object-fit: contain; border-radius: 10px; }

/* Receipt viewer sits above any approval modal that may be open */
#dash-receipt-overlay,
#admin-receipt-overlay,
#receipt-view-overlay { z-index: 1200; }

.receipt-view-box {
  background: #fff; border-radius: 18px;
  padding: 24px; width: min(640px, 95vw);
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  position: relative;
  animation: modalPopIn .2s cubic-bezier(.34,1.56,.64,1);
}
.receipt-view-content img    { width: 100%; border-radius: 10px; display: block; }
.receipt-view-content iframe { width: 100%; height: 70vh; border: none; border-radius: 10px; }

.qr-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 1.2rem;
  color: #64748b; cursor: pointer; line-height: 1;
}
.qr-modal-close:hover { color: #0f172a; }
.qr-clickable { cursor: zoom-in; transition: transform .15s; }
.qr-clickable:hover { transform: scale(1.04); }

/* ── Today's Menu card ─────────────────────────────────────────── */
.today-menu-card {
  background: #fff;
  border: 1.5px solid #fbcfe8;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.today-menu-header {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.today-menu-items { display: flex; flex-wrap: wrap; gap: 12px; }
.today-menu-item  { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.meal-label {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.breakfast-label { background: #fef9c3; color: #713f12; }
.lunch-label     { background: #dcfce7; color: #14532d; }
.dinner-label    { background: #fce7f3; color: var(--accent-dark); }

/* ── Payment section ───────────────────────────────────────────── */
.payment-section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.pending-amount-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 1rem;
  color: #b91c1c;
}
.pending-amount-banner strong { font-size: 1.25rem; }
.payment-cards {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.payment-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.payment-card-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 14px; color: var(--text); }
.gpay-qr-img { width: 180px; height: 180px; object-fit: contain; border-radius: 8px; display: block; }
.upi-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upi-id-label { font-family: monospace; font-size: 0.95rem; font-weight: 600; color: var(--text); }
@media (max-width: 640px) { .payment-cards { grid-template-columns: 1fr; } }

@media print {
  body { background: #fff; margin: 0; }
  .navbar, .footer, .no-print { display: none !important; }
  .container { max-width: none; width: 100%; }
  .print-title { display: block; margin-bottom: 18px; }
  .stats-grid  { grid-template-columns: repeat(3,1fr); }
  .report-section, .stats-grid > div { box-shadow: none; break-inside: avoid; }
}

/* ── Admin stat card — clickable link variant ───────────────────── */
a.admin-stat-card.admin-stat-link {
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
a.admin-stat-card.admin-stat-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
}
.stat-sub-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px;
}
.stat-sub {
  font-size: 0.72rem; font-weight: 600;
  padding: 2px 9px; border-radius: 20px;
}
.active-sub   { background: #dcfce7; color: #15803d; }
.inactive-sub { background: #ffedd5; color: #9a3412; }

/* ── Admin info cards grid ──────────────────────────────────────── */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .info-cards-grid { grid-template-columns: 1fr; }
}
.info-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s, box-shadow .15s;
}
.info-card:not(.info-card-soon) { cursor: pointer; }
.info-card:not(.info-card-soon):hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.info-card-icon { font-size: 2rem; line-height: 1; }
.info-card-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.info-card-desc { font-size: 0.85rem; color: var(--text-muted); flex: 1; }
.info-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.info-card-badge {
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
}
.info-card-badge.active   { background: #dcfce7; color: #15803d; }
.info-card-badge.inactive { background: #ffedd5; color: #9a3412; }
.info-card-arrow {
  position: absolute; top: 24px; right: 24px;
  font-size: 1.3rem; color: var(--text-muted);
  transition: transform .15s;
}
.info-card:hover .info-card-arrow { transform: translateX(4px); }

.info-card-customers { border-color: #bbf7d0; background: linear-gradient(135deg,#fff 60%,#f0fdf4); }
.info-card-contractor { border-color: #bfdbfe; background: linear-gradient(135deg,#fff 60%,#eff6ff); }
.info-card-delivery   { border-color: #fde68a; background: linear-gradient(135deg,#fff 60%,#fffbeb); }
.info-card-soon { opacity: 0.75; }
.info-card-coming {
  font-size: 0.75rem; font-weight: 600;
  color: #94a3b8; letter-spacing: .04em;
  text-transform: uppercase;
}

a.info-card { text-decoration: none; color: inherit; }

/* ── Low-booking warning banner (customer home) ─────────────────── */
.low-booking-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 20px; border-radius: var(--radius); border: 1.5px solid;
  font-size: 0.92rem;
}
.low-booking-banner.expired { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }
.low-booking-banner.urgent  { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.low-booking-banner.warning { background: #fff7ed; border-color: #fdba74; color: #7c2d12; }
.low-booking-banner.notice  { background: #fefce8; border-color: #fde047; color: #713f12; }
.low-booking-icon { font-size: 1.3rem; flex-shrink: 0; }
.low-booking-text { flex: 1; line-height: 1.5; }
.low-booking-btn {
  white-space: nowrap; font-weight: 600; font-size: 0.82rem;
  background: #16a34a; color: #fff; border: none;
  padding: 6px 16px; border-radius: 8px; text-decoration: none;
}
.low-booking-btn:hover { background: #15803d; color: #fff; }

/* ── Low-booking row colours (admin customers table) ────────────── */
.low-row-expired { background: #fef2f2 !important; }
.low-row-urgent  { background: #fff1f1 !important; }
.low-row-warning { background: #fff7ed !important; }
.low-row-notice  { background: #fefce8 !important; }

.low-days-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 2px 9px; border-radius: 20px; margin-left: 6px; white-space: nowrap;
}
.low-badge-urgent  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.low-badge-warning { background: #ffedd5; color: #9a3412; border: 1px solid #fdba74; }
.low-badge-notice  { background: #fef9c3; color: #713f12; border: 1px solid #fde047; }

/* ── Low-booking admin panel ────────────────────────────────────── */
.low-panel {
  background: #fffbeb;
  border: 2px solid #fbbf24;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.low-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: 14px 20px;
  background: #fef3c7;
  border-bottom: 1.5px solid #fde68a;
}
.low-panel-title {
  font-size: 1rem; font-weight: 700; color: #92400e; display: block;
}
.low-panel-sub {
  font-size: 0.82rem; color: #a16207; display: block; margin-top: 2px;
}
.low-panel-table { background: transparent; }
.low-panel-table thead tr { background: rgba(0,0,0,.04); }
.low-panel-table th {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: #92400e; padding: 8px 16px;
}
.low-panel-table td { padding: 10px 16px; }

/* ── Wallet bar (meal booking page) ──────────────────────────────── */
.wallet-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px; border-radius: 10px;
  border: 1.5px solid transparent; font-size: .92rem;
}
.wallet-bar-left { display: flex; align-items: center; gap: 10px; }
.wallet-icon { font-size: 1.3rem; flex-shrink: 0; }
.wallet-sub { color: #6b7280; font-size: .83rem; margin-left: 4px; }
.wallet-badge-ok    { background: #f0fdf4; border-color: #bbf7d0; }
.wallet-badge-low   { background: #fffbeb; border-color: #fde68a; }
.wallet-badge-empty { background: #fef2f2; border-color: #fecaca; }
.wallet-btn { font-size:.78rem; border: 1px solid currentColor; }
.wallet-badge-ok    .wallet-btn { color:#15803d; }
.wallet-badge-low   .wallet-btn { color:#b45309; }
.wallet-badge-empty .wallet-btn { color:#dc2626; }

/* Inline wallet balance pill — appears next to last booked meal */
.wlt-inline-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 6px;
    white-space: nowrap;
    vertical-align: middle;
}
.wlt-pill-ok   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.wlt-pill-warn { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Stats grid state colours (wallet mode) */
.stats-grid .stat-ok    strong { color: #15803d; }
.stats-grid .stat-warning strong { color: #b45309; }
.stats-grid .stat-danger  strong { color: #dc2626; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — tablet (≤768px) and phone (≤576px)
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet (≤768px) ─────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Hero sections */
  .compact-hero       { flex-direction: column; align-items: stretch; padding: 24px 20px; gap: 16px; }
  .hero-actions       { justify-content: flex-start; flex-wrap: wrap; }
  .compact-hero h1    { font-size: 1.6rem; }
  .home-hero          { padding: 32px 24px; min-height: 340px; }
  .home-hero h1       { font-size: clamp(2.2rem, 10vw, 3.5rem); }

  /* Stats / KPI grids */
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .admin-stat-row     { grid-template-columns: repeat(2, 1fr); }
  .acct-kpi-row       { grid-template-columns: repeat(2, 1fr); }

  /* Billing / delivery panels */
  .billing-panel,
  .delivery-panel     { grid-template-columns: repeat(2, 1fr); }
  .delivery-panel .wide { grid-column: span 2; }

  /* All tables scroll horizontally instead of overflowing */
  .meal-table         { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-responsive   { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Meal table: tighter cell padding on tablet */
  .colorful-table tbody td,
  .colorful-table thead th { padding: 10px 10px; }

  /* Tool strip: wrap buttons, smaller text */
  .tool-strip         { gap: 6px; padding: 10px 12px; }
  .tool-strip .btn    { font-size: 0.78rem; padding: 5px 10px; }

  /* Rate strip: smaller pills */
  .rate-strip         { gap: 5px; padding: 10px 12px; }
  .rate-strip span    { font-size: 0.72rem; padding: 3px 8px; }

  /* Accounting entry form: full-width fields */
  .acct-entry-row     { flex-direction: column; align-items: stretch; }
  .acct-ef-day, .acct-ef-type, .acct-ef-cat,
  .acct-ef-desc, .acct-ef-amt, .acct-ef-notes,
  .acct-ef-btn        { width: 100%; flex: none; }
  .acct-ef-btn .form-label { display: none; }

  /* Accounting filter bar: stack groups */
  .acct-filter-bar    { flex-direction: column; align-items: stretch; gap: 10px; }
  .acct-filter-inner  { flex-wrap: wrap; }

  /* Report / billing panels */
  .report-section,
  .report-panel       { padding: 16px; }

  /* Wallet bar */
  .wallet-bar         { flex-wrap: wrap; gap: 8px; }

  /* Login showcase */
  .login-showcase     { grid-template-columns: 1fr; }
  .login-story        { min-height: 280px; padding: 28px; }

  /* Contact band */
  .contact-band       { grid-template-columns: 1fr; }
  .contact-band > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .contact-band > div:last-child { border-bottom: 0; }
}

/* ── Phone (≤576px) ──────────────────────────────────────────── */
@media (max-width: 576px) {

  /* Tighter page padding and section gaps */
  .container          { padding-left: 12px; padding-right: 12px; }
  .py-4               { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
  .mb-3               { margin-bottom: 0.6rem !important; }
  .mb-4               { margin-bottom: 0.75rem !important; }
  .mt-3               { margin-top: 0.6rem !important; }
  .gap-3              { gap: 0.5rem !important; }

  /* Contact band: hide on mobile */
  .contact-band       { display: none !important; }

  /* ── Low booking banner ── */
  .low-booking-banner { padding: 8px 12px; gap: 8px; border-radius: 10px; line-height: 1.35; font-size: 0.8rem; }
  .low-booking-banner strong { font-size: 0.82rem; }
  .low-booking-icon   { font-size: 0.9rem; flex-shrink: 0; }

  /* ── Hero card (MY MONTHLY FOOD BOOKING) ── */
  .compact-hero          { padding: 12px 14px; gap: 8px; border-radius: 12px; }
  .compact-hero h1       { font-size: 1.15rem; margin-bottom: 2px; font-weight: 700; }
  .compact-hero p        { font-size: 0.78rem; margin-bottom: 0; line-height: 1.4; opacity: 0.88; }
  .eyebrow               { font-size: 0.64rem; letter-spacing: 0.07em; margin-bottom: 2px; opacity: 0.82; }
  .hero-actions          { gap: 6px; margin-top: 2px; }
  .hero-actions .btn     { font-size: 0.78rem; padding: 5px 12px; border-radius: 8px; font-weight: 600; }

  /* ── Monthly Meal Bill card ── */
  .monthly-bill-card,
  [style*="background:#f0fdf4"] { padding: 10px 14px !important; border-radius: 10px !important; }
  [style*="background:#f0fdf4"] .fw-semibold           { font-size: 0.82rem !important; }
  [style*="background:#f0fdf4"] .text-muted            { font-size: 0.74rem !important; }
  [style*="background:#f0fdf4"] [style*="font-size:1.5rem"] { font-size: 1.15rem !important; font-weight: 700 !important; }

  /* ── Wallet bar ── */
  .wallet-bar         { padding: 10px 13px; gap: 6px; border-radius: 10px; font-size: 0.8rem; }
  .wallet-bar strong  { font-size: 0.85rem; }
  .wallet-sub         { font-size: 0.72rem; }
  .wallet-btn         { font-size: 0.74rem; padding: 4px 10px; border-radius: 7px; }

  /* ── Stats grid (Meal Amount / Delivery / Total / Wallet) ── */
  .stats-grid              { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .stats-grid > div        { padding: 10px 12px; border-radius: 10px; }
  .stats-grid span         { font-size: 0.68rem; margin-bottom: 2px; }
  .stats-grid strong       { font-size: 1.05rem; }

  /* ── Rate strip (prices + reminders) ── */
  .rate-strip         { gap: 4px; padding: 8px 10px; border-radius: 10px; }
  .rate-strip span    { font-size: 0.68rem; padding: 3px 7px; line-height: 1.3; font-weight: 500; border-radius: 7px; }

  /* ── Tool strip (All meals / Breakfast / Lunch / Dinner buttons) ── */
  .tool-strip               { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 10px; border-radius: 12px; }
  .tool-strip .btn          { font-size: 0.78rem; padding: 9px 6px; text-align: center; border-radius: 9px; font-weight: 600; }
  .tool-strip .btn.ms-auto  { grid-column: span 2; margin: 0 !important; }
  .tool-strip .btn-outline-danger { grid-column: span 2; }

  /* ── Meal table ── */
  .meal-table         { overflow: visible; border-radius: 12px; }
  .meal-table .table-responsive { overflow-x: visible; }
  .meal-table table   { min-width: unset; width: 100%; table-layout: fixed; }
  .meal-table table th:last-child,
  .meal-table table td:last-child { display: none; }
  .meal-table .colorful-table thead th,
  .meal-table .colorful-table tbody td { padding: 7px 4px; font-size: 0.74rem; word-break: break-word; }
  .meal-table .colorful-table thead th:first-child,
  .meal-table .colorful-table tbody td:first-child { width: 38%; }
  .meal-table .colorful-table thead th:not(:first-child),
  .meal-table .colorful-table tbody td:not(:first-child) { width: 20.6%; text-align: center; }
  .booked-badge       { padding: 2px 6px; white-space: nowrap; }
  .meal-check         { height: 1rem; width: 1rem; }

  /* Wallet pill */
  .wlt-inline-pill    { display: block; margin: 4px 0 0 0; font-size: 10px; width: fit-content; }

  /* KPI grids */
  .admin-stat-row     { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .acct-kpi-row       { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .billing-panel,
  .delivery-panel     { grid-template-columns: 1fr; }
  .delivery-panel .wide { grid-column: auto; }

  /* Navbar */
  .brand-mark         { font-size: 1rem; }
  .nav-user-chip      { font-size: 0.75rem; padding: 3px 10px; }

  /* Auth panel */
  .auth-panel         { margin: 10px auto; padding: 20px 16px; }

  /* ── Login page — phone-only redesign ───────────────────────── */
  .login-showcase       { display: block; }
  .login-story          { display: none; }
  .login-mobile-header  { display: block; }

  .login-panel        {
    margin: 0;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 8px 32px rgba(22,163,74,.18);
    padding: 0;
    max-width: 100%;
    border: none;
    overflow: hidden;
  }
  .login-mobile-header {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    text-align: center;
    padding: 32px 20px 24px;
    margin: -36px -36px 20px;
  }
  .login-mobile-logo  { font-size: 2.8rem; line-height: 1; margin-bottom: 8px; }
  .login-mobile-brand { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
  .login-mobile-sub   { font-size: 0.85rem; color: rgba(255,255,255,.8); margin-top: 4px; }
  .login-panel h2     { font-size: 1.2rem; }
  .login-panel        { max-width: 100%; border-radius: 20px; padding: 36px 24px 24px; }

  /* Accounting */
  .acct-two-col       { grid-template-columns: 1fr; gap: 12px; }
  .table-section-head { flex-wrap: wrap; gap: 4px; font-size: 12px; }

  /* Wallet bar compact */
  .wallet-bar         { padding: 10px 12px; }

  /* Save meal plan button — smaller, separated from footer */
  .meal-save-btn      { font-size: 0.95rem; padding: 8px 36px; }

  /* Today's menu card */
  .today-menu-card    { padding: 14px 14px; }
  .today-menu-items   { gap: 8px; }
}
