﻿/* ============================================
   HEADER & FOOTER — Clean Light Glass
   Ayman Sports Agency
   ============================================ */

.header-topbar { display: none; }

/* ============================================
   MAIN NAV — Clean Light Glass
   ============================================ */
.header-main-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 999;
  background: #030619;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}
.header-main-nav.scrolled {
  background: rgba(3, 6, 25, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.main-nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 2rem;
  max-width: 1320px;
  margin: 0 auto;
}
.header-main-nav.scrolled .main-nav-inner { height: 56px; }

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}
.site-logo-img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 9px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-logo-img { height: 62px; }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}
.logo-sport {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--brand-600);
  text-transform: uppercase;
}

/* Nav Links */
.header-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  margin: 0 1.5rem;
}
.nav-link {
  padding: 7px 13px;
  color: #D1D5DB;
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  position: relative;
}
.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}
.nav-link.active {
  color: var(--brand-600);
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--brand-600);
  border-radius: 50%;
}

/* Nav Dropdowns */
.nav-item-dropdown {
  position: relative;
  display: inline-block;
}
.nav-item-dropdown button.nav-link {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: inherit;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(10, 15, 40, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  min-width: 180px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
}
.nav-item-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}
.dropdown-link:hover, .dropdown-link.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.dropdown-link i {
  color: var(--brand-500);
  width: 16px;
  text-align: center;
}

