/* ===== Ranglar va o‘lchamlar ===== */
:root {
  color-scheme: light;
  --brand: #B4232C;
  --brand-press: #961C24;
  --brand-soft: #FBEAEA;
  --brand-ink: #A11F28;
  --on-brand: #FFFFFF;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f7;
  --surface-3: #eeeef0;
  --text: #1c1a18;
  --text-2: #6b655e;
  --text-3: #a19a92;
  --line: #ececee;
  --line-2: #dcdce0;
  --ok: #1d8455;
  --ok-soft: #e3f3ea;
  --warn: #a8640a;
  --warn-soft: #fff1d9;
  --info: #2a5bd7;
  --info-soft: #e8eefc;
  --danger: #c62828;
  --danger-soft: #fdebeb;
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, .04);
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 6px 20px rgba(20, 20, 30, .05);
  --shadow-lg: 0 -8px 40px rgba(28, 26, 24, .18);
  --r-xl: 24px;
  --r-lg: 20px;
  --r: 16px;
  --r-sm: 12px;
  --pad: 16px;
  --tabbar-h: 62px;
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-brand="cherry"] { --brand: #8C1D3B; --brand-press: #74172F; --brand-soft: #f7e6eb; --brand-ink: #8C1D3B; }
:root[data-brand="orange"] { --brand: #C8501A; --brand-press: #A84314; --brand-soft: #fcede4; --brand-ink: #B4481A; }
:root[data-brand="green"] { --brand: #1C7552; --brand-press: #155E41; --brand-soft: #e3f2eb; --brand-ink: #1C7552; }
:root[data-brand="blue"] { --brand: #2556C4; --brand-press: #1D46A3; --brand-soft: #e7eefc; --brand-ink: #2556C4; }

/* ===== Asos ===== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.42 var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
body.sheet-open { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.ic { display: block; flex: none; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; }
.muted { color: var(--text-3); font-weight: 500; }
.link { color: var(--brand-ink); font-weight: 650; font-size: 14px; padding: 6px 0; }
.danger-text { color: var(--danger) !important; }
.center-link { display: block; margin: 10px auto 0; font-size: 14px; }

/* ===== Ekran ===== */
.screen { padding: 0 var(--pad) calc(var(--tabbar-h) + var(--safe-b) + 28px); min-height: 100vh; }
.screen.is-sub { padding-bottom: calc(var(--safe-b) + 32px); }
.screen[data-view="cart"] { padding-bottom: calc(var(--safe-b) + 104px); }
.anim-push { animation: pushIn .32s var(--ease) both; }
.anim-pop { animation: popIn .26s var(--ease) both; }
.anim-fade { animation: fadeIn .2s ease-out both; }

.page-head { padding: 18px 2px 14px; }
.page-head h1, .catalog-head h1 { font-size: 28px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sub-head {
  position: sticky; top: 0; z-index: 6;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px;
  margin: 0 calc(-1 * var(--pad)) 12px; padding: 8px var(--pad);
  min-height: 56px; background: var(--bg);
}
.sub-head h1 { grid-column: 2; font-size: 17px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-head-end { grid-column: 3; display: flex; justify-content: flex-end; }
.sub-head-end .link { white-space: nowrap; font-size: 14px; }
.back-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--text); }
.in-telegram .back-btn { visibility: hidden; }
.in-telegram .sub-head { grid-template-columns: 72px 1fr 72px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; flex: none;
  display: grid; place-items: center; border-radius: 14px;
  background: var(--surface-2); color: var(--text); border: 1px solid transparent;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn.spinning .ic { animation: spin .8s linear infinite; }
.icon-btn .count[hidden] { display: none; }
.icon-btn .count {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--bg);
  background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 800; font-style: normal;
}

/* ===== Asosiy sahifa ===== */
.home-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 4px; }
.home-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 16px; letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 11px; background: var(--brand); color: var(--on-brand);
  font-weight: 850; font-size: 18px; letter-spacing: -.04em;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.brand-mark.lg { width: 48px; height: 48px; border-radius: 15px; font-size: 25px; }
.hello { padding: 16px 2px 18px; }
.hello h1 { font-size: 26px; line-height: 1.16; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.hello p { margin-top: 6px; color: var(--text-2); font-size: 15px; }

.balance {
  position: relative; overflow: hidden; width: 100%;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px 16px; border-radius: var(--r-xl);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .16), transparent 55%), linear-gradient(140deg, var(--brand), var(--brand-press));
  color: var(--on-brand); text-align: left;
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--brand) 70%, transparent);
}
.balance::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 190px; height: 190px; border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, .07); pointer-events: none;
}
.balance:active { transform: scale(.99); }
.balance-top { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; opacity: .9; }
.balance-amount { font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.balance-amount small { font-size: 17px; font-weight: 650; opacity: .85; letter-spacing: 0; }
.balance-state {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .17); font-size: 13px; font-weight: 650;
}
.balance-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 13px; opacity: .92; }
.balance-foot b { font-weight: 700; }

