:root {
  --ink: #141414;
  --muted: #686868;
  --line: #e9e2dc;
  --panel: #fffaf5;
  --paper: #ffffff;
  --orange: #fc8019;
  --green: #1f9d55;
  --red: #d94841;
  --blue: #2457c5;
  --shadow: 0 24px 70px rgba(20, 20, 20, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff7ef;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }

.topbar, .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 250, 245, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(233, 226, 220, 0.8);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}
.logo span, .brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--orange);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(252, 128, 25, 0.32);
}

nav { display: flex; gap: 18px; font-weight: 700; color: #3c3c3c; }

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 48px clamp(18px, 5vw, 72px) 32px;
  gap: 36px;
  overflow: hidden;
}

.hero-copy h1, .section-head h2, .booking-copy h2 {
  margin: 0;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}
.hero-copy p:not(.eyebrow), .booking-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.primary-btn, .ghost-btn, .book-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.primary-btn, .book-now {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(252, 128, 25, 0.28);
}
.ghost-btn { background: #fff; border: 1px solid var(--line); }
.primary-btn:hover, .ghost-btn:hover, .book-now:hover { transform: translateY(-2px); }
.hero-actions, .install-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border: 1px dashed rgba(252, 128, 25, 0.38);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
.orbit-one { width: 420px; height: 420px; }
.orbit-two { width: 310px; height: 310px; animation-duration: 12s; animation-direction: reverse; }
.table-scene {
  position: relative;
  width: min(70vw, 330px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 38%, #ffe2c7 39% 58%, #fff7ef 59% 100%);
  box-shadow: var(--shadow);
  animation: floaty 4s ease-in-out infinite;
}
.plate {
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  color: #fff;
  background: #141414;
  font-weight: 800;
}
.seat {
  position: absolute;
  width: 68px;
  height: 44px;
  background: var(--orange);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(252, 128, 25, 0.22);
}
.s1 { top: 34px; } .s2 { right: 16px; transform: rotate(90deg); }
.s3 { bottom: 34px; } .s4 { left: 16px; transform: rotate(90deg); }
.floating-chip {
  position: absolute;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
  animation: floaty 3.2s ease-in-out infinite;
}
.chip-a { top: 95px; left: 20px; }
.chip-b { bottom: 110px; right: 10px; animation-delay: 600ms; }

.notice-band, .section-head, .booking-layout, .restaurant-grid, .admin-main {
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(18px, 5vw, 72px);
}
.notice-band {
  margin: 0 clamp(18px, 5vw, 72px) 32px;
  padding-top: 24px;
  padding-bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.section-head { padding-top: 38px; padding-bottom: 18px; }
.section-head h2, .booking-copy h2 { font-size: clamp(30px, 4vw, 48px); }

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 56px;
}
.restaurant-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 20, 20, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.restaurant-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.restaurant-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.restaurant-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.restaurant-card:hover img { transform: scale(1.08); }
.restaurant-image span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(20, 20, 20, 0.78);
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
}
.restaurant-body { padding: 18px; }
.restaurant-title { display: flex; justify-content: space-between; gap: 12px; }
.restaurant-title h3 { margin: 0; font-size: 22px; }
.restaurant-title b { padding: 5px 8px; background: var(--green); color: #fff; border-radius: 6px; }
.restaurant-body p { margin: 8px 0; color: var(--muted); }
.restaurant-body small { display: block; min-height: 58px; color: #3d3d3d; line-height: 1.5; }
.book-now { width: 100%; margin-top: 16px; }

.booking-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  gap: 28px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 72px;
  background: #fff;
}
.legend { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; color: #444; }
.legend span { width: 14px; height: 14px; border-radius: 50%; background: var(--green); }
.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.form-row { display: grid; gap: 7px; }
.full { grid-column: 1 / -1; width: 100%; }
label { color: #3d3d3d; font-weight: 800; font-size: 13px; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }
.table-map {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.seat-card {
  min-height: 128px;
  padding: 14px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}
.seat-card:hover, .seat-card.selected { transform: translateY(-3px); border-color: var(--orange); background: #fff3e7; }
.mini-table {
  width: 50px;
  height: 38px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 8px #ffe1c4;
}
.rectangle .mini-table { width: 70px; border-radius: 8px; }
.square .mini-table { border-radius: 8px; }
.seat-card em, .seat-card small { color: var(--muted); font-style: normal; }
.form-message { grid-column: 1 / -1; margin: 0; font-weight: 800; }
.form-message.success { color: var(--green); }
.form-message.error { color: var(--red); }
.empty-state { grid-column: 1 / -1; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }

.installer-body, .admin-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.install-card, .login-card {
  width: min(100%, 460px);
  display: grid;
  gap: 14px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.login-card .primary-btn, .login-card .ghost-btn { width: 100%; }
.alert { padding: 11px; color: var(--red); background: #fff1ef; border-radius: 8px; font-weight: 800; }

.admin-body { background: #f6f7fb; }
.admin-main { padding-top: 24px; padding-bottom: 54px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.admin-stats div, .admin-panel {
  background: #fff;
  border: 1px solid #e6e8ef;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.06);
}
.admin-stats div { padding: 18px; display: grid; gap: 4px; }
.admin-stats strong { font-size: 34px; }
.admin-stats span { color: var(--muted); font-weight: 800; }
.admin-panel { padding: 20px; margin-bottom: 18px; }
.admin-panel h2 { margin: 0 0 16px; }
.admin-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-form textarea { grid-column: span 2; }
.admin-form .primary-btn { min-height: 44px; }
.compact { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 16px; }
.checkline { display: inline-flex; align-items: center; gap: 8px; }
.checkline input { width: auto; min-height: auto; }
.admin-list, .booking-admin-list { display: grid; gap: 12px; }
.admin-row, .booking-admin-card, .table-admin-card {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e6e8ef;
  border-radius: 8px;
  background: #fff;
}
.admin-row { grid-template-columns: 76px 1fr auto; }
.admin-row img { width: 76px; height: 58px; object-fit: cover; border-radius: 8px; }
.admin-row div, .booking-admin-card div { display: grid; gap: 4px; }
.admin-row span, .booking-admin-card span, .table-admin-card span { color: var(--muted); }
.status-on, .status-off {
  min-width: 96px;
  padding: 10px 12px;
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}
.status-on { background: var(--green); }
.status-off { background: var(--red); }
.table-admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.table-admin-card { text-align: left; }
.booking-admin-card { grid-template-columns: 0.8fr 1.2fr 180px; }

.reveal { animation: rise 700ms ease both; }
.delay-1 { animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero-shell, .booking-layout { grid-template-columns: 1fr; min-height: auto; }
  .hero-stage { min-height: 420px; }
  .restaurant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form, .compact, .table-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-admin-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar, .admin-topbar { align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; }
  .hero-copy h1 { font-size: 42px; }
  .restaurant-grid, .booking-form, .table-map, .admin-stats, .admin-form, .compact, .table-admin-grid { grid-template-columns: 1fr; }
  .admin-form textarea { grid-column: auto; }
  .admin-row { grid-template-columns: 1fr; }
  .admin-row img { width: 100%; height: 150px; }
  .hero-stage { min-height: 330px; }
  .orbit-one { width: 300px; height: 300px; }
  .orbit-two { width: 220px; height: 220px; }
}

/* Mobile app redesign */
.mobile-app {
  min-height: 100vh;
  background: #fff7ef;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) clamp(14px, 4vw, 28px) 12px;
  background: rgba(255, 247, 239, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(233, 226, 220, 0.85);
}
.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.location-pill div { display: grid; gap: 2px; }
.location-pill b { font-size: 18px; }
.location-pill small { color: var(--muted); font-weight: 700; }
.pin-dot {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(252, 128, 25, 0.3);
  position: relative;
}
.pin-dot::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #fff;
}
.admin-dot {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #141414;
  color: #fff;
  font-weight: 900;
}
.app-main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 14px clamp(14px, 4vw, 24px) 0;
}
.mobile-hero {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 16px;
  align-items: center;
  min-height: 190px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #141414 0%, #3a1b0a 52%, #fc8019 100%);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.mobile-hero::after {
  content: '';
  position: absolute;
  right: -44px;
  bottom: -62px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, 0.12);
}
.mobile-hero h1 {
  margin: 0;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 0.96;
  letter-spacing: 0;
}
.mobile-hero p:not(.eyebrow) {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.mobile-hero .eyebrow { color: #ffd0a7; }
.hero-plate {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #fff7ef;
  color: #141414;
  box-shadow: 0 20px 50px rgba(0,0,0,0.24);
  animation: floaty 3.6s ease-in-out infinite;
}
.hero-plate span {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 10px solid #fc8019;
}
.hero-plate b { position: relative; font-size: 13px; }
.compact-notice { margin: 14px 0; }
.search-card {
  position: sticky;
  top: calc(64px + env(safe-area-inset-top));
  z-index: 30;
  margin: 14px 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 247, 239, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
}
.search-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}
.search-box { position: relative; }
.search-box span {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid #777;
  border-radius: 50%;
  transform: translateY(-50%);
}
.search-box span::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: #777;
  transform: rotate(45deg);
}
.search-box input { padding-left: 44px; background: #fff; }
.offer-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0 16px;
  scrollbar-width: none;
}
.offer-rail::-webkit-scrollbar { display: none; }
.offer-rail article {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  color: #fff;
  background: #1f9d55;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(31, 157, 85, 0.2);
}
.offer-rail article:nth-child(2) { background: #2457c5; box-shadow: 0 14px 30px rgba(36, 87, 197, 0.2); }
.offer-rail article:nth-child(3) { background: #141414; box-shadow: 0 14px 30px rgba(20, 20, 20, 0.2); }
.offer-rail b { font-size: 18px; }
.offer-rail span { opacity: 0.78; font-weight: 700; }
.section-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0 12px;
}
.section-line h2 { margin: 0; font-size: 28px; }
.mini-action {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: #141414;
  font-weight: 900;
}
.restaurant-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0 0 18px;
}
.app-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 168px;
}
.app-card .restaurant-image {
  height: 100%;
  aspect-ratio: auto;
}
.app-card .restaurant-image span {
  left: 8px;
  right: 8px;
  bottom: 8px;
  font-size: 11px;
  text-align: center;
}
.app-card .restaurant-body { padding: 12px; }
.app-card .restaurant-title h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
}
.app-card .restaurant-body p {
  margin: 5px 0;
  font-size: 13px;
}
.address-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.meta-row span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff3e7;
  color: #71400f;
  font-size: 12px;
  font-weight: 800;
}
.app-card .book-now { min-height: 38px; margin-top: 10px; }
.booking-sheet {
  margin: 18px 0 0;
  padding: 10px 0 0;
  border-radius: 8px 8px 0 0;
}
.sheet-handle {
  width: 52px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #d4c7ba;
}
.sheet-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sheet-title h2 { margin: 0; font-size: 26px; }
.sheet-title span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff3e7;
  color: #8a4c10;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.mobile-booking {
  padding: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  box-shadow: 0 16px 44px rgba(20,20,20,0.08);
}
.mobile-booking .table-map {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mobile-booking .seat-card {
  min-height: 116px;
  padding: 10px;
}
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  width: min(100%, 760px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 40px rgba(20, 20, 20, 0.12);
}
.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 52px;
  color: #4a4a4a;
  font-size: 12px;
  font-weight: 900;
}
.bottom-nav span {
  width: 22px;
  height: 22px;
  position: relative;
}
.nav-home::before {
  content: '';
  position: absolute;
  inset: 4px 2px 2px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px;
}
.nav-home::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 2px;
  width: 13px;
  height: 13px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.nav-table::before {
  content: '';
  position: absolute;
  inset: 5px 3px 8px;
  border-radius: 50%;
  background: currentColor;
}
.nav-table::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 2px;
  background: currentColor;
  box-shadow: 4px -2px 0 currentColor, -4px -2px 0 currentColor;
}
.nav-admin::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}
.nav-admin::after {
  content: '';
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 16px;
  height: 9px;
  border-radius: 12px 12px 4px 4px;
  background: currentColor;
}
@media (min-width: 760px) {
  .restaurant-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-card { grid-template-columns: 150px 1fr; }
}
@media (max-width: 420px) {
  .mobile-hero { grid-template-columns: 1fr; }
  .hero-plate { display: none; }
  .app-card { grid-template-columns: 112px 1fr; }
  .mobile-booking { grid-template-columns: 1fr; }
  .mobile-booking .table-map { grid-template-columns: 1fr 1fr; }
}

/* Restaurant detail flow */
.home-only .booking-sheet { display: none; }
.restaurant-card-link {
  display: grid;
  grid-template-columns: inherit;
  min-height: inherit;
  height: 100%;
}
.as-link { width: 100%; margin-top: 10px; }
.offer-hero { min-height: 178px; }
.detail-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
}
.back-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: #141414;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}
.detail-main { padding-top: 0; }
.detail-hero {
  position: relative;
  min-height: 330px;
  margin: 0 calc(clamp(14px, 4vw, 24px) * -1);
  overflow: hidden;
  background: #141414;
}
.detail-hero img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  opacity: 0.82;
}
.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 15%, rgba(0,0,0,0.78) 100%);
}
.detail-hero-copy {
  position: absolute;
  left: clamp(16px, 5vw, 28px);
  right: clamp(16px, 5vw, 28px);
  bottom: 22px;
  z-index: 1;
  color: #fff;
}
.detail-hero-copy span {
  display: inline-flex;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--orange);
  font-weight: 900;
  font-size: 12px;
}
.detail-hero-copy h1 {
  margin: 12px 0 6px;
  font-size: clamp(34px, 10vw, 54px);
  line-height: 0.96;
  letter-spacing: 0;
}
.detail-hero-copy p { margin: 0; color: rgba(255,255,255,0.82); font-weight: 800; }
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.detail-info-grid article {
  display: grid;
  gap: 4px;
  min-height: 76px;
  align-content: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(20,20,20,0.06);
}
.detail-info-grid b { font-size: 18px; }
.detail-info-grid span { color: var(--muted); font-size: 12px; font-weight: 800; }
.restaurant-copy {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(20,20,20,0.06);
}
.restaurant-copy h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}
.restaurant-copy p { margin: 0; color: var(--muted); line-height: 1.6; }
.detail-booking { padding-bottom: 18px; }
.detail-booking .mobile-booking { background: #fff; }
.detail-empty { margin-top: 24px; }
.detail-empty h1 { margin: 0; }
@media (max-width: 420px) {
  .restaurant-card-link { grid-template-columns: 112px 1fr; }
  .detail-info-grid { grid-template-columns: 1fr 1fr 1fr; }
  .detail-info-grid article { padding: 10px 8px; }
  .detail-info-grid b { font-size: 15px; }
}

/* Swiggy reference inspired Dineout home */
.swiggy-home {
  min-height: 100vh;
  background: #fff;
  color: #1b1d22;
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}
.swiggy-search-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 12px;
  align-items: center;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px 14px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(20, 20, 20, 0.08);
}
.swiggy-search {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.swiggy-search .search-box input {
  min-height: 58px;
  border: 1px solid #dfdfdf;
  border-radius: 18px;
  font-size: 17px;
  color: #4e4e4e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) inset;
}
.cash-chip {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 58px;
  border-radius: 20px;
  color: #fff;
  background: #00512f;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 81, 47, 0.22);
}
.cash-chip b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #087647;
  border: 2px solid rgba(255,255,255,0.18);
}
.cash-chip span { font-size: 20px; }
.swiggy-main {
  width: min(100%, 760px);
  margin: 0 auto;
  overflow: hidden;
}
.dineout-green-hero {
  margin: 0 0 32px;
  padding: 18px 16px 0;
  min-height: 310px;
  color: #fff;
  background: radial-gradient(circle at 84% 8%, #0b8b50 0 18%, transparent 19%), linear-gradient(180deg, #005f35 0%, #004425 100%);
  border-radius: 0 0 34px 34px;
  position: relative;
  overflow: hidden;
}
.dineout-green-hero::after {
  content: '';
  position: absolute;
  right: -42px;
  top: -28px;
  width: 170px;
  height: 116px;
  border-radius: 50%;
  background: url('https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?auto=format&fit=crop&w=360&q=80') center/cover;
  box-shadow: 0 16px 28px rgba(0,0,0,0.28);
  transform: rotate(-8deg);
}
.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  opacity: 0.95;
}
.hero-brand-row i {
  padding: 3px 8px;
  border-radius: 8px;
  color: #e9463d;
  background: #fff;
  font-style: normal;
  letter-spacing: 0;
}
.dineout-green-hero h1 {
  max-width: 290px;
  margin: 12px 0 6px;
  font-size: 32px;
  line-height: 0.98;
  letter-spacing: 0;
}
.dineout-green-hero p { max-width: 330px; margin: 0; color: rgba(255,255,255,0.78); }
.quick-vibe-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 132px;
  gap: 12px;
  overflow-x: auto;
  margin: 28px -16px 0;
  padding: 0 16px 18px;
  scrollbar-width: none;
}
.quick-vibe-row::-webkit-scrollbar { display: none; }
.quick-vibe-row article {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  justify-items: center;
  padding: 14px 10px 0;
  border-radius: 18px;
  background: #004326;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05), 0 12px 26px rgba(0,0,0,0.18);
  text-align: center;
  overflow: hidden;
}
.quick-vibe-row b { font-size: 17px; line-height: 1.05; }
.quick-vibe-row img { width: 104px; height: 78px; object-fit: cover; border-radius: 50% 50% 8px 8px; }
.cashback-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -16px;
  padding: 12px 20px 18px;
  background: rgba(0,0,0,0.08);
  font-size: 14px;
}
.cashback-strip b { font-size: 18px; }
.swiggy-section { padding: 0 16px 34px; }
.swiggy-section h2, .section-title-row h2 {
  margin: 0 0 18px;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: 0;
}
.spotlight-rail, .finest-rail, .cashback-rail, .sponsored-rail, .trend-rail {
  display: grid;
  grid-auto-flow: column;
  overflow-x: auto;
  scrollbar-width: none;
}
.spotlight-rail::-webkit-scrollbar, .finest-rail::-webkit-scrollbar, .cashback-rail::-webkit-scrollbar, .sponsored-rail::-webkit-scrollbar, .trend-rail::-webkit-scrollbar { display: none; }
.spotlight-rail { grid-auto-columns: minmax(300px, 86%); gap: 18px; }
.spotlight-card {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 190px;
  color: #fff;
  background: #263515;
  border-radius: 18px;
  overflow: hidden;
}
.spotlight-card:nth-child(even) { background: #6c2f13; }
.spotlight-copy { padding: 18px 12px 16px 18px; display: grid; align-content: center; gap: 10px; }
.spotlight-copy span { font-weight: 900; font-size: 13px; opacity: 0.95; }
.spotlight-copy h3 { margin: 0; font-size: 24px; line-height: 1.05; }
.spotlight-copy p { margin: 0; color: rgba(255,255,255,0.78); line-height: 1.35; }
.spotlight-copy b { width: fit-content; padding: 9px 14px; border-radius: 999px; background: rgba(0,0,0,0.48); font-size: 12px; }
.spotlight-card img { width: 100%; height: 100%; object-fit: cover; }
.mind-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
.mind-actions a {
  position: relative;
  min-height: 78px;
  padding: 14px 18px;
  border: 1px solid #eee3dc;
  border-radius: 14px;
  background: #fff5ef;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(20,20,20,0.05);
}
.mind-actions b { position: relative; z-index: 1; display: block; font-size: 20px; line-height: 1.04; }
.mind-actions small { position: absolute; top: 0; left: 36px; padding: 2px 12px; color: #fff; background: #f14c4c; border-radius: 0 0 5px 5px; font-size: 17px; font-weight: 900; }
.pin-art, .percent-art {
  position: absolute;
  right: 18px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: #f26d4c;
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-42deg);
}
.pin-art::after { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #141414; }
.percent-art { color: #a64d21; background: #f3ceb5; transform: rotate(0); font-size: 38px; font-weight: 900; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(116px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.category-grid::-webkit-scrollbar { display: none; }
.category-grid article {
  min-height: 174px;
  display: grid;
  align-content: space-between;
  justify-items: center;
  padding: 14px 8px 0;
  border: 2px solid #e5e5e5;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  overflow: hidden;
}
.category-grid b { font-size: 16px; line-height: 1.05; }
.category-grid img { width: 110px; height: 88px; object-fit: cover; border-radius: 48% 48% 8px 8px; }
.finest-section h2 { margin-bottom: 4px; font-family: Georgia, serif; font-weight: 500; }
.finest-section h2 em { color: #a87322; font-style: italic; }
.finest-section > p { margin: 0 0 18px; color: #555; font-size: 18px; }
.finest-rail { grid-auto-columns: minmax(300px, 90%); gap: 18px; }
.finest-card {
  position: relative;
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 16px;
  align-items: center;
  min-height: 260px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.finest-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.finest-card h3 { margin: 0 0 12px; color: #099e9c; font-size: 30px; letter-spacing: 0.12em; text-transform: uppercase; }
.finest-card p { margin: 0; font-family: Georgia, serif; font-size: 22px; line-height: 1.25; }
.finest-card span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.88);
  font-size: 28px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.cashback-panel {
  margin: 0 16px 34px;
  padding: 24px 0 18px 16px;
  color: #fff;
  background: #004b2f;
  border-radius: 28px;
  overflow: hidden;
}
.cashback-copy h2 { margin: 0; font-size: 29px; }
.cashback-copy p { margin: 6px 0 20px; color: rgba(255,255,255,0.72); font-size: 18px; }
.cashback-rail { grid-auto-columns: minmax(285px, 82%); gap: 14px; padding-right: 16px; }
.deal-card {
  display: block;
  min-width: 0;
  color: #202124;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 0 #e4e4e4, 0 10px 26px rgba(0,0,0,0.08);
}
.deal-image { position: relative; height: 176px; overflow: hidden; }
.compact-deal .deal-image { height: 166px; }
.deal-image img { width: 100%; height: 100%; object-fit: cover; }
.deal-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: #4b4b4b;
  font-size: 13px;
  font-weight: 900;
}
.heart-mark {
  position: absolute;
  right: 10px;
  top: 10px;
  color: #fff;
  font-size: 34px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.deal-body { padding: 13px 14px 12px; }
.deal-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.deal-title h3 { margin: 0; font-size: 23px; line-height: 1.08; }
.deal-title b { white-space: nowrap; color: #111; font-size: 21px; }
.deal-body p { margin: 5px 0; color: #777; font-size: 16px; line-height: 1.25; }
.deal-body strong { display: block; margin-top: 9px; color: #3d3d3d; font-size: 17px; }
.deal-body em { color: #f05a18; font-style: normal; }
.view-all-dark {
  display: grid;
  place-items: center;
  min-height: 62px;
  margin: 16px 16px 0 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title-row a { color: #f05a18; font-size: 19px; font-weight: 900; }
.sponsored-rail { grid-auto-columns: minmax(300px, 78%); gap: 16px; padding-bottom: 4px; }
.trending-section > p { margin: -10px 0 18px; color: #aaa; font-size: 20px; font-weight: 700; }
.trend-rail { grid-auto-columns: 280px; gap: 18px; }
.trend-rail article {
  min-height: 190px;
  padding: 24px;
  border-radius: 18px;
  background: #e6f0f3;
  color: #c7353b;
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 0.9;
  position: relative;
  overflow: hidden;
}
.trend-rail article:nth-child(2) { background: #f6dfaa; color: #6aa239; }
.trend-rail article:nth-child(3) { background: #f7d8d0; color: #7d2c2c; }
.trend-rail small { position: absolute; right: 20px; bottom: 18px; color: #111; font-family: Inter, Arial, sans-serif; font-size: 16px; font-weight: 900; }
.beta-float {
  position: fixed;
  right: max(18px, calc((100vw - 760px) / 2 + 18px));
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff41c7, #3b0b72 62%, #12051d);
  box-shadow: 0 12px 30px rgba(30,0,60,0.34);
}
.beta-float b { font-size: 30px; }
.beta-float span { position: absolute; bottom: -2px; padding: 2px 7px; border-radius: 8px; background: #2d2340; font-size: 10px; font-weight: 900; }
.swiggy-home .bottom-nav { background: rgba(255,255,255,0.98); }
@media (max-width: 430px) {
  .swiggy-search-header { grid-template-columns: 1fr 64px; padding-left: 14px; padding-right: 14px; }
  .swiggy-search .search-box input { min-height: 54px; font-size: 16px; }
  .cash-chip { min-height: 54px; border-radius: 18px; }
  .quick-vibe-row { grid-auto-columns: 118px; }
  .spotlight-rail { grid-auto-columns: 86%; }
  .spotlight-card { grid-template-columns: 43% 57%; min-height: 176px; }
  .spotlight-copy h3 { font-size: 22px; }
  .spotlight-copy p { font-size: 14px; }
  .category-grid { grid-template-columns: repeat(4, 116px); }
  .finest-rail { grid-auto-columns: 92%; }
  .finest-card { min-height: 230px; }
  .finest-card h3 { font-size: 24px; }
  .finest-card p { font-size: 19px; }
  .sponsored-rail { grid-auto-columns: 76%; }
}

/* Location and category filtering */
.swiggy-search-header { grid-template-columns: 1fr 72px; }
.location-access {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  color: #045633;
  background: #eefaf4;
  border: 1px solid #d7efe2;
  font-weight: 900;
  text-align: left;
}
.location-access span {
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 2px;
  background: #047a45;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}
.location-access b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.active-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -16px 16px 24px;
  padding: 12px 14px;
  border: 1px solid #e7efe9;
  border-radius: 16px;
  background: #fbfffd;
  box-shadow: 0 8px 22px rgba(0, 81, 47, 0.08);
}
.active-filter-bar span {
  min-width: 0;
  color: #315343;
  font-size: 13px;
  font-weight: 900;
}
.active-filter-bar button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: #00512f;
  font-weight: 900;
}
.quick-vibe-row button,
.category-grid button,
.mind-actions button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.quick-vibe-row button {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  justify-items: center;
  padding: 14px 10px 0;
  border: 0;
  border-radius: 18px;
  background: #004326;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05), 0 12px 26px rgba(0,0,0,0.18);
  text-align: center;
  overflow: hidden;
}
.quick-vibe-row button.active-category,
.category-grid button.active-category {
  outline: 3px solid #fc8019;
  outline-offset: -3px;
}
.category-grid button {
  min-height: 174px;
  display: grid;
  align-content: space-between;
  justify-items: center;
  padding: 14px 8px 0;
  border: 2px solid #e5e5e5;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  overflow: hidden;
}
.category-grid button b { font-size: 16px; line-height: 1.05; }
.category-grid button img { width: 110px; height: 88px; object-fit: cover; border-radius: 48% 48% 8px 8px; }
.mind-actions button {
  position: relative;
  min-height: 78px;
  padding: 14px 18px;
  border: 1px solid #eee3dc;
  border-radius: 14px;
  background: #fff5ef;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(20,20,20,0.05);
  text-align: left;
}
.deal-body p:first-of-type { color: #606060; }
@media (max-width: 430px) {
  .location-access { min-height: 36px; font-size: 13px; }
  .active-filter-bar { margin-top: -12px; }
}
