
/* HostCompare Front UI - Purple theme + glass buttons */
:root{
  --hc-bg1:#f4e8ff;
  --hc-bg2:#2b0a55;
  --hc-card:rgba(255,255,255,.65);
  --hc-text:#1b1026;
  --hc-text2:rgba(27,16,38,.7);
  --hc-border:rgba(255,255,255,.25);
  --hc-accent:#7c3aed;
  --hc-accent2:#a855f7;
  --hc-shadow: 0 18px 45px rgba(17, 7, 28, 0.22);
}
.hostcmp-wrap{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--hc-text);
  background: radial-gradient(1200px 600px at 15% 10%, #ffffff 0%, var(--hc-bg1) 55%, rgba(244,232,255,0) 75%),
              radial-gradient(900px 550px at 85% 20%, rgba(168,85,247,.18) 0%, rgba(43,10,85,0) 65%),
              linear-gradient(180deg, var(--hc-bg1) 0%, #efe3ff 35%, #f7f0ff 70%, #ffffff 100%);
  border-radius: 18px;
  padding: 18px;
  overflow:hidden;
}
.hostcmp-hero{
  background: linear-gradient(135deg, rgba(124,58,237,.20), rgba(43,10,85,.92));
  border:1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  box-shadow: var(--hc-shadow);
  color:#fff;
}
.hostcmp-hero__inner{ padding: 18px; }
.hostcmp-title{ margin:0; font-size: 20px; }
.hostcmp-sub{ margin:8px 0 0; color: rgba(255,255,255,.85); font-size: 13.5px; }
.hostcmp-card{
  margin-top: 14px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 7, 28, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hostcmp-filters{ padding: 14px; }
.hostcmp-row{
  display:grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px;
}
.hostcmp-field label{ display:block; font-size: 12px; color: var(--hc-text2); margin-bottom: 6px; }
.hostcmp-field input, .hostcmp-field select{
  width:100%;
  border-radius: 14px;
  padding: 10px 11px;
  border: 1px solid rgba(27,16,38,.12);
  background: rgba(255,255,255,.72);
  outline: none;
}
.hostcmp-field input:focus, .hostcmp-field select:focus{
  border-color: rgba(124,58,237,.5);
  box-shadow: 0 0 0 3px rgba(124,58,237,.14);
}
.hostcmp-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top: 12px; }
.hostcmp-btn{
  appearance:none; border:0; cursor:pointer; border-radius: 999px;
  padding: 10px 14px; font-weight: 650; letter-spacing: .2px;
  transition: transform .06s ease, opacity .2s ease, box-shadow .2s ease;
}
.hostcmp-btn:active{ transform: translateY(1px); }
.hostcmp-btn[disabled]{ opacity:.5; cursor:not-allowed; }
.hostcmp-btn--glass{
  color:#fff;
  background: linear-gradient(135deg, rgba(124,58,237,.65), rgba(168,85,247,.35));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 30px rgba(124,58,237,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hostcmp-btn--glass:hover{ box-shadow: 0 12px 36px rgba(124,58,237,.34); }
.hostcmp-btn--ghost{
  color: var(--hc-text);
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(27,16,38,.10);
}
.hostcmp-results{ margin-top: 14px; }
.hostcmp-results__head{
  display:flex; align-items:flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px;
}
.hostcmp-results__title h3{ margin:0; font-size:16px; }
.hostcmp-muted{ margin: 4px 0 0; color: var(--hc-text2); font-size: 12px; }
.hostcmp-table{
  width:100%; border-collapse: separate; border-spacing: 0; overflow:hidden;
  border-radius: 18px; box-shadow: 0 10px 30px rgba(17, 7, 28, 0.10);
  border: 1px solid rgba(27,16,38,.08);
}
.hostcmp-table thead th{
  text-align:left; font-size: 12px; color: rgba(255,255,255,.9);
  background: linear-gradient(135deg, rgba(43,10,85,.95), rgba(124,58,237,.75));
  padding: 12px 12px; position:sticky; top:0;
}
.hostcmp-table tbody td{
  padding: 10px 12px; background: rgba(255,255,255,.78);
  border-top: 1px solid rgba(27,16,38,.07); vertical-align: top; font-size: 13px;
}
.hostcmp-link{ color: var(--hc-accent); text-decoration:none; font-weight:650; }
.hostcmp-link:hover{ text-decoration: underline; }
.hostcmp-checkbox{ width:18px; height:18px; accent-color: var(--hc-accent); }

@media (max-width: 900px){
  .hostcmp-row{ grid-template-columns: 1fr 1fr; }
  .hostcmp-results__head{ align-items:flex-start; flex-direction:column; }
}
@media (max-width: 520px){
  .hostcmp-wrap{ padding: 12px; border-radius: 14px; }
  .hostcmp-row{ grid-template-columns: 1fr; }
  .hostcmp-actions{ justify-content:stretch; }
  .hostcmp-btn{ width:100%; text-align:center; }
  .hostcmp-table{ display:none; }
  .hostcmp-cards{ display:grid; gap:10px; }
  .hostcmp-carditem{
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(17, 7, 28, 0.10);
    padding: 12px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .hostcmp-carditem h4{ margin:0 0 6px; font-size:14px; }
  .hostcmp-kv{ display:grid; grid-template-columns: 120px 1fr; gap:6px 10px; font-size:13px; }
  .hostcmp-kv b{ color: var(--hc-text2); font-weight:600; }
}
.hostcmp-modal{
  position: fixed; inset: 0; background: rgba(17, 7, 28, 0.45);
  display:none; align-items:center; justify-content:center; padding: 16px; z-index: 9999;
}
.hostcmp-modal[aria-hidden="false"]{ display:flex; }
.hostcmp-modal__panel{
  width: min(1100px, 100%); max-height: 90vh; overflow:auto;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px; box-shadow: var(--hc-shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hostcmp-modal__head{
  display:flex; align-items:center; justify-content: space-between; gap: 10px;
  padding: 14px; border-bottom: 1px solid rgba(27,16,38,.08);
}
.hostcmp-comparegrid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; padding: 14px;
}
.hostcmp-comparecard{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(27,16,38,.08);
  border-radius: 16px; padding: 12px;
}
.hostcmp-comparecard h4{ margin:0 0 8px; font-size:14px; }
