/* Paketchi shop — "sky glass".  Sky blue #0593C6 + white #FCFFFF.
   One full-screen sky canvas (gradient + light blooms + ribbed glass + grain); everything on it is thin glass,
   white light typography and white pill CTAs. Brand-fixed: looks the same in Telegram light and dark themes. */
:root {
  --sky: #0593c6;
  --white: #fcffff;
  --ink: #0593c6;                     /* text on white pills */
  --t1: #ffffff;
  --t2: rgba(255, 255, 255, .78);
  --t3: rgba(255, 255, 255, .58);
  --g-fill: rgba(255, 255, 255, .13);
  --g-fill-2: rgba(255, 255, 255, .20);
  --g-line: rgba(255, 255, 255, .26);
  --g-line-2: rgba(255, 255, 255, .42);
  --hair: rgba(255, 255, 255, .18);
  --rad: 24px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html { background: #0a8fc2; }
body { background: transparent !important; color: var(--t1); }
body { font-family: var(--font); font-size: 15px; font-weight: 400; letter-spacing: -.005em; }
::selection { background: rgba(255,255,255,.35); }

/* ---------- canvas ---------- */
.canvas { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(85% 55% at 0% 0%, rgba(214, 244, 254, .95) 0%, rgba(214, 244, 254, 0) 68%),
    radial-gradient(45% 35% at 100% 30%, rgba(150, 222, 247, .55) 0%, rgba(150, 222, 247, 0) 70%),
    radial-gradient(60% 40% at 15% 70%, rgba(110, 205, 240, .45) 0%, rgba(110, 205, 240, 0) 70%),
    radial-gradient(80% 50% at 60% 55%, rgba(31, 168, 216, .55) 0%, rgba(31, 168, 216, 0) 75%),
    radial-gradient(90% 60% at 100% 100%, rgba(3, 110, 156, .75) 0%, rgba(3, 110, 156, 0) 70%),
    linear-gradient(170deg, #5ec2e9 0%, #26a8da 28%, #0593c6 55%, #0587b8 80%, #067aa6 100%); }
.canvas::before { content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.075) 0 1px, rgba(255,255,255,0) 1px 4px); }
.canvas::after { content: ''; position: absolute; inset: 0; opacity: .28; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding: 0 16px calc(104px + var(--safe-bottom)); }
[hidden] { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; }
.arr { width: 14px; height: 14px; flex: none; }
button { font-family: inherit; }

/* ---------- glass ---------- */
.glass { background: var(--g-fill); border: 1px solid var(--g-line); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.card.glass, .block.glass { -webkit-backdrop-filter: none; backdrop-filter: none; }   /* many items: keep scrolling cheap */

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--white); color: var(--ink); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(2, 70, 105, .18); transition: transform .15s var(--ease), opacity .15s; }
.pill:active { transform: scale(.97); }
.pill:disabled { opacity: .45; }
.pill.sm { height: 36px; padding: 0 15px; font-size: 13.5px; box-shadow: none; }
.pill.wide { width: 100%; height: 54px; font-size: 15.5px; }
.pill.ghost { background: var(--g-fill-2); color: var(--t1); border: 1px solid var(--g-line-2); }
.textlink { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--t2); font-size: 14px; font-weight: 500; cursor: pointer; padding: 6px 2px; }
.textlink:hover { color: var(--t1); }
.textlink.static { cursor: default; }
.round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--t1); cursor: pointer; flex: none; text-decoration: none; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 10px; padding: 16px 0 6px; }
.brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang { display: flex; padding: 3px; border-radius: 999px; }
.lang button { border: 0; background: none; color: var(--t2); font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.lang button.on { background: var(--g-fill-2); color: var(--t1); box-shadow: inset 0 0 0 1px var(--g-line-2); }
.cart-btn { position: relative; width: 42px; height: 42px; border-radius: 14px; border: 0; background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(2, 70, 105, .18); }
.cart-btn i { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--sky); color: #fff;
  font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--white); }
.top.page { padding-bottom: 14px; }
.top.page h1 { flex: 1; font-size: 30px; font-weight: 300; letter-spacing: -.03em; }

