@font-face { font-family: 'Playfair'; src: url('/fonts/playfair.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url('/fonts/playfair-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/fonts/montserrat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --roast: #1f140d;      /* fon: qovurilgan don */
  --roast-2: #2c1d13;    /* kartalar */
  --roast-3: #3b281b;    /* ko'tarilgan elementlar */
  --line: rgba(232, 195, 138, .2);
  --crema: #e8c38a;      /* brend rangi — narx "tabletkalari" */
  --crema-hi: #f8e2b6;
  --sun: #f2a54a;        /* Kunchiqar — tong quyoshi */
  --foam: #fbf3e6;
  --paper: #f7eedd;
  --ink: #2a1a10;
  --muted: #c4ad90;
  --muted-ink: #7a6250;
  --ok: #9cc58a;
  --err: #f0947c;
  --err-ink: #a3402a;
  --r-photo: 22px;
  --r-ctl: 12px;
  --serif: 'Playfair', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --top-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 64px); overflow-x: clip; }
body {
  margin: 0; min-height: 100dvh; background: var(--roast); color: var(--foam);
  font: 500 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
/* Fon nuri alohida qatlamda: aylantirganda qayta chizilmaydi (silliq scroll) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 50% at 85% -5%, rgba(242, 165, 74, .16), transparent 60%),
    radial-gradient(70% 45% at 0% 10%, rgba(232, 195, 138, .07), transparent 60%),
    var(--roast);
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--crema); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--crema); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.noscript { padding: 24px; text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Brend belgisi ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--crema); text-decoration: none; line-height: 1; }
.logo .bean { width: 26px; height: 34px; flex: none; stroke: none; filter: drop-shadow(0 2px 6px rgba(242, 165, 74, .35)); }
.logo .bean ellipse { fill: var(--crema); }
.logo .bean path { fill: none; stroke: var(--roast); stroke-width: 2.2; }
.logo-text { display: grid; gap: 3px; }
.logo-name { font: italic 800 30px/0.9 var(--serif); letter-spacing: .2px; color: var(--crema-hi); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.logo-sub { font: 700 9.5px/1 var(--sans); letter-spacing: .42em; color: var(--crema); padding-left: 2px; }

/* ---------- Yuqori panel ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--top-h); padding: 0 max(16px, calc((100vw - 1160px) / 2 + 16px));
  background: var(--roast); border-bottom: 1px solid rgba(232, 195, 138, .08);
}
.top-tools { display: flex; align-items: center; gap: 6px; min-width: 0; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--roast-2); color: var(--foam); }
.icon-btn.sm { width: 38px; height: 38px; }
.status { font-size: 12px; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; font-weight: 700; padding: 6px 11px 6px 23px; border-radius: 999px; background: var(--roast-2); position: relative; white-space: nowrap; }
.status::before { content: ''; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(156, 197, 138, .2); }
.status.closed::before { background: var(--err); box-shadow: 0 0 0 3px rgba(240, 148, 124, .2); }
.lang select {
  appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--roast-2); color: var(--foam);
  font-size: 13px; font-weight: 700; padding: 8px 26px 8px 12px; height: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 13px center, right 9px center; background-size: 4px 4px; background-repeat: no-repeat;
}
.tg .lang { display: none; }
@media (max-width: 420px) { .status { max-width: 34vw; } .logo-name { font-size: 27px; } }

main { max-width: 1160px; margin: 0 auto; padding: 0 16px calc(110px + var(--safe-b)); outline: none; }

/* ---------- Bosh qism (hero) ---------- */
.hero { position: relative; display: grid; gap: 18px; padding: 18px 0 4px; }
.greet { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: 999px;
  background: rgba(242, 165, 74, .14); color: var(--crema-hi); font-weight: 700; font-size: 13px; }
.hero h1 { font: 700 clamp(30px, 7.4vw, 56px)/1.04 var(--serif); margin: 10px 0 8px; letter-spacing: -.5px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--crema); }
.hero-sub { margin: 0; color: var(--muted); font-size: 14px; max-width: 46ch; }
@media (min-width: 860px) { .hero-sub { font-size: 15.5px; } .perks { flex-wrap: wrap; margin: 16px 0 0; padding: 0; overflow: visible; } }
.perks { display: flex; gap: 8px; margin: 14px -16px 0; padding: 0 16px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.perks::-webkit-scrollbar { display: none; }
.perks li { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--roast-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--foam); }
.hero > div { min-width: 0; }
.hero-art { display: none; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; padding: 40px 0 14px; min-height: 360px; }
  .hero-art { display: block; position: relative; height: 330px; }
  .hero-art img { position: absolute; width: 210px; height: 210px; object-fit: cover; border-radius: 26px; border: 4px solid var(--roast-2);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }
  .hero-art img:nth-child(1) { left: 6%; top: 60px; transform: rotate(-8deg); }
  .hero-art img:nth-child(2) { left: 34%; top: 0; transform: rotate(4deg); z-index: 2; width: 240px; height: 240px; }
  .hero-art img:nth-child(3) { right: 0; top: 100px; transform: rotate(10deg); }
  .hero-art::after { content: ''; position: absolute; left: 20%; right: 10%; bottom: 0; height: 60px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(242, 165, 74, .28), transparent); }
}

