:root{
  /* femboy pastel theme - darker & softer */
  --bg0:#0f0a15;
  --bg1:#16101f;
  --bg2:#130d1a;
  --card:rgba(255,179,217,.06);
  --line:rgba(255,179,217,.12);
  --text:#f5e6f0;
  --muted:rgba(255,179,217,.62);
  /* soft pink accent */
  --mint:#e6b3d1;
  --mint2:#d99ec4;
  --mintDark:#cc88b8;
  --danger:#e67399;
  --shadow: 0 16px 40px rgba(0,0,0,.35);
  --radius:22px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  font-size:16px;
  line-height:1.25;
  -webkit-text-size-adjust:100%;
  -webkit-font-smoothing:antialiased;
  color:var(--text);
  background: radial-gradient(900px 480px at 50% 0%, rgba(230,179,209,.12) 0%, var(--bg0) 58%, rgba(15,10,21,.98) 100%);
}

/* Font Awesome icon sizing */
.navIcon i{font-size:22px}
.rowIcon i{font-size:24px}
.secIcon i{font-size:20px}
.secRight i{font-size:20px}
.copySticker i{font-size:16px}
.iconbtn i{font-size:20px}
.bwClose i{font-size:22px}
.bwBack i{font-size:20px}
.winnerClose i{font-size:20px}
.guideDeviceIconWrap i{font-size:28px}
.deviceSheetIcon i{font-size:22px}

/* Background canvas (behind UI) */
#bgCanvas{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  z-index:-1;
  pointer-events:none;
  opacity:.9;
}

.app{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  position:relative;
  z-index:1;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px 8px;
}

.title{font-weight:900; letter-spacing:.2px}

.logoText{
  font-size:20px;
  font-weight:1000;
}

.iconbtn{
  width:38px;height:38px;
  border-radius:12px;
  border:1px solid rgba(230,179,209,.16);
  background:rgba(230,179,209,.10);
  color:var(--text);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
}

.content{
  flex:1;
  padding:8px 16px calc(132px + env(safe-area-inset-bottom, 0px));
  transition: opacity .18s ease, transform .20s ease, filter .20s ease;
  will-change: opacity, transform, filter;
}
.content.isSwitching{
  opacity:0;
  transform: translateY(10px);
  filter: blur(1.2px);
}

.hero{
  position:relative;
  border-radius:28px;
  padding:18px;
  background: radial-gradient(700px 360px at 50% 20%, rgba(230,179,209,.16) 0%, rgba(204,136,184,.09) 40%, rgba(19,13,26,.45) 100%);
  border:1px solid rgba(230,179,209,.12);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.ring{
  position:absolute;
  inset:-220px -220px auto -220px;
  height:620px;
  border-radius:999px;
  border:1px solid rgba(255,179,217,.18);
  opacity:.6;
  pointer-events:none;
  box-shadow: 0 0 60px rgba(255,105,180,.15);
}

/* Home logo */
.heroLogo{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px 0 12px}
.heroBrand{
  font-weight:1000;
  font-size:50px;
  letter-spacing:.8px;
  line-height:1;
  background: linear-gradient(135deg, #e6b3d1, #cc88b8, #a88bb8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.heroTag{
  margin-top:8px;
  font-weight:900;
  opacity:.85;
  letter-spacing:3px;
  color:var(--mint);
}

.heroRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
}

.date{
  font-size:20px;
  font-weight:900;
}
.status{
  margin-top:4px;
  font-size:14px;
  color:var(--mint);
  font-weight:700;
  text-transform:lowercase;
}
.pill{
  font-size:13px;
  color:var(--text);
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(230,179,209,.24);
  background:rgba(230,179,209,.12);
  white-space:nowrap;
  box-shadow: 0 4px 12px rgba(230,179,209,.18);
}

.cta{
  margin-top:14px;
  width:100%;
  border:0;
  cursor:pointer;
  border-radius:20px;
  padding:16px 16px;
  font-size:15px;
  background: linear-gradient(90deg, rgba(230,179,209,.28), rgba(204,136,184,.22));
  color:var(--text);
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
}
.cta:active{transform:translateY(1px)}
.ctaRight{opacity:.85;font-weight:900}

.secondary{
  margin-top:10px;
  width:100%;
  border-radius:20px;
  padding:16px 16px;
  font-size:15px;
  border:1px solid rgba(230,179,209,.20);
  background:rgba(230,179,209,.12);
  color:var(--text);
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(230,179,209,.18);
}
.secondary:active{transform:translateY(1px)}
.secIcon{display:flex;align-items:center;justify-content:center}
.secRight{opacity:.8;display:flex;align-items:center}

.card{
  margin-top:14px;
  border-radius:20px;
  border:1px solid rgba(230,179,209,.10);
  background:rgba(230,179,209,.05);
  padding:14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.cardTitle{
  font-size:13px;
  font-weight:900;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:rgba(255,255,255,.78);
  margin:8px 0 6px;
}

.copy{
  display:flex;
  gap:10px;
  align-items:center;
  border:1px solid rgba(230,179,209,.18);
  background:rgba(230,179,209,.08);
  padding:12px 12px;
  border-radius:16px;
}
code{
  flex:1;
  font-size:13px;
  color:rgba(255,255,255,.92);
  white-space:nowrap;
  overflow:auto;
}
.miniBtn{
  border:1px solid rgba(230,179,209,.22);
  background:rgba(230,179,209,.12);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}
.miniBtn:active{transform:translateY(1px)}
.note{
  min-height:18px;
  margin-top:8px;
  font-size:13px;
  color:var(--muted);
}

.rowBtns{
  margin-top:10px;
  display:flex;
  gap:12px;
}
.miniCta{
  flex:1;
  border:0;
  background: linear-gradient(90deg, rgba(230,179,209,.32), rgba(204,136,184,.24));
  color:var(--text);
  font-weight:900;
  border-radius:16px;
  padding:13px 13px;
  font-size:14px;
  cursor:pointer;
}
.miniCta:disabled{opacity:.45;cursor:not-allowed}
.miniGhost{
  border:1px solid rgba(230,179,209,.20);
  background:rgba(230,179,209,.10);
  color:var(--text);
  font-weight:900;
  border-radius:16px;
  padding:13px 13px;
  font-size:14px;
  cursor:pointer;
}
.miniGhost:active,.miniCta:active{transform:translateY(1px)}

.navbar{
  position:fixed;
  z-index:40;
  left:0; right:0; bottom:0;
  padding:12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 35%, rgba(0,0,0,.92) 100%);
  display:flex;
  gap:10px;
  justify-content:space-between;
}

.navItem{
  flex:1;
  border:1px solid rgba(230,179,209,.14);
  background:rgba(230,179,209,.06);
  color:rgba(230,179,209,.68);
  border-radius:20px;
  padding:14px 0;
  display:flex;
  justify-content:center;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}
.navItem.active{
  background:linear-gradient(135deg, rgba(230,179,209,.18), rgba(204,136,184,.12));
  border-color:rgba(230,179,209,.28);
  color:var(--text);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.navItem::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255,255,255,.18), transparent 46%);
  opacity:0;
  transition: opacity .35s ease;
  pointer-events:none;
}
.navItem.ripple::after{opacity:1}

.navIcon{display:flex}

.modal{
  position:fixed;
  z-index:80;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background:rgba(15,10,21,.72);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition: opacity .22s ease, visibility .22s ease;
  backdrop-filter: blur(8px);
}
.modal.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.modalInner{
  width:100%;
  max-width:760px;
  border-radius:24px;
  background:rgba(19,13,26,.98);
  border:1px solid rgba(230,179,209,.18);
  box-shadow: 0 16px 40px rgba(230,179,209,.22);
  padding:16px;
  transform: translateY(14px) scale(.985);
  transition: transform .22s ease;
}

