:root {
  color-scheme: dark;
  --bg: #06110f;
  --surface: rgba(255,255,255,.075);
  --surface-strong: rgba(255,255,255,.11);
  --line: rgba(255,255,255,.12);
  --text: #f5fffc;
  --muted: rgba(235,255,249,.67);
  --mint: #39f1c2;
  --blue: #27a7ff;
  --danger: #ff808a;
  --radius: 30px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(57,241,194,.26), transparent 31%),
    radial-gradient(circle at 92% 6%, rgba(39,167,255,.20), transparent 30%),
    radial-gradient(circle at 50% 120%, rgba(57,241,194,.10), transparent 35%),
    var(--bg);
  color: var(--text);
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.nav { display:flex; align-items:center; justify-content:space-between; padding:24px 0; gap:16px; }
.brand { display:flex; align-items:center; gap:12px; font-size:22px; font-weight:900; letter-spacing:-.04em; }
.brand img { width:48px; height:48px; border-radius:17px; box-shadow:0 16px 45px rgba(57,241,194,.16); }
.brand em { color:var(--mint); font-style:normal; }
.nav-actions { display:flex; gap:10px; }

.btn {
  border:0; border-radius:999px; padding:14px 21px; font-weight:800;
  color:#03110d; background:linear-gradient(135deg,var(--mint),var(--blue));
  box-shadow:0 18px 42px rgba(57,241,194,.18); transition:.2s transform,.2s filter;
}
.btn:hover { transform:translateY(-2px); filter:brightness(1.05); }
.btn.secondary { color:var(--text); background:rgba(255,255,255,.07); box-shadow:inset 0 0 0 1px var(--line); }
.btn.quiet { color:var(--muted); background:transparent; box-shadow:none; padding:10px 12px; }
.btn.block { width:100%; }

.hero { min-height:calc(100vh - 100px); display:grid; grid-template-columns:1.12fr .88fr; align-items:center; gap:42px; padding:46px 0 80px; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; padding:9px 14px; border:1px solid rgba(57,241,194,.25); border-radius:999px; color:#98ffe4; background:rgba(57,241,194,.07); font-size:14px; font-weight:800; }
.dot { width:8px; height:8px; border-radius:50%; background:var(--mint); box-shadow:0 0 18px var(--mint); }
h1 { font-size:clamp(46px,7.2vw,84px); line-height:.96; letter-spacing:-.065em; margin:24px 0; }
.lead { max-width:720px; color:var(--muted); font-size:19px; line-height:1.65; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }

.glass { border:1px solid var(--line); background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.045)); border-radius:38px; backdrop-filter:blur(20px); box-shadow:0 34px 100px rgba(0,0,0,.32); }
.key-card { padding:30px; position:relative; overflow:hidden; }
.key-card::after { content:""; position:absolute; width:220px; height:220px; border-radius:50%; background:rgba(57,241,194,.13); filter:blur(40px); right:-90px; top:-100px; }
.logo-stage { width:148px; height:148px; border-radius:46px; display:grid; place-items:center; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); }
.logo-stage img { width:122px; }
.key-card h2 { font-size:34px; margin:28px 0 8px; letter-spacing:-.04em; }
.key-card p { color:var(--muted); line-height:1.55; }
.feature-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:25px; }
.feature { padding:17px; border-radius:22px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.07); }
.feature b { display:block; margin-bottom:5px; }
.feature span { color:var(--muted); font-size:13px; }