.quick { display: grid; gap: 8px; margin-top: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-1 { grid-template-columns: 1fr; }
.quick-1 .quick-item { flex-direction: row; justify-content: center; gap: 12px; padding: 10px 14px; font-size: 15px; }
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 4px 10px; border-radius: var(--r); background: var(--surface-2);
  border: 1px solid transparent;
  font-size: 12px; font-weight: 650; line-height: 1.2; text-align: center; color: var(--text);
}
.quick-item:active { transform: scale(.96); background: var(--surface-2); }
.quick-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.quick-ic.primary { background: var(--brand); color: var(--on-brand); }

.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.section-head h2 { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.block-title { margin: 22px 2px 10px; font-size: 15px; font-weight: 700; color: var(--text-2); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid transparent; text-align: left;
}
.stat > span { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.stat b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--text-3); font-size: 12px; }

/* ===== Kartochka va ro‘yxat ===== */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card.pad { padding: 16px; }
.list-card { overflow: hidden; }
.row {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
button.row:active { background: var(--surface-2); }
.row-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--surface-3); color: var(--text-2); }
.row-ic.ic-ship, .doc-ic.ic-ship { background: var(--brand-soft); color: var(--brand-ink); }
.row-ic.ic-return, .doc-ic.ic-return { background: var(--info-soft); color: var(--info); }
.row-ic.ic-pay { background: var(--ok-soft); color: var(--ok); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row-end b { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.row-end small { color: var(--text-3); font-size: 12px; }
.credit { color: var(--ok) !important; }
.debit { color: var(--text) !important; }
.dot-new { font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--on-brand); background: var(--brand); padding: 2px 6px; border-radius: 6px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-new { color: var(--warn); background: var(--warn-soft); }
.st-confirmed { color: var(--info); background: var(--info-soft); }
.st-shipped { color: var(--ok); background: var(--ok-soft); }
.st-cancelled { color: var(--text-3); background: var(--surface-3); }

.empty-inline {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px dashed var(--line-2);
}
.empty-inline > span:nth-child(2) { flex: 1; min-width: 0; }
.empty-inline b { display: block; font-size: 15px; font-weight: 700; }
.empty-inline small { display: block; margin-top: 2px; color: var(--text-2); font-size: 13px; line-height: 1.38; }
.empty-inline-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--surface-3); color: var(--text-3); }
.empty-inline.error { border-style: solid; color: var(--danger); }
.empty-inline.error small { color: var(--text-2); }
.empty { padding: 44px 24px; text-align: center; }
.empty-ic { width: 68px; height: 68px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 22px; background: var(--surface-2); color: var(--text-3); }
.empty h3 { font-size: 18px; font-weight: 750; }
.empty p { max-width: 290px; margin: 8px auto 0; color: var(--text-2); font-size: 14px; }
.empty .btn { margin-top: 18px; }
.foot-hint { margin: 14px 8px 0; text-align: center; color: var(--text-3); font-size: 12.5px; }

