/* ─── Google Fonts подключены в HTML ─── */

:root {
  --bg-primary:    #0a0e0a;
  --bg-secondary:  #0f1a0f;
  --accent-bright: #39ff14;
  --accent-dim:    #1f8a0b;
  --accent-glow:   rgba(57, 255, 20, 0.12);
  --text-primary:  #39ff14;
  --text-secondary:#6fcc4a;
  --text-muted:    #3a7a2c;
  --border:        #1f8a0b;
  --max-width:     1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ═══ TYPOGRAPHY ═══ */

h1, h2, h3, h4 {
  font-family: 'VT323', 'Courier New', monospace;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: 0.05em;
}

h1 { font-size: clamp(2.4rem, 8vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { color: var(--text-secondary); font-size: 0.9rem; }

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══ CURSOR BLINK ═══ */

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.cursor::after {
  content: '_';
  display: inline-block;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* ═══ LAYOUT ═══ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }

.divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin: 1rem 0;
  overflow: hidden;
}

/* ═══ BUTTONS ═══ */

.btn {
  display: inline-block;
  background: transparent;
  color: var(--accent-bright);
  border: 2px solid var(--accent-bright);
  padding: 10px 26px;
  font-family: 'VT323', monospace;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
  border-radius: 0;
  line-height: 1.4;
}
.btn:hover {
  background: var(--accent-bright);
  color: var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-bright), 0 0 25px rgba(57,255,20,0.4);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-bright);
  color: var(--bg-primary);
  font-weight: 700;
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright), 0 0 30px rgba(57,255,20,0.4);
}

.btn-sm { padding: 6px 14px; font-size: 1rem; }

/* ═══ HEADER ═══ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 10, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo img { height: 48px; width: auto; }

@media (min-width: 768px) {
  .logo img { height: 72px; }
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--accent-bright); text-decoration: none; }

.nav-bot-btn {
  color: var(--accent-bright) !important;
  border: 1px solid var(--accent-bright);
  padding: 4px 12px;
  font-size: 0.82rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav-bot-btn:hover {
  background: var(--accent-bright);
  color: var(--bg-primary) !important;
  box-shadow: 0 0 8px var(--accent-bright);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent-bright);
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══ HERO ═══ */

.hero {
  position: relative;
  width: 100%;
  height: 420px;
  background: #050a05;
  overflow: hidden;
}

.hero #stars-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero .city {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  pointer-events: none;
}

.hero .city-back {
  height: 60%;
  z-index: 2;
}

.hero .city-front {
  height: 50%;
  z-index: 3;
}

.hero-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
  padding-bottom: 80px;
}

.hero-title {
  font-family: 'VT323', monospace;
  font-size: 96px;
  color: #39ff14;
  letter-spacing: 12px;
  line-height: 1;
  text-shadow: 0 0 20px #39ff14, 0 0 40px #39ff1480;
  margin: 0;
}

.hero-title .cursor {
  animation: blink 0.9s step-end infinite;
}

.hero-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: #6fcc4a;
  letter-spacing: 6px;
  margin-top: 16px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  align-items: center;
}

.hero-btns .btn {
  font-family: 'VT323', monospace;
  font-size: 22px;
  padding: 12px 32px;
  letter-spacing: 2px;
  text-decoration: none;
  border: 2px solid #39ff14;
  transition: all 0.2s;
}

.hero-btns .btn-primary {
  background: #39ff14;
  color: #050a05;
}

.hero-btns .btn-primary:hover {
  background: #50ff30;
  box-shadow: 0 0 24px #39ff14;
  text-decoration: none;
}

.hero-btns .btn-secondary {
  background: transparent;
  color: #39ff14;
}

.hero-btns .btn-secondary:hover {
  background: #39ff1420;
  box-shadow: 0 0 16px #39ff1460;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero { height: 340px; }
  .hero-title { font-size: 56px; letter-spacing: 6px; }
  .hero-sub { font-size: 12px; letter-spacing: 2px; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .hero-btns .btn { font-size: 18px; padding: 10px 24px; }
}

@media (max-width: 420px) {
  .hero { height: 300px; }
  .hero-title { font-size: 42px; letter-spacing: 4px; }
  .hero-sub { font-size: 10px; letter-spacing: 1px; }
  .hero-content { padding-bottom: 50px; }
}

/* ═══ SECTION HEADER ═══ */

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); font-size: 0.85rem; }

