/* Sincap: custom styles (unlayered, so they win over Tailwind layers) */
body {
  -webkit-tap-highlight-color: transparent;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
body .text-gold {
  color: #0077cc;
} /* vurğu mətni: #009FF7-nin oxunaqlı tonu */
.no-scrollbar {
  scrollbar-width: none;
}
.grain {
  background-image: none;
}
.page {
  animation: fade 0.3s ease;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Canlı panel: yeni gələn sifariş kartı bir dəfə parıldayır */
@keyframes freshIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    box-shadow: 0 0 0 0 rgba(0, 159, 247, 0.7);
  }
  45% {
    opacity: 1;
    transform: none;
    box-shadow: 0 0 0 10px rgba(0, 159, 247, 0.18);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 159, 247, 0);
  }
}
.fresh {
  animation: freshIn 1.4s ease-out 1;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  text-align: left;
}
.profile-row.hidden {
  display: none;
}
.profile-row:hover {
  background: rgba(140, 205, 246, 0.3);
}
.field {
  width: 100%;
  border-radius: 0.9rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 0.75rem 0.9rem;
  color: #0b2e4a;
  font-size: 0.9rem;
  outline: none;
}
.field:focus {
  border-color: #009ff7;
}
/* ---- Beyaz bölge (Kategoriler ve aşağısı) ---- */
.light-zone {
  color: #0b2e4a;
}
.light-zone .text-sage {
  color: #4a6e8a;
}
.light-zone .text-gold:not(.keep-gold) {
  color: #0077cc;
}
.light-zone .bg-forest-800 {
  background-color: #ffffff;
}
.light-zone .ring-forest-700 {
  --tw-ring-color: #e5e7eb;
}
.light-zone .shadow-card {
  --tw-shadow: 0 10px 28px -16px rgba(11, 46, 74, 0.3);
}
.light-zone .bg-cream {
  background-color: #0b2e4a;
  color: #e8f4fe;
}
.light-zone .bg-cream:hover {
  background-color: #009ff7;
  color: #ffffff;
}
/* ---- Konum seçici ---- */
.loc-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a6e8a;
}
.loc-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0.9rem;
  background: #ffffff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009FF7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 0.7rem center / 1rem;
  border: 1px solid #e5e7eb;
  padding: 0.7rem 2.1rem 0.7rem 0.85rem;
  color: #0b2e4a;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}
.loc-select:focus {
  border-color: #009ff7;
}
.loc-select:disabled {
  opacity: 0.45;
  cursor: default;
}
.loc-select option {
  color: #0b2e4a;
  background: #fff;
}
.loc-mini {
  border-radius: 999px;
  background: rgba(0, 159, 247, 0.12);
  color: #0077cc;
  padding: 0.25rem 0.6rem;
  font-size: 11px;
  font-weight: 700;
}
.edit-only {
  display: none !important;
}
body.editing .edit-only {
  display: flex !important;
}
body.editing .view-only {
  display: none !important;
}

/* ---- Telefon: tam ekran, böyütmə olmadan ----
       iPhone 16px-dən kiçik şriftli xanaya toxunanda səhifəni özü böyüdür və geri qaytarmır.
       Ona görə bütün yazı xanaları telefonda 16px-dir. Həmçinin heç nə ekrandan enə daşmasın. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  max-width: 100%;
  overflow-x: clip;
} /* clip (not hidden): keeps the sticky header working */
@media (max-width: 767px) {
  input,
  select,
  textarea,
  .field,
  .loc-select {
    font-size: 16px !important;
  }
}
img,
svg,
video,
canvas {
  max-width: 100%;
}

/* Kompilyasiya olunmuş Tailwind-də olmayan, amma istifadə olunan siniflər */
.my-4 {
  margin-block: calc(var(--spacing, 0.25rem) * 4);
}
.col-span-3 {
  grid-column: span 3 / span 3;
}

/* ---- Ümumi incəliklər ---- */
.field {
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field:focus {
  box-shadow: 0 0 0 4px rgba(0, 159, 247, 0.15);
}
.loc-select:focus {
  box-shadow: 0 0 0 4px rgba(0, 159, 247, 0.15);
}
.nav-btn {
  transition: color 0.2s;
}
.nav-btn .nav-icon.bg-gold {
  box-shadow: 0 10px 20px -10px rgba(0, 159, 247, 0.9);
}
.nav-btn:active .nav-icon {
  transform: scale(0.92);
}
#restList > li,
#pizzaList > li {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
@media (hover: hover) {
  #restList > li:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -22px rgba(11, 46, 74, 0.45);
  }
}
.profile-row:active {
  background: rgba(140, 205, 246, 0.45);
}
#toast {
  box-shadow: 0 12px 30px -12px rgba(11, 46, 74, 0.45);
}
#sheet > div:last-child {
  box-shadow: 0 -20px 50px -25px rgba(11, 46, 74, 0.5);
}

/* ---- Giriş / qeydiyyat ekranı (Supabase Auth) ---- */
.auth-art {
  position: relative;
  height: 6.5rem;
  margin-bottom: 1.25rem;
}
.auth-art img {
  position: absolute;
  border-radius: 999px;
  box-shadow: 0 14px 30px -14px rgba(11, 46, 74, 0.45);
  border: 4px solid #ffffff;
}
.auth-art-a {
  left: 0;
  top: 1.2rem;
  width: 4.5rem;
  height: 4.5rem;
  animation: authFloat 6s ease-in-out infinite;
}
.auth-art-b {
  left: 50%;
  top: 0;
  width: 6rem;
  height: 6rem;
  transform: translateX(-50%);
  animation: authFloatC 7s ease-in-out infinite;
}
.auth-art-c {
  right: 0;
  top: 1.6rem;
  width: 4rem;
  height: 4rem;
  animation: authFloat 5.5s ease-in-out infinite reverse;
}
@keyframes authFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}
@keyframes authFloatC {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-art img {
    animation: none;
  }
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-top: 1.25rem;
  padding: 0.25rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}
.auth-tabs button {
  padding: 0.65rem;
  border-radius: 0.8rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #4a6e8a;
  transition:
    background 0.2s,
    color 0.2s;
}
.auth-tabs button.on {
  background: #009ff7;
  color: #ffffff;
  box-shadow: 0 6px 16px -8px rgba(0, 159, 247, 0.8);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}
.auth-form .auth-submit {
  margin-top: 0.5rem;
}
.auth-pw {
  position: relative;
  display: block;
}
/* Açılış ekranı (hesab yoxlanana qədər) */
.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background: #f3f4f6;
  transition: opacity 0.25s ease;
}
.boot-splash.is-done {
  opacity: 0;
  pointer-events: none;
}
.boot-splash-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0b2e4a;
}
.boot-splash-spin {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 3px solid #e5e7eb;
  border-top-color: #009ff7;
  animation: bootspin 0.8s linear infinite;
}
@keyframes bootspin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot-splash-spin {
    animation-duration: 2.4s;
  }
}

