:root{
  --bg1:#0b0206;
  --bg2:#d51831;
  --bg3:#5a0715;
  --panel:#1a0711;
  --card:#64071e;
  --card2:#2f1023;
  --text:#f7f5fa;
  --muted:#e7c9d5;
  --soft:#c99bae;
  --line:rgba(255,255,255,.08);
  --blue1:#6ac0ff;
  --blue2:#4aa3f4;
  --darkBlue:#26354c;
  --accent:#ef304d;
  --accent2:#ffe095;
  --shadow:0 16px 44px rgba(0,0,0,.34);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:radial-gradient(circle at 50% 0,#f2384f 0,#8d0b22 25%,#2a0310 52%,#0b0206 100%);min-height:100%}
body::before{content:"";position:fixed;inset:0;background:
  linear-gradient(90deg,transparent 0 11%,rgba(0,0,0,.14) 12% 14%,transparent 15% 32%,rgba(0,0,0,.14) 33% 35%,transparent 36% 53%,rgba(0,0,0,.14) 54% 56%,transparent 57% 100%),
  radial-gradient(circle at 50% 25%,rgba(255,255,255,.07),transparent 16%),
  radial-gradient(circle at 50% 45%,rgba(255,255,255,.04),transparent 18%);
pointer-events:none;mix-blend-mode:multiply;opacity:.92}
button{font:inherit}
.app{max-width:760px;margin:0 auto;min-height:100vh;padding:8px 16px calc(86px + env(safe-area-inset-bottom));position:relative}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.softbtn{border:0;background:rgba(215,187,206,.33);color:var(--soft);padding:11px 16px;border-radius:18px;font-weight:800;backdrop-filter:blur(8px);box-shadow:var(--shadow)}
.icononly{min-width:56px}
.brandPill{padding:8px 16px;border-radius:999px;background:#1890ff;color:#fff;font-weight:900;box-shadow:var(--shadow)}
.segmentTop{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:14px 0 16px}
.segment{position:relative;border:0;border-radius:20px;padding:16px 10px;background:linear-gradient(90deg,#fff 0 28%,#090909 28% 72%,#fff 72%);color:#fff;font-weight:1000;box-shadow:var(--shadow)}
.segment::before{content:"";position:absolute;inset:4px;border-radius:16px;background:linear-gradient(90deg,#f7f7f7 0 26%,#121212 26% 74%,#f7f7f7 74%);z-index:0}
.segment span,.segment{overflow:hidden}
.segment{display:flex;align-items:center;justify-content:center;text-align:center}
.segment.active::after{content:"";position:absolute;inset:0;border-radius:20px;box-shadow:0 0 0 2px rgba(255,255,255,.08) inset}
.segment[data-top="home"]::before{background:linear-gradient(90deg,#281018,#551025,#281018)}
.segment > *{position:relative;z-index:1}
.content{display:block}.view{display:none}.view.active{display:block}
.productGrid,.miniCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gamesGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ordersList,.zonesList,.feed{display:grid;grid-template-columns:1fr;gap:12px}
#popularityGrid,#popularityCards{grid-template-columns:repeat(2,minmax(0,1fr))}
.raffleMini{min-height:88px;padding:16px 18px;border-radius:22px;background:linear-gradient(90deg,#4f2227,#1c1417 40%,#6d4f53);box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden;margin-bottom:14px}
.raffleMini::after{content:"";position:absolute;right:14px;top:10px;width:130px;height:68px;border-radius:18px;background:linear-gradient(90deg,#7f2f3b,#d8d3cf,#979bb7)}
.raffleMini .rm1{font-size:14px;font-weight:1000;letter-spacing:.04em}.raffleMini .rm2{font-size:12px;color:var(--muted);margin-top:4px;font-weight:700}
.menuCard,.infoCard{min-height:150px;border-radius:24px;padding:18px 14px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;box-shadow:var(--shadow);background:linear-gradient(180deg,#5f031c,#34020f)}
.menuCard .mcIcon,.infoCard .mcIcon{font-size:52px;align-self:flex-end;line-height:1;opacity:.95}
.menuCard .mcTitle,.infoCard .mcTitle{font-size:20px;font-weight:1000;line-height:1.05;white-space:pre-line}
.menuCard .mcSub{color:var(--muted);font-weight:800}
.menuCard .openBtn{border:0;border-radius:18px;background:linear-gradient(180deg,#4daeff,#3d93e8);color:#fff;padding:12px 16px;font-weight:900;align-self:flex-start}
.productCard{position:relative;overflow:hidden;min-height:198px;border-radius:24px;padding:14px 12px 58px;background:linear-gradient(180deg,#62071e,#410617);box-shadow:var(--shadow)}
.productCard::after{content:"";position:absolute;left:0;right:0;bottom:0;height:50px;background:linear-gradient(180deg,#5cb3ff,#4aa1f0)}
.productCard.discount::before{content:attr(data-badge);position:absolute;right:8px;bottom:32px;background:#ff4f55;color:#fff;padding:6px 8px;border-radius:10px;font-size:13px;font-weight:1000;z-index:2}
.prodIcon{height:64px;display:flex;align-items:center;justify-content:center;font-size:44px;margin-bottom:6px}
.prodName{font-size:16px;font-weight:1000;line-height:1.2;text-align:center;min-height:38px}
.prodOld{font-size:13px;text-decoration:line-through;color:#d6b8c1;text-align:center;margin-top:8px}
.prodPrice{font-size:18px;font-weight:1000;text-align:center;margin-top:4px}
.prodBtn{position:absolute;left:0;right:0;bottom:0;height:50px;border:0;background:transparent;color:#fff;font-size:17px;font-weight:900}
.switchLine{display:flex;gap:8px;margin-bottom:14px}.switchWide .subtab{padding:16px 12px}.subtab,.annTab{flex:1;border:0;border-radius:20px;padding:14px 12px;background:rgba(105,2,29,.78);color:#f3d7dd;font-weight:900;box-shadow:var(--shadow)}
.subtab.active,.annTab.active{background:linear-gradient(90deg,#080709,#0c0c0c,#760214);outline:2px solid rgba(247,58,68,.65)}
.ucHero{padding:18px 18px 14px;border-radius:28px;background:linear-gradient(180deg,rgba(77,196,255,.20),rgba(103,9,26,.35));box-shadow:var(--shadow);text-align:center;margin-bottom:14px}
.ucBubble{width:210px;height:210px;margin:0 auto 8px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 40%,#cad1ff 0,#9eb5ff 34%,#5f87db 64%,rgba(95,135,219,.18) 65%);box-shadow:0 0 0 8px rgba(255,255,255,.05),0 0 0 16px rgba(255,255,255,.03)}
.ucBadge{width:150px;height:92px;border-radius:18px;background:#101010;border:6px solid #d9cfb5;color:#efe8d5;display:flex;align-items:center;justify-content:center;font-size:54px;font-weight:1000;transform:rotate(-10deg)}
.ucHeroTitle{font-size:28px;font-weight:1000;margin-top:10px}.ucHeroText{font-size:18px;line-height:1.25;color:#f0dde4;max-width:92%;margin:10px auto 0}
.userAgreement{text-align:center;color:rgba(120,28,44,.78);font-size:20px;font-weight:900;padding:22px 0 6px}
.vipHeader{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(255,255,255,.02));padding:16px;border-radius:24px;box-shadow:var(--shadow);margin-bottom:12px}
.vipLogo{width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,#ffdb76,#d79b27);color:#2d1600;font-weight:1000;display:flex;align-items:center;justify-content:center}.vipTitle{font-size:18px;font-weight:1000;font-style:italic}.vipBalance{padding:10px 12px;border-radius:18px;background:#24243a;font-weight:1000}.muted{color:var(--muted)}
.accordionList{display:grid;gap:10px;margin:14px 0}.accItem{background:linear-gradient(90deg,#120511,#2b1036);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:0 14px}.accItem summary{list-style:none;cursor:pointer;padding:18px 0;font-size:16px;font-weight:900;display:flex;justify-content:space-between;gap:10px}.accItem summary::-webkit-details-marker{display:none}.accItem p{margin:0 0 16px;color:var(--muted);line-height:1.45}
.vipGroupTabs{display:flex;gap:8px;margin-bottom:12px}.vgt{flex:1;border:0;border-radius:16px;padding:12px;background:linear-gradient(90deg,#245ea6,#8c0a21);color:#fff;font-weight:900}.vgt.active{outline:2px solid rgba(255,255,255,.1)}
.zoneCard{position:relative;overflow:hidden;border-radius:24px;padding:20px;background:rgba(28,15,33,.82);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.08);box-shadow:var(--shadow);min-height:128px;grid-column:1/-1}.zoneBadge{display:inline-flex;align-items:center;gap:8px;font-size:24px;font-weight:1000;font-style:italic}.zoneProgress{height:10px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden;margin:14px 0 8px}.zoneProgress>i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#ffffff,#ddd)}.zoneAction{display:inline-flex;align-items:center;justify-content:center;min-width:138px;border:0;border-radius:16px;padding:12px 16px;background:#7d6bf5;color:#fff;font-weight:1000}.zoneUltimate{display:inline-block;margin-top:10px;background:#a32633;padding:7px 12px;border-radius:12px;font-size:12px;font-weight:1000}
.raffleCard{background:radial-gradient(circle at 50% 0,rgba(255,255,255,.16),transparent 35%),linear-gradient(180deg,#0d090c,#31211f 35%,#1a0e13 100%);border-radius:30px;padding:18px;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.08);min-height:520px}.raffleTag{text-align:center;font-size:14px;font-weight:900;color:#f0b6c0;letter-spacing:.12em;text-transform:uppercase;margin-top:10px}.raffleHead{text-align:center;font-size:22px;font-weight:1000;margin:14px 0;color:#fff}.raffleSub{border:1px solid rgba(255,255,255,.28);padding:16px 12px;border-radius:22px;text-align:center;font-size:18px;font-weight:900;color:#cfd0df;background:rgba(255,255,255,.02)}.rafflePhones{display:flex;align-items:flex-end;justify-content:center;gap:16px;height:240px;padding-top:24px}.phone{width:110px;border-radius:24px;background:linear-gradient(180deg,#753440,#31171d);box-shadow:0 18px 45px rgba(0,0,0,.35)}.phone.tall{height:180px}.phone.mid{height:150px;background:linear-gradient(180deg,#f3f3ef,#c8c5be)}.phone.blue{height:176px;background:linear-gradient(180deg,#9db4e8,#7a85b2)}.countdown{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.cdCell{background:rgba(255,255,255,.06);border-radius:18px;padding:16px 10px;text-align:center;font-weight:1000}.cdCell span{display:block;font-size:13px;color:var(--muted);margin-top:4px}.primaryCta{width:100%;border:0;background:linear-gradient(180deg,#7a414d,#5f2831);color:#fff;padding:18px;border-radius:18px;font-weight:1000;font-size:18px;box-shadow:var(--shadow)}
.gameCard{position:relative;min-height:142px;padding:18px;border-radius:24px;overflow:hidden;background:linear-gradient(135deg,#3e79b7,#2f6fae);box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.08)}.gameCard.wide{grid-column:1/-1;min-height:132px}.gameCard .label{position:absolute;left:18px;bottom:18px;font-size:19px;font-weight:1000;font-style:italic;letter-spacing:.02em;text-shadow:0 2px 4px rgba(0,0,0,.3)}.gameIcon{position:absolute;right:18px;top:18px;font-size:44px;opacity:.95}
.bannerCard{position:relative;overflow:hidden;border-radius:24px;padding:20px;background:linear-gradient(135deg,var(--tone1,#192033),var(--tone2,#0d111a));min-height:165px;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.06);grid-column:1/-1}.bannerCard::after{content:"";position:absolute;inset:auto -20px -30px auto;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 65%);opacity:.6}.bannerTitle{font-size:22px;font-weight:900;text-shadow:0 2px 4px rgba(0,0,0,.5);max-width:75%}.bannerMeta{position:absolute;left:20px;right:20px;bottom:18px;display:flex;justify-content:space-between;gap:12px;font-weight:800;text-shadow:0 2px 4px rgba(0,0,0,.5)}.bannerBell{position:absolute;right:16px;top:16px;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.12);font-size:18px}.bannerTag{position:absolute;left:18px;top:18px;padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.14);font-size:11px;font-weight:900;letter-spacing:.08em}
.profileCard{display:grid;gap:12px;background:rgba(17,8,21,.68);border:1px solid rgba(255,255,255,.08);padding:18px;border-radius:24px;box-shadow:var(--shadow)}.ordersList{grid-template-columns:1fr}.ordersList .orderItem{background:rgba(17,8,21,.68);border:1px solid rgba(255,255,255,.08);padding:14px;border-radius:18px;box-shadow:var(--shadow)}
.bottomNav{position:fixed;left:50%;transform:translateX(-50%);bottom:12px;width:min(740px,calc(100% - 22px));display:grid;grid-template-columns:repeat(5,1fr);gap:8px;background:rgba(8,7,9,.92);border:2px solid #ed2d2d;padding:8px;border-radius:22px;box-shadow:var(--shadow);backdrop-filter:blur(8px)}.bn{border:0;background:transparent;color:#fff;border-radius:14px;padding:12px 4px;font-weight:900;font-size:20px}.bn.active{background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.02));box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.modal,.promptOverlay{position:fixed;inset:0;background:rgba(0,0,0,.68);display:flex;align-items:flex-end;justify-content:center;z-index:30}.hidden{display:none!important}.sheet{position:relative;width:min(760px,100%);max-height:90vh;overflow:auto;background:#0f0813;border-radius:28px 28px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));border:1px solid rgba(255,255,255,.08)}.sheetClose{position:absolute;right:14px;top:14px;border:0;border-radius:14px;padding:10px 12px;background:rgba(255,255,255,.08);color:#fff}.field{display:block;margin:14px 0}.field span{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.field input{width:100%;padding:14px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:#120915;color:#fff;font-size:16px}.paybox{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:14px;margin:12px 0}.paybox code{color:#ffe08f;font-size:17px;word-break:break-word}.danger{color:#ff8696}.loading{text-align:center;color:var(--muted);padding:28px 0}
.promptOverlay{align-items:flex-end;padding:18px}.promptBox{width:min(720px,100%);padding:22px 18px;background:linear-gradient(180deg,#4d385e,#35253f);border-radius:28px;box-shadow:var(--shadow);text-align:center}.promptLogo{width:54px;height:54px;border-radius:18px;background:#8b5a3a;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;font-weight:1000}.promptTitle{font-size:26px;font-weight:1000;line-height:1.1;margin-bottom:18px}.promptActions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.promptBtn{border:0;background:rgba(255,255,255,.14);color:#fff;padding:16px 10px;border-radius:16px;font-weight:900}.primaryPrompt{background:#2d025d}
.tone-violet{--tone1:#142048;--tone2:#34144d}.tone-azure{--tone1:#0f3b70;--tone2:#0f5472}.tone-purple{--tone1:#4f3c96;--tone2:#7c68c8}.tone-sky{--tone1:#457ab9;--tone2:#91b3e5}.tone-forest{--tone1:#244c4e;--tone2:#75531f}.tone-graphite{--tone1:#3c404b;--tone2:#7f6577}.tone-magenta{--tone1:#3a1a42;--tone2:#844976}.tone-steel{--tone1:#2b333d;--tone2:#586776}.tone-orange{--tone1:#5f2910;--tone2:#d55b27}.tone-bluefire{--tone1:#0d2249;--tone2:#98371c}.tone-dark{--tone1:#121016;--tone2:#44444d}.tone-yellow{--tone1:#504109;--tone2:#a37d00}.tone-gold{--tone1:#552939;--tone2:#8f6520}.tone-cyan{--tone1:#041318;--tone2:#15495b}.tone-crimson{--tone1:#24060e;--tone2:#6c1631}
.kind-pubg{background:linear-gradient(135deg,#0e4687,#17324c)}.kind-steam{background:linear-gradient(135deg,#1f2f49,#09111f)}.kind-stars{background:linear-gradient(135deg,#3072b7,#2f6fae)}.kind-coin{background:linear-gradient(135deg,#3f79b6,#5590ce)}.kind-fire{background:linear-gradient(135deg,#2a6fae,#5396e0)}.kind-mobile{background:linear-gradient(135deg,#4f8ac7,#3270ad)}.kind-genshin{background:linear-gradient(135deg,#558ecd,#3374b3)}.kind-delta{background:linear-gradient(135deg,#5b95ce,#2c669c)}.kind-roblox{background:linear-gradient(135deg,#4887c9,#315f96)}.kind-honkai{background:linear-gradient(135deg,#3f79b4,#2f5f95)}.kind-ps{background:linear-gradient(135deg,#4e89cf,#2f5f96)}.kind-apple{background:linear-gradient(135deg,#629ad2,#386ea9)}.kind-gplay{background:linear-gradient(135deg,#4a87cb,#3370b2)}
@media (max-width:640px){.zoneCard,.bannerCard,.raffleMini{grid-column:1/-1}.segmentTop{gap:6px}.segment{padding:14px 6px}.ucHeroTitle{font-size:22px}.ucHeroText{font-size:16px}.productGrid,.miniCards{gap:8px}.productCard{padding-left:8px;padding-right:8px}.prodName{font-size:13px}.prodPrice{font-size:15px}.prodOld{font-size:11px}.prodBtn{font-size:14px}.promptActions{grid-template-columns:1fr 1fr 1fr}}
@media (max-width:420px){.app{padding-left:12px;padding-right:12px}.softbtn{padding:10px 14px}.productCard{min-height:186px}.menuCard,.infoCard{min-height:138px}.ucBubble{width:180px;height:180px}.ucBadge{width:132px;height:82px;font-size:48px}.promptTitle{font-size:22px}}

/* ===== DANILKA FINAL BRAND LAYER ===== */
.brandPill{display:flex;align-items:center;gap:8px;max-width:52%;background:linear-gradient(90deg,#181015,#7b0f24 48%,#251318);border:1px solid rgba(255,207,105,.34);padding:6px 12px}
.brandPill img{width:30px;height:30px;border-radius:9px;display:block}
.brandPill span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;letter-spacing:.06em}
.danilkaHero{height:188px;border-radius:27px;margin-bottom:14px;position:relative;overflow:hidden;background:#15070d url('/static/assets/danilka-hero.svg') center/cover no-repeat;box-shadow:0 18px 50px rgba(0,0,0,.4);border:1px solid rgba(255,212,119,.19)}
.danilkaHero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.22),transparent 55%,rgba(0,0,0,.12));pointer-events:none}
.heroGlow{position:absolute;width:180px;height:180px;left:-70px;bottom:-95px;border-radius:50%;background:radial-gradient(circle,rgba(255,50,74,.5),transparent 70%);filter:blur(5px)}
.heroCopy{position:absolute;left:20px;bottom:18px;z-index:2;display:grid;gap:3px;text-shadow:0 3px 10px rgba(0,0,0,.65)}
.heroEyebrow{font-size:11px;font-weight:1000;letter-spacing:.22em;color:#ffd478}
.heroCopy b{font-size:25px;letter-spacing:.02em}.heroCopy small{font-size:12px;color:#f1dce3;font-weight:700}
.raffleMini{border:1px solid rgba(255,212,119,.18);background:linear-gradient(100deg,#2d0a13,#5f1722 48%,#221016)}
.raffleMini::before{content:"D";position:absolute;right:34px;z-index:2;font-size:42px;font-weight:1000;font-style:italic;color:#fff;text-shadow:0 3px 12px #000}
.raffleMini::after{background:linear-gradient(135deg,#1c0d12,#872338 48%,#df9e4e);opacity:.86}
.menuCard,.infoCard,.productCard{border:1px solid rgba(255,210,110,.10)}
.menuCard::before,.infoCard::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 20%,rgba(255,208,105,.10),transparent 34%);pointer-events:none}
.productCard{background:radial-gradient(circle at 50% 15%,rgba(255,54,82,.17),transparent 35%),linear-gradient(180deg,#550619,#2d050f)}
.prodIcon{height:72px;margin-bottom:4px}.tokenArt{width:108px;height:72px;object-fit:contain;filter:drop-shadow(0 9px 9px rgba(0,0,0,.26))}.rsArt{width:92px}.emojiArt{font-size:48px;filter:drop-shadow(0 8px 8px rgba(0,0,0,.26))}
.prodBtn{background:linear-gradient(180deg,#48aef6,#258edc);text-shadow:0 1px 3px rgba(0,0,0,.3)}
.prodBtn:active,.openBtn:active,.primaryCta:active,.zoneAction:active{transform:scale(.985)}
.openBtn{background:linear-gradient(180deg,#eab54d,#ad651e);box-shadow:inset 0 1px rgba(255,255,255,.28)}.secondaryOpen{background:linear-gradient(180deg,#6f1628,#4a0b18)}
.ucHero{background:radial-gradient(circle at 50% 20%,rgba(125,171,255,.38),transparent 35%),linear-gradient(180deg,rgba(24,22,50,.86),rgba(100,9,28,.76));border:1px solid rgba(255,210,110,.12)}
.ucBubble{background:radial-gradient(circle at 50% 40%,#d4d8ff 0,#768fe9 34%,#394a91 64%,rgba(95,135,219,.18) 65%)}
.ucBadge{background:#111 url('/static/assets/uc-token.svg') center/contain no-repeat;color:transparent;border:0;box-shadow:0 14px 28px rgba(0,0,0,.35)}
.bottomNav{border-color:#cb253c;background:rgba(8,5,7,.95)}
.bn.active{background:radial-gradient(circle,rgba(255,213,117,.22),rgba(255,255,255,.03));color:#ffe19b}
.promptLogo{background:#12090d url('/static/assets/danilka-logo.svg') center/cover no-repeat;color:transparent}
.profileCard{border-color:rgba(255,210,110,.14)}
@media(max-width:420px){.danilkaHero{height:164px}.heroCopy b{font-size:21px}.heroCopy{left:16px;bottom:15px}.brandPill{max-width:50%;padding:5px 8px}.brandPill img{width:28px;height:28px}.brandPill span{font-size:11px}.productCard{min-height:190px}.tokenArt{width:96px}}

/* Reference-like mobile grids: UC/VIP = 3 columns, Popularity = 2 columns. */
#homeGrid,#customGrid,#vipProductGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
#popularityGrid,#popularityCards{grid-template-columns:repeat(2,minmax(0,1fr))}
#homeCards{grid-template-columns:repeat(3,minmax(0,1fr))}
#gamesGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:640px){
  #homeGrid,#customGrid,#vipProductGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #homeCards{grid-template-columns:repeat(3,minmax(0,1fr))}
  #popularityGrid,#popularityCards,#gamesGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #homeGrid .productCard,#customGrid .productCard,#vipProductGrid .productCard{min-height:164px;padding:9px 6px 50px;border-radius:18px}
  #homeGrid .prodIcon,#customGrid .prodIcon,#vipProductGrid .prodIcon{height:56px}
  #homeGrid .tokenArt,#customGrid .tokenArt,#vipProductGrid .tokenArt{width:78px;height:54px}
  #homeGrid .emojiArt,#customGrid .emojiArt,#vipProductGrid .emojiArt{font-size:38px}
  #homeGrid .prodName,#customGrid .prodName,#vipProductGrid .prodName{font-size:12px;min-height:30px}
  #homeGrid .prodOld,#customGrid .prodOld,#vipProductGrid .prodOld{font-size:10px;margin-top:4px}
  #homeGrid .prodPrice,#customGrid .prodPrice,#vipProductGrid .prodPrice{font-size:13px;margin-top:2px}
  #homeGrid .prodBtn,#customGrid .prodBtn,#vipProductGrid .prodBtn{height:44px;font-size:12px}
  #homeCards .menuCard{min-height:130px;padding:12px 8px;border-radius:18px}
  #homeCards .mcIcon{font-size:38px}
  #homeCards .mcTitle{font-size:13px}
  #homeCards .mcSub{font-size:10px}
  #homeCards .openBtn{font-size:11px;padding:9px 8px}
}
@media(max-width:360px){
  .app{padding-left:8px;padding-right:8px}
  #homeGrid,#customGrid,#vipProductGrid{gap:6px}
  #homeGrid .productCard,#customGrid .productCard,#vipProductGrid .productCard{min-height:158px}
  #homeGrid .prodName,#customGrid .prodName,#vipProductGrid .prodName{font-size:11px}
  #homeGrid .prodPrice,#customGrid .prodPrice,#vipProductGrid .prodPrice{font-size:12px}
}

/* ===== ALL-IN-ONE SERVICES ===== */
.servicesIntro{display:grid;gap:5px;margin-bottom:14px;padding:16px 18px;border-radius:22px;background:linear-gradient(135deg,#1b0b12,#5d0e20);border:1px solid rgba(255,215,128,.16);box-shadow:var(--shadow)}
.servicesIntro b{font-size:21px}.servicesIntro span{color:var(--muted);font-size:13px;line-height:1.4}
.serviceGroup{margin:0 0 18px}.serviceGroupTitle{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#ffd589;font-weight:1000;margin:0 4px 9px}.servicesGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.serviceCard{position:relative;min-height:148px;padding:16px;border:0;border-radius:23px;overflow:hidden;text-align:left;color:#fff;background:linear-gradient(135deg,#24598d,#12283f);box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.08)}
.serviceCard.wide{grid-column:1/-1;min-height:128px}.serviceCard.telegram{background:linear-gradient(135deg,#1b83d2,#1168aa)}.serviceCard.cards{background:linear-gradient(135deg,#63441a,#a67625)}
.serviceIcon{position:absolute;right:15px;top:13px;font-size:43px;filter:drop-shadow(0 7px 8px rgba(0,0,0,.25))}.serviceName{position:absolute;left:16px;right:70px;bottom:42px;font-size:19px;font-weight:1000;font-style:italic;line-height:1.05}.serviceCount{position:absolute;left:16px;bottom:17px;color:#d7e9ff;font-size:11px;font-weight:800}
.serviceBack{border:0;border-radius:16px;padding:11px 14px;background:rgba(255,255,255,.08);color:#fff;font-weight:900;margin-bottom:10px}.serviceHero{display:grid;gap:8px;padding:18px;border-radius:24px;background:linear-gradient(135deg,#121218,#5d0d21);box-shadow:var(--shadow);border:1px solid rgba(255,214,127,.15);margin-bottom:14px}.serviceHeroTop{display:flex;align-items:center;gap:12px}.serviceHeroIcon{width:58px;height:58px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.09);font-size:32px}.serviceHeroTitle{font-size:23px;font-weight:1000}.serviceHeroDesc{color:var(--muted);line-height:1.45}.serviceNotice{padding:10px 12px;border-radius:14px;background:rgba(255,197,84,.10);color:#ffe1a4;font-size:12px;line-height:1.4}.serviceProductsGrid{grid-template-columns:repeat(3,minmax(0,1fr))}.productCard.serviceProduct{min-height:174px}.targetHint{font-size:12px;color:var(--muted);margin-top:-7px;margin-bottom:10px}.priceNotice{font-size:11px;color:#ffd589;margin-top:8px;line-height:1.35}.fulfillmentBox{margin-top:8px;padding:9px 10px;border-radius:12px;background:rgba(76,185,116,.12);color:#bdf2ca;font-size:12px;word-break:break-word}
@media(max-width:640px){.serviceProductsGrid{grid-template-columns:repeat(3,minmax(0,1fr))}.serviceProductsGrid .productCard{min-height:164px;padding:9px 6px 50px;border-radius:18px}.serviceProductsGrid .prodIcon{height:56px}.serviceProductsGrid .prodName{font-size:12px;min-height:30px}.serviceProductsGrid .prodPrice{font-size:13px}.serviceProductsGrid .prodBtn{font-size:12px;height:44px}}
@media(max-width:380px){.servicesGrid{gap:8px}.serviceCard{min-height:132px}.serviceName{font-size:16px}.serviceProductsGrid{gap:6px}}

/* V8.8 startup reliability */
.bootSplash{position:fixed;inset:0;z-index:100;background:radial-gradient(circle at 50% 20%,#7d0f25,#13050a 55%,#090205);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;transition:opacity .2s}
.bootSplash.hidden{display:none}
.bootLogo{width:68px;height:68px;border-radius:22px;background:linear-gradient(135deg,#ff4c68,#8a1034);display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:1000;box-shadow:0 15px 45px rgba(0,0,0,.35)}
.bootSplash b{font-size:20px}.bootSplash span{color:#e3c8d1}
.bootError{grid-column:1/-1;background:rgba(20,8,15,.86);border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:20px;display:grid;gap:12px;text-align:center}.bootError span{color:#e3c8d1}


/* ===== V8.9 MOBILE VISUAL STABILITY ===== */
html,body{overflow-x:hidden}
.app{padding-top:max(10px,env(safe-area-inset-top));}
.topbar{min-height:52px;position:relative;z-index:12}
.backBtn{opacity:0;pointer-events:none;min-width:78px;display:flex;align-items:center;justify-content:center;gap:4px;background:rgba(255,255,255,.08);color:#fff;box-shadow:none}
body.has-subview .backBtn{opacity:1;pointer-events:auto}
.brandPill{position:absolute;left:50%;transform:translateX(-50%);max-width:62%;z-index:2;box-shadow:0 10px 28px rgba(0,0,0,.28)}
#profileBtn{margin-left:auto;background:rgba(255,255,255,.08);color:#fff;box-shadow:none}

/* Segment text was being covered by the decorative pseudo layer on iOS WebView. */
.segmentTop{gap:9px;margin:12px 0 14px}
.segment{isolation:isolate;min-height:58px;padding:0 8px;background:linear-gradient(180deg,#1b1518,#0d0b0c);border:1px solid rgba(255,255,255,.14);box-shadow:0 8px 22px rgba(0,0,0,.24);overflow:hidden;color:#fff}
.segment::before{display:none!important}
.segment::after{content:"";position:absolute;inset:0;border-radius:20px;pointer-events:none;background:linear-gradient(120deg,rgba(255,255,255,.06),transparent 35%,rgba(255,255,255,.02));z-index:0}
.segment>span{position:relative;z-index:2;display:block;font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.segment.active{background:linear-gradient(135deg,#611126,#260912);border-color:rgba(255,209,112,.42);box-shadow:0 8px 24px rgba(0,0,0,.26),inset 0 0 0 1px rgba(255,219,141,.10)}
.segment.active::after{box-shadow:none;background:radial-gradient(circle at 50% 0,rgba(255,197,85,.14),transparent 65%)}

/* Clean hero: one text layer only; prevents cropped/duplicated SVG lettering. */
.danilkaHero{height:178px;background:radial-gradient(circle at 76% 32%,rgba(239,45,78,.44),transparent 36%),linear-gradient(135deg,#17070d 0%,#5b0a1c 52%,#15070d 100%);border:1px solid rgba(255,210,110,.20)}
.danilkaHero::before{content:"";position:absolute;right:8px;top:10px;width:175px;height:158px;background:url('/static/assets/danilka-logo.svg') center/contain no-repeat;opacity:.94;filter:drop-shadow(0 15px 25px rgba(0,0,0,.38));z-index:1}
.danilkaHero::after{background:linear-gradient(90deg,rgba(8,2,5,.54) 0%,rgba(8,2,5,.18) 55%,rgba(8,2,5,.04) 100%);z-index:1}
.heroCopy{z-index:3;max-width:62%}
.heroCopy b{font-size:26px;line-height:1.03}.heroCopy small{font-size:12px;line-height:1.25}

/* Ensure pseudo artwork cannot hide real text/content in iOS Telegram. */
.raffleMini .rm1,.raffleMini .rm2{position:relative;z-index:4;max-width:64%}
.raffleMini::before{z-index:3}.raffleMini::after{z-index:1}
.menuCard>* ,.infoCard>*{position:relative;z-index:2}
.menuCard::before,.infoCard::before{z-index:1}

.raffleMini{min-height:92px;margin-bottom:12px}
.raffleMini .rm1{font-size:15px;line-height:1.15;color:#fff}.raffleMini .rm2{font-size:11px;line-height:1.25;color:#e9cfd7}

#homeCards{margin-bottom:12px}
#homeGrid{padding-bottom:8px}
.productCard{transform:translateZ(0)}

/* Mobile-first: readable 3-column UC cards without clipping. */
@media(max-width:640px){
  .app{padding-left:12px;padding-right:12px}
  .brandPill{max-width:60%}
  .segment{min-height:54px;border-radius:17px}.segment::after{border-radius:17px}.segment>span{font-size:12px}
  .danilkaHero{height:164px;border-radius:22px}.danilkaHero::before{width:150px;height:140px;right:0;top:12px}.heroCopy{left:15px;bottom:15px;max-width:61%}.heroCopy b{font-size:22px}.heroEyebrow{font-size:10px}
  #homeCards{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  #homeCards .menuCard{min-height:124px;padding:11px 7px;border-radius:17px}
  #homeCards .mcIcon{font-size:34px}
  #homeCards .mcTitle{font-size:11px;line-height:1.08}
  #homeCards .mcSub{font-size:9px;line-height:1.15}
  #homeCards .openBtn{padding:8px 5px;font-size:10px;border-radius:12px}
  #homeGrid,#customGrid,#vipProductGrid,.serviceProductsGrid{gap:7px}
  #homeGrid .productCard,#customGrid .productCard,#vipProductGrid .productCard,.serviceProductsGrid .productCard{min-height:160px;padding:8px 5px 46px;border-radius:17px}
  #homeGrid .prodIcon,#customGrid .prodIcon,#vipProductGrid .prodIcon,.serviceProductsGrid .prodIcon{height:52px}
  #homeGrid .tokenArt,#customGrid .tokenArt,#vipProductGrid .tokenArt,.serviceProductsGrid .tokenArt{width:72px;height:50px}
  #homeGrid .prodName,#customGrid .prodName,#vipProductGrid .prodName,.serviceProductsGrid .prodName{font-size:11px;min-height:28px;line-height:1.1}
  #homeGrid .prodPrice,#customGrid .prodPrice,#vipProductGrid .prodPrice,.serviceProductsGrid .prodPrice{font-size:12px}
  #homeGrid .prodBtn,#customGrid .prodBtn,#vipProductGrid .prodBtn,.serviceProductsGrid .prodBtn{height:42px;font-size:11px}
  .bottomNav{bottom:max(8px,env(safe-area-inset-bottom));}
}
@media(max-width:360px){
  .segment>span{font-size:11px}
  .brandPill span{font-size:10px}
  .danilkaHero::before{width:132px}
  .heroCopy b{font-size:20px}
}


/* ===== V9 CLEAN PRODUCTION SAFETY ===== */
.app{padding-bottom:calc(124px + env(safe-area-inset-bottom))}
.productCard::after{z-index:1;pointer-events:none}
.productCard .prodIcon,.productCard .prodName,.productCard .prodOld,.productCard .prodPrice{position:relative;z-index:2}
.prodBtn{z-index:4;display:flex;align-items:center;justify-content:center;pointer-events:auto}
.bottomNav{z-index:20}
@media(max-width:640px){
  .app{padding-bottom:calc(116px + env(safe-area-inset-bottom))}
  .bottomNav{padding:6px;gap:5px;width:calc(100% - 20px);border-radius:20px}
  .bn{padding:10px 3px;font-size:18px}
  #homeGrid,#customGrid,#vipProductGrid,.serviceProductsGrid{padding-bottom:16px}
}


/* ===== DANILKA V9.1 FINAL UI POLISH ===== */
/* Make the product action label impossible for decorative layers/iOS WebView to cover. */
.prodBtn{
  z-index:8!important;
  color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:hidden;
  text-indent:0!important;
  line-height:1!important;
  background:linear-gradient(180deg,#58b9ff 0%,#2793e1 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30),0 -1px 0 rgba(0,0,0,.08)!important;
}
.prodBtnLabel{
  position:relative;
  z-index:10;
  display:block;
  color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  font-size:inherit;
  font-weight:900;
  letter-spacing:.01em;
  white-space:nowrap;
  text-shadow:0 1px 3px rgba(0,0,0,.34);
  pointer-events:none;
}
.productCard::after{z-index:1!important}
.productCard .prodIcon,.productCard .prodName,.productCard .prodOld,.productCard .prodPrice{z-index:3!important}

/* Keep the real brand stable even if an old env value was inherited. */
.brandPill{min-width:150px;justify-content:center}
.brandPill span{max-width:150px}

/* Slightly smaller dock + enough scroll room so the last product is never trapped below it. */
.app{padding-bottom:calc(136px + env(safe-area-inset-bottom))!important}
.bottomNav{
  min-height:66px;
  padding:5px 7px!important;
  box-shadow:0 10px 36px rgba(0,0,0,.55)!important;
}
.bn{min-height:48px;padding:8px 3px!important}
#homeGrid,#customGrid,#vipProductGrid,.serviceProductsGrid,#popularityGrid{padding-bottom:30px!important}

/* Desktop Telegram popout is narrow: keep controls readable there too. */
@media (max-width:520px){
  .prodBtn{font-size:12px!important}
  .brandPill{min-width:138px;max-width:58%!important}
  .brandPill span{font-size:11px!important}
}
@media (max-width:380px){
  .prodBtn{font-size:11px!important}
  .bottomNav{min-height:62px}
  .bn{min-height:44px;font-size:17px!important}
}
