:root{
  --accent: #00d4ff;
  --accent2: #5eeaff;
  --display-font: 'Segoe UI', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --accent-glow: rgba(0,212,255,0.50);
  --accent-dim: rgba(0,212,255,0.16);
  --bg-base: #0a1628;
  --surface: rgba(16,36,68,0.58);
  --surface2: rgba(24,50,84,0.65);
  --border: rgba(0,200,255,0.13);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.50);
  --muted-2: rgba(255,255,255,0.28);
  --success: #00d278;
  --warn: #f59e0b;
  --danger: #ef4444;
  --danger-soft: #ff7d7d;
  --radius: 20px;
  --radius-sm: 13px;
  --btn-h: 56px;
  --pad: 16px;
  --maxw: 480px;
  --nav-h: 64px;
  --footer-h: 8px;
  --tg-screen-pad-top: env(safe-area-inset-top, 0px);
  --tg-content-safe-area-inset-left: env(safe-area-inset-left, 0px);
  --tg-content-safe-area-inset-right: env(safe-area-inset-right, 0px);
  --tg-content-safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;}
html{height:100%;}
body{
  font-family:'Inter',ui-sans-serif,system-ui,-apple-system,sans-serif;
  background:var(--bg-base);
  color:var(--text);height:100%;
  overflow:hidden;-webkit-font-smoothing:antialiased;
}

/* ── APP SHELL ── */
#app{position:fixed;inset:0;display:flex;flex-direction:column;overflow:hidden;}
#bg{position:fixed;inset:0;z-index:0;}
.bg-layer{position:absolute;inset:0;transition:opacity 0.7s ease;}
.bg-home{background:
  radial-gradient(circle at 50% 15%, rgba(0,180,240,.16) 0%, rgba(0,140,200,.06) 30%, transparent 55%),
  linear-gradient(180deg,#102a48 0%, #0c2038 38%, #0a1628 100%);
}
.bg-setup{background:
  radial-gradient(ellipse 100% 60% at 50% 0%,#103050 0%,#0c2240 45%,#0a1628 100%);
}
.bg-profile{background:
  radial-gradient(ellipse 100% 50% at 50% 0%,#0e2844 0%,#0b1e38 45%,#0a1628 100%);
}
.bg-support{background:
  radial-gradient(ellipse 100% 50% at 50% 0%,#0c3048 0%,#0a2238 45%,#0a1628 100%);
}

/* ── SCREEN ── */
.screen{
  position:relative;z-index:1;flex:1;overflow:hidden;
  padding-bottom:calc(var(--nav-h) + var(--footer-h) + 56px);
  display:flex;width:100%;
  padding-top:var(--tg-screen-pad-top);
  padding-left:var(--tg-content-safe-area-inset-left);
  padding-right:var(--tg-content-safe-area-inset-right);
}
.wrap{
  width:100%;max-width:var(--maxw);margin:0 auto;
  padding:var(--pad);padding-top:0;
  display:flex;flex-direction:column;gap:6px;
  overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.wrap::-webkit-scrollbar{display:none;}

/* Transitions */
@keyframes pushIn{from{opacity:0;transform:translateX(24px) scale(0.97);}to{opacity:1;transform:translateX(0) scale(1);}}
@keyframes popIn{from{opacity:0;transform:translateX(-24px) scale(0.97);}to{opacity:1;transform:translateX(0) scale(1);}}
.wrap.anim-push{animation:pushIn .35s cubic-bezier(0.22,1,0.36,1) both;}
.wrap.anim-pop{animation:popIn .28s ease both;}
@media(prefers-reduced-motion:reduce){.wrap.anim-push,.wrap.anim-pop{animation:none;}}

/* ── BOTTOM NAV ── */
#nav{
  position:fixed;
  left:50%;
  bottom:calc(var(--footer-h) + 12px + var(--tg-content-safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(calc(100vw - 28px), 392px);
  height:var(--nav-h);
  z-index:100;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:8px;
  background:linear-gradient(180deg,rgba(14,32,58,0.90),rgba(10,24,46,0.94));
  backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);
  border:1px solid rgba(0,200,255,0.16);
  border-radius:24px;
  box-shadow:0 14px 40px rgba(3,6,18,.34), inset 0 1px 0 rgba(255,255,255,.05);
}
#nav::before{
  content:"";
  position:absolute;
  inset:-8px -6px -2px;
  border-radius:30px;
  background:linear-gradient(180deg, rgba(18,15,37,0) 0%, rgba(18,15,37,.05) 46%, rgba(18,15,37,.12) 100%);
  filter:blur(8px);
  pointer-events:none;
  z-index:-1;
}
.ntab{
  position:relative;z-index:1;flex:1 1 0;width:auto;height:48px;border-radius:18px;
  border:1px solid rgba(0,200,255,0.12);background:rgba(255,255,255,0.02);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;
  transition:transform 0.28s cubic-bezier(0.34,1.56,0.64,1),background 0.25s ease,border-color 0.25s ease,box-shadow 0.25s ease;
  color:rgba(255,255,255,0.78);
}
.ntab svg{width:18px;height:18px;}
.ntab-label{font-size:9px;font-weight:700;font-family:var(--display-font);letter-spacing:.03em;text-transform:uppercase;line-height:1;white-space:nowrap;}
.ntab:active{transform:scale(0.9)!important;}
.ntab.active{
  background:linear-gradient(135deg,#00c4e0 0%,#48e0ff 100%);border-color:rgba(255,255,255,.10);
  box-shadow:0 10px 26px rgba(0,200,255,0.28), inset 0 1px 0 rgba(255,255,255,.12);
  color:#fff;
}
.ntab.active svg{width:20px;height:20px;}
.ntab:not(.active):hover{background:rgba(255,255,255,0.06);color:#f3fbff;}

/* ── HEADER ── */
.hdr{
  display:flex;align-items:center;padding:12px 0 14px;gap:8px;flex-shrink:0;
}
.hdr-back{
  background:none;border:none;cursor:pointer;color:rgba(223,245,255,.82);
  font-size:22px;padding:4px 8px 4px 0;line-height:1;transition:color .2s;
  display:flex;align-items:center;
}
.hdr-back svg{width:22px;height:22px;}
.hdr-back:hover{color:#fff;}
.hdr-title{color:#fff;font-size:18px;font-weight:800;flex:1;letter-spacing:-.01em;text-shadow:0 4px 16px rgba(25,98,173,.24);}
.hdr-btn{
  background:none;border:none;cursor:pointer;color:rgba(223,245,255,.82);
  font-size:20px;padding:4px;border-radius:8px;line-height:1;transition:color .2s;
}
.hdr-btn:hover{color:var(--text);}

/* ── HOME ── */
.home-body{
  flex:1;display:flex;flex-direction:column;align-items:stretch;
  justify-content:flex-start;padding:0 0 6px;gap:0;
  background:var(--home-bg);
  min-height:100%;
}
.home-wrap{gap:0;padding-top:0;padding-left:0;padding-right:0;min-height:100%;display:flex;flex-direction:column;}
.home-stage{
  min-height:0;
  height:calc(100vh - var(--tg-screen-pad-top) - var(--nav-h) - 34px - var(--tg-content-safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
  width:100%;
  max-width:420px;
  margin:0 auto;
}
#screen-home.screen,
#screen-home,
#screen-home .wrap,
#screen-home .home-wrap,
#screen-home .home-body{
  background:var(--home-bg) !important;
}
#screen-home.screen{
  padding-bottom:calc(var(--nav-h) + 18px + var(--tg-content-safe-area-inset-bottom)) !important;
}
#screen-home.screen::after{
  content:none;
}
.home-hero{
  position:relative;
  width:100%;
  overflow:visible;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:0;
  min-height:auto;
}
.home-hero-media{
  position:relative;
  width:220px;
  aspect-ratio:1 / 1;
  border-radius:50%;
  overflow:visible;
  z-index:1;
  background-image:url('/static/vpn/miniapp/hero-20260323.jpg');
  background-size:cover;
  background-position:center;
  box-shadow:
    0 0 0 1px rgba(182,172,255,.12),
    0 0 0 16px rgba(123,109,255,.06),
    0 20px 42px rgba(0,0,0,.24),
    0 0 82px rgba(123,109,255,.24);
  animation:heroOrbit 9.6s ease-in-out infinite;
}
.home-hero-media::before{
  content:"";
  position:absolute;
  inset:-28px;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(182,172,255,.28) 0%, rgba(123,109,255,.18) 34%, rgba(123,109,255,.10) 54%, rgba(123,109,255,0) 78%);
  filter:blur(14px);
  animation:heroPulse 5.4s ease-in-out infinite;
}
.home-hero-media::after{
  content:"";
  position:absolute;
  inset:-16px;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(182,172,255,0) 61%, rgba(182,172,255,.70) 72%, rgba(123,109,255,.30) 79%, rgba(123,109,255,0) 87%),
    conic-gradient(from 0deg, rgba(182,172,255,0) 0deg, rgba(182,172,255,.68) 46deg, rgba(182,172,255,0) 104deg, rgba(182,172,255,0) 210deg, rgba(182,172,255,.34) 262deg, rgba(182,172,255,0) 320deg);
  pointer-events:none;
  filter:drop-shadow(0 0 8px rgba(182,172,255,.55));
  animation:heroRing 10.5s linear infinite;
}
.home-hero-media img::before{
  content:none;
}
.home-hero-film{
  position:absolute;
  inset:-10px;
  border-radius:50%;
  pointer-events:none;
  z-index:3;
  overflow:hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 -18px 26px rgba(10,8,28,.18),
    inset 10px 10px 20px rgba(255,255,255,.05),
    inset -14px -18px 24px rgba(0,0,0,.12),
    0 0 0 1px rgba(255,255,255,.08);
}
.home-hero-film::before{
  content:"";
  position:absolute;
  inset:-10%;
  border-radius:50%;
  background:
    radial-gradient(circle at 26% 18%, rgba(255,255,255,.60) 0%, rgba(255,255,255,.24) 11%, rgba(255,255,255,0) 27%),
    radial-gradient(circle at 68% 78%, rgba(10,8,28,.24) 0%, rgba(10,8,28,.10) 17%, rgba(10,8,28,0) 36%),
    radial-gradient(circle at 50% 6%, rgba(255,255,255,.26) 0%, rgba(255,255,255,0) 28%),
    conic-gradient(from 0deg,
      rgba(255,255,255,0) 0deg,
      rgba(255,255,255,.10) 38deg,
      rgba(12,8,30,.16) 82deg,
      rgba(255,255,255,0) 132deg,
      rgba(255,255,255,0) 198deg,
      rgba(8,6,20,.18) 244deg,
      rgba(255,255,255,.06) 292deg,
      rgba(255,255,255,0) 338deg);
  opacity:.68;
  filter:blur(.8px);
}
.home-hero-film::after{
  content:"";
  position:absolute;
  inset:-18% -34%;
  border-radius:50%;
  background:
    radial-gradient(ellipse at 24% 8%, rgba(255,255,255,.52) 0%, rgba(255,255,255,.18) 9%, rgba(255,255,255,0) 22%),
    linear-gradient(110deg,
      rgba(255,255,255,0) 24%,
      rgba(255,255,255,.04) 34%,
      rgba(255,255,255,.18) 46%,
      rgba(255,255,255,.05) 58%,
      rgba(255,255,255,0) 70%),
    radial-gradient(ellipse at 64% -10%, rgba(255,255,255,.24) 0%, rgba(255,255,255,0) 34%);
  opacity:.52;
  transform:translate3d(-22%,-28%,0) rotate(12deg);
  filter:blur(.35px);
  animation:heroFilmDrift 4.6s ease-in-out infinite;
}
.home-hero-film > span{
  display:none;
}
.home-hero-film .hero-droplet{
  position:absolute;
  top:12%;
  left:58%;
  width:22%;
  height:30%;
  border-radius:48% 52% 58% 42% / 34% 34% 66% 66%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.58) 0%, rgba(255,255,255,.18) 18%, rgba(255,255,255,0) 34%),
    radial-gradient(circle at 52% 56%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 48%),
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.02) 56%, rgba(0,0,0,.10) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -8px 12px rgba(8,6,20,.14),
    0 0 14px rgba(255,255,255,.10);
  opacity:.62;
  transform:translate3d(0,0,0) rotate(10deg);
  filter:blur(.2px);
  animation:heroDropletRun 4.6s ease-in-out infinite;
}
.home-hero-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  position:relative;
  z-index:2;
  opacity:.96;
  transform:scale(1.035) translate3d(0,0,0);
  animation:heroImageFloat 6.2s ease-in-out infinite;
}
.home-hero::after{
  content:none;
}
@keyframes heroOrbit{
  0%,100%{transform:translateY(0) scale(1);}
  50%{transform:translateY(7px) scale(1.018);}
}
@keyframes heroPulse{
  0%,100%{opacity:.64;transform:scale(1);}
  50%{opacity:1;transform:scale(1.08);}
}
@keyframes heroRing{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}
@keyframes heroImageFloat{
  0%,100%{transform:scale(1.035) translate3d(0,0,0);}
  25%{transform:scale(1.05) translate3d(-3px,2px,0);}
  50%{transform:scale(1.04) translate3d(2px,6px,0);}
  75%{transform:scale(1.048) translate3d(4px,1px,0);}
}
@keyframes heroFilmDrift{
  0%,100%{transform:translate3d(-22%,-28%,0) rotate(12deg);opacity:.72;}
  40%{transform:translate3d(2%,-4%,0) rotate(9deg);opacity:.98;}
  72%{transform:translate3d(-4%,14%,0) rotate(13deg);opacity:.82;}
}
@keyframes heroDropletRun{
  0%{transform:translate3d(6%,-6%,0) rotate(12deg) scale(.92);opacity:.22;}
  12%{transform:translate3d(1%,2%,0) rotate(10deg) scale(1);opacity:.84;}
  38%{transform:translate3d(-10%,24%,0) rotate(7deg) scale(1.06,.98);opacity:.92;}
  62%{transform:translate3d(-18%,48%,0) rotate(2deg) scale(.98,1.08);opacity:.82;}
  82%{transform:translate3d(-24%,66%,0) rotate(-4deg) scale(.92,1.12);opacity:.38;}
  100%{transform:translate3d(-28%,78%,0) rotate(-8deg) scale(.86,1.16);opacity:.06;}
}
.pulse-wrap{
  position:relative;width:100%;
  display:flex;align-items:center;justify-content:center;
}
.ring{display:none;}
.r1,.r2,.r3{display:none;}
.orb-glow{display:none;}

.shield-orb{
  width:100%;
  display:flex;align-items:center;justify-content:center;z-index:1;
}
.shield-orb img{
  width:100%;height:auto;display:block;
  filter:drop-shadow(0 0 40px rgba(0,200,255,.20));
}
.shield-orb svg{width:160px;height:160px;color:#fff;filter:drop-shadow(0 0 20px rgba(0,200,255,.2));padding:60px 0;}

.status-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;max-width:348px;margin:0 auto 16px;flex-wrap:nowrap;
}
.home-status-row{
  align-items:flex-end;
  margin-top:0;
  margin-bottom:10px;
}
.home-status-copy{
  text-align:left;
  flex:1;
  min-width:0;
}
.home-controls{
  width:100%;
  max-width:380px;
  margin:0 auto;
  padding:0 var(--pad) 12px;
  position:relative;
  z-index:4;
  margin-top:0;
}
#screen-home .home-controls{
  padding-bottom:12px !important;
}
.home-controls::before{
  content:none;
}
.expiry{color:#fff;font-size:18px;font-weight:800;line-height:1.08;letter-spacing:-.025em;text-shadow:0 8px 20px rgba(8,36,82,.28);}
.online{color:#dff6ff;font-size:12px;font-weight:700;margin-top:3px;text-shadow:0 4px 12px rgba(8,36,82,.22);}
.home-date-block{text-align:center;margin-bottom:6px;}
.home-expiry-lg{font-size:22px;font-weight:800;letter-spacing:-.03em;}
.home-online-lg{font-size:15px;font-weight:700;margin-top:5px;letter-spacing:.02em;}
.home-online-lg.is-active{color:var(--accent2);text-shadow:0 0 12px rgba(0,200,255,.30);}
.home-online-lg.is-inactive{color:var(--muted);}
.home-device-row{display:flex;justify-content:center;margin-bottom:8px;}
.chip{
  background:rgba(16,36,68,.56);border:1px solid rgba(0,200,255,.16);border-radius:999px;
  min-height:38px;padding:8px 14px;font-size:13px;font-weight:700;color:#fff;
  display:flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap;
  transition:background .2s,transform .12s ease, border-color .2s;
}
.chip:hover{background:rgba(24,50,84,.72);border-color:rgba(0,200,255,.22);}
.chip:active{transform:scale(.98);}
.home-chip{
  padding-left:16px;
  padding-right:12px;
  background:rgba(16,36,68,.62);
  box-shadow:0 12px 26px rgba(8,8,24,.18);
  pointer-events:auto;
}
.home-chip-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  opacity:.9;
}

.btns{width:100%;max-width:348px;display:flex;flex-direction:column;gap:12px;padding-bottom:16px;}
.home-btns{
  margin-top:0;
  gap:10px;
}
.home-primary-actions{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:6px;
}
.home-primary-btn{
  width:100%;
  min-height:68px;
  border:none;
  border-radius:22px;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:12px;
  background:
    radial-gradient(circle at 16% 50%, rgba(0,214,255,.12) 0%, rgba(0,214,255,0) 24%),
    linear-gradient(145deg, rgba(10,34,70,.92), rgba(34,22,82,.92));
  border:1px solid rgba(124,236,255,.24);
  box-shadow:0 16px 34px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.18);
  color:#fff;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
  position:relative;
  overflow:hidden;
}
.home-primary-btn:hover{
  border-color:rgba(124,236,255,.24);
  box-shadow:0 18px 38px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(124,236,255,.04);
}
.home-primary-btn:active{transform:scale(.98);}
.home-primary-btn-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  background:linear-gradient(180deg, rgba(0,228,255,.24), rgba(0,184,255,.08));
  border:1px solid rgba(124,236,255,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10), 0 8px 16px rgba(0,180,255,.12);
}
.home-primary-btn-copy{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
}
.home-primary-btn-title{
  display:block;
  font-size:17px;
  font-weight:800;
  font-family:var(--display-font);
  letter-spacing:-.045em;
  line-height:1.08;
}
.home-primary-btn-sub{
  display:block;
  font-size:10px;
  font-family:var(--display-font);
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(224,247,255,.46);
  line-height:1.18;
}
.home-primary-btn-meta,
.home-primary-btn-tail{
  flex:0 0 auto;
  min-height:34px;
  padding:0 12px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(124,236,255,.30);
  background:linear-gradient(180deg, rgba(6,56,92,.92), rgba(8,124,176,.34));
  color:#bdfbff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10), 0 8px 18px rgba(0,180,255,.14);
  font-family:var(--display-font);
  letter-spacing:-.03em;
  font-weight:700;
}
.home-primary-btn-tail svg{width:18px;height:18px;}
.home-primary-btn--plans::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(108deg, rgba(255,255,255,0) 20%, rgba(105,247,255,.04) 36%, rgba(105,247,255,.18) 50%, rgba(105,247,255,.05) 62%, rgba(255,255,255,0) 76%);
  transform:translateX(-120%);
  animation:btnSheen 4.6s ease-in-out infinite;
  pointer-events:none;
}
.home-primary-btn--plans{
  border-color:rgba(84,235,255,.26);
}
.home-primary-btn--plans::after{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:21px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 36%);
  pointer-events:none;
}
.home-secondary-actions{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.home-secondary-btn{
  min-width:0;
  min-height:58px;
  border:none;
  border-radius:18px;
  padding:10px 10px 9px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 36%),
    linear-gradient(145deg, rgba(14,38,72,.88), rgba(30,22,74,.88));
  border:1px solid rgba(124,236,255,.18);
  box-shadow:0 10px 22px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.04), inset 0 -1px 0 rgba(0,0,0,.16);
  color:#fff;
  cursor:pointer;
  transition:transform .12s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-secondary-btn:hover{
  border-color:rgba(124,236,255,.20);
  box-shadow:0 14px 26px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06);
}
.home-secondary-btn:active{transform:scale(.98);}
.home-secondary-btn-icon{
  width:28px;
  height:28px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  background:linear-gradient(180deg, rgba(0,228,255,.22), rgba(0,208,255,.06));
  border:1px solid rgba(124,236,255,.22);
}
.home-secondary-btn-title{
  display:block;
  font-size:13px;
  font-weight:800;
  font-family:var(--display-font);
  letter-spacing:-.04em;
  line-height:1.1;
}
.home-secondary-btn-sub{
  display:block;
  font-size:10px;
  font-family:var(--display-font);
  letter-spacing:.06em;
  text-transform:uppercase;
  line-height:1.15;
  color:rgba(224,247,255,.42);
}
.foot{
  display:none;
}