/* PWA: "Sincap-ı telefonuna əlavə et" təklifi (telefonda alt menyunun üstündə) */
.pwa-banner {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 6.25rem);
  z-index: 75; /* giriş ekranının (z 70) üstündə, bildirişin (z 80) altında */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(calc(100% - 1.5rem), 26rem);
  transform: translateX(-50%);
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 0.75rem 0.6rem 0.75rem 0.75rem;
  box-shadow: 0 18px 40px -16px rgba(11, 46, 74, 0.45);
  border: 1px solid #e5e7eb;
  animation: pwaIn 0.35s ease;
}
@keyframes pwaIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.pwa-icon {
  width: 2.9rem;
  height: 2.9rem;
  flex-shrink: 0;
  border-radius: 0.8rem;
}
.pwa-text {
  min-width: 0;
  flex: 1;
}
.pwa-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0b2e4a;
}
.pwa-sub {
  margin-top: 0.1rem;
  font-size: 0.74rem;
  color: #5b7a93;
}
.pwa-add {
  flex-shrink: 0;
  border-radius: 999px;
  background: #009ff7;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}
.pwa-close {
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #8aa0b2;
}
.pwa-close:hover {
  background: #f1f5f9;
}
/* iPhone təlimatı */
.pwa-steps {
  display: grid;
  gap: 0.9rem;
}
.pwa-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.pwa-steps li > span {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #f3f4f6;
  font-weight: 800;
  color: #0070b8;
}
.pwa-steps p {
  font-size: 0.9rem;
  line-height: 1.45;
}
.pwa-share {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: -0.2rem;
  color: #009ff7;
}

/* Restoran səhifəsində "← Restoranlar" keçidi (ağ bölmənin içində) */
.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0b2e4a;
  transition:
    background 0.2s,
    transform 0.1s;
}
.back-pill:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #0070b8;
}
.back-pill:active {
  transform: scale(0.97);
}
.back-pill.hidden {
  display: none;
}
/* Restoran hesabı "Müştəri kimi bax": yalnız baxış bildirişi */
.preview-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.7rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #92400e;
}
.preview-note.hidden {
  display: none;
}
.preview-note-btn {
  flex-shrink: 0;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #fcd34d;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  color: #92400e;
}
.preview-note-btn:active {
  transform: scale(0.97);
}
#basketBack {
  margin-bottom: 0.25rem;
  background: #ffffff;
  max-width: 100%;
}
#basketBackLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Səbətdə məhsulu silmək */
.basket-del {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.4rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #dc2626;
}
.basket-del:hover {
  background: #fef2f2;
}

/* Restoran menyusu: sadə, göz yormayan sətirlər (bir ağ kart, aralarında incə xətt) */
.prod-list {
  background: transparent;
} /* çərçivə yoxdur: məhsullar səhifənin fonunda */
.prod-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
  cursor: pointer;
}
.prod-row + .prod-row {
  border-top: 1px solid #f1f2f4;
}
.prod-row.is-edit {
  cursor: default;
}
.prod-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.prod-tag {
  width: fit-content;
  margin-bottom: 0.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c08a1e;
}
.prod-name {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0b2e4a;
}
.prod-desc {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b8399;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}
.prod-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0b2e4a;
}
.prod-incart {
  border-radius: 0.35rem;
  background: #f3f4f6;
  padding: 0.12rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0070b8;
}
.prod-edit {
  margin-left: auto;
  border-radius: 0.4rem;
  background: #009ff7;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}
.prod-media {
  position: relative;
  width: 8.4rem; /* böyüdülüb (6,6×5,5 → 8,4×7rem, ~27%), nisbət 1,2:1 qalır */
  height: 7rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  /* Şəkil tam görünür (kəsilmir) və künclər şəklin özündə yuvarlaqdır: element şəklin real ölçüsünə qədər kiçilir */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: default;
}
.prod-media > img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0.5rem;
  background: transparent;
}
.prod-add {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.45rem;
  background: #ffffff;
  color: #009ff7;
  box-shadow: 0 2px 8px rgba(11, 46, 74, 0.18);
  transition:
    transform 0.1s,
    background 0.2s,
    color 0.2s;
}
.prod-add:hover {
  background: #009ff7;
  color: #ffffff;
}
.prod-add:active {
  transform: scale(0.9);
}
.prod-closed {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.2rem 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
}
/* Bitmiş məhsul: boz görünür, "Bitib" nişanı */
.prod-row.is-soldout .prod-name,
.prod-row.is-soldout .prod-price {
  color: #8aa0b2;
}
.prod-row.is-soldout .prod-media img {
  filter: grayscale(1);
  opacity: 0.55;
}
.prod-sold {
  border-radius: 0.35rem;
  background: #f1f5f9;
  padding: 0.12rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
}
/* Redaktə rejimində "Bitib" / "Satışa qaytar" açarı */
.prod-avail {
  border-radius: 0.4rem;
  background: #fef2f2;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b91c1c;
}
.prod-avail.is-off {
  background: #ecfdf5;
  color: #047857;
}
.prod-avail + .prod-edit {
  margin-left: 0;
}
.prod-foot:has(.prod-avail) .prod-avail {
  margin-left: auto;
}
.prod-empty {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b8399;
}

/* Səbətim: başlıq ikonu və boş səbət */
.basket-ico {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: #f3f4f6;
  font-size: 1rem;
}
.basket-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 0.25rem;
  padding: 1.75rem 1rem 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border: 1px dashed #e5e7eb;
}
.basket-empty.hidden {
  display: none;
}
.basket-empty-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
}
.basket-empty-art span {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1.1rem;
  background: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(0, 112, 184, 0.12);
  border: 1px solid #eceef1;
}
.basket-empty-art span:nth-child(1) {
  transform: rotate(-10deg) translateY(4px);
}
.basket-empty-art span:nth-child(2) {
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  z-index: 1;
}
.basket-empty-art span:nth-child(3) {
  transform: rotate(10deg) translateY(4px);
}
.basket-empty-text {
  max-width: 17rem;
  margin-left: auto;
  margin-right: auto;
}
.basket-empty-btn {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: #009ff7;
  color: #ffffff;
  padding: 0.7rem 1.25rem 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 159, 247, 0.28);
  transition:
    transform 0.1s,
    background 0.2s;
}
.basket-empty-btn:hover {
  background: #0090e0;
}
.basket-empty-btn:active {
  transform: scale(0.97);
}

/* Ünvan axtarışı (küçə təklifləri) */
.addr-wrap {
  position: relative;
}
.addr-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 30;
  max-height: 16rem;
  overflow-y: auto;
  border-radius: 0.9rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(11, 46, 74, 0.14);
  padding: 0.3rem;
}
.addr-list.hidden {
  display: none;
}
.addr-opt {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 0.65rem;
  padding: 0.6rem 0.7rem;
  color: #0b2e4a;
  font-size: 0.88rem;
  line-height: 1.3;
}
.addr-opt:hover,
.addr-opt:focus {
  background: #f3f4f6;
  outline: none;
}
.addr-opt b {
  display: block;
  font-weight: 700;
}
.addr-opt span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: #5b7a93;
}
.addr-gps {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0070b8;
}
.addr-gps:active {
  transform: scale(0.98);
}
.addr-empty {
  padding: 0.6rem 0.7rem;
  font-size: 0.8rem;
  color: #5b7a93;
}
.auth-pw .field {
  padding-right: 2.8rem;
}
.auth-eye {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1rem;
  opacity: 0.65;
}
.auth-eye:hover {
  opacity: 1;
}
.auth-msg {
  margin-top: 1rem;
  border-radius: 0.9rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 600;
}
.auth-msg-err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.auth-msg-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
}
.auth-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a6e8a;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.35rem;
}
.auth-link:hover {
  color: #0077cc;
}
.auth-center {
  text-align: center;
  padding-top: 1.5rem;
}
.auth-icon {
  font-size: 3.25rem;
  line-height: 1;
  margin-bottom: 1rem;
}
.auth-submit:disabled {
  cursor: wait;
}

