:root{
  --bg:#070707;
  --txt:#fff;
  --mut:rgba(255,255,255,.68);
  --bd:rgba(255,255,255,.10);
  --card:rgba(255,255,255,.04);
  --card2:rgba(255,255,255,.06);
  --sh:0 18px 65px rgba(0,0,0,.58);
  --acc:#ffd400;
  --acc2:#6a5cff;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--txt);
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(0,255,153,.14), transparent 60%),
    radial-gradient(900px 520px at 92% 0%, rgba(106,92,255,.12), transparent 60%),
    radial-gradient(900px 520px at 55% 110%, rgba(255,212,0,.10), transparent 60%),
    var(--bg);
  overflow-x:hidden;
}

/* ✅ Modal open: prevent scroll (iPhone fix) */
html.modalOpen, body.modalOpen{
  overflow:hidden !important;
  height:100%;
}

.wrap{
  width:min(1120px, 100%);
  margin:0 auto;
  padding:0 16px;
}

/* =========================
   HEADER / NAV
   ========================= */
.top{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(7,7,7,.58);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--bd);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}

.logo{
  width:44px;
  height:44px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--bd);
  box-shadow:var(--sh);
  object-fit:contain;
  padding:7px;
}

.brandTxt{line-height:1.1}
.brandName{
  font-weight:900;
  letter-spacing:.3px;
}
.brandSub{
  margin-top:4px;
  font-size:12px;
  color:var(--mut);
}

/* =========================
   PLAYER
   ========================= */
.player{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--bd);
  background:rgba(255,255,255,.04);
  border-radius:16px;
  padding:10px 10px;
  box-shadow:var(--sh);
}
.player.playing{
  border-color:rgba(255,212,0,.28);
  box-shadow:0 0 0 3px rgba(255,212,0,.10), var(--sh);
}
.track{min-width:160px}
.trackTitle{
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:180px;
}
.trackSub{
  font-size:12px;
  color:var(--mut);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:180px;
}
.pBtn{
  border:1px solid var(--bd);
  background:rgba(255,255,255,.05);
  color:var(--txt);
  border-radius:14px;
  height:38px;
  width:44px;
  cursor:pointer;
}
.pBtn.main{
  background:rgba(255,212,0,.12);
  border-color:rgba(255,212,0,.22);
  width:46px;
}
.count{
  font-size:12px;
  color:var(--mut);
  padding:0 6px;
}

/* =========================
   HERO
   ========================= */
.hero{
  padding:18px 0 10px;
}
.heroIn{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:16px;
  border:1px solid var(--bd);
  border-radius:18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow:var(--sh);
}
.heroTitle{
  margin:0;
  font-size:20px;
  letter-spacing:.2px;
}
.heroHint{
  margin:6px 0 0;
  color:var(--mut);
  font-size:13px;
}

.search{
  width:min(380px, 100%);
  padding:12px 12px;
  border-radius:16px;
  border:1px solid var(--bd);
  background:rgba(255,255,255,.05);
  color:var(--txt);
  outline:none;
}
.search::placeholder{color:rgba(255,255,255,.55)}

/* =========================
   TABS
   ========================= */
.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0 4px;
}

.tab{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--bd);
  background:rgba(255,255,255,.04);
  color:var(--mut);
  cursor:pointer;
  user-select:none;
  transition:transform .12s ease;
}
.tab:hover{transform:translateY(-1px)}
.tab.active{
  background:var(--acc);
  color:#101010;
  border-color:rgba(0,0,0,.12);
}

/* =========================
   GRID / CARD
   ========================= */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:14px;
  padding:12px 0 26px;
}

.card{
  border:1px solid var(--bd);
  background:rgba(255,255,255,.04);
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--sh);
  animation: pop .35s ease both;
}
@keyframes pop{
  from{transform:translateY(10px); opacity:.0}
  to{transform:translateY(0); opacity:1}
}
.imgWrap{
  position:relative;
  height:146px;
  background:rgba(255,255,255,.03);
}
.img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.cornerPrice{
  position:absolute;
  right:10px;
  top:10px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.28);
  color:var(--txt);
  font-weight:900;
  font-size:12px;
  backdrop-filter: blur(10px);
}

.pad{padding:14px 14px 16px}
.topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.title{
  margin:0;
  font-size:15px;
  font-weight:900;
}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,212,0,.12);
  border:1px solid rgba(255,212,0,.18);
  color:var(--acc);
  font-weight:800;
  white-space:nowrap;
}
.meta{
  margin-top:8px;
  font-size:13px;
  color:var(--mut);
  min-height:36px;
}
.priceRow{
  margin-top:12px;
  display:flex;
  gap:10px;
}

/* buttons */
.btn{
  border:none;
  cursor:pointer;
  border-radius:14px;
  padding:12px 12px;
  font-weight:900;
  letter-spacing:.2px;
}
.btn.primary{
  background:var(--acc);
  color:#101010;
  width:100%;
}
.btn.primary:hover{filter:brightness(1.03)}
.btn.primary:active{transform:translateY(1px)}

/* =========================
   MODAL
   ========================= */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  z-index:50;
  padding:18px;
}
.modal.show{display:flex}