/* ── BUTTONS ── */
.btn-a{
  width:100%;min-height:56px;border:1px solid rgba(84,235,255,.28);border-radius:24px;padding:17px 18px;color:#fff;
  font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;
  background:
    linear-gradient(135deg, rgba(14,43,77,.86) 0%, rgba(36,24,86,.88) 100%);
  box-shadow:0 12px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
  position:relative;overflow:hidden;
  transition:filter .2s,transform .12s,box-shadow .2s,border-color .2s;animation:abreathe 5.4s ease-in-out infinite;
}
@keyframes abreathe{0%,100%{box-shadow:0 8px 24px rgba(0,200,255,.16), inset 0 1px 0 rgba(255,255,255,.08);}50%{box-shadow:0 12px 32px rgba(0,200,255,.28), inset 0 1px 0 rgba(255,255,255,.12);}}
.btn-a:hover{filter:brightness(1.1);}
.btn-a:active{transform:scale(.975);}
.btn-a::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(108deg, rgba(255,255,255,0) 24%, rgba(105,247,255,.06) 38%, rgba(105,247,255,.22) 50%, rgba(105,247,255,.08) 60%, rgba(255,255,255,0) 72%);
  transform:translateX(-120%);
  animation:btnSheen 4.6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes btnSheen{
  0%,14%{transform:translateX(-120%);}
  50%{transform:translateX(120%);}
  50.0001%,64%{transform:translateX(120%);}
  100%{transform:translateX(-120%);}
}

.btn-b{
  width:100%;min-height:56px;border:1px solid rgba(0,200,255,.16);border-radius:22px;
  padding:17px 20px;color:#fff;font-family:inherit;font-size:15px;font-weight:700;
  cursor:pointer;display:flex;align-items:center;justify-content:space-between;
  background:rgba(16,36,68,.56);transition:background .2s,transform .12s,border-color .2s;
}
.btn-b:hover{background:rgba(24,50,84,.72);border-color:rgba(0,200,255,.22);}
.btn-b:active{transform:scale(.975);}

.blhs{display:flex;align-items:center;gap:12px;position:relative;z-index:1;}
.bico{
  width:40px;height:40px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;
  font-size:18px;line-height:1;flex:0 0 40px;
  background:linear-gradient(180deg, rgba(0,208,255,.18), rgba(0,208,255,.08));
  border:1px solid rgba(84,235,255,.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}
.btn-main-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px;}
.btn-main-title{display:block;font-size:15px;font-weight:800;line-height:1.1;}
.btn-main-sub{display:block;font-size:12px;font-weight:600;color:rgba(224,247,255,.58);line-height:1.1;}
.bprice{
  position:relative;z-index:1;
  font-size:13px;font-weight:800;color:#9cf7ff;
  min-height:36px;padding:0 14px;border-radius:14px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(84,235,255,.24);
  background:linear-gradient(180deg, rgba(3,40,68,.72), rgba(0,87,136,.36));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.home-btns .btn-a,
.home-btns .btn-b{
  min-height:72px;
  border-radius:24px;
  padding:0 16px;
}
.home-btns .btn-b{
  background:linear-gradient(180deg,rgba(24,50,84,.72),rgba(16,36,68,.58));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px rgba(8,8,24,.12);
}
.home-btns .btn-b .blhs{
  gap:12px;
}

/* ── LEGACY btn compat ── */
.btn{
  width:100%;height:var(--btn-h);border-radius:var(--radius);border:1px solid var(--border);
  background:var(--surface);color:var(--text);font-size:15px;font-weight:800;
  display:flex;align-items:center;justify-content:space-between;padding:0 14px;
  cursor:pointer;transition:transform .12s ease,filter .12s ease,background .12s ease;flex:0 0 auto;
}
.btn:active{transform:scale(.98);filter:brightness(1.05);}
.btn .left{display:flex;align-items:center;gap:10px;}
.btn .meta{font-size:13px;color:var(--muted);font-weight:700;}
.btn .icon{width:20px;height:20px;display:flex;align-items:center;justify-content:center;}
.btn .icon svg{width:20px;height:20px;}
.btn.primary{
  background:linear-gradient(135deg,var(--accent) 0%,var(--accent2) 100%);
  border:0;box-shadow:0 8px 20px rgba(0,200,255,.18);position:relative;overflow:hidden;
}
.btn.primary::after{
  content:"";position:absolute;inset:-60% -40%;
  background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.18),transparent 55%);
  transform:translate3d(-20%,-10%,0);animation:glowMove 2.4s ease-in-out infinite;pointer-events:none;
}
@keyframes glowMove{0%{transform:translate3d(-22%,-10%,0);opacity:.5;}50%{transform:translate3d(10%,10%,0);opacity:.75;}100%{transform:translate3d(-22%,-10%,0);opacity:.5;}}
.btn.secondary{background:var(--surface);}
.btn[disabled],.btn.is-disabled{opacity:.4;filter:saturate(.7);cursor:not-allowed;}
.btn[disabled]::after{display:none;}
.btn[disabled]:active{transform:none;filter:none;}

/* ── CARD ── */
.card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:14px 16px;
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
}