/* ---------- Buyurtma usuli ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 4px; padding: 5px; border-radius: 20px; background: var(--roast-2); border: 1px solid var(--line); }
.mode {
  border: 0; background: transparent; border-radius: 15px; padding: 9px 6px; text-align: center; color: var(--foam);
  display: flex; flex-direction: column; align-items: center; gap: 1px; transition: background .15s, color .15s;
}
.mode b { font-weight: 700; font-size: 13.5px; }
.mode small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.mode[aria-pressed="true"] { background: linear-gradient(180deg, var(--crema-hi), var(--crema)); color: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.mode[aria-pressed="true"] small { color: var(--muted-ink); }
.mode:disabled { opacity: .4; cursor: not-allowed; }
.mode svg { width: 22px; height: 22px; margin-bottom: 3px; }
@media (min-width: 860px) { .modes { max-width: 640px; } }
.notice { margin: 10px 0 0; padding: 11px 14px; border-radius: 14px; background: rgba(240, 148, 124, .14); color: #ffd3c6; font-size: 13.5px; }
.notice.calm { background: var(--roast-2); color: var(--muted); }

/* Oxirgi buyurtma */
.lastorder { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 10px 12px; border-radius: 18px; background: var(--roast-2); border: 1px solid var(--line); }
.lastorder img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.lastorder div { flex: 1; min-width: 0; }
.lastorder p { margin: 0; font-size: 12.5px; color: var(--muted); }
.lastorder strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lastorder .btn { width: auto; padding: 10px 14px; font-size: 14px; border-radius: 12px; }

/* ---------- Eng ko'p sevilganlar ---------- */
.hits { margin-top: 24px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.sec-head h2 { font: 700 24px/1.15 var(--serif); margin: 0; }
.sec-head span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.hits-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(44%, 220px); gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 10px;
  scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hits-row::-webkit-scrollbar { display: none; }
.hit { position: relative; scroll-snap-align: start; border-radius: var(--r-photo); overflow: hidden; background: var(--roast-3); aspect-ratio: 3 / 4; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.hit img { width: 100%; height: 100%; object-fit: cover; }
.hit::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(20, 12, 7, .55) 35%, rgba(20, 12, 7, .95)); pointer-events: none; }
.hit-info { position: absolute; left: 12px; right: 10px; bottom: 10px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.hit-info b { font: 700 16px/1.15 var(--serif); display: block; }
@media (min-width: 860px) { .hit-info b { font-size: 19px; } }
.hit-info small { display: block; color: var(--crema); font-weight: 700; font-size: 13px; margin-top: 3px; }
.plus { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--crema); color: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.plus svg { width: 22px; height: 22px; stroke-width: 2.4; }
.plus:active { transform: scale(.92); }
.plus:disabled { background: var(--roast-3); color: var(--muted); }
@media (min-width: 860px) { .hits-row { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; } }

/* ---------- Kategoriyalar ---------- */
.cats {
  position: sticky; top: var(--top-h); z-index: 20; margin: 22px -16px 0; padding: 10px 16px; display: flex; gap: 8px; overflow-x: auto;
  background: var(--roast); box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .6); scrollbar-width: none; overscroll-behavior-x: contain;
}
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; border: 1px solid transparent; border-radius: 999px; padding: 8px 14px; background: var(--roast-2); font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.cat[aria-current="true"] { background: var(--foam); color: var(--ink); }
.search { flex: none; display: flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--roast-2); padding: 0 12px; }
.search input { width: 0; border: 0; background: transparent; outline: none; padding: 8px 0; transition: width .2s; }
.search.open input, .search input:focus { width: 150px; }
.search svg { width: 18px; height: 18px; color: var(--muted); }

