/* ═══════════════════════════════════════════
   TendoVPN Landing — Design System & Effects
   ═══════════════════════════════════════════ */

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

:root {
  /* Colors */
  --bg-deepest: #050510;
  --bg-dark: #0a0a1a;
  --bg-card: #0f0e1a;
  --bg-card-hover: #141328;
  --border-subtle: rgba(139, 92, 246, 0.12);
  --border-glow: rgba(139, 92, 246, 0.35);

  --text-primary: #f0eef6;
  --text-secondary: rgba(224, 218, 242, 0.65);
  --text-muted: rgba(224, 218, 242, 0.4);

  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-bright: #c4b5fd;
  --accent-dim: #6d28d9;
  --accent-glow: rgba(139, 92, 246, 0.5);

  --gradient-main: linear-gradient(135deg, #7c3aed, #6366f1, #8b5cf6);
  --gradient-card: linear-gradient(180deg, rgba(139,92,246,0.06) 0%, transparent 60%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99,102,241,0.15), transparent);

  --success: #34d399;
  --error: #f87171;

  /* Spacing */
  --section-pad: clamp(60px, 10vh, 120px);
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deepest);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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


/* ═══════════════════════════════════════════
   PIXEL BLAST CANVAS BACKGROUND
   ═══════════════════════════════════════════ */

#pixel-blast {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}


/* ═══════════════════════════════════════════
   DOCK NAVIGATION (macOS-style)
   ═══════════════════════════════════════════ */

.dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  animation: dockSlideUp 0.8s var(--ease-out-expo) 0.5s both;
}

@keyframes dockSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(80px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dock-container {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(15, 14, 26, 0.75);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    0 0 0 1px rgba(139,92,246,0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.dock-item {
  position: relative;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.3s var(--ease-spring);
  cursor: pointer;
}

.dock-item svg {
  width: 22px; height: 22px;
  transition: transform 0.3s var(--ease-spring);
}

.dock-item:hover {
  color: var(--accent-bright);
  background: rgba(139, 92, 246, 0.12);
  transform: scale(1.35) translateY(-8px);
}

/* Adjacent items scale slightly */
.dock-item:hover + .dock-item,
.dock-item:has(+ .dock-item:hover) {
  transform: scale(1.15) translateY(-3px);
}

.dock-item.active {
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.15);
}

.dock-item::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  padding: 4px 10px;
  background: rgba(15, 14, 26, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease-out-expo);
}

.dock-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}


/* ═══════════════════════════════════════════
   SECTIONS & LAYOUT
   ═══════════════════════════════════════════ */

.section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════
   GRADUAL BLUR SCROLL ANIMATION
   ═══════════════════════════════════════════ */

.gradual-blur-item {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(40px);
  transition: all 1s var(--ease-out-expo);
}

.gradual-blur-item.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Staggered children */
.gradual-blur-item.visible .glow-card,
.gradual-blur-item.visible .feature-card,
.gradual-blur-item.visible .faq-item {
  animation: staggerFadeIn 0.6s var(--ease-out-expo) both;
}

.gradual-blur-item.visible .glow-card:nth-child(1) { animation-delay: 0.1s; }
.gradual-blur-item.visible .glow-card:nth-child(2) { animation-delay: 0.2s; }
.gradual-blur-item.visible .glow-card:nth-child(3) { animation-delay: 0.3s; }
.gradual-blur-item.visible .glow-card:nth-child(4) { animation-delay: 0.4s; }
.gradual-blur-item.visible .glow-card:nth-child(5) { animation-delay: 0.5s; }
.gradual-blur-item.visible .glow-card:nth-child(6) { animation-delay: 0.6s; }

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


/* ═══════════════════════════════════════════
   BORDER GLOW CARDS (ReactBits-inspired)
   ═══════════════════════════════════════════ */

.glow-card {
  position: relative;
  border-radius: var(--radius-lg);
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.glow-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-card:hover .glow-border {
  opacity: 1;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from 0deg at var(--mouse-x) var(--mouse-y),
    transparent 0deg,
    var(--accent) 60deg,
    var(--accent-light) 120deg,
    rgba(99,102,241,0.8) 180deg,
    var(--accent-dim) 240deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
  to { --border-angle: 360deg; }
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--mouse-x) var(--mouse-y),
    rgba(139,92,246,0.08),
    transparent 60%
  );
  pointer-events: none;
}

.card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 28px;
  border-radius: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: background 0.3s, border-color 0.3s;
}

