:root {
  --bg: #080b14;
  --bg-soft: #0f172a;
  --card: rgba(255, 255, 255, 0.09);
  --card-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #ff3d71;
  --primary-2: #ffb703;
  --success: #22c55e;
  --danger: #fb7185;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 61, 113, 0.22), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(255, 183, 3, 0.16), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.12), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 80%);
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  position: relative;
  z-index: 1;
}

.aurora-bg {
  position: fixed;
  inset: -20%;
  z-index: -3;
  background:
    conic-gradient(from 180deg at 50% 50%, rgba(255, 61, 113, 0.22), rgba(255, 183, 3, 0.18), rgba(34, 197, 94, 0.16), rgba(59, 130, 246, 0.18), rgba(255, 61, 113, 0.22));
  filter: blur(90px);
  opacity: 0.55;
  animation: auroraSpin 24s linear infinite;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.glass-nav {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 20, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.nav-container {
  padding: 0.75rem 0;
}

.brand-mark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark small,
.footer-brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-orb {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 25%, #fff, transparent 18%),
    linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 36px rgba(255, 61, 113, 0.55);
}

.navbar-toggler {
  border: 0;
  color: #fff;
}

.nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.65rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  border: 0;
  color: #16070d;
  background: linear-gradient(135deg, #ff3d71, #ffb703);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(255, 61, 113, 0.28);
}

.btn-primary:hover {
  color: #16070d;
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(255, 61, 113, 0.38);
}

.btn-dark {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-weight: 900;
}

.btn-ghost,
.btn-outline-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.btn-outline-primary:hover,
.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.section-stack {
  padding: 5.5rem 0;
}

.page-hero {
  padding-top: 5rem;
}

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

.hero-section {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffd6e2;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.restaurant-banner-content h1,
.order-panel h2 {
  letter-spacing: -0.06em;
}

.hero-copy h1 {
  margin: 1rem 0 1.2rem;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
}

.hero-lead {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 2rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-search input,
.hero-search .form-control,
.hero-search .form-select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 0.85rem 1rem;
}

.hero-search input::placeholder,
.form-control::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-search .form-control,
.form-control,
.form-select,
textarea {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.form-select option {
  color: #0f172a;
}

.form-label {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.glass-card,
.restaurant-card,
.order-panel,
.metric-card,
.menu-item,
.cart-row,
.empty-state,
.error-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-visual {
  min-height: 560px;
}

.floating-stack {
  position: relative;
  min-height: 560px;
}

.visual-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.visual-card-main {
  width: min(100%, 440px);
  min-height: 430px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 42px;
  padding: 1.2rem;
  display: grid;
  align-content: end;
  gap: 1rem;
  overflow: hidden;
}

.visual-card-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 183, 3, 0.45), transparent 34%), linear-gradient(135deg, rgba(255, 61, 113, 0.28), rgba(34, 197, 94, 0.16));
}

.visual-card-main img {
  position: relative;
  z-index: 1;
  width: 78%;
  margin: 0 auto;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.35));
  animation: floatDish 5s ease-in-out infinite;
}

.visual-card-main div {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(8, 11, 20, 0.55);
}

.visual-card-side {
  width: 170px;
  min-height: 150px;
  border-radius: 32px;
  padding: 1.2rem;
  display: grid;
  align-content: end;
}

.visual-card-side.one {
  left: 4%;
  top: 16%;
}

.visual-card-side.two {
  right: 2%;
  top: 24%;
}

.visual-card-side span {
  font-size: 2.4rem;
  font-weight: 1000;
  letter-spacing: -0.08em;
}

.visual-card-side small {
  color: var(--muted);
  font-weight: 800;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 900;
  transition: 0.25s ease;
}

.chip span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #0f172a;
  background: var(--chip-color, var(--primary-2));
  font-size: 0.72rem;
}

.chip:hover,
.chip.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--chip-color, var(--primary)) 70%, white 10%);
  background: color-mix(in srgb, var(--chip-color, var(--primary)) 34%, rgba(255, 255, 255, 0.08));
  transform: translateY(-2px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.order-panel h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading.compact {
  display: block;
  margin-bottom: 1.2rem;
}

.link-arrow {
  color: #ffd6e2;
  font-weight: 900;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.wide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.restaurant-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.restaurant-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: rgba(255, 61, 113, 0.42);
  background: linear-gradient(145deg, rgba(255, 61, 113, 0.16), rgba(255, 255, 255, 0.07));
}

.restaurant-image-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 61, 113, 0.22), rgba(255, 183, 3, 0.12));
}

