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

/* Universal Search — hero white button + modal */

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: 8vh 16px 24px;
}

.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(760px, 100%);
  height: min(88vh, 920px);
  max-height: min(88vh, 920px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.28);
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

.hus-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.hus-head h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.hus-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.hus-stats strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
}

.hus-stats span {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
}

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

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

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

.hus-suggest-card {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: start;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  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: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #fff1f2;
  color: #dc2626;
  flex: 0 0 auto;
  font-size: 12px;
}

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

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

.hus-suggest-copy small {
  display: none;
}

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

.hus-ask-label {
  margin: 0;
  font-size: 13px;
  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: 6px;
  max-height: 92px;
  overflow: auto;
  padding-bottom: 2px;
}

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

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

.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: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
}

.hus-intent-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
}

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

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

.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: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 auto;
}

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

.hus-followups-label {
  margin: 0;
  font-size: 12px;
  font-weight: 850;
  color: #64748b;
}

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

.hus-followup {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.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: 11px;
  font-weight: 900;
  color: #166534;
  background: #dcfce7;
  border-radius: 999px;
  padding: 2px 7px;
}

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

.hus-toolbar {
  padding: 10px 18px;
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
}

.hus-results {
  flex: 1 1 auto;
  min-height: 180px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 12px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.hus-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 14px;
  background: #f8fafc;
}

.hus-input-wrap i {
  color: #dc2626;
}

.hus-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font: inherit;
  font-weight: 700;
  outline: none;
  text-align: right;
}

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

.hus-filters button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: #334155;
}

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

.hus-results {
  overflow: auto;
  padding: 0 12px 16px;
  display: grid;
  gap: 8px;
}

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

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

.hus-item-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
}

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

.hus-item-body small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

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

.hus-badge {
  border-radius: 999px;
  padding: 3px 8px;
  font-style: normal;
  font-size: 11px;
  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: 11px;
  color: #64748b;
  font-weight: 700;
}

.hus-empty {
  margin: 12px;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

body.hus-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .hus-panel {
    height: min(92vh, 920px);
    max-height: min(92vh, 920px);
  }

  .hus-stats {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .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 18px;
  align-items: center;
  padding: 10px 16px 14px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}

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

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

.hus-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  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-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 16px 8px;
  padding: 12px 14px;
  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: 15px;
  font-weight: 900;
  color: #111827;
}

.hus-section-head span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

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