:root {
    /* Color Palette - Light Theme (Default) */
    --primary-color: #63123a;
    --primary-dark: #4a0d2b;
    --secondary-color: #f72e91;
    --secondary-hover: #d6257a;

    --bg-body: #ffffff;
    /* Brighter happier background */
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;

    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --border-color: #e9ecef;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);

    /* Spacing & Layout */
    --sidebar-width: 260px;
    --header-height: 70px;
    --border-radius: 12px;
    --transition-speed: 0.2s;
}

/* Dark Theme Overrides */
body.dark-mode {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-sidebar: #1e1e1e;

    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #333333;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
}


/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    font-size: 0.95rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(99, 18, 58, 0.05);
}

/* App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo-container {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.logo {
    height: 32px;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.nav-links {
    flex: 0 0 auto;
    /* Do not grow, take natural size */
    padding: 1rem;
    overflow: hidden;
    /* No scrollbars */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    /* Compact padding */
    color: var(--text-muted);
    border-radius: 8px;
    margin-bottom: 0.1rem;
    /* Compact margin */
    font-weight: 500;
    transition: all var(--transition-speed);
}

.nav-item i {
    font-size: 1.25rem;
    margin-right: 1rem;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(99, 18, 58, 0.08);
    /* Light primary background */
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.upgrade-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    color: white;
    box-shadow: 0 4px 15px rgba(247, 46, 145, 0.3);
    transition: transform 0.2s;
}

.upgrade-card:hover {
    transform: translateY(-2px);
}

