/* Shared site header — Naqdak نقدك */
.top-bar {
  background: var(--grad, linear-gradient(135deg, #0BCCC6, #16A9F7));
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 16px;
}

.nav-wrap {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--b, #dbeafe);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(7, 89, 133, 0.06);
}

.nav-wrap nav {
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--p, #075985);
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad, linear-gradient(135deg, #0BCCC6, #16A9F7));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(22, 169, 247, 0.28);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand small {
  display: block;
  font-size: 10px;
  color: var(--m, #64748b);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
}

.nav-links a {
  color: #475569;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--a, #16A9F7);
  background: rgba(22, 169, 247, 0.08);
}

.nav-links a.active {
  color: var(--p, #075985);
  background: rgba(22, 169, 247, 0.12);
}

.nav-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

nav > .nav-btn,
nav > .menu-btn {
  flex-shrink: 0;
}

.nav-btn {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--grad, linear-gradient(135deg, #0BCCC6, #16A9F7));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(22, 169, 247, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(22, 169, 247, 0.34);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--b, #dbeafe);
  background: #fff;
  border-radius: 10px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  color: var(--p, #075985);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-btn:hover {
  background: #f0f9ff;
  border-color: #93c5fd;
}

@media (max-width: 960px) {
  .nav-links:not(.open) {
    display: none !important;
  }

  .nav-btn {
    display: none !important;
  }

  .menu-btn {
    display: inline-flex !important;
  }

  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--b, #dbeafe);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 16px 48px rgba(7, 89, 133, 0.14);
    z-index: 110;
    gap: 4px;
  }

  .nav-links.open a {
    padding: 12px 16px;
    border-radius: 12px;
  }
}

@media (max-width: 620px) {
  .nav-wrap nav {
    height: 64px;
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 10px;
  }

  .brand small {
    display: none;
  }
}

html[dir="rtl"] .nav-links.open {
  left: 0;
  right: 0;
}