/* ---------- hero ---------- */
.hero { padding: 30px 2px 4px; }
.eyebrow { font-size: 12px; color: var(--t2); letter-spacing: .01em; margin-bottom: 14px; }
.hero h1 { font-size: 40px; line-height: 1.04; font-weight: 300; letter-spacing: -.035em; }
.lead { font-size: 13.5px; line-height: 1.55; color: var(--t2); margin-top: 14px; max-width: 32ch; }
.panel { border-radius: 20px; padding: 12px; margin-top: 24px; }
.panel-k { font-size: 11.5px; color: var(--t2); margin: 0 2px 8px; }
.panel-row { display: flex; align-items: baseline; gap: 10px; background: var(--g-fill); border: 1px solid var(--hair); border-radius: 14px; padding: 11px 13px; font-size: 13.5px; }
.panel-row span:first-child { font-weight: 600; }
.panel-row span:nth-child(2) { color: var(--t2); flex: 1; }
.panel-row b { font-weight: 600; }
.cta-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.feats { display: flex; justify-content: space-between; gap: 8px; margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 11.5px; color: var(--t2); }

/* ---------- sticky search + nav ---------- */
.stick { position: sticky; top: 0; z-index: 10; margin: 22px -16px 0; padding: 10px 16px 12px;
  background: linear-gradient(180deg, rgba(6, 140, 190, .42), rgba(6, 140, 190, .18)); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--hair); }
.search { position: relative; display: block; border-radius: 999px; }
.search input { width: 100%; height: 46px; border: 0; background: none; color: var(--t1); padding: 0 46px 0 46px; font-size: 15px; outline: none; font-family: inherit; }
.search input::placeholder { color: var(--t3); }
.search input::-webkit-search-cancel-button { display: none; }
.search > .ico { position: absolute; left: 16px; top: 13px; color: var(--t2); }
.search .x { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--t2); display: grid; place-items: center; cursor: pointer; }
.nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--t2);
  font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; flex: none; transition: background .2s, color .2s; }
.nav button .ico { width: 15px; height: 15px; }
.nav button.on { background: var(--g-fill-2); color: var(--t1); box-shadow: inset 0 0 0 1px var(--g-line-2); }

