.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.topBar {
  background: rgba(0, 209, 255, 0.08);
  border-bottom: 1px solid rgba(0, 209, 255, 0.15);
  padding: 6px 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.topBarContent {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topBarRight { display: flex; gap: 16px; }

.topLink {
  color: var(--electric-blue);
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.topLink:hover { color: var(--neon-orange); }

.main {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 209, 255, 0.12);
}

.scrolled .main {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 4px 30px rgba(0, 209, 255, 0.1);
}

.inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logoImg {
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(0, 209, 255, 0.5));
}

.logoText {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logoName {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--electric-blue);
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(0, 209, 255, 0.5);
}

.logoSub {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--neon-orange);
  letter-spacing: 2px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }

.navLink {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.navLink:hover {
  color: var(--electric-blue);
  background: rgba(0, 209, 255, 0.08);
}

.adminLink {
  color: var(--neon-orange) !important;
}

/* Actions */
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.actionBtn {
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.actionBtn:hover {
  color: var(--electric-blue);
  background: rgba(0, 209, 255, 0.08);
}

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--neon-orange);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cartBtn .badge {
  background: var(--electric-blue);
  color: #000;
}

.langBtn {
  padding: 6px 12px;
  border: 1px solid rgba(0, 209, 255, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--electric-blue);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.langBtn:hover {
  background: rgba(0, 209, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 209, 255, 0.2);
}

/* User Menu */
.userMenu {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(13, 13, 20, 0.95);
  border: 1px solid rgba(0, 209, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  backdrop-filter: blur(20px);
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.2s ease;
}

[dir="rtl"] .dropdown { right: auto; left: 0; }

.dropdownItem {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  text-decoration: none;
}

[dir="rtl"] .dropdownItem { text-align: right; }

.dropdownItem:hover {
  background: rgba(0, 209, 255, 0.08);
  color: var(--electric-blue);
}

/* Search */
.searchBar {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(0, 209, 255, 0.1);
  animation: fadeInUp 0.2s ease;
}

.searchInput {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 209, 255, 0.25);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.searchInput:focus {
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.1);
}

.searchInput::placeholder { color: var(--text-muted); }

.closeSearch {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 8px;
  border-radius: 6px;
  transition: var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
}

.closeSearch:hover { color: var(--error); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.hamburger:hover span { background: var(--electric-blue); }

/* Mobile */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    border-right: 1px solid rgba(0, 209, 255, 0.15);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 24px 40px;
    gap: 4px;
    transition: left 0.3s ease;
    backdrop-filter: blur(20px);
    z-index: 999;
    margin: 0;
  }

  [dir="rtl"] .nav {
    left: auto;
    right: -100%;
    border-right: none;
    border-left: 1px solid rgba(0, 209, 255, 0.15);
    transition: right 0.3s ease;
  }

  .navOpen {
    left: 0 !important;
  }

  [dir="rtl"] .navOpen {
    right: 0 !important;
    left: auto !important;
  }

  .navLink {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
    border-radius: 10px;
  }

  .langBtn { font-size: 0.7rem; padding: 5px 8px; }
  .topBar { display: none; }
}

@media (max-width: 480px) {
  .inner { padding: 0 16px; gap: 8px; }
  .logoName { font-size: 0.75rem; }
  .logoSub { font-size: 0.55rem; }
  .logoImg { width: 36px; height: 36px; }
}
