:root {
  --bg:        #060807;
  --bg-2:      #0a0d0c;
  --s1:        #0f1311;
  --s2:        #131817;
  --s3:        #1a201d;
  --border:    rgba(255,255,255,.06);
  --border2:   rgba(255,255,255,.10);
  --g:         #22ff8a;
  --g-2:       #14d672;
  --g-dim:     rgba(34,255,138,.06);
  --g-mid:     rgba(34,255,138,.16);
  --g-glow:    0 10px 40px -10px rgba(34,255,138,.45), 0 0 0 1px rgba(34,255,138,.25) inset;
  --text:      #f3f5f4;
  --t2:        #8a918e;
  --t3:        #3d423f;
  --red:       #ff4d6a;
  --warn:      #f5b042;
  --blue:      #2ea7ff;
  --r:         12px;
  --r-lg:      16px;
  --ease:      cubic-bezier(.22,1,.36,1);
  --grad-card: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
  --grad-g:    linear-gradient(135deg, #22ff8a 0%, #14d672 100%);
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
*::selection { background: rgba(34,255,138,.25); color:#fff; }

html, body { height: 100%; }

body, input, button, textarea, select {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(34,255,138,.06), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(46,167,255,.04), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; cursor: pointer; }


::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.06); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.12); background-clip: padding-box; border: 2px solid transparent; }


.screen { display:none; min-height:100vh; }
.screen.active { display:flex; }


#screen-login, #screen-register {
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
#screen-login::before, #screen-register::before {
  content:"";
  position: fixed; inset: 0;
  background:
    radial-gradient(600px 400px at 50% -10%, rgba(34,255,138,.10), transparent 60%),
    radial-gradient(500px 360px at 50% 110%, rgba(34,255,138,.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.auth-wrap {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 380px;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.005));
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02) inset;
  animation: rise .5s var(--ease);
}

