:root{
  --bg:#0b0f17;
  --card:#0f1624;
  --card2:#111b2c;
  --text:#eaf0ff;
  --muted:#9fb0d0;
  --line:rgba(255,255,255,.08);
  --accent:#3ddc97;
  --accent2:#6aa8ff;
  --warn:#ffcc66;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1000px 600px at 20% 0%, rgba(106,168,255,.12), transparent 60%),
              radial-gradient(900px 600px at 80% 10%, rgba(61,220,151,.10), transparent 60%),
              var(--bg);
  color:var(--text);
}

.wrap{width:min(1120px, 92vw); margin:0 auto; padding:22px 0 40px}
.topbar{
  position:sticky; top:0; z-index:40;
  backdrop-filter: blur(12px);
  background: rgba(11,15,23,.72);
  border-bottom:1px solid var(--line);
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0}
.brand{display:flex; align-items:center; gap:12px}
.brand__mark{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(61,220,151,.28), rgba(106,168,255,.22));
  border:1px solid var(--line);
  font-weight:800;
}
.brand__title{font-weight:700; letter-spacing:.2px}
.brand__subtitle{font-size:12px; color:var(--muted); margin-top:2px}
.topbar__actions{display:flex; gap:10px; align-items:center}

.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
  text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px)}
.btn--primary{
  background: linear-gradient(135deg, rgba(61,220,151,.25), rgba(106,168,255,.18));
  border-color: rgba(61,220,151,.35);
}
.btn--ghost:hover{background: rgba(255,255,255,.06)}
.btn--primary:hover{border-color: rgba(61,220,151,.55)}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.card--inner{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius: 16px;
  padding:16px;
}
.slim{padding:14px}

.hero{display:grid; grid-template-columns: 1.2fr .8fr; gap:16px; padding:20px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--line);
  color: var(--muted);
  font-weight:600;
  background: rgba(255,255,255,.03);
  font-size:12px;
  width:fit-content;
}
h1{margin:10px 0 10px; font-size:28px; letter-spacing:-.3px}
h2{margin:0 0 12px; font-size:18px; letter-spacing:-.2px}
.lead{margin:0 0 16px; color:var(--muted); line-height:1.45}
.muted{color:var(--muted)}
.small{font-size:12px}
.strong{font-weight:700}
.right{text-align:right}

.kpis{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; margin:14px 0}
.kpi{border:1px solid var(--line); border-radius:16px; padding:12px; background: rgba(255,255,255,.03)}
.kpi__label{font-size:12px; color:var(--muted); margin-bottom:6px}
.kpi__value{font-size:18px; font-weight:800; letter-spacing:-.2px}
.kpi__sub{font-size:12px; color:var(--muted); margin-top:3px}
.ctaRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}

.curve__title{font-weight:700; margin-bottom:10px}
.curve__legend{display:grid; gap:6px; margin-top:10px; color:var(--muted); font-size:12px}
.dot{display:inline-block; width:10px; height:10px; border-radius:999px; margin-right:8px; vertical-align:middle}
.dot--low{background: rgba(255,204,102,.9)}
.dot--mid{background: rgba(106,168,255,.95)}
.dot--high{background: rgba(61,220,151,.95)}

.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin-top:16px}

.bullets{margin:0; padding-left:18px; color:var(--muted); line-height:1.55}
.bullets strong{color:var(--text)}
.callout{
  margin-top:12px;
  border:1px solid rgba(61,220,151,.25);
  background: rgba(61,220,151,.08);
  padding:12px;
  border-radius: 14px;
  color: var(--text);
  line-height:1.45;
}
.position{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.position__box{border:1px solid var(--line); border-radius:16px; padding:12px; background: rgba(255,255,255,.03)}
.position__label{font-size:12px; color:var(--muted); margin-bottom:6px}
.position__value{font-size:18px; font-weight:800}
.position__hint{font-size:12px; color:var(--muted); margin-top:4px}
.script{margin-top:12px; border:1px solid rgba(106,168,255,.25); background: rgba(106,168,255,.08); padding:12px; border-radius:14px}
.script__title{font-weight:700; margin-bottom:8px}
.script p{margin:0; color:var(--text); line-height:1.5}

.sectionHead{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:10px}
.tableWrap{overflow:auto; border:1px solid var(--line); border-radius:16px}
.table{width:100%; border-collapse:collapse; min-width: 860px; background: rgba(255,255,255,.02)}
.table th, .table td{padding:10px 10px; border-bottom:1px solid var(--line); font-size:13px}
.table th{color:var(--muted); text-align:left; font-weight:700; background: rgba(255,255,255,.03)}
.table tbody tr:hover{background: rgba(255,255,255,.03)}
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 8px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size:12px;
}
.pill--ok{border-color: rgba(61,220,151,.25); background: rgba(61,220,151,.07); color: rgba(234,240,255,.95)}
.pill--warn{border-color: rgba(255,204,102,.25); background: rgba(255,204,102,.07); color: rgba(234,240,255,.95)}
.note{
  margin-top:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  line-height:1.5;
  background: rgba(255,255,255,.02);
}
.list{display:grid; gap:10px; margin-top:8px}
.listing{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.03);
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
}
.listing__title{font-weight:700; margin-bottom:4px}
.listing__meta{color:var(--muted); font-size:12px; line-height:1.45}
.listing__price{font-weight:900; font-size:16px; text-align:right}
.listing__ppm2{color:var(--muted); font-size:12px; text-align:right; margin-top:2px}

.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size:12px;
  font-weight:600;
}
.chip--ok{border-color: rgba(61,220,151,.25); background: rgba(61,220,151,.07); color: rgba(234,240,255,.95)}

.footerMeta{display:flex; justify-content:space-between; gap:12px; margin-top:14px; border-top:1px solid var(--line); padding-top:12px}
.footer{margin-top:18px; padding-bottom:20px; text-align:center}

@media (max-width: 980px){
  .hero{grid-template-columns: 1fr}
  .kpis{grid-template-columns: 1fr}
  .grid2{grid-template-columns: 1fr}
  .position{grid-template-columns: 1fr}
  .topbar__inner{flex-direction:column; align-items:stretch}
  .topbar__actions{justify-content:flex-end}
}

/* Print */
@media print{
  :root{--bg:#fff; --text:#111; --muted:#444; --card:#fff; --card2:#fff; --line: rgba(0,0,0,.12)}
  body{background:#fff; color:#111}
  .topbar, .ctaRow, #btnPrint, #btnShare{display:none !important}
  .card{box-shadow:none}
  .wrap{width:100%; padding:0}
  .table{min-width:0}
}
