/* ══════════════════════════════════════════════════════════════════════
   3letter VPN — Main Stylesheet
   Design: Dark theme, glassmorphic cards, gradient accents
   Fonts: Space Grotesk (headings) + Inter (body)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Custom Properties ───────────────────────────────────────────────── */
:root {
  --bg: #0a0a1a;
  --bg-card: #12122a;
  --bg-card-alt: #181838;
  --bg-input: #0e0e22;
  --border: #252550;
  --border-hover: #667eea;

  --primary: #667eea;
  --primary-light: #8b9cf7;
  --secondary: #764ba2;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  --text: #c8c8e0;
  --text-bright: #eeeeff;
  --text-muted: #6e6e94;

  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.12);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --transition: 200ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text-bright);
}

ul, ol {
  list-style: none;
}

/* ── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0.75rem auto 0;
  text-align: center;
}

/* ── Layout ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.25);
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.5);
  transform: none !important;
}

.btn-primary:disabled:hover {
  opacity: 0.35;
  box-shadow: none;
  filter: grayscale(0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.08);
  color: var(--text-bright);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Header / Nav ────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  padding-top: 18px;
  transition: padding-top 240ms ease, transform 240ms ease;
}

.header.scrolled {
  padding-top: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(11, 11, 28, 0.82) 0%, rgba(8, 8, 21, 0.72) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.header.scrolled .nav {
  background: linear-gradient(180deg, rgba(10, 10, 24, 0.9) 0%, rgba(8, 8, 20, 0.84) 100%);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.03em;
  transition: color var(--transition), filter var(--transition);
}

.logo:hover {
  color: var(--text-bright);
  filter: brightness(1.06);
}

.logo-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.nav-links a:hover {
  color: var(--text-bright);
}

.nav-link-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px transparent;
  position: relative;
}

.nav-link-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(255, 255, 255, 0.04);
}

.nav-register-btn {
  position: relative;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.24), 0 0 28px rgba(255, 255, 255, 0.07);
}

.nav-register-btn:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 34px rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 100px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.12) 0%, transparent 70%);
  top: -250px;
  right: -150px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  margin-bottom: 3rem;
}

/* Feature pills in hero */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(102, 126, 234, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text);
}

.hero-pill svg {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.pricing-card.selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.06) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-glow);
}

.pricing-card.popular {
  border-color: var(--secondary);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 1rem;
  font-weight: 500;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-price .currency {
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 2px;
}

.pricing-per-month {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.pricing-savings {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  min-height: 1.2em;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-btn {
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  letter-spacing: 0.02em;
}

/* ── Payment Form ────────────────────────────────────────────────────── */
.payment-section {
  max-width: 480px;
  margin: 0 auto;
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.payment-card h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236e6e94' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 6 3.5 4 3.5-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-bright);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.checkbox-group:has(input:checked) {
  color: var(--text);
}

.checkbox-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-input);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.checkbox-group input[type="checkbox"]:hover {
  border-color: var(--primary);
}

.checkbox-group input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-group a {
  color: var(--primary-light);
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Plan summary above the button */
.plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(102, 126, 234, 0.06);
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.plan-summary-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-summary-value {
  font-weight: 600;
  color: var(--text-bright);
}

/* ── Promo Section ───────────────────────────────────────────────────── */
.promo-toggle-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

.promo-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.promo-toggle-btn:hover {
  color: var(--primary-light);
}

.promo-toggle-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.promo-toggle-btn.open svg {
  transform: rotate(180deg);
}

.promo-form-wrap {
  max-width: 480px;
  margin: 1rem auto 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--transition-slow), opacity var(--transition-slow), margin var(--transition-slow);
}

.promo-form-wrap.visible {
  max-height: 400px;
  opacity: 1;
  margin-top: 1.5rem;
}

.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
}

.promo-card h3 {
  text-align: center;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
}

.promo-input-row {
  display: flex;
  gap: 0.75rem;
}

.promo-input-row .form-group {
  flex: 1;
}

/* ── Alert messages ──────────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}

/* ── Steps / How it Works ────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: var(--border);
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Apps Section ────────────────────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color var(--transition);
}

.app-card:hover {
  border-color: rgba(102, 126, 234, 0.4);
}

.app-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-light);
}

.app-icon svg {
  width: 24px;
  height: 24px;
}

.app-card h3 {
  margin-bottom: 0.4rem;
}

.app-card .app-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(102, 126, 234, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--primary-light);
  transition: all var(--transition);
}

.app-link:hover {
  background: rgba(102, 126, 234, 0.15);
  color: var(--text-bright);
}

.app-link svg {
  width: 14px;
  height: 14px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-left a:hover {
  color: var(--primary-light);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

/* ── Centered Card Page (success, renew, promo_success) ──────────────── */
.page-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  max-width: 540px;
  width: 100%;
  text-align: center;
}

.page-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.page-card-icon.success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}

.page-card-icon svg {
  width: 36px;
  height: 36px;
}

.page-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.page-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.page-card .steps-list {
  text-align: left;
  margin: 1.5rem 0;
}

.page-card .steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-card .steps-list li .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.page-card .steps-list .step-content {
  display: block;
  width: 100%;
}

.page-card .steps-list .step-main {
  display: block;
}

