/* Member Profile Page Styles */
.member-profile-page {
    background: #f0f0f0;
    min-height: 100vh;
    padding: 20px 0 40px;
}

.member-profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.member-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.member-profile-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.btn-customize-tiles-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.btn-customize-tiles-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.btn-customize-tiles {
    background: transparent;
    border: none;
    color: #359d48;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-customize-tiles:hover {
    color: #2d8a3e;
    text-decoration: underline;
}

.member-profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

/* Left Sidebar - Profile Card */
.profile-sidebar {
    position: sticky;
    top: 100px;
}

.profile-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.profile-card-image-wrapper {
    display: flex;
    justify-content: center;
    padding: 30px 20px 16px;
}

.profile-card-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: visible;
    position: relative;
    margin:auto;
}

.profile-card-image > img {
    border-radius: 50%;
}

.profile-badge-overlay {
    position: absolute;
    bottom: -4px;
    right: -8px;
    width: 44px;
    height: 44px;
    z-index: 2;
}

.profile-badge-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.profile-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card-image .no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-card-image .no-image i {
    font-size: 48px;
    color: #bdbdbd;
}

.profile-card-info {
    padding: 0 24px 20px;
    text-align: center;
}

.profile-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.profile-card-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.profile-card-stats .stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-card-stats .stat-icon {
    color: #e53935;
}

.profile-card-stats .stat-icon.following {
    color: #359d48;
}

.profile-card-stats .stat-count {
    font-weight: 600;
    color: #1a1a1a;
}

.profile-card-stats .stat-label {
    color: #757575;
}

.profile-card-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #424242;
    margin: 0;
}

.profile-card-actions {
    padding: 0 24px 24px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-follow {
    padding: 10px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-follow.btn-follow-green {
    background: #4a8c5c;
    color: #fff;
    border: none;
}

.btn-follow.btn-follow-green:hover {
    background: #3d7a4e;
}

.btn-follow.follow {
    background: #4a8c5c;
    color: #fff;
    border: none;
}

.btn-follow.follow:hover {
    background: #3d7a4e;
}

.btn-follow.following {
    background: #4a8c5c;
    color: #fff;
    border: none;
}

.btn-follow.following:hover {
    background: #3d7a4e;
}

.btn-message {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f5f5;
    color: #424242;
    border: 1px solid #e0e0e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-message:hover {
    background: #eeeeee;
}

.btn-rate {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff8e1;
    color: #f59e0b;
    border: 1px solid #fbbf24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-rate:hover {
    background: #fef3c7;
    color: #d97706;
}

/* Badges Section */
.badges-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-top: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.badges-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    text-align: center;
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.badge-item span {
    font-size: 10px;
    color: #757575;
    margin-top: 4px;
}

/* Trust Score Card */
.trust-score-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.trust-score-value {
    font-size: 42px;
    font-weight: 700;
    color: #359d48;
    line-height: 1;
}

.trust-score-stars {
    color: #fbbf24;
    font-size: 18px;
    margin: 8px 0;
}

.trust-score-label {
    font-size: 13px;
    color: #757575;
}

.trust-score-breakdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
}

.trust-score-breakdown .give {
    color: #22c55e;
}

.trust-score-breakdown .receive {
    color: #3b82f6;
}

/* Right Content - Widgets */
.profile-content {
    min-width: 0;
}

/* Billboard / Hero Widget */
.billboard-widget {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    position: relative;
}

.billboard-widget img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.billboard-widget .billboard-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.billboard-widget .billboard-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.billboard-widget .billboard-subtitle {
    font-size: 16px;
    margin: 8px 0 0;
    opacity: 0.9;
}

/* Masonry Widget Grid */
.widgets-masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    grid-auto-rows: 140px;
}