.restaurant-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.restaurant-card:hover img {
  transform: scale(1.08);
}

.badge-soft,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.badge-soft {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.45rem 0.75rem;
  color: #16070d;
  background: linear-gradient(135deg, #fff, #ffe4ec);
}

.restaurant-card-body,
.menu-item-body,
.cart-row-body {
  padding: 1.2rem;
}

.restaurant-meta,
.menu-item-heading,
.menu-item-footer,
.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.restaurant-meta span,
.restaurant-stats,
.menu-item-footer small,
.cart-row-body small {
  color: var(--muted);
}

.restaurant-card h3,
.menu-item h3 {
  margin: 0.75rem 0 0.45rem;
  letter-spacing: -0.04em;
}

.restaurant-card p,
.menu-item p,
.cart-row-body span,
.checkout-item span {
  color: var(--muted);
}

.restaurant-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.restaurant-stats span,
.menu-item-footer small,
.cart-row-body small {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
  font-weight: 800;
}

.split-section {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.035), transparent);
}

.trending-carousel {
  position: relative;
  padding: 1rem;
  border-radius: 34px;
  overflow: hidden;
}

.trending-viewport {
  overflow: hidden;
  border-radius: 28px;
}

.trending-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.trending-item {
  flex: 0 0 clamp(220px, 24vw, 280px);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: 26px;
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 11, 20, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
}

.carousel-btn:hover {
  color: #fff;
  background: rgba(255, 61, 113, 0.72);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.trending-item img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 20px;
}

.trending-item strong,
.trending-item span {
  display: block;
}

.trending-item span {
  color: #ffd6e2;
  font-weight: 900;
}

.restaurant-hero {
  padding: 3rem 0 0;
}

.restaurant-banner {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111827;
  box-shadow: var(--shadow);
}

.restaurant-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.1);
}

.restaurant-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 11, 20, 0.92), rgba(8, 11, 20, 0.5), transparent);
}

.restaurant-banner-content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  padding: clamp(2rem, 6vw, 5rem);
}

.menu-section + .menu-section {
  margin-top: 3rem;
}

.menu-list {
  display: grid;
  gap: 1rem;
}

.menu-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  border-radius: 26px;
  overflow: hidden;
}

.menu-item img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.add-btn {
  min-width: 92px;
}

.add-btn.added {
  color: #052e16;
  background: linear-gradient(135deg, #22c55e, #86efac);
}

.added-animation {
  animation: cartPulse 0.45s ease;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 34px 44px 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.qty-btn {
  height: 34px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.quantity-stepper input {
  width: 44px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #fff;
  text-align: center;
  font-weight: 900;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.quantity-stepper input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.ajax-cart-form.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 1100;
  max-width: min(92vw, 420px);
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, 120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  backdrop-filter: blur(18px);
}

.cart-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.cart-row.is-removing {
  animation: cartRemove 0.22s ease forwards;
}

.order-panel,
.metric-card {
  border-radius: var(--radius);
  padding: 1.4rem;
}

.track-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  padding: 1rem;
}

.track-card span,
.track-card small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
}

.track-card strong {
  display: block;
  margin: 0.25rem 0;
  color: #ffd6e2;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

.mini-timeline {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.mini-timeline span {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.mini-timeline span:nth-child(1) {
  background: var(--primary);
}

.cart-list {
  display: grid;
  gap: 1rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  border-radius: 26px;
  overflow: hidden;
}

.cart-row img {
  width: 100%;
  height: 100%;
  min-height: 145px;
  object-fit: cover;
}

.cart-row-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-controls {
  min-width: 170px;
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.quantity-form {
  width: 112px;
}

.quantity-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.85rem 0;
  color: rgba(255, 255, 255, 0.78);
}

.total-row strong {
  color: #fff;
}

.total-row.discount strong {
  color: #86efac;
}

.total-row.grand {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.25rem;
}

.checkout-form {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: var(--radius);
}

.checkout-item,
.insight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-item img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
}

.checkout-item div {
  flex: 1;
}

.checkout-list {
  display: grid;
  gap: 0.2rem;
}

.tracking-timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.tracking-timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(var(--primary), rgba(255, 255, 255, 0.12));
}

.tracking-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tracking-dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: #1f2937;
}

.tracking-step.completed .tracking-dot {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(255, 61, 113, 0.12);
}

.tracking-step.active .tracking-dot {
  border-color: var(--primary-2);
  background: var(--primary-2);
  animation: pulseDot 1.4s ease-in-out infinite;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card span,
.insight-item span {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 0.4rem 0;
  font-size: 2.2rem;
  letter-spacing: -0.06em;
}

.table {
  color: rgba(255, 255, 255, 0.82);
}

.table thead th {
  color: #ffd6e2;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.table tbody td {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.status-pill {
  padding: 0.45rem 0.75rem;
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.8);
}

.status-pill.small {
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
}

.status-pill.large {
  padding: 0.75rem 1rem;
}

.insight-list {
  display: grid;
  gap: 0.8rem;
}

.insight-item {
  display: grid;
  gap: 0.15rem;
  justify-content: stretch;
}

.insight-item strong {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.insight-item small {
  color: var(--muted);
}

.empty-state,
.error-card {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 42px;
  padding: 3rem;
}

.empty-visual {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 42px;
  background:
    radial-gradient(circle at 35% 30%, #fff, transparent 16%),
    linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 60px rgba(255, 61, 113, 0.45);
}

.empty-visual {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 42px;
  background:
    radial-gradient(circle at 35% 30%, #fff, transparent 16%),
    linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 60px rgba(255, 61, 113, 0.45);
}

.error-card .display-1 {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 32px;
  background: rgba(251, 113, 133, 0.16);
  color: #fecdd3;
}

.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: stretch;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 44px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 0.88fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 4vw, 3rem);
  border-radius: 34px;
  background: rgba(8, 11, 20, 0.38);
}

.auth-panel > * {
  min-width: 0;
}

.auth-copy-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  padding-left:0;
}

.auth-copy-block h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.auth-copy-block p {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.8;
}

.auth-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2.5rem;
}