.modal.show .modalInner{transform: translateY(0) scale(1)}
.modalTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.modalTitle{font-weight:1000}
.modalContent{
  margin-top:10px;
  color:rgba(255,255,255,.86);
  font-size:14px;
  line-height:1.45;
}
.modalContent a{color:var(--mint)}

/* ====== ДОБАВЛЕНО: выбор оплаты ====== */
.payList{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.payItem{
  width:100%;
  border-radius:18px;
  padding:14px 14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
}
.payItem:active{transform:translateY(1px)}
.payLeft{display:flex;flex-direction:column;gap:3px}
.payName{font-size:14px}
.payDesc{font-size:12px;color:rgba(255,255,255,.72);font-weight:700}
.payTag{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:rgba(255,255,255,.92);
  white-space:nowrap;
}
.payHint{margin-top:10px;color:rgba(255,255,255,.72);font-size:12px;line-height:1.45}
.payBtnRow{display:flex;gap:10px;margin-top:12px}
.payBtnRow .miniGhost{flex:1}
/* ====== ДОБАВЛЕНО: выбор оплаты (modal list) ====== */
.payList{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.payItem{
  width:100%;
  border-radius:18px;
  padding:14px 14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.07);
  color:inherit;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
}
.payItem:active{transform:translateY(1px)}
.payLeft{display:flex;flex-direction:column;gap:3px}
.payName{font-size:14px}
.payDesc{font-size:12px;opacity:.75;font-weight:700}
.payTag{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  opacity:.9;
  white-space:nowrap;
}
.payHint{margin-top:10px;opacity:.75;font-size:12px;line-height:1.45}
.payBtnRow{display:flex;gap:10px;margin-top:12px}

/* ===== Payment overlay (added) ===== */
.payOverlay{
  position:fixed; inset:0;
  display:flex;
  background: rgba(0,0,0,.55);
  align-items:center; justify-content:center;
  z-index:9999;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition: opacity .22s ease, visibility .22s ease;
  backdrop-filter: blur(2px);
}
.payOverlay.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.payCard{
  width:min(420px, calc(100% - 28px));
  border-radius:22px;
  padding:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(15,15,16,.96);
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
  text-align:center;
  transform: translateY(12px) scale(.985);
  transition: transform .22s ease;
}

.payOverlay.show .payCard{transform: translateY(0) scale(1)}
.payAnim{
  width:84px; height:84px;
  margin:6px auto 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center;
  position:relative;
  overflow:hidden;
}
.paySpinner{
  width:48px;height:48px;
  border-radius:999px;
  border:4px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.92);
  animation: spin 1s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.payCheck{
  width:44px;height:44px;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.24);
  display:flex; align-items:center; justify-content:center;
  animation: pop .35s ease-out both;
}
@keyframes pop{
  from{transform:scale(.6); opacity:.2}
  to{transform:scale(1); opacity:1}
}
.payTitle{font-weight:1000; font-size:16px}
.payText{opacity:.75; font-size:13px; margin-top:6px; line-height:1.35}
.payBtns{display:flex; gap:10px; margin-top:14px}
.payBtns .miniGhost{flex:1}


.payClose{position:absolute; right:12px; top:12px; width:36px; height:36px; border-radius:12px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); display:flex; align-items:center; justify-content:center}
.payClose:active{transform:scale(.98)}
.payCard{position:relative}
.paySubText{margin-top:8px; font-size:13px; color: rgba(255,255,255,.65)}

/* ===== Pages (tabs) ===== */
.page{display:none; animation: pageIn .28s ease-out both}
.page.show{display:block}
@keyframes pageIn{from{opacity:0;transform:translateY(10px) scale(.985);filter:blur(1px)}to{opacity:1;transform:translateY(0) scale(1);filter:none}}

.panelHeader{margin-top:6px;margin-bottom:14px;padding:18px 18px 14px;border-radius:26px;border:1px solid rgba(230,179,209,.14);background:linear-gradient(180deg, rgba(230,179,209,.12), rgba(204,136,184,.05));box-shadow:inset 0 1px 0 rgba(230,179,209,.08), 0 16px 34px rgba(230,179,209,.18);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);overflow:hidden;position:relative}
.panelHeader h1{margin:0;padding:0;font-size:26px;line-height:1.05;letter-spacing:.2px;font-weight:1000;color:var(--text)}
.panelHeader p{margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.35;max-width:290px}

/* Profile */
.profileHeader{display:flex;align-items:center;gap:12px;padding:10px 0 12px}
.avatar{width:62px;height:62px;border-radius:20px;border:1px solid rgba(230,179,209,.16);background:linear-gradient(180deg, rgba(230,179,209,.12), rgba(204,136,184,.06));display:flex;align-items:center;justify-content:center;font-weight:1000;font-size:22px;position:relative;overflow:hidden}
.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none}
.avatar.hasPhoto img{display:block}
.avatarFallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.avatar.hasPhoto .avatarFallback{display:none}
.profileHeadText{display:flex;flex-direction:column}
.profileName{font-weight:1000;font-size:20px}
.profileMeta{margin-top:4px;color:rgba(255,255,255,.68);font-size:13px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.metaIdLabel{opacity:.9}
.metaIdValue{font-weight:900;color:rgba(255,255,255,.82)}
.copySticker{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(230,179,209,.18);
  background: linear-gradient(180deg, rgba(230,179,209,.14), rgba(204,136,184,.07));
  color: rgba(255,255,255,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  cursor:pointer;
  position:relative;
  box-shadow: 0 10px 24px rgba(230,179,209,.25);
}
.copySticker:active{transform:translateY(1px) scale(.98)}
.copySticker.copied{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.30);
  animation: stickerPop .28s ease-out both;
}
.copySticker.copied::after{
  content:"Скопировано";
  position:absolute;
  top:-30px;
  right:0;
  font-size:11px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.72);
  color: rgba(255,255,255,.92);
  white-space:nowrap;
  box-shadow: 0 14px 32px rgba(0,0,0,.45);
  animation: stickerTip .75s ease-out both;
  pointer-events:none;
}
@keyframes stickerPop{
  from{transform:translateY(1px) scale(.92); opacity:.65}
  to{transform:translateY(0) scale(1); opacity:1}
}
@keyframes stickerTip{
  0%{transform:translateY(8px); opacity:0}
  25%{opacity:1}
  100%{transform:translateY(0); opacity:0}
}
.dot{opacity:.6;padding:0 2px}
.profileSection{margin-top:14px}
.sectionTitle{font-size:12px;font-weight:1000;letter-spacing:.25px;text-transform:uppercase;color:rgba(255,255,255,.70);margin:0 0 10px}

/* Rows like screenshot */
.supportList{display:flex;flex-direction:column;gap:10px}
.cardRow{width:100%;border-radius:20px;padding:16px;border:1px solid rgba(230,179,209,.14);background:linear-gradient(180deg, rgba(230,179,209,.10), rgba(204,136,184,.05));color:var(--text);display:flex;align-items:center;gap:12px;cursor:pointer;box-shadow:0 12px 28px rgba(230,179,209,.18)}
.cardRow:active{transform:translateY(1px)}
.rowIcon{width:52px;height:52px;border-radius:18px;border:1px solid rgba(230,179,209,.16);background:linear-gradient(180deg, rgba(230,179,209,.12), rgba(204,136,184,.06));display:flex;align-items:center;justify-content:center;font-size:18px;color:rgba(230,179,209,.95)}
.rowIcon svg{display:block; width:28px; height:28px}
.rowMain{flex:1;display:flex;flex-direction:column;gap:2px;text-align:left}
.rowTitle{font-weight:1000;font-size:15px}
.rowSub{color:var(--muted);font-size:13px}
.rowArrow{opacity:.75;font-size:22px;line-height:1}

