:root {
  --navy:        #0B0F2A;
  --navy-card:   #131829;
  --navy-border: #1C2248;
  --cyan:        #00D4FF;
  --cyan-dim:    rgba(0,212,255,0.12);
  --purple:      #7C4DFF;
  --purple-dim:  rgba(124,77,255,0.12);
  --white:       #FFFFFF;
  --gray:        #7A87A8;
  --green:       #00E676;
  --orange:      #FFA726;
  --red:         #FF5C5C;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ─── HEADER ─── */
.header {
  background: linear-gradient(90deg, #0B0F2A 0%, #111632 100%);
  border-bottom: 1px solid var(--navy-border);
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--white); }
.brand-name span { color: var(--cyan); }
.header-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  padding: 5px 12px;
  border-radius: 20px;
}

/* ─── PAGE ─── */
.page { max-width: 1180px; margin: 0 auto; padding: 36px 24px 80px; }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.page-sub { color: var(--gray); font-size: 14px; margin-bottom: 36px; max-width: 680px; }

/* ─── LAYOUT ─── */
.layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }

/* ─── SECTION CARD ─── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 20px;
}
.card:last-child { margin-bottom: 0; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.card-title-group { display: flex; align-items: center; gap: 12px; }
.num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.card-title { font-size: 16px; font-weight: 700; }
.card-sub { font-size: 12px; color: var(--gray); margin-top: 2px; }
.card-meta { display: flex; align-items: center; gap: 12px; }
.weight-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--cyan); background: var(--cyan-dim);
  padding: 4px 10px; border-radius: 20px;
}
.section-pts {
  font-size: 22px; font-weight: 800; color: var(--cyan);
  min-width: 32px; text-align: right;
}

/* ─── PROSPECT INFO ─── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ─── FORM ELEMENTS ─── */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 7px;
}
select, input[type="text"] {
  width: 100%;
  background: #0C1028;
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  color: var(--white);
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A87A8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select { cursor: pointer; }
select:focus, input[type="text"]:focus { border-color: var(--cyan); }
select option { background: #131829; }

input[type="text"] { background-image: none; }

/* ─── CHECKBOX GRID ─── */
.cb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.cb-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: #0C1028;
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  user-select: none;
}
.cb-item:hover { border-color: var(--purple); }
.cb-item.checked {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}
.cb-item input[type="checkbox"] {
  margin-top: 2px; flex-shrink: 0;
  accent-color: var(--cyan);
  width: 14px; height: 14px;
}
.cb-text { font-size: 12px; color: #C0CCDF; line-height: 1.4; }
.cb-pts { font-size: 11px; font-weight: 700; color: var(--cyan); margin-top: 2px; }

/* ─── SIDEBAR ─── */
.sidebar { position: sticky; top: 20px; }

.score-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 16px;
}

/* Arc score */
.arc-wrap {
  display: flex; flex-direction: column;
  align-items: center; margin-bottom: 20px;
}
.arc-svg { overflow: visible; }
.arc-track { fill: none; stroke: #1C2248; stroke-width: 11; }
.arc-fill {
  fill: none; stroke: var(--cyan); stroke-width: 11;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(.4,0,.2,1), stroke 0.3s;
}
.arc-center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.arc-num { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.arc-denom { font-size: 12px; color: var(--gray); margin-top: 2px; }

.lead-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px;
  text-align: center;
}
.badge-hot        { background: rgba(255,92,92,0.15);  color: #FF7070; border: 1px solid rgba(255,92,92,0.35); }
.badge-warm       { background: rgba(255,167,38,0.15); color: #FFA726; border: 1px solid rgba(255,167,38,0.35); }
.badge-developing { background: rgba(124,77,255,0.15); color: #9B7FFF; border: 1px solid rgba(124,77,255,0.35); }
.badge-cold       { background: rgba(122,135,168,0.12);color: #7A87A8; border: 1px solid rgba(122,135,168,0.3); }
.badge-unscored   { background: transparent; color: #3A4468; border: 1px dashed #3A4468; }

.tier-chip {
  font-size: 11px; color: var(--gray);
  background: #0C1028; border: 1px solid var(--navy-border);
  padding: 4px 12px; border-radius: 20px;
  margin-top: 10px; display: inline-block;
}

/* Breakdown bars */
.divider { height: 1px; background: var(--navy-border); margin: 20px 0; }

.breakdown-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gray); margin-bottom: 16px;
}

.bk-item { margin-bottom: 13px; }
.bk-row {
  display: flex; justify-content: space-between;
  font-size: 12px; margin-bottom: 5px;
}
.bk-name { color: #9BA8C4; font-weight: 600; }
.bk-score { color: var(--white); font-weight: 800; }
.bar { height: 5px; background: #1C2248; border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s cubic-bezier(.4,0,.2,1); }

/* Disqualifier */
.disq {
  background: rgba(255,92,92,0.08);
  border: 1px solid rgba(255,92,92,0.3);
  border-radius: 8px; padding: 12px 14px;
  font-size: 12px; color: #FF8A80;
  margin-top: 14px; display: none;
}

/* Recommendations */
.rec-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px; padding: 22px;
  margin-bottom: 16px;
}
.rec-heading {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--cyan); margin-bottom: 14px;
}
.rec-item {
  display: flex; gap: 10px; margin-bottom: 11px;
  font-size: 12px; line-height: 1.5; color: #9BA8C4;
}
.rec-arrow { color: var(--cyan); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.rec-warn { color: #FFA726; font-size: 12px; font-style: italic; margin-top: 6px; }

/* Reset btn */
.btn-reset {
  width: 100%; padding: 10px;
  background: transparent;
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  color: var(--gray); font-size: 12px;
  cursor: pointer; margin-top: 10px;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-reset:hover { border-color: var(--purple); color: var(--white); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .cb-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .info-grid { grid-template-columns: 1fr; }
  .header { flex-direction: column; gap: 10px; align-items: flex-start; }
}