/* ── MGROUP (profile menu groups) ── */
.mgroup{background:var(--surface);border:1px solid var(--border);border-radius:18px;overflow:hidden;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);}
.mrow{
  display:flex;align-items:center;gap:14px;padding:14px 16px;cursor:pointer;
  border-bottom:1px solid rgba(255,255,255,.05);transition:background .18s;
}
.mrow:last-child{border-bottom:none;}
.mrow:hover{background:rgba(255,255,255,.05);}
.mrow:active{background:rgba(255,255,255,.09);}
.mico{
  width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;
}
.mtitle{color:#fff;font-size:15px;font-weight:500;}
.msub{color:var(--muted);font-size:12px;margin-top:2px;}
.marrow{margin-left:auto;color:rgba(255,255,255,.2);font-size:18px;}

/* ── USER CARD ── */
.ucard{
  background:var(--surface);border:1px solid var(--border);border-radius:18px;
  padding:14px 16px;display:flex;align-items:center;gap:14px;cursor:pointer;
  transition:background .2s;margin-bottom:6px;
}
.ucard:hover{background:var(--surface2);}
.ava{
  width:46px;height:46px;border-radius:50%;
  background:linear-gradient(135deg,var(--accent),#48cae4);
  display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:700;color:#fff;flex-shrink:0;
}
.uname{color:#fff;font-size:16px;font-weight:600;}
.uid{color:var(--muted);font-size:12px;margin-top:3px;}
.copic{margin-left:auto;color:var(--muted);font-size:20px;cursor:pointer;transition:color .2s;}
.copic:hover{color:#fff;}

/* ── SECTION HEADER ── */
.sh{color:var(--muted);font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin:4px 0 6px;padding:0 4px;}

/* ── REFERRAL BOX ── */
.refbox{
  background:var(--surface);border:1px solid var(--border);border-radius:16px;
  padding:14px 16px;display:flex;align-items:center;gap:12px;
}
.refurl{color:#fff;font-size:14px;font-weight:500;word-break:break-all;}
.refdesc{color:var(--muted);font-size:12px;margin-top:3px;}
.refcop{color:var(--muted);font-size:20px;cursor:pointer;flex-shrink:0;transition:color .2s;}
.refcop:hover{color:#fff;}

/* ── PLAN GRID ── */
.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.plan-card{
  background:var(--surface);border:1.5px solid var(--border);border-radius:18px;
  padding:16px 14px;cursor:pointer;position:relative;overflow:hidden;
  transition:border-color .2s,background .2s,transform .15s;
}
.plan-card:active{transform:scale(.97);}
.plan-card.selected{border-color:var(--accent);background:rgba(0,200,255,0.10);}
.plan-badge{position:absolute;top:10px;right:10px;font-size:15px;}
.plan-period{color:var(--muted);font-size:13px;font-weight:500;margin-bottom:6px;}
.plan-price{color:#fff;font-size:24px;font-weight:800;margin-bottom:4px;}
.plan-per{color:var(--muted);font-size:12px;}
.plan-card.selected .plan-period{color:var(--accent2);}

/* ── PAY BUTTON ── */
.pay-btn{
  width:100%;border:none;border-radius:var(--radius);padding:17px 22px;color:#fff;
  font-family:inherit;font-size:16px;font-weight:700;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;
  background:linear-gradient(135deg,#00c4e0,#00a0c8);
  transition:filter .2s,transform .12s;animation:abreathe 3.6s ease-in-out infinite;
}
.pay-btn:hover{filter:brightness(1.1);}
.pay-btn:active{transform:scale(.975);}
.pay-old{text-decoration:line-through;opacity:.55;font-size:14px;margin-left:6px;}

/* ── DEVICE ROW ── */
.dev-row{
  background:var(--surface);border:1px solid var(--border);border-radius:16px;
  padding:14px 16px;display:flex;align-items:center;gap:14px;
}
.dev-num{
  width:36px;height:36px;border-radius:50%;
  background:linear-gradient(135deg,#00c4e0,#52d8f0);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:700;color:#fff;flex-shrink:0;
}
.dev-name{color:#fff;font-size:15px;font-weight:600;}
.dev-sub{color:var(--muted);font-size:12px;margin-top:2px;}
.dev-change{
  background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.15);
  border-radius:10px;padding:7px 14px;color:#fff;font-size:13px;font-weight:500;
  cursor:pointer;font-family:inherit;transition:background .2s;
}
.dev-change:hover{background:rgba(255,255,255,0.2);}

.purchase-body{
  padding:0 0 24px;
  overflow-y:auto;
  flex:1;
  display:flex;
  flex-direction:column;
}

.purchase-dev-row{
  margin-bottom:14px;
}

.purchase-plan-grid{
  margin-bottom:16px;
}

/* ── TOGGLE ── */
.toggle{
  width:48px;height:26px;border-radius:13px;background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.15);position:relative;cursor:pointer;
  flex-shrink:0;transition:background .25s,border-color .25s;
}
.toggle.on{background:var(--accent);border-color:var(--accent);}
.toggle-knob{
  position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;
  background:#fff;transition:transform .25s;box-shadow:0 1px 4px rgba(0,0,0,0.3);
}
.toggle.on .toggle-knob{transform:translateX(22px);}

/* ── FAQ ACCORDION ── */
.faq-list{display:flex;flex-direction:column;gap:8px;}
.faq-item{
  background:var(--surface);border:1px solid var(--border);border-radius:16px;
  overflow:hidden;transition:border-color .2s;
}
.faq-item.open{border-color:rgba(0,180,216,0.4);}
.faq-q{padding:15px 16px;display:flex;align-items:center;gap:12px;cursor:pointer;user-select:none;}
.faq-num{
  width:26px;height:26px;border-radius:8px;background:var(--accent-dim);
  color:var(--accent2);font-size:12px;font-weight:700;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.faq-item.open .faq-num{background:var(--accent);color:#fff;}
.faq-qtext{color:#fff;font-size:14px;font-weight:600;flex:1;line-height:1.4;}
.faq-arrow{color:var(--muted);font-size:16px;flex-shrink:0;transition:transform .25s;}
.faq-item.open .faq-arrow{transform:rotate(90deg);color:var(--accent2);}
.faq-body{max-height:0;overflow:hidden;transition:max-height .3s ease,padding .3s ease;padding:0 16px;}
.faq-item.open .faq-body{max-height:600px;padding:0 16px 15px;}
.faq-ans{color:var(--muted);font-size:13px;line-height:1.7;border-top:1px solid var(--border);padding-top:12px;}
.faq-ans b{color:rgba(255,255,255,0.8);font-weight:600;}

/* legacy FAQ compat */
.faq-question{padding:14px 16px;font-weight:800;font-size:13px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;}
.faq-chevron{transition:transform .2s ease;width:14px;height:14px;color:var(--muted-2);}
.faq-chevron svg{width:14px;height:14px;}
.faq-item.open .faq-chevron{transform:rotate(180deg);}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .25s ease,padding .25s ease;padding:0 16px;font-size:12px;color:var(--muted);line-height:1.5;}
.faq-item.open .faq-answer{max-height:300px;padding:0 16px 14px;}

/* ── PLATFORM CARDS ── */
.platform-card{
  background:var(--surface);border:1.5px solid var(--border);
  border-radius:18px;padding:18px 14px;cursor:pointer;text-align:center;
  transition:background .2s,border-color .2s,transform .15s;
}
.platform-card:hover{background:var(--surface2);border-color:rgba(0,180,216,0.4);}
.platform-card:active{transform:scale(.96);}

/* ── APP CARDS ── */
.app-card{
  background:var(--surface);border:1px solid var(--border);border-radius:16px;
  padding:14px 16px;display:flex;align-items:center;gap:14px;
  text-decoration:none;transition:background .2s,transform .15s;cursor:pointer;
}
.app-card:hover{background:var(--surface2);}
.app-card:active{transform:scale(.98);}
.app-ico{
  width:46px;height:46px;border-radius:12px;background:var(--accent-dim);
  border:1px solid rgba(0,180,216,0.25);display:flex;align-items:center;
  justify-content:center;font-size:22px;flex-shrink:0;
}
.app-name{color:#fff;font-size:15px;font-weight:600;}
.app-desc{color:var(--muted);font-size:12px;margin-top:2px;}
.app-arrow{margin-left:auto;color:var(--accent2);font-size:18px;flex-shrink:0;}

/* ── INSTRUCTION STEPS ── */
.instruction-step{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.05);}
.instruction-step:last-child{border-bottom:none;}
.instruction-step-num{
  width:28px;height:28px;border-radius:8px;background:var(--accent-dim);
  border:1px solid rgba(0,180,216,.25);display:flex;align-items:center;justify-content:center;
  font-weight:1000;font-size:13px;flex:0 0 auto;color:var(--accent2);
}
.instruction-step-body{flex:1;}
.instruction-step-title{font-weight:800;font-size:13px;}
.instruction-step-desc{font-size:12px;color:var(--muted);margin-top:2px;line-height:1.4;}

/* ── SECTION TITLES ── */
.section-title{font-weight:900;font-size:16px;margin-top:2px;}
.section-sub{margin-top:4px;color:var(--muted);font-size:13px;line-height:1.45;}
.section-title-lg{font-weight:900;font-size:18px;letter-spacing:-.01em;line-height:1.2;}
.section-sub-lg{color:var(--muted);font-size:13px;line-height:1.4;margin-top:4px;}

/* ── HINT ── */
.hint{font-size:12px;color:var(--muted-2);padding:0 2px;text-align:center;}
.home-hint{
  display:none;
}

/* ── HERO (inner pages) ── */
.hero{
  height:160px;display:flex;align-items:center;justify-content:center;
  border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);
}
.hero svg{width:64px;height:64px;opacity:.9;}
.hero-box{
  height:170px;display:flex;align-items:center;justify-content:center;
  border-radius:var(--radius);background:var(--surface);border:1px solid rgba(255,255,255,.12);
  position:relative;overflow:hidden;
}
.hero-box::before{content:"";position:absolute;inset:12px;border-radius:calc(var(--radius) - 2px);border:2px solid rgba(255,255,255,.4);pointer-events:none;z-index:1;}
.hero-box::after{content:"";position:absolute;inset:-60% -40%;background:radial-gradient(circle at 35% 40%,rgba(255,255,255,.14),transparent 55%);transform:translate3d(-18%,-10%,0);animation:heroSweep 2.4s ease-in-out infinite;pointer-events:none;opacity:.5;z-index:0;}
@keyframes heroSweep{0%{transform:translate3d(-18%,-10%,0);opacity:.5;}50%{transform:translate3d(12%,12%,0);opacity:.85;}100%{transform:translate3d(-18%,-10%,0);opacity:.5;}}
.hero-box svg{width:72px;height:72px;position:relative;z-index:2;shape-rendering:geometricPrecision;}

/* ── STEPBAR ── */
.stepbar{height:6px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);overflow:hidden;}
.stepbar .fill{
  height:100%;width:0;border-radius:999px;
  background:linear-gradient(90deg,var(--accent2) 0%,var(--accent) 45%,#48cae4 75%,var(--accent2) 100%);
  transition:width .22s ease;position:relative;overflow:hidden;
}
.stepbar .fill::after{content:"";position:absolute;top:-30%;bottom:-30%;width:40%;left:-40%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.25) 50%,transparent 100%);transform:skewX(-18deg);animation:stepShimmer 1.6s ease-in-out infinite;opacity:.7;}
@keyframes stepShimmer{0%{left:-45%;opacity:.4;}50%{opacity:.85;}100%{left:110%;opacity:.4;}}

/* ── LIST / ITEM ── */
.list{display:flex;flex-direction:column;gap:8px;}
.item{
  width:100%;border-radius:var(--radius);border:1px solid var(--border);
  background:var(--surface);padding:12px 14px;display:flex;align-items:center;
  justify-content:space-between;cursor:pointer;transition:transform .12s ease,background .12s ease;
}
.item:active{transform:scale(.99);background:var(--surface2);}
.item .l{display:flex;flex-direction:column;gap:3px;}
.item .name{font-weight:900;font-size:14px;}
.item .desc{font-size:11px;color:var(--muted);}

/* ── STAT GRID ── */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:0 0 auto;}
.stat{display:flex;flex-direction:column;gap:5px;min-height:80px;}
.stat .ico{width:36px;height:36px;border-radius:12px;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;}
.stat .ico svg{width:18px;height:18px;}
.stat .label{font-size:12px;color:var(--muted);}
.stat .value{font-size:16px;font-weight:800;}
.value.ok{color:var(--success);}
.value.warn{color:var(--warn);}
.value.bad{color:var(--danger);}
.value.expiring{color:var(--danger-soft);}
.value .sub{display:block;margin-top:3px;font-size:12px;font-weight:800;opacity:.9;}

/* ── SUBSCRIPTION ── */
.benefits{display:flex;flex-direction:column;gap:8px;margin-top:10px;}
.benefits .b{display:flex;gap:10px;align-items:flex-start;font-weight:800;font-size:13px;color:rgba(255,255,255,.9);}
.benefits .ok{width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:var(--accent-dim);border:1px solid rgba(0,180,216,.25);color:rgba(255,255,255,.9);flex:0 0 auto;font-size:11px;}
.loc-grid{margin-top:10px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.loc-chip{height:30px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:12px;letter-spacing:.06em;}
.plans{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.plan{
  border-radius:var(--radius);border:1.5px solid var(--border);background:var(--surface);
  padding:14px;text-align:left;color:#fff;cursor:pointer;position:relative;min-height:110px;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease,transform .12s ease;
}
.plan:active{transform:scale(.97);}
.plan .t{font-weight:900;font-size:13px;color:rgba(255,255,255,.85);}
.plan .p{font-weight:1000;font-size:24px;margin-top:5px;}
.plan .pm{font-size:11px;color:var(--muted);margin-top:5px;font-weight:800;}
.plan .hot{position:absolute;right:8px;top:8px;width:24px;height:24px;border-radius:8px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;}
.plan.selected{background:rgba(0,180,216,.12);border:1.5px solid rgba(0,180,216,.45);box-shadow:0 8px 20px rgba(0,180,216,.12),0 0 16px rgba(0,180,216,.08);}

.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:0 0 auto;}

/* ── DEVICE / SLIDER ── */
.device-head{display:flex;gap:10px;align-items:center;}
.device-head .badge{width:36px;height:36px;border-radius:12px;background:var(--accent-dim);border:1px solid rgba(0,180,216,.25);display:flex;align-items:center;justify-content:center;font-weight:1000;font-size:16px;}
.slider{margin-top:10px;position:relative;}
.slider input[type="range"]{width:100%;-webkit-appearance:none;appearance:none;height:32px;background:transparent;outline:none;}
.slider input[type="range"]::-webkit-slider-runnable-track{height:10px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.08);}
.slider input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;border-radius:999px;background:#fff;border:0;margin-top:-9px;box-shadow:0 6px 14px rgba(0,0,0,.25);}
.slider input[type="range"]::-moz-range-track{height:10px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.08);}
.slider input[type="range"]::-moz-range-thumb{width:26px;height:26px;border-radius:999px;background:#fff;border:0;box-shadow:0 6px 14px rgba(0,0,0,.25);}
.slider .dots{position:absolute;left:10px;right:10px;top:50%;transform:translateY(-50%);display:flex;justify-content:space-between;pointer-events:none;opacity:.3;}
.slider .dots span{width:5px;height:5px;border-radius:999px;background:rgba(255,255,255,.9);}

/* ── REFERRAL ── */
.hero-count{flex-direction:column;gap:6px;}
.hero-count .big{font-size:48px;font-weight:1000;line-height:1;text-shadow:0 10px 22px rgba(0,0,0,.2);}
.hero-count .small{font-size:13px;color:rgba(255,255,255,.75);font-weight:900;}
.ref-rules{padding:12px;}
.ref-rules .r{display:flex;align-items:center;gap:10px;}
.ref-rules .ri{width:38px;height:38px;border-radius:12px;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-weight:1000;}
.ref-rules .rt .t{font-weight:900;font-size:14px;}
.ref-rules .rt .s{margin-top:3px;font-weight:1000;color:#fff;font-size:13px;}
.ref-rules .sep{height:1px;background:rgba(255,255,255,.08);margin:10px 0;}
.copyrow{display:grid;grid-template-columns:1fr 48px;gap:8px;align-items:center;}
.copybox{border-radius:var(--radius);border:1px solid var(--border);background:rgba(0,0,0,.2);padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;color:rgba(255,255,255,.9);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.copybtn{width:48px;height:48px;border-radius:14px;border:1px solid var(--border);background:var(--surface);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.copybtn:active{transform:scale(.97);background:var(--surface2);}

/* ── OVERLAY + SHEETS ── */
.sheet-overlay{position:fixed;inset:0;background:rgba(0,0,0,0);pointer-events:none;transition:background .35s ease;z-index:200;}
.sheet-overlay.active{background:rgba(0,0,0,.65);pointer-events:all;}
.sheet{
  position:fixed;bottom:0;left:0;right:0;z-index:201;
  background:rgba(10,20,38,0.96);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-radius:26px 26px 0 0;border-top:1px solid rgba(0,180,255,0.10);
  padding:0 18px 28px;transform:translateY(102%);
  transition:transform .4s cubic-bezier(0.22,1,0.36,1);
  max-height:88vh;overflow-y:auto;
}
.sheet::-webkit-scrollbar{display:none;}
.sheet.active{transform:translateY(0);}
.sheet-handle{width:40px;height:4px;border-radius:2px;background:rgba(255,255,255,0.22);margin:14px auto 20px;}

body.client-browser.client-desktop .sheet-overlay{
  position:absolute;
  inset:0;
  border-radius:26px;
}

body.client-browser.client-desktop .sheet{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  max-height:calc(100% - 24px);
  border-radius:26px 26px 0 0;
}
.sheet-hdr{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:12px;margin-bottom:22px;
}
.sheet-title{color:#fff;font-size:20px;font-weight:800;line-height:1.2;flex:1;letter-spacing:-.02em;}
.sheet-body{color:var(--muted);font-size:13px;padding:0 6px 8px;line-height:1.45;white-space:pre-wrap;}
.sheet-actions{display:flex;gap:8px;padding:0 6px 4px;}
.sheet-close{
  width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,.08);color:#fff;font-size:18px;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  flex-shrink:0;font-family:inherit;transition:background .2s;
}
.sheet-close:hover{background:rgba(255,255,255,0.14);}
.btn-primary{
  width:100%;height:48px;border-radius:14px;border:0;font-weight:900;font-size:15px;color:#fff;
  background:linear-gradient(135deg,var(--accent) 0%,#48cae4 100%);
  box-shadow:0 8px 20px rgba(0,180,216,.20);cursor:pointer;
}
.btn-primary:active{transform:scale(.99);}

/* ── PAY SHEET ── */
.pay-summary{display:flex;flex-direction:column;gap:8px;margin-bottom:10px;}
.pay-summary .row{display:flex;justify-content:space-between;gap:10px;}
.pay-summary .k{color:var(--muted);font-weight:800;font-size:13px;}
.pay-summary .v{font-weight:900;font-size:13px;}
.pay-section{font-weight:900;margin:4px 0 8px;color:rgba(255,255,255,.9);font-size:14px;}
.pay-methods{display:flex;flex-direction:column;gap:8px;}
.pay-method{
  width:100%;border-radius:var(--radius);border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);padding:12px 14px;display:flex;align-items:center;
  justify-content:space-between;gap:10px;color:#fff;cursor:pointer;
}
.pay-method:active{transform:scale(.99);}
.pay-method .pm-title{font-weight:900;font-size:14px;}
.pay-method .pm-dot{width:16px;height:16px;border-radius:999px;border:2px solid rgba(255,255,255,.3);}
.pay-method.active{border:1px solid rgba(0,180,216,.3);background:rgba(0,180,216,.08);}
.pay-method.active .pm-dot{border-color:rgba(0,180,216,.85);box-shadow:0 0 0 3px rgba(0,180,216,.1);background:rgba(0,180,216,.85);}

/* ── PROTO ── */
.proto-card .proto-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.proto-title{font-weight:1000;font-size:15px;}
.proto-sub{color:var(--muted);font-size:11px;margin-top:3px;}

/* ── LEGAL / TOS ── */
.legal{padding:14px;}
.legal-text{font-size:12px;line-height:1.55;color:rgba(255,255,255,.9);}
.tos-body{color:var(--muted);font-size:13px;line-height:1.7;}
.tos-body h3{color:#fff;font-size:14px;font-weight:700;margin:20px 0 8px;}
.tos-body p{margin:0 0 8px;}

/* ── HISTORY ── */
.hist-row{padding:14px 16px;display:flex;align-items:center;gap:12px;}
.hist-row+.hist-row{border-top:1px solid var(--border);}
.hist-ico{width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700;flex-shrink:0;}
.hist-title{color:#fff;font-size:14px;font-weight:600;}
.hist-sub{color:var(--muted);font-size:12px;margin-top:2px;}
.hist-sum{color:#fff;font-size:14px;font-weight:700;}
.hist-date{color:var(--muted);font-size:11px;margin-top:2px;}

/* ── TOAST ── */
#toast{
  position:fixed;bottom:calc(var(--nav-h) + 16px);left:50%;
  transform:translateX(-50%) translateY(10px);
  background:rgba(0,180,216,.92);color:#fff;font-size:14px;font-weight:500;
  padding:10px 22px;border-radius:14px;opacity:0;transition:all 0.3s ease;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  pointer-events:none;z-index:300;white-space:nowrap;
}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0);}

/* ── ACTION CARDS (home screen) ── */
.action-cards{display:flex;flex-direction:column;gap:8px;width:100%;}
.action-card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:18px;padding:14px 16px;
  display:flex;align-items:center;gap:14px;
  cursor:pointer;transition:background .2s,transform .15s,border-color .2s;
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
}
.action-card:hover{background:var(--surface2);border-color:rgba(0,200,255,0.20);}
.action-card:active{transform:scale(.98);}
.action-card-icon{
  width:44px;height:44px;border-radius:13px;
  background:var(--accent-dim);
  display:flex;align-items:center;justify-content:center;
  font-size:20px;flex-shrink:0;
}
.action-card-body{flex:1;min-width:0;}
.action-card-title{color:#fff;font-size:15px;font-weight:600;}
.action-card-sub{color:var(--muted);font-size:12px;margin-top:2px;}
.action-card-arrow{color:rgba(255,255,255,.2);width:20px;height:20px;flex-shrink:0;}
.action-card-arrow svg{width:20px;height:20px;}

/* ── STATUS BADGE ── */
.status-badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 14px;border-radius:999px;
  font-size:13px;font-weight:700;
}
.status-badge.is-active{
  background:rgba(16,36,68,.42);color:#4ee39e;
  border:1px solid rgba(0,200,255,.16);
}
.status-badge.is-expired{
  background:rgba(16,36,68,.42);color:#ff8a8a;
  border:1px solid rgba(0,200,255,.16);
}
.status-badge.is-expiring{
  background:rgba(16,36,68,.42);color:#ffd166;
  border:1px solid rgba(0,200,255,.16);
}
.status-badge-dot{
  width:7px;height:7px;border-radius:50%;background:currentColor;
}

/* ── HOME GRID (2-col layout) ── */
.home-grid{
  display:grid;grid-template-columns:1fr;gap:12px;width:100%;margin-top:12px;
}
.home-grid-card{
  background:linear-gradient(145deg, rgba(16,39,72,.78), rgba(28,22,70,.78));border:1px solid rgba(84,235,255,.14);border-radius:20px;
  padding:14px 16px;display:flex;flex-direction:row;align-items:center;gap:14px;
  cursor:pointer;transition:background .2s,transform .15s,border-color .2s,box-shadow .2s;
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  min-height:84px;
  box-shadow:0 14px 30px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.05);
}
.home-grid-card:hover{background:linear-gradient(145deg, rgba(18,47,86,.84), rgba(34,26,82,.84));border-color:rgba(84,235,255,.24);box-shadow:0 18px 34px rgba(0,0,0,.2);}
.home-grid-card:active{transform:scale(.97);}
.home-grid-card-icon{
  width:44px;height:44px;border-radius:14px;background:linear-gradient(180deg, rgba(0,208,255,.18), rgba(0,208,255,.08));
  border:1px solid rgba(84,235,255,.18);
  display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.home-grid-card-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;flex:1;min-width:0;}
.home-grid-card-title{color:#fff;font-size:15px;font-weight:800;line-height:1.12;}
.home-grid-card-sub{color:rgba(224,247,255,.56);font-size:12px;line-height:1.18;}
.home-grid-card-tail{
  width:38px;height:38px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex:0 0 38px;
  border:1px solid rgba(84,235,255,.16);
  background:linear-gradient(180deg, rgba(7,36,68,.72), rgba(10,73,118,.28));
  color:rgba(156,247,255,.92);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.home-grid-card-tail svg{width:18px;height:18px;}

/* ── HOME STATS SECTION ── */
.home-stats{
  width:100%;margin-top:14px;
}
.home-stats-title{
  font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);margin-bottom:8px;padding:0 2px;
}
.home-stats-card{
  background:var(--surface);border:1px solid var(--border);border-radius:18px;
  padding:16px;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
}
.home-stats-row{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;
}
.home-stats-label{color:var(--muted);font-size:12px;font-weight:600;}
.home-stats-value{color:#fff;font-size:13px;font-weight:700;}
.home-traffic-bar{
  width:100%;height:8px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;
}
.home-traffic-fill{
  height:100%;border-radius:999px;
  background:linear-gradient(90deg,var(--accent) 0%,var(--accent2) 100%);
  transition:width .4s ease;min-width:2px;
}

/* ── PLATFORM CARD INNER ── */
.platform-card{
  display:flex;align-items:center;gap:14px;text-align:left;
  padding:16px;margin-bottom:8px;
}
.platform-card-icon{font-size:28px;flex-shrink:0;width:44px;text-align:center;}
.platform-card-body{flex:1;min-width:0;}
.platform-card-title{color:#fff;font-size:15px;font-weight:700;}
.platform-card-sub{color:var(--muted);font-size:12px;margin-top:2px;}
.platform-card-arrow{color:rgba(255,255,255,.2);width:20px;height:20px;flex-shrink:0;}
.platform-card-arrow svg{width:20px;height:20px;}

.setup-step-platforms{
  padding-bottom:12px;
}
.setup-platforms-intro{
  margin-bottom:14px;
}
.setup-platform-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:12px;
}
.setup-platform-card{
  min-height:108px;
  align-items:center;
  padding:16px 14px;
  margin-bottom:0;
  overflow:hidden;
}
.setup-platform-card .platform-card-icon{
  width:48px;
  font-size:30px;
}
.setup-platform-card .platform-card-title{
  font-size:15px;
  line-height:1.15;
}
.setup-platform-card .platform-card-sub{
  font-size:12px;
  line-height:1.3;
  margin-top:4px;
  overflow-wrap:anywhere;
}

/* ── STAGGERED ENTRANCE ── */
.stagger-item{opacity:0;transform:translate3d(0,10px,0);animation:staggerIn .3s ease-out forwards;}
.stagger-item:nth-child(1){animation-delay:0ms;}
.stagger-item:nth-child(2){animation-delay:50ms;}
.stagger-item:nth-child(3){animation-delay:100ms;}
.stagger-item:nth-child(4){animation-delay:150ms;}
.stagger-item:nth-child(5){animation-delay:200ms;}
.stagger-item:nth-child(6){animation-delay:250ms;}
.stagger-item:nth-child(7){animation-delay:300ms;}
.stagger-item:nth-child(8){animation-delay:350ms;}
.stagger-item:nth-child(9){animation-delay:400ms;}
.stagger-item:nth-child(10){animation-delay:450ms;}
.stagger-item:nth-child(11){animation-delay:500ms;}
@keyframes staggerIn{to{opacity:1;transform:translate3d(0,0,0);}}
@media(prefers-reduced-motion:reduce){.stagger-item{animation:none;opacity:1;transform:none;}}


/* ── SUCCESS ── */
.success-ring{position:relative;width:100px;height:100px;margin:0 auto;}
.success-ring svg{width:40px;height:40px;color:var(--accent2);position:relative;z-index:2;}
.success-ring .particle{position:absolute;width:5px;height:5px;border-radius:2px;animation:confettiBurst 1.2s ease-out forwards;}
@keyframes confettiBurst{0%{transform:translate(0,0) scale(1);opacity:1;}100%{transform:translate(var(--tx,20px),var(--ty,-40px)) scale(0);opacity:0;}}

/* ── SETUP ANIMATION ── */
.setup-anim{position:relative;width:200px;height:200px;display:flex;align-items:center;justify-content:center;}
.sring{position:absolute;border-radius:50%;border:1.5px solid rgba(255,255,255,.06);animation:rpulse 3.4s ease-in-out infinite;}
.sr1{width:200px;height:200px;}
.sr2{width:148px;height:148px;animation-delay:1.1s;}
.plug{font-size:58px;z-index:2;animation:prock 3.2s ease-in-out infinite;line-height:1;}
@keyframes prock{0%,100%{transform:rotate(-6deg) scale(1);}50%{transform:rotate(6deg) scale(1.07);}}

.setup-intro-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  padding:14px 16px;
  margin-bottom:10px;
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.setup-intro-icon{
  width:46px;
  height:46px;
  border-radius:14px;
  background:var(--accent-dim);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  flex:0 0 auto;
}
.setup-intro-copy{
  flex:1;
  min-width:0;
  padding-top:2px;
}
.setup-intro-title{
  color:#fff;
  font-size:17px;
  font-weight:800;
  line-height:1.2;
  margin-bottom:4px;
}
.setup-intro-sub{
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.setup-step-entry{
  padding:0 0 24px;
  overflow-y:auto;
  flex:1;
  display:flex;
  flex-direction:column;
}

#setup-steps-container{
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
}

.setup-entry-anim{
  margin:auto auto 24px;
}

.setup-entry-actions{
  margin-top:0;
  padding-bottom:4px;
}

.setup-entry-actions .btn-a{
  justify-content:flex-start;
}
.setup-entry-actions .btn-b{
  justify-content:flex-start;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.04));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

.setup-entry-actions .btn-a .blhs,
.setup-entry-actions .btn-b .blhs{
  width:100%;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  white-space:normal;
}

.setup-entry-actions .btn-a .blhs > span:last-child,
.setup-entry-actions .btn-b .blhs > span:last-child{
  flex:1 1 auto;
  min-width:0;
  display:block;
  text-align:left;
  line-height:1.18;
}

/* ── PLATFORM GRID (centered) ── */
.platform-ico{font-size:32px;margin-bottom:8px;}
.platform-name{color:#fff;font-size:15px;font-weight:700;margin-bottom:2px;}
.platform-sub{color:var(--muted);font-size:12px;}

/* ── DEV INFO ── */
.dev-info-text{flex:1;}

/* ── PROF BODY ── */
.prof-body{
  flex:1;padding:0 0 28px;display:flex;flex-direction:column;gap:0;
}

/* ── SUB BODY / FOOTER ── */
.sub-body{
  flex:1;min-height:0;padding:4px 18px 0;display:flex;flex-direction:column;
  overflow-y:auto;scrollbar-width:none;
}
.sub-body::-webkit-scrollbar{display:none;}
.sub-title{color:#fff;font-size:26px;font-weight:800;line-height:1.15;margin-bottom:8px;}
.sub-desc{color:var(--muted);font-size:13px;line-height:1.6;margin-bottom:14px;}
.sub-pay-footer{
  flex-shrink:0;padding:12px 0 24px;
  background:linear-gradient(to top,rgba(6,13,24,1) 65%,transparent);
}

/* ── PAGE TITLES (setup/inner pages) ── */
.pg-title{color:#fff;font-size:26px;font-weight:800;text-align:center;margin-bottom:8px;}
.pg-sub{color:var(--muted);font-size:14px;text-align:center;line-height:1.65;margin-bottom:30px;}

/* ── DEVICES SLIDER (sheet) ── */
.dev-hint{
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);
  border-radius:16px;padding:14px 16px;display:flex;align-items:center;gap:10px;
  margin-bottom:20px;color:#fff;font-size:14px;font-weight:500;
}
.dev-hint--compact{
  background:rgba(255,255,255,.06);
  border-radius:16px;
  padding:16px 18px;
  margin-bottom:18px;
}
.dev-hint-ico{
  width:26px;height:26px;display:flex;align-items:center;justify-content:center;
  color:#9cf6d7;font-size:18px;flex:0 0 auto;
}
.dev-hint-copy{min-width:0;}
.dev-hint-title{
  color:#dff8ef;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}
.dev-slider-label{
  color:var(--muted);
  font-size:12px;
  margin-bottom:8px;
}
.dev-slider-label span{
  color:#fff;
  font-weight:700;
}
.dev-slider-wrap{padding:4px 4px 8px;}
.dev-slider-wrap--compact{
  padding:6px 0 6px;
}
input[type=range].dslider{
  -webkit-appearance:none;appearance:none;width:100%;height:6px;
  border-radius:3px;background:rgba(255,255,255,0.12);outline:none;cursor:pointer;
}
input[type=range].dslider::-webkit-slider-thumb{
  -webkit-appearance:none;width:28px;height:28px;border-radius:50%;
  background:linear-gradient(135deg,#00c4e0,#52d8f0);
  box-shadow:0 2px 14px rgba(0,180,216,0.65);cursor:pointer;
}
input[type=range].dslider::-moz-range-thumb{
  width:28px;height:28px;border-radius:50%;border:0;
  background:linear-gradient(135deg,#00c4e0,#52d8f0);
  box-shadow:0 2px 14px rgba(0,180,216,0.65);cursor:pointer;
}
.dev-dots{display:flex;justify-content:space-between;padding:10px 4px 0;}
.dev-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,0.18);transition:background .2s;}
.dev-dot.on{background:var(--accent);}
.dev-marks{padding-top:8px;}
.dev-mark{min-width:18px;text-align:center;color:var(--muted);font-size:12px;font-weight:700;}
.dev-apply-btn{
  min-height:56px;
  border-radius:22px;
}

/* ── CONFIRM SHEET ── */
.confirm-box{
  background:var(--surface);border:1px solid var(--border);
  border-radius:16px;overflow:hidden;margin-bottom:14px;
}
.confirm-row{
  padding:14px 16px;color:var(--text);font-size:14px;font-weight:500;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.confirm-row:last-child{border-bottom:none;}

/* ── PAYMENT METHOD OPTIONS (sheets) ── */
.pm-option{
  background:var(--surface);border:1.5px solid var(--border);
  border-radius:16px;padding:14px 16px;display:flex;align-items:center;gap:14px;
  margin-bottom:10px;cursor:pointer;transition:background .2s,border-color .2s;
}
.pm-option:hover{background:var(--surface2);}
.pm-option.sel{border-color:var(--accent);background:rgba(0,180,216,0.1);}
.pm-opt-ico{
  width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;
}
.pm-opt-label{color:#fff;font-size:15px;font-weight:500;flex:1;}
.pm-check{
  width:24px;height:24px;border-radius:50%;background:var(--accent);
  display:flex;align-items:center;justify-content:center;font-size:13px;color:#fff;
  opacity:0;transform:scale(.5);
  transition:opacity .2s,transform .25s cubic-bezier(0.34,1.56,0.64,1);
}
.pm-option.sel .pm-check{opacity:1;transform:scale(1);}

/* ── PM ROW (payment methods screen) ── */
.pm-row{
  background:var(--surface);border:1px solid var(--border);
  border-radius:16px;padding:13px 16px;display:flex;align-items:center;gap:12px;
  margin-bottom:18px;cursor:pointer;transition:background .2s;
}
.pm-row:hover{background:var(--surface2);}
.pm-logo{
  width:44px;height:28px;border-radius:6px;background:#0c1a2e;
  border:1px solid rgba(255,255,255,.1);display:flex;align-items:center;
  justify-content:center;font-size:10px;font-weight:800;color:#fff;flex-shrink:0;letter-spacing:.5px;
}
.pm-label{color:#fff;font-size:14px;font-weight:500;flex:1;}
.pm-dots{color:var(--muted);font-size:22px;cursor:pointer;}

/* ── SCROLLBAR ── */
::-webkit-scrollbar{width:3px;}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:2px;}

/* ── DESKTOP / WIDE SCREENS ── */
@media(min-width:600px){
  :root{--maxw:520px;}
  #nav{width:min(calc(100vw - 32px), 404px);}
}

@media (max-width: 520px) {
  :root{
    --pad: 12px;
    --nav-h: 68px;
  }

  .screen{
    padding-bottom:calc(var(--nav-h) + 52px + var(--tg-content-safe-area-inset-bottom));
  }

  .wrap{
    gap:2px;
  }

  .hdr{
    padding:10px 0 10px;
  }

  .hdr-title{
    font-size:17px;
  }

  .home-hero{
    min-height:500px;
    padding-top:0;
  }

  .pulse-wrap{
    max-width:390px;
    height:452px;
  }

  .r1{
    width:228px;
    height:228px;
    transform:scale(2.14);
    opacity:.22;
  }
  .r2{
    width:228px;
    height:228px;
    opacity:.16;
  }
  .r3{
    width:228px;
    height:228px;
    opacity:.1;
  }

  .orb-glow{
    width:146px;
    height:146px;
  }

  .shield-orb{
    width:262px;
    height:262px;
    margin-top:132px;
  }

  .shield-orb svg{
    width:212px;
    height:212px;
  }

  .home-controls{
    max-width:100%;
    margin-top:auto;
    padding-bottom:112px;
  }

  .status-row{
    max-width:100%;
    gap:12px;
    margin-bottom:14px;
  }

  .home-status-row{
    margin-top:-112px;
  }

  .expiry{
    font-size:24px;
  }

  .online{
    font-size:15px;
    margin-top:3px;
  }

  .home-chip{
    min-height:44px;
    padding:10px 15px 10px 17px;
    font-size:14px;
  }

  .btns{
    max-width:100%;
    gap:10px;
  }

  .home-btns .btn-a,
  .home-btns .btn-b{
    min-height:68px;
    border-radius:23px;
    padding:0 24px;
  }

  .home-btns{
    gap:12px;
    margin-top:8px;
  }

  .blhs{
    gap:11px;
  }

  .bico{
    font-size:19px;
  }

  .bprice{
    font-size:15px;
  }

  #nav{
    width:min(calc(100vw - 22px), 392px);
    bottom:18px;
    height:78px;
    padding:10px;
    border-radius:28px;
  }

  .ntab{
    height:58px;
    border-radius:20px;
  }

  .ntab svg{
    width:20px;
    height:20px;
  }

  .ntab.active svg{
    width:22px;
    height:22px;
  }

  .ntab-label{
    font-size:10px;
  }
}

/* ── REDUCED MOTION ── */
@media(prefers-reduced-motion:reduce){
  .ring,.shield-orb,.plug,.sring{animation:none!important;}
}

@media (min-width: 521px) {
  #nav{
    width:min(calc(100vw - 28px), 404px);
    height:68px;
    padding:9px;
    border-radius:25px;
  }

  .ntab{
    height:50px;
    border-radius:18px;
  }

  .ntab svg{
    width:18px;
    height:18px;
  }

  .ntab.active svg{
    width:20px;
    height:20px;
  }

  .ntab-label{
    font-size:9px;
  }
}

body.client-desktop #nav{
  width:min(calc(100vw - 28px), 404px);
  height:66px;
  padding:9px;
  border-radius:25px;
}

body.client-desktop .ntab{
  height:50px;
  border-radius:18px;
}

body.client-desktop .ntab svg{
  width:18px;
  height:18px;
}

body.client-desktop .ntab.active svg{
  width:20px;
  height:20px;
}

body.client-desktop .ntab-label{
  font-size:9px;
}

body.client-desktop .home-controls{
  max-width:380px;
  padding-bottom:16px;
}

body.client-desktop .home-hero{
  min-height:auto;
  padding-top:18px;
}

body.client-desktop .home-stage{
  gap:16px;
}

body.client-desktop .home-status-row{
  margin-top:8px;
  margin-bottom:14px;
}

body.client-desktop .home-primary-actions{
  margin-top:6px;
  gap:8px;
}

body.client-desktop .home-primary-btn{
  min-height:68px;
}

body.client-desktop .home-body{
  justify-content:flex-start;
}

body.client-desktop .home-stage{
  min-height:calc(100dvh - var(--tg-screen-pad-top) - var(--nav-h) - 52px - var(--tg-content-safe-area-inset-bottom));
  justify-content:flex-start;
  padding-top:6px;
}

body.client-desktop .home-controls{
  margin-top:auto;
  padding-bottom:0;
  transform:translateY(14px);
}

body.client-desktop .home-hero-media{
  width:clamp(208px, 30vh, 262px);
}

body.client-desktop .home-secondary-actions{
  gap:8px;
}

body.client-desktop .home-secondary-btn{
  min-height:58px;
}

body.client-desktop .expiry{
  font-size:18px;
}

body.client-desktop .online{
  font-size:12px;
}

body.client-desktop .setup-step-entry{
  padding-bottom:8px;
}

body.client-desktop .setup-step-platforms{
  padding-bottom:8px;
}

body.client-desktop .setup-platform-grid{
  gap:10px;
}

body.client-desktop .setup-platform-card{
  min-height:98px;
  padding:14px 12px;
}

body.client-desktop .setup-platform-card .platform-card-icon{
  width:42px;
  font-size:26px;
}

body.client-desktop .setup-platform-card .platform-card-title{
  font-size:14px;
}

body.client-desktop .setup-platform-card .platform-card-sub{
  font-size:11px;
}

body.client-desktop .setup-intro-card{
  padding:12px 14px;
  margin-bottom:10px;
}

body.client-desktop .setup-intro-title{
  font-size:16px;
}

body.client-desktop .setup-intro-sub{
  font-size:12px;
}

body.client-desktop .setup-anim{
  width:176px;
  height:176px;
}

body.client-desktop .sr1{
  width:176px;
  height:176px;
}

body.client-desktop .sr2{
  width:132px;
  height:132px;
}

body.client-desktop .plug{
  font-size:60px;
}

body.client-desktop .setup-entry-actions{
  gap:10px;
  padding-bottom:4px;
}

body.client-desktop .setup-entry-actions .btn-a,
body.client-desktop .setup-entry-actions .btn-b{
  min-height:54px;
  border-radius:19px;
  padding:0 18px;
  font-size:15px;
}

body.client-desktop .setup-step-done{
  justify-content:flex-start;
  padding-top:clamp(56px, 10vh, 104px);
}

body.client-desktop .setup-step-done .setup-bottom-actions{
  margin-top:20px;
  padding-bottom:20px;
}

body.client-browser.client-desktop .home-controls{
  max-width:380px;
  padding:0 0 0;
}

body.client-browser.client-desktop{
  --browser-desktop-app-width: 430px;
  --browser-desktop-app-height: 780px;
  --browser-desktop-scale: 1;
  overflow:auto;
}

body.client-browser.client-desktop #app{
  position:relative;
  inset:auto;
  width:var(--browser-desktop-app-width);
  height:var(--browser-desktop-app-height);
  margin:10px auto 18px;
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(124,236,255,.16);
  box-shadow:0 28px 80px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.03) inset;
  zoom:var(--browser-desktop-scale);
}

body.client-browser.client-desktop #bg{
  position:absolute;
  inset:0;
}

body.client-browser.client-desktop .home-hero{
  padding-top:0;
  margin-bottom:0;
}

body.client-browser.client-desktop .home-stage{
  max-width:380px;
  min-height:calc(100% - var(--nav-h) - 34px);
  justify-content:flex-start;
  padding-top:6px;
  gap:16px;
  align-items:stretch;
}

body.client-browser.client-desktop .home-hero-media{
  width:clamp(208px, 30vh, 262px);
}

body.client-browser.client-desktop .home-controls{
  margin-top:auto;
  padding-top:0;
  padding-bottom:0;
  transform:translateY(14px);
}

body.client-browser.client-desktop .home-status-row{
  margin-top:8px;
  margin-bottom:14px;
}

body.client-browser.client-desktop .home-primary-actions{
  margin-top:6px;
  gap:8px;
}

body.client-browser.client-desktop .home-primary-btn{
  min-height:68px;
  border-radius:22px;
}

body.client-browser.client-desktop .home-secondary-actions{
  gap:8px;
}

body.client-browser.client-desktop .home-secondary-btn{
  min-height:58px;
  border-radius:18px;
}

body.client-browser.client-desktop .home-hero-media,
body.client-browser.client-desktop .home-hero-media::before,
body.client-browser.client-desktop .home-hero-media::after,
body.client-browser.client-desktop .home-hero-film::after,
body.client-browser.client-desktop .home-hero-film .hero-droplet,
body.client-browser.client-desktop .home-hero-media img{
  animation:none !important;
}

body.client-browser.client-desktop #nav{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:calc(100% - 28px);
  max-width:404px;
  bottom:14px;
}

body.client-browser.client-desktop .home-status-row{
  margin-top:0;
  margin-bottom:10px;
}

body.client-browser.client-desktop .expiry{
  font-size:18px;
}

body.client-browser.client-desktop .online{
  font-size:12px;
}

body.client-browser.client-desktop .setup-step-entry{
  min-height:calc(100% - var(--nav-h) - 34px);
  justify-content:flex-start;
  align-items:stretch;
  padding-top:4px;
  padding-bottom:10px;
}

body.client-browser.client-desktop #setup-steps-container{
  align-items:stretch;
}

body.client-browser.client-desktop .setup-step-platforms{
  padding-bottom:10px;
}

body.client-browser.client-desktop .setup-platform-grid{
  gap:12px;
}

body.client-browser.client-desktop .setup-platform-card{
  min-height:98px;
  padding:14px 12px;
}

body.client-browser.client-desktop .setup-platform-card .platform-card-icon{
  width:42px;
  font-size:26px;
}

body.client-browser.client-desktop .setup-platform-card .platform-card-title{
  font-size:14px;
}

body.client-browser.client-desktop .setup-platform-card .platform-card-sub{
  font-size:11px;
}

body.client-browser.client-desktop .setup-intro-card{
  width:100%;
  max-width:520px;
  padding:12px 14px;
  margin-bottom:10px;
}

body.client-browser.client-desktop .setup-intro-title{
  font-size:16px;
}

body.client-browser.client-desktop .setup-intro-sub{
  font-size:12px;
}

body.client-browser.client-desktop .setup-anim{
  width:176px;
  height:176px;
}

body.client-browser.client-desktop .sr1{
  width:176px;
  height:176px;
}

body.client-browser.client-desktop .sr2{
  width:132px;
  height:132px;
}

body.client-browser.client-desktop .plug{
  font-size:60px;
}

body.client-browser.client-desktop .setup-entry-anim{
  margin:26px auto 24px;
}

body.client-browser.client-desktop .setup-entry-actions{
  width:100%;
  max-width:520px;
  gap:10px;
  padding-bottom:4px;
}

body.client-browser.client-desktop .setup-entry-actions .btn-a,
body.client-browser.client-desktop .setup-entry-actions .btn-b{
  min-height:54px;
  border-radius:19px;
  padding:0 18px;
  font-size:15px;
}

body.client-browser.client-desktop .setup-step-done{
  width:100%;
  max-width:520px;
  justify-content:flex-start;
  padding-top:124px;
}

body.client-browser.client-desktop .setup-step-done .setup-bottom-actions{
  width:100%;
  max-width:520px;
  margin-top:32px;
  padding-top:0;
  padding-bottom:22px;
}

body.client-desktop .purchase-body{
  padding-bottom:4px;
}

body.client-desktop .purchase-dev-row{
  padding:14px 14px;
  margin-bottom:12px;
  gap:12px;
}

body.client-desktop .purchase-dev-row .dev-num{
  width:40px;
  height:40px;
  font-size:17px;
}

body.client-desktop .purchase-dev-row .dev-name{
  font-size:15px;
}

body.client-desktop .purchase-dev-row .dev-sub{
  font-size:12px;
}

body.client-desktop .purchase-plan-grid{
  gap:10px;
  margin-bottom:10px;
}

body.client-desktop .purchase-plan-grid .plan-card{
  min-height:122px;
  padding:14px 14px;
  border-radius:18px;
}

body.client-desktop .purchase-plan-grid .plan-period{
  font-size:14px;
  margin-bottom:8px;
}

body.client-desktop .purchase-plan-grid .plan-price{
  font-size:26px;
  margin-bottom:6px;
}

body.client-desktop .purchase-plan-grid .plan-per{
  font-size:12px;
}

body.client-desktop .purchase-pay-btn{
  min-height:58px;
  margin-top:0;
  margin-bottom:10px;
  border-radius:20px;
  font-size:16px;
}

body.client-desktop .purchase-pay-btn .pay-old{
  font-size:13px;
}

body.client-browser .wrap{
  max-width:500px;
  padding-left:16px;
  padding-right:16px;
}

body.client-browser #nav{
  width:min(calc(100vw - 48px), 420px);
  height:68px;
  padding:9px;
  bottom:18px;
}

body.client-browser .home-wrap{
  min-height:100%;
}

body.client-browser .home-stage{
  max-width:500px;
  min-height:0;
  height:auto;
  justify-content:flex-start !important;
  align-items:center;
  gap:10px;
  padding-top:0;
}

body.client-browser .home-hero{
  min-height:auto !important;
  padding-top:0 !important;
}

body.client-browser .home-hero-media{
  width:clamp(190px, 17vw, 240px);
}

body.client-browser .home-controls{
  max-width:400px;
  width:100%;
  margin-top:0 !important;
  padding-bottom:2px;
}

body.client-browser.client-desktop #screen-home.screen{
  padding-bottom:calc(var(--nav-h) + 24px) !important;
}

body.client-browser .home-primary-actions{
  gap:8px;
}

body.client-browser .home-primary-btn{
  min-height:74px;
}

body.client-browser .home-secondary-actions{
  gap:8px;
}

body.client-browser .home-secondary-btn{
  min-height:68px;
}

body.client-browser .setup-step-entry{
  min-height:calc(100dvh - var(--nav-h) - 92px);
  justify-content:flex-start;
  align-items:stretch;
  padding-top:4px;
  padding-bottom:14px;
}

body.client-browser .setup-entry-anim{
  margin:22px auto 18px;
}

body.client-browser .setup-intro-card,
body.client-browser .setup-entry-actions,
body.client-browser .setup-step-connect,
body.client-browser .setup-bottom-actions,
body.client-browser .setup-copy-big,
body.client-browser .setup-config-box{
  width:100%;
  max-width:520px;
}

body.client-browser #setup-steps-container{
  align-items:stretch;
}

body.client-browser .setup-intro-card{
  padding:18px 20px;
}

body.client-browser .setup-intro-title{
  font-size:18px;
}

body.client-browser .setup-intro-sub{
  font-size:13px;
}

body.client-browser .setup-step-connect{
  padding-bottom:8px;
}

body.client-browser .setup-connect-head{
  width:100%;
  max-width:520px;
  margin-bottom:16px;
}

body.client-browser .setup-copy-big{
  min-height:124px;
  padding:26px 22px;
  margin-bottom:16px;
}

body.client-browser .setup-copy-big .setup-copy-plus{
  font-size:58px;
}

body.client-browser .setup-config-box{
  padding:16px 18px;
  margin-bottom:14px;
}

body.client-browser .setup-device-line{
  width:100%;
  max-width:520px;
  font-size:13px;
  padding:0 4px;
}

body.client-browser .setup-anim{
  width:220px;
  height:220px;
}

body.client-browser .sr1{
  width:220px;
  height:220px;
}

body.client-browser .sr2{
  width:164px;
  height:164px;
}

body.client-browser .plug{
  font-size:78px;
}

body.client-browser .setup-entry-actions{
  gap:12px;
  padding-bottom:10px;
}

body.client-browser .setup-entry-actions .btn-a,
body.client-browser .setup-entry-actions .btn-b,
body.client-browser .setup-bottom-actions .btn-a,
body.client-browser .setup-bottom-actions .btn-b{
  min-height:62px;
  border-radius:22px;
}

body.client-browser .setup-entry-actions .btn-a,
body.client-browser .setup-entry-actions .btn-b{
  justify-content:flex-start;
}

body.client-browser .setup-entry-actions .btn-a .blhs,
body.client-browser .setup-entry-actions .btn-b .blhs{
  width:100%;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  white-space:normal;
}

body.client-browser .setup-entry-actions .btn-a .blhs > span:last-child,
body.client-browser .setup-entry-actions .btn-b .blhs > span:last-child{
  flex:1 1 auto;
  min-width:0;
  display:block;
  text-align:left;
  line-height:1.2;
}

body.client-browser .setup-bottom-actions{
  margin-top:auto;
  padding-top:18px;
  padding-bottom:22px;
}

body.client-browser .setup-step-done{
  width:100%;
  max-width:520px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

body.client-browser .setup-step-done .setup-bottom-actions{
  width:100%;
  max-width:420px;
  margin-top:12px;
}

body.client-browser .purchase-body{
  max-width:480px;
  margin:0 auto;
  padding-bottom:8px;
}

body.client-browser .purchase-plan-grid{
  max-width:460px;
}

body.client-browser .purchase-pay-btn{
  max-width:460px;
  margin:0 auto;
}

body.client-browser .profile-list,
body.client-browser .profile-section{
  max-width:480px;
  margin-left:auto;
  margin-right:auto;
}

.setup-step{
  padding:0 0 24px;
  overflow-y:auto;
  flex:1;
  display:flex;
  flex-direction:column;
}

.setup-step-connect{
  padding-bottom:0;
}

.setup-connect-head{
  margin-bottom:18px;
}

.setup-copy-big{
  background:var(--surface);
  border:1.5px solid rgba(0,180,216,0.35);
  border-radius:18px;
  padding:22px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
  cursor:pointer;
  min-height:96px;
}

.setup-copy-big .setup-copy-plus{
  font-size:44px;
  line-height:1;
  margin-bottom:6px;
  color:#f3efff;
}

.setup-config-box{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px 16px;
  margin-bottom:12px;
}

.setup-device-line{
  color:var(--muted);
  font-size:12px;
  margin-bottom:0;
  padding:0 4px;
}

.setup-hint-inline{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:6px 2px 0;
  margin-top:6px;
}

.setup-hint-inline-badge{
  width:20px;
  height:20px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(144,126,255,0.18);
  border:1px solid rgba(144,126,255,0.2);
  color:#d9d1ff;
  font-size:12px;
  font-weight:800;
  flex:0 0 auto;
}

.setup-hint-inline-copy{
  min-width:0;
}

.setup-hint-inline-title{
  color:#e7e1ff;
  font-size:12px;
  font-weight:700;
  line-height:1.3;
  margin-bottom:3px;
}

.setup-hint-inline-text{
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}

.setup-bottom-actions{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-top:14px;
  padding-bottom:68px;
}

.setup-step-done{
  align-items:center;
  justify-content:center;
  text-align:center;
}

.setup-done-icon{
  width:96px;
  height:96px;
  border-radius:50%;
  background:rgba(0,180,216,0.2);
  border:2px solid var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:44px;
  margin-bottom:20px;
  animation:float 3s ease-in-out infinite;
}

.sub-title{
  font-size:24px;
  line-height:1.12;
}

.ref-how{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px 16px;
  margin-bottom:16px;
}

.ref-how-item{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.ref-how-num{
  width:32px;
  height:32px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  font-weight:700;
  flex:0 0 auto;
}

.ref-how-num--green{
  background:rgba(0,210,120,0.15);
  color:#00d278;
}

.ref-how-num--violet{
  background:rgba(0,180,216,0.2);
  color:var(--accent2);
}

.ref-how-copy{
  min-width:0;
}

.ref-how-title{
  color:#fff;
  font-size:14px;
  font-weight:600;
  margin-bottom:2px;
}

.ref-how-text{
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.ref-how-example{
  margin-top:6px;
}

.ref-how-green{
  color:#00d278;
  font-weight:600;
}

.ref-how-violet{
  color:var(--accent2);
  font-weight:600;
}

.ref-how-strong{
  color:#fff;
  font-weight:600;
}

.ref-how-sep{
  height:1px;
  background:var(--border);
  margin:12px 0;
}

@media (max-width: 520px) {
  .sub-title{
    font-size:22px;
    line-height:1.08;
  }

  .sub-desc{
    margin-bottom:12px;
    font-size:13px;
    line-height:1.5;
  }

  .purchase-body{
    padding-bottom:8px;
  }

  .purchase-dev-row{
    padding:16px 16px;
    border-radius:20px;
    margin-bottom:14px;
    gap:14px;
  }

  .purchase-dev-row .dev-num{
    width:42px;
    height:42px;
    font-size:18px;
  }

  .purchase-dev-row .dev-name{
    font-size:17px;
    font-weight:700;
  }

  .purchase-dev-row .dev-sub{
    font-size:13px;
    margin-top:3px;
  }

  .purchase-dev-row .dev-change{
    border-radius:12px;
    padding:9px 16px;
    font-size:14px;
    font-weight:600;
  }

  .purchase-plan-grid{
    gap:14px;
    margin-bottom:14px;
  }

  .purchase-plan-grid .plan-card{
    min-height:146px;
    border-radius:22px;
    padding:20px 18px;
  }

  .purchase-plan-grid .plan-period{
    font-size:16px;
    font-weight:800;
    margin-bottom:10px;
  }

  .purchase-plan-grid .plan-price{
    font-size:32px;
    margin-bottom:8px;
  }

  .purchase-plan-grid .plan-per{
    font-size:14px;
  }

  .purchase-pay-btn{
    min-height:68px;
    border-radius:24px;
    padding:0 22px;
    margin-top:0;
    margin-bottom:18px;
    font-size:17px;
  }

  .purchase-pay-btn .pay-old{
    font-size:15px;
  }

  .setup-step{
    padding-bottom:16px;
  }

  .setup-step-entry{
    padding-bottom:8px;
  }

  .setup-intro-card{
    padding:16px 18px;
    margin-bottom:12px;
    gap:14px;
  }

  .setup-intro-icon{
    width:52px;
    height:52px;
    border-radius:16px;
    font-size:25px;
  }

  .setup-intro-title{
    font-size:20px;
    line-height:1.14;
    margin-bottom:6px;
  }

  .setup-intro-sub{
    font-size:13px;
    line-height:1.5;
  }

  .setup-anim{
    width:180px;
    height:180px;
  }

  .sr1{
    width:180px;
    height:180px;
  }

  .sr2{
    width:132px;
    height:132px;
  }

  .plug{
    font-size:64px;
  }

  .setup-entry-anim{
    margin:16px auto 20px;
  }

  .setup-entry-actions{
    gap:10px;
    padding-bottom:8px;
  }

  .setup-entry-actions .btn-a,
  .setup-entry-actions .btn-b{
    min-height:60px;
    border-radius:22px;
    padding:0 22px;
    font-size:16px;
  }

  .setup-connect-head{
    margin-bottom:16px;
  }

  .setup-copy-big{
    min-height:104px;
    padding:22px 18px;
    margin-bottom:14px;
  }

  .setup-copy-big .setup-copy-plus{
    font-size:54px;
    margin-bottom:6px;
  }

  .setup-config-box{
    padding:15px 16px;
    margin-bottom:12px;
  }

  .setup-device-line{
    font-size:13px;
    padding:0 6px;
  }

  .setup-bottom-actions{
    gap:10px;
    padding-top:14px;
    padding-bottom:98px;
  }

  .setup-done-icon{
    width:138px;
    height:138px;
    font-size:68px;
    margin-bottom:24px;
  }

  .ref-how{
    padding:16px 16px;
    margin-bottom:18px;
  }

  .ref-how-item{
    gap:12px;
  }

  .ref-how-num{
    width:34px;
    height:34px;
    font-size:17px;
  }

  .ref-how-title{
    font-size:15px;
    margin-bottom:4px;
  }

  .ref-how-text{
    font-size:13px;
    line-height:1.55;
  }

  .ref-how-sep{
    margin:14px 0;
  }
}

/* ── MOBILE OVERRIDES ── */
body.client-mobile .home-controls{
  max-width:100%;
  padding-bottom:12px;
}

body.client-mobile #nav{
  width:calc(100vw - 16px);
  bottom:8px;
  height:72px;
  padding:8px;
  border-radius:22px;
}

body.client-mobile .ntab{
  height:54px;
  border-radius:16px;
}

body.client-mobile .ntab svg{
  width:18px;
  height:18px;
}

body.client-mobile .ntab.active svg{
  width:20px;
  height:20px;
}

body.client-mobile .ntab-label{
  font-size:9px;
}

body.client-mobile .setup-anim{
  width:240px;
  height:240px;
}

body.client-mobile .sr1{
  width:240px;
  height:240px;
}

body.client-mobile .sr2{
  width:180px;
  height:180px;
}

body.client-mobile .plug{
  font-size:88px;
}
body.client-mobile .home-stage{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  gap:0 !important;
  height:calc(100dvh - var(--tg-screen-pad-top) - var(--nav-h) - 20px - var(--tg-content-safe-area-inset-bottom)) !important;
  min-height:calc(100dvh - var(--tg-screen-pad-top) - var(--nav-h) - 20px - var(--tg-content-safe-area-inset-bottom)) !important;
  max-width:100% !important;
  padding-top:2px !important;
  margin:0 auto !important;
}
body.client-mobile .home-hero{
  padding-top:112px !important;
  min-height:auto !important;
  margin-bottom:0 !important;
}
body.client-mobile .home-hero-media{
  width:337px !important;
  aspect-ratio:1 / 1 !important;
}
body.client-mobile .home-controls{
  padding-top:0 !important;
  padding-bottom:10px !important;
  margin-top:auto !important;
}
body.client-mobile .home-date-block{
  margin-bottom:6px !important;
}
body.client-mobile .home-expiry-lg{
  font-size:19px !important;
}
body.client-mobile .home-online-lg{
  font-size:13px !important;
  margin-top:3px !important;
}
body.client-mobile .home-primary-actions{
  margin-top:10px !important;
  gap:8px !important;
}
body.client-mobile .home-primary-btn{
  min-height:82px !important;
  border-radius:22px !important;
}
body.client-mobile .home-secondary-btn{
  min-height:74px !important;
  border-radius:18px !important;
}
body.client-mobile .home-body{
  justify-content:flex-start !important;
  min-height:100% !important;
}
body.client-mobile .home-wrap{
  display:flex !important;
  flex-direction:column !important;
  min-height:100% !important;
}
body.client-mobile .status-badge{
  margin-top:0 !important;
}
body.client-mobile .home-primary-btn-sub,
body.client-mobile .home-secondary-btn-sub{
  font-size:10px !important;
  line-height:1.1 !important;
}

body.client-mobile .setup-step-done{
  justify-content:flex-start !important;
  padding-top:96px !important;
}

body.client-mobile .setup-step-done .setup-bottom-actions{
  margin-top:28px !important;
  padding-top:0 !important;
  padding-bottom:18px !important;
}

body.client-mobile .setup-step-connect{
  padding-bottom:0 !important;
}

body.client-mobile .setup-step-platforms{
  padding-bottom:10px !important;
}

body.client-mobile .setup-platform-grid{
  gap:12px !important;
}

body.client-mobile .setup-platform-card{
  min-height:108px !important;
  padding:16px 14px !important;
}

body.client-mobile .setup-platform-card .platform-card-icon{
  width:46px !important;
  font-size:29px !important;
}

body.client-mobile .setup-platform-card .platform-card-title{
  font-size:14px !important;
}

body.client-mobile .setup-platform-card .platform-card-sub{
  font-size:11px !important;
  line-height:1.25 !important;
}

body.client-mobile .setup-connect-head{
  margin-bottom:14px !important;
}

body.client-mobile .setup-copy-big{
  min-height:136px !important;
  padding:28px 20px !important;
  margin-bottom:12px !important;
}

body.client-mobile .setup-copy-big .setup-copy-plus{
  font-size:72px !important;
  margin-bottom:8px !important;
}

body.client-mobile .setup-config-box{
  padding:18px 20px !important;
  margin-bottom:12px !important;
}

body.client-mobile .setup-device-line{
  font-size:12px !important;
  padding:0 2px !important;
}

body.client-mobile .setup-bottom-actions{
  margin-top:22px !important;
  gap:10px !important;
  padding-top:6px !important;
  padding-bottom:18px !important;
}

body.client-mobile .setup-bottom-actions .btn-a,
body.client-mobile .setup-bottom-actions .btn-b{
    min-height:68px !important;
  }

/* FINAL BROWSER DESKTOP VIEWPORT TUNING:
   keep the same composition as the real Telegram Mini App and only scale the whole frame */
body.client-browser.client-desktop{
  --browser-desktop-app-width: 388px;
  --browser-desktop-app-height: 640px;
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
}

body.client-browser.client-desktop #app{
  border-radius:26px !important;
  margin:auto !important;
}

body.client-browser.client-desktop .home-stage{
  max-width:344px !important;
  min-height:calc(100% - var(--nav-h) - 34px) !important;
  padding-top:18px !important;
  gap:12px !important;
}

body.client-browser.client-desktop .home-hero{
  padding-top:0 !important;
  align-items:center !important;
}

body.client-browser.client-desktop .home-hero-media{
  width:236px !important;
}

body.client-browser.client-desktop .home-status-row{
  margin-top:2px !important;
  margin-bottom:10px !important;
}

body.client-browser.client-desktop .home-controls{
  max-width:344px !important;
  transform:translateY(10px) !important;
}

body.client-browser.client-desktop .home-primary-actions{
  margin-top:6px !important;
}

body.client-browser.client-desktop .home-secondary-btn{
  min-height:58px !important;
}

body.client-browser.client-desktop #nav{
  bottom:14px !important;
}

body.client-browser.client-desktop .setup-step-entry{
  min-height:calc(100% - var(--nav-h) - 34px) !important;
  max-width:344px !important;
  margin:0 auto !important;
  padding-top:8px !important;
  padding-bottom:8px !important;
}

body.client-browser.client-desktop .setup-intro-card{
  max-width:344px !important;
  padding:12px 14px !important;
}

body.client-browser.client-desktop .setup-anim{
  width:132px !important;
  height:132px !important;
}

body.client-browser.client-desktop .sr1{
  width:132px !important;
  height:132px !important;
}

body.client-browser.client-desktop .sr2{
  width:96px !important;
  height:96px !important;
}

body.client-browser.client-desktop .plug{
  font-size:40px !important;
}

body.client-browser.client-desktop .setup-entry-actions{
  width:100% !important;
  max-width:344px !important;
  margin-top:auto !important;
  padding-top:12px !important;
}

body.client-browser.client-desktop .setup-entry-actions .btn-a,
body.client-browser.client-desktop .setup-entry-actions .btn-b{
  min-height:56px !important;
}

body.client-browser.client-desktop .setup-intro-title{
  font-size:16px !important;
}

body.client-browser.client-desktop .setup-intro-sub{
  font-size:12px !important;
}

body.client-browser.client-desktop .setup-step-platforms,
body.client-browser.client-desktop .setup-step-connect,
body.client-browser.client-desktop .setup-step-done,
body.client-browser.client-desktop .setup-config-box,
body.client-browser.client-desktop .setup-copy-big,
body.client-browser.client-desktop .setup-bottom-actions{
  max-width:344px !important;
}

body.client-browser.client-desktop .setup-bottom-actions{
  padding-top:16px !important;
  padding-bottom:16px !important;
}

body.client-browser.client-desktop .home-hero-media{
  animation:heroOrbit 9.6s ease-in-out infinite !important;
}

body.client-browser.client-desktop .home-hero-media::before{
  animation:heroPulse 5.4s ease-in-out infinite !important;
}

body.client-browser.client-desktop .home-hero-media::after{
  animation:heroRing 10.5s linear infinite !important;
}

body.client-browser.client-desktop .home-hero-film::after{
  animation:heroFilmDrift 4.6s ease-in-out infinite !important;
}

body.client-browser.client-desktop .home-hero-film .hero-droplet{
  animation:heroDropletRun 4.6s ease-in-out infinite !important;
}

body.client-browser.client-desktop .home-hero-media img{
  animation:heroImageFloat 6.2s ease-in-out infinite !important;
}

/* ── UNIFIED RESPONSIVE LAYOUT 2026-05
   One composition for Telegram mobile, Telegram Desktop and browser cabinet. */
:root{
  --app-maxw: 520px;
  --content-pad: clamp(14px, 4vw, 22px);
  --content-gap: 12px;
  --card-r: 18px;
  --control-r: 16px;
  --unified-nav-h: 68px;
  --screen-h: 100dvh;
}

html,
body{
  width:100% !important;
  min-width:320px !important;
  min-height:100% !important;
  background:var(--bg-base) !important;
  overflow:hidden !important;
}

body.client-browser.client-desktop{
  display:block !important;
  min-height:100dvh !important;
}

body.client-browser.client-desktop #app,
body.client-desktop #app,
body.client-mobile #app,
#app{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  height:var(--screen-h) !important;
  min-height:var(--screen-h) !important;
  margin:0 !important;
  border-radius:0 !important;
  border:0 !important;
  box-shadow:none !important;
  zoom:1 !important;
  transform:none !important;
  overflow:hidden !important;
}

body.client-browser.client-desktop #bg,
body.client-desktop #bg,
body.client-mobile #bg,
#bg{
  position:fixed !important;
  inset:0 !important;
  border-radius:0 !important;
}

