/* ===================================
   Site Health Checker - Light Theme
   Professional, Clean Design
   =================================== */

/* CSS Variables */
:root {
  /* Main Colors */
  --primary-blue: #4A90E2;
  --primary-blue-dark: #3A7BC8;
  --primary-blue-light: #E8F2FC;
  --accent-orange: #F5A623;
  --accent-orange-dark: #D4891C;
  --accent-orange-light: #FFF4E5;

  /* Backgrounds */
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFB;
  --bg-gray: #F1F4F6;

  /* Text Colors */
  --text-primary: #1A2B3C;
  --text-secondary: #5A6B7C;
  --text-muted: #8A9BAC;
  --text-light: #BCC8D4;

  /* Borders */
  --border-light: #E1E7EC;
  --border-medium: #D1D9E0;

  /* Grade Colors */
  --grade-a: #28A745;
  --grade-b: #5CB85C;
  --grade-c: #F5A623;
  --grade-d: #F76B1C;
  --grade-e: #E74C3C;
  --grade-f: #C0392B;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===================================
   Base Styles
   =================================== */

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-blue-dark);
}

/* ===================================
   Navbar
   =================================== */

.navbar {
  background-color: var(--bg-white) !important;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand i {
  color: var(--primary-blue);
  font-size: 1.75rem;
}

.navbar-brand:hover {
  color: var(--primary-blue) !important;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-blue) !important;
}

.auth-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.user-info i {
  color: var(--primary-blue);
}

/* ===================================
   Buttons
   =================================== */

.btn {
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent-orange);
  color: white;
}

.btn-accent:hover {
  background-color: var(--accent-orange-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--bg-gray);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--border-light);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  color: white;
  transform: translateY(-1px);
}

.btn-outline-accent {
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
  background: transparent;
}

.btn-outline-accent:hover {
  background-color: var(--accent-orange);
  color: white;
}

.btn-link {
  color: var(--primary-blue);
  text-decoration: none;
  background: transparent;
  padding: 0.5rem;
}

.btn-link:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1.1rem;
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
  background-color: var(--bg-white);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

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

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-tagline strong {
  color: var(--text-primary);
}

