:root {
  --dv-ink: #0f2a3d;
  --dv-teal: #00a3a3;
  --dv-mist: #e8f4f5;
}

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--dv-ink);
  background:
    radial-gradient(circle at 10% 20%, #f4fbff 0%, #f7fafb 34%, #f8f8f8 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  z-index: -1;
  opacity: 0.45;
}

.bg-shape-1 {
  width: 320px;
  height: 320px;
  background: #7dd7d7;
  right: -120px;
  top: -70px;
}

.bg-shape-2 {
  width: 280px;
  height: 280px;
  background: #9fc3db;
  left: -100px;
  bottom: 20%;
}

/* Thin navbar mini brand */
.brand-datavue-mini {
  height: 22px;
  opacity: 0.75;
}

.navbar-brand-mini:hover .brand-datavue-mini {
  opacity: 1;
}

/* Legacy (kept for any other templates) */
.brand-datavue {
  height: 34px;
}

.brand-powerq {
  height: 30px;
}

.divider {
  color: #9cb1bc;
}

/* Hero brand inside spotlight */
.search-hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-logo-dv {
  height: 44px;
}

.hero-logo-pq {
  height: 38px;
}

.hero-divider {
  color: #9cb1bc;
  font-size: 1.6rem;
  line-height: 1;
}

.beta-pill {
  letter-spacing: 0.04em;
}

.eyebrow {
  color: var(--dv-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.8rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--dv-mist);
  color: #0b3a3a;
  font-size: 0.8rem;
  border: 1px solid #d2ebeb;
}

.glass-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 50px rgba(10, 39, 62, 0.12);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
}

.powered-badge {
  max-width: 220px;
  width: 100%;
}

.panel {
  background: #fff;
  border: 1px solid #e8eef1;
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(15, 42, 61, 0.06);
}

.low-priority-section {
  margin-top: 0.75rem;
}

.low-priority-section .panel,
.low-priority-section .glass-card {
  box-shadow: 0 8px 18px rgba(15, 42, 61, 0.05);
}

.search-spotlight {
  background:
    radial-gradient(80% 120% at 50% 0%, #ffffff 0%, #f4fbfc 58%, #eff8f9 100%);
  border: 1px solid #d8eaee;
  padding: 3rem 2rem 2.25rem;
}

@media (min-width: 768px) {
  .search-spotlight {
    padding: 3.5rem 3rem 2.5rem;
  }
}

.spotlight-inner {
  max-width: 920px;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  border: 1px solid #d8e3e8;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(15, 42, 61, 0.12);
  padding: 0.4rem 1.1rem;
  max-width: 820px;
  width: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}


.search-shell:focus-within {
  border-color: #77b8cb;
  box-shadow: 0 16px 42px rgba(15, 42, 61, 0.2);
  transform: translateY(-1px);
}

.search-icon {
  font-size: 1.25rem;
  color: #6f8997;
  user-select: none;
}

.search-input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0.7rem 0.3rem;
  font-size: 1.2rem;
  color: var(--dv-ink);
  background: transparent;
}

.search-input::placeholder {
  color: #7d97a4;
}


.search-suggest {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #dbe7ec;
  border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(15, 42, 61, 0.16);
  padding: 0.4rem;
  max-height: 340px;
  overflow: auto;
  z-index: 20;
}

.suggest-item {
  border: 0;
  width: 100%;
  text-align: left;
  background: transparent;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
}

.suggest-count {
  font-size: 0.78rem;
  color: #58717f;
  padding: 0.35rem 0.55rem 0.2rem 0.55rem;
}

.suggest-item:hover,
.suggest-item.is-active {
  background: #eef7fb;
}

.suggest-title {
  display: block;
  color: #16384b;
  font-weight: 600;
}

.suggest-meta {
  display: block;
  color: #6a8291;
  font-size: 0.82rem;
}

.search-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.hint-chip {
  border: 1px solid #d2e5eb;
  background: #fff;
  color: #275062;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1;
}

.hint-chip:hover {
  background: #edf7fa;
}

.hint-chip:focus-visible {
  outline: 2px solid #4aa5bf;
  outline-offset: 2px;
}

.source-toggle {
  border-radius: 999px;
}

.source-filter-card {
  background: #ffffff;
  border: 1px solid #d8e6ec;
  border-radius: 0.9rem;
  box-shadow: 0 10px 24px rgba(15, 42, 61, 0.1);
  max-width: 780px;
}

.ai-answer {
  background: #f7fafc;
  border: 1px solid #dce7ee;
  border-radius: 0.75rem;
  padding: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 6rem;
  color: #113246;
}

.ai-clean-shell {
  max-width: 920px;
}

.ai-subtle-intro {
  max-width: 760px;
  margin-inline: auto;
}

.filter-section-toggle {
  border-radius: 999px;
}

.filter-subsection {
  border-top: 1px solid #e4eef2;
  padding-top: 0.8rem;
}

.filter-action-btn {
  color: #3c6476;
  text-decoration: none;
}

.filter-action-btn:hover {
  color: #1c4f66;
  text-decoration: underline;
}

.source-check {
  margin-right: 0.3rem;
}

.source-check .form-check-input {
  cursor: pointer;
}

.source-check .form-check-label {
  font-size: 0.9rem;
  color: #244b5d;
  cursor: pointer;
}

