/* FLUX — liquid glass storefront */

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

[hidden] { display: none !important; }

:root {
  --bg: #07080a;
  --bg-solid: #07080a;
  --bg-2: #0d0f12;
  --text: #f4f5f7;
  --muted: #9aa1aa;
  --dim: #6d747d;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .055);
  --glass-soft: rgba(255, 255, 255, .035);
  --glass-strong: rgba(255, 255, 255, .10);
  --soft: rgba(255, 255, 255, .06);
  --tab-bg: rgba(17, 19, 23, .74);
  --sheet-bg: rgba(14, 16, 20, .94);
  --toast-bg: rgba(28, 31, 37, .9);
  --accent-grad: linear-gradient(135deg, #ffffff 0%, #dfe3e8 46%, #b5bcc5 100%);
  --btn-text: #0a0b0d;
  --hero-glass: linear-gradient(158deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .028) 48%, rgba(255, 255, 255, .06));
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, .95);
  --shadow-soft: 0 14px 34px -22px rgba(0, 0, 0, .9);
  --radius: 26px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

html[data-theme="light"] {
  --bg: #eef0f3;
  --bg-solid: #eef0f3;
  --bg-2: #f7f8fa;
  --text: #0b0c0e;
  --muted: #5d636b;
  --dim: #8b929b;
  --line: rgba(12, 14, 18, .10);
  --line-strong: rgba(12, 14, 18, .16);
  --glass: rgba(255, 255, 255, .62);
  --glass-soft: rgba(255, 255, 255, .45);
  --glass-strong: rgba(255, 255, 255, .84);
  --soft: rgba(12, 14, 18, .05);
  --tab-bg: rgba(255, 255, 255, .78);
  --sheet-bg: rgba(248, 249, 251, .96);
  --toast-bg: rgba(255, 255, 255, .94);
  --accent-grad: linear-gradient(135deg, #20242a 0%, #0e1013 55%, #343a42 100%);
  --btn-text: #ffffff;
  --hero-glass: linear-gradient(158deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .48) 50%, rgba(255, 255, 255, .68));
  --shadow: 0 26px 60px -34px rgba(24, 30, 40, .45);
  --shadow-soft: 0 14px 30px -22px rgba(24, 30, 40, .35);
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body::-webkit-scrollbar,
.app::-webkit-scrollbar { display: none; }

button { font-family: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { display: block; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* ---------- background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(140% 90% at 50% -18%, #1b1f26 0%, transparent 58%),
    radial-gradient(80% 50% at 100% 100%, #10151b 0%, transparent 60%),
    var(--bg);
}

html[data-theme="light"] .bg {
  background:
    radial-gradient(140% 80% at 50% -18%, #ffffff 0%, transparent 60%),
    radial-gradient(80% 50% at 100% 100%, #dfe4ec 0%, transparent 62%),
    var(--bg);
}

.glow {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}

.g1 { width: 420px; height: 420px; top: -150px; right: -130px; background: radial-gradient(circle, rgba(150, 175, 205, .32), transparent 68%); }
.g2 { width: 320px; height: 320px; bottom: 12%; left: -160px; background: radial-gradient(circle, rgba(120, 135, 160, .22), transparent 70%); animation-delay: -7s; }
.g3 { width: 300px; height: 300px; top: 42%; right: -160px; background: radial-gradient(circle, rgba(190, 200, 215, .16), transparent 70%); animation-delay: -13s; }

html[data-theme="light"] .glow { opacity: .5; }
html[data-theme="light"] .g1 { background: radial-gradient(circle, rgba(120, 140, 170, .28), transparent 68%); }
html[data-theme="light"] .g2 { background: radial-gradient(circle, rgba(110, 125, 150, .18), transparent 70%); }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 18px 16px;
  background: linear-gradient(180deg, var(--bg-solid) 0%, var(--bg-solid) 52%, transparent 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  padding: 4px 2px;
}

.brand-mark { width: 24px; height: 24px; }
.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .34em;
  color: var(--text);
  padding-right: 2px;
}

.top-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn,
.avatar-chip {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform .18s ease, background .2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.icon-btn:active,
.avatar-chip:active { transform: scale(.94); }
.icon-btn .ic { width: 19px; height: 19px; color: var(--muted); }

.avatar-chip {
  border: 0;
  background: var(--accent-grad);
  color: var(--btn-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ---------- layout ---------- */

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(76px + env(safe-area-inset-top)) 16px calc(118px + env(safe-area-inset-bottom));
}

.page { animation: pageIn .42s cubic-bezier(.22, .8, .2, 1); }

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}

.intro { padding: 8px 2px 20px; }

.hello {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: .01em;
}

.intro h1 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.intro h1 .silver-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36ch;
}

.sec { margin-top: 30px; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sec-head h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.link {
  background: none;
  border: 0;
  padding: 2px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link .ic { width: 14px; height: 14px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 20px 20px 22px;
  background: var(--hero-glass);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: var(--soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill .ic { width: 13px; height: 13px; }

.hero-index {
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--dim);
  text-transform: uppercase;
}

.hero-word {
  position: relative;
  z-index: 2;
  margin: 26px 0 10px;
  font-size: clamp(56px, 17vw, 84px);
  font-weight: 800;
  line-height: .88;
  letter-spacing: .04em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  position: relative;
  z-index: 2;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 24ch;
}

.hero-actions {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .02em;
}

.orb {
  position: absolute;
  right: -74px;
  top: -64px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .30), transparent 46%),
    conic-gradient(from 200deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .22), rgba(255, 255, 255, .02) 62%);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, .10);
  filter: blur(.4px);
  animation: orb 16s ease-in-out infinite alternate;
}

.orb::before {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
}

html[data-theme="light"] .orb {
  border-color: rgba(20, 25, 35, .12);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .9), transparent 48%),
    conic-gradient(from 200deg, rgba(120, 140, 170, .04), rgba(110, 130, 160, .22), rgba(255, 255, 255, .02) 62%);
  box-shadow: inset 0 0 60px rgba(120, 140, 170, .18);
}
html[data-theme="light"] .orb::before { border-color: rgba(20, 25, 35, .10); }

/* ---------- buttons ---------- */

.btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 17px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .005em;
  transition: transform .16s ease, opacity .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn .ic { width: 17px; height: 17px; }

.btn-primary {
  background: var(--accent-grad);
  color: var(--btn-text);
  box-shadow: 0 16px 34px -18px rgba(255, 255, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
}

html[data-theme="light"] .btn-primary {
  box-shadow: 0 18px 34px -20px rgba(20, 25, 35, .7), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn-glass {
  background: var(--glass);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.btn-ghost {
  background: none;
  border-color: var(--line);
  color: var(--muted);
}

.btn-block { width: 100%; }

/* ---------- categories ---------- */

.rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  margin: 0 -2px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.rail::-webkit-scrollbar { display: none; }

.cat {
  flex: 0 0 auto;
  width: 148px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  scroll-snap-align: start;
  transition: transform .18s ease;
}
.cat:active { transform: scale(.97); }

.cat-ico {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--text);
}
.cat-ico .ic { width: 19px; height: 19px; stroke-width: 1.4; }

.cat-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.cat-sub { display: block; font-size: 10.5px; color: var(--dim); margin-top: 3px; }

/* ---------- product cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.product {
  position: relative;
  padding: 9px 9px 12px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  transition: transform .18s ease, border-color .2s ease;
}
.product:active { transform: scale(.98); }
.product:hover { border-color: var(--line-strong); }

.art {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: linear-gradient(148deg, var(--a1, #262b33), var(--a2, #0d1014));
  color: rgba(255, 255, 255, .9);
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 18% 0%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, .28));
  pointer-events: none;
}
.art > .ic {
  position: relative;
  z-index: 1;
  width: 34%;
  height: 34%;
  stroke-width: 1.1;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35));
}
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.art-star { --a1: #2b3340; --a2: #0f1319; }
.art-crown { --a1: #34302a; --a2: #12110e; }
.art-gift { --a1: #302b3a; --a2: #111016; }
.art-heart { --a1: #3a2a30; --a2: #141012; }
.art-rocket { --a1: #26313d; --a2: #0d1116; }
.art-bear { --a1: #332d26; --a2: #12100e; }
.art-bouquet { --a1: #2a332d; --a2: #0f1311; }
.art-cake { --a1: #3a2d33; --a2: #141013; }
.art-cup { --a1: #3a3324; --a2: #141109; }
.art-sparkle { --a1: #20323a; --a2: #0a1215; }

.badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f4f6f8;
  background: rgba(12, 14, 18, .48);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.p-body { padding: 0 3px; display: flex; flex-direction: column; gap: 6px; }

.p-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.p-foot { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }

.price {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.price .ic { width: 11px; height: 11px; color: var(--dim); }
.price .cur { font-size: 10px; font-weight: 500; color: var(--dim); letter-spacing: .02em; }

.old {
  font-size: 11px;
  color: var(--dim);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.price-lg { font-size: 24px; }
.price-lg .ic { width: 16px; height: 16px; }

/* ---------- promo / trust ---------- */

.panel {
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .1);
  padding: 16px;
}

.promo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  border-top: 1px solid var(--line);
  background: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  width: 100%;
  text-align: left;
}
.promo-row:first-of-type { border-top: 0; }

.thumb {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(148deg, var(--a1, #262b33), var(--a2, #0d1014));
  color: rgba(255, 255, 255, .9);
}
.thumb .ic { width: 20px; height: 20px; stroke-width: 1.3; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.promo-info { flex: 1; min-width: 0; }
.promo-row .chev { width: 15px; height: 15px; color: var(--dim); margin-left: 4px; }
.promo-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-sub { font-size: 11px; color: var(--dim); margin-top: 2px; }

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 28px 0 6px;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.trust-item .ic { width: 17px; height: 17px; color: var(--dim); }
.trust-item span { font-size: 10px; color: var(--dim); line-height: 1.35; max-width: 12ch; }

.foot-note {
  margin: 24px 0 4px;
  text-align: center;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- catalog ---------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 16px;
}
.page-head h1 { font-size: 27px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; }
.counter { font-size: 11px; color: var(--dim); letter-spacing: .03em; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 15px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.search .ic { width: 17px; height: 17px; color: var(--dim); }
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.search input::placeholder { color: var(--dim); }

.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 12px 2px 14px;
  margin: 0 -2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 13px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--glass-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .005em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip .ic { width: 13px; height: 13px; }
.chip.is-active {
  background: var(--accent-grad);
  color: var(--btn-text);
  border-color: transparent;
  box-shadow: 0 10px 22px -14px rgba(255, 255, 255, .4);
}
html[data-theme="light"] .chip.is-active { box-shadow: 0 10px 22px -14px rgba(20, 25, 35, .6); }

/* ---------- cart ---------- */

.cart-list { display: flex; flex-direction: column; gap: 10px; }

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .09);
}

.cart-item .thumb { width: 62px; height: 62px; border-radius: 16px; }
.cart-item .thumb .ic { width: 26px; height: 26px; }

.cart-info { min-width: 0; }
.cart-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.cart-meta { font-size: 11px; color: var(--dim); margin-top: 3px; }
.cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-sum { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.cart-sum .ic { width: 10px; height: 10px; color: var(--dim); }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.stepper button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background .18s ease;
}
.stepper button:active { background: var(--glass-strong); }
.stepper button:disabled { opacity: .35; }
.stepper .ic { width: 13px; height: 13px; }
.stepper .qty { min-width: 20px; text-align: center; font-size: 12px; font-weight: 700; }

.remove-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--dim);
  display: grid;
  place-items: center;
}
.remove-btn .ic { width: 14px; height: 14px; }
.remove-btn:active { color: #e88; }

.summary { margin-top: 16px; }
.sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 0;
}
.sum-row.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 13px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.sum-row.total .ic { width: 13px; height: 13px; color: var(--dim); }
.sum-note { margin-top: 11px; font-size: 11px; color: var(--dim); text-align: center; line-height: 1.5; }

/* ---------- orders ---------- */

.orders { display: flex; flex-direction: column; gap: 10px; }

.order {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .09);
  padding: 15px 16px;
}

.order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-id { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.order-date { font-size: 10.5px; color: var(--dim); margin-top: 3px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 100px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-paid { color: #8fd8b0; }
.status-pending { color: #e0c07a; }
.status-processing { color: #d6c49c; }
.status-fulfilling { color: #c3b7df; }
.status-completed { color: #8fd8b0; }
.status-refunded { color: #9db4d6; }
.status-cancelled { color: var(--dim); }

html[data-theme="light"] .status-paid { color: #2f7d52; }
html[data-theme="light"] .status-pending { color: #8a6516; }
html[data-theme="light"] .status-processing { color: #7a5f24; }
html[data-theme="light"] .status-fulfilling { color: #5b4a86; }
html[data-theme="light"] .status-completed { color: #2f7d52; }
html[data-theme="light"] .status-refunded { color: #3c5a80; }

.sum-note a, .support-card a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.order-items { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.order-item { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.order-total .ic { width: 11px; height: 11px; color: var(--dim); }

/* ---------- profile ---------- */

.profile-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 0 6px; }

.avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 2px;
  background: var(--accent-grad);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .9);
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
}

.profile-name { margin-top: 14px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.profile-user { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.id-chip {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--glass-soft);
  font-size: 11px;
  color: var(--muted);
}
.id-chip b { font-weight: 600; color: var(--text); letter-spacing: .02em; }
.id-chip button {
  border: 0;
  background: none;
  padding: 2px;
  color: var(--dim);
  display: grid;
  place-items: center;
}
.id-chip .ic { width: 13px; height: 13px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 6px; }
.stat {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}
.stat-value { font-size: 22px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 5px; }
.stat-value .ic { width: 14px; height: 14px; color: var(--dim); }
.stat-label { font-size: 10.5px; color: var(--dim); margin-top: 5px; letter-spacing: .04em; text-transform: uppercase; }

.menu {
  margin-top: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}
.menu-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: background .18s ease;
}
.menu-row:first-child { border-top: 0; }
.menu-row:active { background: var(--glass-soft); }
.menu-row .ic { width: 18px; height: 18px; color: var(--muted); }
.menu-row .chev { margin-left: auto; color: var(--dim); width: 15px; height: 15px; }
.menu-row .hint { margin-left: auto; font-size: 11px; color: var(--dim); }

/* ---------- doc / support ---------- */

.doc {
  padding: 4px 2px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  white-space: pre-line;
}
.doc p { margin: 0 0 14px; }
.doc b, .doc strong { color: var(--text); font-weight: 700; }

.support-card { padding: 22px; text-align: center; }
.support-ico {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--text);
}
.support-ico .ic { width: 26px; height: 26px; stroke-width: 1.3; }
.support-card h2 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.support-card p { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.field {
  width: 100%;
  min-height: 132px;
  margin-top: 14px;
  padding: 14px 15px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color .2s ease;
}
.field::placeholder { color: var(--dim); }
.field:focus { border-color: var(--line-strong); }

.support-actions { margin-top: 12px; }

.success-ico {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: var(--btn-text);
}
.success-ico .ic { width: 26px; height: 26px; stroke-width: 1.8; }

/* ---------- sheet ---------- */

.sheet-wrap { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.sheet-wrap.is-open { pointer-events: auto; }

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 6, .58);
  opacity: 0;
  transition: opacity .32s ease;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
html[data-theme="light"] .sheet-backdrop { background: rgba(30, 36, 46, .32); }
.sheet-wrap.is-open .sheet-backdrop { opacity: 1; }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 640px;
  margin: 0 auto;
  max-height: 93dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 32px 32px 0 0;
  border-top: 1px solid var(--line-strong);
  background: var(--sheet-bg);
  backdrop-filter: blur(34px) saturate(180%);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  transform: translateY(102%);
  transition: transform .4s cubic-bezier(.22, .82, .2, 1);
  box-shadow: 0 -30px 80px -24px rgba(0, 0, 0, .85);
  padding-bottom: 0;
}
.sheet-wrap.is-open .sheet { transform: translateY(0); }

.sheet-head { position: relative; padding: 14px 14px 0; }
.sheet-head .badge { top: 26px; left: 26px; }

.sheet-art {
  height: 236px;
  border-radius: 24px;
  aspect-ratio: auto;
  width: 100%;
}
.sheet-art > .ic { width: 64px; height: 64px; }

.sheet-x {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(10, 12, 15, .42);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.sheet-x .ic { width: 16px; height: 16px; }

.sheet-body { padding: 20px 20px 0; }
.sheet-body h2 { margin-top: 7px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.sheet-price { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sheet-desc { margin-top: 14px; font-size: 13.5px; line-height: 1.62; color: var(--muted); }

.info-block {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--glass-soft);
}
.info-block .ic { width: 18px; height: 18px; color: var(--muted); margin-top: 1px; }
.info-block b { font-size: 12px; display: block; margin-bottom: 3px; }
.info-block p { font-size: 12px; color: var(--muted); line-height: 1.5; }

.availability {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.availability::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7fce9f; box-shadow: 0 0 10px rgba(127, 206, 159, .7); }
.availability.off::before { background: var(--dim); box-shadow: none; }

.sheet-cta {
  position: sticky;
  bottom: 0;
  margin-top: 20px;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--sheet-bg) 34%);
}
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.qty-label { font-size: 12px; color: var(--muted); }
.qty-hint { font-size: 11px; color: var(--dim); }
.stepper.lg { padding: 4px; }
.stepper.lg button { width: 30px; height: 30px; }
.stepper.lg .qty { min-width: 26px; font-size: 13px; }
.cta-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 9px; }
.cta-row .btn { min-height: 50px; padding: 0 12px; font-size: 13.5px; }

/* ---------- tab bar ---------- */

.tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 4px;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: var(--tab-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 22px 48px -20px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .12);
}

html[data-theme="light"] .tabbar {
  box-shadow: 0 22px 44px -24px rgba(20, 26, 36, .5), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0 4px;
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .22s ease;
}
.tab .ic { width: 21px; height: 21px; transition: transform .22s ease; }
.tab.is-active { color: var(--text); }
.tab.is-active .ic { transform: translateY(-1px); filter: drop-shadow(0 4px 10px rgba(255, 255, 255, .25)); }
html[data-theme="light"] .tab.is-active .ic { filter: drop-shadow(0 4px 10px rgba(20, 25, 35, .2)); }

.tab-ico { position: relative; display: grid; place-items: center; }
.tab.is-active .tab-ico::before {
  content: "";
  position: absolute;
  inset: -8px -13px;
  border-radius: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, .13), transparent 72%);
}

.tab-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent-grad);
  color: var(--btn-text);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* ---------- toast, skeleton, empty ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(104px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  z-index: 80;
  max-width: min(88vw, 420px);
  padding: 11px 16px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: var(--toast-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.boot { padding-top: 6px; }

.sk {
  border-radius: 22px;
  background: linear-gradient(100deg, var(--soft) 20%, var(--glass-strong) 40%, var(--soft) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
}
.sk-hero { height: 230px; border-radius: 30px; margin-bottom: 20px; }
.sk-line { height: 16px; width: 62%; margin-bottom: 10px; border-radius: 8px; }
.sk-line.short { width: 40%; }
.boot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.sk-card { height: 190px; }

.empty { padding: 42px 20px 30px; text-align: center; }
.empty-ico {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.empty-ico .ic { width: 27px; height: 27px; stroke-width: 1.3; }
.empty h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.empty p { margin: 7px auto 18px; font-size: 12.5px; color: var(--muted); max-width: 30ch; line-height: 1.5; }

.error-box { padding: 48px 20px; text-align: center; }
.error-box p { color: var(--muted); font-size: 13px; margin: 10px 0 20px; }

/* ---------- motion ---------- */

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-24px, 26px, 0) scale(1.08); }
}

@keyframes orb {
  from { transform: rotate(-4deg) scale(1); }
  to { transform: rotate(6deg) scale(1.04); }
}

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@media (min-width: 520px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
