/* ==================================================================
   REYNX STUDIO — Main CSS (Shared Styles)
   Fonts, Reset, Navbar, Login Modal, Search, Loader
   v6: إضافة Cairo كخط عربي احتياطي لقاعدة body (يوجد بالصفحات اللي معندهاش قاعدة خط مخصوص)
   ================================================================== */

/* ============================================================
   [1] الخطوط (Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

@font-face {
  font-family: 'NEXTSTEP';
  src: url('../assets/fonts/NEXTSTEP.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


/* ============================================================
   [2] إعادة الضبط الأساسية (Reset) + إعدادات الـ Body
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Poppins', 'Cairo', sans-serif;
  overflow-x: hidden;
}


/* ============================================================
   [3] متغيرات CSS العامة (Root Variables)
   ============================================================ */

:root {
  --stats-top: 570px;      /* مكان قسم الإحصائيات الكبيرة (رأسي) */
  --stats-right: 350px;    /* مكان قسم الإحصائيات الكبيرة (أفقي) */
  --people-size: 3.5rem;   /* حجم خط كلمة "الناس/تجارية" */
  --people-x: 90px;
  --people-y: 45px;
  --remember-size: 3.5rem; /* حجم خط كلمة "يرسخ/تتذكر" */
  --remember-x: 330px;
  --remember-y: 0px;
  --words-gap: 14px;       /* المسافة بين كلمات السطر الثالث في العنوان */
}
 
/* ============================================================
   [3.5] خلفية شبكة البكسل المتحركة (Pixel Grid Background)
   إشارة لهوية الاستوديو: "كل بكسل REYNX MADE"
   ============================================================ */

@keyframes rxGridDrift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.28; }
    50%      { transform: translate(60px, -40px) scale(1.2); opacity: 0.5; }
}

/* بكسلات صغيرة بتومض على تقاطعات الشبكة، كأن حد بيرسم الصفحة لحظة بلحظة */
.rx-pixel {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: rxPixelBlink 6s ease-in-out infinite;
}

.rx-pixel:nth-child(4)  { top: 12%; left: 18%; animation-duration: 5s;  animation-delay: 0.2s; }
.rx-pixel:nth-child(5)  { top: 22%; left: 82%; animation-duration: 7s;  animation-delay: 1.4s; }
.rx-pixel:nth-child(6)  { top: 34%; left: 6%;  animation-duration: 6.5s; animation-delay: 2.6s; }
.rx-pixel:nth-child(7)  { top: 41%; left: 46%; animation-duration: 5.5s; animation-delay: 0.8s; }
.rx-pixel:nth-child(8)  { top: 58%; left: 90%; animation-duration: 8s;  animation-delay: 3.2s; }
.rx-pixel:nth-child(9)  { top: 63%; left: 24%; animation-duration: 6s;  animation-delay: 1.9s; }
.rx-pixel:nth-child(10) { top: 71%; left: 66%; animation-duration: 7.5s; animation-delay: 4.1s; }
.rx-pixel:nth-child(11) { top: 78%; left: 12%; animation-duration: 5s;  animation-delay: 2.3s; }
.rx-pixel:nth-child(12) { top: 85%; left: 54%; animation-duration: 6.8s; animation-delay: 0.5s; }
.rx-pixel:nth-child(13) { top: 90%; left: 78%; animation-duration: 7.2s; animation-delay: 3.7s; }
.rx-pixel:nth-child(14) { top: 15%; left: 60%; animation-duration: 6.2s; animation-delay: 5s; }

@keyframes rxPixelBlink {
    0%, 100% { opacity: 0; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.6); }
}

@media (prefers-reduced-motion: reduce) {
    .rx-grid-glow,
    .rx-pixel {
        animation: none !important;
        opacity: 0.25;
    }
}

@media (max-width: 768px) {
    .rx-grid-glow {
        width: 320px;
        height: 320px;
        filter: blur(80px);
    }
}


/* ============================================================
   [4] الـ Navbar (شريط التنقل العلوي) — Minimal Transparent
   ============================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 60px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    max-width: 100%;
}

html[dir="rtl"] .navbar { direction: rtl; }
html[dir="ltr"] .navbar { direction: ltr; }

.nav-left {
    display: flex;
    align-items: center;
    gap: 60px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ─── Nav Center Cluster (اللينكات في نص الشاشة) ─── */
.nav-center-cluster {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 40px;
    background: none;
    border: none;
    padding: 0;
}