.screen,
#screen-home.screen,
body.client-browser.client-desktop #screen-home.screen{
  min-height:0 !important;
  height:var(--screen-h) !important;
  padding-top:var(--tg-screen-pad-top) !important;
  padding-left:max(var(--tg-content-safe-area-inset-left), 0px) !important;
  padding-right:max(var(--tg-content-safe-area-inset-right), 0px) !important;
  padding-bottom:calc(var(--unified-nav-h) + 18px + var(--tg-content-safe-area-inset-bottom)) !important;
  overflow:hidden !important;
}

.wrap,
body.client-browser .wrap,
body.client-browser.client-desktop .wrap,
body.client-desktop .wrap,
body.client-mobile .wrap{
  width:100% !important;
  max-width:var(--app-maxw) !important;
  min-height:0 !important;
  height:100% !important;
  margin:0 auto !important;
  padding:0 var(--content-pad) 18px !important;
  gap:var(--content-gap) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-width:none !important;
}

.wrap::-webkit-scrollbar{display:none !important;}

.hdr{
  min-height:52px !important;
  padding:10px 0 12px !important;
  gap:10px !important;
}

.hdr-title{
  font-size:18px !important;
  line-height:1.16 !important;
  letter-spacing:0 !important;
}

.hdr-back,
.hdr-btn,
.sheet-close{
  flex:0 0 auto !important;
}

