:root{
  --gold:#f5c542;
  --royal:#081b4b;
  --royal-dark:#041027;
  --light:#f5f7ff;
}
body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--light);
}
.topbar{
  background: var(--royal-dark);
}
.main-nav{
  background: var(--royal);
}
.logo-mark{
  background: var(--gold);
  color: var(--royal-dark);
  display:inline-flex;
  width:28px;
  height:28px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  font-weight:700;
}
.nav-link{
  position:relative;
}
.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  background:var(--gold);
  transition:.2s;
}
.nav-link:hover::after,
.nav-link.active::after{
  width:100%;
}
.btn-login{
  background:var(--gold);
  border:none;
  color:var(--royal-dark);
  font-weight:600;
  border-radius:999px;
  padding:.4rem 1.25rem;
}
.btn-login:hover{
  filter:brightness(1.1);
}
.hero{
  background: radial-gradient(circle at top left,#14357a,#02081b);
  color:white;
  padding:4rem 0 3rem;
}
.hero h1 span{
  color:var(--gold);
}
.hero-card{
  background:rgba(255,255,255,0.05);
  border-radius:1rem;
  border:1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
}
.counter-pill{
  background:rgba(0,0,0,0.35);
  border-radius:999px;
  padding:.3rem .8rem;
  font-size:.8rem;
}
.section-title{
  font-weight:700;
  color:var(--royal-dark);
}
.product-card{
  border:none;
  border-radius:1rem;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
  overflow:hidden;
  background:white;
}
.product-card img{
  height:180px;
  object-fit:cover;
}
.product-card .badge-status{
  position:absolute;
  top:10px;
  left:10px;
}
.footer{
  background:var(--royal-dark);
}

/* login slide panel */
.login-panel{
  position:fixed;
  inset:0 0 0 auto;
  width:0;
  max-width:320px;
  background:var(--royal);
  color:#fff;
  z-index:1050;
  overflow:hidden;
  transition:width .25s ease-out;
}
.login-panel.open{
  width:80%;
  max-width:320px;
}
.login-panel-inner{
  padding:1.5rem;
}
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:1040;
  opacity:0;
  visibility:hidden;
  transition:opacity .2s;
}
.overlay.show{
  opacity:1;
  visibility:visible;
}
.panel-logo{
  height:40px;
}
.panel-links li a{
  display:block;
  padding:.6rem 0;
  color:#fff;
  border-bottom:1px dotted rgba(255,255,255,.4);
  text-decoration:none;
}
.panel-links li a:hover{
  color:var(--gold);
}

/* auth layout */
.auth-wrapper{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#081b4b,#112a72,#0a1741);
}
.auth-card{
  max-width:420px;
  width:100%;
  background:#fff;
  border-radius:1.25rem;
  box-shadow:0 18px 45px rgba(0,0,0,.25);
  overflow:hidden;
}
.auth-header{
  background:linear-gradient(135deg,#f5c542,#f5e2a0);
  padding:1.5rem;
}
.auth-header h5{
  margin:0;
  color:#432c04;
}
.auth-body{
  padding:1.5rem;
}
.auth-role-pill{
  font-size:1.2rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#2c317e;
}

/* dashboard */
.sidebar{
  min-height:100vh;
  background:var(--royal);
  color:#fff;
}
.sidebar a{
  color:#fff;
  text-decoration:none;
  display:block;
  padding:.55rem 1rem;
}
.sidebar a.active,
.sidebar a:hover{
  background:rgba(0,0,0,.35);
}
.dashboard-content{
  background:#f4f6ff;
  min-height:100vh;
}
.stat-card{
  border-radius:1rem;
  border:none;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
}
.table thead{
  background:#eef2ff;
}

/* responsive tweaks */
@media (max-width: 767.98px){
  .hero{
    text-align:center;
  }
}