/* ── compact result list rows (Google-style) ── */
.result-row {
  border: 1px solid #e3ecef;
  border-radius: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 0.15s, background 0.15s;
}

.result-row:hover {
  border-color: #b8d4df;
  background: #f8fcfe;
}

.result-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.result-src-badge {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #e8f5fb;
  color: #0f4a5f;
  border: 1px solid #b9d9e5;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto; /* push to right */
}

.result-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #0f2a3d;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.result-status {
  font-size: 0.67rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #f3f7f9;
  color: #3d6070;
  border: 1px solid #d5e4ea;
  white-space: nowrap;
  flex-shrink: 0;
}

.result-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.result-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.3rem;
  font-size: 0.78rem;
  color: #566f7c;
}

.result-meta-item {
  white-space: nowrap;
}

.meta-sep {
  color: #aec4cc;
  font-size: 0.65rem;
  user-select: none;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.result-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: #0a7a8f;
  text-decoration: none;
  white-space: nowrap;
}

.result-link:hover {
  text-decoration: underline;
  color: #065f6f;
}

.result-details-btn {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.78rem;
  color: #6b8fa0;
  cursor: pointer;
  white-space: nowrap;
}

.result-details-btn:hover {
  color: #1f4b62;
  text-decoration: underline;
}

/* legacy card styles kept for any other templates that may reference them */
.queue-card {
  border: 1px solid #e3ecef;
  border-radius: 0.85rem;
  padding: 1rem;
  background: linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.queue-meta {
  font-size: 0.8rem;
  color: #4f6572;
}

.queue-pos {
  font-size: 0.78rem;
  color: #0f4a5f;
  font-weight: 700;
  border: 1px solid #b9d9e5;
  background: #e8f5fb;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.queue-title {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #cfe4ec;
  background: #edf7fa;
  color: #275062;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.queue-chip-price {
  color: #0f4a5f;
  border-color: #b9d9e5;
  background: #e8f5fb;
}

.queue-context {
  min-height: 2.6rem;
}

.btn-primary {
  --bs-btn-bg: var(--dv-ink);
  --bs-btn-border-color: var(--dv-ink);
  --bs-btn-hover-bg: #153b54;
  --bs-btn-hover-border-color: #153b54;
}

.micro-ad {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 188px;
  min-height: 72px;
  padding: 0.35rem 0.35rem 0.25rem 0.35rem;
  border: 1px solid #d7e7ee;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(15, 42, 61, 0.12);
  z-index: 40;
}

.micro-ad.micro-ad-hidden {
  display: none;
}

.micro-ad-label {
  font-size: 0.68rem;
  color: #6c8492;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.25rem 0.1rem;
}

@media (max-width: 767px) {
  .hero-logo-dv {
    height: 34px;
  }

  .hero-logo-pq {
    height: 30px;
  }

  .search-input {
    font-size: 1rem;
  }

  .search-shell {
    padding: 0.35rem 0.8rem;
  }

.source-filter-card .filter-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .micro-ad {
    display: none;
  }
}

.search-sub-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.search-sub-link {
  font-size: 0.8rem;
  color: #5a7d8e;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.search-sub-link:hover {
  color: #1f4b62;
  text-decoration: underline;
}

.search-sub-sep {
  font-size: 0.7rem;
  color: #b0c8d0;
  user-select: none;
}

/* result row clickable */
.result-row[role="button"] {
  cursor: pointer;
}

.result-row[role="button"]:focus-visible {
  outline: 2px solid #4aa5bf;
  outline-offset: 2px;
}

/* subtitle in meta row (grid company / project name) */
.result-meta-sub {
  color: #3d6070;
  font-weight: 500;
}

/* pagination */
.results-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.pagination-btn {
  border: 1px solid #c8dde5;
  background: #fff;
  color: #1f4b62;
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.pagination-btn:hover:not(:disabled) {
  background: #edf7fa;
  border-color: #8ab5c7;
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pagination-info {
  font-size: 0.82rem;
  color: #5a7d8e;
}

/* ── Detail modal panel ── */
.detail-panel {
  font-size: 0.88rem;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.detail-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.detail-badge-src {
  background: #e8f5fb;
  color: #0f4a5f;
  border: 1px solid #b9d9e5;
}

.detail-badge-status {
  background: #f3f7f9;
  color: #3d6070;
  border: 1px solid #d5e4ea;
}

.detail-section-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a9aaa;
  margin: 0 0 0.4rem 0;
  padding-top: 0.75rem;
  border-top: 1px solid #e8eef1;
}

.detail-panel .detail-section-heading:first-of-type {
  border-top: none;
  padding-top: 0;
}

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

.detail-kv-table td {
  padding: 0.28rem 0.4rem;
  vertical-align: top;
  border-bottom: 1px solid #f0f4f6;
}

.detail-kv-key {
  width: 38%;
  font-weight: 600;
  color: #3d5a68;
  white-space: nowrap;
  padding-right: 0.75rem !important;
}

.detail-kv-val {
  color: #1a3040;
  word-break: break-word;
}

.ownership-pill {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
}

.ownership-complete   { background: #d4edda; color: #155724; }
.ownership-partial    { background: #fff3cd; color: #856404; }
.ownership-unavailable { background: #f8d7da; color: #721c24; }
