/* Extra UI layer for the new professional home page (theme-aligned) */

/* Ensure legacy left dock never appears */
.sideDock{display:none !important;}

.homePro{display:grid;gap:16px}

.homeProHero{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:16px;
  padding:16px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.22));
}

.homeProHeroLeft{display:grid;gap:12px;align-content:start}
.homeProTitleRow{display:flex;align-items:center;gap:10px}
.homeProTitle{margin:0;font-size:32px;font-weight:900;letter-spacing:.2px}
.homeProChip{font-size:12px;color:var(--muted);padding:6px 10px;border-radius:999px;border:1px solid var(--line);background:rgba(0,0,0,.18)}
.homeProSub{color:var(--muted);font-size:14px;line-height:1.5}
.homeProStats{display:flex;gap:10px;flex-wrap:wrap}

.homeProSearch{position:relative;display:flex;align-items:center}
.homeProSearchIcon{position:absolute;left:12px;color:var(--muted);opacity:.9}
.homeProSearchInput{
  width:100%;
  padding:12px 42px 12px 36px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.20);
  color:var(--text);
}
.homeProSearchInput:focus{outline:none;box-shadow:0 0 0 3px rgba(56,189,248,.18);border-color:rgba(56,189,248,.35)}
.homeProSearchClear{
  position:absolute;
  right:10px;
  width:28px;
  height:28px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
}
.homeProSearchClear:hover{filter:brightness(1.1)}

.homeProQuick{display:flex;gap:10px;flex-wrap:wrap}
.homeProQuickBtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:900;
  font-size:13px;
}
.homeProQuickBtn:hover{filter:brightness(1.08)}

.homeProProfile{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.16);
}
.homeProAvatar{
  width:66px;
  height:66px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
  display:grid;
  place-items:center;
}
.homeProAvatar img{width:100%;height:100%;object-fit:cover;display:block}
.homeProMeta{display:grid;gap:6px;flex:1}
.homeProName{font-weight:900}
.homeProSmall{font-size:12px;color:var(--muted)}
.homeProChevron{color:var(--muted);font-size:24px;opacity:.9}

.homeProMiniBar{display:flex;align-items:center;gap:10px}
.homeProMiniTrack{flex:1;height:10px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);overflow:hidden}
.homeProMiniFill{height:100%;background:linear-gradient(90deg, var(--primary), var(--accent));width:0%}
.homeProMiniPct{font-size:12px;color:var(--muted);min-width:38px;text-align:right}

.homeProSection{display:grid;gap:10px;padding:14px;border-radius:22px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.12)}
.homeProSectionHead{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.homeProSectionTitle{font-weight:900}
.homeProSectionHint{font-size:12px;color:var(--muted)}
.homeProCount{font-size:12px;color:var(--muted);padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:rgba(0,0,0,.18)}
.homeProCountText{margin-right:10px;opacity:.85}
.homeProAdminLink{color:var(--text);text-decoration:none;font-weight:900}
.homeProAdminLink:hover{filter:brightness(1.1)}

.homeProGrid{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:12px}
.homeProGrid--shortcuts{grid-template-columns:repeat(4, minmax(0, 1fr))}
.homeProGrid--cards{grid-template-columns:repeat(4, minmax(0, 1fr))}

.homeProCat{display:grid;gap:10px;margin-top:14px}
.homeProCatHead{display:flex;align-items:center;gap:10px;padding:10px 2px;border-bottom:1px solid rgba(255,255,255,.08)}
.homeProCatIcon{width:28px;height:28px;object-fit:cover;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06)}
.homeProCatTitle{font-weight:900;letter-spacing:.2px}

.homeProCard{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  min-height:108px;
  padding:12px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  overflow:hidden;
  text-decoration:none;
}
.homeProCard:hover{filter:brightness(1.06)}

.homeProCard:hover .homeProCardBg{transform:scale(1.06)}

.homeProCardBg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1.02);
  filter:saturate(1.05) contrast(1.02);
}

.homeProCardShade{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(56,189,248,.18), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.55));
}

.homeProCardGlass{
  position:relative;
  max-width:78%;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(10,12,20,.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0,0,0,.30);
}

