/* HubSpot Design System Colors */
:root {
  --hs-primary: #ff7a59;
  --hs-primary-dark: #f2545b;
  --hs-secondary: #0091ae;
  --hs-success: #00bda5;
  --hs-warning: #fcb441;
  --hs-danger: #f2545b;
  --hs-slate-1: #f5f8fa;
  --hs-slate-2: #eaf0f6;
  --hs-slate-3: #cbd6e2;
  --hs-slate-4: #99acc2;
  --hs-slate-5: #64798a;
  --hs-slate-6: #425b76;
  --hs-slate-7: #33475b;
  --hs-white: #ffffff;
  --hs-text-primary: #33475b;
  --hs-text-secondary: #425b76;
  --hs-border: #cbd6e2;
  --hs-background: #f5f8fa;
}

/* Reset and Base Styles */
body {
  font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--hs-background);
  color: var(--hs-text-primary);
  line-height: 1.6;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--hs-background) 0%, var(--hs-slate-1) 100%);
}

.wrapper .container {
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header/Navigation */
.navigation {
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navigation .container {
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navigation-title {
  color: var(--hs-primary);
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navigation-title:hover {
  color: var(--hs-primary-dark);
}

.navigation-menu {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  color: var(--hs-text-secondary);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover {
  background: var(--hs-slate-1);
  color: var(--hs-text-primary);
}

.nav-link.active {
  background: var(--hs-primary);
  color: var(--hs-white);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--hs-white);
  border: 1px solid var(--hs-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(51, 71, 91, 0.15);
  margin-top: 0.25rem;
  padding: 0.5rem 0;
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--hs-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--hs-slate-1);
  color: var(--hs-text-primary);
}

.dropdown-item:first-child {
  border-radius: 6px 6px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 6px 6px;
}

.navigation-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  display: none;
}

/* Cards and Layout */
.card {
  background: var(--hs-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(51, 71, 91, 0.1);
  border: 1px solid var(--hs-border);
  overflow: hidden;
  margin-bottom: 2rem;
}

.card-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--hs-border);
  background: var(--hs-slate-1);
}

.card-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--hs-text-primary);
}

.card-subtitle {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: var(--hs-text-secondary);
  font-family: 'Courier New', monospace;
}

.card-body {
  padding: 2rem;
}

/* Buttons */
.button, .btn {
  background: var(--hs-primary);
  color: var(--hs-white);
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(255, 122, 89, 0.3);
}

.button:hover, .btn:hover {
  background: var(--hs-primary-dark);
  box-shadow: 0 4px 8px rgba(255, 122, 89, 0.4);
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--hs-slate-3);
  color: var(--hs-text-primary);
  box-shadow: 0 2px 4px rgba(203, 214, 226, 0.3);
}

.button-secondary:hover {
  background: var(--hs-slate-4);
  color: var(--hs-text-primary);
}

.button-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.data-table th {
  background: var(--hs-slate-1);
  color: var(--hs-text-primary);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--hs-border);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--hs-border);
  color: var(--hs-text-primary);
  font-size: 0.95rem;
}

.data-table tr:hover {
  background: var(--hs-slate-1);
}

.tokens-table {
  max-width: 100%;
}

.tokens-table td {
  word-break: break-all;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--hs-text-secondary);
}

/* Contact Cards */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--hs-white);
  border-radius: 8px;
  border: 1px solid var(--hs-border);
  padding: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(51, 71, 91, 0.05);
}

.contact-card:hover {
  box-shadow: 0 4px 12px rgba(51, 71, 91, 0.15);
  transform: translateY(-2px);
}

.contact-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hs-slate-2);
}

.contact-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--hs-text-primary);
  margin: 0 0 0.5rem 0;
}

.contact-email {
  font-size: 0.9rem;
  color: var(--hs-secondary);
  margin: 0;
  font-family: 'Courier New', monospace;
}

.contact-details {
  margin-bottom: 1rem;
}