/* ---------- Menyu ---------- */
.section { padding-top: 26px; }
.section .sec-head h2::after { content: ''; display: block; width: 38px; height: 3px; margin-top: 7px; border-radius: 3px; background: linear-gradient(90deg, var(--sun), var(--crema)); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 28px 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.item { display: flex; flex-direction: column; min-width: 0; }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--r-photo); overflow: hidden; background: var(--roast-3); box-shadow: 0 10px 24px rgba(0, 0, 0, .28); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { .item:hover .photo img { transform: scale(1.05); } }
.tag { position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em;
  background: rgba(31, 20, 13, .82); color: var(--crema-hi); }
.tag.hot { background: var(--sun); color: var(--ink); }
.qty-badge {
  position: absolute; right: 8px; top: 8px; min-width: 30px; height: 30px; padding: 0 9px; display: grid; place-items: center;
  border-radius: 999px; background: var(--crema); color: var(--ink); font-weight: 800; font-size: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  animation: pop .35s ease;
}
.item.oos .photo img { filter: grayscale(1) brightness(.55); }
.oos-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(31, 20, 13, .88); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.item h3 { font: 700 17.5px/1.2 var(--serif); margin: 11px 0 2px; }
.item p { margin: 0 0 9px; font-size: 12.5px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
/* Narx tugmasi = o'lcham tanlash + savatga qo'shish (bitta bosish) */
.price {
  display: inline-flex; align-items: baseline; gap: 5px; border: 0; border-radius: 999px; padding: 8px 12px;
  background: linear-gradient(180deg, var(--crema-hi), var(--crema)); color: var(--ink); font-weight: 800; font-size: 13.5px;
  box-shadow: inset 0 -2px 0 rgba(42, 26, 16, .14), 0 4px 10px rgba(0, 0, 0, .2); transition: transform .1s;
}
.price small { font-size: 10.5px; font-weight: 700; color: var(--muted-ink); }
.price:active { transform: scale(.94); }
.price:disabled { background: var(--roast-3); color: var(--muted); box-shadow: none; }
.price.pop, .plus.pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.14); } }
.empty { padding: 40px 0; color: var(--muted); text-align: center; }