#nav,
body.client-browser #nav,
body.client-browser.client-desktop #nav,
body.client-desktop #nav,
body.client-mobile #nav{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  bottom:calc(8px + var(--tg-content-safe-area-inset-bottom)) !important;
  transform:translateX(-50%) !important;
  width:min(calc(100vw - 20px), var(--app-maxw)) !important;
  max-width:var(--app-maxw) !important;
  height:var(--unified-nav-h) !important;
  padding:8px !important;
  gap:8px !important;
  border-radius:22px !important;
}

.ntab,
body.client-desktop .ntab,
body.client-mobile .ntab{
  height:52px !important;
  min-width:0 !important;
  border-radius:16px !important;
  gap:3px !important;
}

.ntab svg,
body.client-desktop .ntab svg,
body.client-mobile .ntab svg,
.ntab.active svg,
body.client-desktop .ntab.active svg,
body.client-mobile .ntab.active svg{
  width:19px !important;
  height:19px !important;
}

.ntab-label,
body.client-desktop .ntab-label,
body.client-mobile .ntab-label{
  max-width:100% !important;
  font-size:9px !important;
  line-height:1.05 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.home-wrap{
  padding-left:0 !important;
  padding-right:0 !important;
}

.home-body,
body.client-desktop .home-body,
body.client-mobile .home-body{
  width:100% !important;
  min-height:100% !important;
  justify-content:flex-start !important;
}

.home-stage,
body.client-browser .home-stage,
body.client-browser.client-desktop .home-stage,
body.client-desktop .home-stage,
body.client-mobile .home-stage{
  width:100% !important;
  max-width:var(--app-maxw) !important;
  height:auto !important;
  min-height:calc(var(--screen-h) - var(--tg-screen-pad-top) - var(--unified-nav-h) - 28px - var(--tg-content-safe-area-inset-bottom)) !important;
  margin:0 auto !important;
  padding:clamp(10px, 3dvh, 24px) var(--content-pad) 12px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  gap:clamp(12px, 2.2dvh, 20px) !important;
}

.home-hero,
body.client-browser .home-hero,
body.client-browser.client-desktop .home-hero,
body.client-desktop .home-hero,
body.client-mobile .home-hero{
  width:100% !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  align-items:center !important;
  justify-content:center !important;
  flex:1 1 auto !important;
}

.home-hero-media,
body.client-browser .home-hero-media,
body.client-browser.client-desktop .home-hero-media,
body.client-desktop .home-hero-media,
body.client-mobile .home-hero-media{
  width:clamp(188px, min(62vw, 40dvh), 300px) !important;
  max-width:78% !important;
  aspect-ratio:1 / 1 !important;
}

.home-controls,
body.client-browser .home-controls,
body.client-browser.client-desktop .home-controls,
body.client-desktop .home-controls,
body.client-mobile .home-controls{
  width:100% !important;
  max-width:var(--app-maxw) !important;
  margin:0 auto !important;
  padding:0 !important;
  transform:none !important;
  flex:0 0 auto !important;
}

.home-date-block{
  margin-bottom:8px !important;
}

.home-expiry-lg,
body.client-desktop .home-expiry-lg,
body.client-mobile .home-expiry-lg{
  font-size:clamp(18px, 4.8vw, 22px) !important;
  line-height:1.14 !important;
  letter-spacing:0 !important;
}

.home-online-lg,
body.client-desktop .home-online-lg,
body.client-mobile .home-online-lg{
  font-size:13px !important;
  line-height:1.25 !important;
}

.home-primary-actions,
body.client-browser .home-primary-actions,
body.client-browser.client-desktop .home-primary-actions,
body.client-desktop .home-primary-actions,
body.client-mobile .home-primary-actions{
  width:100% !important;
  margin-top:8px !important;
  gap:10px !important;
}

.home-primary-btn,
body.client-browser .home-primary-btn,
body.client-browser.client-desktop .home-primary-btn,
body.client-desktop .home-primary-btn,
body.client-mobile .home-primary-btn{
  min-height:64px !important;
  height:auto !important;
  border-radius:18px !important;
  padding:10px 14px !important;
  gap:12px !important;
}

.home-primary-btn-icon{
  width:42px !important;
  height:42px !important;
  flex-basis:42px !important;
  border-radius:13px !important;
}

.home-primary-btn-title{
  font-size:16px !important;
  line-height:1.16 !important;
  letter-spacing:0 !important;
}

.home-primary-btn-sub{
  font-size:11px !important;
  line-height:1.2 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

.home-primary-btn-meta,
.home-primary-btn-tail{
  min-height:32px !important;
  padding:0 10px !important;
  font-size:13px !important;
  white-space:nowrap !important;
}

.home-secondary-actions{
  width:100% !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
}

.home-secondary-btn,
body.client-browser .home-secondary-btn,
body.client-browser.client-desktop .home-secondary-btn,
body.client-desktop .home-secondary-btn,
body.client-mobile .home-secondary-btn{
  min-height:66px !important;
  height:auto !important;
  border-radius:16px !important;
  padding:10px 8px !important;
}

.home-secondary-btn-title{
  font-size:13px !important;
  line-height:1.16 !important;
}

.home-secondary-btn-sub{
  font-size:11px !important;
  line-height:1.2 !important;
}

.status-badge{
  max-width:100% !important;
}

.purchase-body,
body.client-browser .purchase-body,
body.client-desktop .purchase-body{
  width:100% !important;
  max-width:var(--app-maxw) !important;
  margin:0 auto !important;
  padding-bottom:18px !important;
}

.sub-title,
.pg-title,
.section-title-lg{
  font-size:clamp(22px, 5vw, 26px) !important;
  line-height:1.15 !important;
  letter-spacing:0 !important;
}

.sub-desc,
.pg-sub,
.section-sub-lg{
  font-size:13px !important;
  line-height:1.5 !important;
}

.purchase-dev-row,
.dev-row{
  min-height:68px !important;
  padding:14px !important;
  border-radius:var(--card-r) !important;
  gap:12px !important;
}

.purchase-plan-grid,
body.client-browser .purchase-plan-grid,
.plan-grid{
  width:100% !important;
  max-width:none !important;
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:10px !important;
}

.plan-card,
body.client-desktop .purchase-plan-grid .plan-card,
.plan{
  min-width:0 !important;
  min-height:118px !important;
  border-radius:var(--card-r) !important;
  padding:14px 10px !important;
}

.plan-period{
  font-size:13px !important;
  line-height:1.2 !important;
}

.plan-price{
  font-size:clamp(18px, 4.7vw, 24px) !important;
  line-height:1.08 !important;
  white-space:nowrap !important;
}

.plan-per{
  font-size:11px !important;
  line-height:1.2 !important;
}

.pay-btn,
.purchase-pay-btn,
body.client-browser .purchase-pay-btn,
body.client-desktop .purchase-pay-btn,
.btn-a,
.btn-b{
  width:100% !important;
  max-width:none !important;
  min-height:56px !important;
  border-radius:var(--control-r) !important;
  font-size:15px !important;
  line-height:1.15 !important;
}

.mgroup,
.ucard,
.refbox,
.ref-how,
.confirm-box,
.pm-row,
.pm-option,
.setup-intro-card,
.setup-config-box,
.setup-copy-big,
.app-card,
.setup-country-card,
[style*="background:var(--surface)"][style*="border-radius:20px"],
[style*="background:var(--surface)"][style*="border-radius:18px"],
[style*="background:var(--surface)"][style*="border-radius:16px"]{
  border-radius:var(--card-r) !important;
}

.mrow{
  min-height:64px !important;
  gap:12px !important;
  padding:12px 14px !important;
}

.mico,
.ava,
.pm-opt-ico{
  flex:0 0 auto !important;
}

.mtitle,
.uname,
.app-name,
.platform-card-title{
  font-size:15px !important;
  line-height:1.2 !important;
}

.msub,
.uid,
.app-desc,
.platform-card-sub{
  font-size:12px !important;
  line-height:1.35 !important;
}

.setup-step,
.setup-step-entry,
.setup-step-platforms,
.setup-step-connect,
.setup-step-done,
body.client-browser .setup-step-entry,
body.client-browser.client-desktop .setup-step-entry,
body.client-mobile .setup-step-done,
body.client-mobile .setup-step-connect,
body.client-mobile .setup-step-platforms{
  width:100% !important;
  max-width:var(--app-maxw) !important;
  min-height:0 !important;
  margin:0 auto !important;
  padding:0 0 18px !important;
  overflow:visible !important;
}

.setup-step-entry{
  min-height:calc(var(--screen-h) - var(--tg-screen-pad-top) - var(--unified-nav-h) - 82px - var(--tg-content-safe-area-inset-bottom)) !important;
}

.setup-entry-anim,
body.client-browser .setup-entry-anim{
  width:clamp(138px, min(42vw, 25dvh), 220px) !important;
  height:clamp(138px, min(42vw, 25dvh), 220px) !important;
  margin:auto auto 18px !important;
}

.setup-anim,
body.client-browser .setup-anim,
body.client-browser.client-desktop .setup-anim,
body.client-mobile .setup-anim,
.sr1,
body.client-browser .sr1,
body.client-browser.client-desktop .sr1,
body.client-mobile .sr1{
  width:clamp(138px, min(42vw, 25dvh), 220px) !important;
  height:clamp(138px, min(42vw, 25dvh), 220px) !important;
}

.sr2,
body.client-browser .sr2,
body.client-browser.client-desktop .sr2,
body.client-mobile .sr2{
  width:72% !important;
  height:72% !important;
}

.plug,
body.client-browser .plug,
body.client-browser.client-desktop .plug,
body.client-mobile .plug{
  font-size:clamp(42px, 13vw, 76px) !important;
}

.setup-entry-actions,
body.client-browser .setup-entry-actions,
body.client-browser.client-desktop .setup-entry-actions,
body.client-mobile .setup-entry-actions{
  width:100% !important;
  max-width:none !important;
  margin-top:0 !important;
  padding:0 !important;
  gap:10px !important;
}

.setup-platform-grid,
body.client-browser .setup-platform-grid,
body.client-browser.client-desktop .setup-platform-grid,
body.client-mobile .setup-platform-grid{
  width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:10px !important;
}

.setup-platform-card,
body.client-browser .setup-platform-card,
body.client-browser.client-desktop .setup-platform-card,
body.client-mobile .setup-platform-card{
  min-height:96px !important;
  padding:14px !important;
  border-radius:var(--card-r) !important;
}

.setup-copy-big,
body.client-browser .setup-copy-big,
body.client-mobile .setup-copy-big{
  min-height:104px !important;
  padding:20px !important;
}

.setup-bottom-actions,
body.client-browser .setup-bottom-actions,
body.client-browser.client-desktop .setup-bottom-actions,
body.client-mobile .setup-bottom-actions{
  width:100% !important;
  max-width:none !important;
  margin-top:auto !important;
  padding:16px 0 0 !important;
  gap:10px !important;
}

.sheet-overlay,
body.client-browser.client-desktop .sheet-overlay{
  position:fixed !important;
  inset:0 !important;
  border-radius:0 !important;
}

.sheet,
body.client-browser.client-desktop .sheet{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  bottom:0 !important;
  width:min(100vw, var(--app-maxw)) !important;
  max-height:min(88dvh, 720px) !important;
  padding:0 var(--content-pad) calc(22px + var(--tg-content-safe-area-inset-bottom)) !important;
  border-radius:24px 24px 0 0 !important;
  transform:translate(-50%, 102%) !important;
}

.sheet.active,
body.client-browser.client-desktop .sheet.active{
  transform:translate(-50%, 0) !important;
}

.sheet-hdr{
  margin-bottom:16px !important;
}

.sheet-title{
  font-size:19px !important;
  line-height:1.2 !important;
}

input,
textarea,
select,
button{
  font-family:inherit !important;
}

input,
textarea,
select{
  min-height:48px !important;
  border-radius:var(--control-r) !important;
  font-size:16px !important;
}

img,
svg{
  max-width:100%;
}

.refurl,
#cabinetUrl,
#setupConfigUrl,
#refLinkBox{
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}

@media (max-width: 380px){
  :root{
    --content-pad: 12px;
    --unified-nav-h: 64px;
  }

  .purchase-plan-grid,
  .plan-grid{
    gap:8px !important;
  }

  .plan-card,
  .plan{
    padding:12px 8px !important;
    min-height:110px !important;
  }

  .home-primary-btn-meta{
    display:none !important;
  }
}

@media (max-height: 720px){
  .home-stage,
  body.client-browser.client-desktop .home-stage,
  body.client-mobile .home-stage{
    padding-top:8px !important;
    gap:10px !important;
  }

  .home-hero-media,
  body.client-browser.client-desktop .home-hero-media,
  body.client-mobile .home-hero-media{
    width:clamp(170px, min(56vw, 34dvh), 240px) !important;
  }

  .home-primary-btn{
    min-height:58px !important;
  }

  .home-secondary-btn{
    min-height:58px !important;
  }
}

@media (min-width: 900px){
  :root{
    --app-maxw: 560px;
  }
}

html body.client-browser.client-desktop #app #nav{
  width:min(calc(100vw - 20px), var(--app-maxw)) !important;
  max-width:var(--app-maxw) !important;
  height:var(--unified-nav-h) !important;
  bottom:calc(8px + var(--tg-content-safe-area-inset-bottom)) !important;
}