.upgrade-card .icon {
    font-size: 1.5rem;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upgrade-card .text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.upgrade-card .text p {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    max-width: 1400px;
    /* Limit max width on large screens */
    width: 100%;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    height: 40px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

@media (min-width: 769px) {
    .page-title {
        display: none !important;
    }
}

/* User Header Profile */
.user-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.user-profile-header .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-header .info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-profile-header .info .name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.user-profile-header .info .username {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Profile Dropdown */
.profile-dropdown-container {
    position: relative;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.user-profile-header:hover {
    opacity: 0.8;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 180px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    display: flex;
    animation: fadeIn 0.15s ease-out;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: background 0.1s;
}

.dropdown-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-btn {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-muted);
    /* Softer icon color */
    box-shadow: none;
    position: relative;
    transition: all 0.2s;
}

.notification-btn:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.badge-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background: #ff0000;
    border-radius: 50%;
    border: 1px solid white;
}

/* Responsive Grid/Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Mobile Nav */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid var(--border-color);
    height: 60px;
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .user-profile-header .info {
        display: none;
    }

    /* Hide name on tablet, show avatar only */
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 1.25rem;
        margin-bottom: 70px;
        /* Space for bottom nav */
        width: 100%;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .top-bar {
        margin: -1.25rem -1.25rem 1.5rem -1.25rem;
        padding: 1.25rem 1.25rem 25px 1.25rem;
        /* Increased bottom padding for longer height */
        background: var(--container-color, #fff);
    }

    .user-header-actions {
        gap: 1rem;
        flex-direction: row-reverse;
        /* Notification first, then Avatar on mobile */
    }

    .notification-btn {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .user-header-actions .user-profile-link {
        display: none;
        /* Hide profile picture on mobile */
    }

    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .bottom-nav .nav-item {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
        color: #888;
        font-size: 0.7rem;
    }

    /* Mobile Hover/Active State */
    .bottom-nav .nav-item.active,
    .bottom-nav .nav-item:hover {
        color: var(--secondary-color) !important;
    }

    .bottom-nav .nav-item i {
        margin: 0;
        font-size: 1.4rem;
        margin-bottom: 2px;
    }

    .bottom-nav .nav-item.active {
        color: var(--primary-color);
        background: transparent;
    }

    .bottom-nav .nav-item.highlight {
        background: var(--secondary-color);
        color: white;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        transform: translateY(-20px);
        box-shadow: 0 4px 10px rgba(247, 46, 145, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Force highlight style even when active */
    .bottom-nav .nav-item.highlight.active {
        color: white !important;
        background: var(--secondary-color) !important;
    }

    .bottom-nav .nav-item.highlight i {
        font-size: 1.8rem;
        margin: 0;
    }
}

/* Profile Page Responsive */
.profile-header {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.profile-header .cover-image {
    height: 150px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.profile-header .profile-content {
    padding: 1.5rem;
    position: relative;
}

.profile-header .avatar-large {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 50%;
    border: 4px solid white;
    position: absolute;
    top: -50px;
    left: 20px;
    overflow: hidden;
}

.profile-header .avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header .actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.profile-details {
    margin-top: 10px;
}

@media (max-width: 576px) {
    .profile-header .cover-image {
        height: 120px;
    }

    .profile-header .avatar-large {
        width: 80px;
        height: 80px;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
    }

    .profile-header .actions {
        justify-content: center;
        margin-top: 45px;
    }

    .profile-details {
        text-align: center;
    }
}

/* =========================================
   Inbox Styling (Refactored)
   ========================================= */
.inbox-container {
    display: flex;
    height: calc(100vh - 180px);
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Chat List Panel */
.chat-list {
    width: 320px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: #fff;
}

.chat-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.chat-items {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.chat-item:hover {
    background: #f8f9fa;
}

.chat-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-info {
    flex: 1;
    min-width: 0;
    /* Text truncation fix */
}

.chat-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.chat-preview {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat Area Panel */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fafafa;
}

.message-feed {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.message {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
    align-items: flex-end;
}

.message .bubble {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message.received .bubble {
    background: white;
    border: 1px solid var(--border-color);
    border-top-left-radius: 0;
}

.message.sent .bubble {
    background: var(--primary-color);
    color: white;
    border-top-right-radius: 0;
}

.message .time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.message-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.msg-input {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.msg-input:focus {
    border-color: var(--primary-color);
}

.send-btn {
    padding: 0 1.25rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   Mobile Responsiveness Improvements
   ========================================= */
@media (max-width: 768px) {

    /* Fix Inbox Mobile Stacking */
    .chat-list {
        width: 100%;
        height: 300px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
    }

    .chat-area {
        display: flex;
        height: 500px;
        width: 100%;
    }
}

/* =========================================
   Toggle Switch (Settings)
   ========================================= */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* =========================================
   New Semantic Profile Styling
   ========================================= */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.profile-cover {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.profile-main-info {
    padding: 1.5rem;
    position: relative;
    padding-top: 4.5rem;
    /* Space for avatar */
}

.profile-avatar-container {
    width: 120px;
    height: 120px;
    position: absolute;
    top: -60px;
    left: 2rem;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-actions-desktop {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.profile-text-info {
    margin-bottom: 1.5rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-badge {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.profile-username {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.profile-bio {
    color: var(--text-main);
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.profile-category-tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

body.dark-mode .profile-category-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Profile Stats Row */
.profile-stats-row {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.01);
}

.profile-stat-item {
    flex: 1;
    text-align: center;
}

.profile-stat-item:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Toggles & Content */
.profile-content-toggles {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-toggle-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-size: 1rem;
}

.profile-toggle-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Items Grid (Services/Campaigns) */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.item-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.item-icon-placeholder {
    height: 120px;
    background: rgba(99, 18, 58, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.item-details {
    padding: 1rem;
}

.item-details h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.item-price {
    font-weight: 700;
    color: var(--secondary-color);
}

.item-status {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.status-active {
    background: #e0f7fa;
    color: #00796b;
    border: 1px solid #00796b;
}

.status-inactive {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

/* Posts Feed */
.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.post-content {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.post-media-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    background: rgba(247, 46, 145, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sidebar Settings (Desktop) */
.sidebar-bottom-settings {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Mobile Profile Settings Link */
.profile-settings-mobile {
    display: none;
    margin-top: 2rem;
}

/* Desktop/Mobile specific visibilities */
@media (max-width: 768px) {
    .profile-actions-desktop {
        display: none;
        /* Could move edit button elsewhere or keep it if space allows, 
           but user asked for mobile specific settings link. */
    }

    .profile-settings-mobile {
        display: block;
    }

    .profile-avatar-container {
        left: 50%;
        transform: translateX(-50%);
    }

    .profile-main-info {
        text-align: center;
    }

    .profile-name {
        justify-content: center;
    }

    .profile-bio {
        margin: 0.5rem auto;
    }
}

@media (min-width: 769px) {
    .profile-settings-mobile {
        display: none !important;
    }
}

/* =========================================
   Fixes for User Feedback (Monetize, Sidebar, Avatar, Stats)
   ========================================= */

/* 1. Monetize Page Styling */
.monetize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.monetize-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monetize-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.monetize-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    background: rgba(99, 18, 58, 0.05);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.monetize-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
}

.monetize-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex: 1;
}

/* 2. Sidebar Scrollbar Hide (The "slider-thing") */
.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* 3. Header Avatar Fix (Notification Side) */
.user-header-actions .user-profile-link .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    display: flex;
}

.user-header-actions .user-profile-link .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. Profile Stats Mobile Fix (Text overflow) */
@media (max-width: 480px) {
    .profile-stats-row {
        gap: 5px;
        padding: 1rem 0.5rem;
    }

    .profile-stat-item {
        padding: 0 2px;
    }

    .stat-label {
        font-size: 0.65rem;
        line-height: 1.1;
        white-space: normal;
        word-break: break-word;
    }

    .stat-number {
        font-size: 1.1rem;
    }
}

/* =========================================
   Page Loading Indicator
   ========================================= */
#loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--secondary-color);
    z-index: 9999;
    transition: width 0.3s ease-out, opacity 0.3s ease;
    box-shadow: 0 0 10px rgba(247, 46, 145, 0.5);
}