/* Hero Showcase — Real Lendia platform (Perfil General tab) */

.hs-root {
  background: #F1F2F7;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Outfit', 'Inter', sans-serif;
  color: #132B52;
  font-size: 12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 24px 60px -20px rgba(0,38,82,0.45),
    0 8px 24px -8px rgba(0,38,82,0.25);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Top header bar ── */
.hs-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 16px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(19,43,82,0.07);
}
.hs-topbar-left { display: flex; align-items: center; gap: 12px; }
.hs-back {
  color: #F26649;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.hs-brand { height: 22px; width: auto; }
.hs-topbar-id {
  font-weight: 600;
  font-size: 11.5px;
  color: #132B52;
  letter-spacing: -0.005em;
  margin-left: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-family: 'Inter', sans-serif;
}
.hs-topbar-right { display: flex; gap: 6px; align-items: center; }
.hs-topbtn {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: #132B52;
  background: #FFFFFF;
  border: 1px solid rgba(19,43,82,0.12);
  padding: 5px 9px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}
.hs-topbtn.icon-only { padding: 5px 7px; }
.hs-topbtn svg { color: #132B52; opacity: 0.7; }
.hs-pill-num {
  background: #F26649;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 2px;
}
.hs-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #F26649 0%, #D94A2C 100%);
  color: white; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  margin-left: 4px;
}

/* ── Body grid ── */
.hs-body {
  display: grid;
  grid-template-columns: 168px 1fr;
  background: #F1F2F7;
}

/* ── Sidebar ── */
.hs-side {
  background: #FFFFFF;
  padding: 14px 8px;
  border-right: 1px solid rgba(19,43,82,0.05);
  font-family: 'Inter', sans-serif;
}
.hs-side-section {
  padding: 8px 0;
}
.hs-side-section + .hs-side-section {
  border-top: 1px solid rgba(19,43,82,0.05);
  margin-top: 4px;
}
.hs-side-section-label {
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(19,43,82,0.5);
  letter-spacing: 0.08em;
  padding: 0 8px 6px;
}
.hs-side-active {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #132B52;
}
.hs-side-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
}
.hs-side-item {
  padding: 5px 8px;
  font-size: 10.5px;
  color: rgba(19,43,82,0.78);
  font-weight: 400;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.005em;
}
.hs-side-ic {
  font-size: 11px;
  width: 14px;
  display: inline-flex;
  justify-content: center;
  filter: grayscale(0.4);
}
.hs-side-item.on {
  background: transparent;
  color: #F26649;
  font-weight: 600;
  position: relative;
}
.hs-side-item.on::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #F26649;
}
.hs-side-item.alert { position: relative; }
.hs-side-badge {
  width: 6px; height: 6px; border-radius: 50%;
  background: #F26649;
  margin-left: auto;
}

/* ── Main area ── */
.hs-main {
  padding: 14px 16px 16px;
  overflow: hidden;
  min-width: 0;
}

/* Sub-tabs row — pill style from real product */
.hs-subtabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(19,43,82,0.04);
  overflow: hidden;
}
.hs-subtab {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: rgba(19,43,82,0.65);
  padding: 7px 8px;
  cursor: pointer;
  border-radius: 8px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.hs-subtab.on {
  background: #002652;
  color: #FFFFFF;
  font-weight: 600;
}

/* AI Summary card */
.hs-ai-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(19,43,82,0.04);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.hs-ai-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(82,140,214,0.05), transparent 50%);
  pointer-events: none;
}
.hs-ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  position: relative;
}
.hs-ai-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #E3F2F8 0%, #D6E8F5 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hs-ai-titles { flex: 1; }
.hs-ai-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #132B52;
  letter-spacing: -0.01em;
}
.hs-ai-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  color: rgba(19,43,82,0.55);
  margin-top: 1px;
}
.hs-ai-brand {
  background: linear-gradient(90deg, #528CD6 0%, #F26649 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.hs-ai-beta {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #F26649;
  background: rgba(242,102,73,0.12);
  border: 1px solid rgba(242,102,73,0.28);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.hs-ai-body {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(19,43,82,0.85);
  line-height: 1.55;
  position: relative;
}
.hs-ai-body b {
  font-weight: 700;
  color: #132B52;
}

/* KPI strip — matches real product visual */
.hs-kpis {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.hs-kpi {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 9px 10px 10px;
  box-shadow: 0 1px 3px rgba(19,43,82,0.04);
  min-width: 0;
}
.hs-kpi-label {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: rgba(19,43,82,0.55);
  margin-bottom: 5px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}
.hs-kpi-eye { opacity: 0.4; flex-shrink: 0; }
.hs-kpi-val {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #132B52;
  letter-spacing: -0.025em;
  white-space: nowrap;
  line-height: 1.1;
}
.hs-kpi-val.small {
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
  line-height: 1.25;
}
.hs-kpi.danger .hs-kpi-val { color: #DC2626; }
.hs-kpi.ok .hs-kpi-val { color: #16A34A; }

/* Decision footer */
.hs-decision {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFD 100%);
  border-radius: 10px;
  border: 1px solid rgba(82,140,214,0.18);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(19,43,82,0.04);
}
.hs-decision-label {
  font-family: 'Inter', sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(19,43,82,0.55);
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.hs-decision-val {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #132B52;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hs-decision-val b {
  font-weight: 700;
}
.hs-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.hs-dot.ok {
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
}
.hs-decision-actions { display: flex; gap: 6px; }
.hs-btn-ghost {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(19,43,82,0.65);
  background: transparent;
  border: 1px solid rgba(19,43,82,0.15);
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.hs-btn-primary {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: #F26649;
  border: none;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(242,102,73,0.35);
}

/* Responsive compression */
@media (max-width: 899px) {
  .hs-kpis { grid-template-columns: repeat(4, 1fr); }
  .hs-topbar-id { display: none; }
}
@media (max-width: 899px) {
  .hs-body { grid-template-columns: 1fr; }
  .hs-side { display: none; }
  .hs-kpis { grid-template-columns: repeat(2, 1fr); }
  .hs-subtabs { overflow-x: auto; }
}
