:root{
  --bg: #0B1220;
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);

  --primary: #09B6F6;
  --danger: #ff5c5c;
  --warn: #ffcc66;
  --ok: #47d18c;

  --radius: 16px;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
}

.topbar{
  position: sticky;
  top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  border-bottom:1px solid var(--stroke);
  background: rgba(11,18,32,.75);
  backdrop-filter: blur(10px);
}

.brand{display:flex;gap:12px;align-items:center}
.logo{height:40px;width:auto;filter: drop-shadow(0 8px 18px rgba(0,0,0,.35))}
.brandText{display:flex;flex-direction:column;line-height:1.1}
.brandText span{font-size:12px;color:var(--muted);margin-top:2px}
.topActions{display:flex;gap:10px;align-items:center}

.wrap{max-width:1200px;margin:0 auto;padding:18px}
.grid{display:grid;grid-template-columns: 1.1fr .9fr;gap:16px}
@media (max-width: 980px){ .grid{grid-template-columns:1fr} }

.card{
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,.04));
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding:16px;
}

.cardTitle{font-weight:900;letter-spacing:.2px;margin-bottom:12px}
.divider{height:1px;background:var(--stroke);margin:14px 0}

.sectionTitle{
  font-weight:900;
  margin:6px 0 10px;
  color: rgba(255,255,255,.86);
}

.form .row{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.form .row.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
label{font-size:12px;color:var(--muted)}
input,select{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline:none;
}
input:focus,select:focus{border-color: rgba(9,182,246,.65); box-shadow:0 0 0 3px rgba(9,182,246,.12)}
.hint{color:var(--muted);font-size:12px}

.btn{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{background: rgba(255,255,255,.09)}
.btn:active{transform: scale(.98)}
.btn.primary{
  border-color: rgba(9,182,246,.45);
  background: rgba(9,182,246,.18);
}
.btn.ghost{background: transparent}
.btn.small{padding:8px 10px;font-size:13px}

.tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.tab{
  flex:1;
  min-width: 130px;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor:pointer;
}
.tab.active{
  color: var(--text);
  border-color: rgba(9,182,246,.35);
  background: rgba(9,182,246,.12);
}

.tabPanel{display:none}
.tabPanel.show{display:block}

.panelHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.panelTitle{font-weight:800;font-size:13px;color:var(--muted)}
.list{display:flex;flex-direction:column;gap:10px}

.item{
  display:grid;
  grid-template-columns: 1.3fr .7fr 40px;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background: rgba(255,255,255,.04);
}
.item input{margin:0}

.itemFixed{ grid-template-columns: 1.05fr .55fr .75fr 40px; }
.itemFixed select{ padding:11px 10px; }

.itemEquip{ grid-template-columns: 1.05fr .55fr .45fr .55fr 40px; }
.itemEquip select{ padding:11px 10px; }

.iconBtn{
  width:40px;height:40px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor:pointer;
}
.iconBtn:hover{background: rgba(255,255,255,.08)}

.kpis{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
@media (max-width:520px){ .kpis{grid-template-columns:1fr} }
.kpi{
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:12px;
  background: rgba(255,255,255,.04);
}
.kpiLabel{font-size:12px;color:var(--muted)}
.kpiValue{font-size:18px;font-weight:1000;margin-top:6px}

.status{
  display:flex;gap:10px;align-items:flex-start;
  padding:12px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background: rgba(255,255,255,.04);
}
.statusDot{
  width:12px;height:12px;border-radius:999px;margin-top:3px;
  background: rgba(255,255,255,.25);
  box-shadow: 0 0 0 4px rgba(255,255,255,.05);
}
.statusTitle{font-weight:1000}
.statusDesc{color:var(--muted);font-size:13px;margin-top:3px}

.priceGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:520px){ .priceGrid{grid-template-columns:1fr} }
.priceCard{
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:12px;
  background: rgba(255,255,255,.04);
}
.priceLabel{font-size:12px;color:var(--muted)}
.priceValue{font-size:20px;font-weight:1100;margin-top:6px}

.miniCard{
  padding:12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
}
.miniTitle{font-weight:1000;margin-bottom:10px}

.breakTitle{font-weight:1000;margin-bottom:10px}
.breakList{display:flex;flex-direction:column;gap:10px}
.breakItem{
  display:flex;justify-content:space-between;gap:12px;align-items:center;
  padding:10px 12px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background: rgba(255,255,255,.04);
}
.breakItem small{color:var(--muted)}
.badge{
  font-family: var(--mono);
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
}

.footerNote{margin-top:14px;font-size:12px;color: rgba(255,255,255,.55);}


/* ===== MODAIS ===== */
.gfModal{
  position:fixed; inset:0; z-index:9999;
  display:none;
  align-items:center; justify-content:center;
  padding:18px;
  background: rgba(0,0,0,.55);
}
.gfModalBox{
  width:100%;
  max-width:520px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  box-shadow: var(--shadow);
  padding:16px;
}
.gfModalTitle{font-weight:1000; font-size:16px}
.gfModalDesc{color:var(--muted); margin-top:8px; line-height:1.45; font-size:13px}
.gfModalActions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}



.greeting{
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}