/* =====================================================================================
   DESKTOP (≥ 1024px) — mobil dizaynın desktop variantı. Mobil görünüşə toxunulmur (hər şey bu media sorğusundadır).
   • Tam ekran: mobil fon (açıq mavi + yumşaq qradient) bütün ekranı tutur, məzmun eni ekrana uyğunlaşır
   • Yuxarıda: solda "Sincap", ortada mobil alt menyunun üzən "kapsul" variantı, sağda alətlər
   • Mobil ağ panel desktopda kənarlardan aralı, hər tərəfi yumru böyük kart olur
   • Kartlar bir-birinə yapışmır: şəbəkələrdə geniş boşluqlar, hər element ayrıca nəfəs alır
   ===================================================================================== */
@media (min-width: 1024px) {
  :root {
    --dk-gap: clamp(1.5rem, 2.4vw, 2.75rem);
    --dk-head: 5rem;
    --dk-max: 1680px;
    --dk-line: #e5e7eb;
  }

  /* Tam ekran qab, mobil fon */
  body {
    background: #f5f5f5;
  }
  .app-shell {
    max-width: none !important;
    min-height: 100vh;
    box-shadow: none !important;
    background-attachment: fixed;
  }
  .app-shell > header,
  .app-shell > main.page {
    max-width: var(--dk-max);
    margin-left: auto;
    margin-right: auto;
  }

  /* Yuxarı zolaq: "Sincap" sətri yoxdur; boş zolaq üzən menyu kapsulu üçün yer saxlayır */
  .app-shell > header {
    min-height: var(--dk-head);
    background: rgba(245, 245, 245, 0.78) !important;
  }
  .app-shell > header > div:first-child {
    height: var(--dk-head);
    padding: 0 var(--dk-gap) !important;
  }
  .app-shell > header .font-display {
    font-size: 1.75rem;
  }

  /* Mobil alt menyu → yuxarıda üzən ağ kapsul */
  .app-nav {
    top: 0.9rem !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 45;
  }
  .app-nav > div {
    padding: 0.35rem !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 10px 30px -14px rgba(0, 112, 184, 0.35);
  }
  .app-nav ul {
    gap: 0.2rem;
    align-items: center !important;
  }
  .app-nav li {
    flex: none !important;
  }
  .app-nav .nav-btn {
    flex-direction: row !important;
    gap: 0.55rem !important;
    padding: 0.3rem 1rem 0.3rem 0.3rem;
    border-radius: 999px;
    transition: background 0.15s;
  }
  .app-nav .nav-btn:hover {
    background: #f5f5f5;
  }
  .app-nav .nav-btn .nav-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
  }
  .app-nav .nav-btn .nav-icon svg {
    width: 1.2rem;
    height: 1.2rem;
  }
  .app-nav .nav-btn > span:last-child {
    font-size: 0.9rem !important;
    font-weight: 600;
  }
  .app-nav .nav-btn [class*='max-[379px]:hidden'] {
    display: inline !important;
  }
  .app-nav .nav-btn [class*='max-[379px]:inline'] {
    display: none !important;
  }
  .app-nav .nav-btn > span[id] {
    position: static !important;
    order: 3;
  }

  /* Səhifələr */
  .app-shell > main.page {
    padding: 0.75rem var(--dk-gap) 3rem !important;
  }

  /* Mobil ağ panel → kənarlardan aralı, hər tərəfi yumru böyük kart */
  .app-shell .light-zone {
    margin: 0 !important;
    border-radius: 2rem !important;
    padding: clamp(1.75rem, 2.6vw, 2.75rem) !important;
    min-height: calc(100vh - var(--dk-head) - 4rem) !important;
    box-shadow: 0 30px 70px -45px rgba(11, 46, 74, 0.4);
  }

  /* ---------- Ana səhifə ---------- */
  #homeTrack {
    margin-bottom: var(--dk-gap) !important;
    border-radius: 1.5rem;
  }
  #page-building .light-zone > .relative:first-child {
    max-width: 640px;
    margin-bottom: 2rem !important;
  }
  #restHeading {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }
  #restFilters {
    margin: 0 0 2.25rem !important;
    padding: 0 !important;
    flex-wrap: wrap;
    overflow: visible;
    gap: 1rem;
  }
  #restList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: var(--dk-gap);
  }
  #restList > * {
    margin: 0 !important;
  }
  #restList > li {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }
  #restList > li[data-open-k]:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -26px rgba(11, 46, 74, 0.5);
  }
  #restList > li:not([data-open-k]) {
    grid-column: 1 / -1;
  }
  #restList > li .h-32 {
    height: 11rem;
  }
  #searchResults ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
  }
  #searchResults ul > * {
    margin: 0 !important;
  }

  /* ---------- Restoran səhifəsi: solda məlumat, sağda menyu ---------- */
  .rp-zone {
    display: grid !important;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    column-gap: var(--dk-gap);
    align-items: start;
  }
  .rp-zone > #backToList {
    grid-column: 1 / -1;
    justify-self: start;
    margin-bottom: 1.5rem;
  }
  .rp-zone > #restInfo,
  .rp-zone > #closedBanner,
  .rp-zone > .rp-cats {
    grid-column: 1;
  }
  .rp-zone > .rp-menu {
    grid-column: 2;
    grid-row: 2 / span 3;
    margin-top: 0 !important;
  }
  .rp-zone > #restInfo {
    background: #fafafa;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem !important;
  }
  .rp-zone > #restInfo .bg-slate-50 {
    background: #ffffff;
  }
  .rp-zone > #closedBanner {
    margin-bottom: 1.25rem !important;
    border-radius: 1.25rem;
  }
  .rp-zone > .rp-cats {
    background: #fafafa;
    border-radius: 1.5rem;
    padding: 1.25rem 1.5rem 1.5rem;
    position: sticky;
    top: calc(var(--dk-head) + 1rem);
  }
  .rp-zone #categories {
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap;
    overflow: visible;
    gap: 0.75rem;
  }
  .rp-menu > div:first-child h2 {
    font-size: 1.75rem;
  }
  .prod-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
  }
  .prod-row,
  .prod-row + .prod-row {
    border: 0;
    border-radius: 1.25rem;
    background: #fafafa;
    padding: 1rem 1rem 1rem 1.25rem;
    transition:
      background 0.15s,
      box-shadow 0.15s,
      transform 0.15s;
  }
  .prod-row:hover {
    background: #f5f5f5;
    box-shadow: 0 14px 30px -24px rgba(11, 46, 74, 0.5);
    transform: translateY(-2px);
  }
  .prod-media {
    width: 10.2rem; /* böyüdülüb (8,1×6,75 → 10,2×8,5rem), nisbət 1,2:1 */
    height: 8.5rem;
    border-radius: 0.75rem;
  }
  .prod-media > img {
    border-radius: 0.75rem;
  }
  .prod-list > .prod-empty {
    grid-column: 1 / -1;
    background: #fafafa;
    border-radius: 1.25rem;
  }

  /* ---------- Səbət, profil, panellər: mobil kartlar mavi fonda, ortada ---------- */
  #page-profile > * {
    max-width: 760px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #page-orders > * {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #page-orders > #basketBack {
    display: flex;
    margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
    margin-right: auto !important;
  }
  /* Səbət: solda məhsullar, sağda çatdırılma forması (səbət doludursa) */
  #page-orders > section:has(#basketFooter:not(.hidden)) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: var(--dk-gap);
    align-items: start;
    padding: 1.75rem !important;
  }
  #page-orders > section:has(#basketFooter:not(.hidden)) > div:first-child {
    grid-column: 1;
  }
  #page-orders > section:has(#basketFooter:not(.hidden)) > #basket {
    grid-column: 1;
  }
  #page-orders > section:has(#basketFooter:not(.hidden)) > #basketFooter {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    border-left: 1px solid var(--dk-line);
    padding-left: var(--dk-gap);
  }
  #page-orders > #basketBack.hidden {
    display: none;
  }
  #page-orders > section,
  #page-profile > div {
    margin-top: 1.25rem;
  }
  #page-admin > *,
  #page-rorders > *,
  #page-rcouriers > *,
  #page-corders > *,
  #page-courier > *,
  #page-chef > * {
    max-width: 1040px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* ---------- Üzən elementlər ---------- */
  #cartBar {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    bottom: 1.75rem !important;
    width: 460px !important;
    max-width: none !important;
    padding: 0 !important;
  }
  #cartBar > div {
    border-radius: 999px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-shadow: 0 20px 40px -18px rgba(0, 112, 184, 0.65);
  }
  #toast {
    top: calc(var(--dk-head) + 0.5rem) !important;
  }
  /* PWA təklifi: desktopda sol aşağı küncdə (səbət zolağı ortadadır) */
  .pwa-banner {
    left: var(--dk-gap);
    bottom: 1.75rem;
    transform: none;
    animation: none;
  }

  /* Alt pəncərə → ortada modal */
  #sheet .sheet-panel {
    top: 50% !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    width: min(580px, calc(100vw - 4rem));
    max-width: none !important;
    transform: translate(-50%, -50%);
    max-height: 86vh !important;
    border-radius: 1.75rem !important;
    padding: 2rem !important;
  }
  #sheet .sheet-handle {
    display: none;
  }

  /* Giriş / qeydiyyat ekranları: mobil ekran ortada kart kimi */
  #authScreen > div,
  #onboard > div {
    max-width: 460px !important;
    margin: 6vh auto !important;
    min-height: auto !important;
    border-radius: 2rem;
    padding: 2.25rem 2.25rem 2rem !important;
    box-shadow: 0 30px 70px -40px rgba(11, 46, 74, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.8);
  }
}

