:root {
  color-scheme: dark;
  --bg: #070908;
  --panel: #101513;
  --panel-2: #151b18;
  --line: rgba(233, 244, 236, 0.12);
  --text: #f4f7f2;
  --muted: #9aa79d;
  --soft: #657169;
  --accent: #35e6b0;
  --accent-2: #c5f35b;
  --warn: #f3b84f;
  --danger: #ef6b6b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  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-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 30%, rgba(53, 230, 176, 0.12), transparent 34rem),
    radial-gradient(circle at 78% 58%, rgba(197, 243, 91, 0.07), transparent 30rem),
    var(--bg);
  background-size:
    72px 72px,
    72px 72px,
    auto,
    auto,
    auto;
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(53, 230, 176, 0.045), transparent 65%),
    linear-gradient(260deg, transparent 0 44%, rgba(197, 243, 91, 0.035), transparent 70%);
  opacity: 0.75;
  transform: translate3d(-4%, -3%, 0);
  animation: ambientDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(20px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 8, 0.84);
  backdrop-filter: blur(18px);
  animation: slideDown 520ms ease both;
}

.brand,
.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand span span,
.account-brand strong {
  color: var(--accent);
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--accent-2) 0 18%, transparent 19%),
    conic-gradient(from 120deg, var(--accent), var(--accent-2), var(--accent));
  box-shadow: 0 0 28px rgba(53, 230, 176, 0.42);
  animation: markSpin 8s linear infinite;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}

.nav a:hover {
  color: var(--text);
}

.login-button {
  position: relative;
  justify-self: end;
  min-width: 96px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #04100b;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(53, 230, 176, 0.22);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.login-button::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    transparent 0 35%,
    rgba(255, 255, 255, 0.42) 48%,
    transparent 62% 100%
  );
  content: "";
  transform: translateX(-125%);
  animation: buttonSheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

.login-button:hover,
.primary-action:hover,
.final-section a:hover,
.empty-state a:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 54px rgba(53, 230, 176, 0.26);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px);
  padding: 72px 20px 96px;
  overflow: hidden;
}

.hero-field {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(53, 230, 176, 0.2);
  border-radius: 50%;
  box-shadow:
    inset 0 0 28px rgba(53, 230, 176, 0.035),
    0 0 38px rgba(53, 230, 176, 0.06);
  animation: orbitSpin 16s linear infinite;
}

.orbit::before,
.orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.orbit::before {
  top: -5px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow:
    0 0 18px rgba(53, 230, 176, 0.9),
    0 0 44px rgba(53, 230, 176, 0.35);
}

.orbit::after {
  inset: -1px;
  background: conic-gradient(
    from 90deg,
    transparent 0deg,
    rgba(53, 230, 176, 0.26) 34deg,
    transparent 72deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.orbit-1 {
  width: min(46vw, 650px);
  aspect-ratio: 1;
}

.orbit-2 {
  width: min(34vw, 480px);
  aspect-ratio: 1;
  animation-duration: 22s;
  animation-direction: reverse;
}

.orbit-3 {
  width: min(22vw, 320px);
  aspect-ratio: 1;
  animation-duration: 11s;
}

.hero-content {
  position: relative;
  width: min(980px, 100%);
  text-align: center;
  animation: riseIn 700ms ease 120ms both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(53, 230, 176, 0.28);
  border-radius: 999px;
  background: rgba(53, 230, 176, 0.08);
  color: var(--accent);
  font-weight: 800;
}

.pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: dotPulse 1600ms ease-in-out infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 56px auto 24px;
  max-width: 980px;
  background: linear-gradient(90deg, var(--text), var(--accent-2), var(--text));
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: clamp(54px, 9vw, 128px);
  line-height: 0.86;
  letter-spacing: 0;
  animation: titleSheen 5s ease-in-out infinite;
}

.hero-content p {
  max-width: 720px;
  margin: 0 auto 42px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action,
.final-section a,
.empty-state a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-weight: 900;
  overflow: hidden;
  isolation: isolate;
}

.primary-action {
  background: var(--accent);
  color: #04100b;
}

.primary-action::after,
.final-section a::after,
.empty-state a::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    transparent 0 35%,
    rgba(255, 255, 255, 0.42) 48%,
    transparent 62% 100%
  );
  content: "";
  transform: translateX(-125%);
  animation: buttonSheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

