* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ff006e 0%, #ff2e8a 100%);
  min-height: 100vh;
  padding: 40px 20px;
  color: #333;
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.pricing-header {
  text-align: center;
  color: white;
  margin-bottom: 50px;
}

.pricing-header h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  font-weight: 700;
}

.tagline {
  font-size: 1.2em;
  opacity: 0.95;
  font-weight: 400;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Pricing Card */
.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 35px 25px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Popular Badge */
.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #333;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.pricing-card.popular {
  border: 3px solid #FFD700;
  transform: scale(1.02);
}

/* Plan Badge */
.plan-badge {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: 600;
}

.plan-name {
  font-size: 1.3em;
  color: #333;
  margin-bottom: 20px;
  min-height: 2.6em;
}

/* Price Section */
.price-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 10px;
}

.currency {
  font-size: 1.5em;
  font-weight: bold;
  color: #ff006e;
  margin-right: 5px;
  margin-top: 8px;
}

.amount {
  font-size: 3.5em;
  font-weight: bold;
  color: #ff006e;
  line-height: 1;
}

.period {
  font-size: 1.2em;
  color: #666;
  margin-left: 5px;
  align-self: flex-end;
  margin-bottom: 10px;
}

.cancel-note {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 25px;
}

/* Features */
.features-section {
  flex-grow: 1;
  margin-bottom: 25px;
}

.features-header {
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  font-size: 1em;
}

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

.features-list li {
  display: flex;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 0.95em;
  line-height: 1.4;
}

.features-list li.excluded {
  opacity: 0.5;
}

.features-list .icon {
  margin-right: 10px;
  font-size: 1.1em;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Plan Buttons */
.plan-btn {
  width: 100%;
  padding: 15px 20px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  color: white;
}

.apprentice-btn {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.apprentice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.scholar-btn {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.scholar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.practitioner-btn {
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.practitioner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(156, 39, 176, 0.4);
}

/* All Plans Include */
.all-plans-include {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.all-plans-include h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.4em;
}

.include-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.include-item {
  background: #f8f9fa;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 0.95em;
  color: #555;
}

/* Back Button */
.back-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 20px;
  background: white;
  color: #ff006e;
  border: 2px solid white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.secure-note {
  text-align: center;
  font-size: 0.85em;
  color: white;
  opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  .pricing-header h1 {
    font-size: 1.8em;
  }

  .tagline {
    font-size: 1em;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .pricing-card {
    padding: 30px 20px;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .plan-badge {
    font-size: 1.3em;
  }

  .plan-name {
    font-size: 1.1em;
  }

  .amount {
    font-size: 3em;
  }

  .include-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .all-plans-include {
    padding: 20px;
  }
}

/* Tablet View */
@media (min-width: 769px) and (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ========================================
   SIGNUP MODAL STYLES 
   ======================================== */

/* ==========================================
   1. MODAL CONTAINER & OVERLAY
   ========================================== */

/* Full-screen modal container (hidden by default) */
.signup-modal {
  display: none;                    /* Hidden until .visible class added */
  position: fixed;                  /* Cover entire viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;                   /* Above everything else */
  align-items: center;              /* Center vertically */
  justify-content: center;          /* Center horizontally */
}

/* Show modal when .visible class is added */
.signup-modal.visible {
  display: flex;
}

/* Dark, blurred backdrop behind modal */
.signup-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);   /* 60% black opacity */
  backdrop-filter: blur(4px);       /* Blur the background */
}

/* ==========================================
   2. MODAL CONTENT BOX
   ========================================== */

.signup-modal-content {
  position: relative;               /* For absolute positioning of close button */
  background: white;
  border-radius: 20px;
  padding: 40px 35px;
  max-width: 480px;                 /* Desktop max width */
  width: 90%;                       /* 90% of viewport on smaller screens */
  max-height: 90vh;                 /* Don't exceed 90% of viewport height */
  overflow-y: auto;                 /* Scroll if content too tall */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);  /* Deep shadow */
  animation: modalSlideIn 0.3s ease-out;  /* Smooth entrance animation */
  z-index: 10001;                   /* Above overlay */
}

/* Slide-in animation when modal opens */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);  /* Start above and smaller */
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);         /* End at normal position */
  }
}

/* ==========================================
   3. CLOSE BUTTON (X)
   ========================================== */