/* Skeleton */
.sk { border-radius: var(--r-photo); background: linear-gradient(90deg, var(--roast-2), var(--roast-3), var(--roast-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Pastki savat paneli ---------- */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(12px + var(--safe-b)); pointer-events: none; }
.cartbar button {
  pointer-events: auto; width: 100%; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; border: 0;
  padding: 14px 18px; border-radius: 20px; background: linear-gradient(180deg, var(--crema-hi), var(--crema)); color: var(--ink); font-weight: 800; font-size: 15.5px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5); animation: rise .25s ease;
}
.cartbar-count { background: var(--ink); color: var(--crema); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.cartbar-label { flex: 1; text-align: left; }
.tg .cartbar { display: none; }  /* Telegramda MainButton ishlatiladi */

/* ---------- Pastdan chiquvchi oyna (chek qog'ozi) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(12, 7, 4, .66); animation: fade .2s; }
.sheet-panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); border-radius: 24px 24px 0 0; animation: rise .28s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 720px) { .sheet { align-items: center; } .sheet-panel { border-radius: 24px; max-height: 88dvh; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: rgba(42, 26, 16, .2); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 4px; }
.sheet-head h2 { font: 700 24px/1.2 var(--serif); margin: 0; }
.sheet-head .icon-btn, .ticket .icon-btn { background: rgba(42, 26, 16, .07); color: var(--ink); }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 18px 22px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-foot { flex: none; padding: 12px 18px calc(14px + var(--safe-b)); border-top: 1px dashed rgba(42, 26, 16, .25); background: var(--paper); border-radius: 0 0 24px 24px; }
/* Telegram ichida: oyna butun ekranni egallaydi, pastdagi tugma — Telegram'ning o'zidagi MainButton.
   Klaviatura ochilganda jami bloki yashiriladi — kiritish maydonlari hech narsaga to'silmaydi. */
.tg .sheet { align-items: stretch; }
.tg .sheet-panel { max-width: none; max-height: none; height: var(--tg-viewport-height, 100dvh); border-radius: 0; animation: none; }
.tg .sheet-grip { display: none; }
.tg .sheet-foot { padding-bottom: 12px; border-radius: 0; }
.tg .sheet-foot .btn.main { display: none; }
/* Yozish paytida: jami bloki yashiriladi, saytda faqat ixcham tugma qoladi; Telegramda tugma — MainButton */
.sheet.typing .sheet-foot { padding: 8px 18px; }
.sheet.typing .sheet-foot .totals, .sheet.typing .sheet-foot .form-err { display: none; }
.sheet.typing .sheet-foot .btn.main { padding: 12px 16px; }
.tg .sheet.typing .sheet-foot { display: none; }
.sheet.typing .sheet-body { padding-bottom: 40vh; }

/* Savat qatorlari */
.line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(42, 26, 16, .18); }
.line img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.line b { display: block; font: 700 15.5px/1.25 var(--serif); }
.line span { font-size: 12.5px; color: var(--muted-ink); }
.stepper { display: flex; align-items: center; gap: 2px; background: rgba(42, 26, 16, .07); border-radius: 999px; }
.stepper button { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%; font-size: 18px; font-weight: 700; color: var(--ink); }
.stepper output { min-width: 18px; text-align: center; font-weight: 800; }

/* Forma */
.fs { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.fs > legend { font: 700 18px/1.2 var(--serif); padding: 0; margin-bottom: 10px; }
.field { display: block; margin-bottom: 10px; min-width: 0; }
.field > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted-ink); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.input {
  display: block; width: 100%; min-width: 0; border: 1.5px solid rgba(42, 26, 16, .16); background: #fffaf1; border-radius: var(--r-ctl); padding: 12px 13px;
  color: var(--ink); outline: none; font-size: 16px; /* iOS zoom bo'lmasligi uchun 16px */
}
.input:focus { border-color: var(--ink); background: #fff; }
.input[aria-invalid="true"] { border-color: var(--err-ink); background: #fff1ec; }
textarea.input { resize: vertical; min-height: 70px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.field-err { color: var(--err-ink); font-size: 12.5px; margin: 4px 0 0; font-weight: 600; }
.verified { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-radius: var(--r-ctl); background: #fffaf1; border: 1.5px solid rgba(42, 26, 16, .1); }
.verified svg { color: #3f7d2f; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted-ink); margin: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 1px; flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { border: 1.5px solid rgba(42, 26, 16, .16); background: #fffaf1; border-radius: var(--r-ctl); padding: 10px 13px; font-weight: 700; font-size: 14px; color: var(--ink); text-align: left; }
.choice small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted-ink); }
.choice[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice[aria-pressed="true"] small { color: var(--crema); }

.mapbtn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1.5px dashed rgba(42, 26, 16, .3); background: transparent; border-radius: var(--r-ctl); padding: 12px 13px; color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.mapbtn.set { border-style: solid; background: #fffaf1; }
.mapbtn small { display: block; font-weight: 500; color: var(--muted-ink); font-size: 12px; }

.totals { margin: 4px 0 0; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font: 700 20px/1.3 var(--serif); padding-top: 8px; margin-top: 6px; border-top: 1px dashed rgba(42, 26, 16, .25); }
.sheet-foot .totals { margin: 0 0 10px; }
.hint { font-size: 12.5px; color: var(--muted-ink); margin: 6px 0 0; }
.privacy { display: flex; gap: 8px; font-size: 12px; color: var(--muted-ink); margin-top: 14px; }
.privacy svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.form-err { background: #fde3da; color: var(--err-ink); padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 13.5px; margin: 0 0 10px; }

/* Tugmalar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 15px 18px;
  font-weight: 800; font-size: 15.5px; background: var(--ink); color: var(--paper); width: 100%; text-decoration: none;
}
.btn.ghost { background: rgba(42, 26, 16, .07); color: var(--ink); }
.btn.light { background: linear-gradient(180deg, var(--crema-hi), var(--crema)); color: var(--ink); }
.btn:disabled { opacity: .55; }
.btn.link { background: none; color: var(--muted); width: auto; padding: 8px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Kuzatish (chek) ---------- */
.track { max-width: 520px; margin: 18px auto 0; }
.thanks-card { position: relative; overflow: hidden; text-align: center; padding: 22px 18px 18px; margin-bottom: 14px; border-radius: 22px;
  background: linear-gradient(160deg, #3b281b, #2a1b11); border: 1px solid var(--line); }
.thanks-card .big { font-size: 42px; line-height: 1; }
.thanks-card h2 { font: 700 23px/1.2 var(--serif); margin: 8px 0 4px; color: var(--crema-hi); text-wrap: balance; }
.thanks-card p { margin: 0; color: var(--muted); font-size: 14px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -10px; width: 7px; height: 12px; border-radius: 2px; opacity: 0; animation: drop 2.4s ease-in forwards; }
@keyframes drop { 10% { opacity: 1; } to { transform: translateY(260px) rotate(540deg); opacity: 0; } }
.ticket {
  position: relative; background: var(--paper); color: var(--ink); border-radius: 6px 6px 18px 18px; padding: 26px 20px 20px;
  -webkit-mask: radial-gradient(circle 7px at 50% 0, transparent 6.5px, #000 7px) top / 18px 100% repeat-x;
  mask: radial-gradient(circle 7px at 50% 0, transparent 6.5px, #000 7px) top / 18px 100% repeat-x;
}
.ticket-no { text-align: center; }
.ticket-no small { font-size: 13px; color: var(--muted-ink); font-weight: 600; }
.ticket-no strong { display: block; font: 700 64px/1 var(--serif); letter-spacing: -1px; margin: 4px 0; }
.ticket-no p { margin: 0; font-weight: 700; }
.ticket hr { border: 0; border-top: 1px dashed rgba(42, 26, 16, .3); margin: 18px 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 16px 34px; color: var(--muted-ink); font-weight: 600; }
.steps li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; border: 1.5px solid rgba(42, 26, 16, .25); background: var(--paper);
}
.steps li::after { content: ''; position: absolute; left: 10.5px; top: 22px; bottom: 2px; border-left: 1.5px dashed rgba(42, 26, 16, .25); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { content: '✓'; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.steps li.now { color: var(--ink); }
.steps li.now::before { background: var(--sun); border-color: var(--ink); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(242, 165, 74, .25); } }
.steps time { display: block; font-weight: 500; font-size: 12px; color: var(--muted-ink); }
.t-items div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 3px 0; }
.t-meta { font-size: 13px; color: var(--muted-ink); display: grid; gap: 2px; }
.stars { display: flex; gap: 6px; justify-content: center; }
.stars button { border: 0; background: none; font-size: 30px; line-height: 1; padding: 4px; filter: grayscale(1) opacity(.5); }
.stars button.on { filter: none; }
.track-actions { display: grid; gap: 10px; margin-top: 16px; }
.track-actions .btn.ghost { background: var(--roast-2); color: var(--foam); }
.track .sk { height: 420px; }

/* ---------- Xarita ---------- */
.mapview { position: fixed; inset: 0; z-index: 80; background: var(--roast); display: flex; flex-direction: column; }
.tg .mapview { height: var(--tg-viewport-height, 100dvh); bottom: auto; }
.mapview-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.mapview-head h2 { font: 700 20px/1.2 var(--serif); margin: 0; }
.map { flex: 1; background: #ddd; }
.map-pin { position: absolute; left: 50%; top: calc(50% - 10px); width: 40px; height: 52px; margin: -52px 0 0 -20px; z-index: 500; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); transition: transform .15s; }
.map-pin svg { width: 40px; height: 52px; fill: var(--ink); stroke: none; }
.map-pin circle { fill: var(--crema); }
.mapview.moving .map-pin { transform: translateY(-8px); }
.map-panel { background: var(--paper); color: var(--ink); padding: 14px 16px calc(14px + var(--safe-b)); border-radius: 20px 20px 0 0; margin-top: -18px; z-index: 600; position: relative; }
.map-hint { margin: 0; font-size: 12.5px; color: var(--muted-ink); }
.map-addr { margin: 4px 0 2px; font: 700 17px/1.3 var(--serif); min-height: 22px; }
.map-fee { margin: 0 0 12px; font-size: 13px; font-weight: 600; min-height: 18px; }
.map-fee.bad { color: var(--err-ink); }
.map-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.map-actions .btn { font-size: 14px; padding: 13px 10px; line-height: 1.2; }
.map-actions .btn svg { flex: none; width: 18px; height: 18px; }

/* ---------- Bildirishnoma ---------- */
.toast {
  pointer-events: none;
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); z-index: 90;
  background: var(--foam); color: var(--ink); padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4); animation: rise .2s; max-width: calc(100% - 32px); text-align: center;
}
.tg .toast { bottom: calc(24px + var(--safe-b)); }

.myorders a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px dashed rgba(42, 26, 16, .2); color: var(--ink); text-decoration: none; }
.myorders small { color: var(--muted-ink); }

/* ---------- Pastki qism ---------- */
footer.site { max-width: 1160px; margin: 48px auto 0; padding: 28px 16px calc(120px + var(--safe-b)); color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line);
  display: grid; gap: 18px; }
footer.site .logo-name { font-size: 36px; }
footer.site .cols { display: grid; gap: 6px; }
footer.site a { color: var(--crema); text-decoration: none; font-weight: 600; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 8px; }
footer.site .links a { padding: 8px 13px; border-radius: 999px; background: var(--roast-2); border: 1px solid var(--line); }
footer.site .made { font-size: 12px; opacity: .8; }
@media (min-width: 720px) { footer.site { grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; } }
.tg footer.site { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.thanks-card > :not(.confetti) { position: relative; z-index: 1; }