.notice { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.notice b { display: block; font-size: 15px; font-weight: 750; }
.notice p { margin-top: 3px; color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.notice-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; }
.notice-wait { background: var(--warn-soft); border-color: transparent; }
.notice-wait .notice-ic { background: rgba(255, 255, 255, .55); color: var(--warn); }
.notice.compact { align-items: flex-start; gap: 9px; padding: 11px 12px; margin: 12px 0; font-size: 13.5px; border-radius: var(--r); }
.notice.compact .ic { margin-top: 1px; }
.notice.compact p { margin: 0; color: inherit; }
.notice-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.notice-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.notice-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.notice-wait.compact { color: var(--warn); }

/* ===== Pastki navigatsiya ===== */
.tabbar {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(var(--tabbar-h) + var(--safe-b)); padding: 6px 4px var(--safe-b);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; color: var(--text-3); }
.tab-ic { position: relative; height: 28px; width: 44px; display: grid; place-items: center; border-radius: 14px; transition: background .2s, color .2s; }
.tab-label { font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab.on { color: var(--brand-ink); }
.tab.on .tab-ic { background: var(--brand-soft); }
.tab.on .tab-label { font-weight: 750; }
.tab:active .tab-ic { transform: scale(.9); }
.tab-badge {
  position: absolute; top: -4px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 9px; border: 2px solid var(--surface);
  background: var(--brand); color: var(--on-brand); font-size: 10.5px; font-weight: 800; font-style: normal; line-height: 1;
}
.tab-badge.soft { background: var(--text-2); }
.tab-badge[hidden] { display: none; }
body.typing .tabbar, body.typing .cartbar, body.typing .dock { display: none; }

/* ===== Katalog ===== */
.catalog-head {
  position: sticky; top: 0; z-index: 6;
  margin: 0 calc(-1 * var(--pad)); padding: 16px var(--pad) 10px;
  background: var(--bg);
  transition: box-shadow .2s;
}
.catalog-head.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 18px -16px rgba(0, 0, 0, .35); }
.catalog-head .title-row { margin-bottom: 12px; }
.search {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 14px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; color: var(--text-3);
}
.search:focus-within { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text); }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 34px; height: 34px; display: none; place-items: center; border-radius: 10px; color: var(--text-3); }
.search.has-value .search-clear { display: grid; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.compact { margin-top: 0; margin-bottom: 12px; }
.chip {
  flex: none; height: 36px; padding: 0 15px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--surface-2); border: 1px solid transparent;
  font-size: 14px; font-weight: 650; color: var(--text-2); white-space: nowrap;
}
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip:active { transform: scale(.96); }
.cat-group { margin-top: 18px; }
.cat-group:first-child { margin-top: 8px; }
.cat-title { margin: 0 2px 10px; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.product-list { overflow: hidden; margin-top: 8px; }
.cat-group .product-list { margin-top: 0; }
.product { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; }
.product-img { width: 78px; height: 78px; flex: none; overflow: hidden; border-radius: 14px; background: var(--surface-3); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 55%, var(--text-3)); background: linear-gradient(145deg, var(--brand-soft), var(--surface-3)); }
.product-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.product-name { font-size: 15.5px; font-weight: 700; line-height: 1.25; text-align: left; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.hit { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-size: 11px; font-weight: 750; }
.product-meta { margin-top: 3px; color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 16px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.qty-slot { flex: none; }
.add-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px;
  background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 14px -6px var(--brand);
}
.add-btn:active { transform: scale(.92); background: var(--brand-press); }
.stepper { display: flex; align-items: center; height: 40px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-ink); animation: pop .22s var(--ease); }
.stepper > button { height: 40px; width: 36px; display: grid; place-items: center; }
.stepper > button:active { transform: scale(.88); }
.stepper-val { min-width: 46px; width: auto !important; padding: 0 2px; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; display: flex !important; align-items: baseline; justify-content: center; gap: 2px; }
.stepper-val small { font-size: 11px; font-weight: 700; opacity: .75; }
.product.out .product-img, .product.out .product-name, .product.out .price { opacity: .5; }
.out-label { font-size: 12.5px; font-weight: 650; color: var(--text-3); background: var(--surface-3); padding: 6px 10px; border-radius: 10px; }