.modal-close {
  position: absolute;               /* Top-right corner */
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #999;                      /* Gray by default */
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;               /* Circular */
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  background: #f0f0f0;              /* Light gray background on hover */
  color: #333;                      /* Darker text on hover */
}

/* ==========================================
   4. MODAL HEADER
   ========================================== */

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header h2 {
  color: #333;
  font-size: 1.8em;                 /* Large heading */
  margin-bottom: 10px;
}

/* Plan badge (e.g., "🔵 Scholar - $8/month") */
.selected-plan-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.95em;
  margin-bottom: 8px;
}

/* Color-coded badges for each plan */
.selected-plan-badge.apprentice {
  background: linear-gradient(135deg, #4CAF50, #45a049);  /* Green gradient */
  color: white;
}

.selected-plan-badge.scholar {
  background: linear-gradient(135deg, #2196F3, #1976D2);  /* Blue gradient */
  color: white;
}

.selected-plan-badge.practitioner {
  background: linear-gradient(135deg, #9C27B0, #7B1FA2);  /* Purple gradient */
  color: white;
}

.modal-subtitle {
  color: #666;
  font-size: 0.95em;
}

/* ==========================================
   5. SIGNUP FORM
   ========================================== */

.modal-form {
  display: flex;
  flex-direction: column;           /* Stack inputs vertically */
  gap: 15px;                        /* Space between inputs */
  margin-bottom: 20px;
}

.modal-form input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;        /* Light gray border */
  border-radius: 10px;
  font-size: 1em;
  transition: all 0.2s ease;
}

/* Input focus state - brand pink! */
.modal-form input:focus {
  outline: none;
  border-color: #ff006e;            /* Your brand pink */
  box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1);  /* Pink glow */
}

/* ==========================================
   6. SUBMIT BUTTON
   ========================================== */

.modal-submit-btn {
  background: linear-gradient(135deg, #ff006e 0%, #ff2e8a 100%);  /* Brand gradient */
  color: white;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 1.05em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);  /* Pink shadow */
}

.modal-submit-btn:hover {
  transform: translateY(-2px);      /* Lift up on hover */
  box-shadow: 0 6px 16px rgba(255, 0, 110, 0.4);  /* Deeper shadow */
}

.modal-submit-btn:active {
  transform: translateY(0);         /* Press down on click */
}

/* ==========================================
   7. DIVIDER ("OR")
   ========================================== */

.modal-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

/* Horizontal line behind "OR" */
.modal-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

/* "OR" text on top of line */
.modal-divider span {
  position: relative;
  background: white;                /* White background to cover line */
  padding: 0 15px;
  color: #999;
  font-weight: 600;
  font-size: 0.85em;
}

/* ==========================================
   8. GOOGLE SIGNUP BUTTON
   ========================================== */

.modal-google-btn {
  width: 100%;
  background: white;
  color: #444;
  border: 2px solid #e0e0e0;
  padding: 14px;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;                        /* Space between icon and text */
  transition: all 0.2s ease;
}

.modal-google-btn:hover {
  background: #f8f9fa;              /* Light gray on hover */
  border-color: #ccc;
}

.modal-google-btn svg {
  flex-shrink: 0;                   /* Prevent icon from shrinking */
}

/* ==========================================
   9. ERROR MESSAGE
   ========================================== */

.modal-error-message {
  color: #e74c3c;                   /* Red text */
  background: #fee;                 /* Light red background */
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 0.9em;
  display: none;                    /* Hidden by default */
}

/* Show error when it has content */
.modal-error-message:not(:empty) {
  display: block;
}

/* ==========================================
   10. FOOTER LINK
   ========================================== */

.modal-footer {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 0.9em;
}

.modal-footer a {
  color: #ff006e;                   /* Brand pink */
  text-decoration: none;
  font-weight: 600;
}

.modal-footer a:hover {
  text-decoration: underline;
}

/* ==========================================
   11. MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .signup-modal-content {
    padding: 30px 25px;             /* Less padding on mobile */
    width: 95%;                     /* Wider on mobile */
  }

  .modal-header h2 {
    font-size: 1.5em;               /* Smaller heading on mobile */
  }

  .modal-form input,
  .modal-submit-btn,
  .modal-google-btn {
    padding: 12px;                  /* Less padding on mobile */
  }
}

