/* ── SHARED NAV STYLES ── */
nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 100;
  padding: 0 clamp(16px,4vw,40px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; height: 60px; gap: 28px;
}
.logo { font-size: 1.25rem; font-weight: 700; color: #1a56db; white-space: nowrap; flex-shrink: 0; text-decoration: none; }
.logo span { color: #111827; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 6px 12px; border-radius: 8px; color: #374151; font-size: .875rem; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.nav-links a:hover, .nav-links a.active { background: #f9fafb; color: #1a56db; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-outline { padding: 7px 16px; border: 1.5px solid #1a56db; border-radius: 8px; color: #1a56db; font-weight: 600; font-size: .875rem; text-decoration: none; transition: background .15s; }
.btn-outline:hover { background: #ebf0ff; }
.btn-primary { padding: 8px 18px; background: #1a56db; border-radius: 8px; color: #fff; font-weight: 600; font-size: .875rem; text-decoration: none; transition: background .15s; }
.btn-primary:hover { background: #1344b5; }

/* User menu dropdown */
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1.5px solid #e5e7eb;
  border-radius: 50px; padding: 5px 12px 5px 5px;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: border-color .15s, background .15s;
}
.user-btn:hover { border-color: #1a56db; background: #ebf0ff; }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #1a56db; color: #fff;
  font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-name { font-size: .85rem; font-weight: 600; color: #111827; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 200; overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
}
.user-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-header { padding: 14px 16px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; }
.dh-name  { font-size: .875rem; font-weight: 700; color: #111827; }
.dh-email { font-size: .78rem; color: #6b7280; margin-top: 2px; }
.dh-warn  { font-size: .75rem; color: #92400e; margin-top: 4px; background: #fffbeb; padding: 3px 8px; border-radius: 4px; display: inline-block; }
.dd-item  { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: .875rem; color: #374151; text-decoration: none; transition: background .15s; }
.dd-item:hover { background: #f9fafb; color: #1a56db; }
.dd-logout:hover { background: #fef2f2; color: #dc2626; }
.dd-divider { height: 1px; background: #e5e7eb; margin: 4px 0; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 20px; height: 2px; background: #374151; margin: 4px 0; border-radius: 2px; transition: .3s; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid #e5e7eb;
  padding: 12px 16px; z-index: 99;
  flex-direction: column; gap: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.mobile-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: #374151; font-size: .9rem; text-decoration: none; }
.mobile-menu a:hover { background: #f9fafb; color: #1a56db; }
.mobile-menu.open { display: flex; }
.mobile-divider { height: 1px; background: #e5e7eb; margin: 6px 0; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-outline { display: none; }
  .user-menu .user-name { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 640px) {
  .btn-primary { display: none; }
}

/* Nav JS */