.contact-company,
.contact-phone,
.contact-modified {
  font-size: 0.9rem;
  color: var(--hs-text-secondary);
  margin: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--hs-slate-2);
}

.contact-id {
  font-size: 0.8rem;
  color: var(--hs-slate-5);
  font-family: 'Courier New', monospace;
}

/* Search Functionality */
.search-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--hs-slate-1);
  border-radius: 8px;
  border: 1px solid var(--hs-border);
}

.search-input-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hs-border);
  border-radius: 6px;
  font-size: 0.95rem;
  background: var(--hs-white);
  color: var(--hs-text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--hs-primary);
  box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.1);
}

.search-input::placeholder {
  color: var(--hs-slate-5);
}

.search-button {
  white-space: nowrap;
}

/* Contact Count */
.contact-count {
  font-size: 0.9rem;
  color: var(--hs-text-secondary);
  font-weight: 400;
  margin-left: 0.5rem;
}

/* Empty States */
.empty-state {
  padding: 3rem 2rem;
  background: var(--hs-slate-1);
  border-radius: 8px;
  border: 2px dashed var(--hs-slate-3);
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Actions */
.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--hs-border);
  margin-top: 2rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--hs-text-secondary);
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--hs-text-secondary);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--hs-border);
  border-top: 2px solid var(--hs-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Welcome/Login Styles */
.welcome-container {
  max-width: 1000px;
  margin: 4rem auto;
  text-align: center;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--hs-text-primary);
  margin-bottom: 1rem;
}

