/* ══ HERO ══ */
.out-hero {
  background: linear-gradient(135deg, #0b3d6e 0%, #1578be 55%, #d40000 100%);
  padding: 48px 0 56px;                     /* aligned with about.css */
  position: relative;
  overflow: hidden;
}
.out-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 50%, rgba(255,255,255,.06), transparent),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(212,0,0,.18), transparent);
  pointer-events: none;
}
.out-hero-inner { position: relative; z-index: 1; }
.out-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: var(--text-xs);
  font-weight: var(--fw-xbold);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 14px;                       /* aligned with about.css */
  border-radius: 30px;
  margin-bottom: 14px;                     /* aligned with about.css */
}
.out-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: opulse 1.6s infinite;
}
@keyframes opulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.5; transform:scale(1.4); }
}
.out-hero h1 {
  font-size: clamp(26px, 4vw, 38px);        /* aligned with about.css */
  font-weight: var(--fw-xbold);
  color: #fff;
  margin-bottom: 10px;                     /* aligned with about.css */
  line-height: var(--lh-heading);
}
.out-hero p {
  font-size: var(--text-md);               /* aligned with about.css */
  color: rgba(255,255,255,.78);            /* aligned with about.css */
  max-width: 560px;
  line-height: var(--lh-loose);
  margin-bottom: 20px;                     /* aligned with about.css */
}
.out-hero-chips {
  display: flex;
  gap: 14px;                               /* aligned with about.css */
  flex-wrap: wrap;
}
.out-chip {
  display: flex;
  align-items: center;
  gap: 8px;                                /* aligned with about.css */
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;                     /* aligned with about.css */
  padding: 8px 16px;                       /* aligned with about.css */
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
}
.out-chip i { color: rgba(255,255,255,.7); font-size: var(--text-sm); }
.out-hero-right { display: flex; flex-direction: column; gap: 10px; min-width: 180px; }
.out-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
}
.out-stat-card i { font-size: var(--text-xl); color: rgba(255,255,255,.7); flex: 0 0 auto; }
.out-stat-val { font-size: var(--text-2xl); font-weight: var(--fw-xbold); line-height: 1; margin-bottom: 2px; }
.out-stat-label { font-size: var(--text-xs); color: rgba(255,255,255,.65); font-weight: var(--fw-semibold); }

/* ══ MAIN ══ */
.out-main { background: #f5f6f8; padding: 48px 0 72px; }   /* aligned with about.css */

/* ══ QUERY CARD ══ */
.out-query-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  margin-bottom: 20px;
}
.out-query-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 18px;                 /* aligned with about.css */
  border-bottom: 1px solid rgba(11,18,32,.07);
  background: linear-gradient(135deg, rgba(21,120,190,.05), rgba(212,0,0,.03));
}
.out-query-icon {
  width: 46px; height: 46px;               /* aligned with about.css */
  flex: 0 0 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1578be, #d40000);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: var(--text-xl);               /* aligned with about.css */
  box-shadow: 0 4px 14px rgba(21,120,190,.28);
}
.out-query-head h3 {
  font-size: var(--text-lg);               /* aligned with about.css */
  font-weight: var(--fw-xbold);
  color: rgba(11,18,32,.9);
  margin-bottom: 2px;
}
.out-query-head p {
  font-size: var(--text-xs);
  color: rgba(11,18,32,.42);
  margin: 0;
}
.out-query-body { padding: 24px 28px 28px; }                /* aligned with about.css */
.out-form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: rgba(11,18,32,.72);
  margin-bottom: 6px;
  display: block;
}
.out-form-label .opt-tag {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: rgba(11,18,32,.35);
  background: rgba(11,18,32,.06);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 5px;
  vertical-align: middle;
}
.out-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(11,18,32,.12);
  background: #fafbfc;
  font-size: var(--text-sm);
  color: rgba(11,18,32,.75);
  transition: border-color .2s, box-shadow .2s;
  appearance: auto;
}
.out-select:focus {
  outline: none;
  border-color: #1578be;
  box-shadow: 0 0 0 3px rgba(21,120,190,.12);
  background: #fff;
}
.out-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #1578be, #d40000);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-xbold);
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 14px rgba(21,120,190,.28);
}
.out-submit-btn:hover { opacity: .88; transform: translateY(-1px); }

