/* Tracker DZ - Unified Master Header & Footer */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
}

/* ── 1. Top Bar (Exchange Rates & Quick Search) ── */
.dz-top-bar {
  background: #090e1a;
  color: #94a3b8;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 999;
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  width: 100%;
}
.dz-top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.dz-top-rates {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.dz-top-rates strong {
  color: #f8fafc;
  font-weight: 800;
}
.dz-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-weight: 700;
}
.dz-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  display: inline-block;
}
.dz-search-quick-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: inherit;
  transition: all 0.2s;
}
.dz-search-quick-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}
.dz-search-quick-btn kbd {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}

/* ── 2. Unified Navbar ── */
.dz-navbar {
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 990;
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
}
.dz-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dz-logo img {
  height: 38px;
  filter: brightness(0) invert(1);
  display: block;
}
.dz-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.dz-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dz-nav-link:hover {
  color: white;
}
.dz-nav-highlight {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #93c5fd !important;
  padding: 5px 12px;
  border-radius: 10px;
}
.dz-nav-highlight:hover {
  background: rgba(37, 99, 235, 0.25);
  color: white !important;
}

/* Dropdown */
.dz-nav-dropdown {
  position: relative;
}
.dz-dropdown-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.2s;
}
.dz-dropdown-btn:hover {
  color: white;
}
.dz-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px;
  min-width: 230px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}
.dz-nav-dropdown:hover .dz-dropdown-menu {
  display: flex;
}
.dz-dropdown-menu a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
}
.dz-dropdown-menu a:hover {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

/* Nav Actions */
.dz-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dz-btn-login {
  background: #2563eb;
  color: white !important;
  padding: 8px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.dz-btn-login:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.dz-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer Menu */
.dz-mobile-menu {
  display: none;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  flex-direction: column;
  gap: 8px;
}
.dz-mobile-menu.open {
  display: flex;
}
.dz-mobile-menu a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.15s;
}
.dz-mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}
.dz-mob-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

/* ── 3. Unified Rich Footer ── */
.dz-footer {
  background: #090e1a;
  color: white;
  padding: 70px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  width: 100%;
}
.dz-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.dz-f-brand img {
  height: 38px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
  display: block;
}
.dz-f-brand p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.75;
  max-width: 340px;
}
.dz-f-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-size: 12px;
  font-weight: 800;
  margin-top: 14px;
}
.dz-f-col h4 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 18px;
  color: #f8fafc;
}
.dz-f-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dz-f-col ul li {
  margin-bottom: 10px;
}
.dz-f-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.dz-f-col ul li a:hover {
  color: white;
}
.dz-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 900px) {
  .dz-nav-links {
    display: none;
  }
  .dz-mobile-toggle {
    display: flex;
  }
  .dz-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}
@media (max-width: 600px) {
  .dz-top-rates {
    font-size: 11px;
    gap: 10px;
  }
  .dz-search-quick-btn kbd {
    display: none;
  }
  .dz-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* Language Switcher Badge */
.dz-lang-switch {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc !important;
  padding: 6px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.dz-lang-switch:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
  color: #93c5fd !important;
  transform: translateY(-1px);
}
.dz-mob-lang-switch {
  background: #1e293b !important;
  color: #60a5fa !important;
  text-align: center;
  border-radius: 12px;
  padding: 10px 16px !important;
  font-weight: 800;
  margin-top: 6px;
  margin-bottom: 6px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