html body.client-browser.client-desktop #app .home-hero-media{
  width:clamp(188px, min(62vw, 40dvh), 300px) !important;
  max-width:78% !important;
}

@media (max-height: 720px){
  html body.client-browser.client-desktop #app .home-hero-media{
    width:clamp(170px, min(56vw, 34dvh), 240px) !important;
  }
}

/* ── HOME WIDTH + TELEGRAM DESKTOP FIT
   The main action stack must align with the bottom mini-bar outer width. */
:root{
  --home-bar-w: min(calc(100vw - 20px), var(--app-maxw));
}

#screen-home .home-stage,
body.client-browser #screen-home .home-stage,
body.client-browser.client-desktop #screen-home .home-stage,
body.client-desktop #screen-home .home-stage,
body.client-mobile #screen-home .home-stage{
  width:var(--home-bar-w) !important;
  max-width:var(--home-bar-w) !important;
  padding-left:0 !important;
  padding-right:0 !important;
  justify-content:flex-start !important;
  gap:clamp(8px, 1.8dvh, 14px) !important;
}

#screen-home .wrap.home-wrap,
body.client-browser #screen-home .wrap.home-wrap,
body.client-browser.client-desktop #screen-home .wrap.home-wrap,
body.client-desktop #screen-home .wrap.home-wrap,
body.client-mobile #screen-home .wrap.home-wrap{
  padding-left:0 !important;
  padding-right:0 !important;
}

#screen-home .home-body{
  align-items:center !important;
}

#screen-home .home-controls,
body.client-browser #screen-home .home-controls,
body.client-browser.client-desktop #screen-home .home-controls,
body.client-desktop #screen-home .home-controls,
body.client-mobile #screen-home .home-controls{
  width:var(--home-bar-w) !important;
  max-width:var(--home-bar-w) !important;
  padding:0 !important;
  margin:0 auto !important;
}

#screen-home .home-primary-actions,
#screen-home .home-primary-btn,
#screen-home .home-secondary-actions{
  width:100% !important;
  max-width:none !important;
}

#screen-home .home-hero{
  flex:1 1 auto !important;
  min-height:0 !important;
  display:flex !important;
}

#screen-home .home-hero-media{
  flex:0 1 auto !important;
}

#screen-home .home-date-block,
#screen-home .home-primary-actions{
  position:relative !important;
  z-index:2 !important;
}

#screen-home .status-badge{
  min-height:28px !important;
  height:28px !important;
  padding:0 11px !important;
  display:inline-flex !important;
  align-items:center !important;
  white-space:nowrap !important;
}

#screen-home .home-expiry-lg{
  min-height:24px !important;
  white-space:normal !important;
}

#screen-home .home-online-lg{
  min-height:17px !important;
}

@media (max-width: 380px){
  :root{
    --home-bar-w: calc(100vw - 16px);
  }
}

