* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f5fa;
  padding: 20px;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 16px;
  position: relative;
}

.auth-buttons {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 10px;
}

.auth-btn {
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.login-btn {
  background-color: #007bff;
  color: white;
}

.login-btn:hover {
  background-color: #0056b3;
}

.register-btn {
  background-color: #28a745;
  color: white;
}

.register-btn:hover {
  background-color: #218838;
}

.user-btn {
  background-color: #6c757d;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
}

.user-btn:hover {
  background-color: #5a6268;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.pricing-card {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.price {
  font-size: 32px;
  font-weight: bold;
}

/* Order Summary Styles */
.order-summary {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.summary-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.summary-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.summary-item {
  flex: 1;
}

.summary-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #555;
}

.summary-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.summary-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.summary-total {
  border-top: 1px solid #dee2e6;
  padding-top: 15px;
  margin-top: auto;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.total-row.final {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  border-top: 1px solid #dee2e6;
  padding-top: 8px;
  margin-top: 8px;
}

.total-label {
  font-size: 14px;
  color: #666;
}

.total-price {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.currency {
  font-size: 18px;
  color: #1a73e8;
  margin-right: 5px;
}

.plan-title {
  font-size: 16px;
  color: #1a73e8;
  margin-bottom: 5px;
}

.plan-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.continue-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  background-color: #f0f0f0;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.continue-btn:hover {
  background-color: #e0e0e0;
}

.continue-btn::after {
  content: "▶";
  margin-left: 5px;
  font-size: 12px;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  color: #1a73e8;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #333;
}

.payment-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.payment-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.card-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.card-icon {
  width: 40px;
  height: 25px;
  /* background-color: #f0f0f0; */
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
}

.pay-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(90deg, #1a73e8, #0d5cb6);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 10px;
}

.pay-button:hover {
  background: linear-gradient(90deg, #0d5cb6, #0b4a90);
}

.or-divider {
  text-align: center;
  margin: 20px 0;
  color: #666;
  font-weight: bold;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.payment-method {
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.payment-method img {
  max-width: 100%;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.payment-method:hover {
  background-color: #e0e0e0;
}

.payment-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
}

.pm-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.pm-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.pm-list .pm-item {
  flex: 0 0 calc(50% - 5px);
}

.pm-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pm-item:hover {
  border-color: #1a73e8;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
}

.pm-item.selected {
  border-color: #1a73e8;
  background-color: #e8f0fe;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.3);
}

.pm-item.disabled {
  position: relative;
  opacity: 0.6;
  cursor: not-allowed;
  overflow: hidden;
}

.pm-item.disabled:hover {
  border-color: #e0e0e0;
  box-shadow: none;
}

.coming-soon-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.pm-item.disabled:hover .coming-soon-overlay {
  opacity: 1;
}

.pay-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.pay-button:disabled:hover {
  background: #ccc;
}

.terms-section {
  margin-top: 16px;
  padding: 12px 0;
}

.terms-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.terms-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.terms-label a {
  color: #1a73e8;
  text-decoration: none;
}

.terms-label a:hover {
  text-decoration: underline;
}

.pm-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.pm-item span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .payment-container {
    flex-direction: column;
  }

  .modal {
    width: 95%;
    margin: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Lifetime Toggle Styles */
.lifetime-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-label {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #1a73e8;
}

input:checked + .slider:before {
  transform: translateX(26px);
}