/* Kuryerlərim: kuryeri restorandan çıxar (hesab silinmir) */
.cour-remove {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #dc2626;
}
.cour-remove:active {
  transform: scale(0.97);
}

/* Səbət: sifariş növü seçimi (çatdırılma / özü götürmə) */
.co-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
}
.co-type-btn {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  border-radius: 1rem;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  padding: 0.7rem 0.75rem;
  text-align: left;
  color: #0b2e4a;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.1s;
}
.co-type-btn:active {
  transform: scale(0.98);
}
.co-type-btn > span:last-child {
  min-width: 0;
}
.co-type-btn b {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.2;
}
.co-type-btn small {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.25;
}
.co-type-ic {
  font-size: 1.35rem;
  line-height: 1;
}
.co-type-btn.is-on {
  border-color: #0077cc;
  background: #eaf6fe;
  box-shadow: 0 0 0 1px #0077cc inset;
}
.co-pickup {
  border-radius: 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.75rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #065f46;
}
.co-pickup.hidden {
  display: none;
}

/* Sifariş kartlarında növ nişanı */
.otype {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.otype-del {
  background: #e0f2fe;
  color: #075985;
}
.otype-take {
  background: #fef3c7;
  color: #92400e;
  box-shadow: 0 0 0 1px #fcd34d inset;
}

/* Özü götürmə: "Hazırdır, gəl götür" bildirişi (müştəri kartı) */
.ready-note {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  background: #ecfdf5;
  border: 1.5px solid #34d399;
  padding: 0.75rem;
  color: #065f46;
  animation: ready-pulse 1.6s ease-in-out 3;
}
.ready-note-btn {
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #a7f3d0;
  padding: 0.45rem 0.65rem;
  font-size: 1rem;
}
@keyframes ready-pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.25);
  }
}

/* Restoran: sifariş nömrəsi ilə axtarış */
.ro-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0 0.85rem;
}
.ro-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  outline: none;
}
.ro-search input::-webkit-search-cancel-button {
  display: none;
}
.ro-search button {
  flex-shrink: 0;
  color: #64748b;
  font-weight: 700;
  padding: 0.25rem;
}
.ro-search:focus-within {
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.12);
}

/* Restoran: səhv sifarişin düzəldilməsi pəncərəsi */
.ed-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.6rem 0.7rem;
}
.ed-qty {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.15rem;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 0.15rem;
}
.ed-qty button {
  height: 1.9rem;
  width: 1.9rem;
  border-radius: 999px;
  background: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0b2e4a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.ed-qty span {
  min-width: 1.6rem;
  text-align: center;
  font-weight: 800;
}
.ed-del {
  flex-shrink: 0;
  height: 1.9rem;
  width: 1.9rem;
  border-radius: 999px;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 800;
}

/* Profil: 7 rəqəmli hesab ID-si (toxunanda kopyalanır) */
.pid-chip {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: #0b2e4a;
}
.pid-chip b {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.pid-chip.hidden {
  display: none;
}

/* Kuryer dəvəti: tam ekran bildiriş (qəbul / rədd edənə qədər bağlanmır) */
.inv-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(160deg, #2bb3ff 0%, #0077cc 100%);
  animation: inv-in 0.25s ease-out;
}
.inv-overlay.hidden {
  display: none;
}
body.inv-lock {
  overflow: hidden;
}
.inv-card {
  width: 100%;
  max-width: 26rem;
  border-radius: 1.75rem;
  background: #fff;
  padding: 2rem 1.4rem 1.4rem;
  text-align: center;
  color: #0b2e4a;
  box-shadow: 0 24px 60px rgba(0, 40, 80, 0.35);
}
.inv-count {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}
.inv-icon {
  margin: 0 auto;
  display: flex;
  height: 5.5rem;
  width: 5.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 2.8rem;
}
.inv-pulse {
  animation: inv-pulse 1.4s ease-in-out infinite;
}
.inv-kicker {
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0077cc;
}
.inv-title {
  margin-top: 0.35rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}
.inv-text {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.inv-sub {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}
.inv-actions {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem;
}
.inv-btn {
  border-radius: 1rem;
  padding: 0.95rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  transition: transform 0.1s;
}
.inv-btn:active {
  transform: scale(0.97);
}
.inv-btn:disabled {
  opacity: 0.6;
}
.inv-btn-ok {
  background: #0077cc;
  color: #fff;
}
.inv-btn-no {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.inv-btn-ghost {
  background: #f1f5f9;
  color: #0b2e4a;
}
@keyframes inv-in {
  from {
    opacity: 0;
  }
}
@keyframes inv-pulse {
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(0, 119, 204, 0.12);
  }
}

/* Profil: kuryerin işlədiyi restoran */
.work-card {
  margin-top: 0.85rem;
  display: flex;
  width: 100%;
  max-width: 20rem;
  align-items: center;
  gap: 0.7rem;
  border-radius: 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.65rem 0.85rem;
  color: #065f46;
}
.work-card.hidden {
  display: none;
}
.work-ic {
  font-size: 1.5rem;
  line-height: 1;
}
.work-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

/* Restoran paneli: satış statistikası dövr seçimi */
.sales-seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  border-radius: 1rem;
  background: #f1f5f9;
  padding: 0.25rem;
}
.sales-seg button {
  border-radius: 0.75rem;
  padding: 0.5rem 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}
.sales-seg button.is-on {
  background: #fff;
  color: #0b2e4a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.work-ic-img {
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #fff;
}

/* Kuryerin əsas səhifəsi: işlədiyi restoran (loqo + ad) */
.work-home {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.85rem 1rem;
  box-shadow: 0 6px 18px rgba(11, 46, 74, 0.06);
  color: #0b2e4a;
}
.work-home-logo {
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 1.6rem;
}
.work-home-empty {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

/* Restoran səhifəsi: ictimai əlaqə telefonu (tel: linki, toxunanda zəng) */
.rest-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  background: #e0f2fe;
  padding: 0.25rem 0.65rem;
  font-weight: 700;
  color: #075985;
}
.rest-phone:active {
  transform: scale(0.97);
}

/* Yuxarı "Sincap" zolağı yoxdur: telefonun status zolağı (çentik) altında boşluq qalsın */
.app-shell > header {
  padding-top: env(safe-area-inset-top);
}

/* Şəkillər çərçivəyə tam sığır (object-fit: contain): heç bir hissə kəsilmir, nisbət qorunur.
   Boş qalan kənarlar ağ olur (yüklənən şəkillər də ağ fonla emal olunur), çərçivə səliqəli görünür. */
img.object-contain,
video.object-contain {
  object-fit: contain;
  object-position: center;
  background-color: #ffffff;
}

/* Restoran banneri: yuvarlaq, müasir karusel (şəkil kəsilmir, arxada bulanıq fon) */
.rb {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 0.9rem;
  aspect-ratio: 16 / 8.1; /* 16:9-dan 10% alçaq */
  background: #f3f4f6;
  box-shadow: 0 14px 30px -18px rgba(11, 46, 74, 0.45);
  isolation: isolate;
}
.rb.hidden {
  display: none;
}
.rb-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.24, 1);
  touch-action: pan-y;
}
.rb-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.rb-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* banner çərçivəni tam doldurur (redaktor şəkli 16:9 hazırlayır, ona görə heç nə itmir) */
  user-select: none;
  -webkit-user-drag: none;
}
.rb-dots {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  display: flex;
  gap: 0.35rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  padding: 0.3rem 0.45rem;
  backdrop-filter: blur(6px);
}
.rb-dots button {
  height: 0.45rem;
  width: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition:
    width 0.3s,
    background 0.3s;
}
.rb-dots button.is-on {
  width: 1.2rem;
  background: #ffffff;
}
@media (prefers-reduced-motion: reduce) {
  .rb-track {
    transition: none;
  }
}

