/* ELR Agent Goals Matrix — Black Edition (v4) */
:root{
  --bg0:#06070b;
  --card: rgba(10,12,18,.78);
  --stroke: rgba(255,255,255,.12);
  --stroke2: rgba(255,255,255,.18);
  --text:#f3f6ff;
  --muted: rgba(243,246,255,.72);
  --muted2: rgba(243,246,255,.55);
  --blue:#276bff;
  --shadow: 0 30px 80px rgba(0,0,0,.62);
  --r2: 22px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(39,107,255,.25), transparent 60%),
    radial-gradient(900px 500px at 85% 5%, rgba(0,194,255,.15), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.78)),
    url("./bg.jpg") center/cover no-repeat fixed;
}

.shell{
  width:min(1100px, 92vw);
  margin: clamp(26px, 4vw, 44px) auto;
}

.hero{
  margin-bottom: 16px;
}

.topbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
}

.kicker{
  letter-spacing:.26em;
  text-transform:uppercase;
  font-weight:700;
  font-size:12px;
  color:var(--muted2);
}

h1{
  margin:6px 0 4px;
  font-size: clamp(34px, 4vw, 54px);
  line-height:1.02;
  font-weight:800;
  text-shadow: 0 18px 55px rgba(0,0,0,.65);
}

.sub{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.brandBlock{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-width: 220px;
}

.brandLogo{
  height: 74px;
  width:auto;
  opacity:0.98;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.6));
}

.pill{
  display:inline-flex;
  gap:10px;
  align-items:center;
  margin-top: 14px;
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 13px;
}

.card{
  border-radius: var(--r2);
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow:hidden;
}

.form{ padding: 22px; }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.field label{
  display:flex;
  gap:8px;
  align-items:center;
  font-weight:700;
  font-size: 15px;
}

.req{ color: #86a8ff; font-weight:800; }

.hint{
  margin-top:7px;
  color: var(--muted2);
  font-size: 12.5px;
}

input, select, textarea{
  width:100%;
  margin-top:10px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.36);
  color: var(--text);
  outline: none;
  font-size: 15px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

input::placeholder, textarea::placeholder{ color: rgba(243,246,255,.38); }
input:focus, select:focus, textarea:focus{
  border-color: rgba(39,107,255,.7);
  box-shadow: 0 0 0 4px rgba(39,107,255,.16);
}

.money{
  position: relative;
}
.money .prefix{
  position:absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(243,246,255,.6);
  font-weight:800;
}
.money input{
  padding-left: 32px;
}

.full{ grid-column: 1 / -1; }

.actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.btn{
  border:0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.btn:active{ transform: translateY(1px); }

.btn.ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
}

.btn.primary{
  background: rgba(243,246,255,.96);
  color:#0b0c10;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.btn.primary:hover{ opacity: .96; }

.arrow{ font-size: 18px; }

.status{
  margin-top: 10px;
  min-height: 20px;
  color: rgba(255,150,170,.95);
  font-weight:700;
}

.footer{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color: rgba(243,246,255,.55);
  font-size: 12.5px;
  padding: 6px 2px;
}

@media (max-width: 820px){
  .grid{ grid-template-columns: 1fr; }
  .topbar{ flex-direction:column; align-items:flex-start; }
  .brandBlock{ width:100%; justify-content:flex-start; }
  .brandLogo{ height: 60px; }
}

/* Modal */
.modalBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 50;
}


.modalBackdrop[hidden]{
  display:none !important;
}


.modal{
  width: min(720px, 94vw);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,12,18,.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 100px rgba(0,0,0,.75);
  padding: 18px 18px 16px;
}

.modalTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}

.modalBadge{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(39,107,255,.16);
  color: rgba(243,246,255,.92);
  font-weight: 800;
  font-size: 13px;
}

.modalClose{
  background: transparent;
  border: 0;
  color: rgba(243,246,255,.85);
  font-size: 18px;
  cursor:pointer;
}

.modal h2{
  margin: 12px 0 6px;
  font-size: 22px;
  font-weight: 900;
}

.modalSub{
  margin: 0 0 14px;
  color: rgba(243,246,255,.75);
}

.recap{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  padding: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.recapItem{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.recapLabel{
  color: rgba(243,246,255,.6);
  font-size: 12px;
  font-weight: 800;
  letter-spacing:.06em;
  text-transform: uppercase;
}

.recapValue{
  margin-top: 6px;
  font-weight: 900;
}

.modalActions{
  display:flex;
  justify-content:flex-end;
  margin-top: 14px;
}
