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

:root {
  /* Nebula: глубокий космос + маджента/пурпур + cyan-ядро */
  --bg-top: #050214;
  --bg-mid: #14081f;
  --bg-bottom: #02010a;
  --panel: rgba(12, 8, 28, 0.74);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #f8fbff;
  --muted: #d4d4e8;
  --accent: #22c55e;
  --blue: #3de8ff;
  --deep-blue: #7c5cff;
  --magenta: #e879f9;
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    /* cyan / electric blue — яркое ядро */
    radial-gradient(ellipse 55% 42% at 48% 38%, rgba(61, 232, 255, 0.28), transparent 58%),
    radial-gradient(ellipse 38% 30% at 52% 42%, rgba(125, 211, 252, 0.2), transparent 52%),
    /* маджента / пурпур — облака туманности */
    radial-gradient(ellipse 70% 55% at 62% 48%, rgba(232, 121, 249, 0.26), transparent 62%),
    radial-gradient(ellipse 55% 48% at 28% 58%, rgba(168, 85, 247, 0.22), transparent 58%),
    radial-gradient(circle at 82% 16%, rgba(236, 72, 153, 0.16), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(99, 102, 241, 0.14), transparent 30%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(88, 28, 135, 0.22), transparent 55%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 48%, 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(1.5px 1.5px at 8px 14px, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1px 1px at 28px 52px, rgba(255, 255, 255, 0.78), transparent),
    radial-gradient(2px 2px at 54px 28px, rgba(220, 245, 255, 0.92), transparent),
    radial-gradient(1px 1px at 78px 88px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 104px 40px, rgba(255, 230, 255, 0.88), transparent),
    radial-gradient(1px 1px at 132px 110px, rgba(255, 255, 255, 0.68), transparent),
    radial-gradient(2px 2px at 158px 66px, rgba(200, 240, 255, 0.9), transparent),
    radial-gradient(1px 1px at 182px 18px, rgba(255, 255, 255, 0.72), transparent),
    radial-gradient(1.5px 1.5px at 208px 98px, rgba(255, 255, 255, 0.82), transparent),
    radial-gradient(1px 1px at 236px 48px, rgba(255, 220, 250, 0.78), transparent),
    radial-gradient(2px 2px at 20px 124px, rgba(255, 255, 255, 0.58), transparent),
    radial-gradient(1px 1px at 118px 138px, rgba(255, 255, 255, 0.62), transparent),
    radial-gradient(1px 1px at 46px 152px, rgba(200, 230, 255, 0.72), transparent),
    radial-gradient(1.5px 1.5px at 196px 146px, rgba(255, 255, 255, 0.78), transparent),
    radial-gradient(1px 1px at 92px 6px, rgba(255, 255, 255, 0.58), transparent),
    radial-gradient(1px 1px at 170px 122px, rgba(255, 240, 255, 0.55), transparent),
    radial-gradient(1px 1px at 14px 74px, rgba(230, 245, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 66px 108px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 148px 34px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 220px 132px, rgba(210, 235, 255, 0.75), transparent),
    radial-gradient(1px 1px at 38px 22px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 188px 78px, rgba(255, 230, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 112px 58px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 246px 16px, rgba(200, 240, 255, 0.7), transparent);
  background-size:
    170px 110px, 170px 110px, 170px 110px, 170px 110px,
    170px 110px, 170px 110px, 170px 110px, 170px 110px,
    170px 110px, 170px 110px, 170px 110px, 170px 110px,
    120px 80px, 120px 80px, 120px 80px, 120px 80px,
    120px 80px, 120px 80px, 120px 80px, 120px 80px,
    210px 140px, 210px 140px, 210px 140px, 210px 140px;
  opacity: 0.95;
}

/* Второй сдвигнутый слой — заметно плотнее «космос» */
.space-stars::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 16px 30px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 44px 70px, rgba(230, 245, 255, 0.8), transparent),
    radial-gradient(1px 1px at 72px 12px, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 98px 96px, rgba(255, 230, 255, 0.7), transparent),
    radial-gradient(2px 2px at 124px 48px, rgba(200, 240, 255, 0.75), transparent),
    radial-gradient(1px 1px at 150px 18px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 18px 88px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 86px 56px, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 138px 104px, rgba(220, 240, 255, 0.65), transparent),
    radial-gradient(1px 1px at 60px 40px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 110px 8px, rgba(255, 240, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 34px 108px, rgba(255, 255, 255, 0.7), transparent);
  background-size:
    155px 115px, 155px 115px, 155px 115px, 155px 115px,
    155px 115px, 155px 115px, 100px 70px, 100px 70px,
    100px 70px, 100px 70px, 190px 130px, 190px 130px;
  transform: translate(9px, 7px);
  opacity: 0.85;
  pointer-events: none;
}

.falling-star {
  position: absolute;
  width: 120px;
  height: 2px;
  /* Хвост слева, голова справа — после rotate(~50°) летит top-left → bottom-right */
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(190, 240, 255, 0.55) 55%,
    rgba(255, 255, 255, 0.98)
  );
  border-radius: 999px;
  opacity: 0;
  transform: rotate(50deg);
  animation: meteor-fall 7.5s linear infinite;
  box-shadow: 0 0 8px rgba(61, 232, 255, 0.35);
}

.falling-star:nth-child(1) {
  top: -8%;
  left: -4%;
  animation-duration: 6.2s;
  animation-delay: 0s;
}
.falling-star:nth-child(2) {
  top: -12%;
  left: 12%;
  width: 100px;
  animation-duration: 7.8s;
  animation-delay: 1.4s;
}
.falling-star:nth-child(3) {
  top: -6%;
  left: 28%;
  width: 140px;
  animation-duration: 5.6s;
  animation-delay: 2.8s;
}
.falling-star:nth-child(4) {
  top: -14%;
  left: 44%;
  width: 90px;
  animation-duration: 8.4s;
  animation-delay: 0.7s;
}
.falling-star:nth-child(5) {
  top: -10%;
  left: 2%;
  width: 110px;
  animation-duration: 6.8s;
  animation-delay: 4.2s;
}
.falling-star:nth-child(6) {
  top: -16%;
  left: 20%;
  width: 130px;
  animation-duration: 7.2s;
  animation-delay: 5.5s;
}
.falling-star:nth-child(7) {
  top: -5%;
  left: 36%;
  width: 95px;
  animation-duration: 5.9s;
  animation-delay: 3.3s;
}
.falling-star:nth-child(8) {
  top: -18%;
  left: 52%;
  width: 115px;
  animation-duration: 8s;
  animation-delay: 1.9s;
}
.falling-star:nth-child(9) {
  top: -9%;
  left: 8%;
  width: 105px;
  animation-duration: 6.5s;
  animation-delay: 6.1s;
}
.falling-star:nth-child(10) {
  top: -11%;
  left: -8%;
  width: 125px;
  animation-duration: 7.1s;
  animation-delay: 4.8s;
}

/* Падение сверху вниз + дрейф слева направо: вектор (+X, +Y) */
@keyframes meteor-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(50deg);
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  55% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(42vw, 120vh, 0) rotate(50deg);
    opacity: 0;
  }
}

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