/* Restoran formasında banner siyahısı */
.bn-edit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.bn-thumb {
  position: relative;
  aspect-ratio: 16 / 8.1; /* 16:9-dan 10% alçaq */
  overflow: hidden;
  border-radius: 0.9rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.bn-thumb img {
  height: 100%;
  width: 100%;
}
.bn-thumb span {
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  padding: 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.bn-thumb button {
  position: absolute;
  right: 0.3rem;
  top: 0.3rem;
  height: 1.6rem;
  width: 1.6rem;
  border-radius: 999px;
  background: #fff;
  color: #dc2626;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}
.rb-single .rb-track {
  transition: none;
  touch-action: auto;
}

/* Şəkil redaktoru: yaxınlaşdır / uzaqlaşdır / sürüşdür */
.crop-ov {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
}
.crop-box {
  width: 100%;
  max-width: 28rem;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1rem;
  color: #0b2e4a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.crop-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.crop-hint {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #64748b;
}
.crop-frame {
  position: relative;
  margin-top: 0.85rem;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  background: repeating-conic-gradient(#f1f5f9 0 25%, #ffffff 0 50%) 0 0 / 18px 18px;
  outline: 2px solid #009ff7;
  outline-offset: 0;
  touch-action: none;
  cursor: grab;
}
.crop-frame:active {
  cursor: grabbing;
}
.crop-frame.is-round::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.45);
  pointer-events: none;
}
.crop-img {
  position: absolute;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.crop-zoom {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.crop-zoom input {
  flex: 1;
  accent-color: #009ff7;
}
.crop-zoom button {
  height: 2.2rem;
  width: 2.2rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 1.2rem;
  font-weight: 800;
}
.crop-actions {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.crop-btn {
  border-radius: 0.9rem;
  padding: 0.75rem 0.25rem;
  font-size: 0.85rem;
  font-weight: 800;
}
.crop-btn-ghost {
  background: #f1f5f9;
  color: #0b2e4a;
}
.crop-btn-ok {
  background: #009ff7;
  color: #ffffff;
}
.crop-open {
  flex-shrink: 0;
  border-radius: 1rem;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  padding: 0 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0b2e4a;
}
.crop-open.hidden {
  display: none;
}
.bn-thumb .bn-crop {
  top: auto;
  right: 0.3rem;
  bottom: 0.3rem;
  color: #0b2e4a;
}

/* Səbət: "Ödəniş üsulu: Nağd" sətri (özü götürmədə gizlənir) */
#coPay.hidden {
  display: none;
}

/* ---- Məhsul pəncərəsi: Apple üslubunda alt pəncərə ----
   Sağdan-sola tam en, aşağıdan ekranın yarısı qədər qalxır; yuxarı künclər yuvarlaq, tutacaq, yumşaq bulanıq fon.
   Məzmun çoxdursa pəncərənin içində sürüşür, "Səbətə əlavə et" zolağı aşağıda sabit qalır. Mobil və desktop eyni. */
#sheet.is-product #sheetBackdrop {
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#sheet.is-product .sheet-panel {
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 52dvh;
  min-height: 22rem;
  max-height: 92dvh !important;
  transform: none;
  margin: 0;
  border-radius: 1.25rem 1.25rem 0 0 !important;
  padding: 0.5rem 1.25rem 0 !important;
  background: #ffffff;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
  --tw-ring-shadow: 0 0 #0000;
  overscroll-behavior: contain;
  animation: pd-up 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
#sheet.is-product .sheet-handle {
  display: block !important;
  width: 2.25rem;
  height: 0.3rem;
  margin: 0 auto 0.6rem;
  background: #d1d5db;
}
#sheet.is-product .sheet-panel > .mb-5 {
  position: sticky;
  top: -0.5rem;
  z-index: 2;
  margin: 0 -1.25rem 0.5rem;
  padding: 0.25rem 1.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#sheet.is-product #sheetTitle {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
}
#sheet.is-product #sheetClose {
  height: 1.9rem;
  width: 1.9rem;
  background: #f2f2f7;
  color: #6b7280;
  font-size: 0.8rem;
}
#sheet.is-product #sheetBody {
  max-width: 40rem;
  margin: 0 auto;
}
#sheet.is-product #sheetSave,
#sheet.is-product #sheetDelete {
  display: none;
}
#sheet.is-product .sheet-panel > .mt-6 {
  margin-top: 0;
}
.pd-img {
  height: min(46vw, 14rem);
  overflow: hidden;
  border-radius: 1rem;
  background: #f5f5f7;
}
.pd-img img {
  background: transparent;
}
#sheet.is-product .pd-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -1.25rem;
  padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
  background: #ffffff; /* tam ağ: altından keçən mətn görünməsin */
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
@keyframes pd-up {
  from {
    transform: translateY(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  #sheet.is-product .sheet-panel {
    animation: none;
  }
}

/* Restoran: cavabsız yeni sifariş kartı (ekranın yuxarısında, iOS bildirişi kimi) */
.noa {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 0.6rem);
  left: 0;
  right: 0;
  z-index: 85;
  display: flex;
  justify-content: center;
  padding: 0 0.6rem;
  pointer-events: none;
}
.noa.hidden {
  display: none;
}
.noa-card {
  width: 100%;
  max-width: 30rem;
  pointer-events: auto;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.85rem 0.9rem 0.8rem;
  color: #0b2e4a;
  box-shadow: 0 18px 40px -12px rgba(11, 46, 74, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: noa-in 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.noa-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.noa-bell {
  display: grid;
  height: 2.4rem;
  width: 2.4rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 0.8rem;
  background: #fef3c7;
  font-size: 1.25rem;
  animation: noa-ring 1.2s ease-in-out 2;
}
.noa-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
}
.noa-title {
  font-size: 0.95rem;
  font-weight: 800;
}
.noa-x {
  height: 1.8rem;
  width: 1.8rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #f2f2f7;
  font-size: 0.75rem;
  color: #6b7280;
}
.noa-items {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.noa-meta {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #64748b;
}
.noa-perm {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: 0.75rem;
  background: #eff6ff;
  padding: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d4ed8;
}
.noa-actions {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 0.45rem;
}
.noa-btn {
  border-radius: 0.85rem;
  padding: 0.65rem 0.2rem;
  font-size: 0.82rem;
  font-weight: 800;
}
.noa-btn:disabled {
  opacity: 0.6;
}
.noa-no {
  background: #fef2f2;
  color: #dc2626;
}
.noa-ghost {
  background: #f1f5f9;
  color: #0b2e4a;
}
.noa-ok {
  background: #009ff7;
  color: #ffffff;
}
@keyframes noa-in {
  from {
    opacity: 0;
    transform: translateY(-120%);
  }
}
@keyframes noa-ring {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-14deg);
  }
  40% {
    transform: rotate(12deg);
  }
  60% {
    transform: rotate(-8deg);
  }
  80% {
    transform: rotate(5deg);
  }
}

