/* Modern CSS Reset & Variable Definitions */
:root {
  --primary-navy: #072359;
  --primary-navy-light: #153a7d;
  --accent-gold: #e5c263;
  --accent-gold-dark: #ccab50;
  --accent-gold-light: #f4dfa1;
  --grey-light: #cdcdcd;
  --bg-main: #f8fafe;
  --bg-card: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-white: #ffffff;
  --border-color: #e2e8f0;
  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fee2e2;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary-navy);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utility classes */
.hide {
  display: none !important;
}

.bg-alt {
  background-color: #f1f5f9;
}

.margin-top-lg {
  margin-top: 32px;
}

.text-gold {
  color: var(--accent-gold-dark) !important;
}

.text-navy {
  color: var(--primary-navy) !important;
}

.text-green {
  color: var(--green) !important;
}

/* Navigation Bar */
.navbar {
  background-color: var(--primary-navy);
  border-bottom: 3px solid var(--accent-gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.brand-highlight {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  color: #94a3b8;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero-banner {
  background: radial-gradient(circle at 80% 20%, var(--primary-navy-light) 0%, var(--primary-navy) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  color: var(--text-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 194, 99, 0.15) 0%, rgba(229, 194, 99, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(229, 194, 99, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 194, 99, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: var(--font-display);
}

.hero-title {
  color: var(--text-white);
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 20px;
  font-family: var(--font-display);
  letter-spacing: -1px;
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 36px;
  }
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 600px;
}

@media (max-width: 992px) {
  .hero-subtitle {
    margin: 0 auto 36px auto;
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
}

@media (max-width: 992px) {
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
  box-shadow: 0 4px 15px rgba(229, 194, 99, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 194, 99, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

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

.btn-outline-navy:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
}

.btn-full {
  width: 100%;
}

/* Preview Dashboard Card */
.dashboard-preview-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.preview-header {
  background-color: rgba(15, 23, 42, 0.8);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background-color: var(--red); }
.dot.yellow { background-color: var(--accent-gold); }
.dot.green { background-color: var(--green); }

.preview-title {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 1px;
  margin-left: 8px;
}

.preview-body {
  padding: 24px;
}

.stat-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-mini-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  color: var(--text-white);
  font-size: 26px;
  font-weight: 700;
  font-family: var(--font-display);
}

.stat-platform-top {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.platform-title {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.platform-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.platform-name {
  color: #e2e8f0;
  font-size: 13px;
}

.platform-count {
  color: var(--accent-gold);
  background-color: rgba(229, 194, 99, 0.1);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

.loading-placeholder {
  color: #64748b;
  font-size: 13px;
  font-style: italic;
  text-align: center;
  padding: 10px 0;
}

/* Sections General */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-size: 36px;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-gold);
  border-radius: 2px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
}

/* Search Box Area */
.search-box {
  background-color: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(7, 35, 89, 0.05);
  border: 1px solid var(--border-color);
  padding: 32px;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-end { justify-content: flex-end; }

.form-group label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group input, .form-group select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  background-color: #f8fafc;
  color: var(--text-dark);
  outline: none;
  transition: all 0.2s ease;
}

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary-navy);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(7, 35, 89, 0.08);
}

.search-filters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

@media (max-width: 768px) {
  .search-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

.filter-options {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.radio-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 26px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
  color: var(--text-dark);
}

.radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: #f1f5f9;
  border: 1.5px solid var(--grey-light);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.radio-container:hover input ~ .checkmark {
  background-color: #e2e8f0;
}

.radio-container input:checked ~ .checkmark {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.radio-container input:checked ~ .checkmark:after {
  display: block;
}

.radio-container .checkmark:after {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

.btn-search {
  padding: 12px 36px;
}

/* Results Metadata */
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-count {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-page {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-page:hover:not(.disabled) {
  border-color: var(--primary-navy);
  color: var(--primary-navy);
}

.btn-page.active {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  color: var(--text-white);
}

.btn-page.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Court Grid & Cards */
.courts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  min-height: 200px;
}

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

.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 0;
  color: var(--text-muted);
}

.loading-state i {
  font-size: 32px;
  color: var(--accent-gold-dark);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background-color: var(--bg-card);
  border-radius: 12px;
  border: 1.5px dashed var(--grey-light);
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  color: var(--grey-light);
  margin-bottom: 16px;
}

.court-card {
  background-color: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.court-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(7, 35, 89, 0.08);
  border-color: rgba(7, 35, 89, 0.15);
}

.court-card-header {
  padding: 20px 20px 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.court-state-county {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-state {
  background-color: rgba(7, 35, 89, 0.06);
  color: var(--primary-navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.court-county {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.court-name {
  font-size: 18px;
  color: var(--primary-navy);
  line-height: 1.35;
}

.court-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13px;
}

.meta-lbl {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-val {
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-val.external-link {
  color: var(--primary-navy);
  text-decoration: underline;
}

/* Badge System */
.badge-permission {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-permitted {
  background-color: rgba(229, 194, 99, 0.15);
  color: var(--accent-gold-dark);
  border: 1px solid rgba(229, 194, 99, 0.3);
}

.badge-prohibited {
  background-color: rgba(7, 35, 89, 0.08);
  color: var(--primary-navy);
  border: 1px solid rgba(7, 35, 89, 0.15);
}

.court-card-footer {
  padding: 16px 20px 20px 20px;
  border-top: 1px solid #f1f5f9;
  background-color: #fafbfc;
}

/* Analytics Stats section details */
.stats-cards-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

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

.stat-large-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  display: flex;
  gap: 24px;
}

@media (max-width: 576px) {
  .stat-large-card {
    flex-direction: column;
    padding: 24px;
  }
}

.stat-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.gold-bg {
  background-color: rgba(229, 194, 99, 0.15);
  color: var(--accent-gold-dark);
}

.navy-bg {
  background-color: rgba(7, 35, 89, 0.08);
  color: var(--primary-navy);
}

.stat-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-header {
  font-size: 22px;
  margin-top: 4px;
}

.stat-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.pct-val {
  font-weight: 700;
  font-family: var(--font-display);
}

.progress-track {
  height: 8px;
  background-color: #f1f5f9;
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease-out;
}

.fill-gold { background-color: var(--accent-gold); }
.fill-navy { background-color: var(--primary-navy); }

/* Custom bar chart */
.platform-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.bar-label-name {
  color: var(--text-dark);
}

.bar-label-count {
  color: var(--text-muted);
}

.bar-track {
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: var(--primary-navy-light);
  border-radius: 100px;
  transition: width 1s ease-out;
}

/* Footer styling */
.main-footer {
  background-color: var(--primary-navy);
  color: #94a3b8;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
}

.footer-logo {
  height: 32px;
}

.footer-copy {
  font-size: 12px;
  max-width: 600px;
  line-height: 1.5;
}

/* Interactive Modal system */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 35, 89, 0.45);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  width: 100%;
  max-width: 650px;
  box-shadow: 0 25px 50px -12px rgba(7, 35, 89, 0.25);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-area i {
  font-size: 18px;
}

.modal-title {
  font-size: 20px;
  color: var(--primary-navy);
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  background-color: #f1f5f9;
  color: var(--text-dark);
}

.modal-body {
  padding: 24px;
}

.modal-phase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 14px;
}

.notice-alert {
  background-color: var(--red-light);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 14px;
}

.alert-icon {
  font-size: 20px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #7f1d1d;
}

.alert-desc {
  font-size: 13px;
  color: #991b1b;
  line-height: 1.4;
}

.required {
  color: var(--red);
}

/* Custom Checkbox Logic */
.checkbox-container-wrap {
  display: flex;
  align-items: center;
  height: 48px; /* Alignment with birth date input */
}

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 26px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  user-select: none;
  color: var(--text-muted);
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: #f1f5f9;
  border: 1.5px solid var(--grey-light);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkbox-checkmark {
  background-color: #e2e8f0;
}

.checkbox-container input:checked ~ .checkbox-checkmark {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkbox-checkmark:after {
  display: block;
}

.checkbox-container .checkbox-checkmark:after {
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  margin-top: 8px;
}

/* Terminal Scanning Panel */
.terminal-box {
  background-color: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  background-color: #1e293b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  position: relative;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.t-dot.red { background-color: #f87171; }
.t-dot.yellow { background-color: #fbbf24; }
.t-dot.green { background-color: #34d399; }

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #94a3b8;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
}

.terminal-body {
  padding: 16px;
  height: 250px;
  overflow-y: auto;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: #38bdf8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.4;
  text-align: left;
}

.terminal-line {
  word-break: break-all;
}

.terminal-line.cmd { color: #f472b6; }
.terminal-line.success { color: #4ade80; }
.terminal-line.warning { color: #fbbf24; }
.terminal-line.info { color: #38bdf8; }

.scanner-animation {
  position: relative;
  height: 36px;
  background-color: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--primary-navy);
}

.scanner-bar {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(229, 194, 99, 0.4), transparent);
  animation: scan 2s linear infinite;
}

.scanning-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes scan {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Certificate Result */
.result-certificate {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.result-certificate.alert-warrant {
  border-color: rgba(239, 68, 68, 0.3);
  background-color: #fffafb;
}

.cert-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.cert-icon-wrapper.warn {
  background-color: var(--red-light);
}

.cert-title {
  font-size: 22px;
  color: var(--primary-navy);
}

.cert-details {
  border-top: 1.5px solid var(--border-color);
  border-bottom: 1.5px solid var(--border-color);
  padding: 16px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.c-lbl {
  color: var(--text-muted);
  font-weight: 500;
}

.c-val {
  color: var(--text-dark);
  font-weight: 700;
}

.ai-report-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  width: 100%;
  text-align: left;
  margin-top: 16px;
}

.report-header-lbl {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
  display: block;
  border-bottom: 1.5px solid var(--accent-gold);
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.report-content-text {
  font-size: 13.5px;
  color: var(--text-dark);
  line-height: 1.6;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px;
  white-space: pre-line;
}

/* Custom scrollbar for report box */
.report-content-text::-webkit-scrollbar {
  width: 6px;
}
.report-content-text::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.report-content-text::-webkit-scrollbar-thumb {
  background: var(--grey-light);
  border-radius: 3px;
}

.sources-box {
  width: 100%;
  text-align: left;
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.sources-header-lbl {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sources-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.source-link-item {
  font-size: 13px;
  color: var(--primary-navy-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.source-link-item:hover {
  color: var(--accent-gold-dark);
  text-decoration: underline;
}

/* Floating clipboard copy helper */
.clipboard-helper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--primary-navy);
  border: 2px solid var(--accent-gold);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  padding: 16px 20px;
  z-index: 10000;
  max-width: 450px;
  animation: slideUp 0.3s ease-out;
}

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

.helper-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.helper-title {
  color: var(--text-white);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.helper-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.helper-buttons .btn {
  padding: 6px 12px;
  font-size: 12px;
}

.helper-buttons .btn-secondary.icon-only {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px;
  margin-left: auto;
  cursor: pointer;
  transition: color 0.2s ease;
}

.helper-buttons .btn-secondary.icon-only:hover {
  color: var(--text-white);
}

.clipboard-helper.hide {
  display: none !important;
}

.text-gold-on-hover:hover {
  border-color: var(--accent-gold) !important;
  color: var(--accent-gold) !important;
}


