/* SCDev Follow System Styles */

.scdev-follow-wrapper {
    display: inline;
}

.scdev-follow-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.scdev-follow-btn {
    padding: 8px 20px;
    border: 1px solid #0084ff;
    background: #0084ff;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.scdev-follow-btn:hover {
    background: #0073e6;
    border-color: #0073e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 132, 255, 0.3);
}

.scdev-follow-btn.following {
    background: transparent;
    color: #666;
    border-color: #ddd;
}

.scdev-follow-btn.following:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
    box-shadow: none;
}

.scdev-follow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.scdev-follow-name-btn .scdev-follow-btn {
    font-size: 0.8em;
    line-height: 1;
}

.scdev-follower-count {
    font-size: inherit;
    color: inherit;
}

.scdev-follow-actions {
    display: inline-flex;
    gap: 5px;
    margin-left: 5px;
}

.scdev-mute-btn,
.scdev-block-btn {
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.6;
}

.scdev-mute-btn:hover,
.scdev-block-btn:hover {
    opacity: 1;
}

.scdev-mute-btn.muted {
    opacity: 1;
}

.scdev-block-btn.blocked {
    opacity: 1;
    color: #dc3545;
}

.scdev-mute-btn:disabled,
.scdev-block-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Users List */
.scdev-users-list {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 10px 0 20px;
}

.scdev-users-list h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.scdev-users-filter-notice {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin: -10px 0 18px;
}

.scdev-all-users-banner {
    display: none !important;
}

.scdev-search-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.scdev-user-search {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.scdev-user-search:focus {
    border-color: #0084ff;
}

.scdev-search-btn {
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.scdev-search-btn:hover {
    background: #f8fafc;
    border-color: #2563eb;
}

.scdev-users-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.scdev-user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-sizing: border-box;
    width: 100%;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.scdev-user-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(37, 99, 235, 0.3);
}

.scdev-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.scdev-user-info img {
    border-radius: 50%;
}

.scdev-user-details {
    display: flex;
    flex-direction: column;
}

.scdev-user-details strong {
    font-size: 15px;
    color: #333;
}

.scdev-user-login {
    font-size: 13px;
    color: #666;
}

.scdev-user-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scdev-user-actions .scdev-block-btn {
    padding: 6px 12px;
    border: 1px solid #dc3545;
    background: white;
    color: #dc3545;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 1;
}

.scdev-user-actions .scdev-block-btn:hover {
    background: #dc3545;
    color: white;
}

.scdev-user-actions .scdev-block-btn.blocked {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.scdev-empty {
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

#scdev-follows-modal.scdev-follows-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

#scdev-follows-modal.scdev-follows-modal.is-open {
    display: flex;
}

#scdev-follows-modal .scdev-follows-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
}

#scdev-follows-modal .scdev-follows-modal-box {
    position: relative;
    z-index: 1;
    width: min(430px, 94vw);
    max-height: 82vh;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

#scdev-follows-modal .scdev-follows-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
}

#scdev-follows-modal .scdev-follows-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

#scdev-follows-modal .scdev-follows-modal-close {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

#scdev-follows-modal .scdev-follows-modal-body {
    max-height: calc(82vh - 58px);
    overflow-y: auto;
    padding: 16px;
}

#scdev-follows-modal .scdev-follows-modal-loading {
    color: #777;
}

.scdev-follow-login {
    padding: 20px;
    text-align: center;
}

.scdev-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.scdev-btn-primary {
    background: #0084ff;
    color: white;
}

.scdev-btn-primary:hover {
    background: #0073e6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .scdev-all-users-banner {
        border-radius: 6px;
    }

    .scdev-all-users-banner-content {
        gap: 8px;
        flex-wrap: wrap;
    }

    .scdev-all-users-site-name,
    .scdev-all-users-page-title {
        font-size: 26px !important;
    }

    .scdev-user-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .scdev-user-actions {
        width: 100%;
    }
    
    .scdev-follow-wrapper {
        display: block;
        margin-top: 10px;
    }
}


/* User Profile */
.scdev-user-profile {
    max-width: 800px;
    margin: 20px auto;
}

.scdev-profile-header {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 30px;
}

.scdev-profile-avatar img {
    border-radius: 50%;
    border: 3px solid #0084ff;
}

.scdev-profile-info {
    flex: 1;
}

.scdev-profile-info h2 {
    margin: 0 0 5px 0;
    font-size: 28px;
}