.glow-card:hover .card-inner {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: var(--gradient-hero);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeSlideDown 0.8s var(--ease-out-expo) 0.2s both;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: clamp(52px, 12vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  animation: fadeSlideDown 0.8s var(--ease-out-expo) 0.35s both;
}

.hero-title-line {
  display: block;
}

.hero-title-line.accent {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px var(--accent-glow));
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeSlideDown 0.8s var(--ease-out-expo) 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeSlideDown 0.8s var(--ease-out-expo) 0.65s both;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  animation: fadeSlideDown 0.8s var(--ease-out-expo) 0.8s both;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-suffix {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-icon, .btn-icon-right { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1.5px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-outline:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
  color: var(--accent-bright);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255,255,255,0.15); }
  50% { box-shadow: 0 4px 32px rgba(124, 58, 237, 0.55), 0 0 60px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255,255,255,0.15); }
}


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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing-card .card-inner {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.pricing-card.popular {
  transform: scale(1.04);
}

.pricing-card.popular .card-inner {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(180deg, rgba(139,92,246,0.08) 0%, var(--bg-card) 40%);
}

.popular-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-main);
  border-radius: 0 0 10px 10px;
  z-index: 5;
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.plan-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--accent-light);
}

.plan-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
}

.price-value {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-light);
}

.plan-save {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: rgba(52, 211, 153, 0.08);
  border-radius: 100px;
  margin: 0 auto 12px;
}

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

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
}

.plan-features svg {
  width: 16px; height: 16px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.buy-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
}

.payment-badge svg { width: 16px; height: 16px; }


/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card .card-inner {
  min-height: 200px;
}

.feature-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--accent-light);
  transition: all 0.3s var(--ease-out-expo);
}

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

.feature-card:hover .feature-icon {
  background: rgba(139, 92, 246, 0.18);
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.2);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

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


/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item .card-inner {
  padding: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

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

.faq-arrow {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.4s var(--ease-out-expo), color 0.2s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px 100px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.footer-logo {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  border-radius: 10px;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════
   PAYMENT MODAL
   ═══════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-out-expo);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 420px;
  animation: modalIn 0.45s var(--ease-spring);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

@keyframes modalIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal .card-inner {
  padding: 36px 32px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.modal-step { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.modal-step.hidden { display: none; }

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.08);
  border-radius: 50%;
}

.modal-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.modal-icon.success-icon {
  color: var(--success);
  background: rgba(52, 211, 153, 0.12);
  animation: scaleIn 0.6s var(--ease-spring);
}

.modal-icon.error-icon {
  color: var(--error);
  background: rgba(248, 113, 113, 0.12);
  animation: shake 0.5s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.modal-step h3 { font-size: 20px; font-weight: 700; }
.modal-step p { font-size: 14px; color: var(--text-secondary); max-width: 300px; }

.tg-login-wrap {
  margin: 16px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-plan-info {
  padding: 10px 18px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
}

.confirm-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  width: 100%;
}

.confirm-user img {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-dim);
}

.confirm-user-info {
  text-align: left;
}

.confirm-user-name {
  font-size: 14px;
  font-weight: 600;
}

.confirm-user-id {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.confirm-plan {
  padding: 14px 18px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
}

.confirm-plan .plan-price-confirm {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-bright);
}

.spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 8px;
}

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

.processing-status {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.success-icon { filter: drop-shadow(0 0 16px rgba(52, 211, 153, 0.4)); }
.error-icon { filter: drop-shadow(0 0 16px rgba(248, 113, 113, 0.4)); }


/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  background: rgba(15, 14, 26, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-out-expo);
  z-index: 3000;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.popular { transform: none; }
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 16px; }
  .stat-value { font-size: 24px; }

  .dock-container { gap: 2px; padding: 6px 10px; }
  .dock-item { width: 38px; height: 38px; }
  .dock-item svg { width: 20px; height: 20px; }

  .modal .card-inner { padding: 28px 20px; }
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }

  .section { padding: clamp(40px, 8vh, 80px) 16px; }

  .hero-title { font-size: clamp(44px, 15vw, 72px); }
  .hero-subtitle { font-size: 15px; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 300px; justify-content: center; }

  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 40px; height: 1px; }

  .dock { bottom: 12px; }
  .footer { padding-bottom: 80px; }
}

/* ═══════════════════════════════════════════
   SUCCESS / FAILED PAGES
   ═══════════════════════════════════════════ */

.result-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.result-card {
  max-width: 420px;
}

.result-card .card-inner {
  padding: 48px 36px;
}

.result-icon {
  font-size: 64px;
  margin-bottom: 16px;
}