.twinkle-star:nth-child(1) { top: 8%; left: 12%; animation-delay: 0.2s; }
.twinkle-star:nth-child(2) { top: 14%; left: 68%; width: 4px; height: 4px; animation-delay: 0.8s; }
.twinkle-star:nth-child(3) { top: 22%; left: 38%; animation-delay: 1.4s; }
.twinkle-star:nth-child(4) { top: 28%; left: 88%; animation-delay: 0.4s; }
.twinkle-star:nth-child(5) { top: 36%; left: 22%; width: 4px; height: 4px; animation-delay: 1.1s; }
.twinkle-star:nth-child(6) { top: 42%; left: 58%; animation-delay: 1.8s; }
.twinkle-star:nth-child(7) { top: 48%; left: 8%; animation-delay: 0.6s; }
.twinkle-star:nth-child(8) { top: 54%; left: 78%; width: 4px; height: 4px; animation-delay: 2.1s; }
.twinkle-star:nth-child(9) { top: 62%; left: 44%; animation-delay: 0.9s; }
.twinkle-star:nth-child(10) { top: 68%; left: 92%; animation-delay: 1.6s; }
.twinkle-star:nth-child(11) { top: 74%; left: 18%; animation-delay: 2.4s; }
.twinkle-star:nth-child(12) { top: 82%; left: 62%; width: 4px; height: 4px; animation-delay: 0.3s; }
.twinkle-star:nth-child(13) { top: 88%; left: 32%; animation-delay: 1.3s; }
.twinkle-star:nth-child(14) { top: 18%; left: 50%; animation-delay: 2s; }
.twinkle-star:nth-child(15) { top: 58%; left: 30%; animation-delay: 0.5s; }
.twinkle-star:nth-child(16) { top: 34%; left: 72%; animation-delay: 1.7s; }
.twinkle-star:nth-child(17) { top: 5%; left: 42%; width: 4px; height: 4px; animation-delay: 0.35s; }
.twinkle-star:nth-child(18) { top: 11%; left: 84%; animation-delay: 1.05s; }
.twinkle-star:nth-child(19) { top: 16%; left: 6%; animation-delay: 1.9s; }
.twinkle-star:nth-child(20) { top: 25%; left: 26%; width: 4px; height: 4px; animation-delay: 0.65s; }
.twinkle-star:nth-child(21) { top: 31%; left: 96%; animation-delay: 2.2s; }
.twinkle-star:nth-child(22) { top: 39%; left: 48%; animation-delay: 0.15s; }
.twinkle-star:nth-child(23) { top: 45%; left: 16%; width: 4px; height: 4px; animation-delay: 1.55s; }
.twinkle-star:nth-child(24) { top: 51%; left: 64%; animation-delay: 2.45s; }
.twinkle-star:nth-child(25) { top: 57%; left: 86%; animation-delay: 0.95s; }
.twinkle-star:nth-child(26) { top: 65%; left: 4%; width: 4px; height: 4px; animation-delay: 1.75s; }
.twinkle-star:nth-child(27) { top: 71%; left: 54%; animation-delay: 0.45s; }
.twinkle-star:nth-child(28) { top: 77%; left: 36%; animation-delay: 2.05s; }
.twinkle-star:nth-child(29) { top: 84%; left: 76%; width: 4px; height: 4px; animation-delay: 1.25s; }
.twinkle-star:nth-child(30) { top: 91%; left: 14%; animation-delay: 0.75s; }
.twinkle-star:nth-child(31) { top: 9%; left: 56%; animation-delay: 2.3s; }
.twinkle-star:nth-child(32) { top: 47%; left: 94%; width: 4px; height: 4px; animation-delay: 1.35s; }
.twinkle-star:nth-child(33) { top: 69%; left: 40%; animation-delay: 0.25s; }
.twinkle-star:nth-child(34) { top: 20%; left: 78%; animation-delay: 1.85s; }
.twinkle-star:nth-child(35) { top: 86%; left: 52%; width: 4px; height: 4px; animation-delay: 0.55s; }
.twinkle-star:nth-child(36) { top: 3%; left: 24%; animation-delay: 2.15s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.35); }
}