.page-card .steps-list .step-note-box {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.6rem 0.75rem;
  max-width: 79%;
  border: 1px solid rgba(167, 139, 250, 0.34);
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.12);
  color: #ddd6fe;
  font-size: 0.86rem;
  line-height: 1.45;
}

.page-card .btn {
  margin-top: 1rem;
}

/* ── Key Reveal (blurred subscription URL on promo success) ──────────── */
.key-reveal-block {
  margin: 1.5rem 0;
  text-align: center;
}

.key-reveal-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.key-reveal-label svg {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
}

.key-reveal-container {
  position: relative;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-reveal-container:hover {
  border-color: var(--primary);
}

.key-reveal-container:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.key-reveal-value {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82rem;
  color: var(--primary-light);
  word-break: break-all;
  line-height: 1.6;
  filter: blur(8px);
  user-select: none;
  transition: filter 0.4s ease, user-select 0s;
}

.key-reveal-container.revealed .key-reveal-value {
  filter: blur(0);
  user-select: text;
}

.key-reveal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
  background: rgba(14, 14, 34, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: var(--radius-md);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.key-reveal-overlay svg {
  width: 28px;
  height: 28px;
  color: var(--primary-light);
  opacity: 0.9;
}

.key-reveal-overlay span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.85;
}

.key-reveal-container.revealed .key-reveal-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.key-copy-btn {
  margin-top: 0.75rem;
  gap: 0.4rem;
}

.key-copy-btn.copied {
  border-color: var(--success);
  color: var(--success);
}

/* ── Renewal Page ────────────────────────────────────────────────────── */
.renew-status {
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.renew-status .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.renew-status .value {
  font-weight: 600;
  font-size: 1.05rem;
}

.status-active { color: var(--success); }
.status-expired { color: var(--error); }

.renew-card {
  max-width: 480px;
  width: 100%;
}

.renew-card h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── Animations ──────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Reduced Motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Guide Page
   ══════════════════════════════════════════════════════════════════════ */

/* ── Guide Hero ──────────────────────────────────────────────────────── */
.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px;
  text-align: center;
}

.guide-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.guide-hero-content h1 {
  margin-bottom: 1rem;
}

.guide-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Guide Layout ────────────────────────────────────────────────────── */
.guide-section {
  padding-top: 40px;
}

.guide-container {
  max-width: 800px;
}

/* ── Platform Tabs ───────────────────────────────────────────────────── */
.guide-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.guide-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.guide-tab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.guide-tab:hover {
  color: var(--text);
  background: rgba(102, 126, 234, 0.06);
}

.guide-tab.active {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.25);
}

/* ── Tab Panels ──────────────────────────────────────────────────────── */
.guide-panel {
  display: none;
}

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

/* ── App Block ───────────────────────────────────────────────────────── */
.guide-app-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(9, 12, 28, 0.18);
}

.guide-app-block:last-child {
  margin-bottom: 0;
}

.guide-app-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.guide-app-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.guide-app-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-light);
  flex-shrink: 0;
}

.guide-app-icon svg {
  width: 24px;
  height: 24px;
}

.guide-app-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.guide-app-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ── Badge ────────────────────────────────────────────────────────────── */
.guide-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.guide-badge-recommended {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.guide-badge-ai-recommended {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(56, 189, 248, 0.18));
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.08) inset;
}

.guide-badge-ai-recommended svg {
  width: 13px;
  height: 13px;
  color: #93c5fd;
}

/* ── Download Buttons ────────────────────────────────────────────────── */
.guide-download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.guide-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--gradient);
  color: #fff;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.guide-download-btn:hover {
  opacity: 0.9;
  color: #fff;
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
}

.guide-download-btn svg {
  width: 16px;
  height: 16px;
}

.guide-download-btn-alt {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--border);
}

.guide-download-btn-alt:hover {
  opacity: 1;
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.08);
  color: var(--text-bright);
}

/* ── Step List ────────────────────────────────────────────────────────── */
.guide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.65rem 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(37, 37, 80, 0.4);
}

.guide-steps li:first-child {
  border-top: none;
}

.guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.12);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: var(--font-heading);
}

.guide-steps kbd {
  display: inline-block;
  padding: 1px 7px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85em;
  color: var(--text-bright);
}

.guide-steps code {
  padding: 1px 6px;
  background: var(--bg-card-alt);
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--primary-light);
}

/* ── MAX Protection Actions ─────────────────────────────────────────── */
.guide-max-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

/* ── Info Card (Split Tunneling) ─────────────────────────────────────── */
.guide-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.guide-info-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-light);
  margin-bottom: 1.25rem;
}

.guide-info-icon svg {
  width: 28px;
  height: 28px;
}

.guide-info-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.guide-info-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.guide-info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.guide-info-col {
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.guide-info-col h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.guide-info-col h4 svg {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
  flex-shrink: 0;
}

.guide-info-col p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.guide-info-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.guide-info-tip svg {
  width: 18px;
  height: 18px;
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── FAQ Accordion ───────────────────────────────────────────────────── */
.guide-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.guide-faq-item[open] {
  border-color: rgba(102, 126, 234, 0.3);
}

.guide-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text-bright);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition);
}