.primary-action,
.secondary-action,
.final-section a,
.empty-state a,
.subscription-box button,
.device-row button,
.price-row b {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.secondary-action:hover {
  border-color: rgba(53, 230, 176, 0.34);
  transform: translateY(-2px);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 21, 19, 0.58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  animation: fadeIn 700ms ease 300ms both;
}

.trust-strip div {
  min-height: 118px;
  padding: 28px 28px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
}

.trust-strip span {
  color: var(--muted);
}

.plans-section,
.steps-section,
.final-section {
  padding: 120px 20px;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading > span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 20px;
}

.pricing-list {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(16, 21, 19, 0.72);
  box-shadow: var(--shadow);
  animation: riseIn 650ms ease both;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 130px 44px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row:hover,
.price-row.featured {
  background: rgba(53, 230, 176, 0.07);
}

.price-row.featured {
  background:
    linear-gradient(90deg, rgba(53, 230, 176, 0.1), rgba(197, 243, 91, 0.045)),
    rgba(53, 230, 176, 0.07);
  animation: featuredGlow 2400ms ease-in-out infinite alternate;
}

.price-row:hover {
  transform: translateX(4px);
}

.price-row:hover b {
  transform: translateX(3px);
}

.price-row span {
  font-size: 24px;
  font-weight: 900;
}

.price-row small {
  color: var(--muted);
  font-size: 15px;
}

.price-row strong {
  font-size: 26px;
  text-align: right;
}

.price-row b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  justify-self: end;
  border-radius: var(--radius);
  background: rgba(197, 243, 91, 0.14);
  color: var(--accent-2);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1060px;
  margin: 0 auto;
}

.steps-grid article,
.status-card,
.subscription-box,
.server-list,
.device-row,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 21, 19, 0.74);
}

.steps-grid article {
  min-height: 230px;
  padding: 28px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.steps-grid article:hover,
.status-card:hover,
.server-list article:hover,
.device-row:hover {
  border-color: rgba(53, 230, 176, 0.28);
  background: rgba(16, 21, 19, 0.88);
  transform: translateY(-3px);
}

.steps-grid article span {
  color: var(--accent);
  font-weight: 900;
}

.steps-grid article h3 {
  margin: 48px 0 12px;
  font-size: 26px;
}

.steps-grid article p {
  color: var(--muted);
  line-height: 1.5;
}

.final-section {
  border-top: 1px solid var(--line);
  text-align: center;
}

.final-section p {
  color: var(--muted);
  font-size: 22px;
}

.final-section a,
.empty-state a {
  background: var(--accent);
  color: #04100b;
}

.auth-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(780px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.auth-dialog {
  width: min(560px, calc(100vw - 28px));
}

.auth-dialog[open] {
  animation: dialogIn 220ms ease both;
}

.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  animation: fadeIn 180ms ease both;
}

.auth-shell {
  padding: 32px;
}

.auth-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.auth-head span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-head h2 {
  margin: 8px 0 0;
  font-size: 38px;
  line-height: 1;
}

.auth-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.auth-method {
  min-height: 46px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.auth-method.active,
.auth-method:hover {
  background: rgba(53, 230, 176, 0.12);
  color: var(--text);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: grid;
  gap: 14px;
  animation: panelIn 220ms ease both;
}

.auth-panel p,
.auth-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.auth-panel input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.auth-panel input:focus {
  border-color: rgba(53, 230, 176, 0.48);
  box-shadow: 0 0 0 3px rgba(53, 230, 176, 0.1);
}

.auth-primary,
.auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
}

.auth-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--accent);
  color: #04100b;
}