/* ─── Nav Links ─── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: #ffffff;
    font-weight: 500;
}

/* ─── Nav Right ─── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ─── Language Dropdown ─── */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    padding: 0;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-icon {
    font-size: 1.05rem;
}

.lang-arrow {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1d20;
    border: 1px solid #343a40;
    border-radius: 12px;
    padding: 6px;
    min-width: 140px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.dropdown-menu:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lang-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #adb5bd;
    font-size: 13px;
    font-weight: 500;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.lang-option .lang-name {
    font-weight: 500;
}

.lang-option .lang-code {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 400;
}

.lang-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 10px;
}

/* ─── Search Button ─── */
.search-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #ffffff;
}

/* ─── User Actions ─── */
.user-actions-pill {
    display: flex;
    align-items: center;
    gap: 26px;
    background: none;
    border: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.action-icon {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.action-icon:hover {
    color: #ffffff;
}

/* النجمة النشِطة (صفحة المفضلة) — نقطة بيضا تحت الأيقونة */
.action-icon.active {
    color: #ffffff;
}
.action-icon.active::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
}

/* ─── Profile (after login) ─── */
.profile-menu-wrapper {
    position: relative;
    display: none;
    align-items: center;
}

.profile-menu-wrapper.active-profile {
    display: flex;
}

.profile-trigger {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, #101114, #5f656d);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.profile-trigger:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-initial {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 220px;
    background-color: #1a1d20;
    border: 1px solid #343a40;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 14px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.profile-dropdown:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 6px 10px;
}

.profile-display-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-display-email {
    color: #9ca3af;
    font-size: 0.75rem;
}

.profile-dropdown-divider {
    height: 1px;
    background-color: #343a40;
    margin: 6px 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    color: #e5e7eb;
    font-family: inherit;
    font-size: 0.85rem;
    padding: 9px 6px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.profile-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.profile-dropdown-item:hover i {
    color: #ffffff;
}

.profile-dropdown-logout {
    color: #e879a8;
}

.profile-dropdown-logout i {
    color: #e879a8;
}

.profile-dropdown-logout:hover {
    background-color: rgba(232, 121, 168, 0.12);
    color: #f4a6c8;
}

.profile-dropdown-logout:hover i {
    color: #f4a6c8;
}

.user-actions-pill.is-logged-in .action-icon[data-account-icon] {
    display: none;
}

/* ─── Login button ─── */
.login-btn-alt {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none; /* ← ضيف السطر ده */
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.login-btn-alt:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.user-actions-pill.is-logged-in .login-btn-alt {
    display: none !important;
}

/* ============================================================
   [5] لودر الصفحة (Page Loader)
   ============================================================ */

html.is-loading { overflow: hidden; }
html.is-loading body { overflow: hidden; }

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #080808;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.9s ease;
}

.loader-logo-text {
    font-family: 'NEXTSTEP', sans-serif;
    font-size: 2.4rem;
    letter-spacing: 10px;
    color: #ffffff;
    opacity: 0;
    animation: loaderLogoPulse 1.3s ease forwards;
}

@keyframes loaderLogoPulse {
    0%   { opacity: 0; letter-spacing: 18px; filter: blur(6px); }
    35%  { opacity: 1; letter-spacing: 10px; filter: blur(0); }
    78%  { opacity: 1; }
    100% { opacity: 0; }
}

.page-loader.loader-hide {
    opacity: 0;
    pointer-events: none;
}

.page-loader.loader-done { display: none; }


/* ============================================================
   [6] نافذة تسجيل الدخول (Login Modal)
   ============================================================ */

.login-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(5, 5, 8, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal-content {
    background: rgba(18, 18, 26, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    width: 90%;
    max-width: 440px;
    padding: 35px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #fff;
    text-align: right;
}

[dir="ltr"] .login-modal-content {
    text-align: left;
}

.login-modal-overlay.active .login-modal-content {
    transform: translateY(0) scale(1);
}

.login-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

[dir="ltr"] .login-close-btn {
    left: auto;
    right: 20px;
}

.login-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.login-modal-content h2 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.google-signin-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: #1f1f1f;
    border: none;
    padding: 13px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.google-signin-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0;
    color: #777;
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-divider span {
    padding: 0 12px;
}

.login-form-group {
    margin-bottom: 18px;
}

[dir="ltr"] .login-form-group {
    text-align: left;
}

.login-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #bbb;
    font-weight: 500;
}

.login-form-group input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.login-form-group input::placeholder {
    color: #555;
}

.login-form-group input:focus {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.login-submit-btn {
    width: 100%;
    background: #ffffff;
    color: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

.login-submit-btn:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}


/* ============================================================
   [7] زرار الدعم الفني في الناف بار
   ============================================================ */

.support-nav-link {
    background: linear-gradient(135deg, #e94560, #c73652);
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
    text-decoration: none;
    font-size: 14px;
}

.support-nav-link i {
    font-size: 14px;
}

.support-nav-link:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.5);
    background: linear-gradient(135deg, #ff6b81, #e94560);
    color: #fff !important;
}

.support-nav-link::after {
    display: none !important;
}

.support-nav-link.active {
    background: linear-gradient(135deg, #ff6b81, #e94560);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.6);
}

@media (max-width: 768px) {
    .support-nav-link {
        padding: 6px 14px !important;
        font-size: 12px;
    }
    .support-nav-link i {
        font-size: 12px;
    }
}


/* ============================================================
   [8] Search Overlay
   ============================================================ */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    animation: searchFadeIn 0.3s ease;
}

.search-overlay.active {
    display: flex;
}

@keyframes searchFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.search-container {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.search-header:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.search-icon-big {
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
    padding: 14px 0;
    outline: none;
    font-family: inherit;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.search-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: rotate(90deg);
}

.search-results {
    margin-top: 30px;
    display: none;
}

.search-results.active {
    display: block;
    animation: searchResultsIn 0.3s ease;
}

@keyframes searchResultsIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-section {
    margin-bottom: 25px;
}

.search-section h4 {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.search-item i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.search-item span {
    font-size: 15px;
    font-weight: 400;
}

.search-shortcuts {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
}

.search-shortcuts kbd {
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    .search-overlay {
        padding-top: 40px;
    }

    .search-header {
        padding: 6px 16px;
    }

    .search-input {
        font-size: 16px;
        padding: 12px 0;
    }

    .search-shortcuts {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}


/* ============================================================
   [9] Mobile Menu Toggle (hamburger)
   ============================================================ */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.open .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.open .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Drawer */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #111;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    padding: 100px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav-drawer a,
.mobile-nav-drawer button {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s ease;
    background: none;
    border: none;
    text-align: right;
    cursor: pointer;
    font-family: inherit;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer button:hover {
    color: #d1d5db;
}

.mobile-nav-login {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    text-align: center !important;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Show mobile toggle on small screens, hide center links */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-center-cluster {
        display: none !important;
    }

    .navbar {
        padding: 16px 24px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 14px 20px;
    }

    .logo-img {
        height: 24px;
    }

    .user-actions-pill {
        gap: 18px;
    }

    .action-icon {
        font-size: 1rem;
    }

    .language-dropdown {
        display: none;
    }
}


/* ============================================================
   [10] Notification Wrapper
   ============================================================ */

.notif-wrapper {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ffffff;
    color: #0a0b0d;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .45);
}

.notif-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%; /* مركّز تحت ايقونة الجرس بالظبط (عربي + إنجليزي) */
    right: auto;
    width: 320px;
    max-width: calc(100vw - 24px);
    max-height: 400px;
    background: rgba(12, 13, 15, 0.94);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.notif-panel:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    color: #f2f4f6;
}

.notif-panel-header button {
    background: none;
    border: none;
    color: #9aa1a9;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease;
}

.notif-panel-header button:hover {
    color: #fff;
}

.notif-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-track {
    background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* غير المقروء — لمسة بيضا مونو بدل الأزرق (ممنوع ألوان) */
.notif-item.unread {
    background: rgba(255, 255, 255, 0.1);
}

.notif-item.unread .notif-item-icon {
    background: #fff;
    color: #0b0c0d;
}

.notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9ced4;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #eef1f4;
    margin-bottom: 2px;
}

.notif-item-desc {
    font-size: 0.75rem;
    color: #9aa1a9;
    margin-bottom: 2px;
}

.notif-item-time {
    font-size: 0.7rem;
    color: #6b7280;
}

.notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.notif-empty i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

@media (max-width: 400px) {
    .notif-panel {
        width: calc(100vw - 24px);
    }
}


/* ============================================================
   [11] Cart Badge
   ============================================================ */

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ffffff;
    color: #0a0b0d;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .45);
}

.cart-nav-icon {
    position: relative;
}


/* ============================================================
   [12] Navbar Layout Fixes
   ============================================================ */

/* Ensure user-actions-pill doesn't break on smaller desktop screens */
@media (max-width: 1100px) {
    .navbar {
        padding: 12px 24px;
    }
    .nav-links {
        gap: 26px;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
}