@media (max-height: 760px){
  #screen-home .home-stage,
  body.client-desktop #screen-home .home-stage,
  body.client-browser.client-desktop #screen-home .home-stage{
    padding-top:6px !important;
    padding-bottom:8px !important;
    gap:7px !important;
  }

  #screen-home .home-hero-media,
  body.client-desktop #screen-home .home-hero-media,
  body.client-browser.client-desktop #screen-home .home-hero-media{
    width:clamp(142px, min(46vw, 28dvh), 210px) !important;
  }

  #screen-home .home-date-block{
    margin-bottom:4px !important;
  }

  #screen-home .home-expiry-lg{
    font-size:18px !important;
    line-height:1.08 !important;
  }

  #screen-home .home-online-lg{
    font-size:12px !important;
    margin-top:2px !important;
  }

  #screen-home .home-primary-actions{
    margin-top:6px !important;
    gap:8px !important;
  }

  #screen-home .home-primary-btn{
    min-height:56px !important;
    padding:8px 12px !important;
  }

  #screen-home .home-primary-btn-icon{
    width:38px !important;
    height:38px !important;
    flex-basis:38px !important;
  }

  #screen-home .home-primary-btn-title{
    font-size:15px !important;
  }

  #screen-home .home-primary-btn-sub{
    font-size:10px !important;
  }

  #screen-home .home-secondary-btn{
    min-height:54px !important;
    padding:8px 6px !important;
  }

  #screen-home .home-secondary-btn-icon{
    font-size:17px !important;
  }

  #screen-home .home-secondary-btn-title{
    font-size:12px !important;
  }

  #screen-home .home-secondary-btn-sub{
    font-size:10px !important;
  }

  #screen-home .status-badge{
    min-height:26px !important;
    height:26px !important;
    font-size:11px !important;
  }
}

@media (max-height: 640px){
  #screen-home .home-hero-media,
  body.client-desktop #screen-home .home-hero-media,
  body.client-browser.client-desktop #screen-home .home-hero-media{
    width:clamp(120px, min(42vw, 24dvh), 170px) !important;
  }

  #screen-home .home-primary-btn-meta{
    display:none !important;
  }
}

/* ── VISUAL LAYOUT EDITOR VALUES ── */
#screen-home .home-stage{
  padding-top:var(--le-home-top, 6px) !important;
  gap:var(--le-home-gap, 7px) !important;
}

#screen-home .home-hero-media,
body.client-desktop #screen-home .home-hero-media,
body.client-browser.client-desktop #screen-home .home-hero-media,
body.client-mobile #screen-home .home-hero-media{
  width:var(--le-hero-size, clamp(142px, min(46vw, 28dvh), 210px)) !important;
}

#screen-home .home-date-block{
  margin-top:var(--le-status-top, 0px) !important;
  margin-bottom:var(--le-status-bottom, 4px) !important;
}

#screen-home .home-expiry-lg{
  font-size:var(--le-date-font, 18px) !important;
}

#screen-home .home-primary-actions{
  margin-top:var(--le-actions-top, 6px) !important;
  gap:var(--le-actions-gap, 8px) !important;
}

#screen-home .home-primary-btn{
  min-height:var(--le-primary-height, 56px) !important;
}

#screen-home .home-secondary-btn{
  min-height:var(--le-secondary-height, 54px) !important;
}

.purchase-body .sub-title{
  font-size:var(--le-purchase-title-font, clamp(22px, 5vw, 26px)) !important;
}

.purchase-plan-grid .plan-card{
  min-height:var(--le-plan-height, 118px) !important;
}

.purchase-plan-grid .plan-price{
  font-size:var(--le-plan-price-font, clamp(18px, 4.7vw, 24px)) !important;
  font-weight:var(--le-plan-price-weight, 900) !important;
}

.purchase-plan-grid .plan-badge{
  font-size:var(--le-plan-badge-font, 12px) !important;
  font-weight:900 !important;
}

.purchase-pay-btn{
  min-height:var(--le-pay-height, 56px) !important;
  font-size:var(--le-pay-font, 15px) !important;
}

.layout-editor-panel{
  position:fixed;
  right:12px;
  top:12px;
  z-index:10000;
  width:min(360px, calc(100vw - 24px));
  max-height:calc(100dvh - 24px);
  overflow:auto;
  padding:14px;
  border-radius:18px;
  background:rgba(7,14,28,.94);
  border:1px solid rgba(94,234,255,.26);
  box-shadow:0 18px 56px rgba(0,0,0,.48);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  color:#fff;
  font-family:var(--display-font);
}

.layout-editor-panel.is-collapsed{
  width:auto;
  max-width:calc(100vw - 24px);
}

.layout-editor-panel.is-collapsed .layout-editor-body{
  display:none;
}

.layout-editor-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.layout-editor-title{
  font-size:14px;
  font-weight:900;
  line-height:1.2;
}

.layout-editor-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.layout-editor-actions button,
.layout-editor-copy,
.layout-editor-reset{
  min-height:34px !important;
  border:1px solid rgba(94,234,255,.22);
  border-radius:10px !important;
  padding:0 10px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:12px !important;
  font-weight:800;
  cursor:pointer;
}

.layout-editor-row{
  display:grid;
  grid-template-columns:1fr 64px;
  gap:10px;
  align-items:center;
  margin:10px 0;
}

.layout-editor-row label{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
  color:rgba(255,255,255,.82);
  font-size:12px;
  font-weight:800;
}

.layout-editor-row input[type=range]{
  width:100%;
  min-height:auto !important;
}

.layout-editor-value{
  color:#5eeaff;
  font-size:12px;
  font-weight:900;
  text-align:right;
}

.layout-editor-section{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.10);
  color:#5eeaff;
  font-size:12px;
  font-weight:900;
}

.layout-editor-foot{
  display:flex;
  gap:8px;
  margin-top:12px;
}

.layout-editor-foot button{
  flex:1;
}

@media (max-width: 760px){
  .layout-editor-panel{
    left:8px;
    right:8px;
    top:auto;
    bottom:8px;
    width:auto;
    max-height:48dvh;
  }
}

html body.layout-editor-enabled #app #screen-home .home-stage{
  max-width:var(--le-home-stage-width, var(--le-wrap-width, 430px)) !important;
  padding-top:var(--le-home-top, 6px) !important;
  gap:var(--le-home-gap, 7px) !important;
  overflow:visible !important;
}

html body.layout-editor-enabled #app #screen-home .home-hero-media{
  width:var(--le-hero-size, 210px) !important;
  max-width:none !important;
  background-size:var(--le-hero-bg-size, 100%) !important;
  background-repeat:no-repeat !important;
  overflow:visible !important;
}

html body.layout-editor-enabled #app,
html body.layout-editor-enabled #app #screen-home.screen,
html body.layout-editor-enabled #app #screen-home .home-body,
html body.layout-editor-enabled #app #screen-home .home-wrap,
html body.layout-editor-enabled #app #screen-home .home-hero{
  overflow:visible !important;
}

html body.layout-editor-enabled #app #screen-home .home-date-block{
  margin-top:var(--le-status-top, 0px) !important;
  margin-bottom:var(--le-status-bottom, 4px) !important;
}

html body.layout-editor-enabled #app #screen-home .home-expiry-lg{
  font-size:var(--le-date-font, 18px) !important;
}

html body.layout-editor-enabled #app #screen-home .home-primary-actions{
  margin-top:var(--le-actions-top, 6px) !important;
  gap:var(--le-actions-gap, 8px) !important;
}

html body.layout-editor-enabled #app #screen-home .home-primary-btn{
  min-height:var(--le-primary-height, 56px) !important;
}

html body.layout-editor-enabled #app #screen-home .home-secondary-btn{
  min-height:var(--le-secondary-height, 54px) !important;
}

html body.layout-editor-enabled #app .purchase-body .sub-title{
  font-size:var(--le-purchase-title-font, 26px) !important;
}

html body.layout-editor-enabled #app .purchase-plan-grid .plan-card{
  min-height:var(--le-plan-height, 118px) !important;
}

html body.layout-editor-enabled #app .purchase-plan-grid .plan-price{
  font-size:var(--le-plan-price-font, 24px) !important;
}

html body.layout-editor-enabled #app .purchase-plan-grid .plan-badge{
  font-size:var(--le-plan-badge-font, 12px) !important;
}

html body.layout-editor-enabled #app .purchase-pay-btn{
  min-height:var(--le-pay-height, 56px) !important;
  font-size:var(--le-pay-font, 15px) !important;
}

html body.layout-editor-enabled #app .wrap{
  max-width:var(--le-wrap-width, var(--app-maxw)) !important;
  padding-left:var(--le-page-pad, var(--content-pad)) !important;
  padding-right:var(--le-page-pad, var(--content-pad)) !important;
}

html body.layout-editor-enabled #app #nav{
  min-height:var(--le-nav-height, var(--unified-nav-h)) !important;
  gap:var(--le-nav-gap, 8px) !important;
}

html body.layout-editor-enabled #app .ntab-label{
  font-size:var(--le-nav-font, 10px) !important;
}

html body.layout-editor-enabled #app .ntab svg{
  width:var(--le-nav-icon, 20px) !important;
  height:var(--le-nav-icon, 20px) !important;
}

html body.layout-editor-enabled #app .ucard,
html body.layout-editor-enabled #app .mgroup,
html body.layout-editor-enabled #app .refbox,
html body.layout-editor-enabled #app .ref-hero-card,
html body.layout-editor-enabled #app .ref-stat-card,
html body.layout-editor-enabled #app .support-hero-card,
html body.layout-editor-enabled #app .faq-item,
html body.layout-editor-enabled #app .setup-intro-card,
html body.layout-editor-enabled #app .setup-config-box,
html body.layout-editor-enabled #app .setup-copy-big,
html body.layout-editor-enabled #app .setup-platform-card{
  border-radius:var(--le-card-radius, 18px) !important;
}

html body.layout-editor-enabled #app .ucard{
  min-height:var(--le-profile-card-height, 78px) !important;
}

html body.layout-editor-enabled #app .ava{
  width:var(--le-profile-avatar, 52px) !important;
  height:var(--le-profile-avatar, 52px) !important;
  font-size:calc(var(--le-profile-avatar, 52px) * .42) !important;
}

html body.layout-editor-enabled #app .mrow{
  min-height:var(--le-profile-row-height, 64px) !important;
}

html body.layout-editor-enabled #app .mico{
  width:var(--le-profile-icon-size, 40px) !important;
  height:var(--le-profile-icon-size, 40px) !important;
  font-size:calc(var(--le-profile-icon-size, 40px) * .48) !important;
}

html body.layout-editor-enabled #app .mtitle{
  font-size:var(--le-profile-title-font, 15px) !important;
}

html body.layout-editor-enabled #app .msub{
  font-size:var(--le-profile-sub-font, 12px) !important;
}

html body.layout-editor-enabled #app .sh{
  font-size:var(--le-profile-section-font, 12px) !important;
}

html body.layout-editor-enabled #app .ref-hero-card{
  padding:var(--le-ref-hero-pad, 22px) !important;
}

html body.layout-editor-enabled #app .ref-hero-card > div:first-child{
  font-size:var(--le-ref-hero-icon, 36px) !important;
}

html body.layout-editor-enabled #app .ref-stat-card{
  min-height:var(--le-ref-stat-height, 82px) !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
}

html body.layout-editor-enabled #app .ref-stat-card > div:first-child{
  font-size:var(--le-ref-stat-number, 22px) !important;
}

html body.layout-editor-enabled #app .ref-how{
  padding:var(--le-ref-how-pad, 16px) !important;
}

html body.layout-editor-enabled #app .ref-how-title{
  font-size:var(--le-ref-title-font, 14px) !important;
}

html body.layout-editor-enabled #app .hist-row{
  min-height:var(--le-ref-row-height, 66px) !important;
}

html body.layout-editor-enabled #app #refLinkBox,
html body.layout-editor-enabled #app .refurl{
  font-size:var(--le-ref-link-font, 13px) !important;
}

html body.layout-editor-enabled #app #setup-steps-container,
html body.layout-editor-enabled #app .setup-step{
  gap:var(--le-setup-gap, 12px) !important;
}

html body.layout-editor-enabled #app .setup-intro-card{
  padding:var(--le-setup-card-pad, 16px) !important;
}

html body.layout-editor-enabled #app .setup-intro-title,
html body.layout-editor-enabled #app .setup-platform-card .platform-card-title{
  font-size:var(--le-setup-title-font, 18px) !important;
}

html body.layout-editor-enabled #app .setup-intro-sub,
html body.layout-editor-enabled #app .setup-platform-card .platform-card-sub{
  font-size:var(--le-setup-sub-font, 12px) !important;
}

html body.layout-editor-enabled #app .setup-anim,
html body.layout-editor-enabled #app .sr1{
  width:var(--le-setup-anim-size, 200px) !important;
  height:var(--le-setup-anim-size, 200px) !important;
}

html body.layout-editor-enabled #app .setup-platform-card{
  min-height:var(--le-setup-platform-height, 96px) !important;
}

html body.layout-editor-enabled #app .setup-platform-card .platform-card-icon{
  font-size:var(--le-setup-platform-icon, 28px) !important;
}

html body.layout-editor-enabled #app .setup-copy-big{
  min-height:var(--le-setup-copy-height, 104px) !important;
}

html body.layout-editor-enabled #app .setup-entry-actions .btn-a,
html body.layout-editor-enabled #app .setup-entry-actions .btn-b,
html body.layout-editor-enabled #app .setup-bottom-actions .btn-a,
html body.layout-editor-enabled #app .setup-bottom-actions .btn-b{
  min-height:var(--le-setup-action-height, 58px) !important;
}

html body.layout-editor-enabled #app .support-hero-card{
  padding:var(--le-support-card-pad, 22px) !important;
}

html body.layout-editor-enabled #app .faq-q{
  min-height:var(--le-faq-row-height, 56px) !important;
}

html body.layout-editor-enabled #app .faq-qtext{
  font-size:var(--le-faq-title-font, 14px) !important;
}

html body.layout-editor-enabled #app .faq-ans,
html body.layout-editor-enabled #app .faq-answer{
  font-size:var(--le-faq-body-font, 13px) !important;
}

html body.layout-editor-enabled .sheet,
html body.layout-editor-enabled.client-browser.client-desktop .sheet{
  width:min(100vw, var(--le-sheet-width, var(--app-maxw))) !important;
  border-radius:var(--le-sheet-radius, 24px) var(--le-sheet-radius, 24px) 0 0 !important;
}

html body.layout-editor-enabled .sheet-title{
  font-size:var(--le-sheet-title-font, 20px) !important;
}

html body.layout-editor-enabled .sheet .btn-a,
html body.layout-editor-enabled .sheet .btn-b,
html body.layout-editor-enabled .sheet .purchase-pay-btn,
html body.layout-editor-enabled .sheet button{
  min-height:var(--le-sheet-button-height, 52px) !important;
}

/* ─── PRODUCTION RESPONSIVE LAYOUT LOCK ───
   Single width model: content cards and bottom mini-bar share the same outer edges. */
:root{
  --udavy-shell-w: min(calc(100vw - 20px), 430px);
  --udavy-shell-pad: 0px;
}

@media (max-width: 380px){
  :root{
    --udavy-shell-w: calc(100vw - 16px);
  }
}

html body:not(.layout-editor-enabled) #app,
html body:not(.layout-editor-enabled) #screen-home.screen{
  overflow:hidden !important;
}

html body:not(.layout-editor-enabled) #app .wrap,
html body:not(.layout-editor-enabled).client-browser #app .wrap,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app .wrap,
html body:not(.layout-editor-enabled).client-desktop #app .wrap,
html body:not(.layout-editor-enabled).client-mobile #app .wrap{
  width:var(--udavy-shell-w) !important;
  max-width:var(--udavy-shell-w) !important;
  padding-left:var(--udavy-shell-pad) !important;
  padding-right:var(--udavy-shell-pad) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

html body:not(.layout-editor-enabled) #app #nav,
html body:not(.layout-editor-enabled).client-browser #app #nav,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #nav,
html body:not(.layout-editor-enabled).client-desktop #app #nav,
html body:not(.layout-editor-enabled).client-mobile #app #nav{
  width:var(--udavy-shell-w) !important;
  max-width:var(--udavy-shell-w) !important;
  left:50% !important;
  right:auto !important;
  transform:translateX(-50%) !important;
  bottom:calc(8px + var(--tg-content-safe-area-inset-bottom)) !important;
}

