/* Packages Page */
.packages-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.packages-header {
  text-align: center;
  margin-bottom: 48px;
}

.packages-header h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.packages-subtitle {
  font-size: 18px;
  color: #6b7280;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.package-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.package-card.popular {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.package-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.package-name {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-color);
}

.package-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-color);
}

.price-period {
  font-size: 16px;
  color: #6b7280;
}

.package-features {
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-light);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--success-color);
  flex-shrink: 0;
}

.package-btn {
  margin-top: 24px;
}

.packages-info {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.packages-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
  font-size: 20px;
}

/* Payment Page */
.payment-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.payment-header {
  margin-bottom: 32px;
}

.payment-header h1 {
  font-size: 28px;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
}

.payment-main {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.payment-section {
  padding: 32px;
}

.payment-section h2 {
  font-size: 20px;
  margin-bottom: 24px;
}

.stripe-element {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: white;
}

.error-message {
  color: var(--danger-color);
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
}

.payment-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  color: #6b7280;
  font-size: 14px;
}

.security-icon {
  width: 24px;
  height: 24px;
}

.payment-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.order-summary {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 24px;
}

.order-summary h3 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
}

.summary-label {
  color: #6b7280;
}

.summary-value {
  font-weight: 500;
  color: var(--text-color);
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
}

.total-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.total-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.package-features-summary {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 20px;
}

.package-features-summary h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: #6b7280;
}

.package-features-summary ul {
  list-style: none;
  padding: 0;
}

.package-features-summary li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-color);
}

.package-features-summary li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* Payment Result Pages */
.payment-result {
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
  background: white;
  border-radius: 16px;
  padding: 48px 32px;
  border: 1px solid var(--border-color);
}

.result-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.result-icon svg {
  width: 100%;
  height: 100%;
}

.payment-result.success .result-icon {
  color: var(--success-color);
}

.payment-result.failure .result-icon {
  color: var(--danger-color);
}

.payment-result h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.result-message {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 32px;
}

.payment-details {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.detail-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.detail-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}

.detail-id {
  font-size: 13px;
  color: #9ca3af;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }

  .payment-layout {
    grid-template-columns: 1fr;
  }

  .payment-sidebar {
    order: -1;
  }

  .result-actions {
    flex-direction: column;
  }
}