@keyframes rise { from{opacity:0;transform:translateY(16px);} to{opacity:1;transform:translateY(0);} }
@keyframes fade { from{opacity:0;transform:translateY(4px);} to{opacity:1;transform:translateY(0);} }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.3;transform:scale(.85);} }
@keyframes shimmer { 0%{background-position:-200% 0;} 100%{background-position:200% 0;} }
@keyframes toast-in {
  from { opacity:0; transform: translateX(20px) scale(.96); }
  to   { opacity:1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
  to { opacity:0; transform: translateX(20px) scale(.96); }
}
@keyframes toast-progress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
@keyframes page-in {
  from { opacity:0; transform: translateY(8px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes news-slide {
  from { opacity:0; transform: translateY(-12px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes ring-dash {
  from { stroke-dashoffset: var(--ring-start, 251); }
  to   { stroke-dashoffset: var(--ring-end, 251); }
}


.toast-container {
  position: fixed; top: 20px; right: 20px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.toast {
  pointer-events: auto;
  min-width: 280px; max-width: 380px;
  background: linear-gradient(180deg, rgba(20,24,22,.96), rgba(14,18,16,.96));
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 14px 16px 14px 14px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px;
  align-items: flex-start;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03) inset;
  backdrop-filter: blur(14px);
  animation: toast-in .35s var(--ease);
  position: relative; overflow: hidden;
}
.toast.hiding { animation: toast-out .25s var(--ease) forwards; }
.toast::before {
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
  background: var(--g);
  box-shadow: 0 0 12px var(--g);
}
.toast.t-error::before   { background: var(--red); box-shadow: 0 0 12px var(--red); }
.toast.t-warn::before    { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.toast.t-info::before    { background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.toast-ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--g-dim);
  color: var(--g);
  border: 1px solid rgba(34,255,138,.22);
}
.toast.t-error .toast-ico { background: rgba(255,77,106,.10); color: var(--red); border-color: rgba(255,77,106,.25); }
.toast.t-warn  .toast-ico { background: rgba(245,176,66,.10); color: var(--warn); border-color: rgba(245,176,66,.25); }
.toast.t-info  .toast-ico { background: rgba(46,167,255,.10); color: var(--blue); border-color: rgba(46,167,255,.25); }
.toast-body { min-width: 0; padding-top: 2px; }
.toast-title { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.toast-sub { font-size: 12px; color: var(--t2); margin-top: 3px; line-height: 1.4; word-wrap: break-word; }
.toast-x {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 6px;
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--t2);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.toast-x:hover { background: var(--s3); color: var(--text); }
.toast-bar {
  position: absolute; left:0; right:0; bottom:0; height: 2px;
  background: var(--g); opacity: .55;
  transform-origin: left;
  animation: toast-progress linear forwards;
}
.toast.t-error .toast-bar { background: var(--red); }
.toast.t-warn  .toast-bar { background: var(--warn); }
.toast.t-info  .toast-bar { background: var(--blue); }


.news-banner {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(34,255,138,.10), rgba(34,255,138,.02) 40%, rgba(255,77,106,.04)),
    var(--s1);
  border: 1px solid rgba(34,255,138,.22);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: news-slide .5s var(--ease);
}
.news-banner::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(400px 120px at 0% 50%, rgba(34,255,138,.12), transparent 60%);
  pointer-events: none;
}
.news-flag {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  display: grid; grid-template-rows: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 6px 20px -6px rgba(255,77,106,.4), 0 0 0 1px rgba(255,255,255,.08) inset;
  position: relative; z-index: 1;
}
.news-flag.telegram {
  place-items: center;
  grid-template-rows: 1fr;
  background: rgba(29,161,242,.11);
  border: 1px solid rgba(29,161,242,.25);
  box-shadow: 0 6px 20px -6px rgba(29,161,242,.34), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.news-flag span:first-child { background: #fff; }
.news-flag span:last-child  { background: #dc143c; }
.news-body { min-width: 0; position: relative; z-index: 1; }
.news-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--g);
  background: var(--g-dim);
  border: 1px solid rgba(34,255,138,.25);
  padding: 2px 8px; border-radius: 100px;
  margin-bottom: 6px;
}
.news-tag .pdot { width:5px; height:5px; }
.news-title { font-size: 14.5px; font-weight: 600; color: var(--text); letter-spacing: -.2px; }
.news-title b { color: var(--g); font-weight: 700; }
.news-sub { font-size: 12px; color: var(--t2); margin-top: 3px; }
.news-close {
  position: relative; z-index: 1;
  width: 28px; height: 28px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--s2); color: var(--t2);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
  flex-shrink: 0;
}
.news-close:hover { background: var(--s3); color: var(--text); border-color: var(--border2); }

.ring-wrap {
  position: relative;
  width: 92px; height: 92px;
  display: grid; place-items: center;
}
.ring-wrap svg { transform: rotate(-90deg); display: block; }
.ring-track { stroke: rgba(255,255,255,.06); fill: none; }
.ring-fill {
  stroke: url(#ringGrad);
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset .9s var(--ease);
  filter: drop-shadow(0 0 6px rgba(34,255,138,.45));
}
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1;
}
.ring-num {
  font-size: 26px; font-weight: 700; letter-spacing: -.8px;
  background: linear-gradient(180deg, var(--g), var(--g-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ring-label { font-size: 9.5px; color: var(--t2); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }

.mini-bar {
  margin-top: 10px;
  height: 4px; border-radius: 100px;
  background: rgba(255,255,255,.05);
  overflow: hidden;
}
.mini-bar > span {
  display: block; height: 100%;
  background: var(--grad-g);
  border-radius: 100px;
  box-shadow: 0 0 10px rgba(34,255,138,.45);
  transition: width .9s var(--ease);
}

.spark {
  margin-top: 10px;
  width: 100%; height: 28px;
  display: block;
}
.spark path.line { fill: none; stroke: var(--g); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(34,255,138,.4)); }
.spark path.area { fill: url(#sparkGrad); stroke: none; opacity: .65; }
.spark circle { fill: var(--g); filter: drop-shadow(0 0 4px var(--g)); }

.page.active { display: block; animation: page-in .35s var(--ease); }

.auth-mark {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
}
.mark-logo { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.mark-logo em { font-style: normal; color: var(--g); }

.auth-head { margin-bottom: 28px; }
.auth-h1 {
  font-size: 28px; font-weight: 700; letter-spacing: -.7px; margin-bottom: 6px;
  background: linear-gradient(180deg, #fff, #c8ccca);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-caption { font-size: 14px; color: var(--t2); }

.field { margin-bottom: 14px; }
.flabel {
  display:block; font-size: 11px; font-weight: 500;
  color: var(--t2); margin-bottom: 8px;
  letter-spacing: .04em; text-transform: uppercase;
}
.finput {
  width: 100%;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.finput::placeholder { color: var(--t3); }
.finput:hover { border-color: var(--border2); }
.finput:focus {
  background: var(--s2);
  border-color: rgba(34,255,138,.45);
  box-shadow: 0 0 0 3px rgba(34,255,138,.10);
}

.btn {
  width: 100%;
  border: none;
  border-radius: var(--r);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  letter-spacing: -.1px;
}
.btn:active { transform: translateY(1px); }
.btn-g {
  background: var(--grad-g);
  color: #04140a;
  box-shadow: var(--g-glow);
}
.btn-g:hover { box-shadow: 0 14px 50px -10px rgba(34,255,138,.6), 0 0 0 1px rgba(34,255,138,.35) inset; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { background: var(--s2); border-color: rgba(255,255,255,.18); }

.auth-foot {
  font-size: 13px; color: var(--t2); margin-top: 18px; text-align: center;
}
.auth-foot a { color: var(--g); font-weight: 500; }
.auth-foot a:hover { text-decoration: underline; }

.divider {
  text-align: center; font-size: 11px; color: var(--t3);
  margin: 22px 0 16px;
  text-transform: uppercase; letter-spacing: .15em;
  position: relative;
}
.divider::before, .divider::after {
  content:""; position:absolute; top:50%; width: calc(50% - 30px); height:1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.agree-link { color: var(--g); text-decoration: none; }
.agree-link:hover { text-decoration: underline; }

#screen-dashboard.active { display: flex; }

.top-bar {
  display: none;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)) , var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 22px 16px 16px;
  position: sticky; top: 0; height: 100vh;
}
.sb-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 22px;
  border-bottom: 1px solid var(--border);
}
.nav-section { padding-top: 18px; flex: 1; min-height: 0; overflow-y: auto; }
.nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ni {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  color: var(--t2);
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
  position: relative;
}
.ni svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.ni:hover { background: var(--s2); color: var(--text); }
.ni.on {
  background: linear-gradient(180deg, rgba(34,255,138,.10), rgba(34,255,138,.04));
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(34,255,138,.18) inset;
}
.ni.on::before {
  content:""; position:absolute; left: -16px; top: 8px; bottom: 8px;
  width: 3px; background: var(--g); border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px var(--g);
}
.ni.on svg { color: var(--g); opacity: 1; }
.nb {
  margin-left: auto;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 100px;
  min-width: 18px; text-align: center;
}

.sb-foot { padding-top: 16px; border-top: 1px solid var(--border); }
.user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.user-row:hover { background: var(--s2); }
.uav {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-g);
  color: #04140a;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px -4px rgba(34,255,138,.5);
}
.uname { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uemail { font-size: 11px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bottom-bar { display: none; }

.main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
}
.page { display: none; }
.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 36px 56px;
}

.ph { margin-bottom: 26px; }
.ph-title {
  font-size: 26px; font-weight: 700; letter-spacing: -.6px;
  margin-bottom: 6px;
}
.ph-sub { font-size: 13.5px; color: var(--t2); }

.hero-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(34,255,138,.10), transparent 60%),
    linear-gradient(180deg, rgba(34,255,138,.04), rgba(255,255,255,.005)),
    var(--s1);
  border: 1px solid var(--border2);
  overflow: hidden;
}
.hero-banner::after {
  content:""; position: absolute; inset: 0;
  background: radial-gradient(280px 180px at 20% 120%, rgba(34,255,138,.06), transparent 70%);
  pointer-events: none;
}
.hb-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(34,255,138,.15), rgba(34,255,138,.04));
  border: 1px solid rgba(34,255,138,.22);
}
.hb-body { min-width: 0; }
.hb-title { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.hb-sub { font-size: 13px; color: var(--t2); margin-top: 4px; }
.hb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hb-days {
  text-align: center;
  padding-left: 22px;
  border-left: 1px solid var(--border);
}
.hero-banner.expired {
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(255,77,106,.08), transparent 60%),
    linear-gradient(180deg, rgba(255,77,106,.04), rgba(255,255,255,.005)),
    var(--s1) !important;
  border-color: rgba(255,77,106,.25) !important;
}
.hero-banner.expired::after {
  background: radial-gradient(280px 180px at 20% 120%, rgba(255,77,106,.06), transparent 70%) !important;
}
.hero-banner.warning {
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(245,176,66,.08), transparent 60%),
    linear-gradient(180deg, rgba(245,176,66,.04), rgba(255,255,255,.005)),
    var(--s1) !important;
  border-color: rgba(245,176,66,.25) !important;
}
.hero-banner.warning::after {
  background: radial-gradient(280px 180px at 20% 120%, rgba(245,176,66,.06), transparent 70%) !important;
}
.hb-icon.warning {
  background: linear-gradient(180deg, rgba(245,176,66,.15), rgba(245,176,66,.04)) !important;
  border-color: rgba(245,176,66,.30) !important;
}
.days-n {
  font-size: 38px; font-weight: 700; letter-spacing: -1.5px;
  background: linear-gradient(180deg, var(--g), var(--g-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.days-l { font-size: 11px; color: var(--t2); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

.bs {
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.bs:active { transform: translateY(1px); }
.bs.g { background: var(--grad-g); color: #04140a; box-shadow: 0 6px 20px -8px rgba(34,255,138,.55); }
.bs.g:hover { box-shadow: 0 10px 28px -8px rgba(34,255,138,.7); }
.bs.o { background: var(--s2); color: var(--text); border-color: var(--border2); }
.bs.o:hover { background: var(--s3); border-color: rgba(255,255,255,.16); }
.bs.d { background: transparent; color: var(--red); border-color: rgba(255,77,106,.3); }
.bs.d:hover { background: rgba(255,77,106,.08); border-color: rgba(255,77,106,.45); }

.g3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 18px;
}
.stat {
  padding: 18px;
  background: var(--grad-card), var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.stat:hover { border-color: var(--border2); transform: translateY(-1px); }
.slabel {
  font-size: 10.5px; font-weight: 500; color: var(--t2);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 10px;
}
.sval { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.sval.g { color: var(--g); }
.smeta { font-size: 11.5px; color: var(--t2); margin-top: 4px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--g-dim);
  color: var(--g);
  border: 1px solid rgba(34,255,138,.22);
}
.p-g { background: var(--g-dim); color: var(--g); border-color: rgba(34,255,138,.22); }
.p-r { background: rgba(255,77,106,.10); color: var(--red); border-color: rgba(255,77,106,.30); }
.p-r .pdot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.p-warn { background: rgba(245,176,66,.10); color: var(--warn); border-color: rgba(245,176,66,.30); }
.p-warn .pdot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.pdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 8px var(--g);
  animation: pulse 2s infinite;
}

.expiry-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  border: 1px solid;
  animation: news-slide .4s var(--ease);
}
.expiry-banner.expired {
  background: linear-gradient(135deg, rgba(255,77,106,.10), rgba(255,77,106,.03));
  border-color: rgba(255,77,106,.30);
}
.expiry-banner.warning {
  background: linear-gradient(135deg, rgba(245,176,66,.10), rgba(245,176,66,.03));
  border-color: rgba(245,176,66,.30);
}
.expiry-banner-icon {
  font-size: 24px; flex-shrink: 0;
}
.expiry-banner-body { flex: 1; min-width: 0; }
.expiry-banner-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.expiry-banner.expired .expiry-banner-title { color: var(--red); }
.expiry-banner.warning .expiry-banner-title { color: var(--warn); }
.expiry-banner-sub { font-size: 12px; color: var(--t2); }

.tg-row {
  margin-top: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(46,167,255,.07), rgba(46,167,255,.02));
  border: 1px solid rgba(46,167,255,.18);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.tg-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tg-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(46,167,255,.10);
  border: 1px solid rgba(46,167,255,.2);
}
.tg-title { font-size: 13.5px; font-weight: 600; }
.tg-sub { font-size: 12px; color: var(--t2); margin-top: 2px; }

.sub-hero {
  padding: 24px;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(34,255,138,.1), transparent 60%),
    var(--grad-card),
    var(--s1);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
}
.sh-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 18px; margin-bottom: 22px; flex-wrap: wrap;
}
.sh-plan-label { font-size: 11px; font-weight: 500; color: var(--t2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.sh-plan-name { font-size: 26px; font-weight: 700; letter-spacing: -.6px; }
.sh-price-n {
  font-size: 30px; font-weight: 700; letter-spacing: -.7px;
  background: linear-gradient(180deg, var(--g), var(--g-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-align: right;
}
.sh-price-p { font-size: 11px; color: var(--t2); text-align: right; margin-top: 2px; }
.sh-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

.prog-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--t2); }
.prog-track {
  height: 6px; background: var(--s3); border-radius: 100px; overflow: hidden;
  border: 1px solid var(--border);
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--g-2), var(--g));
  border-radius: 100px;
  box-shadow: 0 0 12px rgba(34,255,138,.5);
  transition: width .6s var(--ease);
}

.sec-label {
  font-size: 11px; font-weight: 500; color: var(--t2);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 10px;
}
.card {
  padding: 18px;
  background: var(--grad-card), var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  transition: border-color .2s var(--ease);
}
.card:hover { border-color: var(--border2); }
.ctitle {
  font-size: 13px; font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -.1px;
}

.plan-card {
  display: grid; grid-template-columns: 1fr 320px; gap: 28px;
  padding: 24px;
  background:
    radial-gradient(400px 200px at 100% 100%, rgba(34,255,138,.06), transparent 60%),
    var(--grad-card),
    var(--s1);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
}
.plan-perks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.plan-perks li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--t2); }
.plan-perks li svg { color: var(--g); flex-shrink: 0; }
.period-switcher {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 4px;
}
.psw {
  background: transparent; border: none; cursor: pointer;
  color: var(--t2); font-size: 12px; font-weight: 500;
  padding: 8px 4px; border-radius: 8px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.psw:hover { color: var(--text); }
.psw.active {
  background: var(--s3);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border2) inset, 0 2px 8px rgba(0,0,0,.25);
}
.plan-price-display {
  text-align: right; margin-top: 18px;
  font-size: 28px; font-weight: 700; letter-spacing: -.6px;
  background: linear-gradient(180deg, #fff, #c0c6c3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tbl {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll .tbl { margin: 0; }
.table-scroll::-webkit-scrollbar { height: 7px; }
.table-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.03); }
.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.16);
  border-radius: 999px;
}
.tbl thead th {
  text-align: left;
  font-size: 10.5px; font-weight: 500;
  color: var(--t2);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}
.tbl tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .15s var(--ease); }
.tbl tbody tr:hover { background: rgba(255,255,255,.02); }

.hwid-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .15s var(--ease);
}
.hwid-row:last-child { border-bottom: none; }
.hwid-row:hover { background: rgba(255,255,255,.02); }
.hwid-row.cur { background: linear-gradient(90deg, rgba(34,255,138,.05), transparent 80%); }
.hwid-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 10px var(--g);
}
.hwid-dot.off { background: var(--t3); box-shadow: none; }
.hwid-str { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.hwid-meta { font-size: 11px; color: var(--t2); }
.hwid-del {
  background: transparent; border: 1px solid var(--border2);
  width: 28px; height: 28px; border-radius: 8px;
  color: var(--t2); cursor: pointer; font-size: 13px;
  display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.hwid-del:hover { background: rgba(255,77,106,.1); color: var(--red); border-color: rgba(255,77,106,.4); }

.slot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: var(--grad-card), var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.slot:hover { border-color: var(--border2); transform: translateY(-1px); }
.slot-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.slot-desc { font-size: 12px; color: var(--t2); }
.slot-r { display: flex; align-items: center; gap: 12px; }
.slot-price {
  font-size: 18px; font-weight: 700;
  background: linear-gradient(180deg, var(--g), var(--g-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

#page-support.active { display: flex; flex-direction: column; height: 100vh; }

.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.chat-agent { display: flex; align-items: center; gap: 12px; }
.agent-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,255,138,.2), rgba(34,255,138,.05));
  border: 1px solid rgba(34,255,138,.25);
  display: grid; place-items: center;
  font-size: 18px;
}
.agent-name { font-size: 13.5px; font-weight: 600; }
.agent-status { font-size: 11px; color: var(--t2); margin-top: 2px; display: flex; align-items: center; gap: 6px; }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.chat-day-label {
  align-self: center;
  font-size: 11px; color: var(--t3);
  background: var(--s2); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 6px;
}
.msg {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  max-width: 70%;
  align-self: flex-end;
  animation: fade .25s var(--ease);
}
.msg.op { align-self: flex-start; }
.msg-av {
  grid-row: 1 / span 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-g); color: #04140a;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  align-self: end;
}
.msg.op .msg-av { background: var(--s3); color: var(--text); border: 1px solid var(--border2); }
.msg-bubble {
  background: var(--grad-g); color: #04140a;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 13.5px; line-height: 1.45;
  word-wrap: break-word;
}
.msg.op .msg-bubble {
  background: var(--s2); color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
}
.msg-time { font-size: 10px; color: var(--t3); margin-top: 4px; padding: 0 4px; }

.chat-input-wrap {
  display: flex; gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: linear-gradient(0deg, rgba(255,255,255,.015), transparent);
}
.chat-input {
  flex: 1;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 11px 18px;
  color: var(--text); font-size: 13.5px;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.chat-input:focus { border-color: rgba(34,255,138,.45); background: var(--s2); box-shadow: 0 0 0 3px rgba(34,255,138,.1); }
.chat-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--grad-g); color: #04140a;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px -6px rgba(34,255,138,.6);
  transition: transform .15s var(--ease);
}
.chat-send:hover { transform: scale(1.05); }
.chat-send:active { transform: scale(.95); }

.moverlay {
  position: fixed; inset: 0;
  background: rgba(3,5,4,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: fade .2s var(--ease);
}
.moverlay.open { display: flex; }
.modal {
  width: 100%; max-width: 380px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)), var(--s1);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.7);
  animation: rise .35s var(--ease);
}
.mtitle { font-size: 18px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 8px; }
.msub { font-size: 13px; color: var(--t2); line-height: 1.5; margin-bottom: 16px; }
.mactions { display: flex; gap: 10px; margin-top: 8px; }
.mactions .btn { flex: 1; }