.auth-wrap { min-height:100vh; display:grid; place-items:center; padding:26px; }
.auth-card { width:min(470px,100%); padding:34px; }
.auth-card h1 { font-size:48px; margin:30px 0 8px; }
.auth-card > p { color:var(--muted); line-height:1.55; }
.form { display:grid; gap:12px; margin-top:25px; }
.field { display:grid; gap:8px; }
.field label { color:var(--muted); font-size:13px; font-weight:700; }
.input { width:100%; padding:15px 17px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.055); color:var(--text); outline:none; }
.input:focus { border-color:rgba(57,241,194,.55); box-shadow:0 0 0 4px rgba(57,241,194,.08); }
.notice { border-radius:17px; padding:12px 14px; font-size:14px; line-height:1.45; }
.notice.error { color:#ffd3d6; background:rgba(255,90,100,.1); border:1px solid rgba(255,90,100,.2); }
.notice.ok { color:#b7ffeb; background:rgba(57,241,194,.08); border:1px solid rgba(57,241,194,.18); }
.auth-footer { display:flex; justify-content:center; margin-top:14px; }

.dashboard { padding-bottom:70px; }
.dash-head { display:flex; justify-content:space-between; align-items:end; gap:18px; padding:42px 0 24px; }
.dash-head h1 { font-size:clamp(42px,6vw,68px); margin:16px 0 0; }
.grid { display:grid; grid-template-columns:1.25fr .75fr; gap:18px; }
.panel { padding:28px; }
.panel h2 { margin:0 0 10px; font-size:24px; letter-spacing:-.03em; }
.panel p { color:var(--muted); line-height:1.55; }
.main-panel { grid-row:span 2; }
.status-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:28px; }
.status-box { padding:20px; border-radius:24px; background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.075); }
.status-box span { display:block; color:var(--muted); font-size:13px; margin-bottom:7px; }
.status-box b { font-size:17px; }
.key-panel { grid-column:1/-1; }
.key-code { display:block; margin:16px 0; padding:18px; border-radius:20px; background:rgba(0,0,0,.25); border:1px solid rgba(57,241,194,.14); color:#9affe5; word-break:break-all; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.row { display:flex; flex-wrap:wrap; gap:10px; }
.skeleton { min-height:140px; animation:pulse 1.2s infinite alternate; }
@keyframes pulse { from{opacity:.45} to{opacity:.8} }
.footer-note { text-align:center; color:rgba(255,255,255,.35); padding:38px 0 16px; font-size:13px; }

@media (max-width:850px) {
  .hero,.grid { grid-template-columns:1fr; }
  .hero { padding-top:22px; }
  .main-panel { grid-row:auto; }
  .status-grid { grid-template-columns:1fr; }
  .dash-head { align-items:flex-start; flex-direction:column; }
}
@media (max-width:520px) {
  .shell { width:min(100% - 22px,1160px); }
  .nav-actions .secondary { display:none; }
  .glass { border-radius:28px; }
  .auth-card,.panel,.key-card { padding:22px; }
  h1 { font-size:46px; }
}



/* secretaNet v0.3 */
.server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.server-card {
  display: grid;
  gap: 18px;
  min-height: 220px;
}

.server-card h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.server-card p {
  margin: 0;
}

.server-badge {
  width: max-content;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.12);
}

.server-badge.online {
  color: #7dffd8;
  background: rgba(38,230,180,.12);
  border-color: rgba(38,230,180,.25);
}

.server-badge.preparing,
.server-badge.maintenance {
  color: #ffe7a3;
  background: rgba(255,199,87,.12);
  border-color: rgba(255,199,87,.25);
}

.server-badge.degraded {
  color: #ffd0a3;
  background: rgba(255,140,66,.12);
  border-color: rgba(255,140,66,.25);
}

.server-badge.offline {
  color: #ffb5b5;
  background: rgba(255,80,80,.12);
  border-color: rgba(255,80,80,.25);
}

.server-meta {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.server-meta span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.68);
}

.server-meta b {
  color: #fff;
}

@media (max-width: 980px) {
  .server-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}


/* secretaNet v0.3.1 — public status vertical list */
.status-head {
  align-items: flex-end;
}

.server-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.server-list-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(360px, .9fr);
  align-items: center;
  gap: 22px;
  padding: 24px;
  border-radius: 34px;
}

.server-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.server-flag {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  font-size: 38px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 40%),
    rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.server-title-block h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -.04em;
}

.server-title-block p {
  margin: 0;
  color: rgba(255,255,255,.58);
}

.server-status-area {
  display: flex;
  justify-content: center;
}

.server-list-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.server-list-meta div {
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.075);
}

