/* ══ HERO ══ */
.qind-hero {
  background: linear-gradient(135deg, #0b3d6e 0%, #1578be 55%, #d40000 100%);
  padding: 48px 0 56px;                     /* aligned with about.css */
  position: relative;
  overflow: hidden;
}
.qind-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;
}
.qind-hero::after {
  content: "📊";
  position: absolute;
  right: 6%; top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  font-weight: var(--fw-xbold);
  color: rgba(255,255,255,.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.qind-hero-inner { position: relative; z-index: 1; }
.qind-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 */
}
.qind-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: qpulse 1.6s infinite;
}
@keyframes qpulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.qind-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);
}
.qind-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 */
}
.qind-hero-chips {
  display: flex;
  gap: 14px;                               /* aligned with about.css */
  flex-wrap: wrap;
}
.qind-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);
}
.qind-chip i { color: rgba(255,255,255,.7); font-size: var(--text-sm); }
.qind-hero-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}
.qind-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;
}
.qind-stat-card i { font-size: var(--text-xl); color: rgba(255,255,255,.7); flex: 0 0 auto; }
.qind-stat-val { font-size: var(--text-2xl); font-weight: var(--fw-xbold); line-height: 1; margin-bottom: 2px; }
.qind-stat-label { font-size: var(--text-xs); color: rgba(255,255,255,.65); font-weight: var(--fw-semibold); }

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

/* ══ QUERY CARD ══ */
.qind-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;
}
.qind-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));
}
.qind-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);
}
.qind-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;
}
.qind-query-head p {
  font-size: var(--text-xs);
  color: rgba(11,18,32,.42);
  margin: 0;
}
.qind-query-body { padding: 24px 28px 28px; }                /* aligned with about.css */
.qind-form-label {
  font-size: var(--text-sm);               /* adjusted from --text-xs to match about.css */
  font-weight: var(--fw-bold);
  color: rgba(11,18,32,.72);
  margin-bottom: 6px;
  display: block;
}
.qind-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;
}
.qind-select:focus {
  outline: none;
  border-color: #1578be;
  box-shadow: 0 0 0 3px rgba(21,120,190,.12);
  background: #fff;
}
.qind-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);
}
.qind-submit-btn:hover { opacity: .88; transform: translateY(-1px); }

/* Mode toggle pills */
.qind-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);
}
.qind-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;
}
.qind-mode-btn:hover { background: rgba(255,255,255,.8); color: rgba(11,18,32,.8); }
.qind-mode-btn.active {
  background: #fff;
  color: #1578be;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.qind-mode-btn i { font-size: var(--text-sm); }

/* Mode badge in results head */
.qind-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(21,120,190,.1);
  border: 1px solid rgba(21,120,190,.2);
  color: #1578be;
  font-size: var(--text-xs);
  font-weight: var(--fw-xbold);
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Year field animated show/hide */
.qind-year-field {
  overflow: hidden;
  max-height: 80px;
  transition: max-height .3s ease, opacity .3s ease, margin .3s ease;
  opacity: 1;
}
.qind-year-field.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0 !important;
  pointer-events: none;
}

/* ══ ACTIVE FILTERS ══ */
.qind-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);
}
.qind-filters-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: rgba(11,18,32,.4);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.qind-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;
}
.qind-filter-badge i { font-size: var(--text-xs); }
.qind-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;
}
.qind-filter-remove:hover { background: #d40000; color: #fff; }

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

/* ══ RESULTS CARD ══ */
.qind-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;
}
.qind-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));
}
.qind-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 */
}
.qind-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;
}
.qind-results-head p {
  font-size: var(--text-xs);
  color: rgba(11,18,32,.42);
  margin: 0;
}
.qind-results-body { padding: 24px 28px 28px; }                /* aligned with about.css */

/* ══ CHART CARD ══ */
.qind-chart-card {
  background: #fafbfc;
  border-radius: 12px;
  border: 1.5px solid rgba(11,18,32,.06);
  padding: 16px;
  margin-bottom: 16px;
}
.qind-chart-card:last-child { margin-bottom: 0; }

/* ══ DATA TABLE ══ */
.qind-table-wrap {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(11,18,32,.07);
}
.qind-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.qind-table thead tr {
  background: linear-gradient(135deg, #1578be, #0b3d6e);
  color: #fff;
}
.qind-table thead th {
  padding: 11px 14px;
  font-weight: var(--fw-bold);
  font-size: var(--text-xs);
  text-align: left;
  border: none;
}
.qind-table tbody tr {
  border-bottom: 1px solid rgba(11,18,32,.06);
  transition: background .15s;
}
.qind-table tbody tr:last-child { border-bottom: none; }
.qind-table tbody tr:hover { background: rgba(21,120,190,.04); }
.qind-table tbody td {
  padding: 10px 14px;
  color: rgba(11,18,32,.7);
}
.qind-table tbody td:first-child { font-weight: var(--fw-semibold); color: rgba(11,18,32,.85); }

/* ══ EMPTY STATE ══ */
.qind-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(11,18,32,.4);
}
.qind-empty i { font-size: 48px; margin-bottom: 14px; display: block; color: rgba(21,120,190,.3); }
.qind-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);
  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) {
  .qind-hero { padding: 28px 0 32px; }
  .qind-hero-right { flex-direction: row; flex-wrap: wrap; min-width: unset; }
  .qind-stat-card { flex: 1 1 calc(50% - 5px); }
  .qind-query-body, .qind-results-body { padding: 18px 16px 22px; }  /* aligned with about.css */
  .qind-mode-btn { font-size: var(--text-xs); padding: 8px 10px; }
}
/* Year field animated show/hide (duplicate removed) */