/* Upgrade Page Styles */
.upgrade-page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Open Sans', Arial, sans-serif;
}

.upgrade-header {
  text-align: center;
  margin-bottom: 40px;
}

.upgrade-header h1 {
  color: #2c3e50;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.upgrade-header p {
  color: #666;
  font-size: 18px;
  margin: 0;
}

.upgrade-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.upgrade-plan-card {
  background: white;
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.upgrade-plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #2157ac;
}

.upgrade-plan-card.featured {
  border-color: #2157ac;
  transform: scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #2157ac;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-header {
  margin-bottom: 25px;
}

.plan-header h3 {
  color: #2c3e50;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.plan-price {
  font-size: 36px;
  font-weight: 700;
  color: #2157ac;
  margin-bottom: 8px;
}

.plan-price span {
  font-size: 16px;
  color: #666;
  font-weight: 400;
}

.plan-billing {
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

.plan-seats {
  color: #27ae60;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-features {
  margin-bottom: 25px;
}

.search-limit {
  background: #2157ac;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
}

.search-limit.unlimited {
  background: #27ae60;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.plan-features li {
  padding: 8px 0;
  color: #555;
  font-size: 15px;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.plan-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
  font-size: 14px;
}

.upgrade-plan-button {
  background: #2157ac;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upgrade-plan-button:hover {
  background: #1a4a94;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 87, 172, 0.3);
}

.upgrade-plan-button:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.upgrade-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
}

.cancel-upgrade-link {
  color: #666;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.cancel-upgrade-link:hover {
  color: #2157ac;
  background: rgba(33, 87, 172, 0.1);
  text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .upgrade-page-container {
    padding: 20px 15px;
  }
  
  .upgrade-header h1 {
    font-size: 24px;
  }
  
  .upgrade-plans-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .upgrade-plan-card.featured {
    transform: none;
  }
  
  .plan-price {
    font-size: 28px;
  }
}

/* Enhanced Search Limit Badges to Match Login Page */
.search-limit.pro {
  background: transparent;
  border: 2px solid #2157ac;
  color: #2157ac;
  border-radius: 4px;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  margin-bottom: 15px;
  text-align: center;
}

.search-limit.unlimited {
  background: transparent;
  border: 2px solid #27ae60;
  color: #27ae60;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  border-radius: 4px;
  display: inline-block;
  font-size: 14px;
  padding: 8px 12px;
  margin-bottom: 15px;
  text-align: center;
}

/* Plan Trial Styling to Match Login Page */
.plan-trial {
  color: #27ae60;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tooltip Styles - Copy from Login Page */
.tooltip-item {
  position: relative;
  cursor: pointer;
}

.tooltip-icon {
  margin-left: 6px;
  font-size: 12px;
  color: #2157ac;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.tooltip-icon:hover {
  opacity: 1;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 2px solid #2157ac;
  border-radius: 8px;
  padding: 16px;
  width: 320px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  color: #2c3e50;
}

.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #2157ac;
}

.tooltip-content h4 {
  color: #2157ac;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.tooltip-content h5 {
  color: #2c3e50;
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tooltip-content p {
  margin: 0 0 8px 0;
  color: #555;
}

.tooltip-content ul {
  margin: 6px 0 0 0;
  padding-left: 16px;
}

.tooltip-content li {
  margin: 4px 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.3;
}

.tooltip-content li:before {
  content: "•";
  color: #2157ac;
  font-weight: bold;
  position: absolute;
  margin-left: -12px;
}

.tooltip-content a {
  color: #2157ac;
  text-decoration: underline;
  font-weight: 600;
}

.tooltip-content a:hover {
  color: #1a4a94;
}

/* Show tooltip on hover and click */
.tooltip-item:hover .tooltip-content,
.tooltip-item.tooltip-active .tooltip-content {
  opacity: 1;
  visibility: visible;
}

/* Mobile tooltip adjustments */
@media (max-width: 768px) {
  .tooltip-content {
    width: 280px;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .tooltip-content::after {
    display: none;
  }
  
  /* Close button for mobile */
  .tooltip-content::before {
    content: '✕';
    position: absolute;
    top: 8px;
    right: 12px;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    z-index: 1001;
  }
}

/* Update existing plan features styling */
.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex: 1;
  text-align: left;
}

.plan-features li {
  padding: 5px 0;
  color: #555;
  font-size: 14px;
  position: relative;
  padding-left: 18px;
  line-height: 1.4;
  text-align: left;
}

.plan-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
  font-size: 12px;
}

