button.hero-float-card {
  font: inherit;
  text-align: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* Universal Search — hero white button + modal (enlarged for readability) */

body.homepage .hero-float-card.is-search-trigger {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.homepage .hero-float-card.is-search-trigger:hover,
body.homepage .hero-float-card.is-search-trigger:focus-visible {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow:
    0 20px 44px rgba(8, 10, 18, 0.28),
    0 6px 16px rgba(220, 38, 38, 0.16);
  outline: none;
}

body.homepage .hero-float-card.is-search-trigger .hero-float-icon {
  background: linear-gradient(135deg, #ff2d2d, #b91c1c);
}

.hus-modal {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3vh 20px 20px;
}

.hus-modal[hidden] {
  display: none !important;
}

.hus-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.hus-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 96vw);
  height: min(94vh, 1080px);
  max-height: min(94vh, 1080px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.28);
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 16px;
}

.hus-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.hus-head h2,
.hus-head .hus-title,
.hus-title {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
}

.hus-head h2 i,
.hus-head .hus-title i,
.hus-title i {
  color: #dc2626;
}

.hus-head p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.hus-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #dc2626;
  cursor: pointer;
  font-size: 18px;
}

.hus-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 24px 0;
  flex: 0 0 auto;
}

.hus-stats article {
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.hus-stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
}

.hus-stats span {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  line-height: 1.35;
}

.hus-suggest {
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
}

.hus-suggest-label {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hus-suggest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hus-suggest-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.hus-suggest-card:hover,
.hus-suggest-card.is-active {
  border-color: #dc2626;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.08);
}

.hus-suggest-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: #fff1f2;
  color: #dc2626;
  flex: 0 0 auto;
  font-size: 15px;
}

.hus-suggest-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.hus-suggest-copy strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hus-suggest-copy small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hus-suggest-card em {
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px 10px;
  flex: 0 0 auto;
}

.hus-ask-label {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hus-ask-label i {
  color: #dc2626;
}

.hus-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 72px;
  overflow: auto;
  padding-bottom: 2px;
}

.hus-starter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.35;
}

.hus-starter i {
  color: #dc2626;
  font-size: 13px;
}

.hus-starter:hover,
.hus-starter.is-active {
  border-color: #dc2626;
  background: #fff1f2;
  color: #991b1b;
}

.hus-intent-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
}

.hus-intent-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.hus-intent-chip strong {
  font-weight: 900;
  font-size: 15px;
}

.hus-intent-chip code {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 13px;
}

.hus-intent-chip span {
  color: #cbd5e1;
}

.hus-intent-clear {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 auto;
}

.hus-followups {
  display: grid;
  gap: 8px;
}

.hus-followups-label {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
  color: #475569;
}

.hus-followups-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hus-followup {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.35;
}

.hus-followup:hover {
  border-color: #dc2626;
  color: #991b1b;
  background: #fff1f2;
}

.hus-item.is-route {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(90deg, #fff7f7, #fff);
}

.hus-match {
  font-size: 13px;
  font-weight: 900;
  color: #166534;
  background: #dcfce7;
  border-radius: 999px;
  padding: 3px 9px;
}

.hus-why {
  font-size: 13px;
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 999px;
  padding: 3px 9px;
  cursor: help;
}

.hus-toolbar {
  padding: 12px 24px;
  display: grid;
  gap: 10px;
  flex: 0 1 auto;
  max-height: min(34vh, 340px);
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  border-bottom: 1px solid #f1f5f9;
}

.hus-results-cluster {
  display: grid;
  gap: 10px;
  padding: 8px 20px 16px;
  flex: 1 1 auto;
  min-height: 0;
}

.hus-results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.hus-results-meta strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.hus-results-meta span {
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
}

.hus-filters-wrap {
  display: grid;
  gap: 6px;
}

.hus-filters-label {
  margin: 0;
  font-size: 13px;
  font-weight: 850;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hus-filters-label i {
  color: #dc2626;
}

.hus-more {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
}

.hus-more-btn {
  border: 1px solid #fecaca;
  background: #fff;
  color: #991b1b;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.hus-more-btn:hover {
  background: #fff1f2;
}

.hus-results {
  flex: 1 1 auto;
  min-height: min(52vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 16px 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.hus-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0 16px;
  background: #f8fafc;
  min-height: 56px;
}

.hus-input-wrap i {
  color: #dc2626;
  font-size: 18px;
}

.hus-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 16px 0;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  outline: none;
  text-align: right;
  line-height: 1.45;
}

.hus-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hus-filters button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  color: #334155;
  line-height: 1.35;
}

.hus-filters button.is-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.hus-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hus-item:hover {
  border-color: #fecaca;
  background: #fff7f7;
}

.hus-item-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
  font-size: 18px;
}

