/* ==================== CSS Variables ==================== */
:root {
  --primary: #e94560;
  --primary-dark: #c73659;
  --secondary: #00d4ff;
  --bg-dark: #0f0f23;
  --bg-card: #1a1a2e;
  --bg-light: #16213e;
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-dark: #1a1a2e;
  --border: rgba(255, 255, 255, 0.1);
  --gradient-1: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --gradient-2: linear-gradient(135deg, #e94560 0%, #c73659 100%);
  --gradient-3: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  --gradient-pro: linear-gradient(135deg, #ff6b35, #f7c600);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --font-main: 'Inter', 'Noto Sans Arabic', sans-serif;
}

/* ==================== Reset & Base ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* RTL Support */
html[dir="rtl"] body {
  text-align: right;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== Language Bar ==================== */
.language-bar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

html[dir="rtl"] .language-bar {
  right: auto;
  left: 20px;
}

.lang-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary);
  color: white;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-2);
  color: white;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-gradient {
  background: var(--gradient-pro);
  color: #000;
  font-weight: 700;
}

.btn-full {
  width: 100%;
}

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-1);
  padding: 100px 0 150px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--gradient-2);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Mockup */
.hero-image {
  position: relative;
  z-index: 2;
}

.mockup {
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mockup-header {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-content {
  padding: 20px;
}

.location-card {
  background: var(--gradient-1);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.location-header {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-badge {
  background: var(--gradient-pro);
  color: #000;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.location-body {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.flag {
  width: 60px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.country {
  font-size: 18px;
  font-weight: 600;
}

.region {
  font-size: 13px;
  color: var(--text-muted);
}

.ip-row, .tz-row {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 13px;
  margin-top: 8px;
}

.ip-row {
  color: var(--secondary);
  font-family: 'Consolas', monospace;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  color: var(--bg-dark);
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 120px;
}

/* ==================== Features Section ==================== */
.features {
  padding: 100px 0;
  background: var(--bg-dark);
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ==================== Pricing Section ==================== */
.pricing {
  padding: 100px 0;
  background: var(--gradient-1);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(233, 69, 96, 0.2);
}

.pricing-card.lifetime {
  border-color: #f7c600;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 198, 0, 0.1));
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.lifetime-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  font-size: 24px;
}

.plan-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.plan-header h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.currency {
  font-size: 24px;
  margin-top: 8px;
}

.amount {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}

.plan-period {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

.plan-features {
  list-style: none;
  margin-bottom: 24px;
}

.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.plan-features li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  width: 100%;
}

.payment-methods {
  text-align: center;
  margin-top: 40px;
}

.payment-methods p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.payment-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.payment-logos img {
  height: 30px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.local-payment {
  color: var(--secondary);
  font-weight: 600;
}

/* ==================== FAQ Section ==================== */
.faq {
  padding: 100px 0;
  background: var(--bg-dark);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.faq-item {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.faq-item h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--secondary);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ==================== Footer ==================== */
.footer {
  background: var(--bg-card);
  padding: 60px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.footer-links a {
  display: block;
  color: var(--text-white);
  text-decoration: none;
  padding: 6px 0;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

/* ==================== Modal ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  border: 1px solid var(--border);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
}

.modal-close:hover {
  color: white;
}

.modal h2 {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
}

#modalPlanInfo {
  text-align: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: var(--primary);
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.payment-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(233, 69, 96, 0.1);
}

.payment-option input {
  display: none;
}

.secure-badge {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .language-bar {
    top: auto;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
  }

  html[dir="rtl"] .language-bar {
    left: auto;
    right: 50%;
    transform: translateX(50%);
  }

  .hero-buttons {
    flex-direction: column;
  }
}