/* History list */
.history{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.histItem{display:flex;justify-content:space-between;gap:12px;border:1px solid rgba(230,179,209,.14);background:linear-gradient(180deg, rgba(230,179,209,.10), rgba(204,136,184,.05));border-radius:18px;padding:14px;box-shadow:0 10px 24px rgba(230,179,209,.15)}
.histTitle{font-weight:1000}
.histMeta{color:var(--muted);font-size:13px;margin-top:4px}
.histRight{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.badge{font-size:12px;padding:7px 11px;border-radius:999px;border:1px solid rgba(230,179,209,.16);background:rgba(230,179,209,.08);font-weight:1000}
.badge.ok{background:rgba(230,179,209,.14)}
.badge.bad{opacity:.8}
.empty{color:var(--muted);font-size:14px;padding:10px 0}

/* Setup */
.setupArt{display:flex;justify-content:center;padding:12px 0 6px}
.plugIcon{width:116px;height:116px;border-radius:999px;border:1px solid rgba(230,179,209,.18);background:linear-gradient(180deg, rgba(230,179,209,.12), rgba(204,136,184,.06));display:flex;align-items:center;justify-content:center;font-size:38px;color:rgba(230,179,209,.92);box-shadow:0 16px 34px rgba(230,179,209,.20)}
.plugIcon svg{display:block; width:52px; height:52px}
.actions{display:flex;flex-direction:column;gap:10px;margin:10px 0 8px}
.btn{width:100%;border-radius:18px;padding:14px 14px;font-weight:900;cursor:pointer}
.btn.primary{border:0;background:linear-gradient(90deg, rgba(230,179,209,.24), rgba(204,136,184,.18));color:var(--text)}
.btn.ghost{border:1px solid rgba(230,179,209,.16);background:rgba(230,179,209,.08);color:var(--text)}
.btn:active{transform:translateY(1px)}

/* Modal blocks (FAQ style) */
.modalContent{margin-top:10px;color:rgba(242,242,242,.86);font-size:13px;line-height:1.45}
.modalBlock{border:1px solid rgba(230,179,209,.14);background:linear-gradient(180deg, rgba(230,179,209,.10), rgba(204,136,184,.05));border-radius:18px;padding:14px;box-shadow:0 8px 20px rgba(230,179,209,.12)}
.modalBlock + .modalBlock{margin-top:10px}
.modalBlockTitle{font-weight:1000;margin:0 0 8px 0}
.modalText{color:rgba(255,255,255,.76);font-size:13px;line-height:1.4}



/* ===== BW purchase overlay (integrated) ===== */
.bwPurchase{
  position:fixed;
  inset:0;
  z-index:5000;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow:auto;
  background:
    radial-gradient(1200px 800px at 30% -10%, rgba(255,179,217,.16), transparent 55%),
    radial-gradient(900px 700px at 110% 30%, rgba(255,105,180,.12), transparent 60%),
    linear-gradient(180deg, #1a1225, #1f1429 60%, #1a1225);
  opacity:0;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease;
}
.bwPurchase.bwVisible{opacity:1; transform: translateY(0)}

.bwHidden{display:none}
.bwPh{position:relative; padding-top:6px}
.bwClose{
  position:absolute; right:0; top:0;
  width:40px;height:40px;border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.bwTitle{font-size:42px; line-height:1.02; font-weight:1000; letter-spacing:-.02em}
.bwSub{margin-top:10px; font-size:14px; line-height:1.35; color: rgba(255,255,255,.65); max-width:36ch}

.bwStepCard{
  margin-top:18px; padding:16px; border-radius:24px;
  background: linear-gradient(180deg, rgba(255,179,217,.12), rgba(255,105,180,.06));
  border:1px solid rgba(255,179,217,.18);
  box-shadow: 0 12px 40px rgba(255,105,180,.25);
  backdrop-filter: blur(8px);
}
.bwStepTop{display:flex; align-items:center; gap:12px}
.bwStepNum{
  width:36px; height:36px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,179,217,.16);
  border:1px solid rgba(255,179,217,.28);
  font-weight:900;
  box-shadow: 0 4px 12px rgba(255,105,180,.2);
}
.bwStepName{font-weight:1000; font-size:16px}
.bwStepHint{margin-top:2px; font-size:12px; color: rgba(255,255,255,.45)}
.bwDots{margin-top:14px; display:flex; gap:10px; justify-content:space-between}
.bwDot{flex:1; height:6px; border-radius:999px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.06)}
.bwDot.bwOn{background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.18)}

.bwFlow{margin-top:16px; overflow:hidden}
.bwTrack{
  width:300%;
  display:flex;
  transform: translateX(0%);
  transition: transform 360ms cubic-bezier(.2,.9,.2,1);
}
.bwPage{width:33.3333%; padding-top:2px}

.bwGrid{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.bwPlan{
  position:relative;
  text-align:left;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(230,179,209,.12);
  background: linear-gradient(180deg, rgba(230,179,209,.08), rgba(204,136,184,.04));
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  color: rgba(245,230,240,.95);
  cursor:pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.bwPlan:active{transform:scale(.985)}
.bwPlan.bwSel{
  border-color: rgba(230,179,209,.32);
  background: linear-gradient(180deg, rgba(230,179,209,.14), rgba(204,136,184,.08));
  box-shadow: 0 12px 30px rgba(0,0,0,.30), 0 0 16px rgba(230,179,209,.12);
}
.bwPTitle{font-weight:1000; font-size:15px}
.bwPPrice{margin-top:10px; font-weight:1000; font-size:28px; letter-spacing:-.02em}
.bwPSub{margin-top:2px; font-size:12px; color: rgba(255,255,255,.65)}
.bwBestMark{
  position:absolute; right:12px; top:12px;
  width:28px;height:28px;border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(255,179,217,.28), rgba(255,105,180,.20));
  border:1px solid rgba(255,179,217,.35);
  font-size:14px;
  box-shadow: 0 4px 12px rgba(255,105,180,.3);
}
.bwCtaBar{margin-top:16px; display:flex; flex-direction:column; gap:10px}
.bwCta{
  height:52px; border-radius:16px;
  border:1px solid rgba(230,179,209,.28);
  background: linear-gradient(135deg, rgba(230,179,209,.88), rgba(204,136,184,.78));
  color:#0a0610;
  font-weight:1000; font-size:15px;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.30);
}
.bwCta:disabled{opacity:.55; cursor:not-allowed}
.bwGhost{
  height:44px; border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  font-weight:1000; font-size:14px;
  cursor:pointer;
}

.bwPayTop{display:flex; align-items:center; gap:10px; margin-bottom:12px}
.bwBack{
  width:42px;height:42px;border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.bwChev{font-size:22px; transform: translateY(-1px)}
.bwPayTitle{font-weight:1000; font-size:18px}
.bwPaySub{margin-top:2px; font-size:12px; color: rgba(255,255,255,.65)}

.bwPayList{display:flex; flex-direction:column; gap:10px; margin-top:8px}
.bwPayItem{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px; border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  color: rgba(255,255,255,.95);
  cursor:pointer;
}
.bwPayItem.bwSelected{border-color: rgba(255,255,255,.28); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03))}
.bwPayT{font-weight:1000; font-size:14px}
.bwPayS{margin-top:2px; font-size:12px; color: rgba(255,255,255,.65)}
.bwPayR{opacity:.8; font-size:20px; padding-left:6px}