.rate-star {
  transition: color .2s var(--ease), transform .15s var(--ease);
  user-select: none;
}
.rate-star:hover { transform: scale(1.15); color: var(--warn) !important; }


@media (max-width: 860px) {
  .sidebar { display: none; }
  #screen-dashboard.active { flex-direction: column; }
  .top-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(8,10,9,.85);
    backdrop-filter: blur(14px);
    position: sticky; top: 0; z-index: 30;
  }
  .tb-brand { display: flex; align-items: center; gap: 9px; }
  .tb-right { display: flex; align-items: center; gap: 10px; }

  .bottom-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(8,10,9,.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    z-index: 30;
  }
  .bbi {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 4px;
    font-size: 10px;
    color: var(--t2);
    cursor: pointer;
    border-radius: 8px;
    transition: color .2s var(--ease);
  }
  .bbi svg { width: 20px; height: 20px; }
  .bbi.active { color: var(--g); }
  .bbi.active svg { filter: drop-shadow(0 0 6px rgba(34,255,138,.5)); }

  .page-inner { padding: 22px 16px 100px; }
  .ph-title { font-size: 22px; }

  .hero-banner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hb-days {
    border-left: none; border-top: 1px solid var(--border);
    padding-left: 0; padding-top: 14px;
    display: flex; align-items: baseline; gap: 10px;
  }
  .days-n { font-size: 28px; }
  .days-l { margin-top: 0; }

  .g3 { grid-template-columns: 1fr; }
  .plan-card { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .sh-price-n, .sh-price-p { text-align: left; }

  .chat-header { padding: 12px 16px; }
  .chat-body { padding: 16px; padding-bottom: 140px; }
  .chat-input-wrap { position: sticky; bottom: 65px; }
  .msg { max-width: 85%; }
}

