/* ═══════════════════════════════════════════════════════
   GloballVPN — Design System
   Glassmorphism / Liquid Glass / Premium Dark Theme
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ──────────────────────────────────── */
:root {
  /* Colors */
  --bg-primary: #050514;
  --bg-secondary: #0a0a2e;
  --bg-tertiary: #111140;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.3);
  --accent-secondary: #7c3aed;
  --accent-secondary-glow: rgba(124, 58, 237, 0.3);
  --accent-gradient: linear-gradient(135deg, #00d4ff, #7c3aed);
  --accent-gradient-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
  --text-primary: #f0f0ff;
  --text-secondary: rgba(240, 240, 255, 0.6);
  --text-muted: rgba(240, 240, 255, 0.35);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.3);

  /* Glassmorphism */
  --blur: 20px;
  --blur-heavy: 40px;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* ─── Animated Background ────────────────────────────── */
.bg-animated {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.25), transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.bg-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 70%);
  bottom: -100px;
  left: -150px;
  animation-delay: -7s;
}

.bg-orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.02); }
}

/* ─── Container ──────────────────────────────────────── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─── Glass Card ─────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.glass--strong {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.glass--accent {
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.05);
}

.glass--accent:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}

/* ─── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.nav--scrolled {
  background: rgba(5, 5, 20, 0.85);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
  border-radius: 1px;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile menu */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__burger.active span:nth-child(2) {
  opacity: 0;
}

.nav__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

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

.btn--secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.btn--danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn--danger:hover {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 4px 20px var(--danger-glow);
}

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

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

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

.btn--icon {
  padding: 10px;
  border-radius: var(--radius-sm);
}

/* ─── Hero Section ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
}

/* Hero Video Background */
.hero__video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.1);
  will-change: auto;
}

.hero__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(5, 5, 20, 0.55) 0%, rgba(5, 5, 20, 0.85) 100%),
    linear-gradient(180deg, rgba(5, 5, 20, 0.45) 0%, rgba(5, 5, 20, 0.72) 55%, rgba(5, 5, 20, 0.97) 100%);
}


.hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  color: var(--accent);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

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

.hero__subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Sections ───────────────────────────────────────── */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Features Grid ──────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

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

.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  background: var(--accent-gradient-soft);
  transition: var(--transition);
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--accent-glow);
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Pricing Cards ──────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px 32px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.pricing-card--popular {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.08);
  transform: scale(1.03);
}

.pricing-card--popular::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 40px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}

.pricing-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.pricing-card__price span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-card__period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-card__features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

.pricing-card__save {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  margin-bottom: 20px;
}

/* ─── Download Section ───────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.download-card {
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.download-card:hover {
  transform: translateY(-4px);
}

.download-card__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.download-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.download-card__app {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Auth Modal / Page ──────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
}

.auth-box {
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  position: relative;
}

.auth-box__logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-box__logo h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 12px;
}

.auth-box__logo h2 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 10px 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.auth-tab.active {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.auth-tab:hover:not(.active) {
  color: var(--text-secondary);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

/* ─── Form Elements ──────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

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

.form-input--textarea {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
  animation: fadeInUp 0.2s ease;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* ─── Dashboard ──────────────────────────────────────── */
.dashboard {
  padding: 100px 0 60px;
  min-height: 100vh;
}

.dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.dashboard__welcome h1 {
  font-size: 1.8rem;
  font-weight: 800;
}

.dashboard__welcome p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dash-card {
  padding: 28px;
}

.dash-card--full {
  grid-column: 1 / -1;
}

.dash-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-card__title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-card__title-icon {
  font-size: 1.2rem;
}

/* Subscription card */
.sub-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.sub-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
}

.sub-status__dot--inactive {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: none;
}

.sub-status__text {
  font-weight: 600;
}

.sub-status__text--active {
  color: var(--success);
}

.sub-status__text--inactive {
  color: var(--danger);
}

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

.sub-info__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-info__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sub-info__value {
  font-size: 1rem;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar__fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 1s ease;
}