.bwVer{
  position:fixed; right:12px; bottom: calc(10px + env(safe-area-inset-bottom,0px));
  font-size:11px; padding:4px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.30);
  color: rgba(255,255,255,.65);
  pointer-events:none;
}


@media (prefers-reduced-motion: reduce){
  .content{transition:none !important}
  .page{animation:none !important}
  .modal{transition:none !important}
  .modalInner{transition:none !important}
  .payOverlay{transition:none !important}
  .payCard{transition:none !important}
  .bwPurchase{transition:none !important}
  .navItem::after{transition:none !important}
  .hash::before,.hash::after{animation:none !important}
}

.page{display:none}.page.show{display:block}
#page-home,#page-profile,#page-support,#page-setup{padding-bottom:24px}
#page-setup{padding-bottom:40px}
.guidePage{display:flex;flex-direction:column;gap:14px}.guideSelectCard,.guideManual,.guideBlock,.refCard,.refHero{border:1px solid rgba(230,179,209,.14);background:linear-gradient(180deg, rgba(230,179,209,.10), rgba(204,136,184,.05));border-radius:22px;box-shadow:0 16px 34px rgba(230,179,209,.18)}

.modal.referralMode{align-items:center;padding:16px}.modal.referralMode .modalInner{max-width:360px;border-radius:28px;padding:18px 18px 16px;background:rgba(19,13,26,.98);border:1px solid rgba(230,179,209,.14)}.modal.referralMode .modalTitle{font-size:18px;line-height:1.05;letter-spacing:-.02em}.modal.referralMode .modalContent{margin-top:10px;color:rgba(255,255,255,.88)}
.refModal{display:flex;flex-direction:column;gap:12px}.refLead{color:rgba(255,255,255,.68);font-size:13px;line-height:1.35;max-width:280px}.refProfileCard,.refStat,.refCard{position:relative;border:1px solid rgba(230,179,209,.14);background:linear-gradient(180deg, rgba(230,179,209,.10), rgba(204,136,184,.05));border-radius:20px;box-shadow:0 14px 34px rgba(230,179,209,.22);overflow:hidden}.refProfileCard{padding:14px 14px 16px}.refHeader{display:flex;align-items:center;gap:12px}.refAvatar{width:58px;height:58px;border-radius:16px;overflow:hidden;border:1px solid rgba(230,179,209,.16);background:rgba(230,179,209,.08);display:flex;align-items:center;justify-content:center;font-weight:1000}.refAvatar img{width:100%;height:100%;object-fit:cover}.refIdentity{min-width:0;flex:1}.refName{font-size:18px;font-weight:1000;line-height:1.02;letter-spacing:-.02em;word-break:break-word}.refUser{margin-top:6px;font-size:13px;color:rgba(255,255,255,.66);word-break:break-word}.refSticker{width:44px;height:44px;border-radius:14px;border:1px solid rgba(230,179,209,.16);background:rgba(230,179,209,.08);display:flex;align-items:center;justify-content:center;flex:0 0 44px}.refSticker svg{width:18px;height:18px;stroke:#fff;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}.refStats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.refStat{padding:14px 14px 12px;min-height:104px;display:flex;flex-direction:column;justify-content:space-between}.refStat strong{display:block;font-size:22px;line-height:1;font-weight:1000;letter-spacing:-.03em}.refStat span{display:block;margin-top:10px;font-size:13px;line-height:1.2;color:rgba(255,255,255,.72)}.refCard{padding:14px}.refCardTitle{font-size:12px;line-height:1.1;text-transform:uppercase;letter-spacing:.03em;color:rgba(255,255,255,.64);font-weight:1000}.refLink{margin-top:10px;color:#fff;font-size:13px;line-height:1.45;word-break:break-all}.refCopyBtn{width:100%;margin-top:14px;min-height:48px;border-radius:16px;border:1px solid rgba(230,179,209,.18);background:linear-gradient(180deg, rgba(230,179,209,.16), rgba(204,136,184,.10));color:#fff;font-size:15px;font-weight:1000;cursor:pointer;box-shadow:inset 0 1px 0 rgba(230,179,209,.08)}.refCopyBtn:active{transform:translateY(1px)}.refCopyBtn.copied{border-color:rgba(230,179,209,.32);background:linear-gradient(180deg, rgba(230,179,209,.22), rgba(204,136,184,.14))}.refRules{color:rgba(255,255,255,.78);font-size:13px;line-height:1.45;padding:2px 2px 0}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.bwTrack{display:flex;width:300%;transition:transform .28s ease}.bwPage{width:33.3333%;padding:0 0 6px;flex:0 0 33.3333%;min-width:33.3333%}
.bwDevicesCard{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);padding:18px;border-radius:22px}.bwDevicesValue{font-size:18px;font-weight:900;margin-bottom:16px}.bwDevicesValue span:first-child{font-size:54px;line-height:1}.bwDevicesSliderWrap{position:relative;height:28px;margin:8px 0 10px}.bwDevicesRail,.bwDevicesFill{position:absolute;left:0;right:0;top:50%;height:8px;transform:translateY(-50%);border-radius:999px}.bwDevicesRail{background:rgba(255,255,255,.16)}.bwDevicesFill{right:auto;width:0;background:linear-gradient(90deg,#ffffff,#bdbdbd);box-shadow:0 0 18px rgba(255,255,255,.18)}
.bwDevicesRange{position:absolute;inset:0;width:100%;height:100%;appearance:none;background:transparent}.bwDevicesRange::-webkit-slider-thumb{appearance:none;width:28px;height:28px;border-radius:999px;background:#ffffff;border:3px solid #fff;box-shadow:0 0 0 6px rgba(255,255,255,.16),0 0 24px rgba(255,255,255,.28);cursor:pointer}.bwDevicesRange::-moz-range-thumb{width:28px;height:28px;border-radius:999px;background:#ffffff;border:3px solid #fff;box-shadow:0 0 0 6px rgba(255,255,255,.16),0 0 24px rgba(255,255,255,.28);cursor:pointer}.bwDevicesLabels{display:flex;justify-content:space-between;color:var(--muted);font-weight:700}.bwDevicesHint{margin-top:10px;color:var(--muted)}
.bwDots{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.bwDot{height:6px;border-radius:999px;background:rgba(255,255,255,.16)}.bwDot.bwOn{background:linear-gradient(90deg,#ffffff,#ffffff);box-shadow:0 0 16px rgba(255,255,255,.18)}
@media (max-width:520px){.guideTabs,.guideSelectGrid{grid-template-columns:1fr 1fr}.guideBlock{padding:14px}.guideBlockTitle{font-size:16px}}


/* Guide device chooser refresh */
.guideChooser{display:flex;flex-direction:column;gap:14px}
.guideChooserHero{
  position:relative;
  overflow:hidden;
  padding:18px 18px 20px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(280px 180px at 100% 0%, rgba(255,255,255,.09), transparent 60%),
    linear-gradient(180deg, rgba(18,18,22,.96), rgba(9,9,12,.94));
  box-shadow: var(--shadow);
}
.guideChooserHero::before,
.guideChooserHero::after{
  content:"";
  position:absolute;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  pointer-events:none;
}
.guideChooserHero::before{width:180px;height:360px;right:34px;top:-54px;transform:rotate(22deg)}
.guideChooserHero::after{width:210px;height:420px;right:-18px;top:-90px;transform:rotate(-18deg);opacity:.55}
.guideChooserKicker{position:relative;z-index:1;font-size:12px;font-weight:1000;letter-spacing:.24em;text-transform:uppercase;color:rgba(255,255,255,.66)}
.guideChooserTitle{position:relative;z-index:1;margin-top:10px;font-size:28px;line-height:.96;font-weight:1000;max-width:7ch}
.guideChooserText{position:relative;z-index:1;margin-top:12px;max-width:18ch;font-size:15px;line-height:1.38;color:rgba(255,255,255,.72)}
.guideChooserBadge{position:relative;z-index:1;display:inline-flex;align-items:center;margin-top:16px;padding:10px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);font-size:13px;font-weight:1000;color:rgba(255,255,255,.92)}
.guideChooserGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.guideDeviceTile{
  position:relative;
  overflow:hidden;
  min-height:112px;
  padding:16px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.11);
  background:
    radial-gradient(120px 90px at 100% 50%, rgba(255,255,255,.12), transparent 58%),
    linear-gradient(180deg, rgba(17,17,20,.96), rgba(7,7,10,.96));
  color:var(--text);
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  box-shadow: 0 16px 34px rgba(0,0,0,.34);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.guideDeviceTile::before{
  content:"";
  position:absolute;
  inset:auto -16px -30px auto;
  width:120px;height:120px;
  background:radial-gradient(circle, rgba(255,255,255,.14), transparent 65%);
  opacity:.65;
  pointer-events:none;
}
.guideDeviceTile:hover,.guideDeviceTile:focus-visible{transform:translateY(-1px);border-color:rgba(255,255,255,.18);box-shadow:0 18px 38px rgba(0,0,0,.42)}
.guideDeviceTile:active{transform:scale(.985)}
.guideDeviceIconWrap{
  position:relative;
  z-index:1;
  width:56px;height:56px;
  flex:0 0 56px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  display:flex;align-items:center;justify-content:center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.guideDeviceIconWrap svg{width:28px;height:28px;display:block;fill:#f3f3f3;opacity:.98}
.guideDeviceMeta{position:relative;z-index:1;flex:1;min-width:0}
.guideDeviceLabel{font-size:18px;line-height:1;font-weight:1000;letter-spacing:-.02em}
.guideDeviceCount{margin-top:8px;font-size:13px;line-height:1.1;font-weight:800;color:rgba(255,255,255,.62)}
.guideDeviceArrow{position:relative;z-index:1;align-self:flex-start;font-size:24px;line-height:1;color:rgba(255,255,255,.52)}
.guideDeviceTile.windows .guideDeviceIconWrap svg{width:26px;height:26px}
.guideDeviceTile.ios .guideDeviceIconWrap svg{width:24px;height:24px}
.guideDeviceTile.android .guideDeviceIconWrap svg{width:24px;height:24px}
.guideDeviceTile.linux .guideDeviceIconWrap svg{width:25px;height:25px}
@media (max-width:520px){
  .guideChooserTitle{font-size:24px}
  .guideChooserGrid{gap:10px}
  .guideDeviceTile{min-height:104px;padding:14px;border-radius:22px}
  .guideDeviceIconWrap{width:52px;height:52px;flex-basis:52px}
  .guideDeviceLabel{font-size:16px}
}

/* ===== Split subscription / devices ===== */
.deviceCard{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.20);
  border-radius:22px;
  padding:16px;
  overflow:hidden;
}
.deviceHero{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.deviceCount{font-size:24px;font-weight:1000;letter-spacing:-.02em}
.deviceSub{margin-top:4px;font-size:13px;color:rgba(255,255,255,.66)}
.devicePriceBadge{padding:8px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);font-size:12px;font-weight:900;white-space:nowrap}
.deviceNowRow{margin-top:14px;display:flex;justify-content:space-between;gap:12px;font-size:13px;color:rgba(255,255,255,.72)}
.deviceChoicesTitle{margin-top:14px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:rgba(255,255,255,.5)}
.deviceChoices{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.deviceChoice{padding:12px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:#fff;font-weight:800;cursor:pointer}
.deviceChoice.active{border-color:rgba(255,255,255,.34);background:rgba(255,255,255,.10)}
.deviceChoicesEmpty{width:100%;padding:14px 16px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:rgba(255,255,255,.58);font-size:13px}
.deviceMetaRow{margin-top:12px;display:flex;justify-content:space-between;gap:12px;font-size:13px;color:rgba(255,255,255,.72)}
.devicePayBtn{margin-top:14px}
.devicePayBtn:disabled{opacity:.55;cursor:not-allowed}

.bwCompactStep{margin-bottom:16px}
.bwPayTopSolo{margin-top:16px;margin-bottom:10px}
.bwSummaryCard{margin-top:14px;padding:14px 16px;border-radius:18px;border:1px solid rgba(255,255,255,.10);background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02))}
.bwSummaryTitle{font-size:13px;font-weight:1000;text-transform:uppercase;color:rgba(255,255,255,.62);margin-bottom:8px}
.bwSummaryLine{display:flex;justify-content:space-between;gap:12px;padding:6px 0;color:rgba(255,255,255,.82)}
.bwSummaryLine b{color:#fff}

.modal.paymentMode{align-items:center;padding:16px}
.modal.paymentMode .modalInner{max-width:360px;border-radius:28px;padding:18px 18px 22px;transform:translateY(0) scale(.96)}
.modal.paymentMode.show .modalInner{transform:translateY(0) scale(1)}
.paymentShell{padding-top:2px}
.paymentLead{color:#9ad9d0;font-size:14px;line-height:1.35;margin-bottom:18px}
.paymentSpinner{width:54px;height:54px;border-radius:999px;border:3px solid rgba(0,255,220,.18);border-top-color:#00d4c0;margin:10px auto 24px;animation:spin .9s linear infinite}
.paymentPrimary{width:100%;height:56px;border-radius:999px;border:0;background:#12d0b4;color:#fff;font-size:15px;font-weight:1000;cursor:pointer;box-shadow:0 12px 26px rgba(0,0,0,.34)}
.paymentPrimary:active{transform:translateY(1px)}
.paymentHint{margin-top:12px;text-align:center;color:rgba(255,255,255,.58);font-size:12px}
.paymentSuccess{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 0 2px;animation:fadeOutSuccess .9s ease 1.2s forwards}
.paymentSuccessIcon{width:72px;height:72px;border-radius:999px;border:2px solid rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;color:#fff}
.paymentSuccessText{margin-top:14px;font-size:15px;font-weight:900}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeOutSuccess{to{opacity:0;transform:scale(.96)}}

.modalPayList{margin-top:14px;margin-bottom:16px}

.deviceSliderLabelsTop{margin-top:18px;display:flex;justify-content:space-between;padding:0 6px;color:rgba(255,255,255,.72);font-size:20px;line-height:1;font-weight:500}
.deviceSliderWrap{position:relative;height:30px;margin-top:14px}
.deviceSliderRail,.deviceSliderFill{position:absolute;left:0;top:50%;transform:translateY(-50%);height:8px;border-radius:999px}.deviceSliderRail{right:0;background:rgba(255,255,255,.24)}.deviceSliderFill{width:0;background:linear-gradient(90deg,#f5f5f5,#d8d8d8);box-shadow:0 0 12px rgba(255,255,255,.18)}
.deviceSliderRange{position:absolute;inset:0;width:100%;height:100%;appearance:none;background:transparent;cursor:pointer}.deviceSliderRange::-webkit-slider-runnable-track{height:8px;background:transparent}.deviceSliderRange::-moz-range-track{height:8px;background:transparent}.deviceSliderRange::-webkit-slider-thumb{appearance:none;width:20px;height:20px;margin-top:5px;border-radius:999px;border:0;background:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.12),0 2px 10px rgba(0,0,0,.45)}.deviceSliderRange::-moz-range-thumb{width:20px;height:20px;border-radius:999px;border:0;background:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.12),0 2px 10px rgba(0,0,0,.45)}
.deviceResetNote{margin-top:10px;padding:12px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:rgba(255,255,255,.66);font-size:12px;line-height:1.4}
.devicePayBtn{margin-top:16px;min-height:72px}.devicePayBtn .ctaRight{text-align:right;min-width:92px}
.deviceChoicesTitle,.deviceChoices,.deviceChoice,.deviceChoicesEmpty{display:none !important}

.bwTariffSelection{padding:0 0 6px}
.bwTariffTitle{font-size:18px;font-weight:1000;margin-bottom:14px;color:var(--text)}
.bwTariffGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.bwTariffBtn{
  position:relative;
  text-align:left;
  padding:18px 16px;
  border-radius:18px;
  border:1px solid rgba(255,179,217,.16);
  background:linear-gradient(180deg, rgba(255,179,217,.10), rgba(255,105,180,.05));
  box-shadow:0 10px 26px rgba(255,105,180,.2);
  color:rgba(255,232,245,.95);
  cursor:pointer;
  transition:transform 140ms ease, border-color 140ms ease, background 140ms ease;
  min-height:90px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.bwTariffBtn:active{transform:scale(.985)}
.bwTariffBtn.bwSel{
  border-color:rgba(255,179,217,.42);
  background:linear-gradient(180deg, rgba(255,179,217,.18), rgba(255,105,180,.10));
  box-shadow:0 12px 30px rgba(255,105,180,.35), 0 0 20px rgba(255,179,217,.2);
}
.bwTariffLabel{font-weight:1000;font-size:16px;margin-bottom:4px}
.bwTariffDesc{font-size:12px;color:rgba(255,232,245,.68)}
.bwPayItem{width:100%;text-align:left;min-width:0}.bwPayL{flex:1;min-width:0}.bwPayT,.bwPayS{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modalInner{max-height:min(84vh,720px);overflow:auto}
.bwPurchase{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px));overflow:auto}
.bwFlow{overflow:hidden}

.bwDeviceHero{margin-bottom:6px}


/* UI fixes: renewal flow + slider alignment */
.bwPageGhost{visibility:hidden;pointer-events:none;opacity:0;display:block !important;}
.deviceSliderWrap{height:26px;}
.deviceSliderRange::-webkit-slider-thumb{margin-top:-6px;}
.deviceSliderRange::-moz-range-thumb{margin-top:0;}


/* ===== VPN panel compact refresh ===== */
body[data-page="home"] .content{
  padding-top:4px;
  padding-bottom:calc(104px + env(safe-area-inset-bottom, 0px));
}
body[data-page="home"] #page-home{
  min-height:calc(100dvh - 72px - 104px - env(safe-area-inset-bottom, 0px));
}
body[data-page="home"] #page-home .hero{
  min-height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;
  padding:16px;
}
body[data-page="home"] #page-home .heroLogo{padding:10px 0 6px;}
body[data-page="home"] #page-home .heroBrand{font-size:44px;}
body[data-page="home"] #page-home .heroTag{margin-top:6px;font-size:14px;letter-spacing:2.6px;}
body[data-page="home"] #page-home .cta{margin-top:10px;padding:15px 16px;}
body[data-page="home"] #page-home .secondary{margin-top:8px;padding:15px 16px;}
body[data-page="home"] #page-home .card{margin-top:10px;padding:12px;}
body[data-page="home"] #page-home .cardTitle{margin:0 0 6px;}
body[data-page="home"] #page-home .note{min-height:0;margin-top:6px;}
body[data-page="home"] #page-home .note:empty{display:none;}
body[data-page="home"] #page-home .rowBtns{margin-top:8px;gap:10px;}
body[data-page="home"] #page-home code{scrollbar-width:none;}
body[data-page="home"] #page-home code::-webkit-scrollbar{display:none;}

#page-setup{padding-bottom:28px}
.guideChooserHero{
  background: radial-gradient(700px 360px at 50% 18%, rgba(255,179,217,.20) 0%, rgba(255,105,180,.10) 40%, rgba(26,18,37,.35) 100%);
  border:1px solid rgba(255,179,217,.14);
  border-radius:28px;
  box-shadow:0 16px 40px rgba(255,105,180,.20);
}
.guideChooserHero::before,.guideChooserHero::after,.guideDeviceTile::before{border-color:rgba(255,179,217,.14)}
.guideDeviceTile{
  border:1px solid rgba(255,179,217,.16);
  background: linear-gradient(180deg, rgba(255,179,217,.14), rgba(255,105,180,.07));
  box-shadow: 0 16px 34px rgba(255,105,180,.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.guideDeviceIconWrap{
  background:linear-gradient(180deg, rgba(255,179,217,.14), rgba(255,105,180,.07));
  border-color:rgba(255,179,217,.16);
}
.guideDeviceArrow{color:rgba(255,179,217,.85)}

.deviceCard{
  background: radial-gradient(700px 300px at 50% 0%, rgba(255,179,217,.16), rgba(255,105,180,.08) 58%);
  border-color:rgba(255,179,217,.16);
  box-shadow: 0 16px 40px rgba(255,105,180,.2);
}
.deviceSliderLabelsTop{padding:0 2px;font-size:18px;font-weight:700;color:rgba(255,255,255,.58)}
.deviceSliderWrap{position:relative;height:36px;margin-top:12px;padding:0 2px}
.deviceSliderRail,.deviceSliderFill{top:50%;height:8px;transform:translateY(-50%)}
.deviceSliderRail{left:2px;right:2px;background:rgba(255,255,255,.16)}
.deviceSliderFill{left:2px;width:0;background:linear-gradient(90deg, rgba(255,179,217,.95), rgba(255,105,180,.75));box-shadow:0 0 20px rgba(255,179,217,.35)}
.deviceSliderRange{inset:0;appearance:none;-webkit-appearance:none;background:transparent;touch-action:pan-x;}
.deviceSliderRange:focus{outline:none}
.deviceSliderRange::-webkit-slider-runnable-track{height:36px;background:transparent}
.deviceSliderRange::-moz-range-track{height:36px;background:transparent;border:none}
.deviceSliderRange::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:24px;height:24px;margin-top:6px;border-radius:999px;border:1px solid rgba(255,179,217,.75);
  background:linear-gradient(180deg, #ffb3d9, #ff8dc7);
  box-shadow:0 0 0 6px rgba(255,179,217,.18), 0 10px 24px rgba(255,105,180,.35);
}
.deviceSliderRange::-moz-range-thumb{
  width:24px;height:24px;border-radius:999px;border:1px solid rgba(255,179,217,.75);
  background:linear-gradient(180deg, #ffb3d9, #ff8dc7);
  box-shadow:0 0 0 6px rgba(255,179,217,.18), 0 10px 24px rgba(255,105,180,.35);
}
.deviceSliderRange:disabled{cursor:not-allowed;opacity:.7}
.deviceMetaRow{margin-top:10px}
.deviceResetNote{margin-top:12px;background:rgba(255,255,255,.04)}
.devicePayBtn{margin-top:12px;min-height:64px}

@media (max-width: 420px){
  body[data-page="home"] #page-home .heroBrand{font-size:40px;}
  body[data-page="home"] #page-home .hero{padding:14px;}
  body[data-page="home"] #page-home .copy{padding:10px 10px;}
  body[data-page="home"] #page-home .miniBtn{padding:9px 11px;}
}


.loadingState,.emptyPanel{padding:22px 14px;border:1px solid rgba(230,179,209,.10);border-radius:18px;background:rgba(230,179,209,.05);color:var(--muted)}
.sheetList,.devicesSheet{display:flex;flex-direction:column;gap:12px}
.sheetItem,.deviceSheetItem{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-radius:18px;border:1px solid rgba(230,179,209,.14);background:linear-gradient(180deg, rgba(230,179,209,.10), rgba(204,136,184,.05));box-shadow:0 10px 30px rgba(230,179,209,.18)}
.sheetTitle,.deviceSheetTitle{font-weight:800;font-size:16px}
.sheetMeta,.deviceSheetMeta,.sheetAmount{font-size:13px;color:var(--muted);margin-top:4px}
.sheetAside{display:flex;flex-direction:column;align-items:flex-end;gap:8px;text-align:right}
.devicesTop{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:2px}
.devicesTopTitle{font-weight:800;color:var(--muted)}
.deviceSheetIcon{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(230,179,209,.14);background:rgba(230,179,209,.08);font-size:20px}
.deviceSheetMain{flex:1;min-width:0}
.deviceKickBtn,.inlineDanger{white-space:nowrap}
#devicesRow .rowIcon{font-size:20px;display:flex;align-items:center;justify-content:center}


.refSectionTitle{margin-top:16px;font-size:13px;font-weight:900;letter-spacing:.3px;text-transform:uppercase;color:rgba(230,179,209,.82)}
.refList{margin-top:10px;display:flex;flex-direction:column;gap:10px}
.refListItem{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:16px;border:1px solid rgba(230,179,209,.14);background:linear-gradient(180deg, rgba(230,179,209,.10), rgba(204,136,184,.05))}
.refListName{font-weight:800;color:var(--text)}
.refListMeta{margin-top:4px;font-size:12px;color:var(--muted)}
.refListBadge{flex:0 0 auto;padding:8px 10px;border-radius:999px;border:1px solid rgba(230,179,209,.16);background:rgba(230,179,209,.08);font-size:12px;font-weight:800}
.refEmpty{margin-top:10px;padding:14px;border-radius:16px;border:1px dashed rgba(230,179,209,.16);background:rgba(230,179,209,.06);color:var(--muted);font-size:14px}

/* ===== Guide detail page fixes ===== */
.guideChooserGrid{
  align-items:stretch;
}
.guideDeviceTile{
  min-width:0;
  justify-content:flex-start;
  align-items:center;
}
.guideDeviceTile .guideDeviceMeta{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}
.guideDeviceTile .guideDeviceLabel,
.guideDeviceTile .guideDeviceCount{
  overflow:hidden;
  text-overflow:ellipsis;
}
.guideDeviceTile .guideDeviceArrow{
  margin-left:auto;
  flex:0 0 auto;
}

.guideHeadRow{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:2px;
}
.guideHeadRow h1{
  margin:0;
  min-width:0;
  flex:1;
  font-size:38px;
  line-height:1;
  font-weight:1000;
  letter-spacing:-.03em;
}
.guideBackBtn{
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  flex:0 0 42px;
}
.guidePlatformPill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
  font-size:14px;
  font-weight:900;
  white-space:nowrap;
}
.guideTabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.guideTab{
  min-width:0;
  min-height:76px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(255,179,217,.16);
  background:linear-gradient(180deg, rgba(255,179,217,.10), rgba(255,105,180,.05));
  color:rgba(255,232,245,.95);
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  font-size:14px;
  line-height:1.15;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(255,105,180,.18);
}
.guideTab.active{
  border-color:rgba(255,179,217,.42);
  background:linear-gradient(180deg, rgba(255,179,217,.22), rgba(255,105,180,.12));
  box-shadow:0 0 0 1px rgba(255,179,217,.28) inset, 0 12px 28px rgba(255,105,180,.25);
}
.guideDot{
  width:10px;
  height:10px;
  border-radius:999px;
  flex:0 0 10px;
  background:#ffb3d9;
  box-shadow:0 0 0 3px rgba(255,179,217,.22);
}
.guideTab.active .guideDot{
  background:#ff69b4;
  box-shadow:0 0 0 4px rgba(255,105,180,.28);
}
.guideBlock{
  display:flex;
  gap:16px;
  padding:22px;
}
.guideIcon{
  width:52px;
  height:52px;
  border-radius:999px;
  flex:0 0 52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,179,217,.35);
  background:rgba(255,105,180,.14);
  color:#ffb3d9;
}
.guideIcon svg{
  width:24px;
  height:24px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.guideBlockBody{
  min-width:0;
  flex:1;
}
.guideBlockTitle{
  font-size:17px;
  line-height:1.2;
  font-weight:1000;
  letter-spacing:-.02em;
}
.guideBlockText{
  margin-top:10px;
  font-size:14px;
  line-height:1.55;
  color:rgba(255,255,255,.72);
}
.guideLinks{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.guideLinkBtn,
.guideAddBtn{
  min-height:46px;
  padding:12px 18px;
  border-radius:12px;
  border:1px solid rgba(255,179,217,.24);
  background:linear-gradient(180deg, rgba(255,179,217,.28), rgba(255,105,180,.18));
  color:#ffb3d9;
  text-decoration:none;
  font-size:14px;
  line-height:1.2;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow: 0 6px 16px rgba(255,105,180,.2);
}
.guideAddBtn{
  margin-top:16px;
  cursor:pointer;
}
.guideLinkBtn:hover,
.guideAddBtn:hover{
  border-color:rgba(255,179,217,.42);
  box-shadow: 0 8px 20px rgba(255,105,180,.3);
}

@media (max-width:520px){
  .guideHeadRow{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .guideHeadRow h1{
    order:2;
    flex:1 1 calc(100% - 54px);
    font-size:30px;
  }
  .guideBackBtn{
    order:1;
  }
  .guidePlatformPill{
    order:3;
    margin-left:54px;
  }
  .guideTabs{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .guideTab{
    min-height:64px;
    padding:12px;
    font-size:13px;
  }
  .guideBlock{
    padding:16px;
    gap:12px;
  }
  .guideIcon{
    width:44px;
    height:44px;
    flex-basis:44px;
  }
  .guideIcon svg{
    width:20px;
    height:20px;
  }
  .guideBlockText{
    font-size:13px;
    line-height:1.45;
  }
  .guideLinks{
    flex-direction:column;
  }
  .guideLinkBtn,
  .guideAddBtn{
    width:100%;
  }
}


/* femboy pastel theme - darker & softer */
body{background:radial-gradient(960px 560px at 50% 2%, rgba(230,179,209,.14) 0%, rgba(217,158,196,.08) 22%, rgba(22,16,31,.96) 56%, #0f0a15 100%),linear-gradient(180deg,#16101f 0%,#130d1a 55%,#0f0a15 100%);background-attachment:fixed;}
body[data-page="profile"] #page-profile, body[data-page="support"] #page-support, body[data-page="setup"] #page-setup{position:relative;}
body[data-page="profile"] #page-profile::before, body[data-page="support"] #page-support::before, body[data-page="setup"] #page-setup::before{content:"";position:absolute;inset:0 0 auto 0;height:320px;border-radius:30px;background:radial-gradient(680px 280px at 50% 0%, rgba(255,179,217,.18) 0%, rgba(255,105,180,.09) 38%, rgba(26,18,37,0) 100%);pointer-events:none;opacity:.95;}
body[data-page="profile"] .profileHeader{margin-top:6px;padding:14px 12px 16px;border-radius:26px;border:1px solid rgba(255,179,217,.14);background:linear-gradient(180deg, rgba(255,179,217,.12), rgba(255,105,180,.05));box-shadow:0 18px 40px rgba(255,105,180,.25), inset 0 1px 0 rgba(255,179,217,.10);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);}
body[data-page="profile"] .profileSection, body[data-page="support"] .supportList{display:flex;flex-direction:column;gap:14px;}
body[data-page="profile"] .cardRow, body[data-page="support"] .cardRow{background:linear-gradient(180deg, rgba(255,179,217,.12), rgba(255,105,180,.05)) !important;border:1px solid rgba(255,179,217,.16) !important;box-shadow:inset 0 1px 0 rgba(255,179,217,.08), 0 16px 34px rgba(255,105,180,.18) !important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);margin-bottom:0 !important;border-radius:22px !important;padding:17px 16px !important;}
body[data-page="profile"] .rowIcon, body[data-page="support"] .rowIcon, body[data-page="profile"] .avatar, body[data-page="profile"] .copySticker{background:linear-gradient(180deg, rgba(255,179,217,.14), rgba(255,105,180,.07)) !important;border:1px solid rgba(255,179,217,.18) !important;box-shadow:inset 0 1px 0 rgba(255,179,217,.08), 0 10px 24px rgba(255,105,180,.15) !important;}
.navbar{background:linear-gradient(180deg, rgba(15,10,21,0) 0%, rgba(15,10,21,.56) 24%, rgba(19,13,26,.84) 54%, rgba(22,16,31,.96) 100%) !important;}
.navItem{background:linear-gradient(180deg, rgba(230,179,209,.10), rgba(204,136,184,.05)) !important;border-color:rgba(230,179,209,.14) !important;box-shadow:inset 0 1px 0 rgba(230,179,209,.06), 0 14px 26px rgba(0,0,0,.18) !important;}
.navItem.active{background:linear-gradient(180deg, rgba(230,179,209,.16), rgba(204,136,184,.10)) !important;border-color:rgba(230,179,209,.28) !important;box-shadow:inset 0 1px 0 rgba(230,179,209,.10), 0 14px 26px rgba(0,0,0,.25) !important;}

.hidden{display:none !important}

.winnerModalBackdrop{
  position:fixed;
  inset:0;
  z-index:9000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  background:radial-gradient(circle at top, rgba(255,179,217,.28), rgba(26,18,37,.82) 62%);
  backdrop-filter:blur(10px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .28s ease, visibility .28s ease;
}
.winnerModalBackdrop.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.winnerModalCard{
  position:relative;
  width:min(430px, 100%);
  border-radius:30px;
  padding:26px 22px 22px;
  border:1px solid rgba(255,179,217,.28);
  background:linear-gradient(180deg, rgba(255,179,217,.22), rgba(37,24,50,.96) 18%, rgba(26,18,37,.98) 100%);
  box-shadow:0 28px 90px rgba(255,105,180,.35), inset 0 1px 0 rgba(255,179,217,.18);
  overflow:hidden;
  transform:translateY(26px) scale(.94);
  transition:transform .35s cubic-bezier(.2,.9,.2,1);
}
.winnerModalBackdrop.show .winnerModalCard{transform:translateY(0) scale(1)}
.winnerGlow{
  position:absolute;
  inset:-120px -120px auto;
  height:260px;
  background:radial-gradient(circle at 50% 50%, rgba(255,179,217,.35), rgba(255,105,180,.18) 45%, transparent 66%);
  pointer-events:none;
}
.winnerClose{
  position:absolute;
  top:14px;
  right:14px;
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.winnerBadge{
  display:inline-flex;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  font-size:12px;
  font-weight:1000;
  letter-spacing:.16em;
}
.winnerTitle{
  margin-top:18px;
  font-size:28px;
  line-height:1.05;
  font-weight:1000;
}
.winnerSubtitle{
  margin-top:10px;
  color:rgba(255,255,255,.72);
  font-size:14px;
  line-height:1.45;
}
.winnerPrizeMedia{
  margin-top:18px;
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.winnerPrizeMedia img{
  display:block;
  width:100%;
  aspect-ratio: 1.55 / 1;
  object-fit:cover;
}
.winnerPrizeName{
  margin-top:18px;
  font-size:22px;
  font-weight:1000;
}
.winnerPrizeDescription{
  margin-top:10px;
  color:rgba(255,255,255,.86);
  line-height:1.5;
}
.winnerPrizeHint{
  margin-top:14px;
  padding:14px 15px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.76);
  font-size:13px;
  line-height:1.45;
}
.winnerAction{
  margin-top:18px;
  width:100%;
  border:0;
  border-radius:20px;
  padding:16px;
  background:linear-gradient(135deg, rgba(255,179,217,.42), rgba(255,105,180,.28));
  color:#fff;
  font-size:15px;
  font-weight:1000;
  cursor:pointer;
  box-shadow: 0 8px 20px rgba(255,105,180,.3);
}
.winnerConfetti{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
}
.winnerConfettiPiece{
  position:absolute;
  top:-12px;
  width:8px;
  height:26px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,179,217,.95), rgba(255,105,180,.55));
  box-shadow:0 0 18px rgba(255,179,217,.5);
  animation:winnerFall linear infinite;
}
@keyframes winnerFall{
  0%{transform:translate3d(0,-40px,0) rotate(0deg); opacity:0}
  12%{opacity:1}
  100%{transform:translate3d(24px,520px,0) rotate(360deg); opacity:0}
}


.guideHeadRow{align-items:center;flex-wrap:nowrap}
.guideHeadRow h1{word-break:normal;overflow-wrap:anywhere}
.guidePlatformPill{margin-left:auto}
@media (max-width:520px){
  .guideHeadRow{align-items:flex-start;flex-wrap:wrap;gap:10px}
  .guideHeadRow h1{flex:1 1 calc(100% - 54px);font-size:22px;line-height:1.05}
  .guidePlatformPill{margin-left:54px;min-height:34px;padding:0 12px;font-size:12px;border-radius:12px}
  .guideBackBtn{width:38px;height:38px;flex:0 0 38px}
}

/* === setup page cleanup === */
.guideHeadCard{
  padding:18px;
  border:1px solid rgba(255,179,217,.16);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,179,217,.14), rgba(255,105,180,.07));
  box-shadow:0 16px 40px rgba(255,105,180,.20);
}
.guideHeadTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.guideHeadCard h1{
  margin:14px 0 0;
  font-size:30px;
  line-height:1.02;
  letter-spacing:-.03em;
}
.guideHeadText{
  margin-top:10px;
  font-size:14px;
  line-height:1.45;
  color:rgba(255,255,255,.72);
}
.guideTabs{
  display:flex !important;
  gap:10px;
  overflow:auto;
  padding-bottom:4px;
  scrollbar-width:none;
}
.guideTabs::-webkit-scrollbar{display:none}
.guideTab{
  min-width:160px;
  flex:0 0 auto;
}
.guideTabLabel{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media (max-width:520px){
  .guideChooserGrid{grid-template-columns:1fr}
  .guideHeadCard{padding:16px}
  .guideHeadCard h1{font-size:24px}
  .guideHeadText{font-size:13px}
  .guideHeadTop{align-items:flex-start}
  .guidePlatformPill{margin-left:auto}
  .guideTab{min-width:140px;min-height:58px;padding:12px}
}