.welcome-subtitle {
  font-size: 1.2rem;
  color: var(--hs-text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.redirect-url-section {
  background: var(--hs-slate-1);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--hs-primary);
}

.redirect-url {
  background: var(--hs-white);
  border: 1px solid var(--hs-border);
  border-radius: 4px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  margin: 1rem 0;
  word-break: break-all;
  color: var(--hs-text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .wrapper .container {
    padding: 1rem;
  }
  
  .navigation .container {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .data-table {
    font-size: 0.8rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Configuration page styles */
.section {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
}

.test-mode-options {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.button-group {
  margin-top: 1rem;
}

.button-group .button {
  margin-right: 1rem;
}

.alert {
  padding: 1rem;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  margin-bottom: 1rem;
}

/* Property mapping styles */
.mapping-section {
  margin-top: 2rem;
}

.object-selector {
  margin-bottom: 2rem;
}

.mapping-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e1e1e1;
}

.mapping-row {
  margin-bottom: 1rem;
  align-items: center;
}

.property-row {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.infinitecampus-prop, .hubspot-prop {
  font-family: monospace;
  background-color: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
}

.arrow {
  margin: 0 1rem;
  font-weight: bold;
  color: #666;
}

.mapping-card {
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.mapping-card .mapping-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e1e1e1;
}

.mapping-actions .button {
  margin-left: 0.5rem;
}

/* Preview page styles */
.preview-controls {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.preview-summary {
  margin-bottom: 2rem;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  text-align: center;
}

.data-tabs {
  margin-bottom: 1rem;
}

.tab-button {
  background-color: #e9ecef;
  border: 1px solid #dee2e6;
  padding: 0.5rem 1rem;
  margin-right: 0.25rem;
  cursor: pointer;
  border-bottom: none;
}

.tab-button.active {
  background-color: #fff;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}

.tab-content {
  border: 1px solid #dee2e6;
  padding: 1rem;
  background-color: #fff;
}

.data-table-container {
  overflow-x: auto;
}

.data-table-container table {
  min-width: 100%;
  font-size: 0.875rem;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Sync results styles */
.sync-status {
  margin-bottom: 2rem;
}

.status {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.status.success {
  background-color: #d4edda;
  color: #155724;
}

.status.running {
  background-color: #d1ecf1;
  color: #0c5460;
}

.status.error {
  background-color: #f8d7da;
  color: #721c24;
}

.status.partial {
  background-color: #fff3cd;
  color: #856404;
}

.sync-details {
  margin-bottom: 2rem;
}

.error-details {
  margin-bottom: 2rem;
}

.error-item {
  padding: 1rem;
  border: 1px solid #f5c6cb;
  background-color: #f8d7da;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.error-record {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.synced-samples {
  margin-bottom: 2rem;
}

.sync-actions {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e1e1e1;
}

.sync-actions .button {
  margin-right: 1rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .mapping-row {
    flex-direction: column;
  }
  
  .mapping-row .column {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .summary-stats {
    grid-template-columns: 1fr;
  }
  
  .sync-actions .button {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    margin-right: 0;
  }
  
  .navigation .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navigation-menu {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }
}

/* Dashboard Styles */
.dashboard-welcome {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--hs-primary) 0%, var(--hs-secondary) 100%);
  color: var(--hs-white);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 122, 89, 0.3);
}

.dashboard-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.dashboard-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--hs-white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(51, 71, 91, 0.1);
  border: 1px solid var(--hs-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(51, 71, 91, 0.15);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hs-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--hs-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Action Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.action-card {
  background: var(--hs-white);
  border-radius: 12px;
  border: 1px solid var(--hs-border);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(51, 71, 91, 0.15);
}

.action-header {
  padding: 2rem 2rem 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-icon {
  font-size: 2rem;
}

.action-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: var(--hs-text-primary);
}

.action-body {
  padding: 0 2rem 2rem 2rem;
}

.action-body p {
  color: var(--hs-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Activity Styles */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--hs-slate-1);
  border-radius: 8px;
  border-left: 4px solid var(--hs-primary);
}

.activity-icon {
  font-size: 1.5rem;
  min-width: 2rem;
}

.activity-title {
  font-weight: 600;
  color: var(--hs-text-primary);
  margin-bottom: 0.25rem;
}

.activity-description {
  color: var(--hs-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.activity-time {
  color: var(--hs-slate-5);
  font-size: 0.8rem;
}

/* AI Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.insight-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--hs-slate-1);
  border-radius: 8px;
  border: 1px solid var(--hs-border);
}

.insight-type {
  font-size: 0.9rem;
  color: var(--hs-text-secondary);
  margin-bottom: 0.5rem;
}

.insight-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hs-success);
  margin-bottom: 0.5rem;
}

.insight-trend {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  background: var(--hs-success);
  color: var(--hs-white);
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--hs-text-primary);
  margin: 0 0 1rem 0;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--hs-text-secondary);
  margin: 0;
}

/* AI Analysis Styles */
.quality-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.quality-metric {
  padding: 1.5rem;
  background: var(--hs-slate-1);
  border-radius: 8px;
  border: 1px solid var(--hs-border);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--hs-text-secondary);
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--hs-primary);
  margin-bottom: 1rem;
}

.metric-bar {
  height: 8px;
  background: var(--hs-slate-3);
  border-radius: 4px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hs-success) 0%, var(--hs-primary) 100%);
  transition: width 0.3s ease;
}

/* Recommendations */
.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommendation-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--hs-white);
  border-radius: 8px;
  border: 1px solid var(--hs-border);
  border-left: 4px solid var(--hs-primary);
}

.recommendation-item.priority-high {
  border-left-color: var(--hs-danger);
}

.recommendation-item.priority-medium {
  border-left-color: var(--hs-warning);
}

.recommendation-item.priority-low {
  border-left-color: var(--hs-success);
}

.recommendation-icon {
  font-size: 1.5rem;
  min-width: 2rem;
}

.recommendation-content {
  flex: 1;
}

.recommendation-title {
  font-weight: 600;
  color: var(--hs-text-primary);
  margin-bottom: 0.5rem;
}

.recommendation-description {
  color: var(--hs-text-secondary);
  margin-bottom: 0.25rem;
}

.recommendation-impact {
  font-size: 0.8rem;
  color: var(--hs-slate-5);
}

.recommendation-actions {
  display: flex;
  gap: 0.5rem;
}

.button-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Subscription Styles */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.plan-card {
  background: var(--hs-white);
  border-radius: 12px;
  border: 2px solid var(--hs-border);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(51, 71, 91, 0.15);
}

.plan-card.current-plan {
  border-color: var(--hs-primary);
  box-shadow: 0 4px 16px rgba(255, 122, 89, 0.3);
}

.plan-card.current-plan::before {
  content: 'Current Plan';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--hs-primary);
  color: var(--hs-white);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-header {
  padding: 2rem;
  text-align: center;
  background: var(--hs-slate-1);
}

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

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hs-text-primary);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hs-primary);
}

.plan-features {
  padding: 2rem;
}

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

.plan-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hs-slate-2);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-action {
  padding: 0 2rem 2rem 2rem;
}

.plan-action .button {
  width: 100%;
  justify-content: center;
}

/* Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.feature-list li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

/* AI Features Preview */
.ai-features-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.preview-feature {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--hs-slate-1);
  border-radius: 8px;
  border: 1px solid var(--hs-border);
}

