font-size: 11px !important; 
}

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active,
textarea:-webkit-autofill, textarea:-webkit-autofill:hover, textarea:-webkit-autofill:focus, textarea:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s !important;
}

input:-webkit-autofill, textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #f8f9fa inset !important;
    -webkit-text-fill-color: #0f0f0f !important;
}
.edit-profile-box input:-webkit-autofill, .create-post-box input:-webkit-autofill, .custom-modal-content input:-webkit-autofill,
.edit-profile-box textarea:-webkit-autofill, .create-post-box textarea:-webkit-autofill, .custom-modal-content textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) input:-webkit-autofill, html:not([data-theme="light"]) textarea:-webkit-autofill {
        -webkit-box-shadow: 0 0 0px 1000px #0f0f0f inset !important;
        -webkit-text-fill-color: #ffffff !important;
    }
    html:not([data-theme="light"]) .edit-profile-box input:-webkit-autofill, html:not([data-theme="light"]) .create-post-box input:-webkit-autofill,
    html:not([data-theme="light"]) .edit-profile-box textarea:-webkit-autofill, html:not([data-theme="light"]) .create-post-box textarea:-webkit-autofill {
        -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset !important;
    }
    html:not([data-theme="light"]) .custom-modal-content input:-webkit-autofill, html:not([data-theme="light"]) .custom-modal-content textarea:-webkit-autofill {
        -webkit-box-shadow: 0 0 0px 1000px #212121 inset !important;
    }
}

html[data-theme="dark"] input:-webkit-autofill, html[data-theme="dark"] textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #0f0f0f inset !important;
    -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="dark"] .edit-profile-box input:-webkit-autofill, html[data-theme="dark"] .create-post-box input:-webkit-autofill,
html[data-theme="dark"] .edit-profile-box textarea:-webkit-autofill, html[data-theme="dark"] .create-post-box textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset !important;
}
html[data-theme="dark"] .custom-modal-content input:-webkit-autofill, html[data-theme="dark"] .custom-modal-content textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #212121 inset !important;
}

html[data-theme="light"] input:-webkit-autofill, html[data-theme="light"] textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #f8f9fa inset !important;
    -webkit-text-fill-color: #0f0f0f !important;
}
html[data-theme="light"] .edit-profile-box input:-webkit-autofill, html[data-theme="light"] .create-post-box input:-webkit-autofill, html[data-theme="light"] .custom-modal-content input:-webkit-autofill,
html[data-theme="light"] .edit-profile-box textarea:-webkit-autofill, html[data-theme="light"] .create-post-box textarea:-webkit-autofill, html[data-theme="light"] .custom-modal-content textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
}
@media (max-width: 899px) {
    .gif-player {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .gif-warning {
        bottom: calc(50% + 31px) !important;
    }
}

.conn-tabs {
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    background-color: var(--bg-color) !important;
    display: flex !important;
    width: 100% !important;
}
.conn-tabs .profile-tab {
    flex: 1;
    padding: 16px 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 3px solid transparent !important;
    color: var(--text-primary) !important; 
    margin-bottom: -1px !important;
    transition: color 0.2s, border-color 0.2s;
}
.conn-tabs .profile-tab::after {
    display: none !important;
}
.conn-tabs .profile-tab.active {
    color: var(--brand-color) !important; 
    border-bottom: 3px solid var(--brand-color) !important;
}

.conn-tabs .tab-badge {
    background-color: #333 !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 800;
    transition: background-color 0.2s, color 0.2s;
}
html[data-theme="light"] .conn-tabs .tab-badge {
    background-color: #e0e0e0 !important;
    color: #333 !important;
}

.conn-tabs .profile-tab.active .tab-badge {
    background-color: var(--brand-color) !important; 
    color: white !important;
}

#view-connections .main-content {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
}

.action-btn.like-btn.liked .material-symbols-outlined { 
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important; 
    color: #FF3B30 !important; 
}

#notificationsContainer {
    gap: 4px !important;
}
.notification-card {
    margin-bottom: 0 !important;
}

.user-list-container {
    gap: 6px !important;
}

.action-btn.like-btn.liked .material-symbols-outlined { 
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important; 
    color: #FF3B30 !important; 
    font-family: 'Material Symbols Outlined' !important;
}

.search-input-container {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    margin-bottom: 8px !important;
}

