.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  transition: all 250ms ease;
}
body.dark-mode .site-header {
  background: rgba(17, 32, 34, 0.95);
  border-bottom-color: #234348;
}
.site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
body.dark-mode .site-header.header-scrolled {
  background: rgba(21, 38, 41, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
[dir=rtl] .header-inner, .rtl .header-inner {
  flex-direction: row-reverse;
}

.site-branding {
  flex-shrink: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
[dir=rtl] .site-logo, .rtl .site-logo {
  flex-direction: row-reverse;
}

.logo-icon {
  font-size: 1.75rem;
  color: #20d3ee;
  line-height: 1;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: -0.025em;
}
body.dark-mode .logo-text {
  color: #ffffff;
}

.primary-navigation {
  display: none;
  flex: 1;
  justify-content: center;
}
@media (min-width: 992px) {
  .primary-navigation {
    display: flex;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
[dir=rtl] .nav-menu, .rtl .nav-menu {
  flex-direction: row-reverse;
}

.menu-item > a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: color 250ms ease;
}
.menu-item > a:hover {
  color: #20d3ee;
}
body.dark-mode .menu-item > a {
  color: #9ca3af;
}
body.dark-mode .menu-item > a:hover {
  color: #20d3ee;
}

.menu-item.current-menu-item > a {
  color: #20d3ee;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
[dir=rtl] .header-actions, .rtl .header-actions {
  flex-direction: row-reverse;
}

.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: #4b5563;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 250ms ease;
}
.header-action-btn:hover {
  color: #20d3ee;
  background: #f1f5f9;
}
body.dark-mode .header-action-btn {
  color: #9ca3af;
}
body.dark-mode .header-action-btn:hover {
  background: #234348;
}

.header-actions .btn-login,
.header-actions .btn-primary-glow {
  display: none;
}
@media (min-width: 992px) {
  .header-actions .btn-login,
.header-actions .btn-primary-glow {
    display: inline-flex;
  }
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 1rem;
  gap: 0.5rem;
  background: #f1f5f9;
  border: none;
  border-radius: 0.5rem;
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 250ms ease;
}
.btn-login:hover {
  background: #e5e7eb;
}
body.dark-mode .btn-login {
  background: #234348;
  color: #ffffff;
}
body.dark-mode .btn-login:hover {
  background: #2c555b;
}

.site-header .header-actions .btn-logout {
  background: #ef4444;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.site-header .header-actions .btn-logout:hover {
  background: #eb1515;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 1rem;
  gap: 0.5rem;
  background: #20d3ee;
  border: none;
  border-radius: 0.5rem;
  color: #112022;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(32, 211, 238, 0.3);
  transition: all 250ms ease;
}
.btn-primary-glow:hover {
  background: #67e8f9;
  color: #112022;
  box-shadow: 0 0 20px rgba(32, 211, 238, 0.5);
}
body.dark-mode .btn-primary-glow {
  color: #000000;
  font-weight: 800;
}

.lang-icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 250ms ease;
  text-transform: uppercase;
  border: 1px solid #e5e7eb;
}
.lang-icon-toggle:hover {
  background: #20d3ee;
  color: #112022;
  border-color: #20d3ee;
  transform: translateY(-2px);
}
body.dark-mode .lang-icon-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: inline-block;
}

body.dark-mode .theme-toggle .icon-sun {
  display: inline-block;
}

body.dark-mode .theme-toggle .icon-moon {
  display: none;
}

.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  color: #1a1a1a;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (min-width: 992px) {
  .mobile-nav-toggle {
    display: none;
  }
}
body.dark-mode .mobile-nav-toggle {
  color: #ffffff;
}

.news-ticker-bar {
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 0;
  overflow: hidden;
}
body.dark-mode .news-ticker-bar {
  background: #152629;
  border-bottom-color: #234348;
}

.news-ticker-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
[dir=rtl] .news-ticker-inner, .rtl .news-ticker-inner {
  flex-direction: row-reverse;
}

.ticker-badge {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  background: rgba(32, 211, 238, 0.2);
  color: #20d3ee;
  border-radius: 0.25rem;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 1.25rem;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  position: absolute;
}
[dir=rtl] .ticker-track, .rtl .ticker-track {
  flex-direction: row-reverse;
  animation-direction: reverse;
}

.ticker-item {
  font-size: 0.75rem;
  color: #4b5563;
}
body.dark-mode .ticker-item {
  color: #9ca3af;
}

.ticker-separator {
  color: #9ca3af;
}
body.dark-mode .ticker-separator {
  color: #6b7280;
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.offcanvas {
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
}
[dir=rtl] .offcanvas, .rtl .offcanvas {
  border-left: none;
  border-right: 1px solid #e5e7eb;
}
body.dark-mode .offcanvas {
  background: #112022;
  border-left-color: #234348;
}

.offcanvas-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}
body.dark-mode .offcanvas-header {
  border-bottom-color: #234348;
}

.offcanvas-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 900;
  color: #1a1a1a;
}
.offcanvas-logo .bi {
  font-size: 1.5rem;
}
[dir=rtl] .offcanvas-logo, .rtl .offcanvas-logo {
  flex-direction: row-reverse;
}
body.dark-mode .offcanvas-logo {
  color: #ffffff;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav-menu .menu-item > a {
  display: block;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  border-bottom: 1px solid #e5e7eb;
  transition: color 250ms ease;
}
.mobile-nav-menu .menu-item > a:hover {
  color: #20d3ee;
}
body.dark-mode .mobile-nav-menu .menu-item > a {
  color: #9ca3af;
  border-bottom-color: #234348;
}

.mobile-actions {
  border-color: #e5e7eb;
}
body.dark-mode .mobile-actions {
  border-color: #234348;
}

.admin-bar .header-wrapper {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .header-wrapper {
    top: 46px;
  }
}

.admin-bar .presszone-dashboard-sidebar {
  top: 32px;
  height: calc(100vh - 32px);
}
@media screen and (max-width: 782px) {
  .admin-bar .presszone-dashboard-sidebar {
    top: 46px;
    height: calc(100vh - 46px);
  }
}