.feature-icon {
  font-size: 1.5rem;
  min-width: 2rem;
}

.feature-title {
  font-weight: 600;
  color: var(--hs-text-primary);
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--hs-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.upgrade-cta {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--hs-primary) 0%, var(--hs-secondary) 100%);
  color: var(--hs-white);
  border-radius: 12px;
}

.upgrade-cta h4 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
}

.upgrade-cta p {
  margin: 0 0 2rem 0;
  opacity: 0.9;
}

/* Usage Analytics */
.usage-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.usage-metric {
  text-align: center;
  padding: 1.5rem;
  background: var(--hs-slate-1);
  border-radius: 8px;
  border: 1px solid var(--hs-border);
}

.usage-metric .metric-label {
  font-size: 0.9rem;
  color: var(--hs-text-secondary);
  margin-bottom: 0.5rem;
}

.usage-metric .metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--hs-primary);
  margin-bottom: 0.25rem;
}

.usage-metric .metric-limit {
  font-size: 0.8rem;
  color: var(--hs-slate-5);
}

/* Status indicators */
.status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status.paid {
  background: var(--hs-success);
  color: var(--hs-white);
}

.status.pending {
  background: var(--hs-warning);
  color: var(--hs-white);
}

.status.failed {
  background: var(--hs-danger);
  color: var(--hs-white);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(51, 71, 91, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  background: var(--hs-white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(51, 71, 91, 0.3);
}

.loading-content p {
  margin: 1rem 0 0 0;
  color: var(--hs-text-secondary);
}

/* Notifications */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: var(--hs-white);
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(51, 71, 91, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9999;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background: var(--hs-success);
}

.notification-error {
  background: var(--hs-danger);
}

.notification-warning {
  background: var(--hs-warning);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(51, 71, 91, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: var(--hs-white);
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(51, 71, 91, 0.3);
}

.modal-content h3 {
  margin: 0 0 1rem 0;
  color: var(--hs-text-primary);
}

.modal-content p {
  margin: 0 0 2rem 0;
  color: var(--hs-text-secondary);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.navigation-title span {
  display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.navigation-title span:before {
  content: '';
  position: absolute;
  left: 49%;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: var(--hs-text-secondary);
}
.navigation-title span img {
  height: 42px;
  border-radius: 5px;
  width: auto;
}
.navigation-title span img:last-child {
  height: 30px;
}

fieldset {
  background: #fff;
  border-radius: 5px;
}

/* Additional responsive improvements */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .action-grid {
    grid-template-columns: 1fr;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }
  
  .ai-features-preview {
    grid-template-columns: 1fr;
  }
  
  .usage-metrics {
    grid-template-columns: 1fr;
  }
}

/* Form Styles for Bypass Mode */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--hs-text-primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hs-border);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--hs-white);
  color: var(--hs-text-primary);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--hs-primary);
  box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.1);
}