html body:not(.layout-editor-enabled) #screen-home .wrap.home-wrap,
html body:not(.layout-editor-enabled) #screen-home .home-body,
html body:not(.layout-editor-enabled) #screen-home .home-stage,
html body:not(.layout-editor-enabled) #screen-home .home-controls,
html body:not(.layout-editor-enabled) #screen-home .home-primary-actions,
html body:not(.layout-editor-enabled) #screen-home .home-primary-btn,
html body:not(.layout-editor-enabled) #screen-home .home-secondary-actions,
html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-stage,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-stage,
html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-stage,
html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-stage,
html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-controls,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-controls,
html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-controls,
html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-controls,
html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-primary-actions,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-primary-actions,
html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-primary-actions,
html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-primary-actions,
html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-primary-btn,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-primary-btn,
html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-primary-btn,
html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-primary-btn,
html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-secondary-actions,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-secondary-actions,
html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-secondary-actions,
html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-secondary-actions{
  width:var(--udavy-shell-w) !important;
  max-width:var(--udavy-shell-w) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-stage{
  min-height:calc(var(--screen-h) - var(--tg-screen-pad-top) - var(--unified-nav-h) - 28px - var(--tg-content-safe-area-inset-bottom)) !important;
  padding:clamp(8px, 2.4dvh, 20px) 0 8px !important;
  gap:clamp(8px, 1.6dvh, 14px) !important;
  justify-content:flex-start !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-hero{
  width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-hero-media{
  width:clamp(210px, min(68vw, 39dvh), 318px) !important;
  max-width:calc(var(--udavy-shell-w) - 20px) !important;
  aspect-ratio:1 / 1 !important;
  flex:0 0 auto !important;
  background-size:cover !important;
  background-position:center !important;
  overflow:visible !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-controls{
  flex:0 0 auto !important;
  padding:0 !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-primary-actions{
  margin-top:8px !important;
  gap:10px !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-primary-btn{
  display:grid !important;
  grid-template-columns:auto minmax(0, 1fr) auto !important;
  align-items:center !important;
  justify-items:stretch !important;
  column-gap:12px !important;
  min-height:62px !important;
  padding:10px 14px !important;
  border-radius:18px !important;
  overflow:hidden !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-primary-btn-icon{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  align-self:center !important;
  font-size:20px !important;
  line-height:1 !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-primary-btn-copy{
  min-width:0 !important;
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  text-align:left !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-primary-btn-title,
html body:not(.layout-editor-enabled) #screen-home .home-primary-btn-sub,
html body:not(.layout-editor-enabled) #screen-home .home-secondary-btn-title,
html body:not(.layout-editor-enabled) #screen-home .home-secondary-btn-sub{
  max-width:100% !important;
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  letter-spacing:0 !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-primary-btn-title{
  font-size:16px !important;
  line-height:1.14 !important;
  white-space:normal !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-primary-btn-sub{
  font-size:11px !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-primary-btn-meta{
  justify-self:end !important;
  max-width:30% !important;
  min-width:0 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-secondary-actions{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:10px !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-secondary-btn{
  display:grid !important;
  grid-template-columns:auto minmax(0, 1fr) !important;
  grid-template-rows:auto auto !important;
  align-items:center !important;
  column-gap:9px !important;
  row-gap:2px !important;
  min-width:0 !important;
  min-height:72px !important;
  padding:10px 10px !important;
  border-radius:16px !important;
  text-align:left !important;
  overflow:hidden !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-secondary-btn-icon{
  grid-row:1 / 3 !important;
  grid-column:1 !important;
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:17px !important;
  line-height:1 !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-secondary-btn-title{
  grid-column:2 !important;
  font-size:13px !important;
  line-height:1.12 !important;
  white-space:normal !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-secondary-btn-sub{
  grid-column:2 !important;
  font-size:10px !important;
  line-height:1.18 !important;
  text-transform:uppercase !important;
  white-space:normal !important;
  color:rgba(202,215,230,.66) !important;
}

html body:not(.layout-editor-enabled) #app .hdr{
  width:100% !important;
  max-width:100% !important;
  min-height:52px !important;
  padding:10px 0 12px !important;
  display:grid !important;
  grid-template-columns:auto minmax(0, 1fr) auto !important;
  align-items:center !important;
}

html body:not(.layout-editor-enabled) #app .hdr-title{
  min-width:0 !important;
  width:100% !important;
  justify-self:stretch !important;
  text-align:left !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
  font-size:18px !important;
  line-height:1.14 !important;
}

html body:not(.layout-editor-enabled) #app .mrow{
  display:grid !important;
  grid-template-columns:auto minmax(0, 1fr) auto !important;
  align-items:center !important;
  gap:10px !important;
  min-height:64px !important;
  padding:12px 14px !important;
}

html body:not(.layout-editor-enabled) #app .mrow > div:not(.mico):not(.marrow){
  min-width:0 !important;
}

html body:not(.layout-editor-enabled) #app .mico{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:18px !important;
  line-height:1 !important;
}

html body:not(.layout-editor-enabled) #app .mtitle,
html body:not(.layout-editor-enabled) #app .msub{
  max-width:100% !important;
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

html body:not(.layout-editor-enabled) #app .btn-a,
html body:not(.layout-editor-enabled) #app .btn-b{
  width:100% !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  overflow:hidden !important;
}

html body:not(.layout-editor-enabled) #app .blhs{
  width:100% !important;
  min-width:0 !important;
  display:grid !important;
  grid-template-columns:auto minmax(0, 1fr) !important;
  align-items:center !important;
  gap:10px !important;
}

html body:not(.layout-editor-enabled) #app .bico{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:18px !important;
  line-height:1 !important;
}

html body:not(.layout-editor-enabled) #app .blhs > span:last-child{
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:normal !important;
}

@media (max-height: 740px){
  html body:not(.layout-editor-enabled) #screen-home .home-stage{
    padding-top:6px !important;
    gap:7px !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .home-hero-media{
    width:clamp(170px, min(58vw, 31dvh), 238px) !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .home-primary-actions{
    margin-top:6px !important;
    gap:8px !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .home-primary-btn{
    min-height:56px !important;
    padding:8px 12px !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .home-secondary-btn{
    min-height:58px !important;
    padding:8px !important;
  }
}

@media (max-width: 360px){
  html body:not(.layout-editor-enabled) #screen-home .home-primary-btn{
    grid-template-columns:auto minmax(0, 1fr) !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .home-primary-btn-meta{
    display:none !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .home-secondary-btn{
    column-gap:7px !important;
    padding:8px 7px !important;
  }
}

/* ─── PRODUCTION HOME BOTTOM CLUSTER PASS ─── */
html body:not(.layout-editor-enabled) #screen-home .home-stage,
html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-stage,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-stage,
html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-stage,
html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-stage{
  height:calc(var(--screen-h) - var(--tg-screen-pad-top) - var(--unified-nav-h) - 2px - var(--tg-content-safe-area-inset-bottom)) !important;
  min-height:0 !important;
  padding:8px 0 0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  gap:8px !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-hero,
html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-hero,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-hero,
html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-hero,
html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-hero{
  flex:1 1 auto !important;
  width:100% !important;
  min-height:0 !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  padding:0 0 2px !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-hero-media,
html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-hero-media,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-hero-media,
html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-hero-media,
html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-hero-media{
  width:clamp(220px, min(72vw, 38dvh), 320px) !important;
  max-width:calc(var(--udavy-shell-w) - 14px) !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-controls,
html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-controls,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-controls,
html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-controls,
html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-controls{
  flex:0 0 auto !important;
  margin-bottom:0 !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-date-block{
  margin:0 0 6px !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-primary-actions{
  margin-top:0 !important;
  gap:8px !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-secondary-actions{
  gap:8px !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-primary-btn,
html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-primary-btn,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-primary-btn,
html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-primary-btn,
html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-primary-btn{
  min-height:60px !important;
}

html body:not(.layout-editor-enabled) #screen-home .home-secondary-btn,
html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-secondary-btn,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-secondary-btn,
html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-secondary-btn,
html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-secondary-btn{
  min-height:64px !important;
}

html body:not(.layout-editor-enabled) #app #nav,
html body:not(.layout-editor-enabled).client-browser #app #nav,
html body:not(.layout-editor-enabled).client-browser.client-desktop #app #nav,
html body:not(.layout-editor-enabled).client-desktop #app #nav,
html body:not(.layout-editor-enabled).client-mobile #app #nav{
  bottom:calc(8px + var(--tg-content-safe-area-inset-bottom)) !important;
}

@media (max-height: 700px){
  html body:not(.layout-editor-enabled) #screen-home .home-stage,
  html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-stage,
  html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-stage,
  html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-stage,
  html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-stage{
    gap:6px !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .home-hero-media,
  html body:not(.layout-editor-enabled).client-browser #app #screen-home .home-hero-media,
  html body:not(.layout-editor-enabled).client-browser.client-desktop #app #screen-home .home-hero-media,
  html body:not(.layout-editor-enabled).client-desktop #app #screen-home .home-hero-media,
  html body:not(.layout-editor-enabled).client-mobile #app #screen-home .home-hero-media{
    width:clamp(178px, min(62vw, 29dvh), 226px) !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .home-primary-btn{
    min-height:56px !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .home-secondary-btn{
    min-height:56px !important;
  }
}

/* ─── CLEAN HOME V2: isolated from legacy home-* rules ─── */
html body:not(.layout-editor-enabled) #screen-home .u-home-wrap{
  width:var(--udavy-shell-w) !important;
  max-width:var(--udavy-shell-w) !important;
  height:100% !important;
  min-height:0 !important;
  margin:0 auto !important;
  padding:0 !important;
  overflow:hidden !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-home-stage{
  width:100% !important;
  height:calc(var(--screen-h) - var(--tg-screen-pad-top) - var(--unified-nav-h) - 2px - var(--tg-content-safe-area-inset-bottom)) !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  gap:8px !important;
  padding:8px 0 0 !important;
  overflow:hidden !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-home-hero{
  width:100% !important;
  flex:1 1 auto !important;
  min-height:0 !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  overflow:visible !important;
  padding-bottom:clamp(196px, 31dvh, 218px) !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-home-hero-media{
  position:relative !important;
  width:clamp(218px, min(72vw, 38dvh), 318px) !important;
  max-width:calc(var(--udavy-shell-w) - 12px) !important;
  aspect-ratio:1 / 1 !important;
  flex:0 0 auto !important;
  border-radius:50% !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  overflow:visible !important;
  box-shadow:
    0 0 0 1px rgba(182,172,255,.12),
    0 0 0 14px rgba(123,109,255,.06),
    0 18px 42px rgba(0,0,0,.24),
    0 0 76px rgba(123,109,255,.24) !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-home-hero-media > img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  border-radius:50% !important;
  opacity:0 !important;
  pointer-events:none !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-home-hero-media::before{
  content:"" !important;
  position:absolute !important;
  inset:-24px !important;
  border-radius:50% !important;
  background:radial-gradient(circle at 50% 50%, rgba(182,172,255,.28), rgba(123,109,255,.12) 54%, rgba(123,109,255,0) 78%) !important;
  filter:blur(14px) !important;
  pointer-events:none !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-home-panel{
  width:100% !important;
  flex:0 0 auto !important;
  position:fixed !important;
  left:50% !important;
  bottom:calc(84px + var(--tg-content-safe-area-inset-bottom)) !important;
  transform:translateX(-50%) !important;
  z-index:5 !important;
  max-width:var(--udavy-shell-w) !important;
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-home-status{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:4px !important;
  min-width:0 !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-status-badge{
  min-height:28px !important;
  padding:0 12px !important;
  border-radius:999px !important;
  border:1px solid rgba(34,211,238,.34) !important;
  background:rgba(6,26,45,.78) !important;
  color:#45f08d !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-status-dot{
  width:7px !important;
  height:7px !important;
  border-radius:50% !important;
  background:currentColor !important;
  flex:0 0 auto !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-status-badge.is-expired{
  color:#ff6b6b !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-status-badge.is-expiring{
  color:#ffaa00 !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-home-date{
  max-width:100% !important;
  color:#fff !important;
  font-size:clamp(18px, 4.8vw, 22px) !important;
  font-weight:950 !important;
  line-height:1.08 !important;
  letter-spacing:0 !important;
  text-align:center !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  text-shadow:0 2px 8px rgba(0,0,0,.35) !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-home-online{
  color:var(--accent2) !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1.1 !important;
  text-align:center !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-home-actions{
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-card{
  width:100% !important;
  min-width:0 !important;
  border:1px solid rgba(116,162,210,.22) !important;
  border-radius:18px !important;
  background:
    radial-gradient(circle at 14% 50%, rgba(82,152,188,.12), transparent 34%),
    linear-gradient(135deg,rgba(18,61,94,.88),rgba(24,24,70,.96)) !important;
  color:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055), 0 10px 24px rgba(0,0,0,.10) !important;
  display:grid !important;
  grid-template-columns:auto minmax(0, 1fr) auto !important;
  align-items:center !important;
  column-gap:12px !important;
  padding:10px 14px !important;
  overflow:hidden !important;
  cursor:pointer !important;
  font:inherit !important;
  text-align:left !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-card--main{
  min-height:60px !important;
  position:relative !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-card--main::before{
  content:"" !important;
  position:absolute !important;
  top:-45% !important;
  bottom:-45% !important;
  left:-55% !important;
  width:42% !important;
  background:linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(210,250,255,.18) 34%, rgba(255,255,255,.42) 50%, rgba(160,235,255,.16) 66%, rgba(255,255,255,0) 100%) !important;
  transform:translateX(-140%) skewX(-18deg) !important;
  animation:uBtnReflection 3.8s ease-in-out infinite !important;
  pointer-events:none !important;
  z-index:2 !important;
  opacity:.82 !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-card--main::after{
  content:"" !important;
  position:absolute !important;
  inset:1px !important;
  border-radius:17px !important;
  background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 38%) !important;
  pointer-events:none !important;
  z-index:1 !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-card > *{
  position:relative !important;
  z-index:3 !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-reflection{
  position:absolute !important;
  z-index:2 !important;
  top:-35% !important;
  bottom:-35% !important;
  left:-65% !important;
  width:34% !important;
  display:block !important;
  pointer-events:none !important;
  border-radius:999px !important;
  background:
    linear-gradient(105deg,
      rgba(255,255,255,0) 0%,
      rgba(220,252,255,.30) 28%,
      rgba(255,255,255,.88) 48%,
      rgba(150,238,255,.32) 68%,
      rgba(255,255,255,0) 100%) !important;
  box-shadow:0 0 22px rgba(190,245,255,.34) !important;
  filter:blur(.1px) !important;
  transform:skewX(-18deg) !important;
  animation:uBtnReflectionLeft 2.4s ease-in-out infinite !important;
  opacity:1 !important;
  mix-blend-mode:screen !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-reflection + .u-action-icon{
  z-index:3 !important;
}

@keyframes uBtnReflection{
  0%,18%{transform:translateX(-145%) skewX(-18deg);opacity:0;}
  28%{opacity:.82;}
  54%{transform:translateX(430%) skewX(-18deg);opacity:.82;}
  64%,100%{transform:translateX(430%) skewX(-18deg);opacity:0;}
}

@keyframes uBtnReflectionLeft{
  0%,12%{left:-65%;opacity:0;}
  22%{opacity:1;}
  58%{left:132%;opacity:1;}
  72%,100%{left:132%;opacity:0;}
}

html body:not(.layout-editor-enabled) #screen-home .u-action-card--main{
  animation:uMainButtonBreath 3.2s ease-in-out infinite !important;
}

@keyframes uMainButtonBreath{
  0%,100%{
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055), 0 10px 24px rgba(0,0,0,.10), 0 0 0 rgba(130,220,255,0) !important;
  }
  50%{
    box-shadow:inset 0 1px 0 rgba(255,255,255,.09), 0 12px 28px rgba(0,0,0,.14), 0 0 22px rgba(130,220,255,.16) !important;
  }
}

html body:not(.layout-editor-enabled) #screen-home .u-action-grid{
  width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:8px !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-card--small{
  min-height:64px !important;
  grid-template-columns:auto minmax(0, 1fr) !important;
  column-gap:9px !important;
  padding:10px !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-icon{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  border-radius:12px !important;
  border:1px solid rgba(126,184,226,.22) !important;
  background:rgba(96,149,190,.14) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:18px !important;
  line-height:1 !important;
  overflow:visible !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-copy{
  min-width:0 !important;
  max-width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:3px !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-title{
  min-width:0 !important;
  max-width:100% !important;
  color:#fff !important;
  font-size:15px !important;
  font-weight:950 !important;
  line-height:1.12 !important;
  letter-spacing:0 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-sub{
  min-width:0 !important;
  max-width:100% !important;
  color:rgba(202,215,230,.72) !important;
  font-size:10px !important;
  font-weight:850 !important;
  line-height:1.15 !important;
  letter-spacing:0 !important;
  text-transform:uppercase !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-card--main .u-action-title{
  font-size:16px !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-card--main .u-action-sub{
  text-transform:none !important;
  font-size:11px !important;
}

html body:not(.layout-editor-enabled) #screen-home .u-action-meta{
  max-width:96px !important;
  min-width:0 !important;
  justify-self:end !important;
  color:#d7f7ff !important;
  font-size:13px !important;
  font-weight:950 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

@media (max-height: 700px){
  html body:not(.layout-editor-enabled) #screen-home .u-home-stage{
    gap:6px !important;
    padding-top:6px !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .u-home-hero-media{
    width:clamp(178px, min(62vw, 29dvh), 226px) !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .u-action-card--main,
  html body:not(.layout-editor-enabled) #screen-home .u-action-card--small{
    min-height:56px !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .u-action-icon{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    font-size:17px !important;
  }
}

@media (max-width: 360px){
  html body:not(.layout-editor-enabled) #screen-home .u-action-card--main{
    grid-template-columns:auto minmax(0, 1fr) !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .u-action-meta{
    display:none !important;
  }

  html body:not(.layout-editor-enabled) #screen-home .u-action-card--small{
    padding:8px !important;
    column-gap:7px !important;
  }
}

/* ─── BROWSER DESKTOP PHONE FRAME ─── */
html body.client-browser.client-desktop:not(.layout-editor-enabled){
  --browser-frame-w: min(calc(100vw - 40px), 430px);
  --browser-frame-h: min(760px, calc(100dvh - 40px));
  --screen-h: var(--browser-frame-h);
  min-height:100dvh !important;
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:20px !important;
  overflow:auto !important;
  background:
    radial-gradient(circle at 50% 45%, rgba(20,86,135,.34), transparent 38%),
    radial-gradient(circle at 50% 10%, rgba(34,211,238,.10), transparent 34%),
    linear-gradient(180deg,#09213a 0%,#07182d 48%,#05101f 100%) !important;
}

html body.client-browser.client-desktop:not(.layout-editor-enabled) #app{
  position:relative !important;
  inset:auto !important;
  width:var(--browser-frame-w) !important;
  max-width:var(--browser-frame-w) !important;
  height:var(--browser-frame-h) !important;
  min-height:var(--browser-frame-h) !important;
  margin:0 auto !important;
  border-radius:30px !important;
  border:1px solid rgba(124,236,255,.22) !important;
  box-shadow:
    0 26px 80px rgba(0,0,0,.44),
    0 0 0 10px rgba(11,42,70,.42),
    0 0 0 18px rgba(3,13,26,.22),
    inset 0 0 0 1px rgba(255,255,255,.05) !important;
  overflow:hidden !important;
  transform:none !important;
  zoom:1 !important;
}

html body.client-browser.client-desktop:not(.layout-editor-enabled) #bg{
  position:absolute !important;
  inset:0 !important;
  border-radius:30px !important;
}

html body.client-browser.client-desktop:not(.layout-editor-enabled) #screen-home.screen,
html body.client-browser.client-desktop:not(.layout-editor-enabled) .screen{
  height:var(--browser-frame-h) !important;
  min-height:var(--browser-frame-h) !important;
  padding-top:0 !important;
  padding-bottom:calc(var(--unified-nav-h) + 18px) !important;
}

html body.client-browser.client-desktop:not(.layout-editor-enabled) #app #nav{
  position:absolute !important;
  left:50% !important;
  right:auto !important;
  bottom:8px !important;
  transform:translateX(-50%) !important;
  width:var(--udavy-shell-w) !important;
  max-width:calc(100% - 20px) !important;
}

html body.client-browser.client-desktop:not(.layout-editor-enabled) #screen-home .u-home-panel{
  position:absolute !important;
  left:50% !important;
  bottom:98px !important;
  transform:translateX(-50%) !important;
  width:var(--udavy-shell-w) !important;
  max-width:calc(100% - 20px) !important;
}

html body.client-browser.client-desktop:not(.layout-editor-enabled) #screen-home .u-home-wrap,
html body.client-browser.client-desktop:not(.layout-editor-enabled) #screen-home .u-home-stage{
  width:100% !important;
  max-width:100% !important;
}

html body.client-browser.client-desktop:not(.layout-editor-enabled) #screen-home .u-home-stage{
  height:calc(var(--browser-frame-h) - var(--unified-nav-h) - 2px) !important;
  padding-top:0 !important;
}

html body.client-browser.client-desktop:not(.layout-editor-enabled) #screen-home .u-home-hero-media{
  width:clamp(226px, min(66vw, 41dvh), 328px) !important;
  transform:translateY(-18px) !important;
}

@media (max-height: 720px){
  html body.client-browser.client-desktop:not(.layout-editor-enabled){
    --browser-frame-h: calc(100dvh - 24px);
    padding:12px !important;
  }

  html body.client-browser.client-desktop:not(.layout-editor-enabled) #app{
    border-radius:24px !important;
  }

  html body.client-browser.client-desktop:not(.layout-editor-enabled) #bg{
    border-radius:24px !important;
  }
}