/* Widget Card Base */
.widget-card {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.widget-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.widget-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Widget Sizes - Support all 4 column widths (1-4) and heights (1-4) */
.widget-card.size-1x1 {
    grid-column: span 1;
    grid-row: span 1;
}

.widget-card.size-2x1 {
    grid-column: span 2;
    grid-row: span 1;
}

.widget-card.size-3x1 {
    grid-column: span 3;
    grid-row: span 1;
}

.widget-card.size-4x1 {
    grid-column: span 4;
    grid-row: span 1;
}

.widget-card.size-1x2 {
    grid-column: span 1;
    grid-row: span 2;
}

.widget-card.size-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.widget-card.size-3x2 {
    grid-column: span 3;
    grid-row: span 2;
}

.widget-card.size-4x2 {
    grid-column: span 4;
    grid-row: span 2;
}

.widget-card.size-1x3 {
    grid-column: span 1;
    grid-row: span 3;
}

.widget-card.size-2x3 {
    grid-column: span 2;
    grid-row: span 3;
}

.widget-card.size-3x3 {
    grid-column: span 3;
    grid-row: span 3;
}

.widget-card.size-4x3 {
    grid-column: span 4;
    grid-row: span 3;
}

.widget-card.size-1x4 {
    grid-column: span 1;
    grid-row: span 4;
}

.widget-card.size-2x4 {
    grid-column: span 2;
    grid-row: span 4;
}

.widget-card.size-3x4 {
    grid-column: span 3;
    grid-row: span 4;
}

.widget-card.size-4x4 {
    grid-column: span 4;
    grid-row: span 4;
}

/* Image Widget */
.widget-card.widget-image img {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    display: block;
}

/* Trust Score Widget */
.widget-card.widget-trust-score {
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.widget-card.widget-trust-score .score-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.widget-card.widget-trust-score .score-stars {
    font-size: 16px;
    margin: 8px 0;
    color: #fef08a;
}

.widget-card.widget-trust-score .score-label {
    font-size: 11px;
    opacity: 0.9;
}

.score-breakdown-widget {
    display: flex;
    gap: 6px;
    margin: 8px 0 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.score-breakdown-widget .breakdown-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.22);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    white-space: nowrap;
}

.score-breakdown-widget .breakdown-pill i {
    font-size: 10px;
}
.widget-card.widget-notice-link,
.widget-card.widget-noticeboard-link {
    display: flex;
    flex-direction: column;
}

/* Shared: full-bleed link fills entire card */
.widget-full-bleed-link {
    display: block;
    width: 100%;
    flex: 1;
    min-height: 0;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    border-radius: inherit;
}

.widget-full-bleed-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

/* Gradient overlay at bottom of full-bleed card */
.widget-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0) 100%);
}

.widget-overlay-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-overlay-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Centered link (no image fallback) */
.widget-centered-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    padding: 16px;
    gap: 6px;
    text-align: center;
    box-sizing: border-box;
}

.widget-centered-icon {
    font-size: 26px;
}

.widget-centered-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.widget-centered-meta {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Website Link Widget */
.widget-card.widget-website-link {
    display: flex;
    flex-direction: column;
}

/* Text Box Widget */
.widget-card.widget-text-box {
    padding: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.widget-card.widget-text-box .text-content {
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Empty Widgets State */
/* Empty State Container */
.empty-state-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
}

.empty-state-container .empty-svg {
    width: 100%;
    pointer-events: none;
}

.empty-state-container .empty-svg svg {
    width: 100%;
    height: auto;
    display: block;
}

.empty-state-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 25%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 1) 75%
    );
    pointer-events: none;
    z-index: 1;
}

