:root {
  --bg: #07090f;
  --bg-soft: #0d121f;
  --edge: rgba(137, 156, 210, 0.28);
  --text: #f5f7ff;
  --muted: #aeb7cf;
  --gold: #f6c878;
  --teal: #79e0d2;
  --violet: #8792ff;
  --glass: rgba(255, 255, 255, 0.08);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 15% 12%, rgba(121, 224, 210, 0.22), transparent 28%),
    radial-gradient(circle at 82% 76%, rgba(246, 200, 120, 0.16), transparent 31%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: inherit;
}
.page-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(173, 186, 227, 0.45) rgba(255, 255, 255, 0.08);
}

.page-scroll::-webkit-scrollbar {
  width: 10px;
}

.page-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.page-scroll::-webkit-scrollbar-thumb {
  background: rgba(173, 186, 227, 0.55);
  border-radius: 999px;
}

.blob {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.85;
  animation: blob-float 10s ease-in-out infinite;
}

.blob-a {
  width: 340px;
  height: 340px;
  top: -130px;
  left: -110px;
  background: radial-gradient(circle, rgba(121, 224, 210, 0.55) 0%, rgba(121, 224, 210, 0) 72%);
}

.blob-b {
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: -210px;
  background: radial-gradient(circle, rgba(246, 200, 120, 0.45) 0%, rgba(246, 200, 120, 0) 74%);
  animation-delay: 2s;
}

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-zoom {
  animation: hero-zoom 14s ease-in-out infinite alternate;
}

.carousel-photo {
  animation: photo-fade 560ms ease;
}

.stagger-card {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-in .stagger-card {
  animation: card-rise 620ms ease forwards;
  animation-delay: var(--card-delay, 0ms);
}

@keyframes blob-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.06);
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes photo-fade {
  from {
    opacity: 0.25;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .hero-zoom,
  .carousel-photo {
    animation: none;
  }

  .reveal,
  .stagger-card,
  .reveal-in .stagger-card {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

.order-page-shell,
.track-page-shell {
  min-height: 100vh;
  padding: 16px;
}

.order-page-shell {
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}

.order-topbar {
  margin: 0 auto 16px;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(7, 9, 15, 0.7);
}

.order-topbar h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
}

.order-topbar-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.order-layout {
  margin: 0 auto;
  max-width: 1200px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.menu-section,
.checkout-section,
.track-card,
.track-search,
.success-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(7, 9, 15, 0.65);
  backdrop-filter: blur(8px);
}

.menu-section,
.checkout-section,
.track-card,
.success-card {
  padding: 16px;
}

.menu-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 10px;
  margin-bottom: 14px;
}

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

.menu-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.menu-image {
  width: 100%;
  height: 172px;
  object-fit: cover;
  display: block;
}

.menu-image-placeholder {
  height: 172px;
  display: grid;
  place-items: center;
  color: #d2d7e9;
  font-size: 0.85rem;
  background: linear-gradient(135deg, rgba(121, 224, 210, 0.28), rgba(246, 200, 120, 0.2));
}

.menu-card-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.menu-card-body h3 {
  margin: 0;
  font-size: 1rem;
}

.menu-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-text {
  font-weight: 700;
}

.checkout-section h2,
.track-summary h3,
.track-card h2,
.success-card h2,
.success-card h3 {
  margin-top: 0;
}

.cart-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.cart-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-name {
  margin: 0;
  font-weight: 600;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.qty-control button,
.qty-control span {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px 10px;
}

.qty-control button {
  cursor: pointer;
}

.cart-total {
  margin: 12px 0;
  font-weight: 800;
}

.pickup-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.pickup-card h3 {
  margin: 0;
}

.checkout-form {
  display: grid;
  gap: 10px;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.checkout-close {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 12px;
}

.input::placeholder {
  color: #c5cbe0;
}

.input:focus {
  outline: 2px solid rgba(121, 224, 210, 0.55);
  outline-offset: 1px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  color: #071018;
  background: linear-gradient(120deg, #79e0d2, #f6c878);
}

.primary-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.secondary-btn {
  color: #f6f8ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ghost-btn {
  color: #f6f8ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.primary-btn.wide {
  width: 100%;
}

.small {
  font-size: 0.86rem;
}

.muted-text {
  color: var(--muted);
}

.error-text {
  color: #ffb4bf;
}

.success-text {
  color: #a4f2cf;
}

.floating-cart-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  min-width: 126px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
  color: #071018;
  background: linear-gradient(120deg, #79e0d2, #f6c878);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.cart-icon {
  font-size: 1rem;
  line-height: 1;
}

.cart-badge {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 800;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(2, 5, 10, 0.58);
  display: flex;
  justify-content: flex-end;
}

.cart-drawer {
  width: min(520px, 100%);
  max-height: 100vh;
  overflow-y: auto;
  padding: 16px;
}

.cart-drawer .checkout-section {
  background: rgba(7, 9, 15, 0.9);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 10, 0.64);
  display: grid;
  place-items: center;
  padding: 14px;
  z-index: 40;
}

.otp-modal {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 16px;
  background: rgba(7, 9, 15, 0.94);
  display: grid;
  gap: 10px;
}

.otp-modal h3 {
  margin: 0;
}

.dev-code {
  margin: 0;
  color: #ffe39d;
  font-weight: 700;
}

.otp-input {
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 1.25rem;
}

.otp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.payment-modal {
  gap: 12px;
}

.stripe-card-element {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.stripe-card-element .StripeElement {
  color: #f6f8ff;
}

.track-main {
  margin: 0 auto;
  max-width: 920px;
  display: grid;
  gap: 12px;
}

.track-search {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.track-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.track-label {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.track-status {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 10px;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.06);
}

.polling-indicator {
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dot-loader {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #79e0d2;
  animation: pulse-dot 1s infinite ease-in-out;
}

.status-track {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.status-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  opacity: 0.62;
}

.status-item.done,
.status-item.active {
  opacity: 1;
}

.status-item.active {
  border-color: rgba(121, 224, 210, 0.72);
}

.status-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.status-title {
  font-weight: 700;
}

.status-sub {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: capitalize;
}

.track-summary ul {
  margin: 0;
  padding-left: 18px;
}

.track-total {
  margin-bottom: 0;
  font-weight: 800;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

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

@media (max-width: 760px) {
  .menu-toolbar,
  .track-search {
    grid-template-columns: 1fr;
  }

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

  .order-page-shell,
  .track-page-shell {
    padding: 10px;
  }

  .order-page-shell {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .order-topbar {
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .order-topbar h1 {
    font-size: 1.08rem;
  }

  .menu-section,
  .checkout-section,
  .track-card,
  .success-card {
    padding: 12px;
  }

  .menu-image,
  .menu-image-placeholder {
    height: 156px;
  }

  .menu-card-row {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-card-row .primary-btn {
    width: 100%;
  }

  .input {
    font-size: 16px;
  }

  .floating-cart-btn {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    min-width: 112px;
    padding: 10px 12px;
  }

  .cart-backdrop {
    justify-content: center;
    align-items: flex-end;
  }

  .cart-drawer {
    width: 100%;
    max-height: 92dvh;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .cart-drawer .checkout-section {
    border-radius: 14px 14px 0 0;
  }

  .track-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .track-status {
    align-self: flex-start;
  }
}