.mot-spinner {
    width: 44px; height: 44px;
    border: 4px solid var(--brand-color, #ff754e);
    border-top-color: transparent;
    border-radius: 50%;
    animation: mot-spin 0.8s linear infinite;
}
@keyframes mot-spin {
    100% { transform: rotate(360deg); }
}

.notification-trigger {
    position: relative;
    overflow: visible !important;
    width: 26px !important;
    height: 26px !important; 
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notification-trigger::before {
    display: none !important;
}
.badge {
    position: absolute !important;
    top: -4px !important;
    right: -6px !important;
    background-color: #f7a000 !important;
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    z-index: 10 !important;
    pointer-events: none !important;
    width: auto !important; 
}
.badge.hidden {
    display: none !important;
}

#profileBackBtn {
    margin-left: -8px;
}

.modal-btn-red { background: linear-gradient(90deg, #FF6B4A, #E91E63) !important; color: white; border: none; padding: 12px; border-radius: 12px; font-weight: bold; font-size: 14px; width: 100%; text-align: center; }
.comment-more { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-secondary); 
    cursor: pointer; 
    flex-shrink: 0; 
}
.report-reason-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}
.report-reason-item:last-child { border-bottom: none; }
.report-card {
    background-color: var(--sidebar-bg);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.mod-tool-btn {
    width: 36px;
    height: 36px;
    background-color: #ff5252;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(255, 82, 82, 0.4);
    transition: transform 0.2s, opacity 0.2s;
}
.mod-tool-btn:active { transform: scale(0.9); opacity: 0.8; }

.punish-type-tab { color: var(--text-secondary) !important; border-bottom-color: transparent !important; }
.punish-type-tab.active { color: var(--brand-color) !important; border-bottom-color: var(--brand-color) !important; }
.punish-type-tab.active[data-val="ban"] { color: #ff5252 !important; border-bottom-color: #ff5252 !important; }

.verified-badge {
    color: #2196f3;
    font-size: 16px !important;
    vertical-align: middle;
    margin-left: 4px;
    font-variation-settings: 'FILL' 1;
    display: inline-flex;
    align-items: center;
    margin-top: -2px;
}
.profile-name-large .verified-badge {
    font-size: 26px !important;
    margin-left: 8px;
}
.user-list-name .verified-badge {
    font-size: 18px !important;
}


@media (min-width: 900px) {
    .desktop-header {
        position: relative !important;
        z-index: 10 !important;
    }

    #realProfileData, 
    #profileSkeleton, 
    #profileTopContainer, 
    #profileFeedContainer,
    .edit-profile-box {
        max-width: 600px !important;
        width: 100% !important;
        margin: 0 auto !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .profile-bg-container {
        position: relative !important;
        background-color: var(--bg-color) !important;
    }
    #view-profile .profile-background-overlay,
    #view-edit-profile .profile-background-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 0 !important;
        background-size: cover !important;
        background-position: center !important;
        background-attachment: fixed !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    #view-profile .profile-background-overlay::after,
    #view-edit-profile .profile-background-overlay::after {
        display: none !important;
    }

    .profile-stat-box, .profile-desc-box, .profile-pill-tabs, .web-stats-container {
        background-color: rgba(36, 36, 36, 0.75) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    html[data-theme="light"] .profile-stat-box, 
    html[data-theme="light"] .profile-desc-box, 
    html[data-theme="light"] .profile-pill-tabs, 
    html[data-theme="light"] .web-stats-container {
        background-color: rgba(255, 255, 255, 0.75) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    .profile-name-large {
        color: #fff !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important;
    }
    .stat-value, .profile-desc-box {
        color: #fff !important;
    }
    html[data-theme="light"] .profile-name-large,
    html[data-theme="light"] .stat-value,
    html[data-theme="light"] .profile-desc-box {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .profile-content, .main-content, .page-view {
        will-change: transform, opacity;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .profile-stat-box, .profile-desc-box, .profile-pill-tabs, .web-stats-container {
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0);
    }
    
    .main-content {
        overflow-y: scroll !important;
    }

    #view-connections .connections-wrapper {
        max-width: 900px !important;
    }

    #view-connections .conn-tabs {
        max-width: 900px !important;
        margin: 0 auto !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    
    #view-connections .user-list-container {
        max-width: 450px !important;
        width: 450px !important;
        padding-left: 0 !important; 
        padding-right: 0 !important;
        margin: 0 !important;
        align-self: center !important;
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    #view-connections .connections-wrapper:has(#tabConnFollowers.active) .user-list-container {
        transform: translateX(-225px);
    }
    
    #view-connections .connections-wrapper:has(#tabConnFollowing.active) .user-list-container {
        transform: translateX(225px);
    }
    
    #view-connections .user-list-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 250px;
    }
}