.profile-edit-fab {
    position: absolute;
    top: 0;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.profile-stats-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}
.profile-stat-box {
    flex: 1;
    background-color: var(--sidebar-bg);
    border-radius: 16px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.profile-desc-box {
    background-color: var(--sidebar-bg);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    white-space: pre-wrap;
    word-wrap: break-word;
}
.profile-pill-tabs {
    display: flex;
    background-color: var(--sidebar-bg);
    border-radius: 24px;
    padding: 6px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.profile-pill-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    color: var(--text-secondary);
    border-radius: 18px;
    transition: color 0.2s;
    cursor: pointer;
}
.profile-pill-tab.active {
    color: var(--brand-color);
}
.web-stats-warning {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    padding: 40px 20px;
    line-height: 1.5;
    font-weight: 500;
}
.profile-info-section { display: none !important; }
.profile-tabs { display: none !important; }

textarea:focus, input:focus, .edit-input:focus, [contenteditable="true"]:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}
.edit-field textarea:focus {
    border: 1px solid var(--brand-color) !important;
}
.edit-input:focus {
    border-bottom: 1px solid var(--brand-color) !important;
}

.user-list-card {
    border-radius: 16px !important;
    padding: 12px 16px !important;
}
.user-list-card .profile-avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
}
.profile-bg-container {
    position: relative;
    background-color: var(--bg-color) !important;
}

.profile-background-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 350px !important;
    background-size: cover !important;
    background-position: center !important;
    z-index: 0 !important;
    display: none;
}
.profile-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    position: relative;
    width: 100%;
}
.profile-avatar-large {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: #2196f3 !important;
    background-size: cover !important;
    background-position: center !important;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.profile-name-large {
    font-size: 26px !important;
    font-weight: 900 !important;
    margin-top: 12px !important;
    margin-bottom: 24px !important;
    color: #ffffff !important;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    letter-spacing: -0.5px;
}
html[data-theme="light"] .profile-name-large {
    color: #0f0f0f !important;
    text-shadow: none !important;
}
.profile-edit-fab {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background-color: rgba(40, 40, 40, 0.7) !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.profile-stats-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
    z-index: 2;
    position: relative;
}
.profile-stat-box {
    flex: 1;
    background-color: #242424 !important;
    border-radius: 18px !important;
    padding: 16px 8px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
html[data-theme="light"] .profile-stat-box { background-color: #ffffff !important; border: 1px solid var(--border-color) !important;}
.stat-title {
    font-size: 13px !important;
    color: #aaaaaa !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
}
.stat-value {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}
html[data-theme="light"] .stat-value { color: #000000 !important; }
.profile-desc-box {
    background-color: #242424 !important;
    border-radius: 18px !important;
    padding: 20px !important;
    text-align: center;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: pre-wrap;
    word-wrap: break-word;
}
html[data-theme="light"] .profile-desc-box { background-color: #ffffff !important; color: #000000 !important; border: 1px solid var(--border-color) !important;}
.profile-pill-tabs {
    display: flex;
    background-color: #242424 !important;
    border-radius: 24px !important;
    padding: 4px !important;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
html[data-theme="light"] .profile-pill-tabs { background-color: #ffffff !important; border: 1px solid var(--border-color) !important; }
.profile-pill-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 15px;
    font-weight: 800;
    color: #888888 !important;
    border-radius: 20px;
    transition: color 0.2s;
    cursor: pointer;
}
.profile-pill-tab.active {
    color: var(--brand-color) !important;
}
.web-stats-container {
    background-color: #242424 !important;
    border-radius: 18px !important;
    padding: 40px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #aaaaaa !important;
    margin-bottom: 20px;
}
html[data-theme="light"] .web-stats-container { background-color: #ffffff !important; border: 1px solid var(--border-color) !important; }
.profile-info-section, .profile-tabs { display: none !important; }
.profile-background-overlay {
    top: 0 !important;
    height: 300px !important;
}
.profile-edit-fab {
    position: absolute;
    top: 0px !important;
    right: 20px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-color: rgba(30, 30, 30, 0.6) !important;
    border: none !important;
    box-shadow: none !important;
}
.profile-name-large {
    font-size: 22px !important;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}
.profile-stats-container, .profile-desc-box, .profile-pill-tabs {
    margin-bottom: 12px !important;
}
.profile-pill-tabs {
    padding: 4px !important;
    border-radius: 20px !important;
}
.profile-pill-tab {
    padding: 8px !important;
    font-size: 14px !important;
}
.user-list-card {
    border-radius: 12px !important;
}
.profile-background-overlay {
    top: 0 !important; 
    height: 250px !important;
    z-index: 1 !important; 
}
.profile-edit-fab {
    position: absolute;
    top: -10px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-color: var(--sidebar-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}
html[data-theme="dark"] .profile-edit-fab {
    background-color: #333 !important;
    border: none !important;
}
.profile-name-large {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}