.homeProCardTitle{font-weight:900;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.homeProBadge{display:inline-flex;align-items:center;margin-left:8px;padding:3px 8px;border-radius:999px;border:1px solid rgba(56,189,248,.28);background:rgba(56,189,248,.12);font-size:11px;color:rgba(255,255,255,.92)}
.homeProCardDesc{color:rgba(255,255,255,.78);font-size:12px;line-height:1.35;margin-top:4px}
.homeProCardGo{position:relative;font-size:12px;color:rgba(34,197,94,.95);font-weight:900;padding:8px 10px;border-radius:999px;border:1px solid rgba(34,197,94,.30);background:rgba(0,0,0,.22);-webkit-backdrop-filter: blur(10px);backdrop-filter: blur(10px)}

/* === Simple Home Card (image + title only) + Hover Blur/Glow === */
.homeProCard--simple{isolation:isolate;transition:transform .18s ease, filter .18s ease}
.homeProCard--simple::before{content:"";position:absolute;inset:-2px;border-radius:22px;background:
  radial-gradient(600px 220px at 15% 20%, rgba(56,189,248,.55), transparent 60%),
  radial-gradient(420px 180px at 85% 10%, rgba(99,102,241,.45), transparent 60%),
  radial-gradient(420px 180px at 40% 110%, rgba(34,197,94,.25), transparent 55%);
  filter:blur(18px);opacity:0;transition:opacity .22s ease;pointer-events:none;z-index:0}
.homeProCard--simple::after{content:"";position:absolute;inset:0;border-radius:20px;border:1px solid rgba(56,189,248,.18);opacity:0;transition:opacity .22s ease;pointer-events:none;z-index:1}
.homeProCard--simple .homeProCardBg{transition:transform .28s ease, filter .28s ease;z-index:0}
.homeProCard--simple:hover{transform:translateY(-3px);filter:brightness(1.08)}
.homeProCard--simple:hover::before,.homeProCard--simple:hover::after{opacity:1}
.homeProCard--simple:hover .homeProCardBg{transform:scale(1.08);filter:blur(3px) saturate(1.12) contrast(1.05)}
.homeProCard--simple .homeProCardShade{z-index:1}

.homeProCardLabel{position:relative;z-index:2;max-width:100%;padding:10px 12px;border-radius:16px;border:1px solid rgba(255,255,255,.12);
  background:rgba(10,12,20,.42);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:0 14px 30px rgba(0,0,0,.30);font-weight:900;color:rgba(255,255,255,.96)}


/* Home: Profile career card on top */
.homePro .profileX{margin:0 0 16px 0}
.homePro .profileX .careerSummary--v2{margin-top:0}


.homeProGroup{border:1px solid rgba(255,255,255,.10);border-radius:18px;background:rgba(0,0,0,.10);overflow:hidden}
.homeProGroupSummary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:rgba(255,255,255,.03)}
.homeProGroupSummary::-webkit-details-marker{display:none}
.homeProGroupName{font-weight:900}
.homeProGroupMeta{font-size:12px;color:var(--muted)}

.homeProTile{
  display:grid;
  gap:6px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
}
.homeProTile:hover{filter:brightness(1.08)}
.homeProTileTitle{font-weight:900}
.homeProTilePath{font-size:11px;color:var(--muted);opacity:.95;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media (max-width: 980px){
  .homeProHero{grid-template-columns:1fr}
  .homeProGrid--shortcuts{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .homeProGrid{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .homeProGrid--cards{grid-template-columns:repeat(2, minmax(0, 1fr))}
}

@media (max-width: 520px){
  .homeProTitle{font-size:26px}
  .homeProGrid--shortcuts{grid-template-columns:1fr}
  .homeProGrid{grid-template-columns:1fr}
}

/* Home: right panel (chart + stats) compact layout */
.homePro .profileX .paneChart .careerSpark{display:flex;flex-direction:column;gap:10px;min-height:0}
.homePro .profileX .paneChart .sparkline{width:100%;height:90px;display:block}
.homePro .profileX .paneChart .sparkMeta{font-weight:900;font-size:12px;color:rgba(233,238,255,.78)}
.homePro .profileX .paneChart .sparkVal{font-weight:950;font-size:14px;color:rgba(233,238,255,.92)}

.homePro .profileX .careerRightStats{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:2px;
}
.homePro .profileX .careerRightStats .rightStat{
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  padding:10px 10px;
  min-width:0;
  overflow:hidden;
}
.homePro .profileX .careerRightStats .rightStat .k{font-size:11px;font-weight:900;color:rgba(233,238,255,.70);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.homePro .profileX .careerRightStats .rightStat .v{font-size:14px;font-weight:950;color:rgba(233,238,255,.92);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media (max-width: 980px){
  .homePro .profileX .careerRightStats{grid-template-columns:1fr}
}
