:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#5b667a;
  --line:#e6eaf2;
  --accent:#2563eb;
  --accent2:#0ea5e9;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 15% 0%, rgba(37,99,235,.10), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(14,165,233,.10), transparent 50%),
              var(--bg);
  color: var(--text);
}

a{color:inherit; text-decoration:none}
.container{max-width:1100px; margin:0 auto; padding:28px 18px}

/* Landing */
.hero{
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.65));
  border:1px solid var(--line);
  border-radius:20px;
  padding:28px 22px;
  box-shadow: 0 10px 30px rgba(11,18,32,.06);
}
.hero h1{margin:0 0 8px; font-size:28px; letter-spacing:.2px}
.hero p{margin:0; color:var(--muted)}

.roleGrid{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 10px 25px rgba(11,18,32,.05);
}
.card h3{margin:0 0 6px; font-size:16px}
.card p{margin:0 0 14px; color:var(--muted); font-size:13px; line-height:1.45}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(37,99,235,.25);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.65));
  box-shadow: 0 10px 18px rgba(37,99,235,.10);
  color: rgba(7,20,39,.92);
  font-weight:600;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px)}
.small{font-size:12px; color:var(--muted)}

/* Header (internal pages only) */
.topbar{
  position:sticky; top:0;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  z-index:50;
}
.topbarInner{
  max-width:1100px; margin:0 auto;
  padding:8px 18px;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:14px;
}
.brand img{
  width:120px; /* reduced from 150px */
  height:auto;
  display:block;
}
.brandText{
  display:flex; flex-direction:column; line-height:1.1;
}
.brandText .title{font-weight:700; letter-spacing:.2px}
.brandText .sub{font-size:12px; color:var(--muted); margin-top:4px}

.userBox{
  display:flex; align-items:center; gap:10px;
  color:var(--muted);
  font-size:13px;
}
.badge{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(37,99,235,.06);
  color: rgba(7,20,39,.92);
  font-weight:700;
}

/* Dashboard tiles */
.pageTitle{margin:18px 0 10px}
.pageTitle h2{margin:0; font-size:20px}
.pageTitle p{margin:6px 0 0; color:var(--muted); font-size:13px}

.tiles{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
  margin-top:12px;
}
.tile{
  background: var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  box-shadow: 0 10px 25px rgba(11,18,32,.05);
  min-height:92px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.tile .t{font-weight:800}
.tile .d{color:var(--muted); font-size:12px; margin-top:6px}
.tile .go{margin-top:12px; font-weight:700; color: var(--accent)}
.hr{margin:18px 0; border-top:1px solid var(--line)}

/* Forms */
.formWrap{max-width:520px; margin:18px auto 0}
.field{display:flex; flex-direction:column; gap:8px; margin-bottom:12px}
.field label{font-size:13px; color:var(--muted)}
.field input{
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  outline:none;
  background:#fff;
}
.error{
  background: rgba(239,68,68,.08);
  border:1px solid rgba(239,68,68,.25);
  color:#7f1d1d;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  margin-bottom:12px;
}

/* Responsive */
@media (max-width: 980px){
  .tiles{grid-template-columns: repeat(2, minmax(0,1fr));}
  .roleGrid{grid-template-columns: 1fr;}
}
