/* =================================
   SUBSCRIPTION PAGE - OPTIPLAY
   ================================= */

:root {
  --primary-color: #00bfff;
  --secondary-color: #0080ff;
  --gradient-primary: linear-gradient(135deg, #00bfff, #0080ff);
  --gradient-gold: linear-gradient(135deg, #ffd700, #ff8c00);
  --bg-dark: #0a0f1e;
  --bg-card: rgba(20, 25, 40, 0.8);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
}

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

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

.subscription-main {
  min-height: 100vh;
  padding-top: 80px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.subscription-hero {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(22, 33, 62, 0.8) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

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

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

.page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.page-title i {
  color: var(--primary-color);
  font-size: 2.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.toggle-label {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: 0.4s;
  border-radius: 30px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(30px);
}

.save-badge {
  padding: 8px 16px;
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

/* Plans Section */
.plans-section {
  padding: 60px 0 80px;
  background: var(--bg-dark);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Plan Card */
.plan-card {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 25, 40, 0.9), rgba(15, 20, 35, 0.8));
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 35px 28px;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 50px rgba(0, 212, 255, 0.25);
}

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

/* Popular Badge */
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b, #ff0080);
  color: white;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(255, 0, 128, 0.5);
  z-index: 10;
  white-space: nowrap;
}

.plan-card.popular {
  border-color: #ff0080;
  transform: scale(1.02);
  margin-top: 10px;
}

.plan-card.popular::before {
  background: linear-gradient(90deg, transparent, #ff0080, transparent);
  opacity: 1;
}

/* Plan Badge */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  margin-bottom: 18px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-card.free .plan-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.plan-card.beginner .plan-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.plan-card.advanced .plan-badge {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.plan-card.premium .plan-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.plan-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

/* Plan Price */
.plan-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 16px;
  gap: 4px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  color: white;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.price-amount.hidden {
  display: none;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-period {
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
}

.plan-description {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.5;
  min-height: 42px;
  font-size: 0.95rem;
}

/* Plan Features */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

.plan-features li i {
  color: var(--primary-color);
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.plan-features li.disabled {
  opacity: 0.35;
}

.plan-features li.disabled i {
  color: #ef4444;
}

/* Plan Button */
.plan-btn {
  width: 100%;
  padding: 14px 22px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.plan-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.plan-btn.current {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
  cursor: default;
}

.plan-btn.current:hover {
  transform: none;
  box-shadow: none;
  background: rgba(16, 185, 129, 0.2);
}

.plan-card.popular .plan-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}

.plan-card.premium .plan-btn {
  border-color: #f59e0b;
  color: #f59e0b;
}

.plan-card.premium .plan-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-color: transparent;
}

/* FAQ Section */
.faq-section {
  padding: 60px 0 80px;
  background: var(--bg-dark);
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  text-align: center;
  margin-bottom: 50px;
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: linear-gradient(145deg, rgba(20, 25, 40, 0.8), rgba(15, 20, 35, 0.6));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-color);
}

.faq-question {
  width: 100%;
  padding: 20px 26px;
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

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

.faq-question i {
  color: var(--primary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

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

.faq-answer p {
  padding: 0 26px 20px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

/* Navbar Subscription Link Style */
.subscription-link {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  margin: 8px 0;
}

.subscription-link:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.2));
  border-color: var(--primary-color);
}

.subscription-link i {
  color: #ffd700;
}

/* Responsive */
@media (max-width: 1200px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .plan-card.popular {
    transform: scale(1);
  }
  
  .page-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .subscription-hero {
    padding: 60px 0 40px;
  }
  
  .page-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .page-title i {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .plan-card {
    padding: 30px 24px;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .billing-toggle {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .plan-name {
    font-size: 1.5rem;
  }
  
  .faq-question {
    font-size: 0.95rem;
    padding: 18px;
  }
  
  .faq-answer p {
    padding: 0 18px 18px;
    font-size: 0.9rem;
  }
}