/* ---------- catalog ---------- */
.group { margin-top: 26px; }
.g-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 12px; }
.g-head h2 { font-size: 22px; font-weight: 300; letter-spacing: -.025em; }
.g-head span { font-size: 12px; color: var(--t3); }
.cards { display: grid; gap: 10px; }
.card { display: flex; gap: 13px; align-items: center; border-radius: var(--rad); padding: 12px 12px 12px 12px; transition: background .2s, border-color .2s; }
.card.in { background: var(--g-fill-2); border-color: var(--g-line-2); }
.card.off { opacity: .5; }
.pic { width: 76px; height: 76px; border-radius: 18px; flex: none; overflow: hidden; display: grid; place-items: center; cursor: pointer; padding: 0;
  background: linear-gradient(150deg, rgba(255,255,255,.30), rgba(255,255,255,.10)); border: 1px solid var(--g-line); color: rgba(255,255,255,.92); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic.mini { width: 52px; height: 52px; border-radius: 14px; }
.info { flex: 1; min-width: 0; }
.meta { font-size: 10.5px; color: var(--t3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.name { font-size: 14.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.price { font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin-top: 5px; white-space: nowrap; }
.price small { font-size: 11.5px; font-weight: 400; color: var(--t2); letter-spacing: 0; }
.tier { display: inline-flex; margin-top: 6px; margin-right: 4px; font-size: 11.5px; color: var(--t1); border: 1px solid var(--g-line-2); border-radius: 999px; padding: 2px 9px; }
.tier.on { background: var(--white); color: var(--ink); border-color: transparent; font-weight: 600; }
.tier.warn { border-color: rgba(255, 214, 140, .7); color: #ffe2a8; }
.side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; align-self: stretch; flex: none; }
.fav { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--t2); line-height: 0; }
.fav .ico { width: 19px; height: 19px; }
.fav.on { color: var(--t1); }
.out { font-size: 12px; color: var(--t2); }
.step { display: flex; align-items: center; height: 36px; border-radius: 999px; background: var(--white); color: var(--ink); overflow: hidden; }
.step button { width: 34px; height: 36px; border: 0; background: none; color: inherit; font-size: 19px; font-weight: 400; cursor: pointer; }
.step input { width: 40px; height: 36px; border: 0; background: none; color: inherit; text-align: center; font-weight: 600; font-size: 15px; outline: none; font-family: inherit; -moz-appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.empty { border-radius: var(--rad); padding: 36px 22px; margin-top: 20px; text-align: center; color: var(--t2); display: grid; justify-items: center; gap: 12px; }
.empty .ico { width: 30px; height: 30px; color: var(--t1); }
.empty b { color: var(--t1); font-weight: 600; }

/* ---------- loading ---------- */
.loading { padding-top: 60px; display: grid; gap: 14px; }
.sk { height: 14px; width: 40%; border-radius: 999px; background: rgba(255,255,255,.16); animation: pulse 1.4s ease-in-out infinite; }
.sk.w60 { width: 70%; height: 38px; border-radius: 14px; }
.sk.big { width: 55%; height: 38px; border-radius: 14px; }
.sk.card { width: 100%; height: 100px; border-radius: var(--rad); margin-top: 10px; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- bottom bar ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 14px 16px calc(14px + var(--safe-bottom)); pointer-events: none; }
.bar button { pointer-events: auto; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 528px; margin: 0 auto; height: 58px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; font-size: 15px;
  box-shadow: 0 14px 34px rgba(2, 60, 92, .32), 0 2px 6px rgba(2, 60, 92, .12); }
.bar button span { flex: 1; text-align: left; font-weight: 500; }
.bar button b { font-weight: 700; letter-spacing: -.01em; }
.bar button:disabled { opacity: .55; }
.bar button:active { transform: scale(.985); }

/* ---------- cart ---------- */
.block { border-radius: var(--rad); padding: 16px; margin-top: 12px; }
.label { font-size: 12px; color: var(--t2); margin: 0 2px 12px; }
.line { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--hair); }
.label + .line { border-top: 0; padding-top: 0; }
.line .name { -webkit-line-clamp: 2; }
.soft { color: var(--t2); line-height: 1.5; }
.sm { font-size: 12.5px; }
.line .soft { margin-top: 2px; }
.line-ctl { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.line-ctl b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.hint { display: inline-flex; margin-top: 8px; font-size: 12px; color: var(--t1); background: var(--g-fill); border: 1px dashed var(--g-line-2); border-radius: 999px; padding: 4px 11px; cursor: pointer; text-align: left; }
.err { color: #ffd5cf; font-size: 12.5px; margin-top: 4px; }
.notice { margin-top: 12px; border-radius: 18px; padding: 12px 15px; font-size: 13px; background: rgba(255, 220, 160, .18); border: 1px solid rgba(255, 220, 160, .5); color: #fff3db; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 20px; background: var(--g-fill); border: 1px solid var(--hair); }
.seg button { display: flex; align-items: center; gap: 9px; border: 0; border-radius: 16px; background: none; color: var(--t2); padding: 11px 12px; text-align: left; cursor: pointer; font-size: 14px; font-weight: 500; }
.seg button small { display: block; font-size: 11.5px; font-weight: 400; opacity: .85; }
.seg button.on { background: var(--white); color: var(--ink); box-shadow: 0 4px 14px rgba(2,70,105,.15); }
.stack { display: grid; gap: 10px; margin-top: 10px; }
.block .label + .stack { margin-top: 0; }
.ghostbtn { display: flex; align-items: center; justify-content: center; gap: 9px; height: 50px; border-radius: 999px; border: 1px dashed var(--g-line-2); background: var(--g-fill);
  color: var(--t1); font-size: 14px; font-weight: 500; cursor: pointer; }
.okrow { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 12px 14px; background: var(--g-fill-2); border: 1px solid var(--g-line-2); font-size: 14px; font-weight: 500; }
.okrow span { flex: 1; min-width: 0; }
.okrow button { border: 0; background: none; color: var(--t2); cursor: pointer; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; display: grid; place-items: center; }
.okrow button .ico { width: 16px; height: 16px; }
.field { width: 100%; height: 50px; border-radius: 16px; border: 1px solid var(--g-line); background: var(--g-fill); color: var(--t1); padding: 0 16px; font-size: 15px; outline: none; font-family: inherit; }
.field::placeholder { color: var(--t3); }
.field:focus { border-color: rgba(255,255,255,.75); background: var(--g-fill-2); }
textarea.field { height: 76px; padding: 13px 16px; resize: none; line-height: 1.45; }
.addr { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.opt { display: flex; align-items: center; gap: 12px; border-radius: 16px; border: 1px solid var(--hair); background: var(--g-fill); color: var(--t1); padding: 12px 14px;
  text-align: left; width: 100%; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.opt small { display: block; font-size: 12px; font-weight: 400; color: var(--t2); margin-top: 1px; }
.opt .dot { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--g-line-2); flex: none; }
.opt.on { background: var(--white); color: var(--ink); border-color: transparent; }
.opt.on small { color: rgba(5, 147, 198, .75); }
.opt.on .dot { border: 6px solid var(--ink); }
.textlink.add { margin-top: 8px; }
.totals .row { display: flex; justify-content: space-between; padding: 5px 2px; color: var(--t2); font-size: 14px; }
.totals .total { color: var(--t1); padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--hair); font-size: 15px; align-items: baseline; }
.totals .total b { font-size: 26px; font-weight: 300; letter-spacing: -.03em; }

/* ---------- done ---------- */
.done { min-height: calc(100vh - 40px); display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 40px 6px 20px; }
.check { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.done .eyebrow { margin-bottom: 8px; }
.done h1 { font-size: 34px; font-weight: 300; letter-spacing: -.035em; line-height: 1.1; }
.done .tot { font-size: 22px; font-weight: 600; margin-top: 10px; letter-spacing: -.02em; }
.done .lead { margin: 12px auto 0; }
.pay { text-align: center; margin-top: 22px; }
.pay .label { text-align: center; color: var(--t1); font-size: 13.5px; }
.qrtile { background: #fff; border-radius: 20px; padding: 14px; width: 230px; max-width: 100%; margin: 4px auto 12px; }
.qrtile img { width: 100%; display: block; }
.cardno { font-size: 21px; font-weight: 500; letter-spacing: .08em; margin-top: 4px; }
.pay .pill { margin: 12px 0 6px; }
.cta-col { display: grid; gap: 8px; justify-items: center; margin-top: 26px; }

/* ---------- sheets (frosted) ---------- */
.sheet-root .back { position: fixed; inset: 0; background: rgba(2, 40, 62, .35); z-index: 40; animation: fade .2s; }
.sheet-root .sh { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; color: var(--t1);
  background: linear-gradient(180deg, rgba(40, 165, 214, .78), rgba(5, 130, 180, .88)); -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid var(--g-line); border-bottom: 0; border-radius: 30px 30px 0 0; padding: 10px 18px calc(18px + var(--safe-bottom));
  max-height: 88vh; overflow-y: auto; animation: up .3s var(--ease); }
.sh .grip { width: 38px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.45); margin: 0 auto 14px; }
.sh h2 { font-size: 24px; font-weight: 300; letter-spacing: -.03em; line-height: 1.15; margin: 2px 0 6px; }
.sh .soft { font-size: 13.5px; margin-bottom: 4px; }
.sh .bigpic { width: 100%; aspect-ratio: 4 / 3; max-height: 300px; border-radius: 22px; display: grid; place-items: center; overflow: hidden; margin-bottom: 16px;
  background: linear-gradient(150deg, rgba(255,255,255,.30), rgba(255,255,255,.08)); border: 1px solid var(--g-line); color: #fff; }
.sh .bigpic img { width: 100%; height: 100%; object-fit: cover; }
.sh .label { margin-top: 16px; }
.tiers { display: grid; gap: 6px; margin-bottom: 18px; }
.tiers div { display: flex; justify-content: space-between; border-radius: 14px; padding: 11px 14px; background: var(--g-fill); border: 1px solid var(--hair); font-size: 14px; }
.tiers div b { font-weight: 600; }
.tiers div.on { background: var(--white); color: var(--ink); border-color: transparent; }
.sh-head { display: flex; gap: 12px; align-items: center; }
.sh-head h2 { font-size: 20px; }
.sh-head .price { margin-top: 0; }
.vlist { border-radius: 18px; background: var(--g-fill); border: 1px solid var(--hair); padding: 2px 12px; margin-bottom: 16px; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 15px; font-weight: 500; }
.vrow:first-child { border-top: 0; }
.vrow span { flex: 1; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* toast & dev switch */
.toast { border-radius: 999px; background: rgba(2, 48, 72, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; font-weight: 500; font-size: 14px; }
.toast.error { background: rgba(170, 40, 35, .9); }
.dev-switch { top: 6px; right: 8px; }
.dev-switch select { background: rgba(255,255,255,.2); color: #fff; border: 1px solid var(--g-line); border-radius: 999px; padding: 4px 10px; font-size: 11px; box-shadow: none; }
.dev-switch select option { color: #0e2633; }
html.has-dev #app { padding-top: 30px; }
html.has-dev .stick { top: 30px; }