.auth-primary::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    transparent 0 35%,
    rgba(255, 255, 255, 0.42) 48%,
    transparent 62% 100%
  );
  content: "";
  transform: translateX(-125%);
  animation: buttonSheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

.auth-secondary {
  border: 1px solid rgba(53, 230, 176, 0.22);
  background: rgba(53, 230, 176, 0.08);
  color: var(--accent);
}

.auth-primary:hover,
.auth-secondary:hover {
  transform: translateY(-2px);
}

.code-box {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(197, 243, 91, 0.18);
  border-radius: var(--radius);
  background: rgba(197, 243, 91, 0.05);
}

.code-box[hidden] {
  display: none;
}

.account-page {
  min-height: calc(100vh - 76px);
  padding: 24px clamp(12px, 3vw, 32px) 40px;
  background: #08080d;
  animation: fadeIn 220ms ease both;
}

.account-page[hidden] {
  display: none;
}

body.account-route .topbar,
body.account-route main {
  display: none;
}

.account-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: min(1180px, 100%);
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: #08080d;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.account-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 12px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: #1b1b1f;
}

.account-brand {
  margin: 0 8px 36px;
  font-size: 22px;
}

.account-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 50px;
  margin-bottom: 8px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: transparent;
  color: #85858e;
  text-align: left;
  font-weight: 800;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.account-tab span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  font-size: 15px;
  line-height: 1;
}

.account-tab.active,
.account-tab:hover {
  background: rgba(53, 230, 176, 0.1);
  color: var(--accent);
}

.account-tab:hover {
  transform: translateX(2px);
}

.account-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: auto -12px 0;
  padding: 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #85858e;
}

.account-user strong {
  display: block;
  color: #c7c7cf;
}

.account-user small {
  display: block;
  margin-top: 4px;
}

.account-user button {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: transparent;
  color: #85858e;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.account-user button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.account-main {
  min-width: 0;
  max-width: 760px;
  padding: 24px;
  scrollbar-color: rgba(53, 230, 176, 0.28) transparent;
}

.account-mobile-top {
  display: none;
}

.account-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.account-mobile-brand span:last-child,
.account-mobile-brand strong span {
  color: var(--accent);
}

.account-exit-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #c7c7cf;
  font-weight: 900;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.account-exit-button:hover {
  border-color: rgba(53, 230, 176, 0.26);
  background: rgba(53, 230, 176, 0.08);
  color: var(--accent);
  transform: translateY(-1px);
}

.desktop-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #17171f;
  animation: cardIn 260ms ease both;
}

.account-head span {
  color: #8d8d98;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.account-head h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.account-head p {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.close-button {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  font-size: 32px;
  line-height: 1;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(6deg);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: panelIn 220ms ease both;
}

.dashboard-card {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #17171f;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  animation: cardIn 280ms ease both;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.dashboard-card:hover {
  border-color: rgba(53, 230, 176, 0.24);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.tab-panel.active .dashboard-card:nth-child(2) {
  animation-delay: 55ms;
}

.tab-panel.active .dashboard-card:nth-child(3) {
  animation-delay: 110ms;
}

.tab-panel.active .dashboard-card:nth-child(4) {
  animation-delay: 165ms;
}

.dashboard-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-card-head h3,
.dashboard-card h3,
.referral-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.dashboard-card-head p,
.dashboard-card p,
.referral-card p {
  margin: 6px 0 0;
  color: #8d8d98;
  line-height: 1.45;
}

.dash-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(53, 230, 176, 0.24);
  border-radius: var(--radius);
  background: rgba(53, 230, 176, 0.1);
  color: var(--accent);
  font-weight: 900;
}

.dash-purple {
  border-color: rgba(141, 91, 238, 0.34);
  background: rgba(141, 91, 238, 0.14);
  color: #8d5bee;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(53, 230, 176, 0.18);
  border-radius: 999px;
  background: rgba(53, 230, 176, 0.09);
  color: var(--accent);
  font-size: 13px;
}

.status-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  animation: onlinePulse 1700ms ease-out infinite;
}

