/* ========================================
   PRICING PAGE STYLES
======================================== */

/* Container base */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ml-auto {
  margin-left: auto;
}

/* ========================================
   PRICING HERO SECTION
======================================== */

.pricing-hero {
  padding: 7rem 2rem 4.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
  animation: float 7s ease-in-out infinite;
  filter: blur(50px);
}

.pricing-hero::after {
  content: '';
  position: absolute;
  bottom: -35%;
  left: -10%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
  animation: float 9s ease-in-out infinite reverse;
  filter: blur(50px);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(30px);
  }
}

.pricing-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.pricing-hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 55%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease backwards;
}

.pricing-hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.pricing-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .pricing-hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-secondary {
  background: rgba(15, 10, 31, 0.7);
  color: #e2e8f0;
  padding: 1.25rem 2.25rem;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: rgba(139, 92, 246, 0.8);
  color: #fff;
  transform: translateY(-2px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

.metric-pill {
  padding: 1rem 1.25rem;
  background: rgba(15, 10, 31, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-pill strong {
  font-size: 1.2rem;
  color: #fff;
}

.metric-pill span {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.pricing-hero-panel {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: linear-gradient(160deg, rgba(20, 10, 40, 0.9), rgba(35, 16, 70, 0.8));
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #fbbf24;
}

.panel-header h3 {
  font-size: 2rem;
  margin: 0;
  color: #fff;
}

.panel-header p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.panel-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #e2e8f0;
}

.panel-list i {
  color: #8b5cf6;
  margin-right: 0.5rem;
}

.panel-note {
  color: #94a3b8;
  font-size: 0.85rem;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.toggle-label {
  font-weight: 600;
  color: #e5e7eb;
  font-size: 1.1rem;
}

.toggle-btn {
  padding: 0.75rem 2rem;
  border: 2px solid rgba(139, 92, 246, 0.4);
  background: transparent;
  color: #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.toggle-btn:hover {
  border-color: #8b5cf6;
  color: #a78bfa;
}

.toggle-btn.active-plan {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border-color: #8b5cf6;
  color: #fff;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

/* ========================================
   PRICING COMPARISON SECTION
======================================== */

.pricing-comparison {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.comparison-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .comparison-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   PRICING CARD STYLES
======================================== */

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  background: linear-gradient(160deg, rgba(20, 10, 40, 0.85), rgba(35, 16, 70, 0.75));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 24px;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 18px 50px rgba(15, 10, 31, 0.55);
}

.pricing-card.highlighted {
  background: linear-gradient(145deg, rgba(35, 16, 70, 0.95), rgba(20, 10, 45, 0.98));
  border: 2px solid rgba(139, 92, 246, 0.5);
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .pricing-card.highlighted {
    transform: scale(1);
  }
}

.pricing-card.highlighted:hover {
  transform: scale(1.04) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f172a;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
  animation: pulse 2s ease-in-out infinite;
}

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

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
}

.plan-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.plan-badge.premium {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

.plan-header h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 700;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.currency {
  font-size: 1.5rem;
  color: #a78bfa;
  font-weight: 600;
}

.amount {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
}

.period {
  font-size: 1rem;
  color: #cbd5e1;
  font-weight: 500;
}

.plan-description {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-plan {
  width: 100%;
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  border: none;
  font-size: 1rem;
  font-weight: 700;
}

/* ========================================
   PLAN FEATURES
======================================== */

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.feature-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.feature-row:hover {
  background: rgba(139, 92, 246, 0.1);
}

.feature-row.disabled {
  opacity: 0.45;
}

.feature-row.disabled:hover {
  background: rgba(255, 255, 255, 0.02);
}

.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  border: 2px solid rgba(139, 92, 246, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(167, 139, 250, 0.8);
  margin-top: 0.25rem;
}

.feature-check.premium {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.6);
  color: #fbbf24;
}

.feature-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.feature-content p {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ========================================
   WHY PREMIUM SECTION
======================================== */

.why-premium {
  padding: 6rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #cbd5e1;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(109, 40, 217, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.benefit-card:hover {
  transform: translateY(-12px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 18px 45px rgba(15, 10, 31, 0.5);
}

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

.benefit-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(109, 40, 217, 0.2) 100%);
  border-radius: 12px;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #a78bfa;
  transition: all 0.4s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.15) rotate(4deg);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(109, 40, 217, 0.3) 100%);
}

.benefit-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 700;
}

.benefit-card p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ========================================
   PLAN COMPARISON TABLE
======================================== */

.plan-comparison {
  padding: 6rem 2rem;
  position: relative;
}

.comparison-table-wrapper {
  background: rgba(15, 10, 31, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 10, 31, 0.35);
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  min-width: 680px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  color: #e2e8f0;
  font-size: 0.98rem;
}

.comparison-table thead th {
  background: rgba(139, 92, 246, 0.12);
  padding: 1.5rem 1.75rem;
  text-align: left;
  font-weight: 700;
}

.comparison-table tbody td {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.comparison-table tbody tr:hover td {
  background: rgba(139, 92, 246, 0.06);
}

.comparison-table .price-row td {
  font-weight: 700;
  color: #f8fafc;
}

.comparison-table i.fa-check {
  color: #22c55e;
}

.comparison-table i.fa-xmark {
  color: #f97316;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ========================================
   FAQ SECTION
======================================== */

.faq-pricing {
  padding: 6rem 2rem;
  position: relative;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  padding: 0;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(139, 92, 246, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.faq-header {
  padding: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.faq-header:hover {
  background: rgba(139, 92, 246, 0.05);
}

.faq-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  text-align: left;
}

.faq-header i {
  color: #a78bfa;
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

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

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(139, 92, 246, 0.05);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.faq-item.active .faq-content {
  max-height: 500px;
}

.faq-content p {
  padding: 1.75rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   CTA SECTION
======================================== */

.pricing-cta {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-cta::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(139, 92, 246, 0.2),
    transparent 30%
  );
  animation: rotate 4s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

.btn-large {
  padding: 1.5rem 3rem !important;
  font-size: 1.15rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* ========================================
   GLASS CARD BASE
======================================== */

.glass-card {
  background: rgba(139, 92, 246, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 24px;
}

/* ========================================
   BUTTONS BASE
======================================== */

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  padding: 1.25rem 2.5rem;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
  .pricing-hero h1 {
    font-size: 2.8rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .pricing-hero {
    padding: 6rem 1rem 3rem;
  }

  .pricing-hero h1 {
    font-size: 2.2rem;
  }

  .pricing-hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-toggle {
    flex-direction: column;
    gap: 1rem;
  }

  .comparison-wrapper {
    grid-template-columns: 1fr;
  }

  .pricing-card.highlighted {
    transform: scale(1);
  }

  .pricing-comparison {
    padding: 4rem 1rem;
  }

  .why-premium {
    padding: 4rem 1rem;
  }

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

  .faq-pricing {
    padding: 4rem 1rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 1rem 1.1rem;
  }

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

  .pricing-cta {
    padding: 4rem 1rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .faq-header {
    padding: 1.25rem;
  }

  .faq-header h3 {
    font-size: 0.95rem;
  }

  .faq-content p {
    padding: 1.25rem;
  }
}

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

  .plan-header h2 {
    font-size: 1.5rem;
  }

  .amount {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .benefit-card {
    padding: 1.5rem;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
  }
}