.server-list-meta span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.48);
  font-size: 13px;
}

.server-list-meta b {
  color: #fff;
  font-size: 16px;
}

@media (max-width: 1040px) {
  .server-list-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .server-status-area {
    justify-content: flex-start;
  }

  .server-list-meta {
    grid-template-columns: 1fr;
  }
}


/* secretaNet v0.3.2 — navigation, subscription, referrals, scale polish */
body {
  font-size: 15px;
}

.shell {
  max-width: 1120px;
}

.nav {
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  cursor: pointer;
}

.brand span {
  font-size: 21px;
}

.brand img {
  width: 42px;
  height: 42px;
}

.nav-actions {
  gap: 8px;
}

.btn {
  padding: 12px 17px;
  font-size: 14px;
}

.btn.active {
  background: linear-gradient(135deg, rgba(39, 232, 181, .24), rgba(36, 163, 255, .18));
  color: #7dffe2;
  border-color: rgba(39, 232, 181, .42);
  box-shadow: inset 0 0 0 1px rgba(39, 232, 181, .18), 0 14px 36px rgba(39, 232, 181, .12);
}

.support-btn {
  background: rgba(255,255,255,.07);
  color: #f4fffb;
  border: 1px solid rgba(255,255,255,.12);
}

.hero {
  min-height: calc(100vh - 112px);
}

h1 {
  font-size: clamp(42px, 7.1vw, 72px);
}

.lead {
  font-size: 17px;
}

.glass {
  border-radius: 30px;
}

.logo-stage {
  width: 112px;
  height: 112px;
  border-radius: 31px;
}

.logo-stage img {
  width: 86px;
  height: 86px;
}

.status-grid {
  gap: 12px;
}

.status-box {
  border-radius: 20px;
  padding: 16px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 18px;
  align-items: stretch;
  margin-top: 22px;
}

.plan-card {
  position: relative;
  padding: 28px;
}

.plan-card.selected {
  border-color: rgba(39, 232, 181, .44);
  box-shadow: 0 24px 70px rgba(39, 232, 181, .12);
}

.plan-card h2 {
  margin: 18px 0 4px;
  font-size: 28px;
}

.plan-card p {
  margin: 0 0 12px;
}

.plan-price {
  margin: 18px 0;
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -.05em;
  color: #7dffe2;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,.72);
}

.plan-card li::before {
  content: "✓";
  margin-right: 9px;
  color: #7dffe2;
}

.plan-pill {
  position: absolute;
  top: -13px;
  left: 22px;
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  background: linear-gradient(135deg, #25e6b4, #25a7ff);
  color: #03110f;
}

.plan-pill.soon {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.12);
}

.muted-card {
  opacity: .72;
}

.payment-box {
  margin-top: 18px;
  padding: 26px;
  max-width: 760px;
}

.payment-row,
.payment-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  margin-top: 12px;
}

.payment-row.active {
  border: 1px solid rgba(39, 232, 181, .34);
}

.payment-total b {
  color: #7dffe2;
  font-size: 22px;
}

.subscription-current {
  margin-top: 22px;
}

.ref-steps {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.ref-steps div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.055);
}

.ref-steps b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #25e6b4, #25a7ff);
  color: #061311;
}

.server-list-card {
  grid-template-columns: minmax(270px, 1fr) auto minmax(330px, .86fr);
  padding: 22px;
}

.server-flag {
  width: 82px;
  min-width: 82px;
  height: 64px;
  border-radius: 22px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.server-title-block h2 {
  font-size: clamp(24px, 3.4vw, 34px);
}

@media (max-width: 980px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
  }

  .nav-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .btn {
    padding: 11px 14px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .plans-grid {
    margin-top: 28px;
  }
}


/* secretaNet v0.3.3 — guest landing page */
.guest-shell {
  max-width: 1080px;
}

.guest-hero {
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 76px 0 52px;
}

.hero-center {
  max-width: 820px;
  margin: 0 auto;
}

.hero-center h1 {
  margin: 22px 0 18px;
  font-size: clamp(46px, 7.4vw, 76px);
  line-height: .96;
  letter-spacing: -.07em;
}

.hero-center h1 span {
  color: #34e7c3;
  text-shadow: 0 18px 70px rgba(38, 230, 180, .18);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 26px auto 28px;
}

.hero-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  color: rgba(255,255,255,.78);
  font-weight: 750;
  font-size: 13px;
}