.guide-faq-item summary::-webkit-details-marker {
  display: none;
}

.guide-faq-item summary::marker {
  content: '';
}

.guide-faq-item summary:hover {
  background: rgba(102, 126, 234, 0.04);
}

.guide-faq-item summary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.guide-faq-item[open] summary svg {
  transform: rotate(180deg);
}

.guide-faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.7;
}

.guide-faq-answer p {
  margin-bottom: 0.5rem;
}

.guide-faq-answer p:last-child {
  margin-bottom: 0;
}

.guide-faq-answer ol {
  list-style: decimal;
  padding-left: 1.25rem;
}

.guide-faq-answer ol li {
  margin-bottom: 0.35rem;
  padding-left: 0.25rem;
}

.guide-faq-inline-btn {
  vertical-align: middle;
  margin: 0 0.2rem;
}

/* ── Nav Auth Buttons ────────────────────────────────────────────────── */
.nav-auth-link {
  color: var(--text) !important;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-auth-link:hover {
  color: var(--text-bright) !important;
}

.nav-register-btn {
  margin-left: 0.5rem;
  background: #fff !important;
  color: #0a0a1a !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 0.55rem 1.5rem !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
  cursor: pointer;
}

.nav-register-btn:hover {
  background: var(--text-bright) !important;
  color: #0a0a1a !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-1px);
}

.nav-dashboard-link {
  color: var(--primary-light) !important;
  font-weight: 600;
}

.nav-logout {
  font-size: 0.9rem;
  opacity: 0.7;
}

.nav-logout:hover {
  opacity: 1;
}

/* ── Promo Banner ────────────────────────────────────────────────────── */
.promo-banner-section {
  padding: 0 0 1rem;
}

.promo-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.08) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--radius-lg);
}

.promo-banner-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(102, 126, 234, 0.15);
  color: var(--primary-light);
  flex-shrink: 0;
}

.promo-banner-icon svg {
  width: 24px;
  height: 24px;
}

.promo-banner-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.promo-banner-text strong {
  color: var(--text-bright);
}

.promo-code-inline {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.9em;
  color: var(--primary-light);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.promo-banner-btn {
  flex-shrink: 0;
}

/* ── Features Grid ───────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition);
}

.feature-card:hover {
  border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Steps grid 4 columns */
.steps-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.steps-grid-4::before {
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
}

/* ── Auth Pages ──────────────────────────────────────────────────────── */
.auth-card {
  max-width: 440px;
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.auth-footer-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.auth-footer-text a:hover {
  text-decoration: underline;
}

/* Password input with toggle */
.password-input-wrap {
  position: relative;
}

.password-input-wrap .form-input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.password-toggle:hover {
  color: var(--primary-light);
}

/* Password strength indicator */
.password-strength {
  height: 3px;
  border-radius: 2px;
  margin-top: 6px;
  transition: all var(--transition);
}

.password-strength.weak {
  width: 33%;
  background: var(--error);
}

.password-strength.medium {
  width: 66%;
  background: var(--warning);
}

.password-strength.strong {
  width: 100%;
  background: var(--success);
}

/* Email verification page */
.verify-code-input {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  font-family: 'Courier New', Courier, monospace;
  padding: 0.75rem 1rem;
}

.verify-code-input::placeholder {
  letter-spacing: 0.3em;
  font-weight: 400;
  font-size: 1.5rem;
}

.verify-timer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.verify-timer span {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.verify-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.verify-resend-form {
  display: inline;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-link-muted {
  color: var(--text-muted);
  font-weight: 400;
}

/* Tooltip */
.tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  color: var(--text-muted);
  margin-left: 4px;
  vertical-align: middle;
}

.tooltip-trigger svg {
  width: 16px;
  height: 16px;
}

.tooltip-content {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  z-index: 50;
  box-shadow: var(--shadow);
  font-weight: 400;
  line-height: 1.5;
}

.tooltip-trigger:hover .tooltip-content,
.tooltip-trigger:focus .tooltip-content {
  display: block;
}

/* Form error styles */
.form-input-error {
  border-color: var(--error) !important;
}

.form-error-text {
  display: block;
  color: #fca5a5;
  font-size: 0.82rem;
  margin-top: 4px;
}

/* ── Dashboard ───────────────────────────────────────────────────────── */
.dashboard-hero {
  padding: 120px 0 40px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.25rem;
}

.dashboard-email {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dashboard-section {
  padding-top: 0;
}

.dashboard-container {
  max-width: 680px;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.dash-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.dash-card-title svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

/* Subscription status */
.dash-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.dash-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-status-active {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.dash-status-active .dash-status-dot {
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.dash-status-inactive {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.dash-status-inactive .dash-status-dot {
  background: var(--error);
}

.dash-status-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Subscription URL block */
.dash-sub-block {
  margin-bottom: 0.5rem;
}

.dash-sub-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-sub-url-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.dash-sub-url {
  flex: 1;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--primary-light);
  word-break: break-all;
  line-height: 1.5;
}

.dash-copy-btn {
  flex-shrink: 0;
}

.dash-copy-btn.copied {
  border-color: var(--success);
  color: var(--success);
}

.dash-sub-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.6rem;
  line-height: 1.5;
}

.dash-sub-hint a {
  color: var(--primary-light);
}

/* ── Dashboard v2: primary sub, devices, compact URLs ─────────────── */
.dash-card-primary {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-card) 55%);
}

.dash-primary-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.75rem;
}

.dash-card-title-compact {
  margin-bottom: 0.65rem;
}

.dash-primary-lead {
  margin-bottom: 1rem;
}

.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.dash-section-head .dash-card-title-compact {
  margin-bottom: 0;
}

.dash-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  vertical-align: middle;
}

.dash-url-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  min-width: 0;
}

.dash-url-row-primary {
  border-color: rgba(99, 102, 241, 0.35);
}

.dash-url-text {
  flex: 1;
  min-width: 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--primary-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.dash-url-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.dash-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card-alt);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.dash-icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.dash-icon-btn.copied {
  border-color: var(--success);
  color: var(--success);
}

.dash-icon-btn-danger:hover {
  border-color: var(--error);
  color: #fca5a5;
}

.dash-icon-btn-label {
  font-size: 0.78rem;
}

.dash-details {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.dash-details summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-light);
  list-style: none;
}

