.hero-card {
  min-height: 178px;
  position: relative;
  overflow: hidden;
  border: 1px solid #d8e9fb;
  background: linear-gradient(110deg,#eaf5ff 0,#eef7ff 58%,#dbeeff 100%);
  border-radius: 18px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 5px;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 10px;
  font-weight: 800;
  color: #2a70c9;
}

.hero-card h1 {
  font-size: 35px;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 3px 0 10px;
}

.hero-card h1 span {
  color: var(--blue);
}

.hero-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #304d70;
  margin: 0;
  max-width: 620px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.hero-badges span {
  font-size: 11px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(198,220,244,.9);
  padding: 7px 9px;
  border-radius: 8px;
  font-weight: 700;
  color: #2f537d;
}

.hero-art {
  position: absolute;
  right: 150px;
  bottom: 0;
  width: 300px;
  height: 170px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  opacity: .98;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  mix-blend-mode: multiply;
}

.safer-card {
  position: absolute;
  right: 18px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.9);
  border: 1px solid #d9e9fa;
  border-radius: 12px;
  padding: 10px 12px;
  z-index: 4;
  box-shadow: 0 8px 20px rgba(32,85,139,.08);
}

.safer-card>span {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}

.safer-card strong,.safer-card small {
  display: block;
}

.safer-card strong {
  font-size: 12px;
}

.safer-card small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 350px;
  gap: 16px;
  margin-top: 16px;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-side {
  min-width: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
}

.stats-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  box-shadow: var(--shadow);
}

.stats-grid strong,.stats-grid small {
  display: block;
}

.stats-grid strong {
  font-size: 23px;
  margin-top: 7px;
}

.stats-grid small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.stat-icon,.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.stat-icon.blue,.info-icon.blue {
  background: #e7f1ff;
  color: #0d6efd;
}

.stat-icon.green,.info-icon.green {
  background: #e8f9f0;
  color: #12985b;
}

.stat-icon.orange {
  background: #fff1e3;
  color: #ea811d;
}

.stat-icon.purple {
  background: #f0ebff;
  color: #7256f0;
}

.info-icon.red {
  background: #ffecef;
  color: #d53649;
}

.recent-mini {
  margin-top: 10px;
}

.empty-mini {
  color: var(--muted);
  font-size: 11px;
  padding: 14px 2px;
}

.recent-mini-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #edf2f7;
}

.recent-mini-item:first-child {
  border-top: 0;
}

.recent-mini-item strong,.recent-mini-item small {
  display: block;
}

.recent-mini-item strong {
  font-size: 11px;
}

.recent-mini-item small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}

.recent-mini-item button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 15px;
}

/* ================================================================
   Search Results Header Card (matching mobile mockup)
   ================================================================ */
.results-header-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.results-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.results-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1877f2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
}

.results-badge-icon .svg-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.3;
}

.results-header-title-wrap h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #102a43);
  letter-spacing: -0.2px;
}

.edit-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--surface, #ffffff);
  border: 1.5px solid #1877f2;
  color: #1877f2;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.edit-search-btn:hover {
  background: #f0f7ff;
  border-color: #1264cb;
  color: #1264cb;
}

.edit-search-btn .svg-icon {
  width: 14px;
  height: 14px;
}

.results-summary-row {
  margin-top: 6px;
}

.results-summary-text {
  font-size: 13.5px;
  color: var(--muted, #627d98);
  margin: 0;
}

.results-summary-text strong {
  color: var(--text, #102a43);
  font-weight: 700;
}

.results-summary-context {
  color: var(--muted, #627d98);
  margin-left: 4px;
}

.filter-chips-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #f0f4f8);
}

.filter-chips-row.hidden {
  display: none !important;
}

.filter-chips-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eaf3fd;
  color: #1877f2;
  border-radius: 20px;
  padding: 5px 10px 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(24, 119, 242, 0.12);
  user-select: none;
}

.filter-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1877f2;
}

.filter-chip-icon .svg-icon {
  width: 14px;
  height: 14px;
}

.filter-chip-text {
  line-height: 1;
}

.filter-chip-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #1877f2;
  cursor: pointer;
  padding: 1px;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.filter-chip-dismiss:hover {
  background: rgba(24, 119, 242, 0.18);
  color: #0d5ea8;
}

.filter-chip-dismiss .svg-icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
}

.clear-all-chips-btn {
  background: none;
  border: none;
  color: #1877f2;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  margin-left: auto;
}

.clear-all-chips-btn:hover {
  background: rgba(24, 119, 242, 0.08);
  color: #1264cb;
}

/* ================================================================
   Individual Result Card (Pixel-accurate to mockup)
   ================================================================ */
.result-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.result-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.card-fir-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.card-fir-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e7f5ff;
  color: #1877f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-fir-icon-badge .svg-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.card-fir-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text, #0f172a);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted, #475569);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.card-date-badge:hover {
  background: var(--bg-hover, #f1f5f9);
  color: #1877f2;
}

.card-date-badge .svg-icon {
  width: 14px;
  height: 14px;
  color: #64748b;
  flex-shrink: 0;
}

.card-date-badge:hover .svg-icon {
  color: #1877f2;
}

.card-date-text {
  white-space: nowrap;
}

.result-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.card-meta-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.meta-row {
  display: flex;
  align-items: center;
  font-size: 12.5px;
  line-height: 1.35;
  min-width: 0;
}

.meta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #64748b;
  margin-right: 6px;
  flex-shrink: 0;
}

.meta-icon .svg-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.meta-label {
  width: 86px;
  flex-shrink: 0;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
}

.meta-colon {
  color: #94a3b8;
  font-weight: 600;
  margin-right: 8px;
  flex-shrink: 0;
}

.meta-val {
  color: #0f172a;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.card-action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 135px;
  flex-shrink: 0;
  align-self: center;
}

.card-btn-view {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  background: var(--surface, #ffffff);
  border: 1.5px solid #1877f2;
  color: #1877f2;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.card-btn-view:hover {
  background: #f0f7ff;
  border-color: #1264cb;
  color: #1264cb;
}

.card-btn-view .svg-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.card-btn-download {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  background: #1877f2;
  border: 1.5px solid #1877f2;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
  transition: all 0.15s ease;
}

.card-btn-download:hover:not(:disabled) {
  background: #1264cb;
  border-color: #1264cb;
  box-shadow: 0 3px 8px rgba(24, 119, 242, 0.35);
}

.card-btn-download .svg-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.card-btn-download:disabled {
  background: #94a3b8;
  border-color: #94a3b8;
  color: #f1f5f9;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

/* Skeleton Loading Animation */
.result-card-skeleton {
  pointer-events: none;
  user-select: none;
}

.skeleton-box,
.skeleton-line {
  background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  display: block;
  border-radius: 4px;
}

@keyframes skeletonPulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

.info-card {
  padding: 22px;
}

.info-card h2 {
  font-size: 18px;
  margin: 14px 0 8px;
}

.info-card p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 14px;
}

.info-card a {
  font-size: 12px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.help-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}

.steps-card,.faq-card {
  padding: 20px;
}

.steps-card h2,.faq-card h2 {
  font-size: 18px;
  margin: 0 0 16px;
}

.steps-card ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.steps-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.steps-card li>span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.steps-card strong {
  font-size: 12px;
}

.steps-card p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.faq-card details {
  border-top: 1px solid #edf2f7;
  padding: 12px 0;
}

.faq-card details:first-of-type {
  border-top: 0;
}

.faq-card summary {
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.faq-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
}