.hero-actions.centered {
  justify-content: center;
}

.guest-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}

.feature-card {
  padding: 22px;
  border-radius: 24px;
  min-height: 168px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 14px;
  background: rgba(38,230,180,.12);
  border: 1px solid rgba(38,230,180,.18);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.66);
}

.how-to {
  margin: 42px 0 30px;
  padding: 34px;
  text-align: center;
  border-radius: 30px;
}

.how-to h2 {
  margin: 0 0 26px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.04em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.step {
  display: grid;
  justify-items: center;
}

.step b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #25e6b4, #25a7ff);
  color: #061311;
  box-shadow: 0 16px 45px rgba(38,230,180,.22);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.step p {
  max-width: 240px;
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.62);
}

@media (max-width: 920px) {
  .guest-features,
  .steps {
    grid-template-columns: 1fr;
  }

  .guest-hero {
    min-height: auto;
    padding-top: 46px;
  }

  .feature-card {
    min-height: auto;
  }
}


/* secretaNet v0.3.4 — icon assets + guest/nav polish */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 0;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  color: #91ffe8;
}

.nav-link.standalone-link {
  margin-top: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.icon-btn img {
  width: 18px;
  height: 18px;
  user-select: none;
  pointer-events: none;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(38,230,180,.26);
  background: rgba(255,255,255,.07);
}

.icon-btn.active {
  border-color: rgba(38,230,180,.3);
  background: rgba(38,230,180,.09);
}

.icon-btn.primary {
  background: linear-gradient(135deg, #26e6b4, #25a7ff);
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(38,230,180,.18);
}

.text-exit {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
}

.hero-tags img {
  width: 18px;
  height: 18px;
  user-select: none;
  pointer-events: none;
}

.hero-tags b {
  font-weight: 800;
}

.single-cta .btn {
  min-width: 172px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: rgba(38,230,180,.12);
  border: 1px solid rgba(38,230,180,.18);
}

.feature-icon img {
  width: 20px;
  height: 20px;
  user-select: none;
  pointer-events: none;
}

.server-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.server-code {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #f6fffd;
}

.server-emoji {
  font-size: 24px;
}

@media (max-width: 980px) {
  .nav {
    gap: 16px;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav-icons {
    gap: 8px;
  }
}


/* secretaNet v0.3.5 — motion system, SVG flags and premium interactions */

:root {
  --motion-spring: cubic-bezier(.2,.8,.2,1);
  --motion-smooth: cubic-bezier(.22,1,.36,1);
}

#app {
  min-height: 100vh;
  transform-origin: 50% 18%;
  will-change: transform, opacity, filter;
}

#app.page-leave {
  animation: pageLeave .24s ease both;
}

#app.page-enter {
  animation: pageEnter .52s var(--motion-smooth) both;
}

@keyframes pageLeave {
  to {
    opacity: 0;
    transform: translateY(10px) scale(.992);
    filter: blur(5px);
  }
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.988);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.route-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  overflow: hidden;
  opacity: 0;
}

.route-transition span {
  position: absolute;
  width: 34vw;
  height: 34vw;
  min-width: 260px;
  min-height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(38,230,180,.10);
  background: radial-gradient(circle, rgba(38,230,180,.08), transparent 68%);
  filter: blur(1px);
}

.route-transition span:nth-child(1) {
  left: -10vw;
  top: 18vh;
}

.route-transition span:nth-child(2) {
  right: -8vw;
  top: -6vh;
}

.route-transition span:nth-child(3) {
  left: 42vw;
  bottom: -18vh;
}

.page-enter .route-transition {
  animation: transitionGlow .9s var(--motion-smooth) both;
}

