
/* HumanPro Tools UI Revamp */
.hp-tool-page main { padding-top: 28px; padding-bottom: 60px; }
.hp-tool-wrap{
  width:min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.hp-tool-hero{
  position: relative;
  padding: 34px 26px;
  border-radius: 26px;
  background: rgba(5,10,48,.45);
  border: 1px solid rgba(35,61,255,.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  overflow:hidden;
}
.hp-tool-hero::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(800px 220px at 15% 0%, rgba(0,212,255,.35), transparent 55%),
              radial-gradient(700px 260px at 85% 10%, rgba(153,56,202,.35), transparent 55%),
              linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0));
  pointer-events:none;
}
.hp-tool-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,212,255,.10);
  border: 1px solid rgba(0,212,255,.25);
  color:#e9fbff;
  font-weight:600;
  font-size: 12px;
  letter-spacing:.2px;
  position:relative;
  z-index:1;
}
.hp-tool-hero h1{
  margin: 14px 0 8px 0;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.05;
  color:#fff;
  position:relative;
  z-index:1;
}
.hp-tool-hero p{
  margin:0;
  max-width: 72ch;
  color: rgba(255,255,255,.75);
  font-size: 15px;
  position:relative;
  z-index:1;
}
.hp-tool-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 16px;
  position:relative;
  z-index:1;
}
.hp-chip{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-size: 12px;
}
.hp-tool-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 980px){
  .hp-tool-grid{ grid-template-columns: 1fr; }
}
.hp-panel{
  border-radius: 26px;
  background: rgba(5,10,48,.40);
  border: 1px solid rgba(35,61,255,.16);
  box-shadow: 0 20px 55px rgba(0,0,0,.32);
  overflow:hidden;
  position:relative;
}
.hp-panel::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 260px at 20% 0%, rgba(0,212,255,.18), transparent 55%),
              radial-gradient(520px 240px at 80% 10%, rgba(224,114,74,.14), transparent 60%);
  pointer-events:none;
}
.hp-panel > *{ position:relative; z-index:1; }
.hp-panel-input{ padding: 18px; }
.hp-panel-output{ padding: 18px; }

.hp-panel h2, .hp-panel h3, .hp-panel .panel-title{
  color:#fff !important;
}
.hp-panel p, .hp-panel label{ color: rgba(255,255,255,.8) !important; }
.hp-panel input, .hp-panel select, .hp-panel textarea{
  width:100%;
  background: rgba(0,0,0,.35) !important;
  color:#fff !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 14px !important;
  padding: 12px 12px !important;
  outline:none;
}
.hp-panel select option{ color:#0b102a !important; }
.hp-panel input:focus, .hp-panel select:focus, .hp-panel textarea:focus{
  border-color: rgba(0,212,255,.55) !important;
  box-shadow: 0 0 0 4px rgba(0,212,255,.10) !important;
}
.hp-tool-page button, 
.hp-tool-page .btn,
.hp-tool-page a.btn{
  font-size: 14px !important;
}
.hp-tool-page .hp-btn-shine{ display:inline-flex; width:auto; }
.hp-tool-page .hp-btn-shine.hp-btn-block{ width:100%; }
.hp-tool-page .hp-btn-shine button,
.hp-tool-page .hp-btn-shine a,
.hp-tool-page .hp-btn-shine input[type="submit"]{
  padding: 12px 16px !important;
}

/* Make legacy upload zones look premium */
.hp-tool-page .upload-area,
.hp-tool-page .upload-zone{
  border-radius: 22px !important;
  border: 1px dashed rgba(0,212,255,.35) !important;
  background: rgba(0,0,0,.25) !important;
}
.hp-tool-page .upload-area:hover,
.hp-tool-page .upload-zone:hover{
  border-color: rgba(0,212,255,.65) !important;
  transform: translateY(-1px);
}

/* Results sections spacing */
.hp-tool-page #analysisSection,
.hp-tool-page #resultsContainer,
.hp-tool-page .results-section,
.hp-tool-page .result-card{
  border-radius: 22px !important;
  background: rgba(0,0,0,.22) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}

/* Prevent “cut circles” / overflow issues */
.hp-tool-page .analyzer-container,
.hp-tool-page .tool-container,
.hp-tool-page .analyzer-card{
  overflow: visible !important;
}
