/* ═══════════════════════════════════════════════
   СвойVPN — Technical Precision Design System
   ═══════════════════════════════════════════════ */

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

/* ── Tokens: Dark (default) ── */
:root {
  --bg: #08090c;
  --bg-alt: #0e1016;
  --surface: #13151c;
  --surface-raised: #191c25;
  --border: #1f2330;
  --border-hover: #2a2f40;
  --text: #e4e7ed;
  --text-mid: #a0a6b6;
  --text-dim: #5e6577;
  --accent: #22d3ee;
  --accent-soft: rgba(34,211,238,0.12);
  --accent-glow: rgba(34,211,238,0.06);
  --accent-hover: #67e8f9;
  --accent-text: #08090c;
  --green: #34d399;
  --green-soft: rgba(52,211,153,0.1);
  --green-border: rgba(52,211,153,0.22);
  --orange: #fbbf24;
  --red: #fb7185;
  --red-soft: rgba(251,113,133,0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  --topbar-bg: rgba(8,9,12,0.82);
  --dot-opacity: 0.07;
  --glow-opacity: 0.12;
  --card-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 0 0 1px var(--border);
}

/* ── Tokens: Light ── */
[data-theme="light"] {
  --bg: #f5f6f8;
  --bg-alt: #eceef2;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #d8dce6;
  --border-hover: #c0c6d4;
  --text: #11141c;
  --text-mid: #5a6175;
  --text-dim: #8890a0;
  --accent: #0891b2;
  --accent-soft: rgba(8,145,178,0.08);
  --accent-glow: rgba(8,145,178,0.04);
  --accent-hover: #06b6d4;
  --accent-text: #ffffff;
  --green: #059669;
  --green-soft: rgba(5,150,105,0.06);
  --green-border: rgba(5,150,105,0.18);
  --orange: #d97706;
  --red: #e11d48;
  --red-soft: rgba(225,29,72,0.06);
  --topbar-bg: rgba(245,246,248,0.82);
  --dot-opacity: 0.04;
  --glow-opacity: 0.06;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }

/* ══════════════════════════════════
   TOP BAR
   ══════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 28px;
}

.topbar-logo {
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.04em;
}

.topbar-logo:hover { color: var(--text); }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.topbar-nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.topbar-nav .btn-primary {
  color: var(--accent-text);
  margin-left: 8px;
}

.topbar-nav .btn-primary:hover {
  color: var(--accent-text);
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-icon:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--accent-soft);
}

/* ══════════════════════════════════
   BUTTONS
   ══════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  position: relative;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary--lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-copy {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.btn-copy:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ══════════════════════════════════
   LAYOUT
   ══════════════════════════════════ */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 28px;
  position: relative;
}

.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 56px;
  text-align: center;
}

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

/* Dot grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(circle, var(--text-dim) 0.8px, transparent 0.8px);
  background-size: 32px 32px;
  opacity: var(--dot-opacity);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 45%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 45%, black 20%, transparent 70%);
  pointer-events: none;
}

/* Accent glow */
.hero::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent) 0%, transparent 70%);
  opacity: var(--glow-opacity);
  pointer-events: none;
  filter: blur(80px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta-sub {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* ══════════════════════════════════
   HOW IT WORKS — Timeline steps
   ══════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  opacity: 0.5;
}

.step-card {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.step-card:hover .step-number {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.step-card p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ══════════════════════════════════
   FEATURES
   ══════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.25s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.feature-card:hover::before {
  opacity: 0.6;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.6;
}

/* ══════════════════════════════════
   PRICING
   ══════════════════════════════════ */

/* Billing toggle */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}

#pricing .billing-toggle {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.billing-btn {
  background: transparent;
  border: none;
  border-radius: 100px;
  padding: 9px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.billing-btn:hover {
  color: var(--text);
}

.billing-btn.active {
  background: var(--accent);
  color: var(--accent-text);
}

.billing-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(52,211,153,0.15);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.billing-btn.active .billing-badge {
  background: rgba(255,255,255,0.2);
  color: var(--accent-text);
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s, transform 0.25s;
  display: flex;
  flex-direction: column;
}

.pricing-card:first-child {
  border-color: var(--accent);
}

/* Accent glow on active card */
.pricing-card:first-child::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 180px;
  background: radial-gradient(ellipse, var(--accent) 0%, transparent 70%);
  opacity: var(--glow-opacity);
  pointer-events: none;
  filter: blur(60px);
}

.pricing-card:hover {
  transform: translateY(-2px);
}

/* Coming soon overlay */
.pricing-card--disabled {
  opacity: 0.65;
  pointer-events: none;
}

.pricing-card--disabled:hover {
  transform: none;
}

.pricing-coming-soon {
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--text-dim);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 36px;
  transform: rotate(45deg);
}

