@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap");

:root {
  --bg-top: #020617;
  --bg-mid: #041225;
  --bg-bottom: #020817;
  --panel: rgba(10, 18, 35, 0.68);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f8fbff;
  --muted: #cbd5e1;
  --accent: #22c55e;
  --blue: #44d0ff;
  --deep-blue: #2b57ff;
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.18), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.16), transparent 24%),
    radial-gradient(circle at 50% 85%, rgba(99, 102, 241, 0.1), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%);
}

.space-stars,
.falling-stars,
.twinkle-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.space-stars {
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 90px 80px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 230px 40px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 320px 90px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 420px 150px, rgba(255, 255, 255, 0.7), transparent);
  background-size: 520px 220px;
  opacity: 0.45;
}

.falling-star {
  position: absolute;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
  border-radius: 999px;
  opacity: 0;
  transform: rotate(-20deg);
  animation: fall 10s linear infinite;
}

.falling-star:nth-child(1) { top: 8%; left: -10%; animation-delay: 0s; }
.falling-star:nth-child(2) { top: 16%; left: -15%; animation-delay: 2s; }
.falling-star:nth-child(3) { top: 24%; left: -12%; animation-delay: 4s; }
.falling-star:nth-child(4) { top: 36%; left: -18%; animation-delay: 6s; }
.falling-star:nth-child(5) { top: 48%; left: -10%; animation-delay: 8s; }
.falling-star:nth-child(6) { top: 58%; left: -14%; animation-delay: 1s; }
.falling-star:nth-child(7) { top: 72%; left: -12%; animation-delay: 3s; }
.falling-star:nth-child(8) { top: 84%; left: -9%; animation-delay: 5s; }

@keyframes fall {
  0% { transform: translateX(0) translateY(0) rotate(-20deg); opacity: 0; }
  8% { opacity: 1; }
  20% { opacity: 0; }
  100% { transform: translateX(120vw) translateY(35vh) rotate(-20deg); opacity: 0; }
}

.twinkle-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  animation: twinkle 2.6s ease-in-out infinite;
}

.twinkle-star:nth-child(1) { top: 12%; left: 18%; animation-delay: 0.2s; }
.twinkle-star:nth-child(2) { top: 22%; left: 74%; animation-delay: 0.8s; }
.twinkle-star:nth-child(3) { top: 38%; left: 28%; animation-delay: 1.4s; }
.twinkle-star:nth-child(4) { top: 54%; left: 80%; animation-delay: 0.4s; }
.twinkle-star:nth-child(5) { top: 70%; left: 16%; animation-delay: 1.1s; }
.twinkle-star:nth-child(6) { top: 84%; left: 66%; animation-delay: 1.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 18px;
  background: rgba(10, 18, 35, 0.58);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  /* Поднимаем навбар над hero-секцией (у неё свой backdrop-filter контекст),
     иначе выпадающее меню языка уходит под баннер. */
  position: relative;
  z-index: 50;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #44d0ff 0%, #2196f3 42%, #2b57ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nav-brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.nav-link,
.nav-cta,
.btn-primary,
.btn-secondary {
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.nav-link,
.nav-cta {
  padding: 11px 16px;
  font-size: 14px;
}

.nav-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #020617;
  background: #fff;
}

.lang-toggle {
  cursor: pointer;
  font: inherit;
  min-width: 76px;
}

.lang-floating {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 20;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

html[lang="zh"],
html[lang="fa"],
html[lang="fr"] {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .nav,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .nav-right,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .pricing-actions {
  direction: rtl;
}

.nav-cta,
.btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-screen,
.card,
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-screen {
  padding: 44px 34px;
  border-radius: 34px;
  margin-bottom: 36px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.1), transparent 20%),
    linear-gradient(135deg, rgba(68, 208, 255, 0.18), rgba(43, 87, 255, 0.08)),
    rgba(10, 18, 35, 0.7);
}

.hero-glow,
.cta-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow {
  inset: auto -80px -80px auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 68%);
}

.hero-content,
.cta-section > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 8px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title,
.section-title,
.cta-title,
h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
}

.hero-sub,
.section-sub,
.plan-copy p,
.cta-sub {
  color: var(--muted);
  line-height: 1.65;
}