/* Mode toggle */
.out-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: #f5f6f8;
  border-radius: 12px;
  padding: 5px;
  border: 1.5px solid rgba(11,18,32,.07);
}
.out-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: rgba(11,18,32,.55);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: background .22s, color .22s, box-shadow .22s;
}
.out-mode-btn:hover { background: rgba(255,255,255,.8); color: rgba(11,18,32,.8); }
.out-mode-btn.active { background: #fff; color: #1578be; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.out-mode-btn i { font-size: var(--text-sm); }
#outYearFieldWrap { transition: all .2s; }

/* ══ AUTOCOMPLETE ══ */
.out-autocomplete-wrap { position: relative; }
.out-autocomplete-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(11,18,32,.12);
  background: #fafbfc;
  font-size: var(--text-sm);
  color: rgba(11,18,32,.75);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  box-sizing: border-box;
}
.out-autocomplete-input:focus {
  border-color: #1578be;
  box-shadow: 0 0 0 3px rgba(21,120,190,.12);
  background: #fff;
}
.out-autocomplete-clear {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(11,18,32,.35);
  font-size: var(--text-xs);
  cursor: pointer;
  padding: 0;
  display: none;
  transition: color .18s;
}
.out-autocomplete-clear:hover { color: #d40000; }
.out-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid rgba(21,120,190,.18);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 300;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}
.out-autocomplete-dropdown.show { display: block; }
.out-ac-item {
  padding: 9px 14px;
  font-size: var(--text-sm);
  color: rgba(11,18,32,.75);
  cursor: pointer;
  border-bottom: 1px solid rgba(11,18,32,.05);
  transition: background .15s, color .15s;
}
.out-ac-item:last-child { border-bottom: none; }
.out-ac-item:hover { background: rgba(21,120,190,.07); color: #1578be; }
.out-ac-item mark {
  background: rgba(21,120,190,.18);
  color: #1578be;
  border-radius: 3px;
  padding: 0 2px;
  font-style: normal;
}
.out-ac-empty, .out-ac-loading {
  padding: 12px 14px;
  font-size: var(--text-sm);
  color: rgba(11,18,32,.4);
  text-align: center;
}

/* Active filters */
.out-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 14px;
  border-top: 1px solid rgba(11,18,32,.06);
  background: rgba(21,120,190,.02);
}
.out-filters-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: rgba(11,18,32,.4);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.out-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(21,120,190,.1);
  border: 1px solid rgba(21,120,190,.22);
  color: #1578be;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  padding: 4px 10px;
  border-radius: 20px;
}
.out-filter-badge i { font-size: var(--text-xs); }
.out-filter-remove {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(21,120,190,.15);
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #1578be;
  font-size: 9px;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  transition: background .18s, color .18s;
}
.out-filter-remove:hover { background: #d40000; color: #fff; }

/* Loading */
.out-loading {
  display: none;
  text-align: center;
  padding: 48px 20px;
  color: rgba(11,18,32,.45);
}
.out-loading.show { display: block; }
.out-spinner {
  width: 38px; height: 38px;
  border: 3px solid rgba(21,120,190,.15);
  border-top-color: #1578be;
  border-radius: 50%;
  animation: ospin .7s linear infinite;
  margin: 0 auto 14px;
}
@keyframes ospin { to { transform: rotate(360deg); } }

/* Results card */
.out-results-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
}
.out-results-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 18px;                 /* aligned with about.css */
  border-bottom: 1px solid rgba(11,18,32,.07);
  background: linear-gradient(135deg, rgba(21,120,190,.05), rgba(212,0,0,.03));
}
.out-results-icon {
  width: 46px; height: 46px;               /* aligned with about.css */
  flex: 0 0 46px;
  border-radius: 12px;
  background: rgba(21,120,190,.1);
  border: 1px solid rgba(21,120,190,.2);
  display: flex; align-items: center; justify-content: center;
  color: #1578be;
  font-size: var(--text-xl);               /* aligned with about.css */
}
.out-results-head h3 {
  font-size: var(--text-lg);               /* aligned with about.css */
  font-weight: var(--fw-xbold);
  color: rgba(11,18,32,.9);
  margin-bottom: 2px;
}
.out-results-head p {
  font-size: var(--text-xs);
  color: rgba(11,18,32,.42);
  margin: 0;
}
.out-results-body { padding: 24px 28px 28px; }                /* aligned with about.css */

/* Download button */
.out-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #1578be, #0b3d6e);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-xbold);
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 3px 10px rgba(21,120,190,.24);
}
.out-download-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

