:root {
    --body-bg: #f3f7f6;
    --surface: #ffffff;
    --surface-alt: #f8fbfa;
    --border-soft: #e3ecea;
    --brand: #1d9a8a;
    --brand-dark: #106c62;
    --brand-light: rgba(29, 154, 138, 0.14);
    --brand-start: #1d9a8a;
    --brand-end: #6a60f0;
    --text-primary: #1f2a30;
    --text-muted: #5f6f7a;
    --shadow-soft: 0 24px 48px rgba(16, 108, 98, 0.12);
    --shadow-hover: 0 30px 60px rgba(16, 108, 98, 0.16);
    --radius-large: 18px;
    --radius-medium: 14px;
    --radius-pill: 999px;
}

/* Verification Banner */
.verification-banner {
    position: fixed;
    top: 78px; /* Position below the sticky header */
    left: 0;
    right: 0;
    z-index: 1040; /* Lower than navbar z-index */
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(29, 154, 138, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideDown 0.5s ease-out;
}

.verification-banner:hover {
    transform: translateY(2px);
    box-shadow: 0 6px 25px rgba(29, 154, 138, 0.25);
    background: linear-gradient(135deg, #1a8a7a, #5a50e0);
}

.verification-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.verification-banner-icon {
    color: #fff;
    font-size: 1.1rem;
    margin-right: 12px;
    animation: pulse 2s infinite;
}

.verification-banner-text {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    letter-spacing: 0.3px;
    flex: 1;
}

.verification-banner-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.verification-banner-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.verification-banner-close i {
    font-size: 0.9rem;
}

/* Banner animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Adjust feed wrapper when banner is present */
.feed-wrapper {
    padding-top: 0;
    transition: padding-top 0.3s ease;
}

.verification-banner + .toggle-drawer,
.verification-banner ~ .feed-grid {
    margin-top: 50px; /* Space for banner below header */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .verification-banner-content {
        padding: 10px 15px;
    }

    .verification-banner-text {
        font-size: 0.875rem;
        padding-right: 40px;
    }

    .verification-banner-close {
        right: 10px;
        width: 28px;
        height: 28px;
    }

    .verification-banner + .toggle-drawer,
    .verification-banner ~ .feed-grid {
        margin-top: 45px; /* Reduced space for mobile */
    }
}

@media (max-width: 480px) {
    .verification-banner-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .verification-banner-icon {
        font-size: 1rem;
        margin-right: 8px;
    }
}

/* Hide banner when dismissed */
.verification-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Roboto", "Open Sans", sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
}

.feed-wrapper {
    padding: 8px 0 120px;
    background: var(--body-bg);
}

.feed-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 320px;
    grid-template-areas: "sidebar feed right";
    gap: 28px;
    align-items: start;
}

.sidebar {
    grid-area: sidebar;
    background: var(--surface);
    border-radius: var(--radius-large);
    padding: 28px 24px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(29, 154, 138, 0.3);
    border-radius: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* ── Moderator View Switcher ──────────────────────────────── */
.mod-switcher {
    position: relative;
    margin-bottom: 20px;
}
/* ── Trigger button ── */
.mod-switcher__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-medium);
    background: var(--surface-alt);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}
