.header-top-row { padding: 25px 0; border-bottom: 1px solid #111; }
        .top-flex { display: flex; justify-content: space-between; align-items: center; }
        .header-search-input { width: 100%; height: 36px; background: #000; border: 1px solid #333; color: #fff; padding: 0 15px; font-size: 0.8rem; border-right: none; outline: none; transition: border-color 0.3s; box-sizing: border-box; border-radius: 0; }
        .header-search-input:focus { border-color: var(--gold-primary); }
        .header-search-btn { height: 36px; background: var(--gold-primary); border: none; padding: 0 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s; box-sizing: border-box; border-radius: 0; }
        .header-search-btn:hover { background: #fff; }
        .mobile-search { display: none; padding: 15px 20px; background: #050505; border-bottom: 1px solid #111; }
        
        .user-pill { display: flex; align-items: center; gap: 15px; }
        .user-info { text-align: right; line-height: 1.2; }
        .user-role-label { display: block; font-size: 0.55rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-primary); font-weight: 700; }
        .user-greeting { font-size: 0.8rem; color: #fff; font-weight: 600; }
        
        .notif-badge-trigger { position: relative; text-decoration: none; font-size: 1.2rem; opacity: 0.5; transition: opacity 0.3s; margin-top: 5px; cursor: pointer; background: transparent; border: none; padding: 0; }
        .notif-badge-trigger.has-active { opacity: 1; }
        .notif-badge-trigger .badge { position: absolute; top: -5px; right: -8px; background: var(--gold-primary); color: #000; font-size: 0.6rem; font-weight: 800; padding: 2px 5px; border-radius: 10px; border: 2px solid var(--bg-primary); }
        
        .portal-dropdown { position: relative; display: flex; align-items: center; }
        .user-avatar-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold-primary); cursor: pointer; transition: transform 0.2s ease; box-sizing: border-box; padding: 0; background: transparent; }
        img.user-avatar-btn { object-fit: cover; background: #000; }
        button.user-avatar-btn.initials-avatar { display: flex; align-items: center; justify-content: center; background: #111; color: var(--gold-primary); font-family: var(--font-sans); font-weight: 700; font-size: 1rem; letter-spacing: 1px; user-select: none; }
        .user-avatar-btn:hover { transform: scale(1.05); }
        
        .portal-dropdown .dropdown-content { display: none; position: absolute; top: 130%; right: 0; left: auto; transform: none; min-width: 220px; border-radius: 6px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.8); }
        .portal-dropdown.active .dropdown-content { display: block; }
        .dropdown-divider { height: 1px; background: #222; margin: 8px 0; }
        
        .nav-links { gap: 30px; display: flex; list-style: none; justify-content: center; margin: 0; padding: 0; }
        .nav-links > li { position: relative; }
        .nav-links > li > a, .nav-links > li > button { display: block; padding: 18px 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-secondary); font-weight: 600; transition: color 0.3s ease; background: transparent; border: none; cursor: pointer; font-family: var(--font-sans); text-decoration: none; }
        .nav-links > li:hover > a, .nav-links > li:hover > button { color: var(--gold-primary); }
        .nav-links > li.dropdown > a::after { content: '▾'; font-size: 0.6rem; opacity: 0.6; margin-left: 5px; }
        
        .dropdown-content { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #111; min-width: 220px; box-shadow: 0 15px 35px rgba(0,0,0,0.8); border: 1px solid #333; border-top: 2px solid var(--gold-primary); z-index: 99995; padding: 10px 0; }
        .dropdown-content a, .dropdown-content button { display: block; padding: 12px 25px; color: var(--text-secondary); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; text-decoration: none; background: transparent; border: none; width: 100%; text-align: left; cursor: pointer; font-family: var(--font-sans); }
        .dropdown-content a:hover, .dropdown-content button:hover { background: #1a1a1a; color: var(--gold-primary); padding-left: 30px; transition: all 0.3s ease; }
        .nav-links .dropdown:hover .dropdown-content { display: block; }

        .social-icons a:hover { color: var(--gold-primary) !important; }
        
        .login-dropdown-content { display: none; position: absolute; top: 100%; right: 0; background: #080808; min-width: 280px; padding: 25px; border: 1px solid #222; border-top: 2px solid var(--gold-primary); box-shadow: 0 15px 35px rgba(0,0,0,0.8); z-index: 100000; text-align: left; transform: none; left: auto; }
        .login-dropdown-content.show { display: block; }
        .header-login-input { width: 100%; height: 38px; background: #000; border: 1px solid #333; color: #fff; padding: 0 12px; font-size: 0.8rem; outline: none; transition: border-color 0.3s; box-sizing: border-box; }
        .header-login-input:focus { border-color: var(--gold-primary); }
        .header-login-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #080808 inset !important; -webkit-text-fill-color: #fff !important; border: 1px solid #333 !important; }
        
        .theme-checkbox { -webkit-appearance: none; appearance: none; background-color: #000; border: 1px solid #333; width: 16px; height: 16px; border-radius: 2px; display: inline-block; position: relative; cursor: pointer; margin: 0; vertical-align: middle; transition: all 0.2s ease; }
        .theme-checkbox:checked { background-color: var(--gold-primary); border-color: var(--gold-primary); }
        .theme-checkbox:checked::after { content: ''; position: absolute; top: 2px; left: 5px; width: 4px; height: 8px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }

        .shop-subnav { background: #080808; border-bottom: 1px solid #111; padding: 12px 0; }
        .shop-subnav .subnav-links { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; align-items: center; }
        .shop-subnav .subnav-links a { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; transition: color 0.3s ease; text-decoration: none; }
        .shop-subnav .subnav-links a:hover { color: var(--gold-primary) !important; }
        
        .shop-cart-pill { display: flex; align-items: center; gap: 10px; background: #111; border: 1px solid #222; padding: 6px 15px; border-radius: 20px; transition: border-color 0.3s; cursor: pointer; }
        .shop-cart-pill:hover, .shop-cart-pill.active { border-color: var(--gold-primary); }

        /* Slide-out Cart UI */
        .mini-cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 999998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(3px); }
        .mini-cart-overlay.active { opacity: 1; pointer-events: auto; }
        .mini-cart-drawer { position: fixed; top: 0; right: 0; width: 100%; max-width: 400px; height: 100%; background: #0a0a0a; border-left: 1px solid #222; z-index: 999999; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.8); }
        .mini-cart-drawer.active { transform: translateX(0); }
        .mini-cart-header { padding: 25px 30px; border-bottom: 1px solid #1a1a1a; display: flex; justify-content: space-between; align-items: center; background: #050505; }
        .mini-cart-header h2 { font-family: var(--font-serif); font-size: 1.5rem; margin: 0; color: #fff; }
        .close-cart-btn { background: transparent; border: none; color: #888; font-size: 2rem; cursor: pointer; line-height: 1; transition: color 0.3s; }
        .close-cart-btn:hover { color: #ff4444; }
        .mini-cart-body { flex-grow: 1; overflow-y: auto; padding: 30px; display: flex; flex-direction: column; gap: 20px; }
        .mc-item { display: flex; gap: 15px; border-bottom: 1px dashed #1a1a1a; padding-bottom: 15px; }
        .mc-img { width: 60px; height: 60px; background: #000; border: 1px solid #222; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
        .mc-img img { width: 100%; height: 100%; object-fit: cover; }
        .mc-details { flex-grow: 1; }
        .mc-title { font-size: 0.85rem; color: #fff; font-family: var(--font-serif); margin: 0 0 5px 0; line-height: 1.2; }
        .mc-sku { font-size: 0.65rem; color: #888; text-transform: uppercase; margin-bottom: 8px; display: block; }
        .mc-price-row { display: flex; justify-content: space-between; align-items: center; }
        .mc-qty { font-size: 0.7rem; background: #111; color: var(--gold-primary); padding: 2px 6px; font-weight: 700; border: 1px solid #222; }
        .mc-price { font-size: 0.9rem; color: #ccc; font-weight: 700; }
        .mc-remove { background: transparent; border: none; color: #ff4444; cursor: pointer; font-size: 1rem; padding: 0 5px; }
        .mini-cart-footer { padding: 30px; background: #050505; border-top: 1px solid #1a1a1a; }
        .mc-summary-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: #888; margin-bottom: 10px; }
        .mc-total-row { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid #222; }
        
        .toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 999999; display: flex; flex-direction: column; gap: 15px; pointer-events: none; }
        .toast { min-width: 300px; padding: 18px 25px; background: #111; border-left: 4px solid var(--gold-primary); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.8); font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); pointer-events: auto; }
        .toast.show { transform: translateX(0); }
        .toast.success { border-color: #4BB543; }
        .toast.error { border-color: #ff4444; }
        .toast-close { background: transparent; border: none; color: #888; font-size: 1.2rem; cursor: pointer; transition: color 0.3s; padding: 0 0 0 15px; line-height: 1; }
        .toast-close:hover { color: #fff; }

        .mobile-toggle { display: none; flex-direction: column; justify-content: space-between; width: 26px; height: 18px; cursor: pointer; z-index: 100000; margin-left: 15px; background: transparent; border: none; padding: 0; }
        .mobile-toggle span { display: block; height: 2px; width: 100%; background-color: var(--gold-primary); border-radius: 2px; transition: all 0.3s ease; }
        .mobile-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
        .mobile-toggle.open span:nth-child(2) { opacity: 0; }
        .mobile-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

        @media (max-width: 1024px) {
            .mobile-toggle { display: flex; }
            .header-nav-row { display: none; position: absolute; top: 100%; left: 0; width: 100%; z-index: 99999; background: #080808; border-bottom: 1px solid #222; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
            .header-nav-row.active { display: block; }
            .nav-links { flex-direction: column; gap: 0; justify-content: center; }
            .nav-links > li { border-bottom: 1px solid #1a1a1a; }
            .nav-links > li > a, .nav-links > li > button { padding: 20px 25px; font-size: 0.85rem; width: 100%; text-align: center; }
            .nav-links > li.dropdown > a::after { display: none; }
            .dropdown-content { display: none !important; }
            
            .login-dropdown-content { position: static; box-shadow: none; border: none; padding: 15px 20px; background: transparent; border-top: 1px solid #222; margin-top: 10px; display: none !important; width: 100%; text-align: center; }
            .login-dropdown-content.show { display: block !important; }
            
            .shop-subnav .container { flex-direction: column; gap: 15px; }
            .shop-subnav .subnav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
            
            .mobile-search { display: block; padding: 15px 20px; background: #050505; border-bottom: 1px solid #111; }
        }
    

            .admin-fab-trigger {
                position: fixed;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                background: #111;
                color: var(--gold-primary);
                border: 1px solid var(--gold-primary);
                border-left: none;
                writing-mode: vertical-rl;
                text-orientation: mixed;
                padding: 20px 8px;
                border-radius: 0 6px 6px 0;
                cursor: pointer;
                z-index: 99990;
                font-family: var(--font-sans);
                font-weight: 700;
                font-size: 0.65rem;
                text-transform: uppercase;
                letter-spacing: 2px;
                transition: all 0.3s ease;
                box-shadow: 5px 0 20px rgba(0,0,0,0.5);
            }
            .admin-fab-trigger:hover {
                background: var(--gold-primary);
                color: #000;
                padding-right: 12px;
            }
            #admin-drawer.active { transform: translateX(0) !important; }
            .drawer-nav-list { list-style: none; margin: 0; padding: 20px 0; }
            .drawer-section-title { padding: 10px 30px; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; color: #666; font-weight: 800; border-bottom: 1px solid #1a1a1a; margin-bottom: 10px; }
            .drawer-nav-list a { display: block; padding: 12px 30px; color: #ccc; text-decoration: none; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: all 0.2s ease; border-left: 3px solid transparent; }
            .drawer-nav-list a:hover, .drawer-nav-list a.active { background: #1a1a1a; color: var(--gold-primary); border-left-color: var(--gold-primary); padding-left: 35px; }
            .drawer-nav-list a.dev-link:hover, .drawer-nav-list a.dev-link.active { color: #ff4444; border-left-color: #ff4444; }