.hus-item-body strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

.hus-item-body small {
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.hus-item-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.hus-badge {
  border-radius: 999px;
  padding: 4px 10px;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.hus-badge-incubator {
  background: #ecfdf5;
  color: #047857;
}

.hus-badge-platform {
  background: #eff6ff;
  color: #1d4ed8;
}

.hus-badge-branch {
  background: #fff7ed;
  color: #c2410c;
}

.hus-badge-subdomain {
  background: #f5f3ff;
  color: #6d28d9;
}

.hus-badge-system {
  background: #fef2f2;
  color: #b91c1c;
}

.hus-item-meta code {
  font-size: 13px;
  color: #475569;
  font-weight: 700;
}

.hus-empty {
  margin: 16px;
  text-align: center;
  color: #475569;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
}

body.hus-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .hus-panel {
    width: min(100%, 96vw);
    height: min(94vh, 1080px);
    max-height: min(94vh, 1080px);
  }

  .hus-suggest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hus-modal {
    padding: 2vh 10px 12px;
  }

  .hus-panel {
    width: 100%;
    height: min(96vh, 1080px);
    max-height: min(96vh, 1080px);
    border-radius: 16px;
  }

  .hus-head {
    padding: 16px 16px 12px;
  }

  .hus-head h2 {
    font-size: 1.3rem;
  }

  .hus-stats {
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 16px 0;
  }

  .hus-toolbar {
    padding: 12px 16px;
    max-height: min(30vh, 280px);
  }

  .hus-results {
    min-height: min(48vh, 420px);
  }

  .hus-suggest-grid {
    grid-template-columns: 1fr;
  }

  .hus-page .hus-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
  }

  .hus-page .hus-filters button {
    flex: 0 0 auto;
  }

  .hus-item {
    grid-template-columns: auto 1fr;
  }

  .hus-item-meta {
    grid-column: 2;
    justify-items: start;
    grid-auto-flow: column;
    grid-template-columns: auto auto;
    gap: 8px;
  }
}

.hus-foot {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 14px 20px 16px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}

.hus-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #b91c1c;
  text-decoration: none;
  line-height: 1.4;
}

.hus-foot a:hover {
  text-decoration: underline;
}

.hus-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
}

.hus-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hus-badge-knowledge {
  background: #eff6ff;
  color: #1d4ed8;
}

.hus-badge-content,
.hus-badge-image,
.hus-badge-file,
.hus-badge-video {
  background: #fff1f2;
  color: #9f1239;
}

.hus-section-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 20px 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff5f5, #ffffff);
  border: 1px solid #f0d0d0;
}

.hus-section-head[hidden] {
  display: none !important;
}

.hus-section-head strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 900;
  color: #111827;
  line-height: 1.35;
}

.hus-section-head span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  line-height: 1.45;
}

.hus-section-head a {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff2d2d, #b10011);
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
}

/* Full search page — no modal, natural page scroll, all results visible */
a.hero-float-card {
  text-decoration: none;
}

body.hus-page-body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(220, 38, 38, 0.12), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%);
}

.hus-page {
  margin: 24px 0 48px;
  max-width: none;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  overflow: visible;
  display: flex;
  flex-direction: column;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

.hus-page .hus-toolbar {
  max-height: none;
  overflow: visible;
  flex: 0 0 auto;
  gap: 8px;
  padding: 10px 20px 8px;
  border-bottom: 0;
}

.hus-page .hus-starters {
  max-height: none;
  overflow: visible;
}

.hus-page .hus-results-cluster {
  padding: 4px 20px 12px;
  gap: 8px;
}

.hus-page .hus-results {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
  gap: 8px;
}

.hus-page .hus-section-head {
  margin: 0;
}

.hus-page .hus-suggest {
  padding: 16px 20px 8px;
  margin: 8px 0 0;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

.hus-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff2d2d, #b10011);
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
  align-self: flex-start;
}

.hus-back:hover {
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .hus-page {
    margin: 12px 0 32px;
    border-radius: 16px;
  }
}