/* Hazırlanma müddəti: restoranın seçimi (5–30 dəq) və müştəri kartındakı bildiriş */
.prep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.prep-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 1rem;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  padding: 0.85rem 0.25rem;
  color: #0b2e4a;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.1s;
}
.prep-btn b {
  font-size: 1.6rem;
  line-height: 1.1;
}
.prep-btn span {
  font-size: 0.72rem;
  color: #64748b;
}
.prep-btn:hover {
  border-color: #009ff7;
  background: #f0f9ff;
}
.prep-btn:active {
  transform: scale(0.96);
}
.prep-btn:disabled {
  opacity: 0.55;
}
.prep-note {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.7rem 0.8rem;
  color: #92400e;
}
.prep-ic {
  font-size: 1.5rem;
  line-height: 1;
}
/* "İndi" düyməsi: dərhal hazır */
.prep-now {
  grid-column: 1 / -1; /* yuxarıda tam en, altında 5–30 dəqiqə 2 sıra */
  border-color: #009ff7;
  background: #f0f9ff;
}
.prep-now b {
  font-size: 1.25rem;
  color: #0077cc;
}

/* Restoran: "Hazırdır" düyməsi (sifariş "Hazırdır" bölməsinə keçir, kuryer sonra seçilir) */
.ro-ready-btn {
  border-radius: 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.75rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #047857;
}
.ro-ready-btn:active {
  transform: scale(0.97);
}

/* Müştəri: kuryerin çatma vaxtı (kuryerin canlı konumuna görə) */
.eta-note {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.7rem 0.8rem;
  color: #065f46;
}
.eta-wait {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}
.eta-ic {
  font-size: 1.5rem;
  line-height: 1;
}
.eta-min {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 3rem;
  border-radius: 0.8rem;
  background: #ffffff;
  padding: 0.3rem 0.5rem;
  font-size: 1.35rem;
  line-height: 1.05;
  color: #047857;
}
.eta-min small {
  font-size: 0.65rem;
  font-weight: 700;
}
/* Kuryer: konum göndərilir sətri */
.geo-line {
  margin-top: 0.6rem;
  border-radius: 0.9rem;
  background: #ecfdf5;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #047857;
}
.geo-bad {
  background: #fef2f2;
  color: #b91c1c;
}

/* Müştəri: kuryer kartı — profil şəkli, Zəng et və WhatsApp */
.cc {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap; /* düymələr adın altında, yan-yana */
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  background: #eaf6fe;
  padding: 0.75rem;
}
.cc-face {
  display: grid;
  height: 3rem;
  width: 3rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 0 0 2px #ffffff,
    0 2px 8px rgba(11, 46, 74, 0.15);
}
.cc-face-empty {
  font-size: 1.5rem;
}
.cc-acts {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 0.75rem;
  padding: 0.6rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.cc-call {
  background: #ffffff;
  color: #0b2e4a;
  border: 1px solid #e2e8f0;
}
.cc-wa {
  background: #25d366;
  color: #ffffff;
}
.cc-wa-ic svg {
  height: 0.95rem;
  width: 0.95rem;
}

/* Restoran formasında kilidli məlumatlar (yalnız admin dəyişir) */
.lk-box {
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.8rem 0.9rem;
}
.lk-title {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b2e4a;
}
.lk-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid #eef0f3;
  padding: 0.4rem 0;
  font-size: 0.82rem;
}
.lk-row span {
  color: #64748b;
}
.lk-row b {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.lk-note {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #64748b;
}
/* Admin: radius müraciətləri */
.rr-box {
  margin-bottom: 0.75rem;
  border-radius: 1.25rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.85rem;
}
.rr-title {
  margin-bottom: 0.5rem;
  font-weight: 800;
  color: #92400e;
}
.rr-item {
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.7rem 0.8rem;
}
.rr-item + .rr-item {
  margin-top: 0.5rem;
}
.rr-acts {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.rr-btn {
  flex: 1;
  border-radius: 0.8rem;
  padding: 0.55rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.rr-ghost {
  background: #f1f5f9;
  color: #0b2e4a;
}
.rr-no {
  background: #fef2f2;
  color: #dc2626;
}
.rr-ok {
  background: #009ff7;
  color: #ffffff;
}
.lk-req {
  margin-top: 0.6rem;
  width: 100%;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid #009ff7;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0077cc;
}
.lk-req:active {
  transform: scale(0.98);
}

/* Müraciətin nəticəsi (təsdiq / rədd): göndərənə ekranın aşağısında kart */
.rqr {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 6.5rem);
  z-index: 84;
  display: flex;
  justify-content: center;
  padding: 0 0.75rem;
  pointer-events: none;
}
.rqr.hidden {
  display: none;
}
.rqr-card {
  display: flex;
  width: 100%;
  max-width: 30rem;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.7rem;
  pointer-events: auto;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 0.9rem;
  box-shadow: 0 18px 40px -12px rgba(11, 46, 74, 0.45);
  animation: noa-in 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.rqr-card.is-ok {
  border: 1.5px solid #34d399;
}
.rqr-card.is-no {
  border: 1.5px solid #fca5a5;
}
.rqr-ic {
  display: grid;
  height: 2.4rem;
  width: 2.4rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
}
.is-ok .rqr-ic {
  background: #10b981;
}
.is-no .rqr-ic {
  background: #ef4444;
}
.rqr-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
}
.rqr-title {
  font-weight: 800;
  color: #0b2e4a;
}
.rqr-detail {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #334155;
}
.rqr-btn {
  width: 100%;
  border-radius: 0.9rem;
  background: #0b2e4a;
  padding: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

/* ---- Admin bildirişi: alıcıda ekranın yuxarısında kart (cloud.js cloudShowAnnouncement) ---- */
.rqr.ann-pos {
  top: calc(env(safe-area-inset-top) + 0.75rem);
  bottom: auto;
  z-index: 85;
}
.rqr-card.is-ann {
  border: 1.5px solid #7cc4f5;
}
.is-ann .rqr-ic {
  background: #e0f2fe;
  font-size: 1.2rem;
}
.ann-body {
  max-height: 40vh;
  overflow-y: auto;
  white-space: pre-line;
}

/* ---- Profil → Bildirişlər (cloud.js cloudOpenNotifications) ---- */
.notif-bell {
  position: relative;
  display: grid;
  height: 2.75rem;
  width: 2.75rem;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #0b2e4a;
  box-shadow:
    0 6px 16px -10px rgba(11, 46, 74, 0.45),
    inset 0 0 0 1px #e6ebf0;
  transition: transform 0.15s;
}
.notif-bell-ic {
  height: 22px;
  width: 22px;
}
.notif-bell.hidden {
  display: none;
}
.notif-bell.notif-card {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  height: 2.5rem;
  width: 2.5rem;
}
.notif-bell:active {
  transform: scale(0.94);
}
.notif-bell .notif-count {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  box-shadow: 0 0 0 2px #ffffff;
}
.notif-count {
  min-width: 1.35rem;
  border-radius: 999px;
  background: #ef4444;
  padding: 0 0.4rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35rem;
  color: #ffffff;
}
.notif-count.hidden {
  display: none;
}
#notifList {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.notif-item {
  border-radius: 1.1rem;
  background: #ffffff;
  padding: 0.8rem 0.95rem;
  box-shadow: inset 0 0 0 1px #e6ebf0;
}
.notif-item.is-new {
  box-shadow: inset 0 0 0 1.5px #7cc4f5;
  background: #f3faff;
}
.notif-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
}
.notif-kicker b {
  color: #0088d6;
}
.notif-date {
  font-size: 0.7rem;
  color: #94a3b8;
}
.notif-title {
  margin-top: 0.25rem;
  font-weight: 800;
  color: #0b2e4a;
}
.notif-body {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #334155;
  white-space: pre-line;
}
.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
}
.notif-empty span {
  font-size: 2.2rem;
}
.notif-empty p:first-of-type {
  margin-top: 0.4rem;
  font-weight: 700;
  color: #0b2e4a;
}