/* ═══ FEATURES ═══ */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--accent-bright);
  box-shadow: 0 0 16px var(--accent-glow);
}
.feature-icon { width: 48px; height: 48px; display: block; margin: 0 auto 0.8rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ═══ PRICING ═══ */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  border-color: var(--accent-bright);
  box-shadow: 0 0 20px var(--accent-glow);
}
.pricing-card.featured {
  border-color: var(--accent-bright);
  box-shadow: 0 0 20px var(--accent-glow);
  background: #1a2f1a;
  padding-top: 2.5rem;
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-bright);
  color: var(--bg-primary);
  padding: 2px 14px;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.pricing-name {
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}
.pricing-days {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.pricing-usdt {
  font-family: 'VT323', monospace;
  font-size: 2.8rem;
  color: var(--accent-bright);
  line-height: 1;
  display: block;
}
.pricing-stars {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: block;
}

/* ═══ STEPS ═══ */

.steps-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.step {
  background: transparent;
  border: none;
  border-left: 2px solid var(--border);
  padding: 0.75rem 1.25rem;
  text-align: left;
  width: 100%;
  max-width: none;
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--accent-bright);
  display: block;
}
.step-num {
  font-family: 'VT323', monospace;
  font-size: 2rem;
  color: var(--accent-dim);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.step p { font-size: 0.78rem; color: var(--text-muted); }

.step-arrow { display: none; }

/* ═══ INSTRUCTIONS CTA ═══ */

.instr-cta {
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  max-width: 580px;
  margin: 0 auto;
}
.instr-cta h2 { margin-bottom: 0.75rem; }
.instr-cta p { margin-bottom: 1.5rem; }

/* ═══ FOOTER ═══ */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer-links a { color: var(--text-muted); font-size: 0.82rem; }
.footer-links a:hover { color: var(--accent-bright); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* ═══ PAGE HEADER (instructions / connect) ═══ */

.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.page-header h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
.page-header p { margin-top: 0.5rem; }

/* ═══ MODE SWITCHER ═══ */

.mode-switcher-wrap {
  margin-bottom: 2.5rem;
}
.mode-switcher {
  display: inline-flex;
  border: 1px solid var(--border);
  overflow: hidden;
}
.mode-btn {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
  white-space: nowrap;
}
.mode-btn:last-child { border-right: none; }
.mode-btn:hover { color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.mode-btn.active {
  color: var(--accent-bright);
  background: rgba(57, 255, 20, 0.08);
}
@media (max-width: 640px) {
  .mode-switcher { display: flex; flex-direction: column; width: 100%; }
  .mode-btn {
    border-right: none;
    border-bottom: 1px solid var(--border);
    white-space: normal;       /* длинная надпись переносится в 2 строки, а не обрезается */
    line-height: 1.3;
    padding: 12px 16px;
    text-align: center;
  }
  .mode-btn:last-child { border-bottom: none; }
}

.bypass-empty {
  color: var(--text-muted);
  font-style: italic;
  list-style: none;
  padding: 0.5rem 0;
}

/* ═══ TABS ═══ */

.tabs-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.tabs {
  display: flex;
  min-width: max-content;
  border-bottom: 2px solid var(--border);
}
.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--text-muted);
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  padding: 10px 22px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ═══ APP CARDS ═══ */

.apps-list { display: flex; flex-direction: column; gap: 0.875rem; }

.app-card {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  transition: border-color 0.2s;
}
.app-card:hover { border-color: var(--accent-dim); }
.app-card.open { border-color: var(--accent-bright); }

.app-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  cursor: pointer;
  user-select: none;
}
.app-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  display: block;
}
.app-name-wrap { flex: 1; min-width: 0; }
.app-name {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.badge-rec {
  background: var(--accent-bright);
  color: var(--bg-primary);
  font-size: 0.55rem;
  padding: 1px 6px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  line-height: 1.6;
  flex-shrink: 0;
}
.badge-rec--hidden {
  visibility: hidden;
}
.badge-note {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
}
.app-toggle {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.app-card.open .app-toggle { transform: rotate(180deg); }

.app-content {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1.125rem;
}
.app-card.open .app-content { display: block; }

/* Instructions steps */
.instr-steps { list-style: none; margin: 0.75rem 0 1rem; }
.instr-steps li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.step-n {
  color: var(--accent-dim);
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  flex-shrink: 0;
  min-width: 1.4rem;
  line-height: 1.5;
}
.download-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

/* Video instruction */
.app-video { margin-bottom: 1rem; }
.app-video-label {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: var(--accent-dim);
  margin-bottom: 0.4rem;
}
.app-video video {
  width: 100%;
  max-width: 380px;
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #000;
}

/* ═══ CONNECT PAGE ═══ */

.connect-main { padding: 2rem 0 4rem; }

.error-block {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--accent-dim);
  background: var(--bg-secondary);
  max-width: 480px;
  margin: 2rem auto;
}
.error-block h2 { color: var(--accent-dim); margin-bottom: 0.75rem; }
.error-block p { margin-bottom: 1.5rem; }

.qr-section {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}
.qr-section h3 { margin-bottom: 1rem; }
#qr-canvas { max-width: 180px; margin: 0 auto; display: block; }

.sub-url-display { margin: 1rem auto 0; max-width: 100%; }
.sub-url-display code {
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-all;
  display: block;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
}

.platform-section { margin-bottom: 2.5rem; }
.platform-title {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 0.875rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* Deeplink / copy blocks */
.connect-actions { display: flex; flex-direction: column; gap: 0.75rem; }

.deeplink-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 10px 20px;
  background: var(--accent-bright);
  color: var(--bg-primary);
  border: 2px solid var(--accent-bright);
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
  border-radius: 0;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.deeplink-btn:hover {
  background: transparent;
  color: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright), 0 0 24px rgba(57,255,20,0.35);
  text-decoration: none;
}

.copy-block {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 1rem;
}
.copy-block > p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.copy-url {
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-all;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  display: block;
  margin-bottom: 0.6rem;
}
.copy-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; }