.pricing-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
  position: relative;
}

.pricing-price {
  margin-bottom: 4px;
}

.pricing-amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  position: relative;
}

.pricing-period {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 2px;
}

.pricing-usdt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
  min-height: 20px;
}

.pricing-annual-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
  min-height: 18px;
  display: none;
}

.pricing-annual-note.visible {
  display: block;
}

.pricing-features {
  list-style: none;
  margin: 24px 0;
  text-align: left;
  flex: 1;
}

.pricing-features li {
  padding: 9px 0;
  font-size: 14px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .check {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pricing-card .btn-primary {
  width: 100%;
  margin-top: 4px;
}

.pricing-card .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--text-dim);
}

.pricing-card .btn-primary:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ══════════════════════════════════
   FAQ
   ══════════════════════════════════ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 22px 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--accent); }

.faq-question::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%235e6577' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%2322d3ee' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

[data-theme="light"] .faq-item.open .faq-question::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%230891b2' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16,1,0.3,1);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.65;
}

.faq-item.open .faq-answer-inner {
  padding-bottom: 22px;
}

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 28px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}

.footer a {
  color: var(--text-dim);
  font-weight: 500;
}

.footer a:hover { color: var(--accent); }

/* ══════════════════════════════════
   PAYMENT PAGE
   ══════════════════════════════════ */
.pay-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 88px 24px 48px;
  min-height: 100vh;
}

.pay-header {
  text-align: center;
  margin-bottom: 32px;
}

.pay-header h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.screen { display: none; }
.screen.active { display: block; }

/* Price display */
.pay-price-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.pay-price-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.pay-price-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 8px;
}

.pay-price-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pay-price-usdt {
  font-size: 14px;
  color: var(--text-dim);
  font-family: var(--mono);
  margin-top: 6px;
}

/* Payment info */
.pay-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.pay-row {
  margin-bottom: 20px;
}

.pay-row:last-child { margin-bottom: 0; }

.pay-row-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 8px;
}

.pay-row-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
  font-family: var(--mono);
  letter-spacing: -0.02em;
}

.pay-amount-unit {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.pay-address {
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
  background: var(--bg);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  flex: 1;
  border: 1px solid var(--border);
  color: var(--text-mid);
  line-height: 1.5;
}

/* QR */
.pay-qr {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
}

.pay-qr canvas,
.pay-qr img {
  border-radius: 4px;
}

/* Waiting status */
.pay-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 14px;
  margin: 24px 0 10px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.timer {
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
  font-family: var(--mono);
  font-weight: 500;
  padding: 8px 0;
}

.timer.warn {
  color: var(--orange);
}

.timer.urgent {
  color: var(--red);
  font-weight: 700;
  animation: pulse-urgent 1.5s ease-in-out infinite;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ══════════════════════════════════
   CONFIG DELIVERY
   ══════════════════════════════════ */
.success-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 24px;
  color: var(--green);
  font-weight: 600;
  font-size: 16px;
}

.success-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.config-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.config-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.config-section p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.config-textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg);
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  resize: none;
  line-height: 1.5;
}

.config-qr {
  display: flex;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
  margin: 12px 0;
  border: 1px solid var(--border);
}

.config-steps {
  list-style: none;
  counter-reset: step-counter;
}

.config-steps li {
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 12px;
  counter-increment: step-counter;
}

.config-steps li::before {
  content: counter(step-counter);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.config-steps li:last-child { border-bottom: none; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.app-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.app-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.expires-text {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  font-family: var(--mono);
  margin: 20px 0;
}

.error-msg {
  background: var(--red-soft);
  border: 1px solid rgba(251,113,133,0.25);
  border-radius: var(--radius);
  padding: 14px 20px;
  color: var(--red);
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
}

.config-copy-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.alt-import-text {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.back-home-row {
  text-align: center;
  margin-top: 16px;
}

/* ══════════════════════════════════
   MOBILE NAV
   ══════════════════════════════════ */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .mobile-menu-btn { display: block; }

  .topbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    gap: 2px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  }

  .topbar-nav.open a {
    padding: 14px 12px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .topbar-nav.open .btn-primary {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }

  .section {
    padding: 64px 20px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .hero { min-height: 85vh; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-grid::before {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card { padding: 24px 20px; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card { padding: 28px 20px; }
  .pricing-amount { font-size: 38px; }

  .pricing-coming-soon {
    right: -32px;
    top: 12px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }

  .app-grid { grid-template-columns: 1fr; }

  .pay-container { padding: 76px 16px 36px; }
}

@media (max-width: 480px) {
  .hero { min-height: 75vh; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }

  .hero-cta-row {
    flex-direction: column;
    gap: 12px;
  }
}
