
:root{
  --bg: #0b0f14;
  --panel: #111826;
  --panel-2: #0f1622;
  --border: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --muted-2: rgba(255,255,255,.45);
  --accent: #C9A24D; /* Anthiz / SabiFunds gold */
  --accent-2: rgba(201,162,77,.18);
  --danger: #ff5a5f;
  --ok: #2bd576;
  --warn: #ffcc00;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --radius-sm: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: 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(--sans);
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(201,162,77,.12), transparent 60%),
              radial-gradient(900px 500px at 80% 0%, rgba(45, 213, 118, .08), transparent 60%),
              linear-gradient(180deg, #070a0f 0%, #0b0f14 100%);
}

a{ color: inherit; text-decoration:none; }
button, input, select, textarea{
  font-family: inherit;
  color: inherit;
}
kbd{
  font-family: var(--mono);
  font-size:12px;
  padding:2px 6px;
  border:1px solid var(--border);
  border-bottom-color: rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
}

.container{
  display:grid;
  grid-template-columns: 280px 1fr;
  height:100vh;
}

.sidebar{
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17,24,38,.9) 0%, rgba(15,22,34,.75) 100%);
  padding:18px 14px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}
.brand img{ width:34px; height:34px; object-fit:contain; }
.brand .title{
  display:flex; flex-direction:column; gap:2px;
}
.brand .title strong{ font-size:14px; letter-spacing:.2px; }
.brand .title span{ font-size:12px; color: var(--muted); }

.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid transparent;
  color: var(--muted);
}
.nav a .left{ display:flex; align-items:center; gap:10px; }
.nav a .dot{
  width:8px; height:8px; border-radius:50%;
  background: rgba(255,255,255,.18);
}
.nav a.active{
  color: var(--text);
  background: var(--accent-2);
  border-color: rgba(201,162,77,.35);
}
.nav a.active .dot{ background: var(--accent); }

.sidebar .meta{
  margin-top:auto;
  padding:12px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}
.meta .row{ display:flex; justify-content:space-between; gap:10px; font-size:12px; color: var(--muted); }
.meta .row strong{ color: var(--text); font-weight:600; }
.meta .row + .row{ margin-top:8px; }

.main{
  display:flex;
  flex-direction:column;
  height:100vh;
  overflow:hidden;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,10,15,.55);
  backdrop-filter: blur(10px);
}
.topbar .left{
  display:flex; align-items:center; gap:10px;
}
.breadcrumb{
  color: var(--muted);
  font-size:12px;
}
.search{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  min-width: 360px;
}
.search input{
  background: transparent;
  border:none;
  outline:none;
  width:100%;
  color: var(--text);
  font-size:13px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size:12px;
}
.pill select{
  background: transparent;
  border:none;
  outline:none;
  color: var(--text);
  font-size:12px;
}

.content{
  padding:18px;
  overflow:auto;
}

.grid{
  display:grid;
  gap:14px;
}
.grid.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }

.card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
}
.card h3{
  margin:0 0 10px;
  font-size:14px;
}
.card p{
  margin:0;
  color: var(--muted);
  font-size:13px;
  line-height: 1.4;
}
.card .muted{ color: var(--muted); }
.card .value{
  font-size:22px;
  font-weight:700;
  letter-spacing:.2px;
  margin-top:10px;
}
.card .sub{
  margin-top:6px;
  font-size:12px;
  color: var(--muted-2);
}

.table{
  width:100%;
  border-collapse: collapse;
  font-size:13px;
}
.table th, .table td{
  padding:12px 10px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  vertical-align: top;
}
.table th{
  font-size:12px;
  color: var(--muted);
  font-weight:600;
  position: sticky;
  top: 0;
  background: rgba(11,15,20,.95);
  backdrop-filter: blur(8px);
  z-index: 1;
}
.table tr:hover td{ background: rgba(201,162,77,.06); cursor:pointer; }
.table .tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size:12px;
}
.tag.ok{ border-color: rgba(43,213,118,.35); background: rgba(43,213,118,.10); color: rgba(230,255,242,.92); }
.tag.warn{ border-color: rgba(255,204,0,.35); background: rgba(255,204,0,.10); color: rgba(255,244,204,.95); }
.tag.bad{ border-color: rgba(255,90,95,.35); background: rgba(255,90,95,.10); color: rgba(255,220,221,.95); }
.tag.gold{ border-color: rgba(201,162,77,.45); background: rgba(201,162,77,.12); color: rgba(255,242,212,.95); }

.btns{ display:flex; gap:10px; flex-wrap:wrap; }
.btn{
  padding:10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size:13px;
  cursor:pointer;
}
.btn.primary{
  background: linear-gradient(180deg, rgba(201,162,77,.95), rgba(201,162,77,.75));
  border-color: rgba(201,162,77,.55);
  color: #0b0f14;
  font-weight:700;
}
.btn.ghost{
  background: transparent;
}
.btn.danger{
  background: rgba(255,90,95,.10);
  border-color: rgba(255,90,95,.35);
  color: rgba(255,220,221,.95);
}
.btn:disabled{ opacity:.5; cursor:not-allowed; }

.hr{
  height:1px;
  background: var(--border);
  margin: 12px 0;
}

.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
}
@media (max-width: 1100px){
  .container{ grid-template-columns: 1fr; }
  .sidebar{ display:none; }
  .search{ min-width: 0; width: 100%; }
  .split{ grid-template-columns: 1fr; }
  .grid.cols-3{ grid-template-columns: 1fr; }
  .grid.cols-2{ grid-template-columns: 1fr; }
  .grid.cols-4{ grid-template-columns: 1fr; }
}

.modal-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:center; justify-content:center;
  padding:18px;
  z-index: 50;
}
.modal{
  width:min(820px, 100%);
  border:1px solid var(--border);
  border-radius: 18px;
  background: rgba(17,24,38,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  padding:14px;
}
.modal header{
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
  padding: 8px 8px 10px;
}
.modal header h2{
  margin:0; font-size:16px;
}
.modal header p{ margin:4px 0 0; color: var(--muted); font-size:13px;}
.modal .close{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  padding:8px 10px;
  cursor:pointer;
}
.modal .body{ padding: 6px 8px 10px; }
.form{
  display:grid; gap:10px;
}
.form .row{
  display:grid; gap:8px;
}
.label{ font-size:12px; color: var(--muted); }
.input, textarea{
  width:100%;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  outline:none;
  font-size:13px;
}
textarea{ min-height: 110px; resize: vertical; }
.help{
  font-size:12px;
  color: var(--muted-2);
  line-height:1.4;
}

.auth-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:18px;
}
.auth{
  width:min(900px, 100%);
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
}
.auth .panel{
  border:1px solid var(--border);
  border-radius: 22px;
  background: rgba(17,24,38,.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding:16px;
}
.auth .panel h1{ margin:0 0 8px; font-size:18px; }
.auth .panel p{ margin:0 0 14px; color: var(--muted); font-size:13px; }
.auth .hero{
  border:1px dashed rgba(201,162,77,.35);
  border-radius: 22px;
  background: rgba(201,162,77,.06);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.auth .hero .logo-row{ display:flex; align-items:center; gap:10px; }
.auth .hero img{ width:42px; height:42px; object-fit:contain; }
.auth .hero h2{ margin:0; font-size:16px; }
.auth .hero small{ color: var(--muted); }
.auth .hero .bullets{
  margin-top:6px;
  display:grid;
  gap:8px;
  font-size:13px;
  color: var(--muted);
}
@media (max-width: 980px){
  .auth{ grid-template-columns: 1fr; }
}