.auth-proof-grid div {
  min-height: 112px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
}

.auth-proof-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.auth-proof-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.auth-form-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.auth-form-card h2 {
  margin: 0.2rem 0 1.35rem;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.track-form {
  display: grid;
  gap: 1rem;
}

.track-help {
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  padding: 1rem;
}

.track-help strong {
  color: #ffd6e2;
}

.form-stack {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-stack.full-span {
  grid-column: 1 / -1;
}

.field-label,
.field-label-row {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 850;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.subtle-link {
  color: #ffd6e2;
  font-size: 0.82rem;
  font-weight: 850;
}

.auth-input {
  min-height: 52px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  font-size: 1rem;
  background: rgba(8, 11, 20, 0.42);
}

.small-text {
  font-size: 0.78rem;
}

.custom-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 750;
}

.auth-submit {
  min-height: 56px;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.auth-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-note a {
  color: #ffd6e2;
  font-weight: 900;
}

.auth-visual {
  position: relative;
  min-height: 620px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 183, 3, 0.24), transparent 32%),
    linear-gradient(145deg, rgba(255, 61, 113, 0.16), rgba(34, 197, 94, 0.1));
  overflow: hidden;
}

.register-visual {
  background:
    radial-gradient(circle at 50% 35%, rgba(34, 197, 94, 0.24), transparent 32%),
    linear-gradient(145deg, rgba(255, 61, 113, 0.1), rgba(59, 130, 246, 0.16));
}

.visual-orbit {
  position: absolute;
  inset: 12%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 58%),
    conic-gradient(from 90deg, rgba(255, 61, 113, 0.38), rgba(255, 183, 3, 0.32), rgba(34, 197, 94, 0.34), rgba(255, 61, 113, 0.38));
  animation: auroraSpin 18s linear infinite;
}

.visual-orbit img {
  width: min(78%, 320px);
  filter: drop-shadow(0 35px 40px rgba(0, 0, 0, 0.35));
  animation: floatDish 5s ease-in-out infinite;
}

.auth-floating-card {
  position: absolute;
  width: 190px;
  min-height: 96px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(8, 11, 20, 0.62);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.auth-floating-card strong,
.auth-floating-card span {
  display: block;
}

.auth-floating-card span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-floating-card.card-one {
  top: 8%;
  left: 8%;
}

.auth-floating-card.card-two {
  right: 8%;
  top: 36%;
}

.auth-floating-card.card-three {
  left: 14%;
  bottom: 9%;
}

.address-list {
  display: grid;
  gap: 0.85rem;
}

.address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.address-card span,
.address-card small {
  display: block;
  color: var(--muted);
}

.address-card small {
  margin-top: 0.25rem;
}

.save-address-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 22px;
  background: rgba(34, 197, 94, 0.08);
}

