@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@500;600;700&display=swap');

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 68px;
  border-bottom: 1px solid #e5def7;
  background: rgba(255,255,255,.94);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(145%);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.site-header .header-inner {
  position: relative;
  width: min(1200px, calc(100% - 64px));
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: #17172f;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1;
}

.site-header .brand-logo {
  width: auto;
  height: 54px;
  max-width: 132px;
  display: block;
  object-fit: contain;
}

.site-header .brand-icon {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  flex: 0 0 41px;
  border-radius: 13px;
  background: #6943ff;
  color: #fff;
  box-shadow: 0 8px 18px rgba(105,67,255,.14);
}

.site-header .brand-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header .brand-accent { color: #6943ff; }

.site-header .nav-links {
  display: flex;
  position: absolute;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: auto;
  align-items: center;
  flex-direction: row;
  gap: 34px;
  margin: 0;
  padding: 0;
  transform: translate(-50%,-50%);
  border: 0;
  box-shadow: none;
  background: transparent;
  color: #716b81;
  font-size: 12px;
  font-weight: 600;
}

.site-header .nav-links a {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  transition: color .2s ease;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active { color: #6943ff; background: transparent; }
.site-header .mobile-account-link { display: none; }

.site-header .nav-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.site-header .btn,
.site-header .user-chip,
.site-header .mobile-toggle {
  min-height: 39px;
  padding: 9px 15px;
  border: 1.5px solid #6943ff;
  border-radius: 10px;
  background: #fff;
  color: #6943ff;
  box-shadow: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.site-header .btn-primary {
  border-color: #6943ff;
  background: #6943ff;
  color: #fff;
  box-shadow: 0 8px 18px rgba(105,67,255,.17);
}

.site-header .btn:hover,
.site-header .user-chip:hover,
.site-header .mobile-toggle:hover {
  transform: translateY(-1px);
  border-color: #5634dd;
  box-shadow: 0 9px 20px rgba(105,67,255,.16);
}

.site-header .btn svg { width: 17px; height: 17px; }
.site-header .mobile-toggle { display: none; width: 41px; padding: 0; }

.site-header .profile-menu { position: relative; }

.site-header .profile-trigger {
  width: 41px;
  height: 41px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid #6943ff;
  border-radius: 50%;
  background: #fff;
  color: #6943ff;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.site-header .profile-trigger:hover,
.site-header .profile-trigger[aria-expanded="true"] {
  background: #6943ff;
  color: #fff;
  box-shadow: 0 8px 18px rgba(105,67,255,.17);
  transform: translateY(-1px);
}

.site-header .profile-trigger .ui-icon { width: 20px; height: 20px; }

.site-header .profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 248px;
  display: none;
  padding: 10px;
  border: 1px solid #e5def7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23,23,47,.16);
}

.site-header .profile-menu.is-open .profile-dropdown { display: grid; }

.site-header .profile-summary {
  display: grid;
  gap: 4px;
  padding: 9px 10px 13px;
  margin-bottom: 5px;
  border-bottom: 1px solid #eeeaf3;
  color: #17172f;
}

.site-header .profile-summary strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header .profile-summary span {
  overflow: hidden;
  color: #716b81;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header .profile-action {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #6943ff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.site-header .profile-action:hover { background: #6943ff; color: #fff; }
.site-header .profile-action .ui-icon { width: 18px; height: 18px; }
.site-header .profile-action.profile-admin {
  border: 1px solid #6943ff;
  background: linear-gradient(135deg,#7654ff,#5f38e8);
  color: #fff;
}
.site-header .profile-action.profile-admin:hover { border-color:#5630dc; background:linear-gradient(135deg,#6845ef,#512bd2); color:#fff; }
.site-header .profile-action.profile-logout { color:#c83949; }
.site-header .profile-action.profile-logout:hover { background:#fff; color:#a92536; }

@media (max-width: 820px) {
  .site-header { height: 68px; }
  .site-header .header-inner { width: min(100% - 48px, 1200px); gap: 10px; }
  .site-header .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    margin: 0;
    padding: 18px 24px 22px;
    transform: translateX(-50%);
    border-bottom: 1px solid #e5def7;
    background: #fff;
    box-shadow: 0 15px 25px rgba(105,67,255,.08);
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  .site-header .nav-links.open,
  .site-header .nav-links.is-open { display: flex; }
  .site-header .nav-links a { padding: 10px 0; }
  .site-header .nav-links .mobile-account-link { display: block; }
  .site-header .nav-actions .desktop-cta,
  .site-header .user-chip { display: none; }
  .site-header .profile-trigger,
  .site-header .mobile-toggle {
    box-sizing: border-box;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    flex: 0 0 36px;
  }
  .site-header .profile-trigger .ui-icon,
  .site-header .mobile-toggle .ui-icon { width: 17px; height: 17px; }
  .site-header .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #6943ff;
    background: #6943ff;
    color: #fff;
  }
  .site-header .mobile-toggle:hover {
    border-color: #5634dd;
    background: #5634dd;
    color: #fff;
  }
}

@media (min-width: 821px) and (max-width: 900px) {
  body[data-page="dashboard"] .site-header .mobile-toggle,
  body[data-page="rent"] .site-header .mobile-toggle,
  body[data-page="admin"] .site-header .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  body[data-page="dashboard"] .site-header .nav-actions { gap: 6px; }
  body[data-page="dashboard"] .site-header .profile-trigger,
  body[data-page="dashboard"] .site-header .mobile-toggle {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }
  body[data-page="dashboard"] .site-header .profile-trigger .ui-icon,
  body[data-page="dashboard"] .site-header .mobile-toggle .ui-icon {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 580px) {
  .site-header { height: 68px; }
  .site-header .header-inner { width: calc(100% - 32px); }
  .site-header .brand { font-size: 20px; }
  .site-header .brand-icon { width: 37px; height: 37px; flex-basis: 37px; }
  .site-header .brand-icon svg { width: 22px; height: 22px; }
}
