/* Global Pricing Styles */
.pricing-page-sec {
  padding: 80px 0;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 18px;
  margin-right: 8px;
  font-weight: 500;
}

.price-area h3 {
  font-size: 32px;
  font-weight: 700;
  color: #2a2a2a;
}

.price-area h3 span {
  font-size: 16px;
  color: #777;
}

/* Desktop Comparison Table */
.pricing-comparison-table {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 60px rgba(103, 41, 249, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
  max-width: 1076px; /* TAMBAHAN: Batasi lebar maksimal tabel */
  margin: 0 auto; /* Center tabel */
}

.pricing-table {
  margin-bottom: 0;
  width: 100%;
  border-collapse: collapse;
}

/* Header Styles */
.pricing-header {
  background: linear-gradient(135deg, #6729f8 0%, #8b5cf6 100%);
}

.pricing-header th {
  border: none;
  padding: 30px 15px 20px 15px;
  vertical-align: middle;
  position: relative;
}

.feature-column {
  border-radius: 20px 0 0 0;
  width: 35%;
}

.feature-title {
  color: white;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.price-column {
  text-align: center;
  width: 16.25%;
  position: relative;
}

.price-column-popular {
  position: relative;
  border-radius: 0 20px 0 0;
  background: linear-gradient(
    180deg,
    rgba(255, 215, 0, 0.05) 0%,
    rgba(255, 215, 0, 0.02) 100%
  );
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-bottom: none;
  margin: -2px -2px 0 -2px;
}

.popular-badge-dekstop {
  background: linear-gradient(135deg, #e5daff 0%, #fff 100%);
  color: #6729f9;
  padding: 8px 20px;
  border-radius: 20px;
  margin-top: -25px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  z-index: 20;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Popular Badge - FIXED */
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #e5daff 0%, #fff 100%);
  color: #6729f9;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 42, 255, 0.4);
  z-index: 20;
  white-space: nowrap;
  text-transform: uppercase;
}

.popular-badge::after {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #ffa500;
}

.price-column-popular .price-card {
  padding-top: 25px;
  position: relative;
  z-index: 10;
}

.price-card {
  padding-top: 8px;
}

.plan-name {
  color: white;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 5px;
  opacity: 0.95;
}

.plan-price {
  color: white;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 3px;
  letter-spacing: -0.5px;
}

.plan-period {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 500;
}

.plan-period-old {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  text-decoration: line-through;
}

/* Body Rows */
.pricing-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.pricing-table tbody tr:hover {
  background: #f8f9ff !important;
  transform: translateX(3px);
}

.pricing-table tbody td {
  padding: 15px 15px;
  border: none;
  vertical-align: middle;
}

.feature-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 15px;
}

.feature-icon {
  color: #6729f9;
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  display: inline-block;
}

/* Value Styles */
.value-limited {
  color: #718096;
  font-size: 14px;
  font-weight: 500;
}

.value-unlimited {
  color: #10b981;
  font-weight: 700;
  font-size: 14px;
}

.value-discount {
  color: #10b981;
  font-weight: 700;
  font-size: 14px;
}

.value-fast {
  color: #10b981;
  font-weight: 800;
}

.check-icon {
  color: #10b981;
  font-size: 24px;
  font-weight: bold;
}

.cross-icon {
  color: #ef4444;
  font-size: 24px;
  font-weight: bold;
}

/* Highlight Column */
.highlight-col {
  background: linear-gradient(
    180deg,
    rgba(103, 41, 249, 0.03) 0%,
    rgba(103, 41, 249, 0.01) 100%
  );
}

/* CTA Buttons */
.cta-row td {
  padding: 30px 20px !important;
  background: white !important;
}

.btn-pricing {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 27px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.btn-pricing i {
  transition: transform 0.3s ease;
}

.btn-pricing:hover i {
  transform: translateX(5px);
}

.btn-pricing-free {
  background: #f3f4f6;
  color: #374151;
  transition: all 0.25s ease;
}

.btn-pricing-free:hover {
  background: #e5e7eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Bulanan */
.btn-pricing-pro {
  background: linear-gradient(135deg, #7c4efe 0%, #6729F9 100%);
  color: white;
  transition: all 0.25s ease;
}

.btn-pricing-pro:hover {
  background: linear-gradient(135deg, #6e3eea 0%, #8f67f1 100%);
  box-shadow: 0 5px 18px rgba(124, 78, 254, 0.35);
  color: #fff;
  transform: translateY(-2px);
}

/* Tahunan Highlight */
.btn-pricing-popular {
  background: linear-gradient(135deg, #6120f4 0%, #7f47ff 100%);
  color: white;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(103, 41, 249, 0.25);
  transition: all 0.3s ease;
}

.btn-pricing-popular:hover {
  background: linear-gradient(135deg, #5520d8 0%, #6d39e6 100%);
  box-shadow: 0 6px 25px rgba(103, 41, 249, 0.45);
  color: #fff;
  transform: translateY(-3px);
}

/* Footer Info */
.pricing-footer-info {
  background: #f9fafb;
  border-radius: 15px;
  padding: 20px 30px;
  border: 1px solid #e5e7eb;
}

/* Mobile Card Styles (Old Version) */
.mobile-pricing-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(103, 41, 249, 0.1);
  margin-bottom: 25px;
  overflow: hidden;
  position: relative;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.mobile-pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(103, 41, 249, 0.15);
}

.mobile-popular {
  border: 2px solid #ffd700;
}

.mobile-popular-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ffd700;
  color: #1a1a1a;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transform: rotate(-8deg);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.mobile-card-header {
  background: linear-gradient(135deg, #6729f8 0%, #8b5cf6 100%);
  padding: 30px 25px;
  text-align: center;
}

.mobile-plan-name {
  color: white;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mobile-plan-price {
  color: white;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: -1px;
}

.mobile-plan-period {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.mobile-plan-period-old {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  text-decoration: line-through;
}

.mobile-card-body {
  padding: 25px;
}

.mobile-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-feature:last-child {
  border-bottom: none;
}

.mobile-feature i {
  color: #6729f9;
  font-size: 18px;
  width: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.mobile-feature > div {
  flex: 1;
}

.mobile-feature-name {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 5px;
}

.mobile-feature-value {
  font-size: 14px;
  font-weight: 600;
}

.mobile-feature-value.limited {
  color: #718096;
}

.mobile-feature-value.unlimited {
  color: #10b981;
}

.mobile-feature-value.available {
  color: #10b981;
  font-size: 22px;
}

.mobile-feature-value.unavailable {
  color: #ef4444;
  font-size: 22px;
}

.mobile-card-footer {
  padding: 25px;
  background: #f8f9fa;
}

.btn-mobile-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-mobile-pricing i {
  transition: transform 0.3s ease;
}

.btn-mobile-pricing:hover i {
  transform: translateX(5px);
}

.btn-free {
  background: #f3f4f6;
  color: #374151;
}

.btn-free:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-pro {
  background: linear-gradient(135deg, #6729f8 0%, #8b5cf6 100%);
  color: white;
}

.btn-pro:hover {
  background: linear-gradient(135deg, #5821e6 0%, #7c4fe4 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(103, 41, 249, 0.4);
}

.btn-popular {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #1a1a1a;
}

.btn-popular:hover {
  background: linear-gradient(135deg, #ffc700 0%, #ff9500 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

/* NEW: Mobile Simple Comparison Styles */
.mobile-simple-comparison {
  margin-bottom: 30px;
}

.comparison-table {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(103, 41, 249, 0.08);
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.table-header {
  display: flex;
  background: linear-gradient(135deg, #6729f8 0%, #8b5cf6 100%);
  padding: 18px 15px;
  font-weight: 700;
  color: white;
  font-size: 14px;
}

.feature-col {
  flex: 2;
  text-align: left;
}

.plan-col {
  flex: 1;
  text-align: center;
  font-size: 13px;
  opacity: 0.9;
}

.plan-col.free {
  color: rgba(255, 255, 255, 0.9);
}

.plan-col.pro {
  color: #ffffff;
  font-weight: 800;
}

.table-body {
  padding: 0;
}

.table-row {
  display: flex;
  align-items: center;
  padding: 16px 15px;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s ease;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row.highlight {
  background: #f8f9ff;
  border-left: 3px solid #6729f8;
}

.table-row:hover {
  background: #f8f9fa;
}

.feature-name {
  flex: 2;
  font-size: 17px;
  font-weight: 500;
  color: #2d3748;
  line-height: 1.4;
  padding-right: 10px;
}

.plan-value {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.plan-value.free {
  color: #718096;
}

.plan-value.pro {
  color: #10b981;
}

.check-icon {
  font-size: 14px;
}

.value-limited {
  color: #ef4444;
  font-weight: 700;
}

.value-unlimited {
  color: #10b981;
  font-weight: 700;
}

.value-discount {
  color: #10b981;
  font-weight: 700;
}

.value-fast {
  color: #10b981;
  font-weight: 800;
}

/* Divider */
.comparison-divider {
  margin: 30px 0;
  position: relative;
  text-align: center;
}

.comparison-divider hr {
  border: none;
  border-top: 2px solid #e9ecef;
  margin: 20px 0;
}

.divider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 0 20px;
  color: #6729f8;
  font-weight: 700;
  font-size: 15px;
}

/* Pricing Options */
.pricing-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.pricing-option {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-option.popular {
  border-color: #6729f8;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  transform: scale(1.02);
}

.pricing-option:hover {
  border-color: #6729f8;
  box-shadow: 0 8px 25px rgba(103, 41, 249, 0.15);
  transform: translateY(-2px);
}

.popular-badge-mobile {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #ffd700;
  color: #1a1a1a;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.option-header {
  text-align: center;
  margin-bottom: 15px;
}

.price-main {
  font-size: 24px;
  font-weight: 800;
  color: #2a2a2a;
  margin-bottom: 5px;
}

.price-desc {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 5px;
}

.price-save {
  font-size: 12px;
  color: #10b981;
  font-weight: 700;
}

.btn-option {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-option:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.btn-popular {
  background: linear-gradient(135deg, #6729f8 0%, #8b5cf6 100%);
  color: white;
}

.btn-popular:hover {
  background: linear-gradient(135deg, #5821e6 0%, #7c4fe4 100%);
  box-shadow: 0 4px 15px rgba(103, 41, 249, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .price-column {
    min-width: 150px;
  }

  .plan-price {
    font-size: 22px;
  }

  .feature-name {
    font-size: 14px;
  }

  .popular-badge {
    font-size: 11px;
    padding: 7px 18px;
  }
}

@media (max-width: 992px) {
  /* Desktop table hidden on tablet/mobile */
}

@media (max-width: 576px) {
  .mobile-pricing-card {
    margin-bottom: 20px;
    border-radius: 15px;
  }

  .mobile-card-header {
    padding: 25px 20px;
  }

  .mobile-plan-name {
    font-size: 20px;
  }

  .mobile-plan-price {
    font-size: 32px;
  }

  .mobile-card-body {
    padding: 20px;
  }

  .mobile-feature {
    padding: 12px 0;
    gap: 12px;
  }

  .mobile-feature i {
    font-size: 16px;
    width: 20px;
  }

  .mobile-feature-name {
    font-size: 14px;
  }

  .mobile-feature-value {
    font-size: 13px;
  }

  .mobile-card-footer {
    padding: 20px;
  }

  .btn-mobile-pricing {
    padding: 14px 28px;
    font-size: 15px;
  }

  /* New Mobile Simple Comparison Responsive */
  .table-header {
    padding: 15px 12px;
    font-size: 13px;
  }

  .table-row {
    padding: 14px 12px;
  }

  .feature-name {
    font-size: 14px;
  }

  .plan-value {
    font-size: 12px;
  }

  .price-main {
    font-size: 22px;
  }

  .pricing-option {
    padding: 18px;
  }

  .btn-option {
    padding: 12px 18px;
    font-size: 13px;
  }

  .divider-text {
    font-size: 14px;
    padding: 0 15px;
  }
}

@media (max-width: 380px) {
  .table-header {
    padding: 12px 10px;
    font-size: 12px;
  }

  .table-row {
    padding: 12px 10px;
  }

  .feature-name {
    font-size: 11px;
  }

  .price-main {
    font-size: 20px;
  }

  .pricing-option {
    padding: 15px;
  }

  .popular-badge {
    font-size: 10px;
    padding: 6px 12px;
    top: -8px;
  }
}

/* Untuk layar yang lebih besar */
@media (min-width: 1400px) {
  .popular-badge {
    font-size: 13px;
    padding: 9px 22px;
  }

  .price-column-popular .price-card {
    padding-top: 28px;
  }
}