.save-address-card strong,
.save-address-card small {
  display: block;
}

.save-address-card small {
  color: var(--muted);
}

.admin-actions {
  display: grid;
  gap: 0.5rem;
  min-width: 180px;
}

.admin-status-select {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.filter-panel,
.quick-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.filter-select {
  min-width: 180px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.delivery-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.delivery-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.delivery-actions form {
  min-width: 0;
}

.rider-select {
  min-width: 100%;
}

.location-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.delivery-board-list {
  display: grid;
  gap: 1rem;
}

.delivery-assignment-card,
.delivery-zone-card,
.delivery-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  padding: 1rem;
}

.delivery-assignment-card + .delivery-assignment-card,
.delivery-zone-card + .delivery-zone-card,
.delivery-card + .delivery-card {
  margin-top: 0.85rem;
}

.delivery-assignment-header,
.delivery-card-actions,
.delivery-zone-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.delivery-assignment-header {
  align-items: flex-start;
}

.delivery-assignment-header h3 {
  margin: 0.25rem 0 0.35rem;
  letter-spacing: -0.04em;
}

.delivery-assignment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.delivery-assignment-grid div,
.rider-card,
.update-strip {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.75rem;
}

.delivery-assignment-grid span,
.rider-card small,
.delivery-card small,
.delivery-zone-card small {
  display: block;
  color: var(--muted);
}

.delivery-assignment-grid span {
  font-size: 0.75rem;
  font-weight: 800;
}

.delivery-assignment-grid strong,
.delivery-assignment-grid small {
  display: block;
}

.rider-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
}

.update-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.update-strip span {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.active-zone {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.compact-empty {
  min-height: 300px;
  padding: 2rem;
}

.small-empty {
  width: 96px;
  height: 96px;
  border-radius: 30px;
}

.glass-modal,
.glass-dialog {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(8, 11, 20, 0.96));
  box-shadow: var(--shadow);
}

.glass-dialog {
    width: min(1120px, calc(100% - 1.5rem));
    max-width: 1120px;
    max-height: min(92vh, 980px);
    padding: 20px;
    border-radius: 34px;
    overflow: hidden;
}

.glass-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.dialog-form {
  max-height: min(92vh, 980px);
  overflow: auto;
}

.dialog-input {
  user-select: text;
  pointer-events: auto;
}

.category-check {
  cursor: pointer;
}

.category-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-check:has(input:checked) {
  border-color: color-mix(in srgb, var(--chip-color, var(--primary)) 70%, white 10%);
  background: color-mix(in srgb, var(--chip-color, var(--primary)) 34%, rgba(255, 255, 255, 0.08));
}

.edit-details,
.admin-actions details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.85rem;
}

.summary-link {
  cursor: pointer;
  color: #ffd6e2;
  font-weight: 900;
  list-style: none;
}

.summary-link::-webkit-details-marker {
  display: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 11, 20, 0.55);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.reveal {
  animation: revealUp 0.8s ease both;
}

.delay-1 {
  animation-delay: 0.16s;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cartPulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.025);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes cartRemove {
  to {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
  }
}

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

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

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 430px;
  }

  .auth-copy-block {
    min-height: auto;
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .restaurant-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual,
  .floating-stack {
    min-height: 460px;
  }

  .visual-card-main {
    width: 360px;
  }

  .filter-panel,
  .quick-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-select,
  .quick-filter .form-select {
    min-width: 100%;
  }

  .delivery-assignment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-item,
  .cart-row {
    grid-template-columns: 1fr;
  }

  .cart-row img,
  .menu-item img {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .section-stack {
    padding: 3.5rem 0;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .hero-search,
  .cart-row-body,
  .restaurant-meta,
  .menu-item-heading,
  .menu-item-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .table {
    font-size: 0.82rem;
  }

  .admin-actions {
    min-width: 0;
    width: 100%;
  }

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

  .visual-card-side {
    display: none;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .delivery-form-grid,
  .delivery-actions,
  .delivery-assignment-grid,
  .location-row {
    grid-template-columns: 1fr;
  }

  .delivery-assignment-header,
  .delivery-card-actions,
  .delivery-zone-card,
  .rider-card {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    min-width: 0;
  }

  .order-panel,
  .metric-card {
    position: static;
  }
}