@keyframes transitionGlow {
  0% { opacity: 0; transform: scale(.88); }
  35% { opacity: .8; }
  100% { opacity: 0; transform: scale(1.15); }
}

button,
.brand,
.feature-card,
.server-list-card,
.plan-card,
.panel {
  position: relative;
  overflow: hidden;
}

.button-ripple {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.44), rgba(38,230,180,.18) 46%, transparent 72%);
  transform: scale(0);
  animation: ripplePop .72s ease-out forwards;
  z-index: 4;
}

@keyframes ripplePop {
  0% { transform: scale(0); opacity: .75; }
  75% { opacity: .26; }
  100% { transform: scale(1); opacity: 0; }
}

.btn,
.icon-btn,
.nav-link,
.text-exit {
  transition:
    transform .22s var(--motion-spring),
    border-color .22s ease,
    background .22s ease,
    color .22s ease,
    box-shadow .22s ease;
}

.btn:hover,
.icon-btn:hover {
  transform: translateY(-2px) scale(1.015);
}

.btn:active,
.icon-btn:active {
  transform: translateY(0) scale(.97);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #26e6b4, #25a7ff);
  transition: left .24s var(--motion-spring), right .24s var(--motion-spring);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0;
  right: 0;
}

.hero-orbit {
  position: absolute;
  width: min(520px, 70vw);
  aspect-ratio: 1;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: .42;
  z-index: -1;
}

.hero-orbit::before,
.hero-orbit::after,
.hero-orbit i {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(38,230,180,.13);
}

.hero-orbit::before {
  animation: orbitSpin 18s linear infinite;
  border-top-color: rgba(38,230,180,.52);
  border-right-color: rgba(37,167,255,.28);
}

.hero-orbit::after {
  inset: 25%;
  animation: orbitSpinReverse 13s linear infinite;
  border-left-color: rgba(37,167,255,.42);
  border-bottom-color: rgba(38,230,180,.22);
}

.hero-orbit i:nth-child(1) {
  inset: 37%;
  background: radial-gradient(circle, rgba(38,230,180,.14), transparent 70%);
  border-color: rgba(255,255,255,.08);
  animation: breathe 3.8s ease-in-out infinite;
}

.hero-orbit i:nth-child(2) {
  inset: 5%;
  border-style: dashed;
  animation: orbitSpin 26s linear infinite;
}

.hero-orbit i:nth-child(3) {
  inset: 45%;
  border: 0;
  background: #26e6b4;
  box-shadow: 0 0 35px rgba(38,230,180,.72);
  animation: corePulse 2.4s ease-in-out infinite;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes breathe {
  0%,100% { transform: scale(.92); opacity: .45; }
  50% { transform: scale(1.08); opacity: .95; }
}

@keyframes corePulse {
  0%,100% { transform: scale(.65); opacity: .35; }
  50% { transform: scale(1); opacity: .9; }
}

.hero-tags span {
  transition:
    transform .24s var(--motion-spring),
    border-color .24s ease,
    background .24s ease,
    box-shadow .24s ease;
}

.hero-tags span:hover {
  transform: translateY(-3px);
  border-color: rgba(38,230,180,.32);
  background: rgba(38,230,180,.075);
  box-shadow: 0 16px 38px rgba(38,230,180,.10);
}

.hero-tags img,
.feature-icon img,
.icon-btn img,
.server-flag-image {
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px) scale(.985);
  filter: blur(4px);
}

.reveal-item.is-visible {
  animation: revealItem .72s var(--motion-smooth) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes revealItem {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.feature-card,
.server-list-card,
.plan-card,
.panel {
  transition:
    transform .28s var(--motion-spring),
    border-color .28s ease,
    box-shadow .28s ease,
    background .28s ease;
}

.feature-card:hover,
.server-list-card:hover,
.plan-card:hover,
.panel:hover {
  transform: translateY(-5px);
  border-color: rgba(38,230,180,.22);
  box-shadow:
    0 28px 75px rgba(0,0,0,.26),
    0 0 0 1px rgba(38,230,180,.05);
}

.feature-card::after,
.server-list-card::after,
.panel::after {
  content: "";
  position: absolute;
  inset: -45%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.055) 48%, transparent 62%);
  transform: translateX(-50%) rotate(8deg);
  transition: transform .8s var(--motion-smooth);
  pointer-events: none;
}