.scdev-profile-username {
    color: #666;
    margin: 0 0 15px 0;
}

.scdev-profile-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    font-size: 14px;
}

.scdev-profile-stats span {
    color: #666;
}

.scdev-profile-stats strong {
    color: #333;
    font-size: 16px;
}

.scdev-profile-actions {
    margin-top: 20px;
}

.scdev-profile-posts h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.scdev-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scdev-post-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.scdev-post-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scdev-post-thumbnail {
    flex-shrink: 0 !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
}

.scdev-post-thumbnail img {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    display: block !important;
}

.scdev-post-content {
    flex: 1;
    min-width: 0;
}

.scdev-post-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scdev-post-item h4 a {
    color: #333;
    text-decoration: none;
}

.scdev-post-item h4 a:hover {
    color: #0084ff;
}

.scdev-post-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.scdev-post-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 10px 0 0 0;
}

.scdev-empty-posts {
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Mobile */
@media (max-width: 768px) {
    .scdev-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .scdev-profile-stats {
        justify-content: center;
    }
}


/* Dark Mode Support */
body.dark-mode .scdev-users-list,
body.dark-mode .scdev-user-profile {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-user-card,
body.dark-mode .scdev-post-item {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    border-color: var(--dark-border-color, #444);
}

body.dark-mode .scdev-user-card:hover,
body.dark-mode .scdev-post-item:hover {
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
    border-color: var(--dark-primary-color, #4d94ff);
}

body.dark-mode .scdev-profile-header {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    border-color: var(--dark-border-color, #444);
}

body.dark-mode .scdev-user-search {
    background: var(--dark-content-bg-color, #1a1a1a);
    border-color: var(--dark-border-color, #444);
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-user-search:focus {
    border-color: var(--dark-primary-color, #4d94ff);
}

body.dark-mode .scdev-search-btn {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    border-color: var(--dark-border-color, #444);
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-search-btn:hover {
    background: var(--dark-content-bg-color, #1a1a1a);
    border-color: var(--dark-primary-color, #4d94ff);
}

body.dark-mode .scdev-user-details strong,
body.dark-mode .scdev-post-item h4 a {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-user-details strong a {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-user-login,
body.dark-mode .scdev-post-meta,
body.dark-mode .scdev-profile-username {
    color: var(--dark-text-muted, #aaa);
}

body.dark-mode .scdev-profile-stats span {
    color: var(--dark-text-muted, #aaa);
}

body.dark-mode .scdev-profile-stats strong {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-empty,
body.dark-mode .scdev-empty-posts {
    background: var(--dark-content-bg-color, #1a1a1a);
    color: var(--dark-text-muted, #aaa);
}

body.dark-mode .scdev-follow-btn,
body.night-mode .scdev-follow-btn,
body.sheer-dark .scdev-follow-btn,
body.sheer-dark-mode .scdev-follow-btn,
body.wp-dark-mode-active .scdev-follow-btn,
html.dark .scdev-follow-btn,
[data-theme="dark"] .scdev-follow-btn,
[data-color-scheme="dark"] .scdev-follow-btn {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}

body.dark-mode .scdev-follow-btn:hover,
body.night-mode .scdev-follow-btn:hover,
body.sheer-dark .scdev-follow-btn:hover,
body.sheer-dark-mode .scdev-follow-btn:hover,
body.wp-dark-mode-active .scdev-follow-btn:hover,
html.dark .scdev-follow-btn:hover,
[data-theme="dark"] .scdev-follow-btn:hover,
[data-color-scheme="dark"] .scdev-follow-btn:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

body.dark-mode .scdev-follow-btn.following,
body.night-mode .scdev-follow-btn.following,
body.sheer-dark .scdev-follow-btn.following,
body.sheer-dark-mode .scdev-follow-btn.following,
body.wp-dark-mode-active .scdev-follow-btn.following,
html.dark .scdev-follow-btn.following,
[data-theme="dark"] .scdev-follow-btn.following,
[data-color-scheme="dark"] .scdev-follow-btn.following {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
}

body.dark-mode .scdev-follow-btn.following:hover,
body.night-mode .scdev-follow-btn.following:hover,
body.sheer-dark .scdev-follow-btn.following:hover,
body.sheer-dark-mode .scdev-follow-btn.following:hover,
body.wp-dark-mode-active .scdev-follow-btn.following:hover,
html.dark .scdev-follow-btn.following:hover,
[data-theme="dark"] .scdev-follow-btn.following:hover,
[data-color-scheme="dark"] .scdev-follow-btn.following:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

body.dark-mode .scdev-post-excerpt {
    color: var(--dark-text-muted, #aaa);
}

body.dark-mode .scdev-profile-info h2 {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-profile-posts h3 {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-user-actions .scdev-block-btn {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    border-color: #ff5555;
    color: #ff5555;
}

body.dark-mode .scdev-user-actions .scdev-block-btn:hover {
    background: #ff5555;
    color: white;
}

body.dark-mode .scdev-user-actions .scdev-block-btn.blocked {
    background: #ff5555;
    color: white;
}


/* Following Widget */
.scdev-following-widget {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.scdev-following-widget h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.scdev-widget-users {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scdev-widget-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.scdev-widget-user:hover {
    background: #f5f5f5;
}

.scdev-widget-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.scdev-widget-avatar {
    position: relative;
    flex-shrink: 0;
    line-height: 0;
}

.scdev-widget-avatar img {
    border-radius: 50%;
}

.scdev-online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #00c853;
    border: 2px solid white;
    border-radius: 50%;
}

.scdev-widget-user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.scdev-widget-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scdev-widget-name:hover {
    color: #0084ff;
}

.scdev-online-text {
    font-size: 11px;
    color: #00c853;
    font-weight: 500;
}

.scdev-message-btn {
    padding: 6px 10px;
    border: none;
    background: #0084ff;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.scdev-message-btn:hover {
    background: #0073e6;
    transform: scale(1.05);
}

.scdev-widget-empty,
.scdev-widget-login {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.scdev-widget-login a {
    color: #0084ff;
    text-decoration: none;
}

.scdev-widget-login a:hover {
    text-decoration: underline;
}

/* Dark Mode - Widget */
body.dark-mode .scdev-following-widget {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    border-color: var(--dark-border-color, #444);
}

body.dark-mode .scdev-following-widget h4 {
    color: var(--dark-text-color, #f0f0f0);
    border-color: var(--dark-border-color, #444);
}

body.dark-mode .scdev-widget-user:hover {
    background: var(--dark-content-bg-color, #1a1a1a);
}

body.dark-mode .scdev-widget-name {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-widget-name:hover {
    color: var(--dark-primary-color, #4d94ff);
}

body.dark-mode .scdev-online-indicator {
    border-color: var(--dark-sidebar-bg-color, #2a2a2a);
}

body.dark-mode .scdev-widget-empty,
body.dark-mode .scdev-widget-login {
    color: var(--dark-text-muted, #aaa);
}

body.dark-mode .scdev-widget-login a {
    color: var(--dark-primary-color, #4d94ff);
}

body.dark-mode .scdev-message-btn {
    background: var(--dark-primary-color, #4d94ff);
}

body.dark-mode .scdev-message-btn:hover {
    background: #3d84ef;
}


/* Following Page */
.scdev-following-page {
    max-width: 800px;
    margin: 20px auto;
}

.scdev-following-page h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.scdev-following-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scdev-following-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.scdev-following-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scdev-following-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.scdev-following-user img {
    border-radius: 50%;
}

.scdev-following-details {
    display: flex;
    flex-direction: column;
}

.scdev-following-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.scdev-following-name:hover {
    color: #0084ff;
}

.scdev-following-username {
    font-size: 13px;
    color: #666;
}

.scdev-following-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.scdev-status-eye {
    font-size: 24px;
    filter: grayscale(100%);
    opacity: 0.3;
    transition: all 0.3s;
}

.scdev-status-eye.online {
    filter: grayscale(0%) hue-rotate(90deg);
    opacity: 1;
}

.scdev-message-btn-page {
    padding: 8px 20px;
    border: none;
    background: #0084ff;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.scdev-message-btn-page:hover {
    background: #0073e6;
    transform: translateY(-1px);
}

/* Message Modal */
.scdev-message-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    flex-direction: column;
    max-height: 600px;
}

.scdev-message-modal.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.scdev-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.scdev-message-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.scdev-message-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.scdev-message-close:hover {
    background: #e0e0e0;
    color: #333;
}

.scdev-message-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    min-height: 300px;
    max-height: 450px;
}

/* Messages Page */
.scdev-messages-page {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.scdev-messages-page h2 {
    margin-top: 0;
}

/* Dark Mode - Following Page & Modal */
body.dark-mode .scdev-following-page h2,
body.dark-mode .scdev-messages-page h2 {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-following-item {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    border-color: var(--dark-border-color, #444);
}

body.dark-mode .scdev-following-item:hover {
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
}

body.dark-mode .scdev-following-name {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-following-name:hover {
    color: var(--dark-primary-color, #4d94ff);
}

body.dark-mode .scdev-following-username {
    color: var(--dark-text-muted, #aaa);
}

body.dark-mode .scdev-message-btn-page {
    background: var(--dark-primary-color, #4d94ff);
}

body.dark-mode .scdev-message-btn-page:hover {
    background: #3d84ef;
}

body.dark-mode .scdev-message-modal {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    border-color: var(--dark-border-color, #444);
}

body.dark-mode .scdev-message-header {
    background: var(--dark-content-bg-color, #1a1a1a);
    border-color: var(--dark-border-color, #444);
}

body.dark-mode .scdev-message-header h4 {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-message-close {
    color: var(--dark-text-muted, #aaa);
}

body.dark-mode .scdev-message-close:hover {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-messages-page {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    border-color: var(--dark-border-color, #444);
    color: var(--dark-text-color, #f0f0f0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .scdev-message-modal {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 10px;
    }
    
    .scdev-following-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .scdev-message-btn-page {
        width: 100%;
    }
}

/* ── Follow approval — pending state ─────────────────────────────────────── */
.scdev-follow-btn.pending {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    cursor: default;
    opacity: 0.85;
}
.scdev-pending-requests-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.scdev-request-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.scdev-request-item:last-child { border-bottom: none; }
.scdev-request-actions { display: flex; gap: 8px; margin-left: auto; }
.scdev-follow-approve-btn {
    padding: 5px 12px; border-radius: 6px; border: none;
    background: #28a745; color: #fff; font-size: 13px;
    font-weight: 600; cursor: pointer;
}
.scdev-follow-approve-btn:hover { background: #1e7e34; }
.scdev-follow-decline-btn {
    padding: 5px 12px; border-radius: 6px; border: none;
    background: #dc3545; color: #fff; font-size: 13px;
    font-weight: 600; cursor: pointer;
}
.scdev-follow-decline-btn:hover { background: #b02a37; }

/* ── User profile — Pages & Groups sections ──────────────────────────────── */
.scdev-profile-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--wp--preset--color--border, #e0e0e0);
}
.scdev-profile-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--wp--preset--color--foreground, #333);
}
.scdev-profile-empty {
    color: #888;
    font-size: 14px;
}
.scdev-profile-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.scdev-profile-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
.scdev-message-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.scdev-message-close:hover {
    background: #e0e0e0;
    color: #333;
}

.scdev-message-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    min-height: 300px;
    max-height: 450px;
}

/* Messages Page */
.scdev-messages-page {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.scdev-messages-page h2 {
    margin-top: 0;
}

/* Dark Mode - Following Page & Modal */
body.dark-mode .scdev-following-page h2,
body.dark-mode .scdev-messages-page h2 {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-following-item {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    border-color: var(--dark-border-color, #444);
}

body.dark-mode .scdev-following-item:hover {
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
}

body.dark-mode .scdev-following-name {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-following-name:hover {
    color: var(--dark-primary-color, #4d94ff);
}

body.dark-mode .scdev-following-username {
    color: var(--dark-text-muted, #aaa);
}

body.dark-mode .scdev-message-btn-page {
    background: var(--dark-primary-color, #4d94ff);
}

body.dark-mode .scdev-message-btn-page:hover {
    background: #3d84ef;
}

body.dark-mode .scdev-message-modal {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    border-color: var(--dark-border-color, #444);
}

body.dark-mode .scdev-message-header {
    background: var(--dark-content-bg-color, #1a1a1a);
    border-color: var(--dark-border-color, #444);
}

body.dark-mode .scdev-message-header h4 {
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-message-close {
    color: var(--dark-text-muted, #aaa);
}

body.dark-mode .scdev-message-close:hover {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    color: var(--dark-text-color, #f0f0f0);
}

body.dark-mode .scdev-messages-page {
    background: var(--dark-sidebar-bg-color, #2a2a2a);
    border-color: var(--dark-border-color, #444);
    color: var(--dark-text-color, #f0f0f0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .scdev-message-modal {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 10px;
    }
    
    .scdev-following-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .scdev-message-btn-page {
        width: 100%;
    }
}

/* ── Follow approval — pending state ─────────────────────────────────────── */
.scdev-follow-btn.pending {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    cursor: default;
    opacity: 0.85;
}
.scdev-pending-requests-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.scdev-request-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.scdev-request-item:last-child { border-bottom: none; }
.scdev-request-actions { display: flex; gap: 8px; margin-left: auto; }
.scdev-follow-approve-btn {
    padding: 5px 12px; border-radius: 6px; border: none;
    background: #28a745; color: #fff; font-size: 13px;
    font-weight: 600; cursor: pointer;
}
.scdev-follow-approve-btn:hover { background: #1e7e34; }
.scdev-follow-decline-btn {
    padding: 5px 12px; border-radius: 6px; border: none;
    background: #dc3545; color: #fff; font-size: 13px;
    font-weight: 600; cursor: pointer;
}
.scdev-follow-decline-btn:hover { background: #b02a37; }

/* ── User profile — Pages & Groups sections ──────────────────────────────── */
.scdev-profile-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--wp--preset--color--border, #e0e0e0);
}
.scdev-profile-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--wp--preset--color--foreground, #333);
}
.scdev-profile-empty {
    color: #888;
    font-size: 14px;
}
.scdev-profile-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.scdev-profile-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--wp--preset--color--background, #fff);
}
.scdev-profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.scdev-profile-card-banner {
    height: 80px;
    width: 100%;
}
.scdev-profile-card-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.scdev-profile-card-body strong {
    font-size: 14px;
    color: var(--wp--preset--color--foreground, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scdev-profile-card-cat {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.scdev-profile-card-meta {
    font-size: 12px;
    color: #888;
}
@media (max-width: 480px) {
    .scdev-profile-cards-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Stat links (Pages / Groups counts) ─────────────────────────────────── */
.scdev-stat-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    transition: color 0.15s;
}
.scdev-stat-link:hover {
    color: var(--wp--preset--color--primary, #0073aa);
    border-bottom-color: var(--wp--preset--color--primary, #0073aa);
}

/* ── User Meta: full width of parent container ──────────────────────────── */
.scdev-public-profile {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.scdev-public-profile .pub-profile-hero-shell {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
}

/* ── User Meta: hero (full-viewport showcase + glass side rail) ─────────── */
.scdev-public-profile #pub-profile-banner.pub-profile-hero {
    position: relative;
    height: 100%;
    min-height: 480px;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.scdev-public-profile .pub-profile-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #dbeafe;
    background: linear-gradient(135deg, #c7d2fe 0%, #fbcfe8 50%, #bae6fd 100%);
    /* background-size / position / repeat set via PHP inline style */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ── Unified Top Bar Header across the profile ───────────────────────────── */
.scdev-public-profile .pub-profile-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
    box-sizing: border-box;
}

.scdev-public-profile .pub-profile-top-bar-inner {
    pointer-events: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 8px;
    column-gap: 16px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-top: none;
    border-left: none;
    border-radius: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

/* Left Section: Back button + Avatar + Names */
.scdev-public-profile .pub-profile-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
    order: 1;
    flex: 0 0 auto;
}

.scdev-public-profile .pub-profile-top-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f8fafc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.scdev-public-profile .pub-profile-top-back:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.scdev-public-profile .pub-profile-top-back-icon {
    font-size: 14px;
    line-height: 1;
}

.scdev-public-profile .pub-profile-top-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scdev-public-profile .pub-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.scdev-public-profile .pub-profile-avatar--top {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    display: block;
}

.scdev-public-profile .pub-profile-top-names {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scdev-public-profile .pub-profile-name--top {
    margin: 0;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.2;
    color: #25d07f;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.scdev-public-profile .pub-profile-username--top {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.2;
    white-space: nowrap;
}

/* Stats Pills underneath on a full-width line */
.scdev-public-profile .pub-profile-top-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    flex-wrap: wrap;
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.scdev-public-profile .pub-stat--pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    text-decoration: none;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.scdev-public-profile .pub-stat--pill:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(125, 211, 252, 0.35);
    transform: translateY(-1px);
}

.scdev-public-profile .pub-stat--pill.pub-stat--static {
    cursor: default;
    transform: none;
}

.scdev-public-profile .pub-stat--pill .pub-stat-count {
    font-weight: 700;
    color: #7dd3fc;
}

.scdev-public-profile .pub-stat--pill .pub-stat-label {
    font-weight: 500;
    color: rgba(241, 245, 249, 0.9);
}

/* Right Section: Buttons & Dropdowns */
.scdev-public-profile .pub-profile-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 2;
    margin-left: auto;
    flex: 0 0 auto;
}

.scdev-public-profile .pub-profile-action-dropdown-wrap {
    position: relative;
}

.scdev-public-profile .pub-profile-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.3;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.scdev-public-profile .pub-profile-top-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

.scdev-public-profile .pub-profile-dropdown-box {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    min-width: 280px;
    max-width: 340px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    padding: 14px;
    box-sizing: border-box;
    color: #f8fafc;
}

.scdev-public-profile .pub-profile-banner-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    padding: 14px;
    box-sizing: border-box;
    color: #f8fafc;
}

.scdev-public-profile .pub-profile-info-box-title {
    margin: 0 0 8px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.scdev-public-profile .pub-profile-info-box-content {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.4;
}

.scdev-public-profile .pub-profile-dropdown-box select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.scdev-public-profile .pub-profile-approval-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.scdev-public-profile .pub-profile-info-box-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
}

.scdev-public-profile .pub-settings-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.96);
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.scdev-public-profile .pub-settings-save-btn:hover {
    background: #ffffff;
    color: #4b5563;
}

a.scdev-user-meta-gate-back {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.35);
}

a.scdev-user-meta-gate-back:hover {
    background: rgba(59, 130, 246, 0.28);
}

a.scdev-user-meta-gate-back--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.5);
    color: inherit;
}

/* ── Day Mode UI Styling ── */
body:not(.night-mode) .scdev-public-profile .pub-profile-top-bar-inner,
body.day-mode .scdev-public-profile .pub-profile-top-bar-inner {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
body:not(.night-mode) .scdev-public-profile .pub-profile-top-back,
body.day-mode .scdev-public-profile .pub-profile-top-back {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1e293b;
}
body:not(.night-mode) .scdev-public-profile .pub-profile-avatar--top,
body.day-mode .scdev-public-profile .pub-profile-avatar--top {
    border-color: rgba(0, 0, 0, 0.15);
}
body:not(.night-mode) .scdev-public-profile .pub-profile-name--top,
body.day-mode .scdev-public-profile .pub-profile-name--top {
    color: #16a34a;
    text-shadow: none;
}
body:not(.night-mode) .scdev-public-profile .pub-profile-username--top,
body.day-mode .scdev-public-profile .pub-profile-username--top {
    color: #64748b;
}
body:not(.night-mode) .scdev-public-profile .pub-stat--pill,
body.day-mode .scdev-public-profile .pub-stat--pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}
body:not(.night-mode) .scdev-public-profile .pub-stat--pill .pub-stat-count,
body.day-mode .scdev-public-profile .pub-stat--pill .pub-stat-count {
    color: #2563eb;
}
body:not(.night-mode) .scdev-public-profile .pub-stat--pill .pub-stat-label,
body.day-mode .scdev-public-profile .pub-stat--pill .pub-stat-label {
    color: #475569;
}
body:not(.night-mode) .scdev-public-profile .pub-profile-top-btn,
body.day-mode .scdev-public-profile .pub-profile-top-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1e293b;
}
body:not(.night-mode) .scdev-public-profile .pub-profile-dropdown-box,
body.day-mode .scdev-public-profile .pub-profile-dropdown-box {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.14);
    color: #1e293b;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}
body:not(.night-mode) .scdev-public-profile .pub-banner-label,
body:not(.night-mode) .scdev-public-profile .pub-profile-info-box-title,
body.day-mode .scdev-public-profile .pub-banner-label,
body.day-mode .scdev-public-profile .pub-profile-info-box-title {
    color: #334155;
}
body:not(.night-mode) .scdev-public-profile .pub-banner-file,
body:not(.night-mode) .scdev-public-profile .pub-profile-info-box-content,
body.day-mode .scdev-public-profile .pub-banner-file,
body.day-mode .scdev-public-profile .pub-profile-info-box-content {
    color: #475569;
}
body:not(.night-mode) .scdev-public-profile .pub-banner-html,
body:not(.night-mode) .scdev-public-profile .pub-profile-dropdown-box select,
body.day-mode .scdev-public-profile .pub-banner-html,
body.day-mode .scdev-public-profile .pub-profile-dropdown-box select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

/* ── Responsive Mobile Styling for Public Profile ── */
@media (max-width: 768px) {
    .scdev-public-profile .pub-profile-top-bar {
        position: relative !important;
        width: 100% !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }
    .scdev-public-profile .pub-profile-top-bar-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 10px !important;
        gap: 8px !important;
        border-radius: 16px !important;
    }
    /* Mobile Back button: fixed on left edge directly under the sidebar toggle tab */
    .scdev-public-profile .pub-profile-top-back {
        position: fixed !important;
        top: calc(50% + 24px) !important;
        left: 2px !important;
        z-index: 99999 !important;
        width: 22px !important;
        height: 32px !important;
        padding: 0 !important;
        border-radius: 4px 8px 8px 4px !important;
        background: #16a34a !important;
        border: 1px solid rgba(255, 255, 255, 0.28) !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
        text-decoration: none !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }
    .scdev-public-profile .pub-profile-top-back:hover {
        background: #15803d !important;
        color: #ffffff !important;
        width: 25px !important;
    }
    .scdev-public-profile .pub-profile-top-back-text {
        display: none !important;
    }
    .scdev-public-profile .pub-profile-top-back-icon {
        font-size: 13px !important;
        line-height: 1 !important;
        margin: 0 !important;
        color: #ffffff !important;
    }
    .scdev-public-profile .pub-profile-top-left {
        display: flex !important;
        width: 100% !important;
        order: 1 !important;
    }

    /* Next row: Avatar + Name on left, More Details on right in the same line */
    .scdev-public-profile .pub-profile-top-identity {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .scdev-public-profile .pub-profile-avatar-wrap {
        flex-shrink: 0 !important;
    }
    .scdev-public-profile .pub-profile-avatar--top {
        width: 48px !important;
        height: 48px !important;
        display: block !important;
    }
    .scdev-public-profile .pub-profile-top-names {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .scdev-public-profile .pub-profile-name--top {
        font-size: 15px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .scdev-public-profile .pub-profile-username--top {
        font-size: 12px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .scdev-public-profile .pub-profile-identity-details-btn {
        margin-left: auto !important;
        align-self: center !important;
        flex-shrink: 0 !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
    }

    /* Stats Pills row on mobile: neatly below identity */
    .scdev-public-profile .pub-profile-top-stats {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px 6px !important;
        flex-wrap: wrap !important;
        order: 2 !important;
        width: 100% !important;
        padding: 6px 0 2px 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        overflow: visible !important;
    }

    /* Action buttons row on mobile */
    .scdev-public-profile .pub-profile-top-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        order: 3 !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
    .scdev-public-profile .pub-profile-top-btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
    }
        justify-content: center !important;
        gap: 6px 8px !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        padding: 6px 0 2px 0 !important;
        overflow: visible !important;
    }
    
    /* Horizontal pill badges */
    .scdev-public-profile .pub-stat,
    .scdev-public-profile .pub-stat--pill,
    body.night-mode .scdev-public-profile .pub-stat,
    body.night-mode .scdev-public-profile .pub-stat--pill {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        padding: 5px 11px !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    .scdev-public-profile .pub-stat .pub-stat-count,
    .scdev-public-profile .pub-stat--pill .pub-stat-count,
    body.night-mode .scdev-public-profile .pub-stat .pub-stat-count,
    body.night-mode .scdev-public-profile .pub-stat--pill .pub-stat-count {
        font-size: 12px !important;
        font-weight: 700 !important;
    }
    .scdev-public-profile .pub-stat .pub-stat-label,
    .scdev-public-profile .pub-stat--pill .pub-stat-label,
    body.night-mode .scdev-public-profile .pub-stat .pub-stat-label,
    body.night-mode .scdev-public-profile .pub-stat--pill .pub-stat-label {
        font-size: 10px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
    }
    
    .scdev-public-profile .pub-profile-hero {
        min-height: auto !important;
        border-radius: 16px !important;
        margin-bottom: 16px !important;
    }
    .scdev-public-profile .pub-profile-hero-bg {
        border-radius: 16px !important;
    }
}

/* Social links */
.scdev-public-profile .pub-profile-social-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 38px;
    max-height: 38px;
    margin: 0;
}