.mod-switcher__trigger:hover {
    background: var(--brand-light);
    border-color: var(--brand);
}
.mod-switcher__trigger:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.mod-switcher__trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}
.mod-switcher--active .mod-switcher__trigger-icon {
    background: linear-gradient(135deg, #6a60f0, #e91e63);
}
.mod-switcher__trigger-label {
    flex: 1;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mod-switcher__trigger-chevron {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}
.mod-switcher__trigger[aria-expanded="true"] .mod-switcher__trigger-chevron {
    transform: rotate(180deg);
}
.mod-switcher__trigger--loading {
    opacity: 0.6;
    pointer-events: none;
}
.mod-switcher__trigger--loading .mod-switcher__trigger-chevron::before {
    content: "\f110"; /* fa-spinner */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    animation: mod-spin 0.8s linear infinite;
}
@keyframes mod-spin { to { transform: rotate(360deg); } }

/* ── Preview-mode status bar ── */
.mod-switcher__status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(106,96,240,0.08), rgba(233,30,99,0.06));
    border: 1px solid rgba(106,96,240,0.18);
}
.mod-switcher__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6a60f0;
    animation: mod-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes mod-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.mod-switcher__status-text {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6a60f0;
}
.mod-switcher__reset {
    border: none;
    background: rgba(106,96,240,0.12);
    color: #6a60f0;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    min-height: 28px;
}
.mod-switcher__reset:hover {
    background: rgba(106,96,240,0.22);
}
.mod-switcher__reset:focus-visible {
    outline: 2px solid #6a60f0;
    outline-offset: 1px;
}

/* ── Dropdown panel ── */
.mod-switcher__panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-medium);
    box-shadow: 0 12px 40px rgba(16, 108, 98, 0.15), 0 2px 8px rgba(0,0,0,0.06);
    padding: 6px;
    max-height: 400px;
    overflow-y: auto;
}
.mod-switcher__panel--open {
    display: block;
    animation: mod-slide-in 0.15s ease-out;
}
@keyframes mod-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mod-switcher__panel-header {
    padding: 8px 10px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}
.mod-switcher__divider {
    height: 1px;
    background: var(--border-soft);
    margin: 4px 8px;
}

/* ── Option row ── */
.mod-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease;
    min-height: 48px;
    text-align: left;
}
.mod-switcher__option:hover {
    background: var(--surface-alt);
}
.mod-switcher__option:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}
.mod-switcher__option--selected {
    background: var(--brand-light);
}
.mod-switcher__option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--opt-bg, rgba(29,154,138,0.1));
    color: var(--opt-color, var(--brand));
    font-size: 14px;
    flex-shrink: 0;
}
.mod-switcher__option-icon--mod {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
}
.mod-switcher__option-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.mod-switcher__option-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}
.mod-switcher__option-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.mod-switcher__option-check {
    color: var(--brand);
    font-size: 12px;
    flex-shrink: 0;
}

.sidebar .profile {
    text-align: center;
    margin-bottom: 28px;
}

.profile-ring {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--brand) 0%, #83e0c8 100%);
    padding: 4px;
}

#profileImage.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface);
}

.sidebar .user-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar .category {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: var(--brand-dark);
    font-weight: 600;
}