.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: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  /* Поднимаем навбар над 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;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.32);
}

.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.nav-tg-proxy {
  cursor: pointer;
  background: linear-gradient(135deg, #facc15, #eab308);
  border: none;
  color: #0f172a;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.35);
}

.nav-link.nav-tg-proxy:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.nav-link.nav-login {
  background: linear-gradient(135deg, #44d0ff, #2b57ff);
  border: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(43, 87, 255, 0.32);
}

.nav-link.nav-login:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.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(61, 232, 255, 0.2), rgba(232, 121, 249, 0.1)),
    rgba(12, 8, 28, 0.72);
}

.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(232, 121, 249, 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 {
  margin-top: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
  overflow: visible;
}

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

.showcase-image {
  height: 340px;
  background: transparent;
  border-radius: 0;
  /* fade краёв в прозрачность — нет чужого прямоугольника */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  /* тёмные пиксели фона арта мягко сливаются с body-космосом */
  mix-blend-mode: lighten;
}

.showcase-joke {
  margin: 10px 4px 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(180, 230, 255, 0.78);
  font-style: italic;
}

.changelog {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.changelog-release {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(160, 199, 255, 0.12);
}

.changelog-release:last-child {
  border-bottom: none;
}

.changelog-version {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.changelog-date {
  margin-left: 10px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(180, 230, 255, 0.72);
}

.changelog-list {
  margin: 0;
  padding-left: 1.15em;
  color: var(--muted);
  line-height: 1.55;
  font-size: 16px;
}

.changelog-list li {
  margin: 0 0 8px;
}

.changelog-list li:last-child {
  margin-bottom: 0;
}

.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-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-layout,
.loc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1100px;
  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,
.location-flag {
  display: block;
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
  background: #14101f;
  isolation: isolate;
  /* outline поверх ::before — гасит AA-кромку (inset shadow уходит под слой флага) */
  box-shadow: none;
  outline: 2px solid #1a1628;
  outline-offset: -2px;
}

.loc-flag {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  clip-path: inset(0 round 9px);
  font-size: 22px;
  line-height: 1;
}

.location-flag {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  font-size: 24px;
}

.locations-catalog-grid .location-flag {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  clip-path: inset(0 round 9px);
  font-size: 22px;
}

/* слой флага: inset -20% ≈ scale 1.4 без transform (clip надёжнее) */
.loc-flag::before,
.location-flag::before {
  content: "";
  position: absolute;
  inset: -28%;
  z-index: 0;
  border-radius: 0;
}

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

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

.flag-fi::before {
  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::before {
  background: linear-gradient(to bottom, #9e1b34 0 40%, #fff 40% 60%, #9e1b34 60% 100%);
}

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

.flag-fr::before {
  background: linear-gradient(to right, #002395 0 33.33%, #fff 33.33% 66.66%, #ed2939 66.66% 100%);
}

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

.flag-us::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -2%;
  left: -2%;
  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: 1100px;
  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-cta {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

.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-layout,
  .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;
  }
}

/* Inline accent links inside section titles */
.inline-section-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(61, 232, 255, 0.45);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
  font-weight: inherit;
  padding: 0.05em 0.28em;
  margin: 0 -0.08em;
  border-radius: 0.4em;
  background: rgba(61, 232, 255, 0.08);
  transition: color 0.18s ease, background 0.18s ease, text-decoration-color 0.18s ease;
}

.inline-section-link:hover,
.inline-section-link:focus-visible {
  color: var(--accent);
  background: rgba(34, 197, 94, 0.14);
  text-decoration-color: rgba(34, 197, 94, 0.65);
  outline: none;
}
