:root{
  --hex1:#ffa238; /* light orange */
  --hex2:#ff8901; /* orange */
  --hex3:#15b4b2; /* teal */
  --hex4:#005a5a; /* deep teal */
  --bg:#fcfcfc;

  --text:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;
  --card:#ffffff;

  --radius-card:0.5rem;
  --radius-btn:0.375rem;

  --shadow:0 10px 25px rgba(2,6,23,.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Segoe UI,system-ui,-apple-system,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:none}
img{max-width:100%}

/* Utilities */
.muted{color:var(--muted)}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;background:#f1f5f9;border:1px solid var(--border);padding:2px 6px;border-radius:999px}
.badge,.pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;border:1px solid var(--border);background:#fff;font-size:12px;color:var(--muted)}
.pill{border-color:rgba(21,180,178,.35);color:var(--hex4)}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:var(--radius-btn);
  border:1px solid transparent;
  background:var(--hex2);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.btn:hover{filter:brightness(.98)}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btn-outline{
  background:#fff;
  color:var(--hex4);
  border-color:var(--border);
}
.btn-outline:hover{border-color:rgba(0,90,90,.35)}
.btn-full{width:100%}

/* Inputs */
.input{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius-btn);
  background:#fff;
  outline:none;
}
.input:focus{border-color:rgba(21,180,178,.55);box-shadow:0 0 0 4px rgba(21,180,178,.12)}
.label{display:block;font-size:12px;color:var(--muted);font-weight:700;margin-bottom:6px}
.form-row{margin:10px 0}

/* Alerts */
.alert{
  margin:12px 0;
  padding:12px 14px;
  border-radius:var(--radius-card);
  border:1px solid rgba(21,180,178,.35);
  background:rgba(21,180,178,.07);
  color:var(--hex4);
}
.alert.error{
  border-color:rgba(255,137,1,.35);
  background:rgba(255,137,1,.08);
  color:#7c2d12;
}

/* Cards / grid */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-card);
  box-shadow:var(--shadow);
}
.card-pad{padding:16px}
.grid{display:grid;gap:14px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width: 980px){
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 720px){
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
}

/* Auth (login) */
.auth-shell{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.auth-card{
  width:min(520px, 100%);
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:18px;
}
.auth-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.auth-mark{
  width:46px;height:46px;
  border-radius:14px;
  border:1px solid var(--border);
  background:linear-gradient(135deg, rgba(255,162,56,.16), rgba(21,180,178,.10));
  display:flex;align-items:center;justify-content:center;
}
.brand-dot{
  width:12px;height:12px;border-radius:999px;
  background:var(--hex2);
  box-shadow:0 0 0 5px rgba(255,137,1,.15);
}
.auth-title{font-weight:900}
.auth-sub{font-size:12px;color:var(--muted)}
.auth-foot{margin-top:10px;font-size:12px;color:var(--muted)}

/* App shell */
.app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:260px 1fr;
}
@media (max-width: 980px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{display:none}
}
.sidebar{
  background:#fff;
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
.sidebar-top{padding:16px}
.brandline{display:flex;align-items:center;gap:10px}
.brand-logo{object-fit:contain;background:transparent;border:none;display:block}
.brand-text{display:flex;flex-direction:column;gap:2px}
.brand-name{font-weight:900;line-height:1.1}
.brand-sub{font-size:12px;color:var(--muted)}

.nav-section{padding:0 10px 10px}
.nav-h{padding:8px 10px;font-size:12px;color:var(--muted);font-weight:800}
.nav{display:flex;flex-direction:column;gap:4px}
.nav-item{
  display:flex;align-items:center;gap:10px;
  padding:10px 10px;
  border-radius:12px;
  color:var(--text);
}
.nav-item .nav-ic{width:22px;height:22px;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.nav-item:hover{background:#f8fafc}
.nav-item.active{
  background:rgba(21,180,178,.10);
  border:1px solid rgba(21,180,178,.22);
}
.nav-item.active .nav-ic{color:var(--hex4)}

.sidebar-bottom{margin-top:auto;padding:14px;border-top:1px solid var(--border)}
.userbox{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.avatar{
  width:38px;height:38px;border-radius:12px;
  background:rgba(255,137,1,.12);
  display:flex;align-items:center;justify-content:center;
  font-weight:900;color:var(--hex2);
}
.userbox-n{font-weight:800;font-size:13px}
.userbox-e{font-size:12px;color:var(--muted);max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Main */
.main{display:flex;flex-direction:column;min-height:100vh}
.topbar2{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  border-bottom:1px solid var(--border);
  background:rgba(252,252,252,.9);
  backdrop-filter:saturate(180%) blur(10px);
  position:sticky;top:0;z-index:10;
}
.topbar-left{display:flex;flex-direction:column}
.crumb{font-size:12px;color:var(--muted);font-weight:800}
.paget{font-size:16px;font-weight:900}
.topbar-mid{flex:1;display:flex;justify-content:center}
.search{
  width:min(520px,100%);
  display:flex;align-items:center;gap:10px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  padding:8px 10px;
}
.search-ic{opacity:.65}
.search-in{border:none;outline:none;width:100%;font-size:14px;background:transparent}
.search-in:disabled{color:#94a3b8}
.topbar-right{display:flex;align-items:center;gap:10px}
.iconbtn{
  width:36px;height:36px;border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);
}
.iconbtn:hover{border-color:rgba(0,90,90,.35)}
.main-content{padding:18px}
.footer2{padding:14px 18px;color:var(--muted);font-size:12px;margin-top:auto}

/* Page blocks */
.page{display:block}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.page-title{font-size:20px;font-weight:900}
.page-sub{font-size:12px;color:var(--muted);margin-top:4px}
.h1{font-size:20px;margin:0 0 8px;font-weight:900}

/* Dashboard bits */
.stat{
  display:flex;flex-direction:column;gap:4px
}
.stat .k{font-size:12px;color:var(--muted);font-weight:800}
.stat .v{font-size:22px;font-weight:900;color:var(--hex2)}
.chart-placeholder{
  height:220px;border-radius:var(--radius-card);
  border:1px dashed rgba(100,116,139,.45);
  background:linear-gradient(180deg, rgba(21,180,178,.06), rgba(255,137,1,.03));
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);font-weight:800;
}
.list{
  display:flex;flex-direction:column;gap:10px
}
.list-item{
  display:flex;align-items:flex-start;justify-content:space-between;gap:10px;
  padding:10px 10px;border-radius:14px;border:1px solid var(--border);background:#fff;
}
.list-item .t{font-weight:800}
.list-item .d{font-size:12px;color:var(--muted);margin-top:2px}
.logo-preview{display:flex;flex-direction:column;align-items:flex-start}

.auth-mark.has-logo{background:transparent;border:none;width:auto;height:auto}