:root{
  --jade:        #2dffa3;
  --jade-2:      #0fe188;
  --jade-deep:   #07a05c;
  --mint:        #7ffbcf;
  --emerald-ink: #03110a;
  --grad-g:      linear-gradient(135deg, #2dffa3 0%, #0fe188 55%, #07a05c 100%);
  --grad-card:   linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.005) 60%, rgba(45,255,163,.025));
  --grad-glass:  linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  --g:           #2dffa3;
  --g-2:         #0fe188;
  --g-dim:       rgba(45,255,163,.07);
  --g-mid:       rgba(45,255,163,.18);
  --g-glow:      0 14px 50px -12px rgba(45,255,163,.55),
                 0 0 0 1px rgba(45,255,163,.30) inset,
                 0 1px 0 rgba(255,255,255,.18) inset;
  --shadow-1:    0 1px 0 rgba(255,255,255,.04) inset,
                 0 20px 60px -24px rgba(0,0,0,.7);
  --shadow-2:    0 1px 0 rgba(255,255,255,.05) inset,
                 0 30px 80px -30px rgba(0,0,0,.8),
                 0 0 0 1px rgba(255,255,255,.03);
  --ring-glow:   0 0 0 1px rgba(45,255,163,.35), 0 0 24px -4px rgba(45,255,163,.45);
  --font-display:'Space Grotesk', 'Inter', system-ui, sans-serif;
}