.modalCard{
  width:min(720px, 100%);
  max-height: min(84vh, 780px);
  overflow:auto;
  border-radius:18px;
  border:1px solid var(--bd);
  background:rgba(14,14,16,.92);
  box-shadow:var(--sh);
  padding:14px;
  position:relative;
}

.close{
  position:absolute;
  right:12px;
  top:10px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--bd);
  background:rgba(255,255,255,.06);
  color:var(--txt);
  cursor:pointer;
}

.mTop{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding-right:56px;
}
.mImg{
  width:86px;
  height:86px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  object-fit:cover;
}
.mTitle{
  font-size:18px;
  font-weight:1000;
}
.mDesc{
  margin-top:6px;
  color:var(--mut);
  font-size:13px;
}

.mInfoBox{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  border-radius:16px;
  padding:12px;
  display:none;
}
.mInfoHead{
  font-weight:1000;
  margin-bottom:8px;
}
.mInfoLine{
  font-size:13px;
  color:rgba(255,255,255,.78);
  margin:6px 0;
}

.mPlansTitle{
  margin-top:14px;
  font-weight:900;
  color:rgba(255,255,255,.88);
}
.mPlans{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:10px;
}
.plan{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:var(--txt);
  border-radius:16px;
  padding:12px;
  text-align:left;
  cursor:pointer;
}
.plan:hover{transform:translateY(-1px)}
.plan.active{
  border-color:rgba(255,212,0,.55);
  box-shadow:0 0 0 3px rgba(255,212,0,.10);
}
.planT{font-weight:1000}
.planP{margin-top:6px;color:var(--mut);font-size:12px}

.mBottom{
  margin-top:12px;
  display:grid;
  gap:10px;
}
.mInfo{
  color:var(--mut);
  font-size:13px;
}
.mSmall{
  color:rgba(255,255,255,.55);
  font-size:12px;
}

/* forms inside modal */
.mpForm{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  border-radius:16px;
  padding:12px;
}
.mpFormTitle{font-weight:1000;margin-bottom:10px}
.mpHint{color:var(--mut);font-size:13px}
.mpGrid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.mpLabel{color:rgba(255,255,255,.78);font-size:12px;margin-bottom:6px}
.mpInput{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
  color:var(--txt);
  outline:none;
}
.mpBtn{
  margin-top:10px;
  width:100%;
  border:none;
  cursor:pointer;
  border-radius:14px;
  padding:12px 12px;
  font-weight:1000;
  background:var(--acc);
  color:#101010;
}
.mpBtn:active{transform:translateY(1px)}

/* =========================
   FOOTER
   ========================= */
.footer{
  border-top:1px solid var(--bd);
  background:rgba(0,0,0,.18);
}
.footIn{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
  flex-wrap:wrap;
}
.tiny{color:rgba(255,255,255,.60); font-size:12px}

/* =========================
   CHAT (AI box)
   ========================= */
.chatFab{
  position:fixed;
  right:16px;
  bottom:18px;
  z-index:60;
  width:56px;
  height:56px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.07);
  color:#fff;
  cursor:pointer;
  box-shadow:var(--sh);
}

.chatBox{
  position:fixed;
  right:16px;
  bottom:84px;
  width:min(360px, calc(100vw - 32px));
  height:min(520px, calc(100vh - 120px));
  z-index:60;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(12,12,14,.92);
  backdrop-filter: blur(12px);
  border-radius:18px;
  box-shadow:var(--sh);
  display:none;
  overflow:hidden;
}
.chatBox.show{display:flex; flex-direction:column}

.chatHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.chatTitle{font-weight:1000}
.chatSub{font-size:12px;color:rgba(255,255,255,.62);margin-top:2px}
.chatClose{
  width:40px;height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
}

.chatMsgs{
  flex:1;
  padding:12px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.msg{
  max-width:86%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.86);
  font-size:13px;
  line-height:1.35;
}
.msg.bot{align-self:flex-start}
.msg.user{
  align-self:flex-end;
  background:rgba(255,212,0,.12);
  border-color:rgba(255,212,0,.18);
}
.msg.hint{
  align-self:center;
  max-width:100%;
  color:rgba(255,255,255,.65);
  background:rgba(255,255,255,.04);
}

.chatInput{
  display:flex;
  gap:10px;
  padding:12px;
  border-top:1px solid rgba(255,255,255,.10);
}
.chatText{
  flex:1;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(0,0,0,.22);
  color:#fff;
  padding:12px;
  outline:none;
}
.chatSend{
  border:none;
  border-radius:14px;
  padding:12px 14px;
  font-weight:1000;
  cursor:pointer;
  background:var(--acc);
  color:#101010;
}

/* =========================
   ❄️ SNOW CANVAS (for snow.js)
   ========================= */
#snowCanvas{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:25;
  opacity:.85;
}

/* Responsive */
@media (max-width:720px){
  .nav{flex-direction:column; align-items:stretch}
  .brand{justify-content:flex-start}
  .player{width:100%; justify-content:space-between}
  .track{min-width:0; flex:1}
  .heroIn{flex-direction:column; align-items:stretch}
  .search{width:100%}
  .mpGrid2{grid-template-columns:1fr}
}