.widgets-empty {
    position: relative;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px 48px;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(82, 155, 80, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.widgets-empty h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.2px;
}

.widgets-empty p {
    font-size: 14px;
    line-height: 1.6;
    color: #757575;
    margin: 0;
    max-width: 400px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .member-profile-layout {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }

    .member-profile-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .widgets-masonry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Collapse 4-col-span widgets to fit 3-col grid */
    .widget-card.size-4x1 {
        grid-column: span 3;
    }
    .widget-card.size-4x2,
    .widget-card.size-4x3,
    .widget-card.size-4x4 {
        grid-column: span 3;
    }
}

@media (max-width: 992px) {
    .member-profile-layout {
        grid-template-columns: 240px 1fr;
        gap: 16px;
    }
    
    .widgets-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        grid-auto-rows: 130px;
    }

    /* Collapse wide cards to fit 2-col grid */
    .widget-card.size-3x1,
    .widget-card.size-4x1 {
        grid-column: span 2;
    }
    .widget-card.size-3x2,
    .widget-card.size-4x2,
    .widget-card.size-3x3,
    .widget-card.size-4x3,
    .widget-card.size-3x4,
    .widget-card.size-4x4 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .member-profile-layout {
        grid-template-columns: 1fr;
    }

    .member-profile-header h1 {
        font-size: 22px;
    }
    
    .profile-sidebar {
        position: static;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
    
    .profile-card {
        display: block;
    }
    
    .profile-card-image-wrapper {
        padding: 20px 20px 12px;
    }
    
    .profile-card-image {
        width: 90px;
        height: 90px;
    }
    
    .profile-card-info {
        padding: 0 16px 16px;
    }
    
    .profile-card-actions {
        padding: 0 16px 16px;
    }
    
    .badges-card {
        margin-top: 12px;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .widgets-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        grid-auto-rows: 120px;
    }

    /* All multi-col cards collapse to full width */
    .widget-card.size-3x1,
    .widget-card.size-4x1,
    .widget-card.size-2x1 {
        grid-column: span 2;
    }
    .widget-card.size-3x2,
    .widget-card.size-4x2,
    .widget-card.size-2x2 {
        grid-column: span 2;
    }
    .widget-card.size-3x3,
    .widget-card.size-4x3,
    .widget-card.size-3x4,
    .widget-card.size-4x4 {
        grid-column: span 2;
    }
    
    .billboard-widget img {
        max-height: 220px;
    }
    
    .billboard-widget .billboard-overlay {
        padding: 16px;
    }
    
    .billboard-widget .billboard-title {
        font-size: 18px;
    }

    .empty-state-container {
        min-height: 260px;
    }

    .widgets-empty {
        padding: 28px 20px 32px;
    }

    .widgets-empty h3 {
        font-size: 18px;
    }

    .widgets-empty p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .member-profile-container {
        padding: 0 12px;
    }

    .member-profile-page {
        padding: 12px 0 32px;
    }

    .member-profile-header {
        margin-bottom: 16px;
    }
    
    .profile-sidebar {
        max-width: 100%;
    }

    .profile-card {
        display: block;
    }

    .profile-card-name {
        font-size: 17px;
    }
    
    .widgets-masonry-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        grid-auto-rows: 110px;
    }

    /* Wide cards (≥2 col) span full width on small phones */
    .widget-card.size-2x1,
    .widget-card.size-3x1,
    .widget-card.size-4x1,
    .widget-card.size-2x2,
    .widget-card.size-3x2,
    .widget-card.size-4x2,
    .widget-card.size-2x3,
    .widget-card.size-3x3,
    .widget-card.size-4x3,
    .widget-card.size-2x4,
    .widget-card.size-3x4,
    .widget-card.size-4x4 {
        grid-column: span 2;
    }

    /* Tall cards cap at 2 rows on phones */
    .widget-card.size-1x3,
    .widget-card.size-1x4,
    .widget-card.size-2x3,
    .widget-card.size-2x4,
    .widget-card.size-3x3,
    .widget-card.size-4x3,
    .widget-card.size-3x4,
    .widget-card.size-4x4 {
        grid-row: span 2;
    }

    .widget-card.widget-text-box {
        padding: 12px;
        min-height: 80px;
    }

    .widget-card.widget-text-box .text-content {
        font-size: 13px;
    }

    .widget-card.widget-trust-score .score-value {
        font-size: 28px;
    }

    .widget-card.widget-trust-score .score-stars {
        font-size: 13px;
        margin: 4px 0;
    }

    .score-breakdown-widget .breakdown-pill {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Image Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    cursor: zoom-out;
    animation: lightboxFadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    cursor: default;
    transition: transform 0.3s ease;
}

.lightbox-content img.zoomed {
    transform: scale(1.5);
    cursor: move;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-nav.prev {
    left: 16px;
}

.lightbox-nav.next {
    right: 16px;
}

.lightbox-caption {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    text-align: center;
    background: rgba(0,0,0,0.6);
    padding: 8px 20px;
    border-radius: 20px;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    z-index: 10001;
}

.lightbox-toolbar {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10001;
}

.lightbox-toolbar button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-toolbar button:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-toolbar button.active {
    background: rgba(53, 157, 72, 0.8);
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .lightbox-overlay {
        padding: 40px 16px;
    }
    
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .lightbox-nav.prev {
        left: 8px;
    }
    
    .lightbox-nav.next {
        right: 8px;
    }
}

.empty-svg {
    width: 100%;
    margin-top: 10px;
}

button.btn-add-widget {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #529B50;
    color: #fff;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border-radius: 10px;
    height: 44px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(82, 155, 80, 0.3);
}

button.btn-add-widget:hover {
    background: #478F45;
    box-shadow: 0 4px 12px rgba(82, 155, 80, 0.4);
    transform: translateY(-1px);
}

button.btn-add-widget svg {
    flex-shrink: 0;
}
.profile-card.new {
    padding: 30px 20px 16px;
}

/* =====================================================
   DARK MODE  (body.dark_mode_theme — site toggle)
   ===================================================== */

/* Page background */
body.dark_mode_theme .member-profile-page {
    background: #111111;
}

/* Page header */
body.dark_mode_theme .member-profile-header h1 {
    color: #f0f0f0;
}

/* Customise Tiles link */
body.dark_mode_theme .btn-customize-tiles {
    color: #5ec45b;
}
body.dark_mode_theme .btn-customize-tiles:hover {
    color: #4db84a;
}

/* ── Profile card (sidebar) ── */
body.dark_mode_theme .profile-card {
    background: #1e1e1e;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
body.dark_mode_theme .profile-card-name {
    color: #f0f0f0;
}
body.dark_mode_theme .profile-card-stats .stat-count {
    color: #e0e0e0;
}
body.dark_mode_theme .profile-card-stats .stat-label {
    color: #888;
}
body.dark_mode_theme .profile-card-bio {
    color: #b0b0b0;
}
body.dark_mode_theme .profile-card-image .no-image {
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
}
body.dark_mode_theme .profile-card-image .no-image i {
    color: #555;
}

/* Message / Rate buttons */
body.dark_mode_theme .btn-message {
    background: #2a2a2a;
    color: #d0d0d0;
    border-color: #3a3a3a;
}
body.dark_mode_theme .btn-message:hover {
    background: #333;
}
body.dark_mode_theme .btn-rate {
    background: #2a2000;
    color: #fbbf24;
    border-color: #5a4500;
}
body.dark_mode_theme .btn-rate:hover {
    background: #342800;
    color: #f59e0b;
}

/* ── Badges card ── */
body.dark_mode_theme .badges-card {
    background: #1e1e1e;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
body.dark_mode_theme .badges-card h3 {
    color: #f0f0f0;
}
body.dark_mode_theme .badge-item span {
    color: #888;
}

/* ── Trust score sidebar card ── */
body.dark_mode_theme .trust-score-card {
    background: #1e1e1e;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
body.dark_mode_theme .trust-score-label {
    color: #888;
}
body.dark_mode_theme .trust-score-breakdown {
    border-top-color: #2e2e2e;
}

/* ── Widget cards ── */
body.dark_mode_theme .widget-card {
    background: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark_mode_theme .widget-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
body.dark_mode_theme .widget-card a {
    color: inherit;
}

/* Centered link text */
body.dark_mode_theme .widget-centered-title {
    color: #e0e0e0;
}
body.dark_mode_theme .widget-centered-meta {
    color: #777;
}

/* ── Empty state ── */
body.dark_mode_theme .empty-state-fade {
    background: linear-gradient(
        180deg,
        rgba(17,17,17,0) 0%,
        rgba(17,17,17,0.4) 25%,
        rgba(17,17,17,0.85) 50%,
        rgba(17,17,17,1) 75%
    );
}
body.dark_mode_theme .widgets-empty {
    background: #1e1e1e;
}
body.dark_mode_theme .widgets-empty h3 {
    color: #f0f0f0;
}
body.dark_mode_theme .widgets-empty p {
    color: #888;
}