:root {
  --bg-base: #090a0f;
  --bg-glow-1: rgba(239, 68, 68, 0.20);
  --bg-glow-2: rgba(56, 189, 248, 0.12);
  --glass-bg: rgba(24, 27, 36, 0.72);
  --glass-bg-elevated: rgba(34, 38, 50, 0.86);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.24);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --glass-blur: blur(16px) saturate(145%);
  --glass-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #ef4444;
  --accent-hover: #dc2626;
  --accent-soft: rgba(239, 68, 68, 0.22);
  --accent-border: rgba(239, 68, 68, 0.55);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
  --radius-pill: 999px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Naskh Arabic", "Vazirmatn", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 35%, var(--bg-glow-1), transparent 45%),
    radial-gradient(circle at 18% 15%, var(--bg-glow-2), transparent 42%),
    linear-gradient(180deg, #0c0e14 0%, #07080b 100%);
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

.glass-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-strong);
}

.search-bar {
  margin: 0 1rem 0.9rem;
  padding: 0.15rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  border-radius: var(--radius-sm);
}

.search-bar:focus-within {
  border-color: var(--accent-border);
  background: var(--glass-bg-elevated);
}

.search-bar input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0.7rem 0.2rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* Horizontal Photo Category Banner Strip (matches screenshot) */
.top-categories-tabs {
  display: flex;
  gap: 0.65rem;
  padding: 0 1rem 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.top-categories-tabs::-webkit-scrollbar {
  display: none;
}

.small-category-tab {
  position: relative;
  flex: 0 0 152px;
  height: 92px;
  padding: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1b1e28;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.small-category-tab img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0.72;
}

.small-category-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.25) 0%, rgba(10, 12, 18, 0.65) 100%);
  pointer-events: none;
}

.small-category-tab h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.small-category-tab.active {
  border: 2px solid #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  transform: translateY(-1px);
}

.small-category-tab.active img {
  opacity: 0.92;
}

/* Hot / Cold filter pills right under the category strip */
.filter-pills {
  display: flex;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0 1rem 0.9rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  padding: 0.36rem 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.pill.active {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

/* Centered divider title with lines on both sides */
.category-title-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.35rem 1rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.category-title-divider::before,
.category-title-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

/* Mobile-friendly tap & input sizing */
@media (max-width: 640px) {
  .small-category-tab {
    flex: 0 0 138px;
    height: 84px;
  }

  .item-card {
    padding: 0.85rem;
  }

  .item-image-wrap {
    width: 88px;
    height: 88px;
  }

  .btn-add {
    width: 32px;
    height: 32px;
  }

  .btn-add::after {
    content: "";
    position: absolute;
    inset: -8px;
  }
}

.category-grid {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 0 1rem;
}

.big-category-card {
  position: relative;
  height: 170px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(226, 232, 240, 0.92);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  cursor: pointer;
}

.big-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.big-category-card .overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.05) 35%, rgba(10, 12, 18, 0.78) 100%);
}

.big-category-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.category-title-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 1rem 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.category-title-divider::before,
.category-title-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 1rem;
}

.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  cursor: pointer;
}

.item-card:hover {
  background: var(--glass-bg-elevated);
  border-color: var(--glass-border-strong);
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.item-info .desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.item-info .price {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.88rem;
}

.item-image-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}

.item-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.btn-add {
  position: absolute;
  bottom: -6px;
  left: -6px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 4, 8, 0.72);
  backdrop-filter: blur(8px);
}

.modal-overlay.active {
  display: flex;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(18, 21, 31, 0.92);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.close-modal {
  float: left;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-img {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.modal-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  clear: both;
}

.modal-price {
  color: #fca5a5;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.15rem;
}

.modal-add-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 0;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}


body.welcome-body {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: clip;
}

.cover-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 14, 0.35) 0%,
    rgba(7, 9, 14, 0.2) 45%,
    rgba(7, 9, 14, 0.78) 100%
  );
}

.top-nav {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
}
.welcome-content {
  position: relative;
  z-index: 2;
}

.welcome-content {
  margin: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(16, 19, 28, 0.45);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}
.status {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.action-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.action-row .glass-btn {
  flex: 1;
  height: 44px;
}

.cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 0.92rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

input,
select,
textarea {
  font-family: inherit;
}

.owner-card form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.owner-card .field-row {
  width: 100%;
  margin-bottom: 0;
}

input[type="file"] {
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.84rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
}

input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid var(--glass-border-strong);
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.owner-card,
.super-card,
.login-card,
.restaurant-card,
.category-block,
.item-row,
.list-item,
.detail-box {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.bottom-nav {
  background: rgba(14, 17, 26, 0.88);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
}
/* Prevent iOS input auto-zoom & contain modal scroll */
.search-bar input,
input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
  font-size: 16px;
}

.modal-sheet {
  overscroll-behavior: contain;
  padding-bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
}

/* Easier thumb tap target for quick '+' button */
.btn-add {
  position: relative;
  width: 32px;
  height: 32px;
}

.btn-add::after {
  content: "";
  position: absolute;
  inset: -8px;
}

/* Safe-area spacing for fixed bottom bar & toast on mobile */
.bottom-nav {
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
}

.status-toast {
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}
.menu-header {
  flex-wrap: nowrap;
}

.menu-header-btn {
  flex-shrink: 0;
  gap: 0.35rem;
}

.menu-header-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-header {
  position: sticky;
  top: 0.75rem;
  z-index: 25;
  margin: 0.75rem 1rem 1rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  border-radius: var(--radius-sm);
}

.menu-header-btn {
  flex-shrink: 0;
  gap: 0.35rem;
}

.menu-header-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.page-logo {
    display: flex;
    justify-content: center; /* Centers the logo horizontally */
    align-items: center;     /* Centers vertically */
    margin-bottom: 40px;     /* Adds some space below the logo */
    padding-top: 40px;       /* Adjust top spacing as needed */
}

.page-logo img {
    max-width: 300px;        /* Adjust this to fit your design */
    height: auto;            /* Keeps the aspect ratio correct */
    object-fit: contain;     /* Ensures the logo isn't distorted */

}


