/* Modern Pricing Page Styles */

:root {
  --primary-gradient: linear-gradient(135deg, #8585ff, #66ccff);
  --dark-bg: #121212;
  --card-bg: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --success-color: #4caf50;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section */
.pricing-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #121212 0%, #1a1a1a 40%, #2a2a4a 100%);
  position: relative;
  overflow: hidden;
}

.pricing-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(133, 133, 255, 0.1),
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge-wrapper {
  margin-bottom: 25px;
}

.pricing-badge {
  display: inline-block;
  background: rgba(133, 133, 255, 0.2);
  border: 1px solid rgba(133, 133, 255, 0.4);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  color: #8585ff;
  font-weight: 600;
}

.pricing-badge i {
  margin-right: 8px;
  color: #ffc107;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Pricing Card */
.pricing-card {
  background: var(--card-bg);
  border: 1px solid rgba(133, 133, 255, 0.2);
  border-radius: 24px;
  padding: 40px 30px;
  transition: all 0.4s ease;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
}

.pricing-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(133, 133, 255, 0.5);
  box-shadow: 0 20px 50px rgba(133, 133, 255, 0.2);
}

/* Featured Card */
.pricing-card.featured {
  border: 2px solid rgba(133, 133, 255, 0.5);
  background: linear-gradient(
    135deg,
    rgba(133, 133, 255, 0.05),
    rgba(102, 204, 255, 0.05)
  );
  box-shadow: 0 20px 60px rgba(133, 133, 255, 0.3);
  transform: scale(1.05);
}

.pricing-card.featured.animate-in {
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 25px 70px rgba(133, 133, 255, 0.4);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(133, 133, 255, 0.4);
  white-space: nowrap;
}

.popular-badge i {
  margin-right: 6px;
  color: #ffc107;
}

/* Card Header */
.card-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(133, 133, 255, 0.1);
}

.plan-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  transition: all 0.3s ease;
}

.free-icon {
  background: linear-gradient(135deg, #4caf50, #45a049);
}

.basic-icon {
  background: linear-gradient(135deg, #2196f3, #1976d2);
}

.pro-icon {
  background: var(--primary-gradient);
}

.pricing-card:hover .plan-icon {
  transform: scale(1.1) rotate(5deg);
}

.plan-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.plan-price {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}

.currency {
  font-size: 2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 10px;
}

.amount {
  font-size: 4rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.period {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 20px;
}

.plan-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Card Body */
.card-body {
  flex: 1;
  margin-bottom: 30px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.features-list li:hover {
  transform: translateX(5px);
}

.features-list li i {
  color: var(--success-color);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.features-list li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.features-list li strong {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.features-list li span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Card Footer */
.card-footer {
  margin-top: auto;
}

.btn-plan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(133, 133, 255, 0.4);
  color: white;
}

.btn-featured {
  background: var(--primary-gradient);
  box-shadow: 0 8px 25px rgba(133, 133, 255, 0.3);
}

.btn-featured:hover {
  box-shadow: 0 15px 40px rgba(133, 133, 255, 0.5);
}

.current-plan {
  background: linear-gradient(135deg, #666666, #888888);
  color: #cccccc;
  cursor: not-allowed;
}

.current-plan:hover {
  transform: none;
  box-shadow: none;
}

/* Comparison Section */
.comparison-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a1a, #121212);
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid rgba(133, 133, 255, 0.2);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead {
  background: rgba(133, 133, 255, 0.1);
}

.comparison-table th {
  padding: 20px;
  text-align: center;
  font-weight: 700;
  color: white;
  border-bottom: 2px solid rgba(133, 133, 255, 0.3);
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(133, 133, 255, 0.1);
  transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(133, 133, 255, 0.05);
}

.comparison-table td {
  padding: 18px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.comparison-table td:first-child {
  text-align: left;
  color: white;
}

.comparison-table .featured-col {
  background: rgba(133, 133, 255, 0.08);
  color: #8585ff;
  font-weight: 600;
}

.comparison-table i.fa-check {
  color: var(--success-color);
  font-size: 1.2rem;
}

.comparison-table i.fa-times {
  color: #ff6b6b;
  font-size: 1.2rem;
  opacity: 0.5;
}

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

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid rgba(133, 133, 255, 0.2);
  border-radius: 16px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.faq-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:hover {
  border-color: rgba(133, 133, 255, 0.4);
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(133, 133, 255, 0.05);
}

.faq-question h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

.faq-question i {
  font-size: 1.2rem;
  color: #8585ff;
  transition: transform 0.3s ease;
}

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

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

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 30px 25px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.pricing-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a1a, #121212);
}

.cta-card {
  background: var(--primary-gradient);
  border-radius: 30px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1),
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

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

.cta-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: white;
  position: relative;
  z-index: 2;
}

.cta-card p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn-cta {
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-cta.btn-primary {
  background: white;
  color: #8585ff;
}

.btn-cta.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

.btn-cta.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-cta.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

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

  .pricing-card.featured.animate-in {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: scale(1) translateY(-10px);
  }

  .section-title {
    font-size: 2.2rem;
  }

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

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

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

  .cta-buttons {
    flex-direction: column;
  }

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

  .cta-card {
    padding: 40px 25px;
  }

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