.dash-details summary::-webkit-details-marker {
  display: none;
}

.dash-details summary::after {
  content: '▾';
  float: right;
  opacity: 0.6;
}

.dash-details[open] summary::after {
  transform: rotate(180deg);
}

.dash-details-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}

.dash-client-tip {
  margin-top: 0.85rem;
  font-size: 0.88rem;
}

.dash-client-tip ul {
  margin: 0.4rem 0 0 1.1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.dash-setup-notes {
  margin: 0.25rem 0 0.85rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.dash-tip-lead {
  margin: 0.35rem 0 0.25rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.dash-tip-sub {
  margin: 0.85rem 0 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.dash-steps,
.dash-file-list {
  margin: 0.25rem 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.dash-code-snip {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  line-height: 1.4;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-muted);
}

.dash-details-nested {
  margin-top: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.dash-details-nested summary {
  padding: 0.55rem 0.75rem;
  font-size: 0.84rem;
}

.dash-details-nested .dash-details-body {
  padding: 0 0.75rem 0.75rem;
}

.dash-devices-intro {
  margin-bottom: 0.85rem;
}

.dash-devices-list[data-expanded="false"] .dash-device-extra {
  display: none;
}

.dash-device-row {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.dash-device-row:last-child {
  border-bottom: none;
}

.dash-device-meta {
  margin-bottom: 0.5rem;
}

.dash-device-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dash-device-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.dash-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

.dash-tag-auto {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.dash-tag-manual {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.dash-device-submeta {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dash-meta-sep {
  margin: 0 0.25rem;
  opacity: 0.5;
}

.dash-toggle-btn .dash-toggle-less {
  display: none;
}

.dash-toggle-btn[aria-expanded="true"] .dash-toggle-more {
  display: none;
}

.dash-toggle-btn[aria-expanded="true"] .dash-toggle-less {
  display: inline;
}

.dash-add-device {
  margin-top: 1rem;
}

.dash-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.dash-modal-actions .btn {
  flex: 1;
}

.dash-btn-danger {
  background: var(--error) !important;
  border-color: var(--error) !important;
}

.modal-card-sm {
  max-width: 420px;
}

.dash-copy-btn .dash-icon-btn-label {
  display: none;
}

@media (min-width: 641px) {
  .dash-url-row-primary .dash-copy-btn .dash-icon-btn-label {
    display: inline;
  }

  .dash-url-text {
    white-space: normal;
    word-break: break-all;
  }
}

@media (max-width: 640px) {
  .dash-card {
    padding: 1.25rem;
  }

  .dash-url-row {
    padding: 0.55rem 0.6rem;
  }

  .dash-icon-btn {
    min-width: 2.1rem;
    width: 2.1rem;
    padding: 0;
  }

  .dash-icon-btn-label {
    display: none !important;
  }

  .dash-add-device {
    flex-direction: column;
  }

  .dash-modal-actions {
    flex-direction: column;
  }
}

/* Promo form */
.dash-promo-form {
  margin: 0;
}

.dash-promo-row {
  display: flex;
  gap: 0.75rem;
}

.dash-promo-input {
  flex: 1;
}

/* Tariff grid in dashboard */
.dash-tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.dash-tariff-card {
  position: relative;
  cursor: pointer;
}

.dash-tariff-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dash-tariff-inner {
  position: relative;
  background: var(--bg-card-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all var(--transition);
}

.dash-tariff-card:hover .dash-tariff-inner {
  border-color: var(--primary);
}

.dash-tariff-radio:checked ~ .dash-tariff-inner {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.06);
  box-shadow: 0 0 16px rgba(102, 126, 234, 0.12);
}

.dash-tariff-card.popular .dash-tariff-inner {
  border-color: var(--secondary);
}

.dash-tariff-inner .pricing-name {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.dash-tariff-inner .pricing-price {
  font-size: 1.75rem;
}

.dash-tariff-inner .pricing-badge {
  top: -11px;
  font-size: 0.7rem;
  padding: 2px 12px;
}

/* ── Responsive: Tablet ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 10px;
    right: 10px;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.96) 0%, rgba(8, 8, 22, 0.94) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 0.85rem;
    border: 1px solid rgba(139, 156, 247, 0.16);
    border-radius: 28px;
    gap: 0.45rem;
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.42),
      inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    overflow: hidden;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 1.1rem;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-links a:active {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  .nav-link-chip {
    min-height: 54px;
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    box-shadow: none;
  }

  .nav-link-chip:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .section {
    padding: 56px 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .apps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-features {
    gap: 0.6rem;
  }

  .guide-hero {
    padding: 110px 0 40px;
  }

  .guide-tabs {
    gap: 0.25rem;
    padding: 4px;
  }

  .guide-tab {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
    gap: 0.35rem;
  }

  .guide-tab svg {
    width: 18px;
    height: 18px;
  }

  .guide-app-block {
    padding: 1.25rem 1.25rem;
  }

  .guide-info-columns {
    grid-template-columns: 1fr;
  }

  .promo-input-row {
    flex-direction: column;
    gap: 0;
  }

  .page-card {
    padding: 2rem 1.5rem;
  }

  .nav-register-btn {
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
    margin-top: 0 !important;
    min-height: 54px;
    border-radius: 16px !important;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28) !important;
    transform: none !important;
  }

  .nav-register-btn:hover,
  .nav-register-btn:active {
    transform: none !important;
  }

  .promo-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .promo-banner-icon {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .steps-grid-4 {
    grid-template-columns: 1fr;
  }

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

  .dashboard-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .dash-tariff-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .dash-promo-row {
    flex-direction: column;
  }
}

/* ── Responsive: Small Mobile ────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero {
    padding: 110px 0 48px;
  }

  .hero-pill {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .pricing-price {
    font-size: 2.25rem;
  }

  .payment-card,
  .promo-card {
    padding: 1.5rem 1.25rem;
  }

  .page-card {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
  }

  .page-card-icon {
    width: 56px;
    height: 56px;
  }

  .page-card-icon svg {
    width: 28px;
    height: 28px;
  }

  .guide-tab span.guide-tab-label-full {
    display: none;
  }

  .guide-info-card {
    padding: 1.5rem 1.25rem;
  }

  .guide-info-card h2 {
    font-size: 1.15rem;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Modal Overlay (promo success)
   ══════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1rem;
  animation: modalFadeIn 0.25s ease-out;
}

.modal-overlay.closing {
  animation: modalFadeOut 0.2s ease-in forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.08);
}

.modal-card h2 {
  margin: 0.75rem 0 0.5rem;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.modal-desc strong {
  color: var(--text-bright);
}

.modal-sub-block {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-sub-url {
  flex: 1;
  font-size: 0.8rem;
  color: var(--text);
  word-break: break-all;
  text-align: left;
}

.modal-steps {
  text-align: left;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.modal-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}

.modal-steps .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .modal-card {
    padding: 2rem 1.25rem 1.5rem;
  }

  .modal-sub-block {
    flex-direction: column;
    text-align: center;
  }

  .modal-sub-url {
    text-align: center;
  }
}

/* ── Strikethrough / discount prices ──────────────────────────── */
.pricing-price .price-old {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--error);
  text-decoration-thickness: 2px;
  margin-right: 0.35em;
  opacity: 0.7;
  vertical-align: baseline;
}

.pricing-price.has-discount .price-current {
  color: var(--success);
}

.pricing-per-month .monthly-old {
  text-decoration: line-through;
  text-decoration-color: var(--error);
  text-decoration-thickness: 1px;
  opacity: 0.55;
  margin-right: 0.25em;
}

/* ── Discount banner (inside tariffs card) ───────────────────── */
.dash-discount-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #86efac;
}

.dash-discount-banner svg {
  color: var(--success);
  flex-shrink: 0;
}

.dash-discount-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  transition: color var(--transition);
}

.dash-discount-remove:hover {
  color: var(--error);
}

.dash-recurring-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #93c5fd;
}

.dash-recurring-banner svg {
  color: #60a5fa;
  flex-shrink: 0;
}

.dash-tariff-card.dash-tariff-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.dash-tariff-card.dash-tariff-disabled .dash-tariff-inner {
  border-style: dashed;
}

.promo-inline-error {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--error);
}

/* ── Discount modal icon ─────────────────────────────────────── */
.page-card-icon.discount {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}

/* ── Promo inline error ──────────────────────────────────────── */
.promo-inline-error {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fca5a5;
  animation: promoErrorFadeIn 0.2s ease-out;
}

@keyframes promoErrorFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════════
   Disclaimer Modal (МАКС compatibility warning)
   ══════════════════════════════════════════════════════════════════════ */
.disclaimer-card {
  max-width: 440px;
  text-align: center;
  border-color: rgba(239, 68, 68, 0.25);
}

.disclaimer-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.25rem;
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.disclaimer-title {
  color: var(--error);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.disclaimer-text {
  text-align: left;
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.disclaimer-text p {
  margin-bottom: 0.75rem;
}

.disclaimer-text p:last-child {
  margin-bottom: 0;
}

.disclaimer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.disclaimer-maks {
  display: inline-block;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  padding: 0.05em 0.5em;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.disclaimer-metaphor {
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.disclaimer-warning {
  padding: 0.65rem 0.85rem;
  background: rgba(239, 68, 68, 0.06);
  border-left: 3px solid var(--error);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-bright);
  font-weight: 500;
}

.disclaimer-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.disclaimer-buttons .btn {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  #disclaimer-modal,
  #disclaimer-modal .modal-card {
    animation: none !important;
  }
}

@media (max-width: 480px) {
  .disclaimer-card {
    padding: 1.75rem 1.15rem 1.5rem;
  }

  .disclaimer-title {
    font-size: 1.15rem;
  }

  .disclaimer-text {
    font-size: 0.9rem;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Offer Page (Public Offer / Legal Document)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Offer Hero ──────────────────────────────────────────────────── */
.offer-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px;
  text-align: center;
}

.offer-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.offer-hero-content h1 {
  margin-bottom: 1rem;
}

.offer-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(102, 126, 234, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.offer-hero-badge svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

.offer-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.offer-updated {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Offer Layout ────────────────────────────────────────────────── */
.offer-section {
  padding-top: 40px;
}

.offer-container {
  max-width: 800px;
}

/* ── Table of Contents ───────────────────────────────────────────── */
.offer-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.offer-toc-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.offer-toc-title svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

.offer-toc-list {
  list-style: none;
  counter-reset: toc-counter;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 2rem;
}

.offer-toc-list li {
  counter-increment: toc-counter;
}

.offer-toc-list li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  color: var(--text);
  font-size: 0.9rem;
  transition: color var(--transition);
  cursor: pointer;
}

.offer-toc-list li a::before {
  content: counter(toc-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.offer-toc-list li a:hover {
  color: var(--primary-light);
}

/* ── Article Body ────────────────────────────────────────────────── */
.offer-body {
  color: var(--text);
  line-height: 1.8;
}

.offer-article-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(37, 37, 80, 0.4);
}

.offer-article-section:last-child {
  border-bottom: none;
}

.offer-article-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 90px;
}

.offer-section-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.offer-article-section h3 {
  font-size: 1.05rem;
  color: var(--text-bright);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.offer-article-section p {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.offer-article-section p:last-child {
  margin-bottom: 0;
}

.offer-article-section p strong {
  color: var(--text-bright);
  font-weight: 600;
}

.offer-article-section a {
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-color: rgba(139, 156, 247, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--transition), color var(--transition);
}

.offer-article-section a:hover {
  color: var(--text-bright);
  text-decoration-color: var(--text-bright);
}

/* ── Offer Lists ─────────────────────────────────────────────────── */
.offer-list {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.offer-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.offer-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ── Contact Block ───────────────────────────────────────────────── */
.offer-contacts {
  margin-top: 2.5rem;
}

.offer-contacts-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 2rem;
}

.offer-contacts-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.offer-contacts-item svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

.offer-contacts-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.offer-contacts-item a {
  color: var(--text-bright);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.offer-contacts-item a:hover {
  color: var(--primary-light);
}

/* ── Back to Top ─────────────────────────────────────────────────── */
.offer-back-top {
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

/* ── Responsive: Tablet ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .offer-hero {
    padding: 110px 0 40px;
  }

  .offer-toc {
    padding: 1.25rem 1.5rem;
  }

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

  .offer-contacts-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .offer-article-section h2 {
    font-size: 1.15rem;
  }
}

/* ── Responsive: Small Mobile ────────────────────────────────────── */
@media (max-width: 480px) {
  .offer-toc {
    padding: 1rem 1.25rem;
  }

  .offer-article-section {
    padding: 1.5rem 0;
  }

  .offer-article-section h2 {
    font-size: 1.05rem;
    gap: 0.6rem;
  }

  .offer-section-num {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .offer-contacts-inner {
    padding: 1rem;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Game Landing
   ══════════════════════════════════════════════════════════════════════ */

.landing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(139, 156, 247, 0.24);
  border-radius: 999px;
  background: rgba(139, 156, 247, 0.065);
  color: #8fa2ff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.game-hero {
  position: relative;
  overflow: hidden;
  padding: 146px 0 22px;
  min-height: 820px;
}

.game-hero::before,
.game-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.game-hero::before {
  width: 620px;
  height: 620px;
  right: -150px;
  top: -180px;
  background: radial-gradient(circle, rgba(90, 107, 255, 0.2) 0%, rgba(90, 107, 255, 0.06) 42%, transparent 72%);
  filter: blur(16px);
}

.game-hero::after {
  width: 460px;
  height: 460px;
  left: -110px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.16) 0%, rgba(118, 75, 162, 0.04) 44%, transparent 72%);
  filter: blur(16px);
}

.game-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  column-gap: 56px;
  align-items: start;
}

.game-hero-copy {
  min-width: 0;
  max-width: 100%;
  padding-top: 26px;
}

.hero-title-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "heading"
    "kicker"
    "support";
  row-gap: 18px;
  align-items: start;
  margin: 16px 0 26px;
  position: relative;
  max-width: 540px;
}

.hero-heading-stack {
  grid-area: heading;
  min-width: 0;
}

.hero-lead-claim {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-lead-line {
  display: block;
  font-family: var(--font-heading);
  font-size: 5.68rem;
  line-height: 0.86;
  letter-spacing: -0.085em;
  font-weight: 500;
  text-transform: uppercase;
  color: #f0f2ff;
  white-space: nowrap;
}

.hero-lead-line:last-child {
  color: #8ea1ff;
  text-shadow:
    0 0 24px rgba(122, 141, 255, 0.13),
    0 0 56px rgba(122, 141, 255, 0.08);
}

.hero-support-kicker-wrap {
  grid-area: kicker;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-top: 0;
  min-width: 0;
}

.hero-support-kicker-line {
  width: 1px;
  min-width: 1px;
  height: 102px;
  background: linear-gradient(180deg, rgba(105, 121, 255, 0.96) 0%, rgba(105, 121, 255, 0.18) 100%);
  box-shadow: 0 0 14px rgba(105, 121, 255, 0.16);
}

.hero-support-kicker {
  margin: 0;
  padding-top: 1px;
  font-size: 0.79rem;
  line-height: 1.45;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  max-width: 11ch;
}

.hero-support-claim {
  grid-area: support;
  min-width: 0;
  padding-top: 0;
}

.hero-support-claim h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 3.18rem;
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: #ffffff;
  max-width: 15ch;
  text-wrap: initial;
}

.game-hero-subtitle {
  max-width: 708px;
  margin: 0 0 32px;
  font-size: 1.02rem;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.74);
}

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

.game-hero-actions .btn {
  min-width: 182px;
  min-height: 72px;
  border-radius: 16px;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 0 28px;
}

.game-hero-actions .btn-primary {
  background: linear-gradient(135deg, #7f94ff 0%, #9e72db 100%);
  color: #fff;
  box-shadow:
    0 10px 30px rgba(115, 123, 255, 0.26),
    inset 0 0 18px rgba(255, 255, 255, 0.08);
}

.game-hero-actions .btn-primary:hover {
  opacity: 1;
  transform: translateY(-1px);
  color: #fff;
}

.game-hero-actions .btn-outline {
  background: rgba(8, 8, 25, 0.42);
  color: #8fa2ff;
  border: 1px solid rgba(92, 102, 214, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.game-hero-actions .btn-outline:hover {
  background: rgba(102, 126, 234, 0.07);
  border-color: rgba(119, 136, 255, 0.52);
  color: #cfd8ff;
}

.game-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.game-hero-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hero-preview-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  justify-self: end;
  margin-top: 2px;
  padding: 16px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(20, 20, 52, 0.92) 0%, rgba(13, 13, 33, 0.98) 100%);
  border: 1px solid rgba(115, 131, 255, 0.18);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transform-origin: center top;
  will-change: transform;
}

.hero-preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 6px 6px 14px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.9rem;
}

.hero-preview-accent {
  color: #8fa2ff;
  font-size: 0.95rem;
}

.hero-preview-score {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.hero-score-box {
  min-height: 118px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-score-box strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.hero-score-box span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.72;
  max-width: 12ch;
}

.hero-mini-grid {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(90, 100, 255, 0.055);
  border: 1px solid rgba(102, 126, 234, 0.14);
}

.hero-mini-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
}

.hero-mini-cell {
  aspect-ratio: 1;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.hero-mini-cell.is-hit {
  background: linear-gradient(135deg, rgba(123, 146, 255, 0.86) 0%, rgba(158, 103, 226, 0.9) 100%);
  border-color: transparent;
  box-shadow: 0 0 18px rgba(121, 132, 255, 0.14);
}

.hero-preview-foot {
  margin-top: 18px;
  padding: 16px 18px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.hero-preview-foot strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
}

.hero-preview-foot p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.72;
  max-width: 18ch;
}

.hero-kinetic-strip {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
}

.hero-kinetic-track {
  display: flex;
  width: max-content;
  padding: 12px 0;
  animation: hero-marquee 26s linear infinite;
  will-change: transform;
}

.hero-kinetic-group {
  display: flex;
  flex-shrink: 0;
  gap: 34px;
  padding-right: 34px;
  min-width: max-content;
}

.hero-kinetic-track span {
  position: relative;
  padding-left: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.hero-kinetic-track span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8ea5ff, #c9d4ff);
  transform: translateY(-50%);
  box-shadow: 0 0 14px rgba(142, 165, 255, 0.26);
}

@keyframes hero-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--hero-marquee-distance, 50%))); }
}

.battleship-shell {
  position: relative;
  padding: 1.6rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(102, 126, 234, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(18, 18, 42, 0.96) 0%, rgba(10, 10, 24, 0.98) 100%);
  border: 1px solid rgba(139, 156, 247, 0.18);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.battleship-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.battleship-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.battleship-topbar h3 {
  font-size: 1.55rem;
}

.battleship-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.battleship-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.86rem;
}

.battleship-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.board-panel {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.board-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.board-panel-head h4 {
  font-size: 1.02rem;
}

.board-panel-head span {
  color: var(--text-muted);
  font-size: 0.84rem;
  text-align: right;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.38rem;
}

.board-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(139, 156, 247, 0.12);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.board-cell-enemy {
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.board-cell-enemy:hover:not(.is-disabled) {
  transform: translateY(-1px);
  border-color: rgba(139, 156, 247, 0.38);
  background: rgba(102, 126, 234, 0.09);
}

.board-cell.is-ship {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.22), rgba(118, 75, 162, 0.22));
  border-color: rgba(139, 156, 247, 0.32);
}

.board-cell.is-miss::after {
  content: '';
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.9);
}

.board-cell.is-hit {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.78), rgba(118, 75, 162, 0.95));
  border-color: transparent;
}

.board-cell.is-hit::before,
.board-cell.is-hit::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  transform-origin: center;
}

.board-cell.is-hit::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.board-cell.is-hit::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.board-cell.is-sunk {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 20px rgba(102, 126, 234, 0.2);
}

.board-cell.is-revealed:not(.is-hit) {
  background: rgba(102, 126, 234, 0.14);
}

.board-cell.is-disabled {
  cursor: default;
}

.board-cell.is-disabled:hover {
  transform: none;
}

.battleship-controls {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.battleship-status-box {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.battleship-status-box strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-bright);
}

.battleship-status-box p {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 56ch;
}

.battleship-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.battleship-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 24, 0.68);
  z-index: 2;
}

