:root {
  --brand: #e23744;
  --brand-dark: #c91f2d;
  --ink: #1c1c1c;
  --muted: #696969;
  --paper: #fff7f8;
  --line: #eeeeee;
  --green: #24963f;
  --shadow: 0 10px 28px rgba(28, 28, 28, .08);
  --shadow-strong: 0 18px 48px rgba(226, 55, 68, .18);
}

* { letter-spacing: 0; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: #fff; }
a { text-decoration: none; }

.app-navbar {
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(238,238,238,.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(28,28,28,.04);
}
.navbar-brand { color: var(--brand) !important; font-size: 1.18rem; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: .82rem;
  box-shadow: 0 10px 24px rgba(226,55,68,.28);
}
.btn-brand {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(226,55,68,.2);
  font-weight: 750;
}
.btn-brand:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }

.hero {
  min-height: 300px;
  background:
    radial-gradient(circle at 100% 8%, rgba(226,55,68,.42) 0 18%, transparent 19%),
    linear-gradient(135deg, #171717 0%, #2a2222 62%, #621d24 100%);
  color:#fff;
  display:flex;
  align-items:center;
  position: relative;
  overflow: hidden;
}
.hero:before { content: none; }
.hero:after { content:""; position:absolute; inset:auto 0 0; height:70px; background: linear-gradient(transparent,#fff); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-weight: 900; font-size: clamp(2.1rem, 5.6vw, 4rem); line-height: 1.14; text-shadow: 0 6px 24px rgba(0,0,0,.28); max-width: 700px; margin-bottom: 12px; }
.hero .lead { max-width: 620px; }
.hero .search-box {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 18px 52px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.65);
}
.hero .search-box .form-control { font-size: 1rem; }

.section-title { font-size: 1.35rem; font-weight: 850; margin: 28px 0 14px; }
.food-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 32%);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.food-card, .restaurant-card, .mini-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.food-card:hover, .restaurant-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(28,28,28,.12); }
.food-card img, .restaurant-card img, .food-img { width: 100%; height: 138px; object-fit: cover; background: #ffe8eb; }
.food-card .body, .restaurant-card .body, .mini-card { padding: 14px; }
.price { color: var(--brand); font-weight: 800; }
.quick-add { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.quick-add-btn { min-width: 78px; height: 42px; padding: 0 12px; }
.qty-stepper { height: 42px; display: grid; grid-template-columns: 34px 1fr 34px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty-stepper button { border: 0; background: #fff5f6; color: var(--brand); font-weight: 900; font-size: 1.1rem; }
.qty-stepper input { width: 100%; border: 0; text-align: center; font-weight: 800; color: var(--ink); appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.rating {
  color: #fff;
  background: var(--green);
  font-weight: 800;
  font-size: .76rem;
  padding: 3px 7px;
  border-radius: 7px;
  display: inline-flex;
  gap: 3px;
  align-items: center;
  white-space: nowrap;
}
.rating .text-warning { color: #fff !important; font-size: .72rem; }
.veg-dot, .nonveg-dot { width: 12px; height: 12px; display: inline-block; border: 2px solid currentColor; border-radius: 3px; position: relative; }
.veg-dot { color: var(--green); }
.nonveg-dot { color: #d62828; }
.veg-dot:after, .nonveg-dot:after { content:""; width: 5px; height:5px; background: currentColor; border-radius:50%; position:absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); }

.promo {
  background: linear-gradient(135deg,#e23744,#ff6f61);
  color: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-strong);
}
.restaurant-list { display: grid; gap: 14px; }
.restaurant-card { display: grid; grid-template-columns: 132px 1fr; min-height: 132px; }
.restaurant-card img { height: 100%; }
.menu-card { min-height: 196px; }
.menu-card .body { display: flex; flex-direction: column; }
.menu-card .quick-add { margin-top: auto; }
.menu-card-image { display: block; min-height: 100%; }
.status-pill { display:inline-flex; align-items:center; gap:5px; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.status-open { color: #15803d; background: #eaf8ef; }
.status-closed { color: #b4232e; background: #fff0f1; }

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 66px;
  border-radius: 18px;
  background:#fff;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  z-index: 30;
  box-shadow: 0 18px 48px rgba(28,28,28,.22);
  border: 1px solid var(--line);
}
.bottom-nav a { color:#7d7d7d; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; font-size:.72rem; font-weight: 700; }
.bottom-nav i { font-size:1.22rem; }
.bottom-nav a:hover { color: var(--brand); }
.customer-body { padding-bottom: 118px; background: #fff; }
.floating-cart {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 86px;
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #e23744, #b91d2a);
  box-shadow: 0 18px 42px rgba(226,55,68,.34);
  z-index: 31;
  font-weight: 800;
}
.floating-cart:hover { color: #fff; background: linear-gradient(135deg, #d72d3a, #a81925); }
.floating-cart span { display:flex; gap:8px; align-items:center; min-width: 0; }
.floating-cart strong { white-space: nowrap; }
.floating-cart em { font-style: normal; background: rgba(255,255,255,.16); padding: 7px 10px; border-radius: 999px; white-space: nowrap; }

.auth-card { max-width: 460px; margin: 42px auto; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background:#fff; box-shadow: var(--shadow); }
.panel-wrap { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 60px); background:#f7f8fb; }
.panel-sidebar { background:#191a1f; color:#fff; padding: 18px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow:auto; }
.panel-title { font-weight: 850; margin: 10px 8px 18px; }
.panel-sidebar a { color:#d7dae0; display:flex; gap:8px; align-items:center; padding: 11px 10px; border-radius: 8px; margin-bottom: 4px; }
.panel-sidebar a:hover { background:#292b33; color:#fff; }
.panel-main { padding: 22px; overflow-x: hidden; }
.page-kicker { color: var(--brand); text-transform: uppercase; font-size: .75rem; font-weight: 850; }
.page-title { font-weight: 900; margin-bottom: 20px; }
.stat-grid { display:grid; grid-template-columns: repeat(5,minmax(140px,1fr)); gap: 14px; }
.stat { background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px; box-shadow: var(--shadow); }
.stat strong { display:block; font-size:1.7rem; }
.table-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px; overflow:auto; box-shadow: var(--shadow); }
.form-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px; margin-bottom:16px; box-shadow: var(--shadow); }
.order-step { display:flex; gap:10px; align-items:flex-start; padding:10px 0; border-bottom:1px dashed var(--line); }
.order-step i { color:var(--brand); }

.food-detail-hero { margin-top: 14px; }
.food-detail-hero .food-img { height: min(44vw, 360px); border-radius: 18px !important; box-shadow: var(--shadow); }
.food-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.buy-panel { margin-top: -42px; position: relative; z-index: 2; }
.option-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.form-control, .form-select { border-color: #e4e4e4; border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(226,55,68,.12); }
.cart-item-row { display: grid; grid-template-columns: 82px 1fr auto auto; gap: 14px; align-items: center; }
.cart-item-img { width: 82px; height: 82px; object-fit: cover; border-radius: 14px; background: #ffe8eb; }
.cart-item-info { min-width: 0; }
.cart-qty-form { display: grid; grid-template-columns: 132px auto; gap: 8px; align-items: center; }
.profile-hero { display: flex; align-items: center; gap: 18px; }
.profile-avatar { width: 92px; height: 92px; border-radius: 24px; background: linear-gradient(135deg,#e23744,#ff7b72); color: #fff; display: grid; place-items: center; font-size: 2.5rem; font-weight: 900; overflow: hidden; box-shadow: var(--shadow-strong); flex: 0 0 auto; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-stats { display:grid; grid-template-columns: repeat(3,1fr); gap:14px; margin-bottom: 12px; }
.address-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; height: 100%; background: #fff; }
.order-history-list { display: grid; gap: 10px; }
.order-history-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fff; }

.petujee-upgrade-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 209, 0, .13) 1px, transparent 1px),
    linear-gradient(180deg, rgba(226, 31, 36, .08), rgba(255, 209, 0, .16)),
    #fffaf0;
  background-size: 34px 34px, auto, auto;
}
.petujee-upgrade-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 64px);
}
.petujee-upgrade-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
}
.petujee-logo-panel {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.petujee-upgrade-logo {
  width: min(100%, 520px);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 20px 34px rgba(122, 20, 16, .18));
}
.petujee-message-panel {
  color: #21130f;
}
.petujee-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 18px;
  padding: 7px 13px;
  border: 1px solid rgba(226, 31, 36, .22);
  border-radius: 999px;
  background: #fff;
  color: #c91f2d;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.petujee-message-panel h1 {
  max-width: 720px;
  margin: 0;
  color: #e21f24;
  font-size: clamp(2.4rem, 7vw, 5.7rem);
  font-weight: 950;
  line-height: .96;
}
.petujee-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #4f403c;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
}
.petujee-launch-card {
  width: min(100%, 560px);
  margin: 30px 0 0;
  padding: 18px 20px;
  display: grid;
  gap: 4px;
  border-left: 8px solid #e21f24;
  border-radius: 8px;
  background: #ffd100;
  color: #2c1711;
  box-shadow: 0 18px 42px rgba(226, 31, 36, .18);
}
.petujee-launch-card strong {
  font-size: clamp(1.3rem, 3vw, 2.05rem);
  font-weight: 950;
  line-height: 1.12;
}
.petujee-launch-card span {
  font-weight: 800;
}
.petujee-launch-label {
  color: #9b161a;
  font-size: .85rem;
  text-transform: uppercase;
}
.petujee-countdown {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.petujee-countdown div {
  min-height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 12px 8px;
  border: 1px solid rgba(226, 31, 36, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 28px rgba(49, 24, 16, .07);
}
.petujee-countdown strong {
  color: #e21f24;
  font-size: clamp(1.45rem, 3.4vw, 2.4rem);
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.petujee-countdown span {
  margin-top: 7px;
  color: #69534a;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}
.petujee-note {
  margin: 24px 0 0;
  color: #6d5a51;
  font-weight: 750;
}

@media (max-width: 900px) {
  .panel-wrap { grid-template-columns: 1fr; }
  .panel-sidebar { position: static; height:auto; display:grid; grid-template-columns: repeat(2,1fr); }
  .panel-title { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .petujee-upgrade-shell { grid-template-columns: 1fr; }
  .petujee-logo-panel { min-height: auto; }
  .petujee-message-panel { text-align: center; }
  .petujee-kicker { justify-content: center; }
  .petujee-lead,
  .petujee-launch-card,
  .petujee-countdown { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .hero { min-height: 360px; align-items:flex-end; padding-bottom: 34px; background: linear-gradient(140deg, #171717 0%, #281f20 58%, #7f202b 100%); }
  .hero h1 { font-size: 2rem; line-height: 1.18; max-width: 310px; }
  .hero .lead { font-size: .94rem; line-height: 1.55; max-width: 300px; }
  .hero .search-box { margin-top: 4px; }
  .floating-cart { left: 10px; right: 10px; bottom: 84px; grid-template-columns: 1fr auto; height: 58px; }
  .floating-cart em { display: none; }
  .food-scroll { grid-auto-columns: 74%; }
  .restaurant-card { grid-template-columns: 108px 1fr; border-radius: 14px; }
  .restaurant-card img { height: 134px; }
  .panel-main { padding: 14px; }
  .panel-sidebar { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .profile-hero { align-items: flex-start; }
  .profile-avatar { width: 76px; height: 76px; border-radius: 20px; font-size: 2rem; }
  .profile-stats { grid-template-columns: 1fr; }
  .order-history-card { align-items: flex-start; }
  .cart-item-row { grid-template-columns: 72px 1fr auto; align-items: start; }
  .cart-item-img { width: 72px; height: 72px; }
  .cart-qty-form { grid-column: 2 / -1; grid-template-columns: 132px auto; }
  .buy-panel { margin-top: -24px; }
  .food-detail-hero .food-img { height: 260px; }
  .petujee-upgrade-page { padding: 16px; place-items: start center; }
  .petujee-logo-panel { padding: 14px; }
  .petujee-message-panel h1 { font-size: 2.6rem; line-height: 1; }
  .petujee-countdown { grid-template-columns: repeat(2, minmax(112px, 1fr)); }
  .petujee-countdown div { min-height: 78px; }
}
