/* LiftCore — هيدر موحّد: شعار وسط + إعدادات + بروفايل */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@600;700;800&display=swap');
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text2, #8a9bb8);
  padding: 4px;
  align-items: center;
  justify-content: center;
}

.hamburger svg {
  width: 20px;
  height: 20px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg3, #161e2b);
  border: 1px solid var(--border, rgba(100, 160, 255, 0.1));
  border-radius: 7px;
  overflow: hidden;
}

.lang-opt {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text3, #4a5a72);
  border: none;
  background: none;
  font-family: inherit;
}

.lang-opt.active {
  background: var(--accent, #2a7fff);
  color: #fff;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid var(--border, rgba(100, 160, 255, 0.1));
  color: var(--text2, #8a9bb8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.18s ease;
}

.icon-btn:hover {
  background: var(--bg3, #161e2b);
  border-color: rgba(100, 160, 255, 0.2);
  color: var(--text1, #e4eaf5);
}

.lc-fullscreen-btn .lc-fs-enter,
.lc-fullscreen-btn .lc-fs-exit {
  display: block;
}

html.lc-fullscreen .sidebar {
  display: none;
}

html.lc-fullscreen .main {
  width: 100%;
}

@media (max-width: 1100px) {
  .hamburger {
    display: flex;
  }
}
.lc-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px 0 12px;
  background: var(--bg2, #111720);
  border-bottom: 1px solid var(--border, rgba(100, 160, 255, 0.1));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.lc-header--solo {
  grid-template-columns: auto 1fr auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-page {
  min-width: 0;
}

.header-date {
  display: block;
  font-size: 11px;
  color: var(--text3, #4a5a72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-page-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text1, #e4eaf5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-center-brand {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 4px 8px;
}

.lc-header-logo {
  height: 52px;
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.lc-back-link {
  font-size: 13px;
  color: var(--text2, #8a9bb8);
  text-decoration: none;
  white-space: nowrap;
}

.lc-back-link:hover {
  color: var(--accent, #2a7fff);
}

.lc-settings-btn.is-active {
  border-color: rgba(42, 127, 255, 0.45);
  color: var(--accent, #2a7fff);
  background: rgba(42, 127, 255, 0.1);
}

.profile-menu-wrap {
  position: relative;
}

.lc-profile-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border2, rgba(100, 160, 255, 0.2));
  background: linear-gradient(135deg, var(--accent, #2a7fff), var(--gold, #c8a055));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.lc-profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bg2, #111720);
  border: 1px solid var(--border, rgba(100, 160, 255, 0.15));
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 300;
}

html[dir="ltr"] .profile-dropdown {
  left: auto;
  right: 0;
}

.profile-dropdown.open {
  display: block;
}

.profile-dropdown-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, rgba(100, 160, 255, 0.1));
}

.profile-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text1, #e4eaf5);
}

.profile-dropdown-role {
  font-size: 11px;
  color: var(--text3, #4a5a72);
  margin-top: 2px;
}

.profile-dropdown a {
  display: block;
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text2, #8a9bb8);
  text-decoration: none;
}

.profile-dropdown a:hover {
  background: var(--bg3, #161e2b);
  color: var(--text1, #e4eaf5);
}

.profile-dropdown a.logout {
  color: var(--danger, #e04848);
  border-top: 1px solid var(--border, rgba(100, 160, 255, 0.1));
}

.sidebar-footer {
  display: none !important;
}

@media (max-width: 768px) {
  .header-date {
    display: none;
  }

  .header-page-title {
    font-size: 14px;
  }

  .lc-header-logo {
    height: 42px;
    max-width: min(200px, 48vw);
  }
}