.hero-tagline i {
  color: var(--grade-a, #22c55e);
}

/* ===================================
   Scan Form
   =================================== */

.scan-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.scan-toggles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.strategy-toggle {
  display: flex;
  gap: 0.5rem;
}

.btn-strategy {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--border-color, #dee2e6);
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary, #6c757d);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-strategy:hover {
  border-color: var(--primary, #0d6efd);
  color: var(--primary, #0d6efd);
  background: rgba(13, 110, 253, 0.05);
}

.btn-strategy.active {
  border-color: var(--primary, #0d6efd);
  background: var(--primary, #0d6efd);
  color: #fff;
}

/* Real World dropdown inside the strategy toggle */
.strategy-toggle .dropdown {
  display: inline-flex;
}

.strategy-toggle .dropdown .btn-strategy {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.strategy-toggle .dropdown .btn-strategy.active,
.strategy-toggle .dropdown .btn-strategy.show {
  border-color: var(--primary, #0d6efd);
  background: var(--primary, #0d6efd);
  color: #fff;
}

.strategy-toggle .dropdown-menu {
  min-width: 10rem;
  border: 2px solid var(--border-color, #dee2e6);
  border-radius: 6px;
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
  padding: 0.25rem 0;
  margin-top: 0.35rem;
}

.strategy-toggle .dropdown-item {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  color: var(--text-secondary, #6c757d);
}

.strategy-toggle .dropdown-item:hover,
.strategy-toggle .dropdown-item:focus {
  background-color: rgba(13, 110, 253, 0.08);
  color: var(--primary, #0d6efd);
}

.input-group {
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  overflow: hidden;
}

.form-control {
  border: 2px solid var(--border-light);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background-color: var(--bg-white);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-blue-light);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.input-group .form-control {
  border-right: none;
}

.input-group .btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* ===================================
   Main Content
   =================================== */

.main-content {
  flex: 1;
  padding: 2rem 0;
}

.container {
  max-width: 1200px;
}

/* ===================================
   Alerts
   =================================== */

.alert {
  border-radius: 8px;
  border: 1px solid var(--border-light);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.alert-info {
  background-color: var(--primary-blue-light);
  border-color: var(--primary-blue);
  color: var(--text-primary);
}

.alert-warning {
  background-color: var(--accent-orange-light);
  border-color: var(--accent-orange);
  color: var(--text-primary);
}

.alert-danger {
  background-color: #FEE;
  border-color: var(--grade-e);
  color: var(--grade-e);
}

.alert-success {
  background-color: #E8F5E9;
  border-color: var(--grade-a);
  color: var(--grade-a);
}

/* ===================================
   Results Banner
   =================================== */

.results-section {
  animation: slideUp 0.5s ease;
}

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

.results-banner {
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 2rem;
}

.banner-header {
  background-color: var(--primary-blue-light);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.banner-url {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.banner-url i {
  color: var(--primary-blue);
}

.banner-actions {
  display: flex;
  gap: 0.75rem;
}

.banner-body {
  padding: 2rem;
}

/* ===================================
   Overview Section
   =================================== */

.overview-section {
  margin-bottom: 2rem;
}

.overview-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.overview-column {
  background-color: var(--bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.overview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.overview-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.overview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.overview-card-overall {
  background-color: var(--primary-blue-light);
  border: 2px solid var(--primary-blue);
}

.overview-card-overall:hover {
  border-color: var(--primary-blue);
}

.overview-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.overview-card-grade {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.overview-card-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

@media (max-width: 768px) {
  .overview-columns {
    grid-template-columns: 1fr;
  }

  .overview-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .overview-cards {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Score Cards
   =================================== */

/* ===================================
   Overview Section
   =================================== */

.overview-section {
  margin-bottom: 2rem;
}


.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--primary-blue);
}

.scores-section {
    margin-bottom: 2rem;
}

.scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.score-card {
  background-color: var(--bg-light);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.score-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.score-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.score-grade {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.score-value {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Grade Colors */
.grade-a { color: var(--grade-a); }
.grade-b { color: var(--grade-b); }
.grade-c { color: var(--grade-c); }
.grade-d { color: var(--grade-d); }
.grade-e { color: var(--grade-e); }
.grade-f { color: var(--grade-f); }

/* Overall Score Card */
.overall-score-card {
  background-color: var(--primary-blue-light);
  border: 2px solid var(--primary-blue);
}

.overall-score-card .score-grade {
  font-size: 2.5rem;
}

.overall-score-card .score-label {
  color: var(--primary-blue);
  font-size: 0.875rem;
}

.overall-score-card .score-value {
}

/* ===================================
   Metrics Section
   =================================== */

.metrics-section {
  margin-bottom: 2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.metric-card {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.metric-card:hover {
  border-color: var(--primary-blue);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.metric-name {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.metric-grade {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  background-color: var(--bg-white);
}

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

.metric-unit {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===================================
   Recommendations
   =================================== */

.recommendations-section {
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.recommendations-header {
  background-color: var(--accent-orange-light);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.recommendations-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recommendations-header h3 i {
  color: var(--accent-orange);
}

.recommendations-body {
  padding: 0;
}

.recommendation-item {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-fast);
}

.recommendation-item:last-child {
  border-bottom: none;
}

.recommendation-item:hover {
  background-color: var(--bg-light);
}

.recommendation-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.recommendation-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.recommendation-icon.high {
  background-color: #FEE;
  color: var(--grade-e);
}

.recommendation-icon.medium {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange-dark);
}

.recommendation-icon.low {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
}

.recommendation-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.recommendation-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-left: 48px;
}

/* ===================================
   Pricing Section
   =================================== */

.pricing-section {
  padding: 4rem 0;
  background-color: var(--bg-white);
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.pricing-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
  border: 2px solid var(--border-light);
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--accent-orange);
  background-color: var(--bg-white);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-orange);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.25rem;
}

.pricing-card.featured .pricing-price {
  color: var(--accent-orange);
}

.pricing-period {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li i {
  color: var(--grade-a);
  font-size: 0.875rem;
}

.pricing-features li.disabled {
  color: var(--text-muted);
}

.pricing-features li.disabled i {
  color: var(--text-light);
}

.pricing-card .btn {
  width: 100%;
}

/* ===================================
   Billing Cycle Toggle
   =================================== */

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-gray);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
}

.billing-toggle-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.billing-toggle-label.active {
  color: var(--text-primary);
}

.billing-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.billing-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.billing-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-blue);
  border-radius: 26px;
  transition: background-color 0.3s ease;
}

.billing-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.billing-switch input:checked + .billing-slider {
  background-color: var(--accent-orange);
}

.billing-switch input:checked + .billing-slider::before {
  transform: translateX(22px);
}

#savings-badge {
  font-size: 0.625rem;
  padding: 0.15em 0.5em;
  font-weight: 600;
  vertical-align: middle;
}

/* ===================================
   Billing Option Cards (Upgrade Modal)
   =================================== */

.billing-option-card {
  border: 2px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--bg-white);
}

.billing-option-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.billing-option-card.selected {
  border-color: var(--accent-orange);
  background-color: var(--accent-orange-light);
}

.billing-option-card .form-check-input {
  pointer-events: none;
}

.billing-option-card.selected .form-check-input:checked {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
}

.billing-option-card .badge.bg-success {
  font-size: 0.625rem;
  padding: 0.2em 0.5em;
}

/* ===================================
   Profile Page
   =================================== */

.profile-section {
  padding: 2rem 0;
}

.profile-header {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.profile-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-title i {
  color: var(--primary-blue);
}

.profile-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.profile-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.profile-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-value.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  width: fit-content;
}

.profile-value.badge-pro {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange-dark);
}

.profile-value.badge-free {
  background-color: var(--bg-gray);
  color: var(--text-secondary);
}

/* Scan History */
.scan-history {
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.scan-history-header {
  background-color: var(--primary-blue-light);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scan-history-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scan-history-header h3 i {
  color: var(--primary-blue);
}

.scan-history-body {
  padding: 10px;
}

.scan-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-fast);
  cursor: pointer;
  gap: 1rem;
}

.scan-item:last-child {
  border-bottom: none;
}

.scan-item:hover {
  background-color: var(--bg-light);
}

.scan-grade {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.scan-details {
  flex: 1;
  min-width: 0;
}

.scan-url {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.scan-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.scan-scores {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.scan-score-mini {
  text-align: center;
}

.scan-score-mini-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.scan-score-mini-value {
  font-size: 1rem;
  font-weight: 700;
}

.pro-required {
  padding: 3rem 2rem;
  text-align: center;
}

.pro-required i {
  font-size: 3rem;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.pro-required h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pro-required p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ===================================
   Admin Page
   =================================== */

.admin-section {
  padding: 2rem 0;
}

.admin-header {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.admin-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-title i {
  color: var(--primary-blue);
}

.admin-subtitle {
  color: var(--text-secondary);
}

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

.stat-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.stat-icon.blue {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
}

.stat-icon.orange {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
}

.stat-icon.green {
  background-color: #E8F5E9;
  color: var(--grade-a);
}

.stat-icon.purple {
  background-color: #F3E5F5;
  color: #9C27B0;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Settings Cards */
.settings-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.settings-header {
  background-color: var(--bg-light);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.settings-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-header h3 i {
  color: var(--primary-blue);
}

.settings-body {
  padding: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

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

.form-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-select {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  background-color: var(--bg-white);
  transition: border-color var(--transition-fast);
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--primary-blue);
  outline: none;
}

/* Users Table */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  background-color: var(--bg-light);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.table td {
  color: var(--text-primary);
}

.table tbody tr:hover {
  background-color: var(--bg-light);
}

/* ===================================
   Modals
   =================================== */

.modal-content {
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-white);
}

.modal-header {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-title i {
  color: var(--primary-blue);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
}

.btn-close {
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.btn-close:hover {
  opacity: 1;
}

/* ===================================
   Footer
   =================================== */

.footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-blue);
}

/* ===================================
   Loading States
   =================================== */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  gap: 1rem;
}

.loading-text {
  color: var(--text-primary);
  font-weight: 500;
}

/* ===================================
   Empty States
   =================================== */

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.empty-state h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ===================================
   Utilities
   =================================== */

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-blue { color: var(--primary-blue) !important; }
.text-orange { color: var(--accent-orange) !important; }
.text-success { color: var(--grade-a) !important; }
.text-danger { color: var(--grade-e) !important; }

.bg-white { background-color: var(--bg-white) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-blue-light { background-color: var(--primary-blue-light) !important; }
.bg-orange-light { background-color: var(--accent-orange-light) !important; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .banner-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-actions {
    width: 100%;
  }

  .banner-actions .btn {
    flex: 1;
  }

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

  .profile-info {
    grid-template-columns: 1fr;
  }

  .scan-scores {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  .navbar,
  .footer,
  .banner-actions,
  .btn,
  .modal {
    display: none !important;
  }

  .results-banner {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  body {
    background: white;
  }
}

/* ===================================
   Modal Scan Details Styles
   =================================== */

.overall-grade-display {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-normal);
}

.overall-grade-display:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.overall-grade-letter {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
}

.overall-grade-display.grade-a {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 3px solid #28a745;
}

.overall-grade-display.grade-b {
  background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
  color: #004085;
  border: 3px solid #007bff;
}

.overall-grade-display.grade-c {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  color: #856404;
  border: 3px solid #ffc107;
}

.overall-grade-display.grade-d {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  color: #6c5ce7;
  border: 3px solid #a29bfe;
}

.overall-grade-display.grade-e {
  background: linear-gradient(135deg, #fab1a0 0%, #e17055 100%);
  color: #d63031;
  border: 3px solid #ff7675;
}

.overall-grade-display.grade-f {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 3px solid #dc3545;
}

/* Score circles in modal */
.modal .score-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  transition: all var(--transition-normal);
}

.modal .score-circle.grade-a {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.modal .score-circle.grade-b {
  background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
  color: #004085;
}

.modal .score-circle.grade-c {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  color: #856404;
}

.modal .score-circle.grade-d {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  color: #6c5ce7;
}

.modal .score-circle.grade-e {
  background: linear-gradient(135deg, #fab1a0 0%, #e17055 100%);
  color: #d63031;
}

.modal .score-circle.grade-f {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

/* Metric items in modal */
.modal .metric-item {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.modal .metric-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.modal .metric-item.grade-a {
  border-left: 4px solid var(--grade-a);
}

.modal .metric-item.grade-c {
  border-left: 4px solid var(--grade-c);
}

.modal .metric-item.grade-f {
  border-left: 4px solid var(--grade-f);
}

/* ===================================
   Scan History Mini Scores
   =================================== */

.scan-score-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.scan-score-mini i {
  font-size: 0.7rem;
}

.scan-score-mini.grade-a {
  background-color: rgba(40, 167, 69, 0.15);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.scan-score-mini.grade-b {
  background-color: rgba(0, 123, 255, 0.15);
  color: #007bff;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.scan-score-mini.grade-c {
  background-color: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.scan-score-mini.grade-d {
  background-color: rgba(162, 155, 254, 0.15);
  color: #a29bfe;
  border: 1px solid rgba(162, 155, 254, 0.3);
}

.scan-score-mini.grade-e {
  background-color: rgba(255, 118, 117, 0.15);
  color: #ff7675;
  border: 1px solid rgba(255, 118, 117, 0.3);
}

.scan-score-mini.grade-f {
  background-color: rgba(220, 53, 69, 0.15);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.scan-score-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pagination */
#scan-pagination {
  padding: 8px 0;
}

#scan-pagination .pagination {
  gap: 4px;
}

#scan-pagination .page-link {
  background: transparent;
  border: 1px solid var(--border-light, #dee2e6);
  color: var(--text-primary, #333);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

#scan-pagination .page-link:hover {
  background: var(--primary-blue, #1a73e8);
  border-color: var(--primary-blue, #1a73e8);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

#scan-pagination .page-item.active .page-link {
  background: var(--primary-blue, #1a73e8);
  border-color: var(--primary-blue, #1a73e8);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

#scan-pagination .page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
}