body{
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(45,255,163,.07), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(46,167,255,.045), transparent 60%),
    #050908;
}
body::before{
  content:""; position: fixed; inset:-20%;
  background:
    radial-gradient(40% 30% at 20% 30%, rgba(45,255,163,.18), transparent 60%),
    radial-gradient(35% 28% at 80% 20%, rgba(15,225,136,.14), transparent 60%),
    radial-gradient(45% 35% at 70% 85%, rgba(46,167,255,.10), transparent 60%),
    radial-gradient(30% 22% at 15% 80%, rgba(127,251,207,.10), transparent 60%);
  filter: blur(60px) saturate(125%);
  opacity:.55;
  z-index:-2; pointer-events:none;
  animation: aurora 22s var(--ease) infinite alternate;
}
body::after{
  content:""; position: fixed; inset:0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity:.35; mix-blend-mode: overlay;
  z-index:-1; pointer-events:none;
}
@keyframes aurora{
  0%   { transform: translate3d(0,0,0) rotate(0deg);     }
  50%  { transform: translate3d(-3%,2%,0) rotate(8deg);  }
  100% { transform: translate3d(2%,-2%,0) rotate(-6deg); }
}

.mark-logo, .auth-h1, .ph-title, .card-h, .mtitle,
.plan-price-display, .ring-num, .slot-price, .sh-price-n{
  font-family: var(--font-display);
  letter-spacing: -.02em;
}
.auth-h1, .ph-title{
  background: linear-gradient(180deg,#ffffff 0%,#c9d3cf 70%,#9bb0a8 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,.02);
}
.mark-logo em{
  background: linear-gradient(180deg,var(--jade),var(--jade-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 0 28px rgba(45,255,163,.45);
}

.auth-wrap{
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(45,255,163,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.008));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 40px 100px -30px rgba(0,0,0,.75),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 1px 0 rgba(255,255,255,.06) inset;
}
.auth-wrap::before{
  content:""; position:absolute; inset:-1px; border-radius:inherit;
  padding:1px;
  background: conic-gradient(from 120deg, transparent 0 70%, rgba(45,255,163,.6) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:.45; pointer-events:none;
  animation: spin 14s linear infinite;
}
.auth-wrap{ position:relative; }
@keyframes spin{ to{ transform: rotate(360deg);} }

.btn-g{
  background: var(--grad-g);
  color: var(--emerald-ink);
  position: relative; overflow: hidden;
  box-shadow: var(--g-glow);
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.btn-g::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
  pointer-events:none;
}
.btn-g:hover::after{ transform: translateX(120%); }
.btn-g:hover{
  box-shadow:
    0 18px 60px -10px rgba(45,255,163,.7),
    0 0 0 1px rgba(45,255,163,.45) inset,
    0 1px 0 rgba(255,255,255,.25) inset;
}

.sidebar{
  background:
    linear-gradient(180deg, rgba(20,28,24,.65), rgba(10,15,12,.55));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.02);
}
.top-bar, .bottom-bar{
  background: linear-gradient(180deg, rgba(8,12,10,.85), rgba(8,12,10,.7)) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
}

.sb-i{ position: relative; transition: color .2s var(--ease), background .2s var(--ease); }
.sb-i::before{
  content:""; position:absolute; left:6px; top:50%; transform: translateY(-50%) scaleY(0);
  width:3px; height:60%; border-radius: 3px;
  background: var(--grad-g);
  box-shadow: 0 0 14px var(--jade);
  transition: transform .25s var(--ease);
}
.sb-i.active::before{ transform: translateY(-50%) scaleY(1); }
.sb-i.active{
  background: linear-gradient(90deg, rgba(45,255,163,.10), rgba(45,255,163,0));
  color: var(--text);
}
.sb-i.active svg{ color: var(--jade); filter: drop-shadow(0 0 6px rgba(45,255,163,.55)); }

.card,
.plan-card,
.slot,
.modal,
.news-banner{
  background:
    var(--grad-card),
    linear-gradient(180deg, rgba(20,26,23,.85), rgba(12,16,14,.85)) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(10px);
  transition: transform .25s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.card:hover{
  border-color: rgba(255,255,255,.12) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 30px 80px -28px rgba(0,0,0,.8),
    0 0 0 1px rgba(45,255,163,.10);
}

.hero-banner{
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(45,255,163,.18), transparent 60%),
    radial-gradient(50% 100% at 100% 100%, rgba(46,167,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(18,26,22,.95), rgba(10,14,12,.95)) !important;
  border: 1px solid rgba(45,255,163,.18) !important;
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,.8),
    0 0 0 1px rgba(255,255,255,.03) inset,
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}
.hero-banner::after{
  content:""; position:absolute; top:-40%; right:-20%;
  width:60%; height:180%;
  background: conic-gradient(from 200deg, transparent 0deg, rgba(45,255,163,.22) 60deg, transparent 130deg);
  filter: blur(40px);
  pointer-events:none; opacity:.6;
  animation: aurora 18s var(--ease) infinite alternate;
}

.ring-fill{
  filter: drop-shadow(0 0 10px rgba(45,255,163,.7));
}
.ring-num{
  background: linear-gradient(180deg,#fff,#7ffbcf 60%, var(--jade));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 0 24px rgba(45,255,163,.35);
}

.hwid-dot, .pdot, .status-on{
  position:relative;
}
.hwid-dot::after{
  content:""; position:absolute; inset:-4px; border-radius:50%;
  background: var(--jade); opacity:.35;
  animation: pulseRing 1.8s ease-out infinite;
}
.hwid-dot.off::after{ display:none; }
@keyframes pulseRing{
  0%   { transform: scale(.6); opacity:.55; }
  100% { transform: scale(1.8); opacity:0;  }
}


.finput:focus, .chat-input:focus{
  border-color: rgba(45,255,163,.55) !important;
  box-shadow:
    0 0 0 4px rgba(45,255,163,.12),
    0 0 30px -8px rgba(45,255,163,.4) !important;
  background: rgba(20,28,24,.7) !important;
}

.chat-send{
  background: var(--grad-g);
  box-shadow: 0 8px 24px -6px rgba(45,255,163,.7), 0 0 0 1px rgba(45,255,163,.4) inset;
}
.chat-send::after{
  content:""; position:absolute; inset:-6px; border-radius:50%;
  border: 2px solid rgba(45,255,163,.45);
  animation: pulseRing 2s ease-out infinite;
}
.chat-send{ position:relative; }


.toast{
  background: linear-gradient(180deg, rgba(22,30,26,.92), rgba(12,18,14,.92)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 20px 50px -14px rgba(0,0,0,.7), 0 0 0 1px rgba(45,255,163,.08) inset !important;
}


.news-banner{
  border: 1px solid rgba(45,255,163,.25) !important;
}
.news-banner::after{
  content:""; position:absolute; inset:0; border-radius:inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(45,255,163,.18) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 4.5s linear infinite;
  pointer-events:none; opacity:.5;
}


.stat-v, .days-n{
  background: linear-gradient(180deg,#ffffff 0%, #c9f4dd 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-family: var(--font-display);
  letter-spacing: -.03em;
}


.plan-price-display, .sh-price-n{
  background: linear-gradient(180deg,#fff 0%, var(--jade) 110%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 0 30px rgba(45,255,163,.25);
}


.bbi{ position: relative; }
.bbi.active::before{
  content:""; position:absolute; inset:2px 8px;
  border-radius: 12px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(45,255,163,.18), transparent 70%);
  z-index:-1;
}


::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(45,255,163,.25), rgba(45,255,163,.08));
  border: 2px solid transparent; background-clip: padding-box;
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, rgba(45,255,163,.45), rgba(45,255,163,.18));
  background-clip: padding-box;
}


@media (prefers-reduced-motion: reduce){
  body::before, .hero-banner::after, .news-banner::after,
  .auth-wrap::before, .chat-send::after, .hwid-dot::after{
    animation: none !important;
  }
}

/* стили для выбора ос и карточек приложений */
.os-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.os-tabs::-webkit-scrollbar { display: none; }
.os-tab { 
    padding: 10px 18px; background: var(--s2); border: 1px solid var(--border); 
    border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--t2); 
    cursor: pointer; white-space: nowrap; transition: 0.2s; 
}
.os-tab.active { background: var(--grad-g); color: #03110a; border-color: transparent; }

.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.app-card { 
    background: var(--s1); border: 1px solid var(--border); border-radius: var(--r-lg); 
    padding: 20px 10px; text-align: center; position: relative; cursor: pointer; transition: 0.3s var(--ease); 
}
.app-card:hover { border-color: var(--jade); transform: translateY(-4px); }
.app-badge { 
    position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 800; 
    padding: 3px 7px; border-radius: 5px; text-transform: uppercase; 
}
.badge-top { background: var(--jade); color: #000; }
.badge-alt { background: var(--s3); color: var(--t2); border: 1px solid var(--border); }

/* FAQ аккордеон */
.faq-item { background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; overflow: hidden; }
.faq-q { padding: 16px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { max-height: 0; overflow: hidden; padding: 0 16px; color: var(--t2); font-size: 14px; transition: 0.3s; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 16px; }

/* QR и копирование в модалке */
.qr-area { background: #fff; padding: 10px; border-radius: 12px; width: 150px; height: 150px; margin: 0 auto 15px; }
.qr-area img { width: 100%; height: 100%; }
.m-copy-group { display: flex; background: var(--s2); border: 1px solid var(--border2); border-radius: 10px; padding: 4px; margin-bottom: 15px; }
.m-copy-group input { flex: 1; background: transparent; border: none; outline: none; color: var(--jade); font-size: 11px; padding-left: 8px; font-family: monospace; }
/* 1. возвращаем щит в нормальный размер */
.hb-icon svg {
  width: 40px !important;
  height: 46px !important;
}

/* 2. исправляем контейнер карточек, чтобы они не плющились */
#apps-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  align-items: start !important;
}

/* 3. стили самих карточек */
.app-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 150px !important;
}

/* 4. ограничение размера иконок приложений внутри карточек */
.app-card img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  margin-bottom: 10px !important;
  object-fit: cover !important;
}

/* 5. убираем флекс-поведение с родительской карточки, если оно осталось */
#page-sub .card {
  display: block !important;
}

/* FAQ аккордеон */
  .faq-item {
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin-bottom: 10px;
    transition: all 0.3s var(--ease);
    overflow: hidden;
  }
  .faq-item:hover {
    border-color: rgba(45,255,163,0.3);
  }
  .faq-header {
    padding: 18px 20px;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    user-select: none;
  }
  .faq-header svg {
    width: 12px;
    transition: transform 0.3s var(--ease);
    color: var(--t3);
  }
  .faq-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--t2);
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s var(--ease);
  }
  /* состояние при открытии */
  .faq-item.open {
    border-color: var(--jade);
    background: var(--s1);
    box-shadow: 0 0 20px rgba(45,255,163,0.05);
  }
  .faq-item.open .faq-header {
    color: var(--jade);
  }
  .faq-item.open .faq-header svg {
    transform: rotate(180deg);
    color: var(--jade);
  }
  .faq-item.open .faq-body {
    max-height: 300px; /* с запасом для текста */
    padding-bottom: 20px;
  }
  