.cartbar {
  position: fixed; z-index: 19; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px);
  width: min(calc(100% - 24px), 536px);
  display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 12px;
  border-radius: 18px; background: var(--brand); color: var(--on-brand);
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--brand) 80%, transparent);
  animation: rise .3s var(--ease);
}
.cartbar:active { transform: translateX(-50%) scale(.985); }
.cartbar-ic { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.cartbar-ic i { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--brand); font-size: 11px; font-weight: 850; font-style: normal; }
.cartbar-text { flex: 1; display: flex; flex-direction: column; text-align: left; }
.cartbar-text small { font-size: 12px; opacity: .85; font-weight: 600; }
.cartbar-text b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cartbar-go { display: flex; align-items: center; gap: 2px; padding: 9px 8px 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .16); font-size: 14px; font-weight: 750; }
.screen[data-view="catalog"] { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 96px); }

/* ===== Bottom sheet ===== */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 12, 10, .45); animation: fadeIn .2s ease-out both; }
.sheet-backdrop.closing { animation: fadeOut .2s ease-in both; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 26px 26px 0 0; background: var(--surface); box-shadow: var(--shadow-lg);
  padding-bottom: calc(var(--safe-b) + 18px);
  animation: sheetUp .34s var(--ease) both; transition: transform .25s var(--ease);
}
.sheet-backdrop.closing .sheet { animation: sheetDown .2s ease-in both; }
.sheet-grip { position: absolute; z-index: 2; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(255, 255, 255, .8); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.sheet-media { position: relative; height: 230px; background: var(--surface-3); overflow: hidden; }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.ph-big { height: 100%; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .38); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sheet-body { padding: 18px var(--pad) 4px; }
.eyebrow { display: block; color: var(--text-3); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.sheet-title { margin-top: 4px; font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.sheet-desc { margin-top: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 9px; background: var(--surface-3); color: var(--text-2); font-size: 13px; font-weight: 600; }
.sheet-price { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.sheet-price span { color: var(--text-2); font-weight: 600; }
.sheet-price b { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sheet-price small { font-size: 14px; color: var(--text-3); font-weight: 600; }
.qty-editor { display: grid; grid-template-columns: 54px 1fr 54px; gap: 8px; }
.qty-btn { height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--surface-3); color: var(--text); }
.qty-btn:active { transform: scale(.94); }
.qty-field { display: flex; align-items: center; justify-content: center; gap: 6px; height: 54px; padding: 0 14px; border-radius: 16px; border: 2px solid var(--brand); background: var(--surface); }
.qty-field input { flex: none; width: 6ch; min-width: 0; border: 0; outline: 0; background: transparent; text-align: right; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.qty-field span { flex: none; font-size: 16px; font-weight: 700; color: var(--text-2); }
.qty-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 16px; }
.qty-quick button { height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 750; text-align: center; }
.qty-quick button:active { transform: scale(.95); }

/* ===== Tugmalar ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 15px;
  font-size: 15.5px; font-weight: 750; white-space: nowrap;
  transition: transform .12s, background .15s, opacity .15s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .55; }
.btn-block { display: flex; width: 100%; }
.btn-lg { height: 54px; font-size: 16.5px; border-radius: 17px; }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 22px -12px var(--brand); }
.btn-primary:active:not(:disabled) { background: var(--brand-press); }
.btn-secondary { background: var(--brand-soft); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn + .btn { margin-top: 8px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.dock {
  position: fixed; z-index: 18; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
  padding: 10px var(--pad) calc(var(--safe-b) + 12px);
  background: linear-gradient(to top, var(--bg) 70%, color-mix(in srgb, var(--bg) 0%, transparent));
}

/* ===== Savat ===== */
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-img { width: 58px; height: 58px; flex: none; overflow: hidden; border-radius: 13px; background: var(--surface-3); }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cart-name { font-weight: 700; font-size: 15px; line-height: 1.25; text-align: left; }
.cart-price { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cart-sum { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.add-more { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; height: 46px; border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--brand-ink); font-weight: 700; }
.field-title { display: flex; align-items: center; gap: 7px; margin: 0 2px 10px; font-size: 15px; font-weight: 750; }
.field-title .muted { font-weight: 500; font-size: 14px; }
.date-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.date-chip {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 58px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid transparent; cursor: pointer; overflow: hidden;
}
.date-chip b { font-size: 14px; font-weight: 750; }
.date-chip small { font-size: 12px; color: var(--text-3); font-weight: 600; }
.date-chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.date-chip.on small { color: var(--brand-ink); opacity: .8; }
.date-chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid transparent; background: var(--surface-2); color: var(--text);
  font-size: 16px; outline: 0; resize: vertical; transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:focus { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input::placeholder { color: var(--text-3); }
textarea.input { min-height: 74px; line-height: 1.4; }
.summary { margin-top: 18px; padding: 14px 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--text-2); font-size: 14.5px; }
.sum-row span:last-child { color: var(--text); font-weight: 650; text-align: right; }
.sum-row.total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 16px; }
.sum-row.total b { font-size: 19px; font-weight: 850; font-variant-numeric: tabular-nums; }
.hint, .warn-line { display: flex; gap: 6px; margin-top: 8px; color: var(--text-3); font-size: 12.5px; line-height: 1.4; }
.hint .ic, .warn-line .ic { margin-top: 1px; }
.warn-line { color: var(--warn); font-weight: 600; }

/* ===== Muvaffaqiyat ===== */
.success { padding: 48px 4px 20px; text-align: center; }
.success-ic { width: 92px; height: 92px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 30px; background: var(--ok-soft); color: var(--ok); animation: pop .5s var(--ease) both; }
.success h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.success > p { max-width: 320px; margin: 10px auto 0; color: var(--text-2); font-size: 15px; }
.success .summary { margin: 22px 0; text-align: left; }

/* ===== Buyurtmalar ===== */
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: var(--surface-3); }
.segment.three { grid-template-columns: repeat(3, 1fr); }
.segment button { height: 38px; border-radius: 11px; font-size: 14px; font-weight: 650; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.segment button.on { background: var(--surface); color: var(--text); font-weight: 750; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.segment i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-size: 11.5px; font-weight: 800; }
.lang-switch { margin-bottom: 4px; }
.lang-switch button { font-size: 14.5px; }
.block-title.with-ic { display: flex; align-items: center; gap: 6px; }
.stack-list { display: flex; flex-direction: column; gap: 10px; }
.order-card { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; text-align: left; }
.order-card:active { transform: scale(.99); }
.oc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oc-top b { font-size: 16px; font-weight: 750; }
.oc-items { color: var(--text-2); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.oc-foot .muted { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); }
.oc-foot b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--line-2); }
.timeline li.done:not(:last-child)::before { background: var(--ok); }
.tl-dot { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); color: #fff; }
.timeline li.done .tl-dot { border-color: var(--ok); background: var(--ok); }
.tl-text { display: flex; flex-direction: column; }
.tl-text b { font-size: 15px; font-weight: 700; }
.timeline li:not(.done) .tl-text b { color: var(--text-3); }
.tl-text small { color: var(--text-3); font-size: 13px; }
.kv-list { margin-top: 12px; padding: 4px 16px; }
.kv { width: 100%; display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: left; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--text-2); flex: none; }
.kv b { font-weight: 650; text-align: right; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 2px; }
.kv-link b { color: var(--brand-ink); }
.lines { padding: 2px 16px; }
.line { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-n { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 750; }
.line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.line-main b { font-size: 14.5px; font-weight: 650; }
.line-main small { color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.line-sum { flex: none; font-size: 14.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.lines-total, .doc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; font-weight: 700; }
.lines-total b, .doc-total b { font-size: 19px; font-weight: 850; font-variant-numeric: tabular-nums; }
.actions { margin-top: 18px; }

/* ===== Yuklar va akt-sverka ===== */
.mini-balance {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
  padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid transparent;
}
.mini-balance > span:first-child { display: flex; flex-direction: column; }
.mini-balance small { color: var(--text-2); font-size: 13px; font-weight: 600; }
.mini-balance b { font-size: 22px; font-weight: 850; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mb-state { padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.mb-state.due { background: var(--brand-soft); color: var(--brand-ink); }
.mb-state.ok { background: var(--ok-soft); color: var(--ok); }
.notice + .segment, .mini-balance + .segment { margin-top: 0; }
.notice-wait + .segment { margin-top: 14px; }
.day-group { margin-bottom: 16px; }
.day-head { display: flex; align-items: baseline; gap: 8px; margin: 0 4px 8px; font-size: 14px; }
.day-head b { font-weight: 750; }
.day-total { margin-left: auto; color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.row.static { cursor: default; }
.ledger-sum { padding: 6px 16px; transition: opacity .2s; }
.ledger-sum.is-loading { opacity: .55; }
.ls-range { display: flex; align-items: center; gap: 6px; padding: 10px 0 6px; color: var(--text-3); font-size: 13px; font-weight: 600; }
.ls-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ls-row span { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.ls-row b { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ls-row.total { border-bottom: 0; padding: 14px 0 12px; }
.ls-row.total span { color: var(--text); font-weight: 700; }
.ls-row.total b { font-size: 19px; font-weight: 850; }
.ledger-list { overflow: hidden; }
.lrow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.lrow:last-child { border-bottom: 0; }
button.lrow:active { background: var(--surface-2); }
.lrow-date { width: 42px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 5px 0; border-radius: 11px; background: var(--surface-3); line-height: 1.1; }
.lrow-date b { font-size: 16px; font-weight: 800; }
.lrow-date small { font-size: 11px; color: var(--text-3); font-weight: 650; }
.lrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lrow-title { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow-sub { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lrow-amt { flex: none; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.skeleton-card { height: 150px; margin-bottom: 12px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border: 1px solid var(--line); }
.skeleton-card.short { height: 90px; }
.skeleton-card.tall { height: 360px; }

/* ===== Nakladnoy hujjati ===== */
.doc { position: relative; margin-bottom: 14px; padding: 18px 16px 6px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.doc-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px dashed var(--line-2); }
.doc-head h2 { margin: 4px 0 2px; font-size: 24px; font-weight: 850; letter-spacing: -.01em; }
.doc-head .muted { font-size: 13.5px; color: var(--text-2); }
.doc-ic { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 15px; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; border-bottom: 1.5px dashed var(--line-2); }
.doc-parties small { display: block; color: var(--text-3); font-size: 12px; font-weight: 650; }
.doc-parties b { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.doc-lines .line:last-child { border-bottom: 1.5px dashed var(--line-2); }
.doc-total { padding: 16px 0 12px; }
.doc-extra { border-top: 1px solid var(--line); }

/* ===== Profil ===== */
.profile-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.avatar { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 19px; background: var(--brand); color: var(--on-brand); font-size: 21px; font-weight: 800; }
.profile-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.profile-info b { font-size: 18px; font-weight: 750; overflow-wrap: anywhere; }
.profile-info > span { color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }
.pill { margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; font-style: normal; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-wait { background: var(--warn-soft); color: var(--warn); }
.menu { overflow: hidden; }
.menu-row { width: 100%; display: flex; align-items: center; gap: 13px; min-height: 58px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-row.action { color: var(--text); }
.menu-row.action:active { background: var(--surface-2); }
.menu-row.action > .ic:first-child { color: var(--brand-ink); }
.menu-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-text small { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.menu-text b { color: var(--text); font-size: 15px; font-weight: 650; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 6px; }
.menu-row.action .menu-text small { font-weight: 500; color: var(--text-2); }
.verified { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; font-style: normal; }
.form .field { display: block; margin-bottom: 14px; }
.form .field:last-child { margin-bottom: 0; }
.field > span { display: block; margin: 0 2px 7px; font-size: 14px; font-weight: 650; color: var(--text-2); }
.screen[data-view="edit-profile"] .btn-lg { margin-top: 16px; }

/* ===== Ro‘yxatdan o‘tish ===== */
.reg { min-height: 100vh; padding-bottom: calc(var(--safe-b) + 100px); }
.reg-hero { position: relative; height: 210px; overflow: hidden; background: #efe6dc; }
.reg-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.reg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, var(--bg) 100%); }
.reg-brand { position: absolute; z-index: 1; left: var(--pad); top: 16px; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 18px; background: rgba(255, 255, 255, .92); color: #1c1a18; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.reg-brand b { display: block; font-size: 16px; font-weight: 800; }
.reg-brand small { display: block; font-size: 12px; color: #6b655e; font-weight: 600; }
.reg-lang { position: absolute; z-index: 1; right: var(--pad); top: 20px; display: flex; gap: 2px; padding: 3px; border-radius: 13px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.reg-lang button { min-width: 40px; height: 32px; padding: 0 8px; border-radius: 10px; font-size: 13px; font-weight: 750; color: #6b655e; }
.reg-lang button.on { background: var(--brand); color: var(--on-brand); }
.reg-body { position: relative; z-index: 1; margin-top: -26px; padding: 0 var(--pad); }
.reg-body h1 { font-size: 28px; font-weight: 850; letter-spacing: -.02em; }
.reg-lead { margin: 8px 0 20px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.reg-steps { list-style: none; margin: 0; padding: 4px 16px; border-radius: var(--r-lg); background: var(--surface-2); }
.reg-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.reg-steps li:last-child { border-bottom: 0; }
.reg-steps li > span { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }
.reg-steps b { display: block; font-size: 15.5px; font-weight: 700; }
.reg-steps small { display: block; color: var(--text-3); font-size: 13px; }
.reg-perks { list-style: none; margin: 14px 0 0; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); }
.reg-perks li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.reg-perks .ic { color: var(--brand-ink); }

/* ===== To‘liq ekran xabarlari ===== */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 54px; height: 54px; border-radius: 17px; background: var(--brand); animation: breathe 1.1s ease-in-out infinite alternate; }
.full { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 28px; text-align: center; }
.full-ic { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 24px; background: var(--brand-soft); color: var(--brand-ink); }
.full h1 { font-size: 22px; font-weight: 800; }
.full p { max-width: 300px; margin: 10px 0 22px; color: var(--text-2); font-size: 15px; }

/* ===== Toast ===== */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-radius: 15px;
  background: #1f1d1b; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  font-size: 14px; font-weight: 600; line-height: 1.35;
  animation: toastIn .3s var(--ease) both;
}
.toast.out { animation: toastOut .3s ease-in both; }
.toast-success .ic { color: #6fe0a6; }
.toast-error { background: #b3261e; }

/* ===== Animatsiyalar ===== */
@keyframes pushIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheetDown { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pop { from { transform: scale(.85); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes breathe { from { transform: scale(.9); opacity: .55; } to { transform: scale(1); opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, -14px); } }

@media (max-width: 360px) {
  :root { --pad: 12px; }
  .quick-4 .quick-item span:last-child { font-size: 11px; }
  .balance-amount { font-size: 31px; }
  .product-img { width: 66px; height: 66px; }
  .date-chips { grid-template-columns: repeat(2, 1fr); }
  .tab-label { font-size: 10px; }
}
@media (hover: hover) {
  button.row:hover, button.lrow:hover, .menu-row.action:hover { background: var(--surface-2); }
  .quick-item:hover, .chip:hover { border-color: var(--line-2); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
