/* ═══════════════════════════════════════════════════════ */
/*  HW CHECK BLOCK v4 — #5b6abf blue accent               */
/* ═══════════════════════════════════════════════════════ */

.hwcheck {
  max-width: 840px;
  margin: 32px auto;
}

.hwcheck__card {
  background: #1c1f26;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

/* ── Header ── */
.hwcheck__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hwcheck__header-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hwcheck__header-icon {
  color: #5b6abf;
  display: flex;
}

.hwcheck__header-icon svg {
  width: 18px;
  height: 18px;
}

.hwcheck__header-title {
  font-size: 14px;
  font-weight: 800;
  color: #eaecf0;
  letter-spacing: 0.3px;
}

/* ── Tabs ── */
.hwcheck__tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.hwcheck__tab {
  padding: 6px 14px;
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.15s ease;
  background: transparent;
  color: rgba(255,255,255,0.55);
}

.hwcheck__tab:hover {
  color: rgba(255,255,255,0.7);
}

.hwcheck__tab--active {
  background: rgba(91,106,191,0.12) !important;
  color: #5b6abf !important;
  border-color: rgba(91,106,191,0.35) !important;
}

/* ── Verdict bar ── */
.hwcheck__verdict {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  animation: hwcheck-fadeIn 0.3s ease;
}

.hwcheck__verdict--pass { background: rgba(34,197,94,0.08); }
.hwcheck__verdict--partial { background: rgba(234,179,8,0.08); }
.hwcheck__verdict--fail { background: rgba(239,68,68,0.08); }

.hwcheck__verdict-badges {
  display: flex;
  gap: 10px;
}

/* Button-style badges */
.hwcheck__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  border: none;
}

.hwcheck__badge--pass {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 2px 10px rgba(34,197,94,0.25);
}

.hwcheck__badge--fail {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 10px rgba(239,68,68,0.25);
}

.hwcheck__verdict-text {
  font-size: 13px;
  font-weight: 800;
  margin-left: 4px;
}

.hwcheck__verdict-text--pass {
  color: #22c55e;
  text-shadow: 0 0 12px rgba(34,197,94,0.3);
}

.hwcheck__verdict-text--partial {
  color: #eab308;
  text-shadow: 0 0 12px rgba(234,179,8,0.3);
}

.hwcheck__verdict-text--fail {
  color: #ef4444;
  text-shadow: 0 0 12px rgba(239,68,68,0.3);
}

/* ── Column headers ── */
.hwcheck__col-headers {
  display: grid;
  grid-template-columns: 170px 1fr 1fr 30px;
  padding: 9px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 12px;
}

.hwcheck__col-header {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── Rows ── */
.hwcheck__rows {
  padding: 0;
}

.hwcheck__row {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  padding: 12px 22px;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.12s;
  cursor: default;
}

.hwcheck__row:last-child {
  border-bottom: none;
}

.hwcheck__row:hover {
  background: rgba(255,255,255,0.03);
}

.hwcheck--has-user .hwcheck__row {
  grid-template-columns: 170px 1fr 1fr 30px;
}

.hwcheck__row-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hwcheck__row-icon {
  display: flex;
  flex-shrink: 0;
  color: rgba(255,255,255,0.55);
  transition: all 0.2s ease;
}

.hwcheck__row-icon svg {
  width: 16px;
  height: 16px;
}

.hwcheck__row:hover .hwcheck__row-icon {
  color: #7b8ad4;
  filter: drop-shadow(0 0 6px rgba(91,106,191,0.3));
}

.hwcheck__row-name {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  transition: color 0.15s;
}

.hwcheck__row:hover .hwcheck__row-name {
  color: #eaecf0;
}

.hwcheck__row-req {
  font-size: 13px;
  color: #eaecf0;
  font-weight: 500;
  line-height: 1.4;
}

.hwcheck__row-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hwcheck__row-user-value {
  font-size: 13px;
  font-weight: 700;
}

.hwcheck__row-user-value--pass { color: #22c55e; }
.hwcheck__row-user-value--fail { color: #ef4444; }
.hwcheck__row-user-value--neutral { color: rgba(255,255,255,0.3); }

/* ── Status dots ── */
.hwcheck__status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.hwcheck__status-icon--pass {
  background: rgba(34,197,94,0.08);
  border: 1.5px solid #22c55e;
  color: #22c55e;
}

.hwcheck__status-icon--fail {
  background: rgba(239,68,68,0.08);
  border: 1.5px solid #ef4444;
  color: #ef4444;
}

.hwcheck__status-icon--unknown {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3);
}

/* ── CTA button ── */
.hwcheck__cta {
  padding: 24px 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.hwcheck__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(135deg, #5b6abf 0%, #4a58a0 100%);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 20px rgba(91,106,191,0.3);
  transition: all 0.2s;
}

.hwcheck__cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(91,106,191,0.4);
  color: #fff;
  text-decoration: none;
}

.hwcheck__cta-icon {
  display: flex;
}

.hwcheck__cta-icon svg {
  width: 16px;
  height: 16px;
}

.hwcheck__cta-hint {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  letter-spacing: 0.2px;
}

/* ── Footer ── */
.hwcheck__footer {
  padding: 10px 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hwcheck__footer-powered {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.3px;
}

.hwcheck__footer-refresh {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  padding: 4px 10px;
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.hwcheck__footer-refresh:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

/* ── Loading ── */
.hwcheck__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.hwcheck__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: #5b6abf;
  border-radius: 50%;
  animation: hwcheck-spin 0.6s linear infinite;
}

@keyframes hwcheck-spin {
  to { transform: rotate(360deg); }
}

@keyframes hwcheck-fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hwcheck__header { flex-direction: column; gap: 12px; }
  .hwcheck__row { grid-template-columns: 1fr; gap: 4px; padding: 10px 16px; }
  .hwcheck--has-user .hwcheck__row { grid-template-columns: 1fr; }
  .hwcheck__col-headers { display: none; }
  .hwcheck__row-user { padding-left: 25px; }
  .hwcheck__verdict { flex-direction: column; gap: 8px; }
  .hwcheck__cta-btn { padding: 12px 24px; font-size: 13px; }
}