/* SimplySend-Style Perfect Pricing Cards CSS */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

.pricing-plans-container {
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  padding: 32px 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pricing-plans-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

/* Column Layouts */
.pricing-columns-1 .pricing-plan-item {
  flex: 0 0 100%;
  max-width: 432px;
}
.pricing-columns-2 .pricing-plan-item {
  flex: 0 0 calc(50% - 12px);
  max-width: 432px;
}
.pricing-columns-3 .pricing-plan-item {
  flex: 0 0 calc(33.333% - 16px);
  max-width: 432px;
}
.pricing-columns-4 .pricing-plan-item {
  flex: 0 0 calc(25% - 18px);
  max-width: 432px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .pricing-columns-3 .pricing-plan-item,
  .pricing-columns-4 .pricing-plan-item {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .pricing-columns-2 .pricing-plan-item,
  .pricing-columns-3 .pricing-plan-item,
  .pricing-columns-4 .pricing-plan-item {
    flex: 0 0 100%;
  }

  .pricing-plans-grid {
    gap: 20px;
  }

  .pricing-plans-container {
    padding: 24px 16px;
  }
}

.pricing-plan-item {
  margin: 0;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 432px;
  margin: 0 auto;
}

.pricing-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Popular Badge */
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
  z-index: 2;
  white-space: nowrap;
  text-transform: uppercase;
}

.badge-icon {
  font-size: 14px;
}

/* Plan Title */
.plan-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 20px 0 24px 0;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* Price Container */
.price-container {
  margin: 0 0 32px 0;
}

.price {
  font-size: 48px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.period {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Features List */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  text-align: left;
  flex-grow: 1;
}

.features-list li {
  padding: 10px 0;
  font-size: 14px;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.features-list li:hover {
  color: #8b5cf6;
}

.features-list li::before {
  content: "✓";
  color: #8b5cf6;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Terms Section */
.terms-section {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  text-align: left;
}

.terms-checkbox-input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
  cursor: pointer;
  flex-shrink: 0;
}

.terms-text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  font-weight: 500;
  cursor: pointer;
}

.terms-text a {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.terms-text a:hover {
  color: #7c3aed;
  text-decoration: underline;
}

.guarantee-text {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Buy Button */
.buy-button {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: #ffffff;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  font-family: inherit;
}

.buy-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.buy-button:hover::before {
  left: 100%;
}

.buy-button:hover:not(:disabled):not([data-disabled="true"]) {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
}

.buy-button:active:not(:disabled):not([data-disabled="true"]) {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.25);
}

.buy-button:disabled,
.buy-button[data-disabled="true"] {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  opacity: 1;
  transform: none !important;
  box-shadow: none !important;
}

.buy-button[data-disabled="true"] {
  pointer-events: none;
}

.button-arrow {
  font-size: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
}

.buy-button:hover:not(:disabled):not([data-disabled="true"]) .button-arrow {
  transform: translateX(2px);
}

/* Pro Plan Special Styling */
.pricing-card[data-plan-type="pro"] {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.pricing-card[data-plan-type="pro"]:hover {
  border-color: #7c3aed;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

/* Popular Plan Highlight */
.pricing-card.popular {
  border-color: #8b5cf6;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
  transform: scale(1.02);
}

.pricing-card.popular:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.25);
}

/* Animation for terms acceptance */
.terms-accepted .buy-button {
  animation: buttonEnable 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes buttonEnable {
  0% {
    background: #e2e8f0;
    transform: scale(0.98);
  }
  50% {
    transform: scale(1.01);
  }
  100% {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    transform: scale(1);
  }
}

/* Mobile Specific Adjustments */
@media (max-width: 480px) {
  .pricing-card {
    padding: 24px 20px 20px;
    max-width: 100%;
  }

  .plan-title {
    font-size: 22px;
    margin: 16px 0 20px 0;
  }

  .price {
    font-size: 42px;
  }

  .features-list {
    margin-bottom: 24px;
  }

  .features-list li {
    padding: 8px 0;
    font-size: 13px;
  }

  .terms-section {
    padding-top: 20px;
  }

  .guarantee-text {
    margin-bottom: 16px;
  }

  .buy-button {
    padding: 14px 20px;
    min-height: 44px;
  }
}

/* Loading state */
.buy-button.loading {
  position: relative;
  color: transparent;
}

.buy-button.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Focus states for accessibility */
.terms-checkbox-input:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

.buy-button:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .pricing-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }

  .buy-button {
    background: #000 !important;
    color: #fff !important;
  }
}