/* VPN Key display */
.vpn-key-display {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.vpn-key-display__text {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  word-break: break-all;
  line-height: 1.6;
  padding-right: 40px;
}

.vpn-key-display__copy {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.vpn-key-display__copy:hover {
  background: var(--glass-bg-hover);
  color: var(--accent);
}

.vpn-key-display__copy.copied {
  color: var(--success);
}

/* Referral card */
.referral-link {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.referral-link input {
  flex: 1;
}

.referral-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.referral-stat {
  text-align: center;
}

.referral-stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.referral-stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Profile info */
.profile-info {
  display: grid;
  gap: 16px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.profile-row__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-row__value {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ─── Toast / Notification ───────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  backdrop-filter: blur(var(--blur));
  max-width: 400px;
}

.toast--success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.toast--error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.toast--info {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent);
}

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

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

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__brand {
  font-weight: 700;
  font-size: 1.1rem;
}

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

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

/* ─── Animations ─────────────────────────────────────── */
@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.fade-in--delay-1 { animation-delay: 0.1s; }
.fade-in--delay-2 { animation-delay: 0.2s; }
.fade-in--delay-3 { animation-delay: 0.3s; }
.fade-in--delay-4 { animation-delay: 0.4s; }

/* SPA page transition */
.page-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page-view.active {
  display: block;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card--popular {
    transform: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 20, 0.95);
    backdrop-filter: blur(var(--blur-heavy));
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links .nav__link {
    font-size: 1.2rem;
  }

  .nav__burger {
    display: flex;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

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

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

  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-box {
    padding: 28px 20px;
  }

  .dashboard__header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .referral-link {
    flex-direction: column;
  }

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

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.8rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .pricing-card {
    padding: 28px 20px;
  }

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

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .dash-card {
    padding: 20px 16px;
  }
}

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ─── Selection ──────────────────────────────────────── */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════
   ПАРТНЁРСКАЯ ПРОГРАММА — лендинг (#/partners) + кабинет (#/partner)
   ═══════════════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }

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

.pp-hero { padding-top: 120px; }

/* Уровни (лендинг) */
.pp-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.pp-level {
  padding: 32px 28px;
  border-radius: var(--radius);
  text-align: center;
}
.pp-level__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 4px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  margin-bottom: 16px;
}
.pp-level__pct {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
}
.pp-level__desc { color: var(--text-secondary); font-size: 0.92rem; }

/* Шаги (лендинг) */
.pp-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.pp-step { padding: 28px 24px; border-radius: var(--radius); }
.pp-step__num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #fff;
  background: var(--accent-gradient);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.pp-step__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.pp-step__desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

/* Калькулятор */
.pp-calc-box { max-width: 640px; margin: 0 auto; padding: 36px 32px; border-radius: var(--radius-lg); }
.pp-calc-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.pp-calc-row label { color: var(--text-secondary); font-size: 0.9rem; }
.pp-calc-row output { font-weight: 800; min-width: 84px; text-align: right; }
.pp-range {
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 5px;
  background: rgba(255,255,255,0.12);
  outline: none;
}
.pp-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-gradient);
  cursor: pointer; border: 2px solid #fff;
  box-shadow: 0 2px 10px var(--accent-glow);
}
.pp-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #00d4ff; cursor: pointer; border: 2px solid #fff;
}
.pp-calc-result {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}
.pp-calc-result__item { text-align: center; }
.pp-calc-result__value { font-size: 2rem; font-weight: 900; line-height: 1.1; }
.pp-calc-result__label { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.pp-calc-note { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 20px; }

/* FAQ */
.pp-faq { display: flex; flex-direction: column; gap: 12px; }
.pp-faq__item { border-radius: var(--radius-sm); overflow: hidden; }
.pp-faq__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-primary); font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 600; text-align: left;
}
.pp-faq__q span { font-size: 1.4rem; color: var(--accent); transition: var(--transition); flex-shrink: 0; }
.pp-faq__item.open .pp-faq__q span { transform: rotate(45deg); }
.pp-faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.pp-faq__item.open .pp-faq__a { max-height: 600px; }
.pp-faq__a p { padding: 0 22px 20px; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

/* ─── Кабинет партнёра ─── */
.pc-link-wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.pc-link-left { flex: 1; min-width: 260px; }
.pc-qr { flex-shrink: 0; }
.pc-qr img { display: block; }

.pc-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.pc-balance { padding: 22px 24px; border-radius: var(--radius); }
.pc-balance__label { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 8px; }
.pc-balance__value { font-size: 1.7rem; font-weight: 900; line-height: 1; }

.pc-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.pc-level { padding: 18px 20px; border-radius: var(--radius-sm); }
.pc-level__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.pc-level__name { color: var(--text-secondary); font-size: 0.88rem; font-weight: 600; }
.pc-level__rate { font-size: 1.5rem; font-weight: 900; }
.pc-level__row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 4px 0; color: var(--text-secondary); }
.pc-level__row b { color: var(--text-primary); }

.pc-list { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.pc-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}
.pc-row__main { min-width: 0; }
.pc-row__sub { color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.pc-row__right { text-align: right; flex-shrink: 0; }
.pc-row__amount { font-weight: 800; font-size: 1.05rem; }
.pc-row__date { color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; }
.pc-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  padding: 2px 8px; border-radius: 6px;
  background: var(--accent-gradient-soft); color: var(--accent);
  margin-right: 8px;
}
.pc-status { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 50px; white-space: nowrap; }
.pc-status--ok { background: rgba(34,197,94,0.15); color: var(--success); }
.pc-status--warn { background: rgba(245,158,11,0.15); color: var(--warning); }
.pc-status--bad { background: rgba(239,68,68,0.15); color: var(--danger); }
.pc-empty { color: var(--text-muted); font-size: 0.9rem; text-align: center; padding: 24px 0; }

/* select в форме вывода */
select.form-input {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300d4ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
select.form-input option { color: #111; background: #fff; }

/* Кабинет: подписи ссылок, сводка сети, вкладки приглашённых */
.pc-link-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.pc-netstats {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  padding: 16px 22px; border-radius: var(--radius); margin-bottom: 24px;
  font-size: 0.92rem; color: var(--text-secondary);
}
.pc-netstats b { color: var(--text-primary); font-weight: 800; }
.pc-ref-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pc-ref-tab {
  padding: 8px 16px; border-radius: 50px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-family: 'Inter', sans-serif; font-size: 0.84rem; font-weight: 600;
  transition: var(--transition);
}
.pc-ref-tab:hover { color: var(--text-primary); border-color: var(--glass-border-hover); }
.pc-ref-tab.active { background: var(--accent-gradient); color: #fff; border-color: transparent; }
#pc-onboard { background: var(--accent-gradient-soft); border-color: var(--glass-border-hover); }

@media (max-width: 640px) {
  .pp-calc-row { grid-template-columns: 1fr auto; }
  .pp-calc-row .pp-range { grid-column: 1 / -1; order: 3; }
  .pc-link-wrap { justify-content: center; text-align: center; }
  .pc-qr { margin: 0 auto; }
}
