:root {
  --bg: #020817;
  --bg-soft: #071124;
  --panel: rgba(9, 20, 46, 0.68);
  --panel-strong: rgba(8, 17, 39, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(72, 255, 154, 0.24);
  --text: #ecf4ff;
  --muted: #9fb0ca;
  --soft: #6b7a95;
  --green: #28e07b;
  --green-2: #13c764;
  --green-dark: rgba(19, 199, 100, 0.14);
  --accent: #1f6fff;
  --danger: #ff6b6b;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --blur: blur(16px);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(31, 111, 255, 0.14), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(40, 224, 123, 0.11), transparent 25%),
    radial-gradient(circle at 50% 85%, rgba(31, 111, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #030816 0%, #020817 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

#stars-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  padding: 6px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.brand-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title strong { font-size: 18px; }
.brand-title span { font-size: 13px; color: var(--muted); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-btn,
.primary-btn,
.secondary-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  transition: .25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
}

.ghost-btn {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: var(--text);
}
.ghost-btn:hover { background: rgba(255,255,255,0.08); }

.primary-btn {
  background: linear-gradient(180deg, var(--green), var(--green-2));
  color: rgba(6, 24, 14, 0.84);
  box-shadow: 0 16px 34px rgba(19, 199, 100, 0.25);
}
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.primary-btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.secondary-btn {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.09);
  color: var(--text);
}
.secondary-btn:hover { background: rgba(255,255,255,0.09); }

.hero {
  text-align: center;
  margin: 0 auto 22px;
  max-width: 980px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 auto;
  max-width: 920px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero p {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.service-line {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.service-pill {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  color: #dfeaff;
  font-size: 14px;
}

.discount-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(40, 224, 123, 0.28);
  background: linear-gradient(180deg, rgba(12, 37, 24, 0.82), rgba(5, 17, 27, 0.88));
  box-shadow: var(--shadow);
  margin: 28px auto 32px;
}
.discount-banner.active { display: flex; }
.discount-left { display: flex; align-items: center; gap: 16px; }
.discount-tag {
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green), var(--green-2));
  color: rgba(6, 24, 14, 0.82);
  font-weight: 800;
}
.discount-text { color: var(--text); }
.discount-timer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.time-box {
  width: 74px;
  border-radius: 18px;
  background: rgba(12, 21, 42, 0.86);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 6px;
  text-align: center;
}
.time-box strong { display: block; font-size: 26px; }
.time-box span { color: var(--soft); font-size: 12px; }

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card-inner { padding: 22px; }

.section-label {
  display: block;
  margin-bottom: 14px;
  color: #cad6ea;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.period-grid,
.method-list,
.tariff-grid,
.oauth-grid,
.info-grid,
.faq-list {
  display: grid;
  gap: 12px;
}

.period-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.tariff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oauth-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.select-chip,
.method-card,
.tariff-card,
.oauth-card,
.info-card,
.status-card,
.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  transition: .22s ease;
}

.select-chip {
  padding: 13px 14px;
  color: var(--text);
  text-align: center;
  font-weight: 700;
}
.select-chip:hover,
.method-card:hover,
.tariff-card:hover,
.oauth-card:hover,
.info-card:hover,
.faq-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}
.select-chip.active,
.method-card.active,
.tariff-card.active {
  border-color: rgba(40, 224, 123, 0.42);
  background: linear-gradient(180deg, rgba(22, 68, 42, 0.36), rgba(5, 17, 27, 0.52));
  box-shadow: 0 0 0 1px rgba(40, 224, 123, 0.1) inset;
}

.toggle {
  display: inline-grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}
.toggle button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.toggle button.active {
  color: var(--text);
  background: rgba(255,255,255,0.1);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field label {
  font-size: 14px;
  color: #d9e4f7;
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(4, 12, 28, 0.68);
  padding: 16px 18px;
  color: var(--text);
  outline: none;
  transition: .2s ease;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: rgba(40, 224, 123, 0.35); box-shadow: 0 0 0 3px rgba(40,224,123,0.11); }
.field small { color: var(--soft); line-height: 1.5; }
.field-error { color: #ff9b9b; font-size: 13px; min-height: 18px; }

.tariff-card,
.method-card,
.oauth-card,
.info-card,
.status-card,
.faq-item {
  padding: 18px;
}
.tariff-card-head,
.method-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tariff-title { font-size: 18px; line-height: 1.25; margin: 0; }
.tariff-desc,
.method-desc,
.muted-text { color: var(--muted); line-height: 1.55; }
.tariff-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  color: #d3def1;
  font-size: 14px;
}
.tariff-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  font-weight: 800;
  flex-wrap: wrap;
}
.tariff-price .now { color: var(--green); font-size: 26px; }
.tariff-price .old { color: #7b8ca8; text-decoration: line-through; }
.discount-chip {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(40, 224, 123, 0.15);
  color: #84ffbf;
  font-size: 12px;
  font-weight: 800;
}
.checkmark {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: rgba(255,255,255,0.04);
}
.active .checkmark {
  color: rgba(6, 24, 14, 0.82);
  background: linear-gradient(180deg, var(--green), var(--green-2));
  border-color: transparent;
}
.method-suboptions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.suboption {
  border-radius: 999px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
.suboption.active { color: var(--text); border-color: rgba(40,224,123,0.38); background: rgba(40,224,123,0.09); }

.summary-card {
  padding: 22px;
  position: sticky;
  top: 16px;
}
.summary-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.summary-title { font-size: 14px; color: var(--soft); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.summary-plan { margin-top: 8px; font-size: 18px; line-height: 1.25; font-weight: 800; }
.summary-period { margin-top: 8px; color: var(--muted); }
.summary-price {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.summary-price .label { color: var(--soft); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.summary-price-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.summary-price-main strong { font-size: 32px; color: var(--green); }
.summary-features { margin: 18px 0 0; display: grid; gap: 12px; }
.summary-feature {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}
.summary-feature .icon {
  width: 24px; height: 24px; border-radius: 999px; background: rgba(40,224,123,0.14);
  display:flex; align-items:center; justify-content:center; color:#7affb0; font-size:13px;
}
.summary-actions { display: grid; gap: 12px; margin-top: 28px; }
.summary-note { margin-top: 16px; color: var(--soft); font-size: 12px; line-height: 1.5; }
.inline-link { color: #8dc5ff; }
.inline-link:hover { text-decoration: underline; }

.block-spacer { height: 20px; }

.info-section { margin-top: 34px; display: grid; gap: 24px; }
.info-card h3, .faq-item h3, .oauth-card h3, .status-card h3 { margin: 0 0 10px; font-size: 19px; }
.info-card p, .faq-item p, .oauth-card p, .status-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.oauth-card .provider-tag { color: #dce9ff; font-weight: 800; display: inline-block; margin-bottom: 10px; }
.section-block { margin-top: 34px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
.section-heading p { margin: 10px 0 0; color: var(--muted); max-width: 760px; line-height: 1.6; }

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

.footer {
  margin-top: 46px;
  padding: 24px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--soft);
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

.hidden { display: none !important; }
.notice,
.error-banner,
.success-banner {
  border-radius: 16px;
  padding: 14px 16px;
  line-height: 1.55;
}
.notice { background: rgba(31,111,255,0.12); border: 1px solid rgba(31,111,255,0.25); color: #cfe2ff; }
.error-banner { background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255,107,107,0.25); color: #ffb3b3; }
.success-banner { background: rgba(40,224,123,0.12); border: 1px solid rgba(40,224,123,0.25); color: #b7ffd3; }

.loading {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.9);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-layout {
  display: grid;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
}
.status-card code {
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.status-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.copy-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.copy-btn:hover { background: rgba(255,255,255,0.12); }
.status-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.status-kicker { color: #7affb0; font-weight: 800; margin-bottom: 12px; }
.small { font-size: 14px; }
.centered { text-align: center; }

@media (max-width: 1120px) {
  .checkout-shell { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 760px) {
  .page {
    width: min(calc(100% - 20px), var(--max));
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
  }

  .brand {
    justify-content: center;
    gap: 10px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-title strong {
    font-size: 17px;
  }

  .brand-title span {
    font-size: 12px;
  }

  .topbar-actions {
    justify-content: center;
    gap: 10px;
  }

  .ghost-btn,
  .primary-btn,
  .secondary-btn {
    padding: 12px 16px;
  }

  .hero {
    margin-bottom: 18px;
  }

  .hero-badge {
    font-size: 13px;
    padding: 9px 14px;
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.03;
    max-width: 100%;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.5;
    max-width: 100%;
    margin-top: 14px;
  }

  .service-line {
    gap: 8px;
    margin-top: 16px;
  }

  .service-pill {
    padding: 8px 12px;
    font-size: 13px;
  }

  .discount-banner.active {
    flex-direction: column;
    align-items: stretch;
    margin: 22px auto 24px;
    padding: 14px;
  }

  .discount-left {
    align-items: flex-start;
    gap: 12px;
  }

  .discount-timer {
    justify-content: flex-start;
    gap: 8px;
  }

  .time-box {
    width: 58px;
    border-radius: 14px;
    padding: 8px 4px;
  }

  .time-box strong {
    font-size: 21px;
  }

  .card-inner,
  .summary-card {
    padding: 16px;
  }

  .tariff-grid,
  .info-grid,
  .faq-list,
  .oauth-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .period-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .select-chip {
    padding: 12px 10px;
    font-size: 14px;
  }

  .tariff-title {
    font-size: 17px;
  }

  .tariff-price .now {
    font-size: 24px;
  }

  .summary-plan {
    font-size: 17px;
  }

  .summary-price-main strong {
    font-size: 28px;
  }

  .summary-actions {
    margin-top: 20px;
  }

  .section-block {
    margin-top: 28px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading p,
  .info-card p,
  .faq-item p,
  .oauth-card p,
  .status-card p,
  .muted-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .footer {
    margin-top: 30px;
    padding-top: 18px;
    font-size: 13px;
    justify-content: center;
    text-align: center;
  }
}


.tariff-card,
.method-card {
  min-height: 100%;
}

.tariff-grid {
  align-items: stretch;
}

.summary-card::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  opacity: 0.45;
}

@media (max-width: 900px) {
  .hero h1 {
    max-width: 700px;
    font-size: clamp(30px, 8vw, 50px);
  }

  .hero p {
    font-size: 16px;
    max-width: 620px;
  }

  .checkout-shell {
    gap: 16px;
  }
}

/* ===== v3 refinements ===== */
.hero h1 {
  max-width: 980px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.04;
}

.service-line {
  gap: 12px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.service-pill img {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  object-fit: cover;
}

.discount-banner {
  padding: 18px 20px;
  background:
    radial-gradient(circle at 18% 50%, rgba(40,224,123,0.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05);
}

.discount-banner.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.discount-left {
  min-width: 0;
}

.discount-tag {
  box-shadow: 0 10px 24px rgba(19,199,100,0.22);
  font-size: 15px;
}

.discount-text {
  font-size: 16px;
  color: #eff6ff;
  letter-spacing: -0.01em;
}

.discount-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.time-box {
  width: 68px;
  min-width: 68px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(12,21,42,0.92), rgba(7,15,34,0.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.time-box strong {
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}

.time-box span {
  margin-top: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.time-separator {
  color: rgba(255,255,255,0.54);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  transform: translateY(-8px);
}

.card {
  background: linear-gradient(180deg, rgba(12,21,48,0.64), rgba(6,14,31,0.62));
}

.card-inner {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border-radius: inherit;
}

.field-accent {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(40,224,123,0.2);
  background: linear-gradient(180deg, rgba(40,224,123,0.08), rgba(255,255,255,0.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.field-accent label {
  color: #ecfff5;
  font-weight: 700;
}

.field-accent input {
  background: rgba(4, 12, 28, 0.82);
  border-color: rgba(40,224,123,0.25);
}

.method-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}

.method-card.active,
.tariff-card.active {
  background: linear-gradient(180deg, rgba(17, 68, 44, 0.28), rgba(6,18,34,0.48));
}

.checkmark {
  border: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
}

.active .checkmark,
.method-card .checkmark.active {
  opacity: 1;
  color: rgba(6, 24, 14, 0.82);
  background: linear-gradient(180deg, var(--green), var(--green-2));
  box-shadow: 0 0 0 1px rgba(40,224,123,0.18);
}

.oauth-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
}

.oauth-card h3 {
  font-size: 17px;
}

.proxy-card {
  margin-top: 14px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(40,224,123,0.28);
  background:
    radial-gradient(circle at 12% 20%, rgba(40,224,123,0.14), transparent 24%),
    linear-gradient(180deg, rgba(18,36,67,0.56), rgba(8,16,34,0.72));
  box-shadow: 0 16px 44px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}

.proxy-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(40,224,123,0.14);
  color: #9affc7;
  border: 1px solid rgba(40,224,123,0.22);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.proxy-copy {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.proxy-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.proxy-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
}

.proxy-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3ddf86, #1dc86a);
  color: rgba(6, 24, 14, 0.84);
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(19, 199, 100, 0.24);
}

.proxy-link-row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.proxy-link-row code {
  flex: 1 1 520px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px 14px;
}

.summary-feature strong {
  display: block;
  margin-bottom: 4px;
}

.summary-note {
  margin-top: 18px;
}

@media (max-width: 1120px) {
  .proxy-copy {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .service-pill {
    gap: 8px;
    padding: 8px 12px;
  }

  .service-pill img {
    width: 16px;
    height: 16px;
  }

  .discount-banner.active {
    grid-template-columns: 1fr;
  }

  .discount-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .discount-text {
    font-size: 14px;
    line-height: 1.45;
  }

  .discount-timer {
    width: 100%;
    gap: 6px;
    justify-content: flex-start;
  }

  .time-box {
    width: 54px;
    min-width: 54px;
    height: 66px;
  }

  .time-box strong {
    font-size: 24px;
  }

  .time-separator {
    font-size: 22px;
    transform: translateY(-6px);
  }

  .field-accent {
    padding: 12px;
  }

  .proxy-card {
    padding: 16px;
  }

  .proxy-title {
    font-size: 19px;
  }

  .proxy-button {
    width: 100%;
  }

  .proxy-link-row {
    align-items: stretch;
  }

  .proxy-link-row code,
  .proxy-link-row .copy-btn {
    width: 100%;
    flex: 1 1 100%;
  }
}


/* ===== v4 mobile flow + performance ===== */
.summary-email {
  margin-top: 18px;
}

.benefit-grid .oauth-card {
  min-height: 100%;
}

.proxy-card-wide {
  margin-top: 0;
}

@media (max-width: 760px) {
  #stars-canvas {
    display: none;
  }

  .card,
  .discount-banner,
  .proxy-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .page {
    width: min(calc(100% - 16px), var(--max));
  }

  .service-line {
    justify-content: center;
  }

  .discount-banner {
    padding: 16px 14px;
  }

  .discount-banner.active {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .discount-left {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .discount-text {
    text-align: center;
  }

  .discount-timer {
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 2px auto 0;
  }

  .checkout-shell {
    gap: 14px;
  }

  .summary-card {
    order: 2;
  }

  .section-block {
    margin-top: 22px;
  }

  .proxy-card,
  .oauth-card,
  .info-card,
  .faq-item {
    border-radius: 18px;
  }
}

/* ===== v5 content + layout refinements ===== */
html {
  scroll-behavior: smooth;
}

.header-proxy-btn {
  box-shadow: 0 16px 34px rgba(19, 199, 100, 0.22);
}

.service-pill img {
  background: rgba(255,255,255,0.04);
}

.summary-card .checkmark,
.summary-features {
  display: none !important;
}

.summary-email {
  margin-top: 18px;
}

.liquid-card {
  background:
    radial-gradient(circle at 12% 20%, rgba(40,224,123,0.10), transparent 24%),
    linear-gradient(180deg, rgba(18,36,67,0.52), rgba(8,16,34,0.68));
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 44px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}

.liquid-card .card-inner {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.006));
}

.proxy-card-head,
.group-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.telegram-group-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

.group-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 12% 20%, rgba(54, 163, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(18,36,67,0.58), rgba(8,16,34,0.74));
  box-shadow: 0 16px 44px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}

.group-kicker {
  color: #8fd0ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.group-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.group-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 760px;
}

.group-btn {
  margin-top: 18px;
}

.faq-item p,
.info-card p {
  line-height: 1.65;
}

@media (max-width: 760px) {
  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .topbar-actions a {
    width: 100%;
  }

  .proxy-card-head,
  .group-card-head {
    align-items: flex-start;
  }

  .telegram-group-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .group-card {
    padding: 18px;
    border-radius: 20px;
  }

  .group-btn {
    width: 100%;
  }
}


/* ===== v6 polish ===== */
.discount-tag,
.primary-btn,
.proxy-button {
  color: rgba(6, 24, 14, 0.84);
  text-shadow: 0 1px 0 rgba(255,255,255,0.18);
}

.discount-banner {
  background:
    radial-gradient(circle at 12% 20%, rgba(40,224,123,0.12), transparent 24%),
    linear-gradient(180deg, rgba(18,36,67,0.56), rgba(8,16,34,0.72));
}

.discount-text {
  color: rgba(233,241,255,0.94);
}

.proxy-card-head {
  justify-content: flex-start;
  align-items: flex-start;
}

.proxy-card {
  margin-top: 0;
}

.proxy-badge {
  margin-bottom: 14px;
}

.proxy-title {
  max-width: 760px;
  line-height: 1.18;
}

.group-card-head {
  justify-content: flex-start;
  align-items: center;
}

.group-card-head > div {
  flex: 1 1 auto;
}

.group-card {
  padding: 22px 24px;
}

@media (max-width: 760px) {
  .proxy-card-head {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .proxy-badge {
    margin-bottom: 12px;
  }

  .discount-left {
    align-items: center;
  }

  .discount-timer {
    width: auto;
    max-width: 100%;
    justify-content: center;
    margin: 2px auto 0;
  }

  .group-card-head {
    align-items: center;
  }

  .group-card p {
    margin-left: 0;
  }
}
