.header {
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 12px 0;
            border-bottom: 1px solid rgba(0,0,0,0.03);
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            transition: opacity 0.3s ease;
        }

        .logo img { height: 60px; width: auto; }

        .main-nav {
            display: flex;
            align-items: center;
            flex: 1;
            justify-content: center;
        }

        .main-nav ul {
            display: flex;
            align-items: center;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 8px;
        }

        .main-nav ul li a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            color: var(--text-dark);
            font-weight: 600;
            border-radius: 30px;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .main-nav ul li a i {
            font-size: 1.1rem;
            color: var(--primary-green);
            transition: color 0.3s ease;
        }

        .main-nav ul li a:hover,
        .main-nav ul li a.active {
            background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
            color: white;
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
        }

        .main-nav ul li a:hover i,
        .main-nav ul li a.active i { color: white; }

        .user-section {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .mobile-menu-btn {
            display: none;
            background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            color: white;
            font-size: 1.3rem;
            cursor: pointer;
            transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
            position: relative;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
        }

        .mobile-menu-btn:hover {
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
            transform: scale(1.05);
        }

        .mobile-menu-btn .icon-bars,
        .mobile-menu-btn .icon-close {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: opacity 0.25s ease, transform 0.3s ease;
        }

        .mobile-menu-btn .icon-close {
            opacity: 0;
            transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
        }

        .mobile-menu-btn.is-open {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
        }

        .mobile-menu-btn.is-open:hover {
            box-shadow: 0 6px 16px rgba(239, 68, 68, 0.55);
            transform: scale(1.05);
        }

        .mobile-menu-btn.is-open .icon-bars {
            opacity: 0;
            transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
        }

        .mobile-menu-btn.is-open .icon-close {
            opacity: 1;
            transform: translate(-50%, -50%) rotate(0deg) scale(1);
        }

        .user-icon {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: box-shadow 0.3s ease;
            position: relative;
            font-size: 1.2rem;
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
            overflow: hidden;
            flex-shrink: 0;
        }

        .user-icon .user-avatar-icon {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            display: block;
        }

        .user-icon:hover { box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4); }

        .notifications-link { position: relative; }

        .notifications-link .badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--accent-gold, #ffc107);
            color: #000;
            font-size: 0.75rem;
            font-weight: 800;
            min-width: 20px;
            height: 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
            border: 2px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .smart-user-menu {
            position: absolute;
            top: calc(100% + 16px);
            left: 0;
            background: #ffffff;
            border-radius: 24px;
            box-shadow: 0 15px 50px rgba(0,0,0,0.15);
            width: 360px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            margin: 0 0 0 8px;
            opacity: 0;
            visibility: hidden;
            z-index: 1001;
            border: 1px solid rgba(0,0,0,0.06);
            cursor: default;
            transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
            transform: translateY(8px) scale(0.98);
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }

        .smart-user-menu.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .smart-user-menu::-webkit-scrollbar { width: 2px; }
        .smart-user-menu::-webkit-scrollbar-thumb {
            background: var(--primary-green);
            border-radius: 4px;
        }

        @media (min-width: 992px) {
            .smart-user-menu.logged-in-width { width: 380px; }
            .smart-user-menu:not(.logged-in-width) { max-width: 400px; }
        }

        .menu-level { padding: 20px 24px 24px; }
        .menu-level.hidden { display: none; }

        .menu-header {
            display: flex;
            align-items: center;
            margin: 0 auto;
            padding: 12px 0 16px;
            border-bottom: 2px solid #f4f6f8;
        }

        .menu-header h3 {
            color: var(--primary-green);
            font-size: 1.2rem;
            font-weight: 700;
            margin: 0;
        }

        .menu-header p.subtitle {
            font-size: 0.85rem;
            color: #6c757d;
            margin: 5px 0 0 0;
        }

        .back-btn {
            background: #f8f9fa;
            border: 1px solid #eee;
            color: var(--dark-gray);
            cursor: pointer;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 14px;
            border-radius: 20px;
            transition: all 0.3s ease;
        }

        .back-btn:hover {
            background: var(--primary-green);
            color: white;
            border-color: var(--primary-green);
        }

        .user-info {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            padding: 14px 16px;
            background: linear-gradient(135deg, #fdfdfd, #f4f6f8);
            border-radius: 18px;
            border: 1px solid #eee;
        }

        .user-avatar-small {
            width: 55px;
            height: 55px;
            border-radius: 50%;
            overflow: hidden;
            border: 2px solid var(--accent-gold, #ffc107);
        }

        .user-avatar-small img { width: 100%; height: 100%; object-fit: cover; }

        .user-details { display: flex; flex-direction: column; justify-content: center; }
        .user-details p {
            margin-bottom: 4px;
            color: #495057;
            font-size: 0.9rem;
            font-weight: 500;
        }
        .user-details i {
            color: var(--primary-green);
            margin-left: 6px;
            width: 16px;
            text-align: center;
        }

        .menu-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }

        .menu-option {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 14px 16px;
            border-radius: 16px;
            transition: all 0.3s ease;
            cursor: pointer;
            background: #ffffff;
            border: 1px solid #f0f2f5;
            text-decoration: none;
            color: inherit;
            width: 100%;
        }

        .menu-option:hover {
            background: #f8f9fa;
            border-color: rgba(40,167,69,0.15);
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        }

        .menu-option .icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, rgba(40,167,69,0.1), rgba(32,201,151,0.1));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-green);
            font-size: 1rem;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .menu-option:hover .icon {
            background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
            color: white;
        }

        .menu-option .text { flex: 1; text-align: right; }
        .menu-option .text h4 { margin: 0 0 3px; color: #343a40; font-size: 1rem; font-weight: 700; }
        .menu-option .text p { margin: 0; color: #6c757d; font-size: 0.78rem; line-height: 1.3; }
        .menu-option .arrow { color: #adb5bd; transition: color 0.3s ease; font-size: 0.85rem; flex-shrink: 0; }
        .menu-option:hover .arrow { color: var(--primary-green); }

        .guest-menu-options {
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
            width: 100%;
            gap: 12px;
        }

        .guest-option-card {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 14px 16px;
            border-radius: 16px;
            background: #ffffff;
            border: 1px solid #f0f2f5;
            transition: all 0.3s ease;
            cursor: pointer;
            width: 100%;
        }

        .guest-option-card:hover {
            box-shadow: 0 6px 15px rgba(0,0,0,0.06);
            border-color: rgba(40, 167, 69, 0.2);
        }

        .guest-option-card .icon-wrapper {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .guest-option-card.login-card .icon-wrapper {
            background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
            color: white;
        }

        .guest-option-card.register-card .icon-wrapper {
            background: linear-gradient(135deg, var(--accent-gold, #ffc107), #d39e00);
            color: white;
        }

        .guest-option-card .text-content { flex: 1; text-align: right; }
        .guest-option-card .text-content h4 { margin: 0 0 4px; color: #343a40; font-size: 1.05rem; font-weight: 700; }
        .guest-option-card .text-content p { margin: 0; color: #6c757d; font-size: 0.82rem; line-height: 1.3; }
        .guest-option-card .arrow { color: #adb5bd; transition: color 0.3s ease; font-size: 0.85rem; }
        .guest-option-card:hover .arrow { color: var(--primary-green); }

        .menu-form { padding: 5px 0; width: 100%; box-sizing: border-box; }
        .menu-form .form-group { margin-bottom: 14px; width: 100%; }
        .menu-form input {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #edf2f7;
            background-color: #f8fafc;
            border-radius: 12px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            box-sizing: border-box;
            font-family: inherit;
        }
        .menu-form input:focus {
            outline: none;
            background-color: #ffffff;
            border-color: var(--primary-green);
            box-shadow: 0 0 0 4px rgba(40,167,69,0.1);
        }
        .menu-form .btn {
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 1rem;
            border: none;
            cursor: pointer;
            background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
            color: white;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }
        .menu-form .btn:hover {
            box-shadow: 0 6px 15px rgba(40,167,69,0.3);
            opacity: 0.95;
        }

        .mobile-nav {
            position: fixed;
            top: var(--header-height, 84px);
            right: 0;
            width: 80%;
            max-width: 360px;
            height: calc(100vh - var(--header-height, 84px));
            height: calc(100dvh - var(--header-height, 84px));
            background: #ffffff;
            box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
            padding: 20px 0 30px;
            transform: translateX(100%);
            transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            will-change: transform;
            z-index: 999;
            overflow-y: auto;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
            border-top-left-radius: 24px;
            border-bottom-left-radius: 24px;
        }

        .mobile-nav.active { transform: translateX(0); }

        .mobile-nav::-webkit-scrollbar { width: 4px; }
        .mobile-nav::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, var(--primary-green), var(--secondary-green));
            border-radius: 4px;
        }
        .mobile-nav::-webkit-scrollbar-track { background: transparent; }

        .mobile-nav ul {
            list-style: none;
            padding: 0 16px;
            margin: 0;
        }

        .mobile-nav ul li { margin-bottom: 6px; }

        .mobile-nav ul li a {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 18px;
            border-radius: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            color: #495057;
            text-decoration: none;
            background: #f8f9fa;
            font-size: 0.95rem;
            position: relative;
        }

        .mobile-nav ul li a i {
            width: 24px;
            font-size: 1.15rem;
            color: var(--primary-green);
            text-align: center;
            transition: color 0.3s ease;
            flex-shrink: 0;
        }

        .mobile-nav ul li a:hover,
        .mobile-nav ul li a.active {
            background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
            color: white;
            transform: translateX(-4px);
            box-shadow: 0 6px 16px rgba(40, 167, 69, 0.25);
        }

        .mobile-nav ul li a:hover i,
        .mobile-nav ul li a.active i { color: white; }

        .mobile-nav ul li a.mobile-nav-highlight {
            justify-content: center;
            text-align: center;
            background: linear-gradient(135deg, rgba(0,100,0,0.08), rgba(34,139,34,0.08));
            border: 1.5px solid rgba(0,100,0,0.12);
            font-weight: 700;
            padding: 14px 44px;
        }

        .mobile-nav ul li a.mobile-nav-highlight i {
            color: var(--primary-green);
            width: auto;
        }

        .mobile-nav ul li a.mobile-nav-highlight:hover {
            background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
            border-color: var(--primary-green);
        }

        .mobile-nav .mobile-nav-badge {
            position: absolute;
            left: 16px;
            right: auto;
            top: calc(50% - 12px);
            background: linear-gradient(135deg, #D4AF37, #b8942a);
            color: #ffffff;
            font-size: 0.7rem;
            font-weight: 800;
            min-width: 26px;
            height: 24px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 8px;
            border: 2px solid #fff;
            box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
            animation: badgePulse 2s ease-in-out infinite;
            margin: 0;
        }

        @keyframes badgePulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.08); }
        }

        .mobile-nav ul li a.mobile-nav-highlight:hover .mobile-nav-badge {
            background: #fff;
            color: var(--primary-green);
            border-color: var(--primary-green);
            animation: none;
        }

        .mobile-nav .mobile-nav-separator {
            height: 1px;
            background: linear-gradient(90deg, transparent, #e9edf2, transparent);
            margin: 14px 20px;
        }

        .mobile-nav .mobile-nav-social {
            display: flex;
            justify-content: center;
            gap: 12px;
            padding: 8px 20px 16px;
        }

        .mobile-nav .mobile-nav-social a {
            width: 46px;
            height: 46px;
            background: #f8fafc;
            border: 1.5px solid #e9edf2;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-green);
            font-size: 1.15rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            padding: 0;
            gap: 0;
        }

        .mobile-nav .mobile-nav-social a:hover {
            background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
            color: white;
            transform: translateY(-4px) scale(1.05);
            border-color: var(--primary-green);
            box-shadow: 0 10px 24px rgba(0, 100, 0, 0.3);
        }

        .overlay {
            position: fixed;
            top: var(--header-height, 84px);
            left: 0;
            width: 100%;
            height: calc(100% - var(--header-height, 84px));
            background: rgba(0, 0, 0, 0.45);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 998;
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
        }

        .overlay.active { opacity: 1; visibility: visible; }

        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #ffffff;
            box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            z-index: 997;
            padding: 8px 10px;
            padding-bottom: max(8px, env(safe-area-inset-bottom));
            height: 72px;
            justify-content: space-around;
            align-items: center;
            gap: 6px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .mobile-bottom-nav .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            text-decoration: none;
            color: #94a3b8;
            flex: 1;
            height: 100%;
            position: relative;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 0.72rem;
            font-weight: 700;
            padding: 6px 4px;
            border-radius: 16px;
            overflow: hidden;
        }

        .mobile-bottom-nav .bottom-nav-item i {
            font-size: 1.3rem;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
            position: relative;
            z-index: 2;
        }

        .mobile-bottom-nav .bottom-nav-item span:not(.bottom-nav-badge) {
            position: relative;
            z-index: 2;
            transition: color 0.3s ease, font-weight 0.3s ease;
        }

        .mobile-bottom-nav .bottom-nav-item.active {
            background: linear-gradient(135deg, rgba(0, 100, 0, 0.1), rgba(34, 139, 34, 0.1));
            color: var(--primary-green, #006400);
        }

        .mobile-bottom-nav .bottom-nav-item.active::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(0, 100, 0, 0.08), rgba(34, 139, 34, 0.08));
            border-radius: 16px;
            z-index: 1;
            animation: fadeInBg 0.3s ease;
        }

        @keyframes fadeInBg {
            from { opacity: 0; transform: scale(0.9); }
            to   { opacity: 1; transform: scale(1); }
        }

        .mobile-bottom-nav .bottom-nav-item.active i {
            color: var(--primary-green, #006400);
            transform: translateY(-2px) scale(1.08);
        }

        .mobile-bottom-nav .bottom-nav-item.active span:not(.bottom-nav-badge) {
            color: var(--primary-green, #006400);
            font-weight: 800;
        }

        .mobile-bottom-nav .bottom-nav-item:hover:not(.active) {
            color: var(--primary-green, #006400);
            background: rgba(0, 100, 0, 0.04);
        }

        .mobile-bottom-nav .bottom-nav-item:hover:not(.active) i {
            transform: translateY(-2px);
        }

        .mobile-bottom-nav .bottom-nav-badge {
            position: absolute;
            top: 2px;
            right: 50%;
            transform: translateX(22px);
            background: linear-gradient(135deg, #D4AF37, #b8942a);
            color: #ffffff;
            font-size: 0.6rem;
            font-weight: 800;
            min-width: 20px;
            height: 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #fff;
            padding: 0 5px;
            line-height: 1;
            box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
            z-index: 3;
            animation: badgePulse 2s ease-in-out infinite;
        }

        .verified-badge { color: #1DA1F2; font-size: 0.9rem; margin-right: 4px; display: inline-block; }
        .verified-badge.large { font-size: 1.2rem; }

        .custom-modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(6px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 99999;
            animation: customModalFadeIn 0.25s ease;
        }
        .custom-modal-box {
            background: #ffffff;
            border-radius: 20px;
            max-width: 480px;
            width: 90%;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            animation: customModalSlideIn 0.3s ease;
        }
        .custom-modal-header {
            padding: 20px 24px;
            border-bottom: 1px solid #f1f5f9;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .custom-modal-header h3 { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin: 0; }
        .custom-modal-close {
            background: none; border: none;
            font-size: 1.5rem; cursor: pointer;
            color: #94a3b8; transition: color 0.3s; padding: 0 8px;
        }
        .custom-modal-close:hover { color: #ef4444; }
        .custom-modal-body { padding: 24px; }
        .custom-modal-body p { font-size: 1rem; color: #475569; line-height: 1.6; margin: 0; }
        .custom-modal-footer {
            padding: 16px 24px 24px;
            display: flex; gap: 12px;
            justify-content: flex-end;
            border-top: 1px solid #f1f5f9;
        }
        .custom-modal-btn {
            padding: 10px 28px;
            border: none; border-radius: 40px;
            font-size: 0.95rem; font-weight: 600;
            cursor: pointer; transition: all 0.3s ease;
            font-family: 'Tajawal', sans-serif;
        }
        .custom-modal-btn-primary { background: linear-gradient(135deg, #006400, #228B22); color: white; }
        .custom-modal-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 100, 0, 0.3); }
        .custom-modal-btn-secondary { background: #f1f5f9; color: #475569; }
        .custom-modal-btn-secondary:hover { background: #e2e8f0; }
        .custom-modal-btn-danger { background: #ef4444; color: white; }
        .custom-modal-btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3); }

        .custom-alert-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            display: flex; align-items: center; justify-content: center;
            z-index: 99999;
            animation: customModalFadeIn 0.2s ease;
        }
        .custom-alert-box {
            background: #ffffff;
            border-radius: 20px;
            max-width: 380px; width: 90%;
            padding: 32px 24px;
            text-align: center;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
            animation: customModalSlideIn 0.3s ease;
        }
        .custom-alert-icon { font-size: 3.5rem; margin-bottom: 16px; color: #3b82f6; }
        .custom-alert-icon.success { color: #22c55e; }
        .custom-alert-icon.error { color: #ef4444; }
        .custom-alert-icon.warning { color: #f59e0b; }
        .custom-alert-box p { font-size: 1.05rem; color: #1e293b; margin-bottom: 24px; line-height: 1.6; }
        .custom-alert-btn {
            padding: 10px 40px;
            background: linear-gradient(135deg, #006400, #228B22);
            color: white; border: none;
            border-radius: 40px; font-size: 1rem; font-weight: 600;
            cursor: pointer; transition: all 0.3s ease;
            font-family: 'Tajawal', sans-serif;
        }
        .custom-alert-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 100, 0, 0.3); }

        @keyframes customModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes customModalSlideIn {
            from { opacity: 0; transform: scale(0.95) translateY(10px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        @media (max-width: 768px) {
            .main-nav { display: none; }
            .mobile-menu-btn { display: flex; }
            .logo {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
            }
            .logo img { height: 50px; }
            .user-section { gap: 10px; }
            .user-icon { width: 42px; height: 42px; font-size: 1.05rem; }

            .smart-user-menu {
                left: 16px;
                right: 16px;
                width: auto;
                max-height: calc(100vh - 80px);
                top: calc(100% + 16px);
                border-radius: 16px;
            }
            .smart-user-menu .user-info { display: none !important; }
            .menu-level { padding: 16px 18px 20px; }
            .menu-header { padding: 10px 8px 14px; }
            .menu-header h3 { font-size: 1.5rem; }
            .menu-option { padding: 12px 14px; gap: 12px; border-radius: 14px; }
            .menu-option .icon { width: 36px; height: 36px; font-size: 0.9rem; }
            .menu-option .text h4 { font-size: 0.95rem; }
            .menu-option .text p { font-size: 0.75rem; }

            .mobile-bottom-nav { display: flex; }

            body { padding-bottom: 80px; }
        }

        @media (max-width: 480px) {
            .logo img { height: 46px; }
            .smart-user-menu { left: 12px; right: 12px; }
            .menu-level { padding: 12px 8px 24px; }
            .menu-header h3 { font-size: 1.4rem; }
            .menu-option { padding: 10px 12px; gap: 8px; }
            .menu-option .icon { width: 40px; height: 40px; font-size: 0.95rem; }

            .mobile-nav {
                width: 85%;
                max-width: 320px;
            }
            .mobile-nav ul li a {
                padding: 12px 16px;
                font-size: 0.9rem;
            }
            .mobile-nav ul li a.mobile-nav-highlight {
                padding: 12px 40px;
            }
            .mobile-nav ul li a i { font-size: 1.05rem; }

            .mobile-bottom-nav {
                height: 68px;
                padding: 6px 8px;
                padding-bottom: max(6px, env(safe-area-inset-bottom));
            }
            .mobile-bottom-nav .bottom-nav-item {
                font-size: 0.68rem;
                gap: 3px;
                padding: 4px 2px;
                border-radius: 14px;
            }
            .mobile-bottom-nav .bottom-nav-item i { font-size: 1.15rem; }
            .mobile-bottom-nav .bottom-nav-badge {
                min-width: 18px;
                height: 18px;
                font-size: 0.55rem;
                transform: translateX(18px);
            }
        }

        @media (min-width: 769px) {
            .mobile-bottom-nav { display: none !important; }
            body { padding-bottom: 0 !important; }
        }

        body.chat-page-active .mobile-bottom-nav { display: none !important; }
        body.chat-page-active { padding-bottom: 0 !important; }
