:root{
  --uc-primary:#0f7c3b;
  --uc-primary-dark:#0b5d2b;
  --uc-accent:#d8b467;
  --uc-bg:#f3f7f5;
  --uc-card:#ffffff;
  --uc-text:#13221a;
  --uc-muted:#6b7280;
  --uc-border:#e7ece9;
  --uc-shadow:0 18px 40px rgba(15, 23, 42, .08);
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--uc-text);background:linear-gradient(180deg,#f8fbf9 0%,var(--uc-bg) 100%)}
.login-body{
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(15,124,59,.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(216,180,103,.16), transparent 28%);
}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card-premium{
  width:min(520px,100%);
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.8);
  backdrop-filter:blur(14px);
  border-radius:28px;
  box-shadow:var(--uc-shadow);
  padding:32px;
}
.brand-lockup{display:flex;gap:16px;align-items:flex-start}
.brand-badge,.small-badge{
  width:58px;height:58px;border-radius:18px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--uc-primary),#10311d);
  color:#fff;font-weight:800;box-shadow:0 14px 28px rgba(15,124,59,.22)
}
.small-badge{width:40px;height:40px;border-radius:14px;font-size:.92rem}
.eyebrow{font-size:.75rem;text-transform:uppercase;letter-spacing:.14em;font-weight:700;color:var(--uc-accent)}
.premium-input{border-radius:14px;border:1px solid #d7e2db;padding:.82rem .95rem;box-shadow:none!important}
.premium-input:focus{border-color:#8bbc98;box-shadow:0 0 0 .2rem rgba(15,124,59,.10)!important}
.btn-premium{
  background:linear-gradient(135deg,var(--uc-primary),var(--uc-primary-dark));
  color:#fff;border:none;border-radius:14px;padding:.82rem 1.1rem;font-weight:700;
  box-shadow:0 12px 24px rgba(15,124,59,.18)
}
.btn-premium:hover{color:#fff;filter:brightness(.98)}
.info-card,.content-card,.stat-card,.profile-card,.mini-profile-card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.82);
  border-radius:22px;
  box-shadow:var(--uc-shadow)
}
.info-card{padding:16px}
.app-shell{display:flex;min-height:100vh}
.sidebar{
  width:290px;
  background:linear-gradient(180deg,#0f2418 0%,#123520 100%);
  color:#fff;
  padding:22px 18px;
  position:sticky;top:0;height:100vh
}
.sidebar-brand{display:flex;gap:12px;align-items:center}
.sidebar-nav .nav-link{
  color:rgba(255,255,255,.78);
  padding:12px 14px;border-radius:14px;margin-bottom:8px;font-weight:600
}
.sidebar-nav .nav-link.active,.sidebar-nav .nav-link:hover{background:rgba(255,255,255,.1);color:#fff}
.sidebar-footer{position:absolute;bottom:20px;left:18px;right:18px;font-size:.8rem;color:rgba(255,255,255,.55)}
.main-content{flex:1;padding:24px}
.topbar{
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.7);
  border-radius:22px;
  box-shadow:var(--uc-shadow);
  padding:16px 18px;
  margin-bottom:22px;
  display:flex;justify-content:space-between;align-items:center
}
.avatar-main{
  width:72px;height:72px;border-radius:20px;object-fit:cover;border:3px solid #fff;
  box-shadow:0 8px 20px rgba(17,24,39,.12)
}
.hero-panel{
  border-radius:24px;padding:28px;
  background:
    linear-gradient(135deg, rgba(216,180,103,.18), rgba(255,255,255,.02)),
    linear-gradient(135deg,#123520 0%,#0f7c3b 100%);
  box-shadow:var(--uc-shadow);
  display:flex;justify-content:space-between;align-items:center;gap:20px
}
.hero-badge{
  background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.16);
  padding:10px 14px;border-radius:999px;font-weight:700
}
.stat-card{padding:22px}
.stat-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--uc-muted);font-weight:700}
.stat-value{font-size:1.9rem;font-weight:800;margin-top:6px}
.content-card{padding:22px}
.chart-wrap{position:relative;height:320px}
.profile-card{padding:20px;text-align:center}
.profile-card-photo{width:120px;height:120px;border-radius:28px;object-fit:cover;border:4px solid #fff;box-shadow:0 12px 30px rgba(17,24,39,.12)}
.mini-profile-card{padding:18px}
.avatar-card,.avatar-sm{
  width:56px;height:56px;border-radius:18px;object-fit:cover;border:3px solid #fff;box-shadow:0 8px 20px rgba(17,24,39,.10)
}
.avatar-sm{width:42px;height:42px;border-radius:14px}
.premium-table thead th{
  font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:#5b665f;background:#f8fbf9;
  border-bottom:1px solid var(--uc-border)
}
.premium-table td,.premium-table th{padding:1rem .95rem;vertical-align:middle;border-color:#eef2ef}
.search-row{display:flex;gap:12px;flex-wrap:wrap}
.footer-note{font-size:.82rem;color:var(--uc-muted)}
@media (max-width: 991px){
  .sidebar{width:92px;padding:18px 10px}
  .sidebar-brand div:last-child,.sidebar-nav .nav-link{font-size:0}
  .sidebar-nav .nav-link i{font-size:1rem}
  .sidebar-footer{display:none}
  .main-content{padding:16px}
}
@media (max-width: 767px){
  .app-shell{display:block}
  .sidebar{position:relative;width:100%;height:auto}
  .topbar,.hero-panel{flex-direction:column;align-items:flex-start}
}

body.theme-dark{
  --uc-bg:#0b1220;
  --uc-card:#101928;
  --uc-text:#ecf3ee;
  --uc-muted:#a9b4be;
  --uc-border:#1e2b3f;
  --uc-shadow:0 18px 40px rgba(0,0,0,.32);
  background:linear-gradient(180deg,#0d1524 0%, #0b1220 100%);
}
body.theme-dark .login-card-premium,
body.theme-dark .info-card,
body.theme-dark .content-card,
body.theme-dark .stat-card,
body.theme-dark .profile-card,
body.theme-dark .mini-profile-card,
body.theme-dark .topbar{
  background:rgba(16,25,40,.94);
  border-color:#223149;
}
body.theme-dark .premium-table thead th{
  background:#111b2c;
  color:#c4cfda;
  border-bottom-color:#223149;
}
body.theme-dark .premium-table td,
body.theme-dark .premium-table th{
  border-color:#1c2940;
}
body.theme-dark .premium-input{
  background:#0f1726;
  color:#ecf3ee;
  border-color:#28364d;
}
body.theme-dark .premium-input::placeholder{color:#97a5b4}
body.theme-dark .text-muted,
body.theme-dark .footer-note,
body.theme-dark .stat-label{color:#a9b4be!important}
body.theme-dark .hero-badge{background:rgba(255,255,255,.08)}
.theme-toggle{
  border:none;
  background:rgba(255,255,255,.12);
  color:#fff;
  border-radius:14px;
  padding:10px 14px;
  font-weight:600;
}
.theme-toggle:hover{background:rgba(255,255,255,.18);color:#fff}
.logo-panel{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo-wordmark{
  max-width:220px;
  height:auto;
  display:block;
}

.logo-image{
  max-width: 230px;
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.login-logo{
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.7);
  padding: 8px;
  box-shadow: 0 10px 24px rgba(17,24,39,.10);
}
.profile-grid{
  display:grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 24px;
}
.profile-side-card{
  background: rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.82);
  border-radius:22px;
  box-shadow: var(--uc-shadow);
  padding: 24px;
  text-align:center;
}
.profile-side-photo{
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 28px;
  border: 4px solid #fff;
  box-shadow: 0 14px 30px rgba(17,24,39,.12);
  margin-bottom: 14px;
}
.inline-form{
  display:flex;
  gap:10px;
  align-items:center;
}
.inline-form .premium-input{
  min-width: 120px;
}
.status-check{
  display:flex;
  align-items:center;
  gap:10px;
}
@media (max-width: 900px){
  .profile-grid{grid-template-columns:1fr}
  .login-logo{width:78px;height:78px}
}
