
:root{
  --bg:#0b0e14;
  --card:#111827;
  --card2:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:rgba(255,255,255,.08);
  --accent:#22c55e;
  --accent2:#38bdf8;
  --warn:#f59e0b;
  --danger:#ef4444;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --radius2: 22px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(56,189,248,.18), transparent 60%),
              radial-gradient(900px 700px at 110% 10%, rgba(34,197,94,.14), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit}
.link{color:var(--accent2); text-decoration:none}
.link:hover{text-decoration:underline}

.wrap{max-width:1120px; margin:0 auto; padding:18px}
.header{padding-top:26px; padding-bottom:10px}
.brandRow{
  display:flex; gap:18px; align-items:flex-start; justify-content:space-between;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border-radius: var(--radius2);
  padding:18px;
  box-shadow: var(--shadow);
}
.brandText h1{margin:0 0 6px; font-size:24px; letter-spacing:.2px}
.sub{margin:0; color:var(--muted); line-height:1.35}
.brandActions{display:flex; gap:12px; align-items:center}
.avatar{
  width:62px; height:62px; border-radius:18px;
  border:1px solid var(--line);
  object-fit:cover;
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}
.wa-header{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border:1px solid rgba(34,197,94,.35);
  background: rgba(34,197,94,.12);
  border-radius: 14px;
  text-decoration:none;
  white-space:nowrap;
  font-weight:650;
}
.wa-header:hover{background: rgba(34,197,94,.18)}

.card{
  border:1px solid var(--line);
  background: rgba(17,24,39,.65);
  backdrop-filter: blur(8px);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:18px;
  margin: 14px 0;
}
.card h2{margin:0 0 12px; font-size:18px}
.hint{color:var(--muted); font-size:13px}
.muted{color:var(--muted)}
.em{color:#bbf7d0}
.empty{border:1px dashed var(--line); padding:12px; border-radius:14px; color:var(--muted); margin-top:10px}

.grid{display:grid; grid-template-columns: repeat(12, 1fr); gap:12px}
.col-12{grid-column:span 12}
.col-6{grid-column:span 6}

.field label{display:block; margin:0 0 7px; font-size:13px; color: #cbd5e1}
input, select, button{
  font: inherit;
}
input, select{
  width:100%;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(15,23,42,.75);
  color: var(--text);
  outline:none;
}
input:focus, select:focus{border-color: rgba(56,189,248,.5); box-shadow: 0 0 0 3px rgba(56,189,248,.12)}

.row{display:flex; gap:10px; align-items:center}
.row-wrap{flex-wrap:wrap}
.space-between{justify-content:space-between}
.btn{
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.btn:hover{background: rgba(255,255,255,.10)}
.btn.primary{
  border-color: rgba(56,189,248,.35);
  background: rgba(56,189,248,.14);
}
.btn.primary:hover{background: rgba(56,189,248,.18)}
.btn:disabled{opacity:.55; cursor:not-allowed}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  font-size: 13px;
  color: #e5e7eb;
}
.pill input{width:auto; padding:0}

.checks{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.checks label{
  cursor:pointer;
  user-select:none;
}

.status{
  margin-top:10px;
  font-size:13px;
  color: #e5e7eb;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(15,23,42,.45);
}
.progress{
  margin-top:10px;
  height:10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
.progress .bar{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(34,197,94,.95), rgba(56,189,248,.95));
}

.stats{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:10px;
  margin: 14px 0;
}
.stat{
  border:1px solid var(--line);
  background: rgba(17,24,39,.55);
  border-radius: 18px;
  padding:12px 12px;
  box-shadow: var(--shadow);
}
.stat .k{color:var(--muted); font-size:12px}
.stat .v{font-size:18px; font-weight:750; margin-top:4px}

.chartWrap{
  margin-top:10px;
  border:1px solid var(--line);
  background: rgba(15,23,42,.50);
  border-radius: var(--radius2);
  padding:10px;
}

.infoBox{
  margin-top:14px;
  border:1px solid rgba(56,189,248,.22);
  background: rgba(56,189,248,.06);
  border-radius: var(--radius2);
  padding:14px 14px;
}
.infoBox h3{margin:0 0 8px; font-size:15px}
.infoBox p{margin:10px 0; color:#d1d5db}
.infoBox ul{margin:10px 0 0 18px; color:#d1d5db}
.infoBox li{margin:8px 0}

#map{
  height: 420px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  overflow:hidden;
  margin-top:12px;
}

.tableWrap{
  margin-top:10px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  overflow:auto;
  background: rgba(15,23,42,.45);
}
table{width:100%; border-collapse:collapse; font-size:13px}
thead th{
  position:sticky; top:0;
  background: rgba(15,23,42,.92);
  text-align:left;
  padding:10px 10px;
  border-bottom:1px solid var(--line);
  color:#e5e7eb;
  cursor:pointer;
  white-space:nowrap;
}
thead th.selHead{cursor:default}
tbody td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  color:#e5e7eb;
  vertical-align:top;
}
tbody tr:hover{background: rgba(255,255,255,.04)}
tbody td small{color:var(--muted)}
tbody td .tag{
  display:inline-block; padding:2px 8px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10); color:var(--muted);
}

.choices{
  margin-top:8px;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  overflow:hidden;
}
.choice{
  padding:10px 12px;
  cursor:pointer;
  background: rgba(15,23,42,.50);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.choice:hover{background: rgba(255,255,255,.06)}
.choice:last-child{border-bottom:none}

.footer{padding-top: 8px; padding-bottom: 50px}

.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 14px;
  border-radius: 999px;
  border:1px solid rgba(34,197,94,.35);
  background: rgba(34,197,94,.16);
  text-decoration:none;
  font-weight:750;
  box-shadow: var(--shadow);
}
.wa-float:hover{background: rgba(34,197,94,.22)}

@media (max-width: 980px){
  .stats{grid-template-columns: repeat(3, 1fr)}
}
@media (max-width: 760px){
  .brandRow{flex-direction:column; align-items:stretch}
  .brandActions{justify-content:space-between}
  .col-6{grid-column:span 12}
  .stats{grid-template-columns: repeat(2, 1fr)}
  .wa-header{white-space:normal}
}