.battleship-overlay.is-hidden {
  display: none;
}

.battleship-overlay-card {
  max-width: 430px;
  text-align: center;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(13, 13, 30, 0.95);
  border: 1px solid rgba(139, 156, 247, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.overlay-title {
  margin-bottom: 0.85rem;
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.battleship-overlay-card p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

.battle-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.battle-rule-card,
.how-to-use-card,
.closing-cta {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.battle-rule-card {
  padding: 1.25rem;
  border-radius: 20px;
}

.battle-rule-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.battle-rule-card p {
  color: var(--text);
  line-height: 1.7;
}

.pricing-card-game {
  text-align: left;
}

.pricing-card-game .pricing-price,
.pricing-card-game .pricing-per-month,
.pricing-card-game .pricing-savings,
.pricing-card-game .pricing-name {
  text-align: left;
}

.pricing-game-points {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.pricing-game-points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.94rem;
  margin-bottom: 0.55rem;
}

.pricing-game-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}

.how-to-use-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  padding: 1.6rem;
  border-radius: 28px;
}

.how-to-use-copy h2 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.how-to-use-copy p + p {
  margin-top: 0.85rem;
}

.how-to-use-list {
  display: grid;
  gap: 0.85rem;
}

.how-to-use-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.how-to-use-item span {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
}

.how-to-use-item p {
  color: var(--text);
  line-height: 1.6;
}

.closing-cta {
  padding: 2rem;
  border-radius: 28px;
  text-align: center;
}

.closing-cta h2 {
  margin-bottom: 0.9rem;
}

.closing-cta p {
  max-width: 640px;
  margin: 0 auto 1.4rem;
  color: var(--text);
}

@media (max-width: 1180px) {
  .game-hero {
    padding-top: 128px;
    min-height: auto;
  }

  .game-hero-grid {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .game-hero-copy {
    padding-top: 0;
  }

  .hero-title-group {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "kicker"
      "support";
    row-gap: 18px;
  }

  .hero-support-claim h1 {
    max-width: 11ch;
  }

  .hero-preview-card {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 1024px) {
  .how-to-use-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .battleship-layout,
  .battle-rules-grid,
  .hero-preview-score {
    grid-template-columns: 1fr;
  }

  .battleship-controls,
  .battleship-topbar {
    flex-direction: column;
  }

  .battleship-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .header {
    padding-top: 10px;
  }

  .nav {
    min-height: 62px;
    padding: 10px 14px;
  }

  .nav-links {
    background: rgba(8, 8, 20, 0.95);
  }

  .game-hero {
    padding: 112px 0 32px;
  }

  .hero-preview-card,
  .battleship-shell,
  .how-to-use-card,
  .closing-cta {
    border-radius: 22px;
  }

  .hero-title-group {
    margin: 16px 0 22px;
  }

  .hero-lead-line {
    font-size: clamp(3.4rem, 14vw, 4.9rem);
    line-height: 0.9;
    white-space: normal;
  }

  .hero-support-kicker-wrap {
    gap: 14px;
  }

  .hero-support-kicker-line {
    height: 86px;
  }

  .hero-support-kicker {
    font-size: 0.76rem;
    max-width: 12ch;
  }

  .hero-support-claim h1 {
    font-size: clamp(2.05rem, 7.2vw, 2.75rem);
    line-height: 1.02;
    max-width: 12ch;
  }

  .game-hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .game-hero-actions .btn {
    min-height: 60px;
  }

  .board-panel {
    padding: 0.85rem;
  }

  .board-grid {
    gap: 0.28rem;
  }

  .board-cell {
    border-radius: 8px;
  }
}

@media (max-width: 560px) {
  .game-hero-actions,
  .battleship-actions {
    flex-direction: column;
  }

  .landing-badge {
    width: 100%;
  }

  .game-hero-actions .btn,
  .battleship-actions .btn,
  .battleship-overlay-card .btn {
    width: 100%;
  }

  .hero-preview-foot p {
    max-width: none;
  }

  .battleship-shell {
    padding: 1rem;
  }

  .board-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-panel-head span {
    text-align: left;
  }

  .hero-kinetic-track span {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
  }
}
