* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  overflow-x: hidden;
  min-height: 100vh;
  color-scheme: dark;
}

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

/* Language Switcher */
.language-switcher {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 10;
}

.lang-btn {
  background: rgba(102, 126, 234, 0.1);
  color: #e2e8f0;
  border: 2px solid rgba(102, 126, 234, 0.5);
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.lang-btn:hover,
.lang-btn.active {
  background: rgba(102, 126, 234, 0.3);
  border-color: #667eea;
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Hide inactive language content */
.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

/* Navigation */
.navbar {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0px 20px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  min-height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  justify-content: flex-end;
}

.nav-menu li a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #667eea;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

/* Header */
header {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 30%, #667eea 70%, #764ba2 100%);
  color: white;
  padding: 8rem 0 4rem 0;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dance" patternUnits="userSpaceOnUse" width="30" height="30"><circle cx="15" cy="15" r="2" fill="rgba(102,126,234,0.1)"/><circle cx="15" cy="15" r="8" fill="none" stroke="rgba(102,126,234,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23dance)"/></svg>');
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.hero {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite alternate;
}

.hero .subtitle {
  font-size: 1.4rem;
  margin: auto;
  font-weight: 400;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 600px;
  line-height: 1.8;
  text-align: center;
}

/* Subscription Section */
.subscription {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  position: relative;
}

.subscription::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" patternUnits="userSpaceOnUse" width="60" height="60"><circle cx="30" cy="30" r="2" fill="rgba(102,126,234,0.1)"/><line x1="30" y1="30" x2="60" y2="30" stroke="rgba(102,126,234,0.1)" stroke-width="1"/><line x1="30" y1="30" x2="30" y2="60" stroke="rgba(102,126,234,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
  opacity: 0.3;
}

.subscription-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.plan-selection {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.plan-option {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.plan-option:hover {
  border-color: #764ba2;
  background: rgba(118, 75, 162, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(118, 75, 162, 0.2);
}

.plan-option.selected {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.plan-option input[type="radio"] {
  display: none;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.original-price {
  font-size: 1.4rem;
  color: #e2e8f0;
  opacity: 0.6;
  text-decoration: line-through;
}

.final-price {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
  font-weight: 800;
}

.plan-description {
  color: #e2e8f0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.promo-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(102, 126, 234, 0.2);
  position: relative;
}

.promo-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.2rem;
}

.promo-message.success {
  color: #48bb78;
}

.promo-message.error {
  color: #e53e3e;
}

.promo-input {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.promo-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.apply-promo {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.apply-promo:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.checkout-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(102, 126, 234, 0.2);
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.StripeElement {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.StripeElement--focus {
  border-color: #667eea;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.checkout-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.2rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  width: 100%;
  margin-top: 2rem;
}

.checkout-btn:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.total-section {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.total-pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.total-original {
  font-size: 1.2rem;
  color: #e2e8f0;
  opacity: 0.6;
  text-decoration: line-through;
}

.total-amount {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.total-description {
  color: #e2e8f0;
  opacity: 0.9;
  text-align: center;
  font-size: 0.9rem;
}

.message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
}

.message.success {
  background: rgba(72, 187, 120, 0.2);
  color: #48bb78;
  border: 1px solid rgba(72, 187, 120, 0.3);
}

.message.error {
  background: rgba(229, 62, 62, 0.2);
  color: #e53e3e;
  border: 1px solid rgba(229, 62, 62, 0.3);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(102, 126, 234, 0.2);
  position: relative;
}

footer p {
  opacity: 0.9;
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
  }
  50% {
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.8), 0 0 60px rgba(102, 126, 234, 0.4);
  }
}

/* Medium screens (tablets) */
@media (max-width: 1500px) and (min-width: 769px) {
  .navbar .container {
    position: relative;
    padding-right: 140px; /* Make space for language switcher */
  }

  .nav-menu {
    gap: 1rem; /* Reduce gap between menu items */
  }

  .logo {
    font-size: 1.3rem;
  }

  .language-switcher {
    right: 10px; /* Move closer to edge */
  }

  .lang-btn {
    padding: 6px 12px; /* Make buttons smaller */
    margin: 0 3px;
    font-size: 0.9rem;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

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

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

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

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    gap: 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li a {
    color: #e2e8f0;
    font-size: 1.2rem;
  }

  .nav-menu li a:hover,
  .nav-menu li a.active {
    color: #667eea;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
  }

  .language-switcher {
    position: static;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding-top: 20px;
    margin-top: 20px;
    width: 100%;
  }

  .subscription-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .plan-option {
    padding: 1.5rem;
  }

  .checkout-form {
    padding: 2rem;
  }
}

/* Ensure hamburger is hidden on desktop */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
}

/* Success overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.success-overlay.show {
  opacity: 1;
  visibility: visible;
}

.success-message {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.success-message .icon {
  font-size: 4rem;
  color: #48bb78;
  margin-bottom: 1rem;
}

.success-message h2 {
  color: #2d3748;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.success-message p {
  color: #4a5568;
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* Redirect overlay */
.redirect-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.redirect-overlay.show {
  opacity: 1;
  visibility: visible;
}

.redirect-message {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(102, 126, 234, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

.redirect-message .icon {
  font-size: 4rem;
  color: #667eea;
  margin-bottom: 1rem;
  animation: bounce 1s ease-in-out infinite;
}

.redirect-message h2 {
  color: #2d3748;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.redirect-message p {
  color: #4a5568;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.redirect-message .loading-dots {
  display: inline-block;
  margin-top: 1rem;
}

.redirect-message .loading-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #667eea;
  margin: 0 2px;
  animation: loading 1.4s ease-in-out infinite both;
}

.redirect-message .loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.redirect-message .loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.redirect-message .loading-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes loading {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}