.sidebar .subscription {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.sidebar-nav ul li {
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-soft);
    background: var(--surface-alt);
    box-shadow: inset 0 0 0 1px rgba(29, 154, 138, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sidebar-nav ul li:hover {
    transform: translateY(-2px);
    background: var(--brand-light);
    box-shadow: var(--shadow-soft);
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.sidebar-nav ul li i {
    font-size: 1rem;
    color: var(--brand);
}

.toggle-drawer {
    position: fixed;
    left: 20px;
    bottom: 80px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: var(--brand);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2100;
    transition: transform 0.2s ease;
}

.toggle-drawer:hover {
    transform: translateY(-2px);
}

.sidebar-back {
    display: none;
    width: 100%;
    margin-bottom: 18px;
    border: none;
    border-radius: var(--radius-medium);
    background: var(--surface-alt);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 16px;
}

.feed {
    grid-area: feed;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 620px;
    width: 100%;
}

.feed.with-sidebar {
    margin-left: 0;
}

.messages .alert {
    border-radius: var(--radius-medium);
    padding: 12px 16px;
    font-size: 0.9rem;
}

.write-post {
    background: var(--surface);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.write-post textarea {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-medium);
    padding: 16px 18px;
    resize: none;
    font-size: 1rem;
    color: var(--text-muted);
    background: var(--surface-alt);
    cursor: pointer;
}

.write-post textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(29, 154, 138, 0.2);
    background: #ffffff;
}

.write-post .actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.write-post .action-item {
    flex: 1;
    min-width: 120px;
    min-height: 86px;
    border-radius: var(--radius-large);
    background: var(--surface-alt);
    border: 1px dashed var(--border-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-align: center;
}

.write-post .action-item i {
    font-size: 1.3rem;
    color: var(--brand);
}

.write-post .action-item:hover {
    transform: translateY(-2px);
    background: var(--brand-light);
    box-shadow: var(--shadow-soft);
}

.feed-container {
    display: grid;
    gap: 24px;
}

.post {
    background: var(--surface);
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e8e8e8;
    padding: 20px 4px;
    transition: none;
}

.post:hover {
    transform: none;
    box-shadow: none;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.post-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.post-info {
    flex: 1;
    min-width: 0;
}

.post-info .user-name {
    margin: 0;
    font-size: 1rem;
}

.post-info .profile-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.post-info .profile-link:hover {
    color: var(--brand);
}

.post-time {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-content {
    margin-bottom: 18px;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
}

.post-media-grid {
    margin-top: 16px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.post-media-grid.single-media {
    grid-template-columns: 1fr;
}

.post-media-grid img {
    width: 100%;
    height: 220px;
    border-radius: var(--radius-medium);
    object-fit: cover;
    box-shadow: 0 16px 32px rgba(16, 108, 98, 0.12);
}

.post-media-grid.single-media img {
    height: auto;
    max-height: 420px;
}

.post-stats {
    border-radius: 0;
    background: transparent;
    padding: 0 2px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 14px;
}

.post-stats .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-stats i {
    display: none;
}

.dot-separator {
    color: rgba(95, 111, 122, 0.3);
    font-size: 0.6rem;
}

.post-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 12px 0;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.post-actions button {
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.post-actions button i {
    color: inherit;
    font-size: 1.2rem;
}

.post-actions button:hover,
.post-actions button:focus {
    background: rgba(0, 0, 0, 0.04);
    outline: none;
    transform: none;
    box-shadow: none;
}

.post-actions .like-btn.liked {
    color: #e8907e;
}

.post-actions .bookmark-btn {
    margin-left: auto;
}

.post-actions .bookmark-btn.bookmarked {
    color: var(--brand-dark);
}

.comment-section {
    margin-top: 18px;
    border-radius: var(--radius-medium);
    background: var(--surface-alt);
    padding: 16px;
}

.comment {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(227, 236, 234, 0.6);
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 20px rgba(17, 122, 109, 0.18);
}

.comment-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.comment-author:hover {
    color: var(--brand);
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.comment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: var(--radius-pill);
    background: rgba(29, 154, 138, 0.12);
    color: var(--brand-dark);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.comment-like-btn i {
    font-size: 0.85rem;
}

.comment-like-btn:hover,
.comment-like-btn:focus {
    transform: translateY(-1px);
    background: rgba(29, 154, 138, 0.18);
    box-shadow: 0 12px 24px rgba(16, 108, 98, 0.16);
}

.comment-likes {
    font-weight: 600;
}

.pending-btn {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.15);
}

.accept-btn {
    background: linear-gradient(135deg, var(--brand), #44c0a7);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(29, 154, 138, 0.2);
}

.reject-btn {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.15);
}

.cancel-btn {
    background: linear-gradient(135deg, #e2e8f0, #cbd5f5);
    color: #1f2937;
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.18);
}



.accept-btn:hover,
.accept-btn:focus,
.pending-btn:hover,
.pending-btn:focus,
.reject-btn:hover,
.reject-btn:focus,
.cancel-btn:hover,
.cancel-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(17, 122, 109, 0.22);
    color: inherit;
}

.right-sidebar {
    grid-area: right;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
    align-self: start;
}

/* ── Streak Top Bar (above services bar) ── */
.streak-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(31, 191, 184, 0.06) 0%, rgba(68, 192, 167, 0.1) 100%);
    border: 1px solid rgba(31, 191, 184, 0.18);
    border-radius: var(--radius-large);
    box-shadow: 0 2px 8px rgba(31, 191, 184, 0.08);
}

.streak-topbar__left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.streak-topbar__fire {
    display: flex;
    align-items: center;
    gap: 6px;
}

.streak-topbar__flame {
    font-size: 1.3rem;
    animation: streak-pulse 2s ease-in-out infinite;
}

@keyframes streak-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.streak-topbar__count {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.streak-topbar__num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}

.streak-topbar__unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.streak-topbar__divider {
    width: 1px;
    height: 24px;
    background: rgba(31, 191, 184, 0.25);
}

.streak-topbar__dots {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.streak-topbar__dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.streak-topbar__dot-label {
    font-size: 0.55rem;
    font-weight: 700;
    color: #b0b8c4;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.streak-topbar__dot::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #bfc6d0;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.streak-topbar__dot--active::after {
    background: linear-gradient(135deg, var(--brand-start, #1fbfb8), var(--brand-end, #44c0a7));
    box-shadow: 0 0 8px rgba(31, 191, 184, 0.4);
}

.streak-topbar__dot--active .streak-topbar__dot-label {
    color: var(--brand);
}

.streak-topbar__best {
    font-size: 0.68rem;
    color: #9ba5b0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Right Sidebar Streak Widget (desktop) ── */
.streak-widget {
    border-radius: var(--radius-large);
    padding: 22px 20px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--brand);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.streak-widget__header {
    margin-bottom: 16px;
}

.streak-widget__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.streak-widget__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 18px;
}

.streak-widget__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.streak-widget__emoji {
    font-size: 1.6rem;
    animation: streak-pulse 2s ease-in-out infinite;
}

.streak-widget__num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.1;
}

.streak-widget__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.streak-widget__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(31, 191, 184, 0.2);
}

.streak-widget__week {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.streak-widget__dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.streak-widget__dot-letter {
    font-size: 0.6rem;
    font-weight: 700;
    color: #b0b8c4;
    text-transform: uppercase;
}

.streak-widget__dot::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e4ea;
    transition: all 0.3s ease;
}

.streak-widget__dot--active::after {
    background: linear-gradient(135deg, var(--brand-start, #1fbfb8), var(--brand-end, #44c0a7));
    box-shadow: 0 0 8px rgba(31, 191, 184, 0.4);
}

.streak-widget__dot--active .streak-widget__dot-letter {
    color: var(--brand);
}

.streak-widget__best {
    text-align: center;
    font-size: 0.72rem;
    color: #9ba5b0;
    padding-top: 4px;
    border-top: 1px solid var(--border-soft);
}

/* ── Nearby Community Widget ── */
.nearby-widget {
    border-radius: var(--radius-large);
    padding: 28px 24px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid var(--border-soft);
}

.nearby-widget__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.nearby-widget__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.nearby-widget__desc {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.nearby-widget__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.nearby-widget__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29, 154, 138, 0.3);
    color: #fff;
}

.events-card {
    border-radius: var(--radius-large);
    padding: 26px 24px;
    background: linear-gradient(135deg, #d1f5ec 0%, #ffffff 100%);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.events-card h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: var(--brand-dark);
}

.events-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

footer {
    text-align: center;
    padding: 32px 0 48px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── Sticky Top (Services + Composer) ── */

.sd-sticky-top {
    position: sticky;
    top: 78px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--body-bg);
    padding: 4px 0 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}


/* ── Services Bar ── */

.sd-services-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    margin-bottom: 0;
    background: var(--surface);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sd-services-bar::-webkit-scrollbar {
    display: none;
}

.sd-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 8px;
    border-radius: var(--radius-medium);
    background: var(--surface-alt);
    border: 1px solid var(--border-soft);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.sd-service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(29, 154, 138, 0.12), rgba(106, 96, 240, 0.08));
    transition: all 0.25s ease;
}

.sd-service-icon i {
    font-size: 1.3rem;
    color: var(--brand);
    transition: all 0.25s ease;
}

.sd-service-label {
    font-size: 0.68rem;
    font-weight: 400;
    color: #8896a4;
    text-align: center;
    white-space: nowrap;
}

.sd-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 154, 138, 0.18);
    border-color: var(--brand);
    text-decoration: none;
    background: var(--surface);
}

.sd-service-card:hover .sd-service-icon {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

.sd-service-card:hover .sd-service-icon i {
    color: #fff;
}

.sd-service-card:hover .sd-service-label {
    color: #5b6875;
}

/* Responsive adjustments */

@media (max-width: 1200px) {
    .feed-grid {
        grid-template-columns: 240px minmax(0, 1fr);
        grid-template-areas:
            "sidebar feed"
            "sidebar right";
    }

    .right-sidebar {
        align-self: stretch;
    }
}

@media (max-width: 992px) {
    .feed-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "feed"
            "sidebar";
        overflow-x: clip;
    }

    .right-sidebar {
        display: none;
    }

    /* Streak topbar shown on mobile/tablet via d-lg-none */
    .streak-topbar {
        padding: 14px 16px;
        gap: 12px;
        justify-content: center;
        background: #ffffff;
        border: 1.5px solid rgba(31, 191, 184, 0.3);
        box-shadow: 0 2px 12px rgba(31, 191, 184, 0.15);
    }

    .streak-topbar__left {
        gap: 14px;
    }

    .streak-topbar__flame {
        font-size: 1.3rem;
    }

    .streak-topbar__num {
        font-size: 1.5rem;
    }

    .streak-topbar__unit {
        font-size: 0.72rem;
    }

    .streak-topbar__divider {
        height: 24px;
    }

    .streak-topbar__dots {
        gap: 6px;
        margin-left: 0;
        padding-left: 12px;
        border-left: 1.5px solid rgba(31, 191, 184, 0.25);
    }

    .streak-topbar__dot {
        gap: 2px;
    }

    .streak-topbar__dot::after {
        width: 13px;
        height: 13px;
    }

    .streak-topbar__dot-label {
        font-size: 0.5rem;
        font-weight: 800;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -110%;
        height: 100%;
        max-width: 320px;
        width: 82%;
        padding: 84px 24px 24px;
        z-index: 2000;
        overflow-y: auto;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
        transition: left 0.3s ease;
    }

    .sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(29, 154, 138, 0.4);
        border-radius: 8px;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar.hidden {
        left: -110%;
    }

    .sidebar-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .toggle-drawer {
        display: inline-flex;
    }

    .feed.with-sidebar {
        margin-left: 0;
    }

    .sd-sticky-top {
        top: 72px;
    }
}

@media (max-width: 768px) {
    .write-post .actions {
        gap: 12px;
    }

    .post-actions {
        gap: 0;
    }

    .post-media-grid img {
        height: 180px;
    }

    .post-media-grid.single-media img {
        max-height: 280px;
    }

    .comment {
        gap: 10px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }

    .sd-services-bar {
        gap: 8px;
        padding: 14px;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .sd-service-card {
        min-width: 0;
        flex: 1 1 0;
        padding: 10px 6px;
    }

    .sd-service-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .sd-service-icon i {
        font-size: 1.1rem;
    }

    .sd-service-label {
        font-size: 0.62rem;
    }
}

@media (max-width: 576px) {
    .feed-wrapper {
        padding: 4px 0 80px;
    }

    .sd-sticky-top {
        top: 54px;
    }

    .write-post {
        padding: 20px;
    }

    .post {
        padding: 16px 12px;
    }

    .post-divider {
        margin: 10px 0;
    }

    .post-actions button span:not(.sd-action-count) {
        display: none;
    }

    .post-actions button {
        padding: 8px;
    }

    .post-actions button i {
        font-size: 1.3rem;
    }

    .sd-services-bar {
        gap: 6px;
        padding: 10px;
        margin-bottom: 12px;
        border-radius: var(--radius-medium);
        justify-content: center;
        flex-wrap: nowrap;
    }

    .sd-service-card {
        min-width: 0;
        flex: 1 1 0;
        padding: 8px 2px;
        overflow: hidden;
    }

    .sd-service-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .sd-service-icon i {
        font-size: 0.95rem;
    }

    .sd-service-label {
        font-size: 0.6rem;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

/* 🌟 Base style for all follow/friend buttons */
.btn-follow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Specific states */
.friend-btn {
    background: linear-gradient(135deg, #dbeafe, #60a5fa);
    color: #1e40af;
}

.following-btn {
    background: linear-gradient(135deg, #bbf7d0, #22c55e);
    color: #14532d;
}

.follow-btn {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
}

.pending-btn {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.accept-btn {
    background: linear-gradient(135deg, var(--brand), #44c0a7);
    color: #ffffff;
}

.reject-btn {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Hover effects */
.btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    opacity: 0.95;
}

/* Container alignment */
.follow-btn-container,
.request-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .btn-follow {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ── Account Verification Badge ── */
.account-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.4;
    white-space: nowrap;
}
.account-badge i {
    font-size: 0.65rem;
}
.account-badge--pending {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}
.account-badge--org-verified {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
.account-badge--org-not-verified {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* ── Connection Suggestions Card ── */
.sd-suggestions-card {
    background: var(--surface);
    border-radius: var(--radius-large);
    border: 1px solid var(--border-soft);
    padding: 18px 20px 16px;
    margin-bottom: 16px;
}

.sd-suggestions-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sd-suggestions-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.sd-suggestions-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.sd-suggestions-more {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    white-space: nowrap;
    padding-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sd-suggestions-more:hover {
    color: var(--brand-dark);
}

/* Horizontal scroll row */
.sd-suggestions-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.sd-suggestions-scroll::-webkit-scrollbar {
    display: none;
}

/* Individual suggestion card — equal sizing */
.sd-suggest-item {
    flex: 1 1 0;
    min-width: 140px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px 16px;
    background: var(--surface-alt);
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-soft);
    transition: box-shadow 0.25s, border-color 0.25s;
}
.sd-suggest-item:hover {
    border-color: rgba(29, 154, 138, 0.3);
    box-shadow: 0 6px 20px rgba(29, 154, 138, 0.1);
}

.sd-suggest-avatar-link {
    display: block;
    width: 72px;
    height: 72px;
    margin-bottom: 10px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--brand), #44c0a7);
}

.sd-suggest-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--surface);
    display: block;
}

.sd-suggest-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sd-suggest-name:hover {
    color: var(--brand);
}

.sd-suggest-verified {
    color: var(--brand);
    font-size: 0.72rem;
    margin-left: 2px;
}

.sd-suggest-category {
    display: block;
    font-size: 0.75rem;
    color: var(--brand-dark);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 12px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-suggest-action {
    margin-top: auto;
}
.sd-suggest-action form {
    margin: 0;
}

/* Use the same btn-follow styles from the feed/profile */
.sd-suggest-action .btn-follow {
    padding: 7px 18px;
    font-size: 0.8rem;
}

/* Responsive: Connection Suggestions */
@media (max-width: 576px) {
    .sd-suggestions-card {
        padding: 14px 14px 12px;
        border-radius: var(--radius-medium);
    }
    .sd-suggest-item {
        flex: 0 0 140px;
        padding: 16px 8px 12px;
    }
    .sd-suggest-avatar-link {
        width: 58px;
        height: 58px;
    }
    .sd-suggest-action .btn-follow {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
}