/* стили строки подписки по референсу */
  .sub-bar-custom {
    display: flex;
    align-items: center;
    background: #0d1210; /* очень темный фон как на фото */
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 100px; /* закругленные края */
    padding: 8px 16px;
    margin: 15px 0 20px 0;
    gap: 12px;
  }

  .sub-bar-text {
    flex: 1;
    font-family: 'SF Mono', 'JetBrains Mono', 'Roboto Mono', monospace; /* моноширинный шрифт */
    font-size: 13px;
    color: #a0a6a4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* обрезает длинную ссылку тремя точками */
    text-align: left;
  }

  .sub-bar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.1);
  }

  .sub-action-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #8a918e;
    display: flex;
    align-items: center;
    transition: color 0.2s;
  }

  .sub-action-btn:hover {
    color: var(--jade);
  }

  .sub-action-btn svg {
    width: 18px;
    height: 18px;
  }

/* оставляй это */
.modal { position: relative; overflow: hidden; }
  .qr-mini-overlay { position: absolute; inset: 0; background: rgba(6, 8, 7, 0.85); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; flex-direction: column; z-index: 50; border-radius: inherit; animation: fade .2s ease; }
  .qr-mini-overlay.visible { display: flex; }
  /* увеличили верхний отступ до 50px, чтобы кнопка не налезала на QR */
  .qr-mini-card { background: #ffffff !important; padding: 50px 30px 25px !important; border-radius: 24px; text-align: center; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.5); transform: scale(0.9); animation: rise .3s forwards; display: inline-block; }
  .qr-mini-card p { color: #060807 !important; font-size: 13px; font-weight: 700; margin-top: 12px; font-family: var(--font-display); }
  /* чуть уменьшили кнопку и зафиксировали её положение */
  .qr-close-btn { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; background: #f1f3f2; color: #000; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 60; }
  .qr-close-btn:hover { background: #ff4d6a; color: #fff; transform: rotate(90deg); }
  .qr-close-btn svg { width: 12px; height: 12px; }
  .sub-bar-custom { display: flex; align-items: center; background: #090c0b; border: 1px solid rgba(255,255,255,0.05); border-radius: 100px; padding: 8px 14px 8px 18px; margin: 15px 0 20px 0; gap: 12px; }
  .sub-bar-text { flex: 1; font-family: monospace; font-size: 12px; color: #a0a6a4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
  .sub-bar-actions { display: flex; align-items: center; gap: 12px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.1); }
  .sub-action-btn { background: none; border: none; padding: 0; cursor: pointer; color: #8a918e; display: flex; align-items: center; transition: color 0.2s; }
  .sub-action-btn:hover { color: #2dffa3; }
  .sub-action-btn svg { width: 18px; height: 18px; }
  
/* стили для кнопок скачивания в модалке */
  #m-downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
  }

  #m-downloads .bs.o {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 10px !important;
    color: #fff !important;
    text-decoration: none !important; /* удаляет подчеркивание */
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.2s var(--ease);
  }

  #m-downloads .bs.o:hover {
    border-color: var(--jade) !important;
    background: rgba(45, 255, 163, 0.1) !important;
    color: var(--jade) !important;
    transform: translateY(-2px);
  }
  
/* спиннер загрузки для кнопок */
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  border-top-color: currentColor; /* соответствует цвету текста кнопки */
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

.support-direct-banner {
  margin: 14px 16px 0;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(29,161,242,.28);
  border-radius: 16px;
  background:
    radial-gradient(520px 160px at 100% 0%, rgba(29,161,242,.14), transparent 60%),
    linear-gradient(180deg, rgba(29,161,242,.08), rgba(255,255,255,.015)),
    var(--s1);
}
.support-direct-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(29,161,242,.11);
  border: 1px solid rgba(29,161,242,.25);
  flex-shrink: 0;
}
.support-direct-body { flex: 1; min-width: 0; }
.support-direct-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.support-direct-sub { font-size: 13px; color: var(--t2); line-height: 1.45; }
.support-direct-btn {
  text-decoration: none;
  color: #06110d;
  background: var(--g);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .support-direct-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .support-direct-btn { width: 100%; text-align: center; }
}