.feature-card:hover::after,
.server-list-card:hover::after,
.panel:hover::after {
  transform: translateX(46%) rotate(8deg);
}

.animated-border {
  isolation: isolate;
}

.animated-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(38,230,180,.1) 70deg,
    #26e6b4 120deg,
    #25a7ff 190deg,
    transparent 250deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderOrbit 5.8s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes borderOrbit {
  to { transform: rotate(360deg); }
}

.plan-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -110px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38,230,180,.18), transparent 70%);
  animation: planGlow 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes planGlow {
  0%,100% { transform: scale(.86); opacity: .42; }
  50% { transform: scale(1.14); opacity: .82; }
}

.server-flag-image {
  width: 36px;
  height: 24px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 5px 16px rgba(0,0,0,.28);
}

.server-emoji {
  display: none;
}

.logo-stage img,
.brand > img {
  animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(1.2deg); }
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transform: translateX(-100%);
  animation: skeletonSweep 1.25s infinite;
}

@keyframes skeletonSweep {
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 760px) {
  .hero-orbit {
    width: 92vw;
    opacity: .25;
  }
}


/* secretaNet v0.6.0 */
.simple-hero { min-height: calc(100vh - 110px); display:grid; place-items:center; text-align:center; }
.simple-hero h1 span { color:var(--mint); }
.telegram-login-slot { min-height:56px; display:flex; justify-content:center; margin:28px 0 16px; }
.profile-single { max-width:900px; }
.profile-single .panel { padding:32px; }
.empty-note { margin:24px 0; }
.devices-section { margin-top:28px; }
.section-title { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:18px; }
.section-title h2 { margin:0 0 6px; font-size:34px; }
.section-title p { margin:0; color:var(--muted); }
.device-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.device-card { padding:24px; display:grid; gap:16px; }
.device-card h3 { font-size:24px; margin:8px 0; }
.device-card p { color:var(--muted); margin:0; }
.device-platform { color:var(--mint); font-weight:800; font-size:13px; }
.device-config { max-height:110px; overflow:auto; padding:14px; border-radius:16px; background:rgba(0,0,0,.28); color:#a8ffe8; word-break:break-all; font-size:12px; }
.device-form { padding:18px; display:grid; grid-template-columns:1.2fr 1fr 1fr auto; gap:10px; margin-bottom:18px; border-radius:24px; }
.device-form select { appearance:auto; }
.danger-btn { border:1px solid rgba(255,90,100,.3); color:#ffabb2; background:rgba(255,90,100,.08); border-radius:14px; padding:11px 14px; font-weight:800; }
.empty-subscription { max-width:760px; padding:38px; }
.simple-server-list { display:grid; gap:10px; max-width:900px; }
.server-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 22px; border:1px solid var(--line); background:rgba(255,255,255,.05); border-radius:20px; }
.server-row > div:first-child { display:grid; gap:4px; }
.server-row span { color:var(--muted); font-size:13px; }
.health { display:flex; align-items:center; gap:9px; font-weight:800; }
.health i { width:10px; height:10px; border-radius:50%; }
.health.good { color:#70f7b8; } .health.good i { background:#39e99a; box-shadow:0 0 16px #39e99a; }
.health.warning { color:#ffd76e; } .health.warning i { background:#ffc846; box-shadow:0 0 16px #ffc846; }
.health.bad { color:#ff8792; } .health.bad i { background:#ff5d6c; box-shadow:0 0 16px #ff5d6c; }
@media(max-width:760px){
  .device-grid{grid-template-columns:1fr}
  .device-form{grid-template-columns:1fr}
  .section-title{align-items:flex-start;flex-direction:column}
  .server-row{align-items:flex-start;flex-direction:column}
}
