:root{
  --bg:#050607;
  --panel:#0b0f10;
  --panel2:#0f1516;
  --border:#1e2a2a;
  --text:#e9f2f0;
  --muted:#9bb1aa;

  --green:#24ff7a;
  --green2:#12c85b;

  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 12px;
  --max: 1100px;
  --ui: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--ui);
  background:
    radial-gradient(1000px 500px at 20% -10%, rgba(36,255,122,.12), transparent 55%),
    radial-gradient(900px 450px at 80% 0%, rgba(18,200,91,.08), transparent 55%),
    var(--bg);
  color: var(--text);
}

.container{ max-width:var(--max); margin:0 auto; padding:18px; }
.page{ min-height:100%; }

.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(5,6,7,.65);
  border-bottom: 1px solid rgba(30,42,42,.75);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex: 0 0 auto;
  min-width: 320px;      /* give it room */
}

.brand__logo{
  height: 40px;
  width: 320px;          /* make it as wide as your red box */
  display:block;
  object-fit: cover;     /* ✅ fills the whole box */
  object-position: center; /* tweak: left/center/right if you want */
}



.brand__title{ font-weight:900; letter-spacing:.3px; }
.brand__sub{ font-size:12px; color: var(--muted); margin-top:2px; }

/* ✅ UPDATED NAV BUTTONS (bigger + cleaner + nicer hover/active) */
.nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;   /* ✅ stops second row */
  justify-content:flex-end;
}

.nav__link{
  padding:12px 18px;
  border-radius:999px;
  border:1px solid rgba(36,255,122,.25);
  background: rgba(15,21,22,.75);
  color: var(--muted);
  font-size:14px;
  font-weight:600;
  letter-spacing:.3px;
  cursor:pointer;
  transition: all .2s ease;

  white-space: nowrap;   /* ✅ THIS FIXES IT */
}


.nav__link:hover{
  border-color: rgba(36,255,122,.55);
  color: var(--text);
  background: rgba(36,255,122,.08);
  transform: translateY(-1px);
}

.nav__link.is-active{
  border-color: var(--green);
  color: var(--text);
  background: linear-gradient(
    180deg,
    rgba(36,255,122,.25),
    rgba(18,200,91,.18)
  );
  box-shadow:
    0 0 0 1px rgba(36,255,122,.25),
    0 6px 18px rgba(36,255,122,.15);
}

.nav__link--btn{ appearance:none; }

.panel{
  background: linear-gradient(180deg, rgba(15,21,22,.78), rgba(11,15,16,.72));
  border: 1px solid rgba(30,42,42,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel__head{
  padding:16px 16px 12px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  border-bottom: 1px solid rgba(30,42,42,.65);
}
.panel__body{ padding:16px; }

.h1{ margin:0; font-size:22px; letter-spacing:.2px; }
.h2{ margin:0; font-size:18px; letter-spacing:.2px; }
.muted{ color: var(--muted); }
.small{ font-size:12px; }

.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
@media (max-width:900px){ .grid3{ grid-template-columns:1fr; } }

.card{
  padding:14px;
  border-radius: var(--radius2);
  border:1px solid rgba(30,42,42,.85);
  background: rgba(11,15,16,.55);
}
.card__label{ font-size:12px; color: var(--muted); }
.card__value{ font-size:24px; font-weight:900; margin-top:4px; color: var(--green); }

.form{ display:block; }
.form--grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (max-width:900px){ .form--grid{ grid-template-columns:1fr; } }
.form__row--full{ grid-column: 1 / -1; }

.label{ display:block; font-size:12px; color: var(--muted); margin-bottom:6px; }

.input{
  width:100%;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid rgba(30,42,42,.9);
  background: rgba(5,6,7,.55);
  color: var(--text);
  outline:none;
}
.input:focus{
  border-color: rgba(36,255,122,.55);
  box-shadow: 0 0 0 3px rgba(36,255,122,.10);
}
.input--small{ padding:9px 11px; font-size:13px; }

.btn{
  padding:10px 14px;
  border-radius: 12px;
  border:1px solid rgba(30,42,42,.9);
  background: rgba(11,15,16,.55);
  color: var(--text);
  cursor:pointer;
  font-weight:700;
}
.btn:hover{ border-color: rgba(36,255,122,.35); }
.btn--green{
  background: linear-gradient(180deg, rgba(36,255,122,.25), rgba(18,200,91,.16));
  border-color: rgba(36,255,122,.55);
  color: var(--text);
}
.btn--ghost{ color: var(--muted); }
.row{ display:flex; align-items:center; }
.row--gap{ gap:10px; flex-wrap:wrap; }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
}
.table th, .table td{
  padding:10px 10px;
  border-bottom: 1px solid rgba(30,42,42,.55);
  font-size:13px;
  text-align:left;
}
.table th{ color: var(--muted); font-weight:700; }

.badge{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(36,255,122,.35);
  background: rgba(36,255,122,.10);
  color: var(--text);
  font-size:12px;
}

.hr{ border:0; height:1px; background: rgba(30,42,42,.55); margin:16px 0; }
.footer-note{ padding:10px 4px; }