.vpn-active-card {
  background:
    linear-gradient(180deg, rgba(53, 230, 176, 0.025), transparent 55%),
    #17171f;
}

.vpn-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-card {
  position: relative;
  min-height: 74px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: #1d1d23;
  overflow: hidden;
}

.metric-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
}

.metric-green::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.metric-blue::after {
  background: linear-gradient(90deg, #54d8f5, transparent);
}

.metric-card span {
  display: block;
  color: #8d8d98;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.metric-card small {
  color: #777783;
}

.metric-card button {
  position: absolute;
  right: 14px;
  top: 22px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: #8d5bee;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.metric-card button:hover {
  filter: brightness(1.08);
  transform: scale(1.06);
}

.traffic-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(141, 91, 238, 0.13), transparent 48%),
    #17171f;
}

.traffic-value {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 8px;
}

.traffic-value strong {
  font-size: 42px;
  line-height: 1;
}

.traffic-value span,
.traffic-note,
.card-footnote {
  color: #85858e;
}

.traffic-bar {
  height: 6px;
  margin: 26px 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.traffic-bar span {
  display: block;
  width: 5%;
  height: 100%;
  border-radius: inherit;
  background: #8d5bee;
  box-shadow: 0 0 18px rgba(141, 91, 238, 0.55);
  animation: trafficGrow 720ms ease both;
}

.buy-traffic-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: #8d5bee;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(141, 91, 238, 0.24);
}

.buy-traffic-button b {
  margin-left: auto;
}

.card-footnote {
  margin-top: 16px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.status-card {
  padding: 20px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.status-card span,
.subscription-box span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.status-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
}

.status-card small,
.server-list small,
.device-row small {
  color: var(--muted);
}

.subscription-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 20px;
  margin-bottom: 14px;
  border-color: rgba(255, 255, 255, 0.13);
  background: #1d1d23;
}

.subscription-box p {
  margin: 0;
  color: #c9c9d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.subscription-box button,
.device-row button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: rgba(197, 243, 91, 0.14);
  color: var(--accent-2);
  font-weight: 900;
}

.subscription-box button:hover {
  background: rgba(197, 243, 91, 0.2);
  transform: translateY(-1px);
}

.key-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.happ-button,
.ghost-button,
.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
}

.happ-button {
  background: #8d5bee;
  color: #fff;
  box-shadow: 0 16px 40px rgba(141, 91, 238, 0.22);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #aaaab4;
}

.referral-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.referral-card button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: transparent;
  color: #8d5bee;
  font-weight: 900;
}

.guide-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.guide-list p {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #1d1d23;
}

.tariffs-card {
  display: grid;
  gap: 10px;
}

.tariff-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: #1d1d23;
  color: var(--text);
  font-weight: 900;
}

.tariff-line:hover,
.happ-button:hover,
.ghost-button:hover,
.support-link:hover,
.buy-traffic-button:hover {
  transform: translateY(-2px);
}

.happ-button:hover,
.buy-traffic-button:hover {
  box-shadow: 0 20px 54px rgba(141, 91, 238, 0.3);
}

.support-link {
  width: fit-content;
  margin-top: 18px;
  background: var(--accent);
  color: #04100b;
}

.server-list {
  overflow: hidden;
}

.server-list article,
.device-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.server-list article:last-child {
  border-bottom: 0;
}

.server-list article,
.device-row {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.flag {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(53, 230, 176, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  animation: flagFloat 2800ms ease-in-out infinite;
}

.server-list b {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
}

.server-list b::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(197, 243, 91, 0.42);
  content: "";
  animation: onlinePulse 1700ms ease-out infinite;
}

.device-row {
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto) auto;
  margin-bottom: 10px;
}

.empty-state {
  padding: 40px;
  text-align: center;
}

.empty-state h3 {
  font-size: 30px;
}