.error-message {
  color: var(--hs-danger);
  background: rgba(244, 108, 108, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--hs-danger);
  font-size: 0.9rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 1rem;
}
.wrapper .container.subscription-page {
  display: flex;
  flex-wrap: wrap;
}

.wrapper .container.subscription-page .plans-grid {
  margin-bottom: 2rem;
      width: 66%;
    margin-left: 3%;
}
.wrapper .container.subscription-page .plans-grid .plan-card.current-plan {
  display: none;
}
.wrapper .container.subscription-page .card,
.wrapper .container.subscription-page .page-header {
  width: 100%;
}
.wrapper .container.subscription-page .card:nth-child(2) {
  width: 30%;
}

.footer p {
  margin-bottom: 10px;
  text-align: center;
  margin-top: 0;
}
.footer p a {
  color: var(--hs-primary);
  text-decoration: none;
}

.mapping-suggestions, .duplicate-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.mapping-suggestion, .duplicate-group {
  width: 300px;
  text-align: center;
  padding: 15px;
  border: 1px solid var(--hs-border);
  border-radius: 5px;
}
.duplicate-group {
  width: 450px;
}
.mapping-fields {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.group-actions, .group-records {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.group-header h4 {
  margin-top: 0;
}

.mapping-row, .mapping-header .row, .object-selector .row, .object-info .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mapping-row .column-1:nth-child(2), .mapping-header .row .column-1:nth-child(2) {
  font-size: 35px;
}
.mapping-row .column-2, .mapping-header .row .column-2 {
  flex-grow: 1;
  text-align: right;
}
.mapping-row .column-3, .mapping-header .row .column-3 {
  width: 25%;
}

.discovery-status .status-item {
  width: 50%;
  text-align: center;
  justify-content: center;
}
.object-selector .row .column, .object-info .row .column {
  width: 50%;
}
.object-info .row {
  align-items: flex-start;
}
#objectInfo {
  margin-bottom: 0;
}
.property-mapping .mapping-header .row > * {
  font-size: 18px;
  text-align: center;
}
.field-description {
  font-size: 12px;
  color: var(--hs-text-secondary);
}
header .navigation-title > span {
    align-items: center !important;
    gap: 0px !important;
}
header .navigation-title > span > span {
    font-size: 16px;
    line-height: 1;
    color: var(--hs-primary);
    text-transform: uppercase;
    font-weight: 700;
    background: var(--hs-primary);
    color: #fff;
    padding: 4px 7px;
    margin-left: -10px;
    border-radius: 4px;
    margin-top: 29px;
}
header .navigation-title > span > div:last-child {
    display: flex;
    align-items: flex-end;
    gap: 0;
    font-size: 12px;
    position: absolute;
    bottom: -22px;
    left: 20%;
    color: var(--hs-text-primary);
    line-height: 1.2;
}
header .navigation-title > span > div:last-child img[alt*=HubSpot] {
    height: 17px;
    margin: 0 3px 0 5px;
}
header .navigation-title > span > div:last-child img[alt*=HIVE] {
    height: 16px;
    margin-left: 5px;
}
main button.rounded-md, main button.rounded-lg {
    background-image: linear-gradient(90deg,#ff5c35,#fb31a8) !important;
    background-color: transparent !important;
    border: 0;
    color: #fff !important;
}
.dropdown-menu {
  margin-top: 0 !important;
}
.navigation-title span:before {
  display: none;
}
header {
  position: sticky;
    top: 0;
    background: var(--hs-background);
}
header .navigation .container {
  padding: 0 20px;
}
header .navigation-title {
  margin-top: -26px
}
header .navigation-title span img {
  height: 48px;
}
header .navigation-menu {
  padding: 20px 0;
}
header .dropdown-arrow {
  font-size: 11px;
    margin-top: 3px;
}