/* Update plan card flex structure */
.upgrade-plan-card {
  background: white;
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

/* Update button styling to match login page */
.upgrade-plan-button {
  background: #2157ac;
  color: white !important;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
  text-decoration: none !important;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.upgrade-plan-button:hover {
  background: #1a4a94;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 87, 172, 0.3);
  text-decoration: none !important;
}

/* Promotional Banner Styles */
.promo-banner {
  background: linear-gradient(135deg, #f9ca24 0%, #f0932b 100%);
  border: 2px solid #f39c12;
  border-radius: 12px;
  padding: 20px;
  margin: 0 auto 30px auto;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.25);
  position: relative;
  overflow: hidden;
  display: none; /* Hidden by default */
  transition: all 0.3s ease;
}

/* Show banner when active */
.promo-banner.promo-banner-active {
  display: block;
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add subtle pattern overlay */
.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='m0 40l40-40h-40v40zm40 0v-40h-40l40 40z'/%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.promo-content {
  position: relative;
  z-index: 1;
}

.promo-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.promo-highlight {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-offer {
  color: #c0392b;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(192, 57, 43, 0.2);
}

.promo-sub {
  color: #c0392b;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.promo-code {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 8px 16px;
  display: inline-block;
  border: 2px dashed #e67e22;
}

.promo-code strong {
  color: #c0392b;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

.promo-disclaimer {
  color: #555;
  font-size: 11px;
  font-style: italic;
  line-height: 1.3;
  opacity: 0.9;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .promo-banner {
    margin: 0 15px 25px 15px;
    padding: 16px;
  }
  
  .promo-main {
    flex-direction: column;
    gap: 4px;
  }
  
  .promo-highlight {
    font-size: 14px;
  }
  
  .promo-offer {
    font-size: 20px;
  }
  
  .promo-sub {
    font-size: 12px;
  }
  
  .promo-code {
    font-size: 14px;
  }
  
  .promo-code strong {
    font-size: 16px;
  }
  
  .promo-disclaimer {
    font-size: 10px;
  }
}

/* Hover effect for desktop */
@media (hover: hover) {
  .promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.35);
  }
}

/* Upgrade Support Button Styles */
#upgrade-support-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #2157ac;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(33, 87, 172, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  font-family: 'Open Sans', Arial, sans-serif;
  user-select: none;
}

#upgrade-support-button:hover {
  background: #1a4a94;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 87, 172, 0.4);
}

#upgrade-support-window {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 350px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  font-family: 'Open Sans', Arial, sans-serif;
  border: 2px solid #2157ac;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.3s ease;
}

#upgrade-support-window.support-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.support-header {
  background: #2157ac;
  color: white;
  padding: 15px 20px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}

.support-header button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.support-header button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.support-content {
  padding: 20px;
}

.support-instructions {
  margin: 0 0 15px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
}

#upgrade-support-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ecf0f1;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Open Sans', Arial, sans-serif;
  resize: vertical;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#upgrade-support-form textarea:focus {
  outline: none;
  border-color: #2157ac;
}

#upgrade-support-form input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #ecf0f1;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#upgrade-support-form input[type="email"]:focus {
  outline: none;
  border-color: #2157ac;
}

#submit-upgrade-support {
  background: #2157ac;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
  font-family: 'Open Sans', Arial, sans-serif;
}

#submit-upgrade-support:hover {
  background: #1a4a94;
}

#upgrade-support-success {
  text-align: center;
}

#upgrade-support-success p {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: #27ae60;
  font-weight: 600;
}

#send-more-upgrade-support {
  color: #2157ac;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.3s ease;
}

#send-more-upgrade-support:hover {
  color: #1a4a94;
  text-decoration: underline;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  #upgrade-support-button {
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    font-size: 11px;
  }
  
  #upgrade-support-window {
    bottom: 70px;
    right: 20px;
    left: 20px;
    width: auto;
  }
  
  .support-header {
    padding: 12px 15px;
    font-size: 13px;
  }
  
  .support-content {
    padding: 15px;
  }
  
  .support-instructions {
    font-size: 12px;
  }
  
  #upgrade-support-form textarea,
  #upgrade-support-form input[type="email"] {
    font-size: 12px;
    padding: 10px;
  }
  
  #submit-upgrade-support {
    font-size: 12px;
    padding: 10px 16px;
  }
}
