* { box-sizing: border-box; }
body { 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
  margin: 0; 
  color: #111; 
  background: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Page-specific backgrounds */
body:has([href="/network"].active) { background: #f0ecec; }
body:has([href="/download"].active) { background: #f0ecec; }

/* Header Styles */
.main-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 2rem;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: 101;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
  background-color: #134074;
}

.hamburger-menu:hover .hamburger-line {
  background-color: white;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 3px;
}

/* Hamburger animation when active */
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  padding: 1rem 2rem;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  border-bottom: none;
  transition: background-color 0.2s;
}

.mobile-menu a:not(.active) {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu a:has(+ a.active) {
  border-bottom: none;
}

.mobile-menu a:hover {
  background-color: #f5f5f5;
}

.mobile-menu .faq-icon:hover {
  background-color: #f5f5f5 !important;
}

.mobile-menu a.active {
  background: transparent !important;
  color: #333;
  position: relative;
  border-radius: 12px;
  border: 2px solid #3b82f6;
  border-bottom: 2px solid #3b82f6 !important;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.mobile-menu a.active:hover {
  background: transparent !important;
}


@media (max-width: 768px) {
  .main-header {
    padding: 0 1rem;
    position: relative;
    justify-content: space-between;
  }
  
  .header-logo {
    display: block !important;
    font-size: 1.5rem;
    color: #333;
    position: relative;
    z-index: 1;
  }
  
  .hamburger-menu {
    display: flex;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .header-nav {
    display: none;
  }
  
  .header-actions {
    display: none;
  }
  
  .subscription-info {
    display: none;
  }
  
  .mobile-menu .profile-btn {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.header-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.header-nav a:hover {
  background-color: #f5f5f5;
}

.header-nav a.active {
  background-color: #134074;
  color: white;
}

/* FAQ icon styling */
.faq-icon {
  color: #333;
  border-radius: 50%;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.faq-icon:hover {
  background: #f5f5f5 !important;
  color: #333 !important;
  transform: scale(1.1);
}

@media (min-width: 769px) {
  .faq-icon:hover {
    background: #134074 !important;
    color: white !important;
  }
}

.faq-icon.active {
  background: #134074 !important;
  color: white !important;
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.subscription-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  margin-right: 0.5rem;
}

.subscription-status {
  font-size: 0.875rem;
  opacity: 0.9;
}

.subscription-active {
  color: #2e7d32;
  font-weight: 500;
}

.subscription-inactive {
  color: #d32f2f;
  font-weight: 500;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.upgrade-btn {
  background: black;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: #333;
}

.credit-balance {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #495057;
}

.credit-balance #credit-count {
  color: #007cba;
  font-weight: 600;
  margin-left: 4px;
}


/* Enrichment Modal Styles */
.enrichment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.enrichment-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.enrichment-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.enrichment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #134074 0%, #0B2545 100%);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.enrichment-modal-title-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.enrichment-modal-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.enrichment-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.enrichment-modal-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.enrichment-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: white;
  transition: all 0.2s ease;
}

.enrichment-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.enrichment-action-btn:active {
  transform: scale(0.95);
}

.enrichment-action-btn svg {
  width: 38px !important;
  height: 38px !important;
}

.enrichment-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  line-height: 1;
}

.enrichment-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.enrichment-modal-body {
  padding: 2rem;
  max-height: calc(85vh - 100px);
  overflow-y: auto;
}

/* Loading State */
.enrichment-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem;
  text-align: center;
}

.enrichment-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #134074;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.enrichment-loading p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

/* VIP Gradient Border Styles - BORDER ONLY, WHITE BACKGROUND */
.vip-gradient-border {
  background: white !important;
  border: 3px solid #3498db !important;
  border-radius: 12px !important;
  position: relative;
  overflow: hidden;
}

/* Create gradient border using pseudo-element */
.vip-gradient-border::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(to right, #3498db, #2ecc71, #f39c12);
  border-radius: 12px;
  z-index: -2;
}

/* White background overlay to ensure white interior */
.vip-gradient-border::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  border-radius: 9px;
  z-index: -1;
}

/* Enhanced VIP styling with subtle effect */
.vip-gradient-border.enhanced {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.vip-gradient-border.enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* VIP Badge */
.vip-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(to right, #3498db, #2ecc71, #f39c12);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  pointer-events: none;
}

.admin-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(45deg, #134074, #0B2545);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  pointer-events: none;
}

/* VIP Gate Modal Styles */
.vip-gate-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.vip-gate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.vip-gate-content {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

.vip-gate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #134074 0%, #0B2545 100%);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vip-gate-title-section h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vip-gate-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  line-height: 1;
}

.vip-gate-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.vip-gate-body {
  padding: 2rem;
  max-height: calc(85vh - 100px);
  overflow-y: auto;
}

.vip-gate-feature-list {
  margin-bottom: 2rem;
}

.vip-gate-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #134074;
}

.vip-gate-feature-icon {
  font-size: 1.5rem;
  margin-top: 0.25rem;
  min-width: 2rem;
}

.vip-gate-feature-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #134074;
}

.vip-gate-feature-content p {
  margin: 0;
  color: #666;
  line-height: 1.5;
  font-size: 0.95rem;
}

.vip-gate-cta {
  background: #f0f8ff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #e3f2fd;
}

.vip-gate-current-plan {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  color: #666;
}

.vip-gate-current-plan span {
  font-weight: 600;
  color: #ff9800;
}

.vip-gate-description {
  margin: 0 0 1.5rem 0;
  color: #444;
  line-height: 1.5;
  font-size: 1rem;
}

.vip-gate-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.vip-gate-upgrade-btn {
  background: linear-gradient(135deg, #134074 0%, #0B2545 100%);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(19, 64, 116, 0.3);
}

.vip-gate-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(19, 64, 116, 0.4);
  color: white;
  text-decoration: none;
}

.vip-gate-cancel-btn {
  background: transparent;
  color: #666;
  padding: 0.75rem 2rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vip-gate-cancel-btn:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #333;
}

/* Mobile responsive for VIP gate modal */
@media (max-width: 768px) {
  .vip-gate-content {
    width: 95%;
    margin: 1rem;
  }
  
  .vip-gate-header {
    padding: 1rem 1.5rem;
  }
  
  .vip-gate-header h2 {
    font-size: 1.3rem;
  }
  
  .vip-gate-body {
    padding: 1.5rem;
  }
  
  .vip-gate-feature {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .vip-gate-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .vip-gate-upgrade-btn,
  .vip-gate-cancel-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Content Area */
.enrichment-content {
  line-height: 1.6;
}

.enrichment-result {
  margin-bottom: 1.5rem;
}

.enrichment-company-header,
.enrichment-person-header {
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 1.5rem;
}

.enrichment-company-header h3,
.enrichment-person-header h3 {
  margin: 0 0 0.5rem 0;
  color: #134074;
  font-size: 1.4rem;
  font-weight: 600;
}

.enrichment-url {
  margin-top: 0.5rem;
}

.enrichment-url a {
  color: #666;
  font-size: 0.9rem;
  text-decoration: none;
  word-break: break-all;
}

.enrichment-url a:hover {
  color: #134074;
  text-decoration: underline;
}

.enrichment-person-title {
  color: #666;
  font-size: 1.1rem;
  font-weight: 500;
}

.enrichment-analysis {
  margin-bottom: 1.5rem;
}

.enrichment-analysis p {
  margin: 0 0 1rem 0;
  color: #333;
}

.enrichment-sources {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #134074;
}

.enrichment-sources h4 {
  margin: 0 0 1rem 0;
  color: #134074;
  font-size: 1.1rem;
}

.enrichment-sources ul {
  margin: 0;
  padding-left: 1.5rem;
}

.enrichment-sources li {
  margin-bottom: 0.5rem;
}

.enrichment-sources a {
  color: #134074;
  text-decoration: none;
}

.enrichment-sources a:hover {
  text-decoration: underline;
}

/* Error State */
.enrichment-error {
  text-align: center;
  padding: 2rem;
}

.enrichment-error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.enrichment-error h3 {
  color: #d32f2f;
  margin: 0 0 1rem 0;
}

.enrichment-error p {
  color: #666;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.enrichment-retry-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.enrichment-retry-btn:hover {
  background: #5a6268;
}

/* Enrichment Icon Button */
.enrichment-icon {
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
  padding: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.enrichment-icon:hover {
  background: #000000;
  transform: scale(1.05);
}

.enrichment-icon img {
  width: 20px;
  height: 20px;
  /* Transparent background, full color logo */
}

/* Marketplace specific enrichment icon positioning */
.marketplace-enrichment {
  position: absolute;
  bottom: 8px;
  right: 8px;
  margin: 0;
}

/* Make marketplace items relative positioned for absolute icon */
.marketplace-item {
  position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
  .enrichment-modal-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .enrichment-modal-header {
    padding: 1rem 1.5rem;
  }
  
  .enrichment-modal-body {
    padding: 1.5rem;
  }
  
  .enrichment-modal-title-section {
    gap: 0.75rem;
  }
  
  .enrichment-modal-header h2 {
    font-size: 1.2rem;
  }
}

.logout-btn {
  background: transparent;
  color: black;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.profile-btn {
  background: black;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: none;
}

.profile-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: #333;
  color: white;
  text-decoration: none;
}

/* Main Content */
.main-content {
  flex: 1;
}
.container { max-width: 1200px; margin: 40px auto; padding: 0 16px; }
h1 { margin-bottom: 16px; }
/* Basic search form styling - only for search forms, not modal forms */
.search-form { display: flex; gap: 8px; margin-bottom: 12px; }

/* Modal forms should stack vertically */
.modal-form-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input[type="url"] { flex: 1; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; }
button { padding: 10px 14px; border: none; border-radius: 8px; cursor: pointer; background: #007cba; color: white; }
button:hover { background: #555; }
button:disabled { background: #ccc; cursor: not-allowed; opacity: 0.6; }

/* Enhanced Analyse Form Styling */
#urlForm {
  display: flex;
  gap: 12px;
  align-items: center;
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  margin: 24px 0;
  transition: all 0.3s ease;
}

#urlForm:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e0;
}

#urlInput {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 400;
  background: #f8fafc;
  color: #2d3748;
  transition: all 0.3s ease;
  min-width: 0;
}

#urlInput:focus {
  outline: none;
  border-color: #007cba;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

#urlInput::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

#analyzeBtn {
  padding: 16px 32px;
  background: linear-gradient(135deg, #007cba 0%, #0066a0 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 124, 186, 0.2);
}

#analyzeBtn:hover {
  background: linear-gradient(135deg, #0066a0 0%, #004d7a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
}

#analyzeBtn:active {
  transform: translateY(0);
}

#analyzeBtn:disabled {
  background: #cbd5e0;
  color: #a0aec0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive design for enrich form */
@media (max-width: 768px) {
  #urlForm {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }
  
  #analyzeBtn {
    padding: 16px 24px;
  }
}

.status { margin: 8px 0 16px; font-size: 0.95rem; color: #444; }

/* Website Preview Section */
.website-preview-section {
  margin: 15px 0;
  padding: 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: left;
}

.website-preview-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 10px;
}

.website-favicon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.website-info {
  text-align: left;
}

.website-domain {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.website-title {
  font-size: 14px;
  color: #666;
  margin: 2px 0 0 0;
}

/* Free Preview Section */
.free-preview-section { 
  background: #f0f8ff; 
  border: 2px solid #007cba; 
  border-radius: 12px; 
  padding: 20px; 
  margin: 20px 0; 
}
.free-preview-section h2 { 
  margin: 0 0 12px; 
  color: #007cba; 
  font-size: 1.4rem; 
}
.preview-content { 
  background: white; 
  padding: 16px; 
  border-radius: 8px; 
  border: 1px solid #e5e5e5; 
}
.preview-loading { 
  color: #666; 
  font-style: italic; 
}
.preview-result { 
  white-space: pre-wrap; 
  line-height: 1.5; 
  font-size: 16px; 
}

/* Category Sections */
.analysis-categories { 
  margin-top: 30px; 
}
.category-section { 
  margin-bottom: 40px; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Category-specific backgrounds */
.business-overview-category { 
  background: #FFFFFF; 
  border: 2px solid #2196f3; 
}
.seo-category { 
  background: #FFFFFF; 
  border: 2px solid #4caf50; 
}
.paid-ads-category { 
  background: #FFFFFF; 
  border: 2px solid #ff9800; 
}
.content-competition-category { 
  background: #FFFFFF; 
  border: 2px solid #9c27b0; 
}
.key-decision-maker-category { 
  background: #FFFFFF; 
  border: 2px solid #e91e63; 
}
.category-header { 
  background: transparent; 
  padding: 20px; 
  border-bottom: 2px solid rgba(0,0,0,0.1); 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}
.category-header h2 { 
  margin: 0; 
  font-size: 1.4rem; 
  color: #333333; 
}
.analyze-all-btn { 
  background: #13315C; 
  color: white; 
  font-weight: 600; 
  padding: 12px 20px; 
}
.analyze-all-btn:hover { 
  background: #0f2547; 
}

/* Person Search Form */
.person-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.person-search-form input {
  flex: 1;
  min-width: 300px;
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.person-search-form input:focus {
  outline: none;
  border-color: #e91e63;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.person-search-form button {
  background: #e91e63;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.person-search-form button:hover {
  background: #c2185b;
}

.person-search-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .category-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .person-search-form {
    justify-content: stretch;
  }
  
  .person-search-form input {
    min-width: auto;
  }
}

/* Category Panels */
.category-panels { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 2px; 
  padding: 8px; 
}

/* Responsive layout for category panels */
@media (min-width: 600px) {
  .category-panels {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Drawer Styles */
.panel.drawer { 
  background: rgba(255, 255, 255, 0.8); 
  border-radius: 8px; 
  margin-bottom: 8px; 
  border: 1px solid rgba(0,0,0,0.1); 
  transition: all 0.3s ease; 
}

.panel.drawer.closed { 
  background: rgba(255, 255, 255, 0.5); 
}

.panel.drawer.open { 
  background: rgba(255, 255, 255, 0.95); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

.panel.drawer.has-ai-data { 
  background: rgba(255, 255, 255, 0.95); 
  border-color: #007cba; 
}

.panel.drawer.has-ai-data.open { 
  background: rgba(255, 255, 255, 0.98); 
}

.panel-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 16px 20px; 
  cursor: pointer; 
  user-select: none; 
  transition: background-color 0.2s ease; 
}

.panel-header:hover { 
  background: rgba(0,0,0,0.05); 
  border-radius: 8px 8px 0 0; 
}

.panel-actions { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.drawer-icon { 
  font-size: 12px; 
  transition: transform 0.3s ease; 
  color: #666; 
}

.panel.drawer.open .drawer-icon { 
  transform: rotate(180deg); 
}
.panel-header h3 { 
  margin: 0; 
  font-size: 1.1rem; 
  color: #333333; 
}
.analyze-btn { 
  background: #333; 
  color: white; 
  padding: 8px 16px; 
  font-size: 0.9rem; 
}
.analyze-btn:hover { 
  background: #555; 
}
.panel.drawer .content { 
  max-height: 0; 
  overflow: hidden; 
  transition: max-height 0.3s ease, padding 0.3s ease; 
  padding: 0 10px; 
  white-space: pre-wrap; 
  line-height: 1.3; 
  text-align: left; 
  position: relative; 
}

.panel.drawer.open .content { 
  max-height: 500px; 
  padding: 10px 15px; 
  overflow-y: auto;
}

.panel.drawer.closed .content:empty { 
  display: none; 
}

/* AI Badge Styling */
.ai-badge { 
  position: absolute; 
  top: 10px; 
  right: 10px; 
  width: 24px; 
  height: 24px; 
  background: linear-gradient(45deg, #ff9800, #f57c00); 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 12px; 
  color: white; 
  font-weight: bold; 
  cursor: help; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
  transition: transform 0.2s ease; 
}

.ai-badge:hover { 
  transform: scale(1.1); 
}

.ai-badge::after { 
  content: "AI"; 
}

.ai-badge:hover::before { 
  content: attr(title); 
  position: absolute; 
  background: #333; 
  color: white; 
  padding: 4px 8px; 
  border-radius: 4px; 
  font-size: 11px; 
  white-space: nowrap; 
  top: -35px; 
  right: 0; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); 
  z-index: 1000; 
  pointer-events: none;
}

/* Responsive Design - Single column layout for network page */
.category-panels { 
  grid-template-columns: 1fr; 
}

.panel { 
  border-bottom: 1px solid #e5e5e5; 
}

.panel:last-child { 
  border-bottom: none; 
}

/* Special styling for coming soon panels */
.panel:has(button:disabled) { 
  opacity: 0.7; 
}
.panel:has(button:disabled) .content { 
  color: #666; 
  font-style: italic; 
}

/* Footer Styles */
.main-footer {
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  padding: 20px 2rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: auto;
}

/* Progress Bar Styles */
#progressContainer {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007cba, #4a9eff);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
  animation: progress-pulse 2s infinite;
}

.progress-text {
  font-size: 14px;
  color: #495057;
  font-weight: 500;
  text-align: center;
}

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

/* Profile page VIP Services button styling - matching Start Free button */
.action-button.btn-primary {
  background: linear-gradient(to right, #3498db, #2ecc71, #f39c12);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.action-button.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  text-decoration: none;
  background: white;
  color: #134074;
}

/* Premium upgrade button with blue to dark blue gradient */
.action-button.btn-premium {
  background: linear-gradient(135deg, #007cba 0%, #134074 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,124,186,0.3);
}

.action-button.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,124,186,0.4);
  text-decoration: none;
  background: white;
  color: #134074;
}
