/* === SECTION PRICING === */
.pricing-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(to bottom, #f9fafb, #ffffff);
  overflow: hidden;
}

[data-theme='dark'] .pricing-section {
  background: var(--color-bg);
}

.pricing-bg-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pricing-blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.05;
  animation: pulse 4s ease-in-out infinite;
}

.pricing-blob-2 {
  bottom: 15rem;
  right: 2.5rem;
  background: #19b8d8;
  animation-delay: 1s;
}

[data-theme='dark'] .pricing-blob {
  opacity: 0.08;
}

.pricing-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.pricing-grid {
  display: none; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.pricing-grid.active {
  display: grid;
}

/* === HEADER === */
.pricing-header {
  text-align: center;
  margin-bottom: 4rem;
}

.pricing-badge-wrapper {
  display: inline-block;
  position: relative;
  margin-bottom: 1.5rem;
}

.pricing-badge {
  position: relative;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(
    to right,
    rgba(1, 112, 168, 0.1),
    rgba(25, 184, 216, 0.1)
  );
  backdrop-filter: blur(200px);
  border-radius: 9999px;
  border: 1px solid rgba(1, 112, 168, 0.2);
}

[data-theme='dark'] .pricing-badge {
  background: linear-gradient(
    to right,
    rgba(1, 112, 168, 0.15),
    rgba(25, 184, 216, 0.15)
  );
}

.pricing-badge span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  background: linear-gradient(
    to right,
    #111827 0%,
    #0170a8 50%,
    #111827 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme='dark'] .pricing-header h2 {
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #19b8d8 50%,
    #ffffff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-header p {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 48rem;
  margin: 0 auto;
}

[data-theme='dark'] .pricing-header p {
  color: #9ca3af;
}

/* === TOGGLE BUTTONS === */
.pricing-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s ease 0.3s backwards;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 9999px;
  padding: 0.375rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  position: relative;
}

[data-theme='dark'] .pricing-toggle {
  background-color: rgba(31, 41, 55, 0.8);
  border-color: #374151;
}

.pricing-toggle-btn {
  position: relative;
  padding: 0.75rem 2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 9999px;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #374151;
  z-index: 2;
}

[data-theme='dark'] .pricing-toggle-btn {
  color: #9ca3af;
}

.pricing-toggle-btn:hover {
  color: #111827;
}

[data-theme='dark'] .pricing-toggle-btn:hover {
  color: #ffffff;
}

.pricing-toggle-btn.active {
  color: #ffffff;
}

.toggle-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0170a8, #19b8d8);
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 112, 168, 0.4);
  z-index: -1;
}

.pricing-toggle-btn.active .toggle-bg {
  opacity: 1;
}

.toggle-text {
  position: relative;
  z-index: 1;
}

/* === CARDS === */
.pricing-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-popular-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.popular-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  filter: blur(1rem);
  opacity: 0.6;
  animation: pulse 2s ease-in-out infinite;
}

.pricing-popular-badge span {
  position: relative;
  display: inline-block;
  padding: 0.375rem 1rem;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  color: white;
  font-size: 0.875rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(1, 112, 168, 0.4);
}

.pricing-card-glow {
  position: absolute;
  inset: -1px;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  border-radius: 1.5rem;
  filter: blur(1.5rem);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pricing-card:hover .pricing-card-glow {
  opacity: 0.3;
}

.pricing-card-inner.is-popular .pricing-card-glow {
  opacity: 0.2;
}

.pricing-card-inner {
  position: relative;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(40px);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(229, 231, 235, 0.5);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

[data-theme='dark'] .pricing-card-inner {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(75, 85, 99, 0.5);
}

.pricing-card:hover .pricing-card-inner {
  transform: translateY(-0.5rem);
}

.pricing-card-inner.is-popular {
  border-color: rgba(1, 112, 168, 0.5);
}

[data-theme='dark'] .pricing-card-inner.is-popular {
  border-color: rgba(25, 184, 216, 0.5);
}

.pricing-card-header {
  margin-bottom: 1.5rem;
}

.pricing-card-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

[data-theme='dark'] .pricing-card-header h3 {
  color: #ffffff;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-amount {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-label {
  font-size: 0.875rem;
  color: #6b7280;
}

[data-theme='dark'] .price-label {
  color: #9ca3af;
}

.pricing-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #d1d5db,
    transparent
  );
  margin-bottom: 1.5rem;
}

[data-theme='dark'] .pricing-divider {
  background: linear-gradient(
    to right,
    transparent,
    #4b5563,
    transparent
  );
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.pricing-features li:hover {
  transform: translateX(4px);
}

.feature-check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.25rem;
  background: linear-gradient(
    to bottom right,
    rgba(1, 112, 168, 0.2),
    rgba(25, 184, 216, 0.2)
  );
  border-radius: 0.5rem;
  color: #0170a8;
  margin-top: 2px;
  transition: all 0.3s ease;
}

[data-theme='dark'] .feature-check {
  background: linear-gradient(
    to bottom right,
    rgba(1, 112, 168, 0.25),
    rgba(25, 184, 216, 0.25)
  );
  color: #19b8d8;
}

.pricing-features li:hover .feature-check {
  transform: scale(1.1);
}

.pricing-features li span {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
}

[data-theme='dark'] .pricing-features li span {
  color: #d1d5db;
}

.pricing-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(1, 112, 168, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
}

.pricing-cta:hover {
  box-shadow: 0 10px 15px -3px rgba(1, 112, 168, 0.4);
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  filter: blur(1rem);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-cta:hover .cta-glow {
  opacity: 0.5;
}

.cta-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 1s ease;
}

.pricing-cta:hover .cta-shine {
  transform: translateX(100%);
}

.pricing-cta span,
.cta-arrow {
  position: relative;
  z-index: 10;
}

.cta-arrow {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.pricing-cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* === FOOTER === */
.pricing-footer {
  text-align: center;
  margin-top: 8rem;
}

.pricing-info {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(209, 213, 219, 0.5);
}

[data-theme='dark'] .pricing-info {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(75, 85, 99, 0.5);
}

.info-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.pricing-info p {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
}

[data-theme='dark'] .pricing-info p {
  color: #d1d5db;
}

/* === ANIMATIONS === */
@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-up-delayed {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.fade-up-delayed5 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.fade-up-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-up-card:nth-child(1) { animation-delay: 0.5s; }
.fade-up-card:nth-child(2) { animation-delay: 0.6s; }
.fade-up-card:nth-child(3) { animation-delay: 0.7s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .pricing-section {
    padding: 4rem 0;
  }

  .pricing-container {
    padding: 0 1rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

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

  .price-amount {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .pricing-card-inner {
    padding: 1.5rem;
  }

  .pricing-features li span {
    font-size: 0.8rem;
  }
}