.hero-sub {
  margin: 18px 0 0;
  max-width: 720px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
}

.hero-price {
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800;
  color: #e2e8f0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
  max-width: 780px;
}

.stat {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.stat-num {
  display: block;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.section {
  margin-bottom: 34px;
}

.section-head {
  margin-bottom: 16px;
}

.page-title {
  text-align: center;
}

.page-title .section-title {
  margin-top: 18px;
}

.compact-title .section-title {
  margin-top: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.compact-title .section-sub {
  font-size: 15px;
}

.center {
  margin-left: auto;
  margin-right: auto;
}

.switch-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.switch {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.switch.active {
  color: #020617;
  background: #fff;
}

.promo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 22px auto 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-label {
  font-size: 13px;
  font-weight: 900;
  color: var(--foreground);
}

.promo-input {
  width: 130px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(2, 6, 23, 0.65);
  color: var(--foreground);
  padding: 0 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.promo-status.active {
  color: #67e8a5;
}

.section-title {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.02;
}

.section-sub {
  max-width: 760px;
  margin-top: 10px;
  font-size: 17px;
}

.card,
.cta-section {
  border-radius: 28px;
}

.showcase,
.plan-card,
.tariff-card {
  overflow: hidden;
}

.showcase-image,
.plan-visual {
  display: block;
  width: 100%;
  object-fit: cover;
}

.showcase-image {
  height: 340px;
}

.plan-visual {
  height: 190px;
  object-position: left center;
}

.plans-grid,
.tariffs-grid,
.features-grid,
.setup-grid,
.payment-grid,
.locations-grid,
.price-grid {
  display: grid;
  gap: 18px;
}

.plans-grid,
.tariffs-grid,
.features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.setup-grid,
.payment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.locations-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.locations-page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.locations-catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1024px;
  margin: 0 auto;
}

.price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.featured {
  border-color: rgba(34, 211, 238, 0.3);
}

.featured-pro {
  border-color: rgba(34, 197, 94, 0.36);
  box-shadow: 0 24px 70px rgba(34, 197, 94, 0.12);
}

.plan-copy,
.tariff-top,
.tariff-list,
.feature-card,
.setup-card,
.payment-card,
.price-card {
  padding-left: 22px;
  padding-right: 22px;
}

.plan-copy {
  padding-top: 20px;
  padding-bottom: 24px;
}

.plan-copy p {
  margin: 10px 0 0;
  font-size: 16px;
}

.feature-card,
.setup-card,
.payment-card,
.price-card {
  padding-top: 22px;
  padding-bottom: 24px;
}

.feature-card p,
.setup-card p,
.payment-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.26);
  font-size: 22px;
}

.location-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  min-height: 132px;
}

.locations-catalog-grid .location-card {
  min-height: 100px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.location-card h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.location-card p {
  min-height: 48px;
  margin: 8px 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.location-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 24px;
}

.locations-catalog-grid .location-flag {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  font-size: 22px;
}

.location-code {
  display: block;
  margin-bottom: 6px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  font-size: 12px;
  font-weight: 800;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.locations-summary {
  max-width: 1024px;
  margin-top: 18px;
  padding: 24px;
  text-align: center;
  border-radius: 6px;
}

.locations-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.locations-summary strong {
  display: block;
  margin-bottom: 6px;
  font-size: 30px;
}

.locations-summary span {
  color: var(--muted);
  font-size: 14px;
}

.price-card {
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.device-tier-wrap {
  width: min(100%, 620px);
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.device-tier-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.device-tier-row {
  margin-top: 0;
}

.device-tier-row .switch {
  min-width: 130px;
}

.device-tier-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.price-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  color: #020617;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
}

.price-period {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.price-value {
  margin: 14px 0 4px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.price-monthly {
  min-height: 22px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.price-monthly strong {
  color: var(--text);
}

.price-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-weight: 900;
}

.price-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.price-actions .price-button {
  margin-top: 0;
}

.price-actions .price-button[hidden] {
  display: none;
}

.price-card .price-button {
  margin-top: auto;
}

.price-card .price-actions .price-button {
  margin-top: 0;
}

.price-button.tribute {
  color: #04110d;
  background: #73ddc5;
}

.price-button.light {
  color: #020617;
  background: #fff;
}

.price-list {
  list-style: none;
  margin: 18px 0 14px;
  padding: 0;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.price-list strong {
  color: var(--text);
  white-space: nowrap;
}

.guarantee {
  margin-top: 28px;
  padding: 28px;
  text-align: center;
}

.guarantee-button {
  width: min(100%, 260px);
  margin: 20px auto 0;
}

.guarantee p {
  margin: 10px auto 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.sub-page {
  max-width: 980px;
}

.sub-nav {
  border-radius: 18px;
}

.sub-shell {
  display: grid;
  gap: 18px;
}

.sub-hero,
.sub-section {
  padding: 24px;
  border-radius: 24px;
}

.sub-title {
  margin: 8px 0 8px;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.sub-days {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.sub-days strong {
  color: var(--text);
}

.sub-error {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 14px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.28);
}

.sub-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.sub-tile {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.sub-tile span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sub-tile strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 14px;
}

.status-pill.is-loading {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

.status-pill.is-active {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
}

.status-pill.is-expired {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
}

.compact {
  margin-bottom: 16px;
}

.compact .section-title {
  font-size: clamp(28px, 5vw, 42px);
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.platform-tab {
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 900;
}

.platform-tab.active {
  color: #020617;
  border-color: #fff;
  background: #fff;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.setup-step {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.setup-step h3 {
  margin: 0 0 10px;
}

.setup-step p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.sub-add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  color: #020617;
  background: #fff;
  text-decoration: none;
  font-weight: 950;
}

.sub-add-button.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.sub-url-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

#sub-url-text {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.copy-button {
  cursor: pointer;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.sub-actions {
  display: grid;
  gap: 10px;
}

.skeleton-line {
  position: relative;
  overflow: hidden;
  color: transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

.search-input {
  width: min(100%, 560px);
  min-height: 48px;
  margin-top: 22px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(3, 7, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font: inherit;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto 34px;
  padding: 34px;
}

.legal-updated {
  margin: 12px 0 26px;
  color: var(--muted);
}

.legal-page section {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.legal-page h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.legal-page a {
  color: #93c5fd;
  font-weight: 800;
  text-decoration: none;
}

.legal-page ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.loc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1024px;
  margin: 0 auto;
}

.loc-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 100px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.loc-card h3 {
  margin: 3px 0 16px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.loc-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 22px;
  line-height: 1;
}

.flag-nl {
  background: linear-gradient(to bottom, #ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66% 100%);
}

.flag-ru {
  background: linear-gradient(to bottom, #fff 0 33.33%, #1c57a7 33.33% 66.66%, #d52b1e 66.66% 100%);
}

.flag-fi {
  background:
    linear-gradient(to right, transparent 0 30%, #003580 30% 46%, transparent 46% 100%),
    linear-gradient(to bottom, transparent 0 38%, #003580 38% 62%, transparent 62% 100%),
    #fff;
}

.flag-lv {
  background: linear-gradient(to bottom, #9e1b34 0 40%, #fff 40% 60%, #9e1b34 60% 100%);
}

.flag-pl {
  background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50% 100%);
}

.flag-us {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(
    to bottom,
    #b22234 0 7.69%,
    #fff 7.69% 15.38%
  );
}

.flag-us::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 52%;
  height: 54%;
  background: #3c3b6e;
}

.mini-flag {
  display: block;
  width: 28px;
  height: 14px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.loc-summary {
  max-width: 1024px;
  margin: 38px auto 0;
  padding: 26px;
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
}

.loc-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.loc-summary strong,
.loc-summary span {
  display: block;
}

.loc-summary strong {
  margin-bottom: 7px;
  font-size: 28px;
  font-weight: 900;
}

.loc-summary-row strong {
  min-height: 36px;
}

.loc-summary .loc-format-list {
  font-size: 20px;
  line-height: 1.2;
}

.loc-summary span {
  color: var(--muted);
  font-size: 14px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(53, 208, 255, 0.1);
  color: #74f4ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
}

.tariff-top {
  padding-top: 22px;
  padding-bottom: 10px;
}

.tariff-list {
  list-style: none;
  margin: 0;
  padding-top: 0;
  padding-bottom: 22px;
}

.tariff-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(160, 199, 255, 0.1);
  color: var(--muted);
  font-size: 16px;
}

.tariff-list strong {
  color: var(--text);
  font-size: 18px;
}

.cta-section {
  padding: 34px 24px;
  text-align: center;
}

.own-server-card {
  padding: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.14), transparent 34%),
    var(--panel);
}

.own-server-copy {
  max-width: 780px;
}

.own-server-copy p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.own-server-copy h4 {
  margin: 20px 0 0;
  font-size: 17px;
}

.simple-list {
  margin: 18px 0 22px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.cta-glow {
  inset: auto auto -120px 50%;
  width: 340px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
}

.cta-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.cta-sub {
  max-width: 720px;
  margin: 12px auto 18px;
  font-size: 17px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  margin-top: 28px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.footer-row {
  margin-bottom: 10px;
}

.footer a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 700;
}

.dot {
  margin: 0 10px;
  color: #475569;
}

@media (max-width: 980px) {
  .plans-grid,
  .tariffs-grid,
  .features-grid,
  .setup-grid,
  .payment-grid,
  .locations-grid,
  .locations-page-grid,
  .locations-summary,
  .locations-summary-row,
  .price-grid,
  .pricing-grid,
  .loc-cards,
  .loc-summary-row,
  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-right {
    justify-content: stretch;
  }

  .nav-link,
  .nav-cta {
    text-align: center;
    flex: 1 1 auto;
  }

  .hero-screen {
    padding: 28px 20px;
  }

  .hero-title {
    font-size: 40px;
  }

  .showcase-image {
    height: 240px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 16px 12px 30px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-sub,
  .section-sub,
  .plan-copy p,
  .cta-sub {
    font-size: 16px;
  }

  h3 {
    font-size: 22px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .plan-visual {
    height: 156px;
  }
}
/* Web account cabinet */
.cabinet-shell {
  padding-bottom: 80px;
}

.cabinet-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 32px 0 22px;
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.16), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(34, 197, 94, 0.12), transparent 36%),
    rgba(15, 23, 42, 0.78);
}

.cabinet-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.cabinet-hero p:not(.eyebrow) {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 18px;
}

.cabinet-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: rgba(226, 232, 240, 0.76);
  font-size: 13px;
  font-weight: 900;
}

.status-pill.status-ok {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.cabinet-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.cabinet-grid {
  display: grid;
  gap: 22px;
}

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

.cabinet-panel {
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
}

.cabinet-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.cabinet-panel p {
  margin: 0;
  color: rgba(226, 232, 240, 0.76);
  line-height: 1.55;
}

.cabinet-muted {
  margin-bottom: 18px !important;
}

.trial-button {
  display: inline-flex;
  margin-top: 20px;
  text-decoration: none;
}

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

.cabinet-quick a {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  color: rgba(248, 250, 252, 0.92);
  font-weight: 900;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
}

.cabinet-panel table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.cabinet-panel th,
.cabinet-panel td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(226, 232, 240, 0.82);
  text-align: left;
}

.cabinet-panel th {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

/* Account cabinet v2 */
.account-shell {
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
  padding-bottom: 72px;
}

.account-shell .top-nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.account-shell .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.account-shell .brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f8fafc;
  color: #07111f;
  font-size: 12px;
  font-weight: 900;
}

.account-shell .nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-shell .nav-links > a {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.account-logout {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.account-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 18px;
}

.account-header h1 {
  margin: 5px 0 0;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.account-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  background: #101c2d;
}

.account-access.is-empty {
  border-color: rgba(148, 163, 184, 0.22);
}

.account-access-title {
  display: grid;
  gap: 6px;
}

.access-state {
  color: #4ade80;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-access.is-empty .access-state {
  color: #94a3b8;
}

.account-access h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.access-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 22px 0 0;
}

.access-facts div {
  display: grid;
  gap: 3px;
}

.access-facts dt {
  color: #94a3b8;
  font-size: 12px;
}

.access-facts dd {
  margin: 0;
  color: #f8fafc;
  font-size: 17px;
  font-weight: 900;
}

.access-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.access-methods span {
  padding: 6px 9px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.08);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 800;
}

.account-access-actions {
  display: grid;
  gap: 10px;
}

.account-connect,
.account-access-actions .small-button {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
}

.account-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 34px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
}

.account-shortcuts a {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 16px;
  background: #0d1727;
  color: #f8fafc;
  text-decoration: none;
}

.account-shortcuts strong {
  font-size: 14px;
}

.account-shortcuts span {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
}

.account-section {
  margin-top: 34px;
}

.account-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.account-section-head h2,
.account-telegram h2 {
  margin: 4px 0 0;
  font-size: 24px;
  letter-spacing: 0;
}

.account-section-head > a {
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.account-list {
  display: grid;
  gap: 8px;
}

.account-list-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: #0d1727;
}

.account-list-item.is-active {
  border-left: 3px solid #22c55e;
}

.account-list-main,
.account-list-side {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.account-list-main > span,
.account-list-main small,
.account-list-side > span {
  color: #94a3b8;
  font-size: 12px;
}

.account-list-main strong {
  overflow-wrap: anywhere;
}

.account-list-side {
  flex: 0 0 auto;
  justify-items: end;
  text-align: right;
}

.account-list-side a {
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.account-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #7dd3fc;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.account-empty {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: #f8fafc;
}

.account-empty span {
  color: #94a3b8;
  font-size: 13px;
}

.account-telegram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 24px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.account-telegram p:not(.eyebrow) {
  margin: 8px 0 0;
  color: #94a3b8;
  line-height: 1.5;
}

.account-linked {
  max-width: 340px;
  color: #86efac;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.copy-feedback {
  min-height: 20px;
  margin: 8px 0 0;
  color: #facc15;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 760px) {
  .account-shell .top-nav {
    align-items: center;
  }

  .account-shell .nav-links > a {
    display: none;
  }

  .account-shell .nav-links {
    gap: 10px;
  }

  .account-header {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 24px;
  }

  .account-header h1 {
    font-size: 28px;
  }

  .account-access {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px 16px;
  }

  .account-access h2 {
    font-size: 25px;
  }

  .access-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .account-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-list-item {
    align-items: flex-start;
    padding: 14px;
  }

  .account-list-side {
    max-width: 42%;
  }

  .account-telegram {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-linked {
    text-align: left;
  }

  .copy-feedback {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .access-facts dt,
  .account-shortcuts span {
    font-size: 11px;
  }

  .access-facts dd {
    font-size: 15px;
  }

  .account-list-item {
    gap: 10px;
  }
}

.instruction-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}

.instruction-tab {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 251, 255, 0.82);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.instruction-tab.active {
  background: #fff;
  color: #020617;
}

.instruction-panel {
  display: none;
  padding: 30px;
  border-radius: 28px;
}

.instruction-panel.active {
  display: block;
}

.instruction-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.instruction-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 0.98;
}

.instruction-head p {
  max-width: 720px;
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.instruction-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.instruction-steps {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: setup-step;
}

.instruction-steps li {
  position: relative;
  min-height: 54px;
  padding: 15px 16px 15px 58px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(2, 8, 23, 0.35);
  color: rgba(248, 251, 255, 0.9);
  line-height: 1.45;
}

.instruction-steps li::before {
  counter-increment: setup-step;
  content: counter(setup-step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  font-weight: 900;
}

.instruction-note {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 18px;
  background: rgba(34, 197, 94, 0.08);
  color: rgba(220, 252, 231, 0.92);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .cabinet-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }

  .cabinet-hero-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .cabinet-dashboard {
    grid-template-columns: 1fr;
  }

  .cabinet-quick {
    grid-template-columns: 1fr;
  }

  .instruction-head {
    grid-template-columns: 1fr;
  }

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

  .instruction-panel {
    padding: 22px 16px;
  }
}

@media (max-width: 860px) {
  .sub-status-grid,
  .setup-steps {
    grid-template-columns: 1fr;
  }

  .sub-hero,
  .sub-section {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .sub-url-box {
    grid-template-columns: 1fr;
  }

  .platform-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-tab {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .sub-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .platform-tabs {
    grid-template-columns: 1fr;
  }

  .sub-title {
    font-size: 32px;
  }
}