.empty-state p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  padding: 14px 18px;
  border: 1px solid rgba(53, 230, 176, 0.28);
  border-radius: var(--radius);
  background: #0d1713;
  color: var(--accent);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ambientDrift {
  from {
    transform: translate3d(-4%, -3%, 0) scale(1);
  }

  to {
    transform: translate3d(4%, 3%, 0) scale(1.04);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg) scale(0.99);
  }

  50% {
    opacity: 0.92;
    transform: rotate(180deg) scale(1.025);
  }

  to {
    transform: rotate(360deg) scale(0.99);
  }
}

@keyframes titleSheen {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes buttonSheen {
  0%,
  42% {
    transform: translateX(-125%);
  }

  68%,
  100% {
    transform: translateX(125%);
  }
}

@keyframes featuredGlow {
  from {
    box-shadow: inset 0 0 0 rgba(53, 230, 176, 0);
  }

  to {
    box-shadow: inset 0 0 28px rgba(53, 230, 176, 0.12);
  }
}

@keyframes flagFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

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

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes onlinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 243, 91, 0.38);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(197, 243, 91, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(197, 243, 91, 0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes trafficGrow {
  from {
    width: 0;
  }

  to {
    width: 5%;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .trust-strip,
  .steps-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .account-shell {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .account-sidebar {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .account-brand {
    display: none;
  }

  .account-tab {
    min-width: 130px;
    margin-bottom: 0;
  }

  .account-user {
    min-width: 220px;
    margin: 0;
    padding: 0 8px 0 14px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 640px) {
  .auth-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }

  .topbar {
    min-height: 68px;
    padding-inline: 16px;
  }

  .login-button {
    min-width: 82px;
    height: 40px;
  }

  .hero {
    min-height: calc(100vh - 68px);
    padding-top: 54px;
  }

  h1 {
    margin-top: 38px;
    font-size: clamp(48px, 16vw, 76px);
  }

  .hero-actions,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .price-row {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
    min-height: 96px;
  }

  .price-row small,
  .price-row b {
    display: none;
  }

  .trust-strip {
    width: calc(100% - 28px);
  }

  .trust-strip div {
    min-height: 96px;
    padding: 22px;
  }

  .account-page {
    min-height: 100vh;
    padding: 0 0 28px;
    background:
      linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
      radial-gradient(circle at 50% 0%, rgba(53, 230, 176, 0.11), transparent 22rem),
      #08080d;
    background-size:
      48px 48px,
      48px 48px,
      auto,
      auto;
  }

  .account-shell {
    min-height: 100vh;
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .account-mobile-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 8, 13, 0.92);
    backdrop-filter: blur(16px);
  }

  .account-sidebar {
    top: 64px;
    align-items: stretch;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(8, 8, 13, 0.9);
    backdrop-filter: blur(16px);
  }

  .account-sidebar::-webkit-scrollbar {
    display: none;
  }

  .account-brand,
  .account-user {
    display: none;
  }

  .account-tab {
    min-width: 132px;
    height: 44px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .account-main {
    padding: 14px 12px 28px;
    max-width: none;
  }

  .account-head h2 {
    font-size: 32px;
  }

  .account-head,
  .dashboard-card-head,
  .referral-card {
    align-items: flex-start;
  }

  .account-head {
    min-height: 0;
    padding: 16px;
  }

  .account-head .desktop-only {
    display: none;
  }

  .account-head p {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .dashboard-card {
    margin-bottom: 12px;
    padding: 16px;
  }

  .dashboard-card-head {
    gap: 12px;
  }

  .status-badge {
    margin-left: 0;
  }

  .vpn-metrics {
    grid-template-columns: 1fr;
  }

  .subscription-box,
  .server-list article,
  .device-row,
  .referral-card {
    grid-template-columns: 1fr;
  }

  .subscription-box {
    padding: 16px;
  }

  .subscription-box button {
    width: 100%;
  }

  .traffic-value strong {
    font-size: 38px;
  }

  .buy-traffic-button {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 12px;
  }

  .buy-traffic-button b {
    margin-left: 0;
  }

  .key-actions,
  .happ-button,
  .ghost-button,
  .support-link {
    width: 100%;
  }

  .device-row button {
    width: 100%;
  }
}

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