/* ---- Admin paneli: bildiriş göndərmə forması (auth.js adminAnnouncements) ---- */
.ann-form,
.ann-item {
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.22);
}
.ann-item {
  border-radius: 1.25rem;
  padding: 0.85rem 1rem;
}
.ann-aud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ann-chip {
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.35);
}
.ann-chip.is-on {
  background: #009ff7;
  color: #ffffff;
  box-shadow: none;
}
.ann-send {
  margin-top: 1rem;
  width: 100%;
  border-radius: 1rem;
  background: #009ff7;
  padding: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}
.ann-send:disabled {
  opacity: 0.6;
}
.ann-tag {
  border-radius: 999px;
  background: rgba(0, 159, 247, 0.14);
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0088d6;
}
.ann-text {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  opacity: 0.85;
  white-space: pre-line;
}
.ann-del {
  border-radius: 0.7rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.4);
}

/* Admin: digər müraciətlər — əvvəl → sonra, restoranın ətraflı məlumatı */
.rq-rest {
  display: block;
  width: 100%;
  text-align: left;
  font-weight: 700;
  color: #0077cc;
}
.rq-rest span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
}
.rq-chg {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.35;
}
.rq-chg s {
  color: #94a3b8;
}
.rq-chg b {
  color: #047857;
}
.rq-done {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.6rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 0.6rem 0.75rem;
}
.rq-st {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
}
.rq-st.is-ok {
  background: #ecfdf5;
  color: #047857;
}
.rq-st.is-no {
  background: #fef2f2;
  color: #dc2626;
}
.ov-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ov-logo {
  display: grid;
  height: 3.25rem;
  width: 3.25rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 1rem;
  background: #f3f4f6;
  font-size: 1.5rem;
}
.ov-sec {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.ov-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #f1f2f4;
  padding: 0.35rem 0;
  font-size: 0.85rem;
}
.ov-row span {
  color: #64748b;
}
.ov-row b {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.ov-row a,
.ov-person a {
  color: #0077cc;
  text-decoration: underline;
}
.ov-table {
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  font-size: 0.78rem;
}
.ov-tr {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.8fr 1.3fr;
  gap: 0.25rem;
  padding: 0.45rem 0.6rem;
  text-align: right;
}
.ov-tr > span:first-child {
  text-align: left;
  font-weight: 600;
}
.ov-tr + .ov-tr {
  border-top: 1px solid #f1f2f4;
}
.ov-th {
  background: #f8fafc;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}
.ov-person {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.85rem;
}
.ov-person small {
  color: #64748b;
}

/* Endirimli qiymət: yeni qiymət qırmızı qalın, köhnə qiymət üstündən xətt çəkilmiş tünd boz */
.pr-new {
  font-weight: 800;
  color: #dc2626;
}
.pr-old {
  margin-left: 0.25rem;
  font-size: 0.85em;
  font-weight: 500;
  color: #4b5563;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
/* Formada iki sahə yan-yana (qiymət + endirimli qiymət) */
.f-half {
  display: inline-block;
  width: calc(50% - 0.375rem);
  vertical-align: top;
}
.f-half + .f-half {
  margin-left: 0.75rem;
}
/* Endirim faizi nişanı (qiymətin yanında) */
.pr-pct {
  display: inline-block;
  margin-left: 0.3rem;
  border-radius: 999px;
  background: #b91c1c; /* tünd qırmızı nişan, ağ yazı */
  padding: 0.05rem 0.5rem;
  font-size: 0.72em;
  font-weight: 800;
  line-height: 1.5;
  color: #ffffff;
  vertical-align: middle;
}

/* ---- Menyu bölmələri: hər kateqoriyanın başlığı (menu.js renderList) ---- */
.prod-sec {
  grid-column: 1 / -1;
  padding: 1.4rem 0 0.25rem;
  scroll-margin-top: 0;
}
.prod-sec:first-child {
  padding-top: 0.25rem;
}
.prod-sec-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b2e4a;
}

/* ---- Telefon / planşet: kateqoriya zolağı başlığın altında sabit qalır ----
       .rp-cats "display: contents" olur ki, zolaq bütün menyu boyunca yapışqan qalsın */
@media (max-width: 1023px) {
  .rp-cats {
    display: contents;
  }
  .rp-zone #categories {
    position: sticky;
    top: var(--hdr-h, 0px);
    z-index: 20;
    background: #ffffff;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: box-shadow 0.2s;
  }
  .rp-zone #categories.is-stuck {
    box-shadow: 0 10px 18px -14px rgba(11, 46, 74, 0.35);
  }
}

/* ---- Kateqoriyaların sırası pəncərəsi (editor.js reorderCategories) ---- */
.cat-sort {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cat-sort-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e8edf2;
  padding: 0.55rem 0.6rem 0.55rem 0.9rem;
}
.cat-sort-num {
  width: 1.4rem;
  font-weight: 800;
  color: #0077cc;
}
.cat-sort-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: #0b2e4a;
}
.cat-sort-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  background: #f1f5f9;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0b2e4a;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}
.cat-sort-btn:disabled {
  opacity: 0.3;
}

