/* CSS Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #10b981;
  --background-color: #0f172a;
  --card-bg: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo span {
  font-family: 'Unbounded', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #7dd3fc 46%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(14, 165, 233, 0.26);
}

.logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.36),
    0 0 18px rgba(59, 130, 246, 0.58),
    0 8px 22px rgba(2, 6, 23, 0.3);
}

.header-nav {
  display: flex;
  gap: 30px;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.header-nav a:hover {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 70px);
  padding: 120px 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.02) 0%, rgba(2, 6, 23, 0.18) 60%, rgba(15, 23, 42, 0.88) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.06) 48%, rgba(2, 6, 23, 0.22) 100%),
    url('/img/vpnbot-hero-bg.png') center 42% / cover no-repeat,
    #020617;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(14, 165, 233, 0.14), rgba(14, 165, 233, 0) 30%),
    linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.42) 100%);
  opacity: 0.54;
}

.hero::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.22) 0%, transparent 20%, transparent 80%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.68) 100%);
  opacity: 0.38;
}

.hero .container {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 310px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 980px;
  padding: 18px 26px 22px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 50%, rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.18) 62%, transparent 78%);
  filter: drop-shadow(0 22px 50px rgba(2, 6, 23, 0.55));
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #dff7ff;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  text-shadow:
    0 4px 14px rgba(2, 6, 23, 0.92),
    0 0 22px rgba(14, 165, 233, 0.62),
    0 0 46px rgba(14, 165, 233, 0.38);
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: #dff7ff;
  font-weight: 700;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  text-shadow:
    0 3px 10px rgba(2, 6, 23, 0.96),
    0 0 16px rgba(14, 165, 233, 0.62),
    0 0 32px rgba(14, 165, 233, 0.34);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Features */
.features {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(8, 13, 30, 0.86) 0%, rgba(15, 23, 42, 0) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: 18px;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Tariffs */
.tariffs {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.tariff-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px;
  transition: var(--transition);
}

.tariff-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tariff-card.featured {
  border-color: var(--primary-color);
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.1) 0%, var(--card-bg) 100%);
}

.tariff-header {
  text-align: center;
  margin-bottom: 20px;
}

.tariff-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.tariff-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
}

.tariff-duration {
  color: var(--text-secondary);
  font-size: 14px;
}

.tariff-features {
  list-style: none;
  margin-bottom: 25px;
}

.tariff-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.tariff-features li::before {
  content: '✓';
  color: var(--success-color);
  font-weight: bold;
}

.tariff-footer {
  text-align: center;
}

/* Login Section */
.login-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 1) 100%);
}

.login-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.login-card h2 {
  text-align: center;
  margin-bottom: 10px;
}

.login-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.login-form {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.login-form input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--background-color);
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
}

.login-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.subscription-result {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.subscription-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
}

.status-badge.trial_active {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning-color);
}

.status-badge.expired {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error-color);
}

.subscription-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.detail-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 12px;
}

.detail-label {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 5px;
}

.detail-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.subscription-locations {
  margin-bottom: 30px;
}

.subscription-locations h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.locations-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(79, 70, 229, 0.2);
  color: var(--primary-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.subscription-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.action-info {
  font-size: 14px;
  color: var(--success-color);
  animation: fadeIn 0.3s ease;
}

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

.qr-section {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.qr-container {
  margin-bottom: 15px;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #334155 0%, #4f46e5 100%);
  border-radius: 16px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
}

.qr-text {
  color: var(--text-secondary);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

/* Instructions */
.instructions {
  padding: 80px 0;
}

.instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.instruction-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px;
  transition: var(--transition);
}

.instruction-card:hover {
  border-color: var(--primary-color);
}

.instruction-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 20px;
}

.instruction-card h3 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 10px;
}

.instruction-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.instruction-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.instruction-steps li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.instruction-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.instruction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.instruction-actions .btn {
  flex: 1 1 160px;
  padding-inline: 14px;
  text-align: center;
}

.video-instructions {
  text-align: center;
  margin-top: 50px;
}

.video-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.video-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.video-icon {
  font-size: 28px;
}

/* Support */
.support {
  padding: 80px 0;
}

.support-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.support-card h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.support-desc {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.support-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.faq {
  margin-top: 40px;
  text-align: left;
}

.faq h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.faq details {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq details summary {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  transition: var(--transition);
}

.faq details summary::after {
  content: '+';
  float: right;
  transition: var(--transition);
}

.faq details[open] summary {
  color: var(--primary-color);
}

.faq details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq details p {
  padding: 0 20px 15px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Footer */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
}

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

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

.footer-logo svg {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 70px);
    padding: 90px 0;
    background-position: center 40%;
  }

  .hero::after {
    opacity: 0.44;
  }

  .hero-content {
    padding: 14px 16px 18px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .logo {
    gap: 10px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .header-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: var(--transition);
  }

  .header-nav.active {
    transform: translateY(0);
  }

  .header-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .login-form {
    flex-direction: column;
  }

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

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

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.loading::after {
  content: '...';
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60% { content: '...'; }
}
