/* Pricing Page Styles */

.pricing-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #FF8C21 0%, #6D28D9 100%);
  padding: 40px 0;
}

[data-theme="dark"] .pricing-screen {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-theme="dark"] .pricing-screen {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.pricing-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pricing-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.pricing-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-header {
  text-align: center;
  color: white;
  margin-bottom: 60px;
  position: relative;
}

.btn-back-pricing {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.btn-back-pricing:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-4px);
}

.pricing-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.pricing-tagline {
  font-size: 1.3rem;
  opacity: 0.95;
  margin-bottom: 40px;
}

/* Billing Toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-label {
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.save-badge {
  background: #34c759;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 8px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  transition: 0.3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #34c759;
}

input:checked + .slider:before {
  transform: translateX(28px);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .pricing-card {
  background: #1a1a1c;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid #2c2c2e;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .pricing-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.pricing-card.popular {
  border: 3px solid #FF8C21;
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.08) translateY(-8px);
}

.plan-badge {
  display: inline-block;
  background: var(--background);
  color: var(--text-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.popular-badge {
  background: linear-gradient(135deg, #FF8C21, #6D28D9);
  color: white;
}

.plan-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.plan-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.plan-price {
  margin-bottom: 12px;
}

.plan-price .price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.plan-price .period {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

.plan-description {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* Features List */
.features-list {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.feature-item.highlight {
  background: rgba(0, 122, 255, 0.08);
  padding: 10px;
  border-radius: 8px;
  margin: 0 -10px 14px -10px;
}

.feature-item.disabled {
  opacity: 0.5;
}

.icon-check {
  color: #34c759;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-x {
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Plan Buttons */
.btn-plan {
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 12px;
}

.btn-plan-free {
  background: var(--background);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-plan-free:hover {
  background: var(--card-background);
  border-color: var(--primary-color);
}

.btn-plan-pro {
  background: linear-gradient(135deg, #FF8C21, #6D28D9);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.btn-plan-pro:hover {
  box-shadow: 0 8px 30px rgba(0, 122, 255, 0.6);
  transform: translateY(-2px);
}

.btn-plan-business {
  background: linear-gradient(135deg, #ff9500, #ff3b30);
  color: white;
  box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

.btn-plan-business:hover {
  box-shadow: 0 8px 30px rgba(255, 149, 0, 0.6);
  transform: translateY(-2px);
}

.plan-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Lifetime Deal */
.lifetime-deal {
  background: linear-gradient(135deg, #ffd60a, #ff9500);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: 0 15px 50px rgba(255, 214, 10, 0.4);
}

.lifetime-content {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.lifetime-icon {
  font-size: 4rem;
}

.lifetime-info h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.lifetime-info p {
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.7);
}

.lifetime-price {
  text-align: right;
}

.price-big {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  display: block;
}

.price-note {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
}

.btn-lifetime {
  padding: 18px 40px;
  background: var(--text-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-lifetime:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lifetime-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.feature-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Enterprise Section */
.enterprise-section {
  margin-bottom: 60px;
}

.enterprise-card {
  background: linear-gradient(135deg, #1d1d1f, #2d2d2f);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  color: white;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.enterprise-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.enterprise-card h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.enterprise-price {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.enterprise-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.enterprise-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.enterprise-features li {
  background: rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.btn-enterprise {
  padding: 18px 50px;
  background: white;
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-enterprise:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* FAQ Section */
.faq-section {
  margin-bottom: 60px;
  background: white;
  border-radius: 24px;
  padding: 60px;
}

.faq-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-primary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.faq-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Trust Section */
.trust-section {
  text-align: center;
  margin-top: 60px;
}

.trust-text {
  font-size: 1.1rem;
  color: white;
  opacity: 0.9;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  display: inline-block;
}

/* Responsive */
@media (max-width: 1024px) {
  .lifetime-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lifetime-price {
    text-align: center;
  }

  .btn-lifetime {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pricing-header h1 {
    font-size: 2.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-8px);
  }

  .enterprise-card {
    padding: 40px 24px;
  }

  .faq-section {
    padding: 40px 24px;
  }

  .btn-back-pricing {
    position: static;
    margin-bottom: 20px;
    display: inline-flex;
  }
}

/* Annual Pricing Update Animation */
.price-transition {
  animation: priceChange 0.3s ease;
}

@keyframes priceChange {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.95);
  }
}

/* Dark Theme Overrides */
[data-theme="dark"] .plan-name,
[data-theme="dark"] .plan-price .price,
[data-theme="dark"] .feature-item {
  color: #e5e5e7;
}

[data-theme="dark"] .plan-description,
[data-theme="dark"] .plan-price .period {
  color: #98989d;
}

[data-theme="dark"] .feature-item.highlight {
  background: rgba(10, 132, 255, 0.15);
}

[data-theme="dark"] .comparison-table {
  background: #1a1a1c;
  border: 1px solid #2c2c2e;
}

[data-theme="dark"] .comparison-table th,
[data-theme="dark"] .comparison-table td {
  border-bottom-color: #2c2c2e;
  color: #e5e5e7;
}

[data-theme="dark"] .faq-section {
  background: #1a1a1c;
  border: 1px solid #2c2c2e;
}

[data-theme="dark"] .faq-section h2 {
  color: #e5e5e7;
}

[data-theme="dark"] .faq-container {
  background: #1a1a1c;
  border: 1px solid #2c2c2e;
}

[data-theme="dark"] .faq-item {
  border-bottom-color: #2c2c2e;
}

[data-theme="dark"] .faq-item h3 {
  color: #e5e5e7;
}

[data-theme="dark"] .faq-item p {
  color: #98989d;
}

[data-theme="dark"] .lifetime-deal {
  background: linear-gradient(135deg, #b8860b, #cc7a00);
}

[data-theme="dark"] .lifetime-info h3 {
  color: #e5e5e7;
}

[data-theme="dark"] .lifetime-info p {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .price-big {
  color: #e5e5e7;
}

[data-theme="dark"] .price-note {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .btn-lifetime {
  background: #1a1a1c;
  color: #ffd60a;
}

[data-theme="dark"] .btn-lifetime:hover {
  background: #2c2c2e;
}

[data-theme="dark"] .feature-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #e5e5e7;
}

[data-theme="dark"] .btn-enterprise {
  background: #2c2c2e;
  color: #e5e5e7;
  border: 1px solid #3c3c3e;
}

[data-theme="dark"] .btn-enterprise:hover {
  background: #3c3c3e;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .enterprise-card {
  background: #1a1a1c;
  border: 1px solid #2c2c2e;
}

[data-theme="dark"] .enterprise-card h2,
[data-theme="dark"] .enterprise-card p {
  color: #e5e5e7;
}

[data-theme="dark"] .trust-text {
  color: #98989d;
}
