
        ::-webkit-scrollbar { width: 4px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
        
        body { font-family: 'Vazir', 'Tahoma', sans-serif; background-color: #e7ebf0; }
        
        .pb-safe { padding-bottom: env(safe-area-inset-bottom); }
        .tab-content { display: none; animation: fadeIn 0.2s ease-out; }
        .tab-content.active { display: block; }
        
        img.lazy { opacity: 0; transition: opacity 0.3s ease-in; }
        img.loaded { opacity: 1; }

        .message-bubble {
            border-radius: 12px 12px 12px 0px;
            box-shadow: 0 1px 2px rgba(16,35,47,0.15);
        }
        
        .message-content a {
            color: #3390ec;
            text-decoration: none;
            word-break: break-all;
        }
        .message-content a:hover {
            text-decoration: underline;
        }

        @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
        
        /* A11y Fix: Darkened text color for inactive tabs */
        .nav-btn {
            color: #666666; /* Was #999999 - Improved contrast */
            transition: all 0.2s;
            padding: 4px 0;
        }
        .nav-btn.active { 
            color: #3390ec; 
            transform: translateY(-2px);
        }
        .nav-btn span {
            font-size: 9px;
            margin-top: 2px;
        }
        
        .ripple {
            position: relative;
            overflow: hidden;
            transform: translate3d(0, 0, 0);
        }
        .ripple:after {
            content: "";
            display: block;
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
            background-image: radial-gradient(circle, #000 10%, transparent 10.01%);
            background-repeat: no-repeat;
            background-position: 50%;
            transform: scale(10, 10);
            opacity: 0;
            transition: transform .5s, opacity 1s;
        }
        .ripple:active:after {
            transform: scale(0, 0);
            opacity: .1;
            transition: 0s;
        }
        
        @keyframes highlight {
            0% { background-color: #fff; }
            50% { background-color: #fffec8; }
            100% { background-color: #fff; }
        }
        .highlight-guide {
            animation: highlight 2s ease-in-out;
        }
        
        /* CLS Fix: Set initial top position to prevent jump */
        #floating-date-toast {
            transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        }
        #floating-date-container {
            top: 60px; /* Default height */
        }
