:root{--ink:#fff;--mute:rgba(255,255,255,.68);--glass:rgba(255,255,255,.13);--glass2:rgba(255,255,255,.22);--edge:rgba(255,255,255,.3);--deep:#3b1d8f;--accent:linear-gradient(135deg,#a283ff,#e04fa5);--shadow:0 24px 60px rgba(20,5,70,.45);color-scheme:dark}
*{box-sizing:border-box;margin:0}
html,body{height:100%}
body{background:#14082e;color:var(--ink);font-family:"Plus Jakarta Sans","Segoe UI",system-ui,-apple-system,sans-serif;display:flex;justify-content:center;align-items:center;-webkit-tap-highlight-color:transparent}
button,input,select,textarea{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer}
:focus-visible{outline:3px solid #fff;outline-offset:2px}
svg{display:block}a{color:inherit}
option{color:#1d1236}
.app{position:relative;width:100%;max-width:430px;height:100dvh;overflow:hidden;background:linear-gradient(160deg,#2a0f72 0%,#5a2bc4 42%,#b43ea0 100%)}
.app::before,.app::after{content:"";position:absolute;border-radius:50%;filter:blur(60px);pointer-events:none}
.app::before{width:300px;height:300px;background:#6ae4ff;opacity:.35;top:-80px;right:-100px}
.app::after{width:340px;height:340px;background:#ff6ab8;opacity:.4;bottom:80px;left:-140px}
.app.wide{max-width:1000px}
@media(min-width:600px){.app{height:880px;max-height:calc(100dvh - 32px);border-radius:46px;box-shadow:var(--shadow);border:1px solid var(--edge)}}
main{position:relative;z-index:1;height:100%;overflow-y:auto;padding-bottom:112px;scrollbar-width:none}
main::-webkit-scrollbar{display:none}
h1,h2,h3{letter-spacing:-.02em;line-height:1.1}
.mute,small{color:var(--mute)}
/* glass surfaces */
.g,.card,.line,.sum,.ord,.perks div,.specs li,.opt,.kpi,.panel,.mini,.sheet,.in,.search,.chip,.sw button,.round,.qty button,.row{background:var(--glass);border:1px solid var(--edge);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 8px 24px rgba(20,5,70,.18)}
/* tabs */
#tabs{position:absolute;left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));background:rgba(30,12,80,.45);border:1px solid var(--edge);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-radius:30px;display:flex;justify-content:space-around;padding:8px;box-shadow:0 12px 34px rgba(10,0,50,.45);z-index:5}
#tabs button{position:relative;display:grid;justify-items:center;gap:3px;padding:8px 12px;border-radius:22px;font-size:11px;color:var(--mute);min-width:58px}
#tabs svg{width:22px;height:22px}
#tabs button[aria-current=page]{background:rgba(255,255,255,.9);color:var(--deep);font-weight:700}
.badge{position:absolute;top:2px;right:8px;background:#ff4f7b;color:#fff;border-radius:99px;font-size:10px;min-width:17px;height:17px;display:grid;place-items:center;padding:0 4px;font-weight:700;font-style:normal}
/* hero */
.hero{padding:calc(24px + env(safe-area-inset-top,0px)) 24px 24px}
.pill{display:inline-block;background:var(--glass2);border:1px solid var(--edge);backdrop-filter:blur(12px);padding:9px 16px;border-radius:99px;font-size:13px}
.hero-art{position:relative;height:340px;margin:6px -24px 0}
.hero-art::before{content:"";position:absolute;inset:10px 34px 40px;border-radius:44% 56% 50% 50%;background:linear-gradient(145deg,rgba(255,255,255,.28),rgba(255,255,255,.04));border:1px solid var(--edge);backdrop-filter:blur(8px)}
.hero-art img{position:absolute;filter:drop-shadow(0 18px 24px rgba(10,0,50,.5))}
.h1{width:270px;left:62px;top:0;transform:rotate(-7deg)}.h2{width:165px;right:6px;top:160px;transform:rotate(9deg)}.h3{width:140px;left:6px;top:205px}
.hero h1{font-size:clamp(44px,13vw,58px);font-weight:700}
.hero p{margin-top:12px;color:var(--mute)}
.cta,.btn{display:block;background:var(--accent);color:#fff;font-weight:700;padding:16px 30px;border-radius:99px;text-align:center;text-decoration:none;box-shadow:0 10px 28px rgba(224,79,165,.4),inset 0 1px 0 rgba(255,255,255,.45)}
.cta{display:inline-block;margin-top:22px}
.btn{width:100%}
.btn.alt{background:var(--glass2);border:1px solid var(--edge);box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.btn.wa{background:linear-gradient(135deg,#27c36b,#128a4a);box-shadow:0 10px 28px rgba(30,180,100,.35)}
.btn:disabled{opacity:.45;box-shadow:none;cursor:not-allowed}
.btn.sm{width:auto;padding:10px 18px;font-size:14px;display:inline-block}
.perks{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:6px 20px}
.perks div{border-radius:18px;padding:12px 8px;font-size:12px;text-align:center;color:var(--mute);line-height:1.35}
.perks b{display:block;color:#fff;font-size:13px;margin-bottom:2px}
.sec{padding:22px 20px 0}.sec h2{font-size:22px;margin-bottom:14px}
.foot{text-align:center;padding:26px 0 6px;font-size:12px}.foot a{color:var(--mute)}
/* shop */
.top{display:flex;gap:12px;padding:calc(20px + env(safe-area-inset-top,0px)) 20px 8px}
.search{flex:1;display:flex;gap:10px;align-items:center;border-radius:99px;padding:13px 18px}
.search svg{width:20px;height:20px;color:var(--mute)}
.search input,.in{background:transparent;border:0;outline:0;width:100%}
.sheet{border-radius:34px;margin:14px 14px 0;padding:24px 18px 26px;min-height:60vh}
.sheet h2{font-size:34px}
.chips{display:flex;gap:10px;overflow-x:auto;margin:18px -18px;padding:0 18px;scrollbar-width:none}
.chip{border-radius:99px;padding:9px 20px;white-space:nowrap;font-size:14px}
.chip[aria-pressed=true]{background:rgba(255,255,255,.92);color:var(--deep);font-weight:700}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(min-width:800px){.app.wide .grid{grid-template-columns:repeat(3,1fr)}}
.card{position:relative;border-radius:24px}
.card .open{width:100%;padding:18px 10px 16px;display:grid;justify-items:center;gap:4px;text-align:center}
.card img{width:112px;height:112px;object-fit:contain;filter:drop-shadow(0 10px 12px rgba(10,0,50,.35))}
.card b{font-size:14px;margin-top:4px}.card span{font-size:13px;color:var(--mute)}
.soldout{position:absolute;top:12px;left:12px;font-size:11px;font-style:normal;background:rgba(0,0,0,.45);padding:4px 9px;border-radius:99px}
.save{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:var(--mute);z-index:1}
.save svg{width:18px;height:18px}.save.on{color:#ff6b93}.save.on svg,.round.on svg{fill:currentColor}
.row-scroll{display:grid;grid-template-columns:repeat(6,150px);gap:12px;overflow-x:auto;margin:0 -20px;padding:0 20px 6px;scrollbar-width:none}
.empty{color:var(--mute);text-align:center;padding:40px 10px;grid-column:1/-1;line-height:1.6}
/* detail */
.dhd{padding:calc(20px + env(safe-area-inset-top,0px)) 20px 22px}
.bar{display:flex;justify-content:space-between;align-items:center;gap:10px}
.round{width:42px;height:42px;border-radius:50%;display:grid;place-items:center}
.round svg{width:20px;height:20px}.round.on{color:#ff6b93}
.big{display:grid;place-items:center;height:280px}.big img{width:290px;height:290px;object-fit:contain;filter:drop-shadow(0 26px 24px rgba(10,0,50,.45))}
.sw{display:flex;gap:12px;justify-content:center;min-height:46px}
.sw button{width:46px;height:46px;border-radius:15px;display:grid;place-items:center}
.sw i{width:22px;height:22px;border-radius:50%;display:block;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}
.sw button[aria-pressed=true]{box-shadow:0 0 0 2px #fff}
.info{margin:0 14px;border-radius:30px;padding:24px 22px}.info h2{font-size:30px}.info p{margin-top:10px;line-height:1.55}
.specs{list-style:none;padding:0;margin-top:14px;display:grid;gap:8px;font-size:14px}.specs li{padding:10px 14px;border-radius:14px}
.qrow{display:flex;justify-content:space-between;align-items:center;margin:22px 0 16px}
.qty{display:flex;align-items:center;gap:12px;font-weight:700}
.qty button{width:34px;height:34px;border-radius:50%;font-size:18px;line-height:1}
.price{font-size:24px;font-weight:700}
.tag{display:inline-block;font-size:12px;background:var(--glass2);padding:4px 10px;border-radius:99px;margin:0 6px 8px 0}
.low{color:#ffd37a}
/* pages */
.page{padding:calc(24px + env(safe-area-inset-top,0px)) 20px 10px}
.page>h2,.page>.bar+h2{font-size:32px;margin-bottom:18px}
.line{display:flex;gap:12px;align-items:center;border-radius:22px;padding:12px;margin-bottom:12px}
.line img{width:70px;height:70px;object-fit:contain;border-radius:16px;padding:6px;background:rgba(255,255,255,.12)}
.line .t{flex:1;min-width:0}.line b{display:block;font-size:15px}
.rm{color:var(--mute);font-size:12px;text-decoration:underline}
.sum{border-radius:22px;padding:16px;margin:16px 0}
.sum div{display:flex;justify-content:space-between;padding:5px 0;color:var(--mute)}
.sum .tot{color:#fff;font-weight:700;font-size:19px;border-top:1px solid var(--edge);margin-top:6px;padding-top:12px}
.mini{border-radius:22px;padding:8px 14px;margin-bottom:6px}
.mini div{display:flex;align-items:center;gap:10px;padding:6px 0;font-size:14px}.mini img{width:40px;height:40px;object-fit:contain}.mini span{margin-left:auto}
label.f{display:block;font-size:13px;color:var(--mute);margin:14px 0 6px}
.in{border-radius:16px;padding:13px 14px;background:var(--glass);border:1px solid var(--edge)}
.in:focus{border-color:#fff}.in::placeholder{color:rgba(255,255,255,.45)}
.opts{display:grid;gap:8px}
.opt{display:flex;gap:10px;align-items:center;border-radius:16px;padding:13px 14px;cursor:pointer}
.opt input{accent-color:#e04fa5;width:18px;height:18px}.opt span{flex:1}
.err{color:#ffb3c4;font-size:14px;margin-top:12px;min-height:20px}
.done{text-align:center;padding-top:calc(50px + env(safe-area-inset-top,0px))}
.ok{width:84px;height:84px;border-radius:50%;background:var(--accent);display:grid;place-items:center;margin:0 auto 18px;font-size:42px;box-shadow:0 12px 30px rgba(224,79,165,.5)}
.done p{color:var(--mute);line-height:1.6;margin:10px 0}.done .btn{margin-top:12px}
.ord{border-radius:24px;padding:16px;margin-bottom:14px}
.ord header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.st{font-size:12px;padding:4px 11px;border-radius:99px;background:var(--glass2)}
.st.Confirmed{background:rgba(110,190,255,.45)}.st.Delivered{background:rgba(90,220,150,.45)}.st.Cancelled{background:rgba(255,90,120,.45)}
.ord ul{list-style:none;padding:0;color:var(--mute);font-size:14px;line-height:1.7;margin-top:6px}
.ord footer{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-weight:700;gap:10px;flex-wrap:wrap}
.ord select{background:var(--glass2);border:1px solid var(--edge);border-radius:99px;padding:7px 12px;font-weight:400}
.toast{position:absolute;top:calc(16px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);background:rgba(255,255,255,.95);color:var(--deep);padding:11px 20px;border-radius:99px;font-size:14px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .2s;z-index:20;white-space:nowrap}
.toast.on{opacity:1}
/* admin */
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
@media(min-width:800px){.kpis{grid-template-columns:repeat(4,1fr)}.ad{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ad .full{grid-column:1/-1}.ol{display:grid;grid-template-columns:1fr 1fr;gap:14px}}
.kpi{border-radius:22px;padding:16px}.kpi small{display:block;font-size:12px}.kpi b{font-size:22px;display:block;margin-top:4px}
.panel{border-radius:24px;padding:18px;margin-bottom:16px}.panel h3{font-size:17px;margin-bottom:12px}
.bars{display:flex;gap:8px;align-items:flex-end;height:130px}
.bars div{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;font-size:11px}
.bars i{width:100%;border-radius:8px 8px 3px 3px;background:var(--accent);display:block}
.li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--edge);font-size:14px}.li:last-child{border:0}
.row{display:flex;gap:12px;align-items:center;border-radius:20px;padding:10px 12px;margin-bottom:10px}
.row img{width:54px;height:54px;object-fit:contain}.row .t{flex:1;min-width:0}.row b{display:block;font-size:15px}
.row .acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.row .qty button{width:30px;height:30px}
.lk{font-size:13px;text-decoration:underline;color:var(--mute)}.lk.del{color:#ffb3c4}
.pv{width:130px;height:130px;object-fit:contain;margin:6px auto;display:block}
.hd{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.hd h2{font-size:30px;margin:0}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* real photos: white tile, photo background blends away */
.phw{display:block;background:#fff;border-radius:20px;isolation:isolate;overflow:hidden;box-shadow:0 10px 24px rgba(10,0,50,.3)}
.phw img{width:100%!important;height:100%!important;object-fit:contain;mix-blend-mode:multiply;filter:none!important;display:block}
.card .phw{width:128px;height:128px}
.big .phw{width:280px;height:280px;border-radius:30px}
.line .phw{width:70px;height:70px;flex:none}.mini .phw{width:40px;height:40px;flex:none;border-radius:10px}.row .phw{width:54px;height:54px;flex:none;border-radius:14px}
.hero-photo{margin:16px 0 4px}.hero-photo .phw{width:min(300px,82%);aspect-ratio:1;height:auto;margin:0 auto;border-radius:40px}.hero-photo .phw img{height:100%}
.kick{display:block;margin-top:6px;font-size:14px;color:#fff;opacity:.9}
.avatar{width:46px;height:46px;flex:none}
.ttl{display:flex;justify-content:space-between;align-items:flex-start}
.buy{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.addpill{display:flex;gap:8px;align-items:center;background:var(--accent);color:#fff;font-weight:700;padding:14px 22px;border-radius:99px;box-shadow:0 10px 26px rgba(224,79,165,.4),inset 0 1px 0 rgba(255,255,255,.45)}
.addpill svg{width:18px;height:18px}.addpill:disabled{opacity:.45;box-shadow:none}
#pill{position:absolute;left:0;right:0;bottom:calc(100px + env(safe-area-inset-bottom,0px));display:flex;justify-content:center;z-index:6;pointer-events:none}
.cartpill{pointer-events:auto;display:flex;gap:12px;align-items:center;background:rgba(40,16,110,.85);border:1px solid var(--edge);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:#fff;font-weight:700;padding:13px 24px;border-radius:99px;box-shadow:0 10px 28px rgba(10,0,50,.5)}
.cartpill svg{width:18px;height:18px}

/* photo tile */
.phw{display:grid!important;place-items:center;text-align:center;font-size:13px;font-weight:600;color:#3b1d8f;padding:0}
.card img{width:124px;height:124px}
#tabs.cust{right:68px}
#tabs button{min-width:52px;padding:8px 10px}
#lock{position:absolute;right:14px;bottom:calc(31px + env(safe-area-inset-bottom,0px));width:46px;height:46px;border-radius:50%;display:grid;place-items:center;z-index:6;opacity:.85;background:rgba(30,12,80,.45);border:1px solid var(--edge);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:0 12px 34px rgba(10,0,50,.45)}
#lock[hidden]{display:none}
#lock svg{width:20px;height:20px;color:#fff}