/* ================= iOS "Ayarlar" üslubunda forma (editor.js openSheet({ ios: true }), məs. Restoran məlumatları) =================
   Boz fon, mövzu üzrə ağ yuvarlaq kartlar, kartın üstündə kiçik başlıq, altında izah.
   Sətir: solda ad, sağda dəyər (çərçivəsiz). Sətirlər arasında incə xətt (soldan boşluqla). */
#sheet.is-ios .sheet-panel {
  background: #f2f2f7 !important;
  --tw-ring-shadow: 0 0 #0000;
  padding-bottom: 0 !important;
}
#sheet.is-ios .sheet-handle {
  background: #c7c7cc;
}
#sheet.is-ios .sheet-panel > .mb-5 {
  position: sticky;
  top: -1.25rem;
  z-index: 3;
  margin: -1.25rem -1.25rem 0.75rem;
  padding: 1rem 1.25rem 0.6rem;
  background: rgba(242, 242, 247, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#sheet.is-ios #sheetTitle {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000000;
}
#sheet.is-ios #sheetClose {
  height: 1.9rem;
  width: 1.9rem;
  background: #e3e3e8;
  color: #6e6e73;
  font-size: 0.8rem;
}
#sheet.is-ios #sheetBody > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.6rem;
}
#sheet.is-ios #sheetBody > .ios-foot {
  margin-top: 0.4rem;
}
#sheet.is-ios #sheetBody > .ios-hero + .ios-hero {
  margin-top: 0.6rem;
}
.ios-head {
  padding: 0 1rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6e6e73;
}
.ios-foot {
  padding: 0.45rem 1rem 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #6e6e73;
}
.ios-card {
  overflow: hidden;
  border-radius: 0.8rem;
  background: #ffffff;
}
.ios-card > * {
  position: relative;
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
}
.ios-card > * + *::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1rem;
  right: 0;
  height: 1px;
  background: #e5e5ea;
  transform: scaleY(0.6);
}
/* Sətirlərdəki yazılar (Tailwind-in kiçik, böyük hərfli etiketini əvəz edir) */
#sheet.is-ios .ios-card label:not(.img-pick):not(#bnAdd) {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #000000;
}
.ios-card > .f-row {
  display: flex;
  min-height: 2.9rem;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}
.ios-card > .f-row > label {
  flex-shrink: 0;
  max-width: 60%;
}
#sheet.is-ios .ios-card .f-row .field {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.45rem 0;
  box-shadow: none;
  text-align: right;
  font-size: 1rem;
  color: #6e6e73;
}
#sheet.is-ios .ios-card .f-row .field:focus {
  color: #000000;
}
#sheet.is-ios .ios-card .f-row .field::placeholder {
  color: #c7c7cc;
}
#sheet.is-ios .ios-card .f-row select.field {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 1.1rem;
  text-align-last: right;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 2l6 6-6 6' fill='none' stroke='%23c7c7cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    right center / 0.45rem no-repeat;
}
#sheet.is-ios .ios-card .f-stack .field {
  margin-top: 0.5rem;
  border-color: #e5e5ea;
  background: #f7f7f9;
  font-size: 1rem;
}
/* Kilidli sətirlər və "müraciət et" keçidi */
.ios-card > .lk-row {
  justify-content: space-between;
  border: 0;
  font-size: 1rem;
}
.ios-card > .lk-row span {
  flex-shrink: 0;
  color: #000000;
}
.ios-card > .lk-row b {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-weight: 400;
  color: #6e6e73;
}
.ios-link {
  justify-content: space-between;
  text-align: left;
  font-size: 1rem;
  color: #007aff;
}
.ios-link span {
  font-size: 1.3rem;
  line-height: 1;
  color: #c7c7cc;
}
.ios-link:active {
  background: #e5e5ea;
}
/* Loqo: yuxarıda ortada, altında restoranın adı */
.ios-hero .f-img {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ios-hero .f-img > label:first-child {
  display: none;
}
#sheet.is-ios .ios-hero .f-img-prev {
  height: 6rem;
  width: 6rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.35);
  --tw-ring-shadow: 0 0 #0000;
}
#sheet.is-ios .ios-hero .f-img-acts {
  margin-top: 0.6rem;
  justify-content: center;
}
.ios-hero-name {
  text-align: center;
}
.ios-hero-name p {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000000;
}
.ios-hero-name span {
  font-size: 0.9rem;
  color: #6e6e73;
}
/* Şəkil seçmə düymələri: iOS mavi mətn düyməsi */
#sheet.is-ios .img-pick,
#sheet.is-ios .crop-open,
#sheet.is-ios #bnAdd {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.1);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #007aff;
  box-shadow: none;
}
#sheet.is-ios .ios-card .f-img-prev {
  margin-top: 0.6rem;
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
  background: #f2f2f7;
  --tw-ring-shadow: 0 0 #0000;
}
#sheet.is-ios .ios-card .f-img-acts {
  margin-top: 0.6rem;
}
#sheet.is-ios .bn-field > label:first-child {
  display: block;
  margin-bottom: 0.6rem;
}
#sheet.is-ios #bnAdd {
  display: flex;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.6rem;
}
#sheet.is-ios #bnAdd.hidden {
  display: none;
}
#sheet.is-ios .bn-thumb {
  border: 0;
  border-radius: 0.6rem;
  background: #f2f2f7;
}
/* Aşağıda sabit "Yadda saxla" zolağı */
#sheet.is-ios .sheet-panel > .mt-6 {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 1.5rem -1.25rem 0;
  padding: 0.75rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom));
  background: rgba(242, 242, 247, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#sheet.is-ios #sheetSave {
  border-radius: 0.9rem;
  background: #009ff7;
  color: #ffffff;
  font-weight: 600;
}
#sheet.is-ios #sheetDelete {
  border-radius: 0.9rem;
  background: #ffffff;
  color: #ff3b30;
  box-shadow: none;
  --tw-ring-shadow: 0 0 #0000;
}
@media (min-width: 1024px) {
  #sheet.is-ios .sheet-panel {
    padding-bottom: 0 !important;
  }
  #sheet.is-ios .sheet-panel > .mb-5 {
    top: -2rem;
    margin: -2rem -2rem 0.75rem;
    padding: 1.5rem 2rem 0.75rem;
  }
  #sheet.is-ios .sheet-panel > .mt-6 {
    margin: 1.5rem -2rem 0;
    padding: 1rem 2rem 1.5rem;
  }
}

/* iOS keçidi (switch): forma sahəsi "switch" tipi */
.ios-switch {
  position: relative;
  margin-left: auto;
  height: 31px;
  width: 51px;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  background: #e9e9ea;
  transition: background 0.25s;
}
.ios-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  height: 27px;
  width: 27px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.15),
    0 1px 1px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.ios-switch:checked {
  background: #34c759;
}
.ios-switch:checked::after {
  transform: translateX(20px);
}
.ios-switch:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}
.f-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* iOS forma bölməsi (başlıq + kart + qeyd) */
.ios-sec {
  display: block;
}

/* Formada üç sahə yan-yana (qiymət · endirimli qiymət · endirim faizi) */
.f-third {
  display: inline-block;
  width: calc((100% - 1.2rem) / 3);
  vertical-align: top;
}
.f-third + .f-third {
  margin-left: 0.6rem;
}
.f-third > label {
  white-space: nowrap;
}