/* Total badge */
.out-total-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(21,120,190,.08);
  border: 1px solid rgba(21,120,190,.2);
  color: #1578be;
  font-size: var(--text-sm);
  font-weight: var(--fw-xbold);
  padding: 7px 16px;
  border-radius: 10px;
}

/* Trend chart */
.out-chart-wrap {
  background: #fff;
  border: 1.5px solid rgba(11,18,32,.07);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.out-chart-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-xbold);
  color: rgba(11,18,32,.78);
  margin-bottom: 12px;
}
.out-chart-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 320px;
}
.out-chart-canvas-wrap canvas { width: 100% !important; height: 320px !important; }

/* Table */
.out-table-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(11,18,32,.07);
  overflow-x: auto;
}
.out-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 480px;
}
.out-table thead tr { background: linear-gradient(135deg, #1578be, #0b3d6e); color: #fff; }
.out-table thead th {
  padding: 11px 14px;
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  text-align: left;
  border: none;
  white-space: nowrap;
}
.out-table tbody tr { border-bottom: 1px solid rgba(11,18,32,.06); transition: background .15s; }
.out-table tbody tr:last-child { border-bottom: none; }
.out-table tbody tr:nth-child(even) { background: rgba(21,120,190,.03); }
.out-table tbody tr:hover { background: rgba(21,120,190,.07); }
.out-table tbody td { padding: 10px 14px; color: rgba(11,18,32,.7); font-size: var(--text-sm); }
.out-table tbody td:first-child { font-weight: var(--fw-bold); color: rgba(11,18,32,.4); font-size: var(--text-xs); width: 40px; }
.out-table tbody td:nth-child(2) { font-weight: var(--fw-semibold); color: rgba(11,18,32,.82); }
.out-table tfoot tr { background: rgba(21,120,190,.06); border-top: 2px solid rgba(21,120,190,.18); }
.out-table tfoot td { padding: 10px 14px; font-weight: var(--fw-xbold); font-size: var(--text-sm); color: #1578be; }

/* Empty state */
.out-empty { text-align: center; padding: 48px 20px; color: rgba(11,18,32,.4); }
.out-empty i { font-size: 48px; margin-bottom: 14px; display: block; color: rgba(21,120,190,.3); }
.out-empty p { font-size: var(--text-sm); margin: 0; }

/* Quick links */
.ql-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.ql-header {
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #0b3d6e, #1578be);
  position: relative;
  overflow: hidden;
}
.ql-header::after {
  content: "";
  position: absolute;
  right: -20px; top: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.ql-header h4 {
  font-size: var(--text-base);             /* aligned with about.css */
  font-weight: var(--fw-xbold);
  color: #fff;
  margin: 0;
  position: relative; z-index: 1;
}
.ql-header p {
  font-size: var(--text-xs);               /* aligned with about.css (was var(--text-sm)) */
  color: rgba(255,255,255,.65);
  margin: 4px 0 0;
  position: relative; z-index: 1;
}
.ql-body {
  padding: 12px 14px;                      /* aligned with about.css (was 8px 12px 12px) */
}
.ql-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;                      /* aligned with about.css (was 9px 10px) */
  border-radius: 10px;
  text-decoration: none;
  color: rgba(11,18,32,.78);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  transition: background .18s, color .18s, gap .18s;
  border-bottom: 1px solid rgba(11,18,32,.05);
}
.ql-item:last-child { border-bottom: none; }
.ql-item:hover {
  background: rgba(21,120,190,.07);
  color: #1578be;
  gap: 13px;
  text-decoration: none;
}
.ql-icon {
  width: 32px; height: 32px;               /* aligned with about.css (was 30px) */
  flex: 0 0 32px;
  border-radius: 8px;
  background: rgba(21,120,190,.08);
  border: 1px solid rgba(21,120,190,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs);
  color: #1578be;
  transition: background .18s, color .18s;
}
.ql-item:hover .ql-icon {
  background: #1578be;
  color: #fff;
  border-color: transparent;
}
.ql-arrow {
  margin-left: auto;
  font-size: var(--text-xs);
  color: rgba(11,18,32,.22);
  transition: color .18s, transform .18s;
}
.ql-item:hover .ql-arrow {
  color: #1578be;
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .out-hero { padding: 28px 0 32px; }
  .out-hero-right { flex-direction: row; flex-wrap: wrap; min-width: unset; }
  .out-stat-card { flex: 1 1 calc(50% - 5px); }
  .out-query-body, .out-results-body { padding: 18px 16px 22px; }  /* aligned with about.css */
}