/* Nav Actions */
.header-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* === Global language switcher with flags (all pages, desktop + mobile) === */
.lang-switcher{position:relative}
.lang-switcher-btn{display:flex;align-items:center;gap:.45rem;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#E5E7EB;border-radius:999px;padding:.42rem .75rem;font-weight:700;cursor:pointer;font-size:.85rem;line-height:1;transition:border-color .15s,background .15s}
.lang-switcher-btn:hover{border-color:#0e8f5c;background:rgba(255,255,255,.14);color:#fff}
.lang-switcher-code{letter-spacing:.04em}
.lang-switcher-caret{font-size:.65rem;opacity:.6}
.lang-flag{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;overflow:hidden;background:rgba(255,255,255,.12);flex-shrink:0}
.lang-flag img{width:22px;height:22px;object-fit:cover;border-radius:50%;display:block}
.lang-flag-emoji{font-size:1rem;line-height:1}
.lang-flag-current{width:22px;height:22px}
.lang-switcher-menu{display:none;position:absolute;top:calc(100% + 8px);right:0;min-width:200px;background:#fff;border:1px solid #eee;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.14);overflow:hidden;z-index:1200}
.lang-switcher-menu.open{display:block}
.lang-switcher-item{display:flex;align-items:center;gap:.6rem;width:100%;text-align:left;background:none;border:none;padding:.65rem .9rem;cursor:pointer;font-size:.9rem;color:#111827}
.lang-switcher-item:hover{background:#f3f7f5}
.lang-switcher-item.is-active{background:#e9f7f0;font-weight:700}
.lang-switcher-item .lang-flag{background:#eef2f7}
.lang-switcher-short{font-weight:800;font-size:.72rem;background:#0e8f5c;color:#fff;border-radius:6px;padding:.15rem .42rem;letter-spacing:.03em}
.lang-switcher-label{flex:1}
.lang-switcher-check{color:#0e8f5c;font-size:.75rem}
[dir="rtl"] .lang-switcher-menu{right:auto;left:0}
.mobile-lang-row{padding:.9rem 1rem;border-bottom:1px solid #f0f0f0}
.mobile-lang-title{font-weight:700;font-size:.9rem;display:block;margin-bottom:.55rem;color:#111827}
.mobile-lang-btns{display:flex;gap:.5rem}
.mobile-lang-btn{flex:1;border:1px solid #ddd;background:#f8f9fa;border-radius:10px;padding:.5rem 0;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.35rem;font-size:.8rem;color:#374151}
.mobile-lang-btn:hover{border-color:#0e8f5c}
.mobile-lang-btn.is-active{background:#0e8f5c;color:#fff;border-color:#0e8f5c}
.mobile-lang-flag{font-size:1.05rem;line-height:1}
@media(max-width:768px){.lang-switcher-btn{padding:.4rem .65rem;font-size:.8rem}.lang-switcher-menu{min-width:180px}}
.topbar-lang {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D1D5DB;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
  min-height: 34px;
}
.topbar-lang:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}
.header-search-btn {
  background: none;
  border: none;
  color: #D1D5DB;
  font-size: 1rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.header-search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}
.btn-apply {
  padding: 7px 18px;
  font-weight: 700;
  font-size: 0.82rem;
  background: var(--brand-600);
  color: white;
  border: none;
  border-radius: 10px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 38px;
  box-shadow: 0 2px 8px rgba(14, 143, 92, 0.25);
}
.btn-apply:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 143, 92, 0.35);
}

/* User Area — Premium visible */
.header-user-area { position: relative; }
.header-user-area.is-logged{ z-index: 1200; }
.header-user-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E5E7EB;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
  min-height: 38px;
  white-space: nowrap;
}
.header-user-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.18);
}
.header-user-btn--logged{
  background: #fff;
  color: #0f172a;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 5px 10px 5px 5px;
}
.header-user-btn--logged:hover{ background:#f8fafc; color:#0f172a; border-color:#cbd5e1; }
.header-user-avatar{
  width:28px;height:28px;border-radius:50%;
  background: #0e8f5c; color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:.78rem; flex-shrink:0;
}
.header-user-chevron{font-size:.58rem;color:#64748b;transition:transform .15s}
.header-user-btn[aria-expanded="true"] .header-user-chevron{transform:rotate(180deg)}
.header-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.14), 0 4px 12px rgba(15,23,42,0.08);
  min-width: 220px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.98);
  transition: all 0.16s cubic-bezier(0.16,1,0.3,1);
  padding: 6px;
  pointer-events: none;
}
.header-user-menu-head{
  padding:10px 10px 12px; margin:-6px -6px 6px;
  border-bottom:1px solid #f1f5f9;
  background:#f8fafc; border-radius:12px 12px 0 0;
}
.header-user-menu-head strong{display:block;font-size:.84rem;color:#0f172a;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-user-menu-head span{display:block;font-size:.68rem;color:#64748b;font-weight:600;text-transform:capitalize;margin-top:2px}
.header-user-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
@media(max-width:768px){
  .header-user-menu{
    position: fixed;
    top: 64px;
    right: 8px;
    left: auto;
    min-width: 240px;
    max-width: calc(100vw - 16px);
  }
  .header-user-btn .header-user-name{ max-width:86px; }
}
.header-user-menu a,
.header-user-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 500;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: all 0.15s;
}
.header-user-menu a:hover,
.header-user-menu button:hover {
  background: rgba(14, 143, 92, 0.06);
  color: var(--brand-600);
}

/* Announcement Popup */
.announcement-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 25, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.announcement-modal-overlay.open { opacity: 1; visibility: visible; }
.announcement-modal {
  position: relative;
  width: min(920px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.22s ease;
}
.announcement-modal-overlay.open .announcement-modal { transform: translateY(0) scale(1); }
.announcement-image { min-height: 360px; background: #111827; }
.announcement-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.announcement-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  padding: clamp(28px, 5vw, 54px);
}
.announcement-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 143, 92, 0.1);
  color: var(--brand-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.announcement-copy h2 {
  margin: 0;
  color: #030619;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}
.announcement-copy p { margin: 0; color: #4B5563; font-size: 1rem; line-height: 1.7; }
.announcement-cta { width: fit-content; min-height: 44px; padding: 0 18px; }
.announcement-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  cursor: pointer;
}
body.announcement-open { overflow: hidden; }

/* Hamburger */
.header-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.header-hamburger:hover { background: rgba(255, 255, 255, 0.1); }
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #D1D5DB;
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================
   SEARCH OVERLAY — compact dropdown card anchored under header
   ============================================ */
.header-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 78px 16px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.header-search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-inner {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.22), 0 4px 16px rgba(2, 6, 23, 0.08);
  transform: translateY(-10px) scale(0.98);
  transform-origin: top center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.header-search-overlay.open .search-overlay-inner { transform: translateY(0) scale(1); }
.search-input-wrap { position: relative; margin-bottom: 8px; }
.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #0e8f5c;
  font-size: 0.95rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 13px 44px 13px 42px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #0f172a;
  font-size: 0.95rem;
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.search-input:focus { border-color: #0e8f5c; background: #fff; box-shadow: 0 0 0 3px rgba(14, 143, 92, 0.12); }
.search-input::placeholder { color: #9CA3AF; }
.search-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s;
}
.search-close:hover { background: #ef4444; color: #fff; }
.search-suggestions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
  margin-top: 8px;
  padding-top: 8px;
}
.search-suggestions:empty { display: none; }
.search-suggestion {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  line-height: 1.4;
}
.search-suggestion:hover { background: #f0fdf4; color: #0f172a; }
.search-suggestion > i { width: 30px; height: 30px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #f0fdf4; border-radius: 9px; color: #0e8f5c; font-size: 0.75rem; }
.search-group-title { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0e8f5c; padding: 10px 12px 4px; }
.search-group-title i { font-size: 0.7rem; }
.search-group-title span { margin-left: auto; background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; font-size: 0.68rem; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.search-result { gap: 10px; }
.search-thumb { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #f1f5f9; }
.search-thumb-fallback { display: inline-flex; align-items: center; justify-content: center; background: #f0fdf4; color: #0e8f5c; font-size: 0.8rem; }
.search-result-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.search-result-text strong { font-size: 0.87rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-text small { font-size: 0.73rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-type-badge { flex-shrink: 0; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: #0e8f5c; color: #fff; padding: 3px 8px; border-radius: 999px; }
.search-loading, .search-empty { display: flex; align-items: center; gap: 12px; padding: 16px 12px; color: #64748b; font-size: 0.86rem; }
.search-empty strong { display: block; color: #0f172a; font-size: 0.88rem; margin-bottom: 2px; }
.search-empty span { font-size: 0.76rem; }
.search-empty > i, .search-loading > i { width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; border-radius: 10px; color: #0e8f5c; }

/* ============================================
   MOBILE DRAWER
   ============================================ */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.mobile-drawer-overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1600;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
}
[dir="rtl"] .mobile-drawer { right: auto; left: 0; transform: translateX(-100%); border-left: none; border-right: 1px solid rgba(0, 0, 0, 0.06); }
[dir="rtl"] .mobile-drawer.open { transform: translateX(0); }
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mobile-drawer-close {
  background: none;
  border: none;
  color: #6B7280;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-drawer-close:hover { background: rgba(0, 0, 0, 0.04); color: #111827; }
.mobile-drawer-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-ctas { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav-items { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #374151;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(0, 0, 0, 0.04);
  color: var(--brand-600);
}
.mobile-nav-link i {
  color: var(--brand-500);
  width: 18px;
  text-align: center;
}

/* Mobile Dropdown */
.mobile-dropdown-group {
  display: flex;
  flex-direction: column;
}
.mobile-dropdown-toggle i.fa-chevron-down {
  transition: transform 0.2s ease;
  color: #9CA3AF;
  font-size: 0.8rem;
}
.mobile-dropdown-group.open .mobile-dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}
.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  padding-left: 20px;
  gap: 2px;
  margin-top: 2px;
  border-left: 2px solid rgba(0,0,0,0.04);
  margin-left: 12px;
}
.mobile-dropdown-group.open .mobile-dropdown-menu {
  display: flex;
}
.mobile-nav-link.nested {
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 400;
}
.mobile-nav-link:hover { background: rgba(0, 0, 0, 0.04); color: #111827; }
.mobile-nav-link.active { color: var(--brand-600); background: rgba(14, 143, 92, 0.06); }
.mobile-nav-link i { width: 20px; text-align: center; color: var(--brand-600); font-size: 0.9rem; }
.mobile-portal-links {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1rem;
}
.mobile-portal-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9CA3AF;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding: 0 14px;
}
.mobile-portal-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  color: #4B5563;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 6px;
}
.mobile-portal-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111827;
}
.mobile-contact-info {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1rem;
}
.mobile-contact-info p {
  font-size: 0.8rem;
  color: #6B7280;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   AUTH MODALS
   ============================================ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.auth-modal-overlay.open { opacity: 1; visibility: visible; }
.auth-modal {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  position: relative;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}
.auth-modal-overlay.open .auth-modal { transform: scale(1) translateY(0); }
.auth-modal-lg { max-width: 540px; }
.auth-modal-sm { max-width: 380px; }
.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  color: #6B7280;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.auth-modal-close:hover { background: var(--danger); color: white; }
.auth-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(14, 143, 92, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--brand-600);
}
.auth-modal-title {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #111827;
}
.auth-modal-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #9CA3AF;
  margin-bottom: 1.5rem;
}
.auth-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}
.auth-error:not(:empty) { display: block; }
.auth-modal-switch {
  text-align: center;
  font-size: 0.85rem;
  color: #9CA3AF;
  margin-top: 1.5rem;
}
.auth-modal-switch button {
  background: none;
  border: none;
  color: var(--brand-600);
  font-weight: 600;
  cursor: pointer;
}
.auth-modal-switch button:hover { text-decoration: underline; }
.role-options { display: flex; gap: 0.5rem; }
.role-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: rgba(0, 0, 0, 0.02);
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6B7280;
  text-align: center;
}
.role-option input { display: none; }
.role-option:has(input:checked) {
  border-color: var(--brand-500);
  background: rgba(14, 143, 92, 0.06);
  color: var(--brand-600);
}
.role-option:hover {
  border-color: rgba(0, 0, 0, 0.12);
  color: #374151;
}
.role-option i { font-size: 1.5rem; }

/* ============================================
   FOOTER — Clean Light Glass
   ============================================ */
.site-footer {
  background: #030619;
  color: #9CA3AF;
  font-size: 0.8rem;
  padding-bottom: 80px;
  position: relative;
}

/* Footer Contact Bar */
.footer-contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(14, 143, 92, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-500);
  font-size: 1rem;
}
.contact-item-text {
  display: flex;
  flex-direction: column;
}
.contact-item-label {
  font-size: 0.7rem;
  color: #6B7280;
}
.contact-item a {
  color: #E5E7EB;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.2s;
}
.contact-item a:hover {
  color: var(--brand-500);
}
.contact-phone-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.contact-phone-wrap a {
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: plaintext;
}
.contact-phone-sep {
  color: #6B7280;
  font-weight: 400;
  opacity: 0.9;
}
@media (max-width: 991px) {
  .contact-phone-wrap {
    justify-content: center;
  }
}

/* Footer Main Card */
.footer-main-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Footer Layout Grid */
.footer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 991px) {
  .footer-layout {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
  }
}
@media (max-width: 576px) {
  .footer-layout {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .footer-links-col {
    margin-bottom: 1rem;
  }
}

/* Footer Brand */
.footer-brand-col {
  text-align: center;
}
@media (min-width: 992px) {
  .footer-brand-col { text-align: left; }
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}
@media (min-width: 992px) {
  .footer-logo { justify-content: flex-start; }
}
.footer-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.footer-logo-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: #F9FAFB;
}
.footer-logo-tagline {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand-500);
  text-transform: uppercase;
}
.footer-desc {
  color: #9CA3AF;
  line-height: 1.7;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  max-width: 380px;
}
.footer-desc-center {
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 992px) {
  .footer-desc-center { margin-left: 0; margin-right: auto; }
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
}
@media (min-width: 992px) {
  .social-icons { justify-content: flex-start; }
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D1D5DB;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}
.social-icon:hover {
  transform: translateY(-2px);
}
.social-icon.facebook:hover {
  background: rgba(59, 89, 152, 0.15);
  border-color: rgba(59, 89, 152, 0.4);
  color: #5b7bd5;
}
.social-icon.telegram:hover {
  background: rgba(0, 136, 204, 0.15);
  border-color: rgba(0, 136, 204, 0.4);
  color: #0088cc;
}
.social-icon.whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
}
.social-icon.youtube:hover {
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 0, 0, 0.3);
  color: #ff4444;
}
.social-icon.instagram:hover {
  background: rgba(225, 48, 108, 0.12);
  border-color: rgba(225, 48, 108, 0.3);
  color: #e1306c;
}

/* Footer Columns */
.footer-col-title {
  font-weight: 800;
  color: #F3F4F6;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.65rem;
}
.footer-links a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--brand-500);
  padding-right: 4px;
}
[dir="rtl"] .footer-links a:hover {
  padding-right: 0;
  padding-left: 4px;
}

/* Office Info in Footer */
.footer-office-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.65rem;
  color: #9CA3AF;
  font-size: 0.85rem;
}
.footer-office-item i {
  color: var(--brand-500);
  margin-top: 3px;
  font-size: 0.8rem;
}

/* Marquee Partners */
.footer-marquee-bar {
  padding: 1.25rem 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.footer-marquee-label {
  display: block;
  text-align: center;
  font-size: 0.6rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-500);
  letter-spacing: 2px;
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}
.marquee-track { position: relative; overflow: hidden; }
.marquee-content { display: flex; gap: 3rem; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.marquee-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); animation: pulse 2s infinite; }
.marquee-name { color: #D1D5DB; font-size: 0.78rem; font-weight: 600; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-bottom p {
  color: #6B7280;
  font-size: 0.8rem;
  margin: 0;
}

/* Floating Action Buttons */
.floating-buttons { position: fixed; bottom: 24px; right: 24px; z-index: 998; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}
.fab-btn:hover { transform: scale(1.08); }
.fab-btn:active { transform: scale(0.95); }
.fab-whatsapp { background: #25d366; }
.fab-whatsapp:hover { background: #22c55e; }
.fab-messenger { background: #3b82f6; }
.fab-messenger:hover { background: #2563eb; }
.fab-call { background: #374151; }
.fab-call:hover { background: var(--brand-600); }
.fab-top { background: var(--brand-600); }
.fab-top:hover { background: var(--brand-700); }

/* ============================================
   MOBILE BOTTOM TAB BAR
   ============================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
}
.mobile-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 500px;
  margin: 0 auto;
}
.mobile-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  min-width: 56px;
  min-height: 48px;
  justify-content: center;
  text-decoration: none;
  color: #9CA3AF;
  font-size: 0.6rem;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-tab-item i {
  font-size: 1.15rem;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
}
.mobile-tab-item span {
  font-size: 0.6rem;
  line-height: 1;
  white-space: nowrap;
}
.mobile-tab-item.active {
  color: var(--brand-600);
  font-weight: 600;
}
.mobile-tab-item.active i { transform: scale(1.1); }
.mobile-tab-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--brand-600);
  border-radius: 0 0 2px 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .footer-contact-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contact-item { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .footer-main-card { padding: 1.5rem !important; }
  .footer-col-title { font-size: 0.85rem; }
  .footer-links a { font-size: 0.8rem; }
  .footer-bottom p { font-size: 0.75rem; }

  .main-nav-inner { padding: 0 1rem; height: 60px; justify-content: space-between; }
  .header-nav-links { display: none; }
  .header-hamburger { display: flex; }
  .btn-apply { display: none !important; }
  .topbar-lang { display: none; }
  .header-user-name { display: none; }
  .header-user-btn { padding: 6px 10px; min-height: 36px; gap: 6px; }
  .header-search-btn { width: 36px; height: 36px; }
  .header-nav-actions { gap: 10px; }
  .site-logo-img { height: 40px; }

  .mobile-bottom-nav { display: flex; }
  .site-footer { padding-bottom: 0; }
  .floating-buttons { bottom: 80px; right: 16px; }
  .announcement-modal { grid-template-columns: 1fr; max-height: calc(100vh - 28px); }
  .announcement-image { min-height: 220px; max-height: 260px; }
  .announcement-copy { padding: 26px 22px 28px; }
}

@media (max-width: 480px) {
  .main-nav-inner { padding: 0 0.75rem; }
  .logo-text { display: none; }
  .footer-main-card { padding: 1.25rem 1rem !important; }
  .social-icon { width: 36px; height: 36px; }
  .announcement-modal-overlay { padding: 14px; }
  .announcement-copy h2 { font-size: 1.75rem; }
  .announcement-copy p { font-size: 0.94rem; }
  .announcement-cta { width: 100%; justify-content: center; }
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  display: none;
}

@media (max-width: 991px) {
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 70px; }
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 65px;
  padding: 0 5px;
}

.mobile-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-bottom p {
  color: #6B7280;
  font-size: 0.8rem;
  margin: 0;
}
.developer-credit {
  margin-left: 6px;
  color: #9CA3AF;
}
.developer-credit a {
  color: #10B981;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.developer-credit a:hover {
  color: #34D399;
  text-decoration: underline;
}

/* Floating Action Buttons */
.floating-buttons { position: fixed; bottom: 24px; right: 24px; z-index: 998; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}
.fab-btn:hover { transform: scale(1.08); }
.fab-btn:active { transform: scale(0.95); }
.fab-whatsapp { background: #25d366; }
.fab-whatsapp:hover { background: #22c55e; }
.fab-messenger { background: #3b82f6; }
.fab-messenger:hover { background: #2563eb; }
.fab-call { background: #374151; }
.fab-call:hover { background: var(--brand-600); }
.fab-top { background: var(--brand-600); }
.fab-top:hover { background: var(--brand-700); }

/* ============================================
   MOBILE BOTTOM TAB BAR
   ============================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
}
.mobile-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 500px;
  margin: 0 auto;
}
.mobile-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  min-width: 56px;
  min-height: 48px;
  justify-content: center;
  text-decoration: none;
  color: #9CA3AF;
  font-size: 0.6rem;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-tab-item i {
  font-size: 1.15rem;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
}
.mobile-tab-item span {
  font-size: 0.6rem;
  line-height: 1;
  white-space: nowrap;
}
.mobile-tab-item.active {
  color: var(--brand-600);
  font-weight: 600;
}
.mobile-tab-item.active i { transform: scale(1.1); }
.mobile-tab-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--brand-600);
  border-radius: 0 0 2px 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .footer-contact-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contact-item { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .footer-main-card { padding: 1.5rem !important; }
  .footer-col-title { font-size: 0.85rem; }
  .footer-links a { font-size: 0.8rem; }
  .footer-bottom p { font-size: 0.75rem; }

  .main-nav-inner { padding: 0 1rem; height: 60px; justify-content: space-between; }
  .header-nav-links { display: none; }
  .header-hamburger { display: flex; }
  .btn-apply { display: none !important; }
  .topbar-lang { display: none; }
  .header-user-name { display: none; }
  .header-user-btn { padding: 6px 10px; min-height: 36px; gap: 6px; }
  .header-search-btn { width: 36px; height: 36px; }
  .header-nav-actions { gap: 10px; }
  .site-logo-img { height: 40px; }

  .mobile-bottom-nav { display: flex; }
  .site-footer { padding-bottom: 0; }
  .floating-buttons { bottom: 80px; right: 16px; }
  .announcement-modal { grid-template-columns: 1fr; max-height: calc(100vh - 28px); }
  .announcement-image { min-height: 220px; max-height: 260px; }
  .announcement-copy { padding: 26px 22px 28px; }
}

@media (max-width: 480px) {
  .main-nav-inner { padding: 0 0.75rem; }
  .logo-text { display: none; }
  .footer-main-card { padding: 1.25rem 1rem !important; }
  .social-icon { width: 36px; height: 36px; }
  .announcement-modal-overlay { padding: 14px; }
  .announcement-copy h2 { font-size: 1.75rem; }
  .announcement-copy p { font-size: 0.94rem; }
  .announcement-cta { width: 100%; justify-content: center; }
}

/* ============================================
   MOBILE APP DOCK (NATIVE APP DOCK BAR)
   ============================================ */
.mobile-bottom-nav,
.mobile-app-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08);
  display: none;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
  .mobile-bottom-nav,
  .mobile-app-dock {
    display: block;
  }
}

.mobile-bottom-nav-inner,
.mobile-app-dock-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 8px;
}

.mobile-tab-item,
.dock-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #64748B;
  flex: 1;
  height: 48px;
  border-radius: 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px 0;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-tab-item:active,
.dock-tab-item:active {
  transform: scale(0.92);
}

.mobile-tab-item.active,
.dock-tab-item.active {
  color: var(--brand-600, #0E8F5C);
  font-weight: 700;
}

.mobile-tab-item.active::before,
.dock-tab-item.active::before {
  content: '';
  position: absolute;
  top: 4px;
  width: 34px;
  height: 24px;
  background: var(--brand-50, #ecfdf5);
  border-radius: 12px;
  z-index: 0;
}

.mobile-tab-item i,
.dock-tab-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
  z-index: 1;
  transition: transform 0.2s ease;
}

.mobile-tab-item.active i,
.dock-tab-item.active i {
  transform: translateY(-1px) scale(1.1);
  color: var(--brand-600, #0E8F5C);
}

.mobile-tab-item span,
.dock-tab-item span {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.1;
  z-index: 1;
  letter-spacing: -0.2px;
}

/* ============================================
   Notifications Center
   ============================================ */
.notif-bell-wrap {
  position: relative;
  display: inline-block;
}
.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(14, 143, 92, 0.25);
  background: rgba(14, 143, 92, 0.1);
  color: #065f46;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.notif-bell:hover {
  background: rgba(14, 143, 92, 0.18);
  transform: translateY(-1px);
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  z-index: 1000;
  overflow: hidden;
}
.notif-dropdown.open {
  display: block;
}
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.notif-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
}
.notif-mark-all {
  border: none;
  background: none;
  color: var(--brand-600, #0e8f5c);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.notif-mark-all:hover {
  text-decoration: underline;
}
.notif-list {
  max-height: 360px;
  overflow-y: auto;
}
.notif-empty {
  padding: 40px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}
.notif-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover {
  background: #f9fafb;
}
.notif-item.read {
  opacity: 0.65;
}
.notif-item-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 143, 92, 0.1);
  color: var(--brand-600, #0e8f5c);
  font-size: 0.9rem;
}
.notif-item-body {
  flex: 1;
  min-width: 0;
}
.notif-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #111827;
  margin-bottom: 2px;
}
.notif-item-msg {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notif-item-time {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 4px;
}
.notif-unread-dot {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
}
.notif-item-del {
  position: absolute;
  left: 8px;
  top: 8px;
  border: none;
  background: none;
  color: #d1d5db;
  cursor: pointer;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.15s;
}
.notif-item:hover .notif-item-del {
  opacity: 1;
}
.notif-item-del:hover {
  color: #dc2626;
}
.notif-dropdown-footer {
  padding: 10px 16px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}
.notif-refresh {
  border: none;
  background: none;
  color: #6b7280;
  font-size: 0.78rem;
  cursor: pointer;
}
.notif-refresh:hover {
  color: var(--brand-600, #0e8f5c);
}

/* Send Notification Modal */
.notif-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}
.notif-modal {
  width: 460px;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.notif-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--brand-600, #0e8f5c);
  color: #fff;
  font-weight: 700;
}
.notif-modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}
.notif-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notif-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-top: 6px;
}
.notif-field {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  color: #111827;
  background: #fff;
}
.notif-field:focus {
  outline: none;
  border-color: var(--brand-500, #0e8f5c);
  box-shadow: 0 0 0 3px rgba(14, 143, 92, 0.15);
}
.notif-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
}

/* ---------- RTL overrides (header + footer, global) ----------
   NOTE: flex rows mirror automatically in RTL, so only physical
   properties (left/right, padding, text-align) are overridden here. */
[dir="rtl"] .header-main-nav{ direction:rtl; }
[dir="rtl"] .nav-dropdown-menu{ left:auto; right:50%; transform:translateX(50%) translateY(10px); }
[dir="rtl"] .nav-item-dropdown:hover .nav-dropdown-menu{ transform:translateX(50%) translateY(0); }
[dir="rtl"] .dropdown-link{ text-align:right; }
[dir="rtl"] .header-user-menu{ right:auto; left:0; }
[dir="rtl"] .contact-item{ text-align:right; }