.copied-msg {
  display: none;
  color: var(--accent-bright);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}
.copied-msg.show { display: block; }

/* ═══ SCROLLBAR ═══ */

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ═══ RESPONSIVE ═══ */

@media (max-width: 767px) {
  section { padding: 2.5rem 0; }
}

@media (min-width: 540px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 600px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  /* 4-я карточка (12 мес) висит одна во 2-м ряду — ставим в центральную колонку */
  .pricing-card.pricing-center { grid-column: 2 / 3; }
}

@media (min-width: 768px) {
  .hamburger { display: none !important; }
  nav { display: flex !important; }

  .pricing-grid { grid-template-columns: repeat(3, 1fr); }

  .steps-list {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }
  .step {
    flex: 1;
    background: transparent;
    border: none;
    border-top: 2px solid var(--border);
    border-left: none;
    padding: 1.5rem 1rem 0.5rem;
    text-align: center;
  }
  .step::before {
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
  }
  .step:not(:last-child)::after {
    content: '──►';
    position: absolute;
    right: -1.6rem;
    top: -1.1rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: -0.15em;
    white-space: nowrap;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .hamburger { display: flex; }
  header { position: sticky; }
  .logo img { height: 36px; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,14,10,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 1rem;
    z-index: 99;
  }
  nav.open { display: flex; }
}

/* ── Language switcher ── */
.lang-switcher {
  display: inline-flex;
  gap: 4px;
  margin-left: 1rem;
}
.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--accent-bright); border-color: var(--accent-dim); }
.lang-btn.active {
  color: var(--accent-bright);
  border-color: var(--accent-bright);
  background: rgba(57, 255, 20, 0.08);
}
@media (max-width: 767px) {
  .lang-switcher {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* === Страница активации (connect) === */

/* touch-фиксы для мобилки */
.app-tab,
.platform-selector,
.platform-option,
.step-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.connect-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  color: #39ff14;
  font-family: 'JetBrains Mono', monospace;
}

.sub-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.info-card {
  position: relative;
  background: #0a1a0a;
  border: 1.5px solid #1f8a0b;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-icon {
  width: 36px;
  height: 36px;
  border: 1.5px solid #39ff14;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f2810;
  flex-shrink: 0;
}

.info-text-label {
  font-size: 10px;
  color: #6fcc4a;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.info-text-value {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: #39ff14;
  line-height: 1;
}

.info-used-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.info-text-dim {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.check-mark-static {
  width: 16px;
  height: 10px;
  border-left: 3px solid #39ff14;
  border-bottom: 3px solid #39ff14;
  transform: rotate(-45deg) translate(2px, -2px);
}

.section-label {
  font-family: 'VT323', monospace;
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-num { color: #39ff14; }
.section-text { color: #6fcc4a; }

.platform-selector {
  position: relative;
  background: #0a1a0a;
  border: 1.5px solid #1f8a0b;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  cursor: pointer;
  min-width: 160px;
  color: #39ff14;
}

.platform-selector:hover { border-color: #39ff14; }

.platform-selector .chev {
  margin-left: auto;
  font-size: 12px;
}

.platform-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #0a1a0a;
  border: 1.5px solid #39ff14;
  z-index: 10;
  display: none;
}

.platform-dropdown.open { display: block; }

.platform-option {
  padding: 8px 14px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  cursor: pointer;
  color: #6fcc4a;
}

.platform-option:hover {
  background: #0f2810;
  color: #39ff14;
}

.apps-tabs {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.app-tab {
  position: relative;
  background: #0a1a0a;
  border: 1.5px solid #1f8a0b;
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 18px;
  letter-spacing: 1px;
  color: #39ff14;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.app-tab:hover { border-color: #39ff14; }

.app-tab.active {
  border-color: #39ff14;
  background: #0f2810;
  box-shadow: 0 0 12px #39ff1440;
}

.app-tab .corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.5px solid #39ff14;
  display: none;
}

.app-tab.active .corner { display: block; }

.c-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.c-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.c-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.c-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.step-card {
  position: relative;
  background: #0a1a0a;
  border: 1.5px solid #1f8a0b;
  padding: 18px 18px 16px 60px;
  margin-bottom: 12px;
}

.step-icon {
  position: absolute;
  left: 14px;
  top: 18px;
  width: 34px;
  height: 34px;
  border: 1.5px solid #39ff14;
  background: #0f2810;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #39ff14;
}

.step-check {
  position: absolute;
  left: 14px;
  top: 18px;
  width: 34px;
  height: 34px;
  border: 1.5px solid #39ff14;
  background: #0f2810;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-check .check-mark-static {
  margin-top: -4px;
}

.step-title {
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: #39ff14;
}

.step-desc {
  font-size: 12px;
  color: #6fcc4a;
  line-height: 1.5;
  margin-bottom: 12px;
}

.step-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #ffcf3a;
  background: rgba(255, 207, 58, 0.08);
  border: 1px solid rgba(255, 207, 58, 0.5);
  border-radius: 4px;
  padding: 7px 10px;
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

.step-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.step-btn {
  font-family: 'VT323', monospace;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 6px 14px;
  border: 1.5px solid #39ff14;
  background: #0f2810;
  color: #39ff14;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}

.step-btn:hover {
  background: #1a3818;
  box-shadow: 0 0 10px #39ff1440;
}

.step-btn.primary {
  background: #39ff14;
  color: #050a05;
  font-weight: bold;
}

.step-btn.primary:hover { background: #50ff30; }

/* Планшет */
@media (max-width: 768px) {
  .app-tab {
    font-size: 15px;
    padding: 12px 8px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    word-break: break-word;
    hyphens: auto;
  }
  .step-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
  }
}

/* Смартфон */
@media (max-width: 600px) {
  .connect-page { padding: 16px 14px 48px; }

  .sub-info { grid-template-columns: 1fr 1fr; gap: 10px; }
  .info-card { padding: 12px; gap: 10px; }
  .info-icon { width: 30px; height: 30px; flex-shrink: 0; }
  .info-text-label { font-size: 9px; }
  .info-text-value { font-size: 16px; }

  .section-label { flex-direction: column; align-items: flex-start; gap: 10px; }
  .platform-selector { width: 100%; min-width: unset; }

  .app-tab { font-size: 13px; padding: 10px 6px; min-height: 48px; }

  .step-card { padding: 14px 12px 14px 50px; margin-bottom: 10px; }
  .step-icon, .step-check {
    left: 10px;
    top: 14px;
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .step-title { font-size: 17px; }
  .step-desc  { font-size: 11px; }
  .step-btns  { gap: 6px; }
  .step-btn   { font-size: 13px; padding: 8px 12px; min-height: 44px; }
  .step-btn.primary { font-size: 13px; }
}

/* Очень маленькие экраны */
@media (max-width: 380px) {
  .sub-info { grid-template-columns: 1fr; }
  .info-text-value { font-size: 14px; }
}

/* ═══ CHECKOUT (pay.html / paid.html) ═══ */
.checkout { max-width: 760px; margin: 0 auto; }
.checkout-step { margin-bottom: 2rem; }
.checkout-step-title {
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  color: var(--accent-bright);
  margin-bottom: 1rem;
}
.checkout-hint { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.checkout-note { color: var(--text-muted); font-size: 0.8rem; margin-top: 1rem; }
.checkout-input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}
.checkout-input:focus { outline: none; border-color: var(--accent-bright); }
.checkout-error { color: #ff5b5b; font-size: 0.85rem; margin-top: 0.5rem; min-height: 1.1rem; }

.pay-tariff { cursor: pointer; position: relative; }
.pay-tariff input { position: absolute; opacity: 0; pointer-events: none; }
/* на странице оплаты «ВЫГОДНО» не должно выглядеть как уже выбранное —
   подсветку даёт только реально выбранный тариф (класс .selected) */
.pay-tariff.featured {
  border-color: var(--border);
  box-shadow: none;
  background: var(--bg-secondary);
}
.pay-tariff:hover {
  border-color: var(--accent-bright);
  box-shadow: 0 0 20px var(--accent-glow);
}
.pay-tariff.selected {
  border-color: var(--accent-bright);
  background: #1a2f1a;
  box-shadow: 0 0 0 2px var(--accent-bright), 0 0 20px var(--accent-glow);
}

/* paid.html */
.paid-state { max-width: 640px; margin: 0 auto; text-align: center; }
.paid-ok { font-family: 'VT323', monospace; font-size: 1.8rem; color: var(--accent-bright); margin-bottom: 1.5rem; }
.paid-err { color: #ff5b5b; margin-bottom: 1.5rem; }
.paid-suburl {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem;
  margin: 0.5rem 0 1rem;
  word-break: break-all;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.paid-spinner { display: flex; gap: 0.4rem; justify-content: center; margin-top: 1.5rem; }
.paid-spinner span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-dim);
  animation: paidblink 1.2s infinite ease-in-out both;
}
.paid-spinner span:nth-child(2) { animation-delay: 0.2s; }
.paid-spinner span:nth-child(3) { animation-delay: 0.4s; }
@keyframes paidblink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

/* Схема шагов на pay.html */
.pay-steps {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  list-style: none;
  counter-reset: none;
}
.pay-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}
.pay-step-n {
  flex-shrink: 0;
  width: 1.8rem; height: 1.8rem;
  display: grid; place-items: center;
  border: 1px solid var(--accent-bright);
  border-radius: 50%;
  color: var(--accent-bright);
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
}
.paid-code {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-secondary);
  border: 1px dashed var(--accent-bright);
  border-radius: 4px;
  color: var(--accent-bright);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

/* подсветка ключевого слова в шагах (напр. Telegram) */
.pay-steps .hl { color: var(--accent-bright); font-weight: 700; }

/* ── paid.html: ряд кнопок + помощник подключения ── */
.paid-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.ca-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0;
}
.ca-video { margin: 16px 0; }
.ca-video video {
  width: 100%;
  max-width: 420px;
  border: 1.5px solid #1f8a0b;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}
.ca-steps {
  text-align: left;
  max-width: 520px;
  margin: 12px auto;
  padding-left: 22px;
  color: #6fcc4a;
  font-size: 13px;
  line-height: 1.6;
}
.ca-steps li { margin-bottom: 6px; }

/* промо-плашка под кнопками hero (стиль step-note, по центру) */
.hero-note {
  display: inline-block;
  margin: 18px auto 0;
  text-align: center;
  max-width: 460px;
}

/* ── Кнопки: последнее слово ретро-шрифтом VT323 (как «...Telegram») ── */
.btn { font-family: 'JetBrains Mono', monospace; }
.btn .vt {
  font-family: 'VT323', monospace;
  font-size: 1.32em;
  letter-spacing: 0.03em;
  font-weight: 400;
  line-height: 1;
}
