/* Homepage v2 — extracted from homepagev2.blade.php (member overview + shared layout) */
/* Overview — bright, clean */
.member_stats_sec {
    padding: 56px 0 40px;
    background: #fff;
    position: relative;
}
.member_stats_sec::before {
    content: '';
    display: block;
    width: 72px;
    height: 3px;
    background: #dc3545;
    border-radius: 2px;
    margin: 0 auto 40px;
}
.member-stats-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.member-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.member-stats-grid--fan {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
.member-stat-card {
    background: #f8fafc;
    border: 1px solid #dde3ea;
    border-radius: 16px;
    padding: 26px 22px;
    min-height: 156px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.member-stat-card:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: #cfd7e1;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}
.member-stat-card--disabled {
    background: repeating-linear-gradient(
        45deg,
        #f6f7fb,
        #f6f7fb 12px,
        #f1f2f8 12px,
        #f1f2f8 24px
    );
    border: 1px dashed #c3c7dd;
    box-shadow: none;
    cursor: not-allowed;
}
.member-stat-card--disabled:hover {
    transform: none;
    background: repeating-linear-gradient(
        45deg,
        #f6f7fb,
        #f6f7fb 12px,
        #f1f2f8 12px,
        #f1f2f8 24px
    );
    border-color: #c3c7dd;
    box-shadow: none;
}
.member-stat-card--disabled .member-stat-icon {
    opacity: 0.45;
    filter: grayscale(0.35);
}
.member-stat-card--disabled .member-stat-label {
    color: #9aa0b8;
}
.member-stat-value--disabled {
    color: #b0b6c6;
    font-weight: 600;
    opacity: 0.75;
}
.member-stat-card--fan-tokens {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 0;
    padding: 28px 32px;
}
.member-stat-fan-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.member-stat-fan-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.member-stat-card--fan-tokens .member-stat-label {
    margin-top: 0;
    font-size: 1.05rem;
    color: #111827;
    font-weight: 600;
}
.member-stat-fan-hint {
    font-size: .9rem;
    color: #6b7280;
    font-weight: 500;
}
.member-stat-fan-value {
    text-align: right;
    flex-shrink: 0;
}
.member-stat-card--fan-tokens .member-stat-number {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
}
.member-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.member-stat-icon--views {
    background: #eef2ff;
    color: #4f6bed;
}
.member-stat-icon--followers {
    background: #ecfdf5;
    color: #059669;
}
.member-stat-icon--earnings {
    background: #fff7ed;
    color: #ea580c;
}
.member-stat-icon--tokens {
    background: #fef2f2;
    color: #dc3545;
}
.member-stat-body {
    width: 100%;
}
.member-stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.member-stat-sep {
    color: #c5ccd6;
    font-weight: 500;
    margin: 0 4px;
}
.member-stat-label {
    font-size: .95rem;
    color: #6b7280;
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.35;
}
.member-stat-card--tokens {
    position: relative;
}
.member-stat-token-meta {
    position: absolute;
    top: 26px;
    right: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.member-stat-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}
.member-stat-chip strong {
    color: #111827;
    font-size: .8rem;
    font-weight: 700;
}
.member-stat-chip--disabled,
.member-stat-chip--disabled strong {
    color: #b0b6c6;
}

/* Shared section headers (following + discover) */
.member-section-heading {
    text-align: center;
    margin-bottom: 32px;
}
.member-section-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1d;
    margin: 0 0 8px;
    line-height: 1.2;
}
.member-section-heading p {
    margin: 0 auto;
    max-width: 520px;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.45;
}

/* Shared red accent above following + discover */
.following_sec,
.discover_sec {
    padding: 56px 0 56px;
    background: #fff;
    position: relative;
}
.following_sec::before,
.discover_sec::before {
    content: '';
    display: block;
    width: 72px;
    height: 3px;
    background: #dc3545;
    border-radius: 2px;
    margin: 0 auto 40px;
}
.discover_sec {
    border-top: 1px solid #e8ecf0;
    padding-bottom: 72px;
}
.following-empty {
    padding: 8px 16px 12px;
    color: #6b7280;
}
.following-empty p {
    margin: 0 auto 32px;
    max-width: 440px;
    font-size: 1.05rem;
    line-height: 1.55;
}
.following-empty .member-feed-btn {
    display: inline-block;
    margin-top: 0;
}
.following-actions {
    margin-top: 36px;
}
.member-creators--center .row {
    justify-content: center;
}
.following_sec .pagination {
    justify-content: center;
    margin: 28px 0 8px;
}
.following_sec .pagination .page-link {
    color: #374151;
    border-color: #e5e7eb;
}
.following_sec .pagination .page-item.active .page-link {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* Creator cards stay crisp on member sections */
.following_sec .creator_box,
.discover_sec .creator_box {
    background: #fff;
    box-shadow: 0 6px 22px rgba(45, 36, 25, 0.08);
}
.following_sec .creator_img,
.discover_sec .creator_img {
    position: relative;
    overflow: hidden;
}
.following_sec .creator_img img,
.discover_sec .creator_img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 385 / 135;
    object-fit: cover;
    object-position: center;
}
.following_sec .creator-promo-badge,
.discover_sec .creator-promo-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
}
.following_sec .profile_img,
.discover_sec .profile_img {
    width: 94px;
    height: 94px;
}
.following_sec .profile_img img,
.discover_sec .profile_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}
.following_sec .creator_txt,
.discover_sec .creator_txt {
    background: #fff;
}
.following_sec .creator_txt {
    overflow: visible;
}
.following_sec .profile_img {
    overflow: visible;
}
.following_sec .profile_img.is-online::after,
.following_sec .profile_img.is-offline::after {
    content: '';
    position: absolute;
    top: auto;
    left: auto;
    bottom: 6px;
    right: 6px;
    transform: translate(20%, 20%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.following_sec .profile_img.is-online::after {
    background: #37b95c;
}
.following_sec .profile_img.is-offline::after {
    background: #cc0000;
}

a.member-feed-btn {
    min-width: 224px;
    height: 52px;
    padding: 0 36px;
    background: #dc3545;
    font: normal 16px/52px 'Graphik-Semibold', sans-serif;
    color: #fff !important;
    display: inline-block;
    text-transform: uppercase;
    border-radius: 30px;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 0 17px 6px #f9dbdd;
    transition: all 0.3s ease;
}
a.member-feed-btn:hover {
    background: #c82333;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.35);
}

/* Member hero — featured cards matched to gradient banner */
.banner_sec--member .banner_box {
    min-height: 660px;
    height: auto;
    padding: 88px 0 56px;
}
.banner_sec--member .banner_innr {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
}
.hero-featured {
    width: 100%;
}
.hero-featured-label {
    font: normal 13px/1 'Graphik-Semibold', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 14px;
}
.hero-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.hero-featured-card {
    display: block;
    overflow: visible;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 28px rgba(72, 0, 72, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none !important;
    color: #fff !important;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-featured-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.36);
    box-shadow: 0 14px 32px rgba(72, 0, 72, 0.36);
    color: #fff !important;
    text-decoration: none !important;
}
.hero-featured-cover {
    position: relative;
    z-index: 1;
    isolation: isolate;
    height: 88px;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(135deg, rgba(192, 72, 72, 0.55), rgba(72, 0, 72, 0.7));
}
.hero-featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.88;
    position: relative;
    z-index: 0;
}
.hero-featured-cover .creator-promo-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 11px;
    line-height: 1;
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid rgba(154, 52, 18, 0.18);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}
.hero-featured-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 14px;
}
.hero-featured-avatar {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.2);
    margin-top: -28px;
}
.hero-featured-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}
.hero-featured-name {
    font: normal 15px/1.25 'Graphik-Semibold', sans-serif;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-featured-name.is-verified {
    padding-right: 22px;
    background: none;
    position: relative;
}
.hero-featured-name.is-verified::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #fff;
    -webkit-mask: url(/images/badge.svg) center / contain no-repeat;
    mask: url(/images/badge.svg) center / contain no-repeat;
}
.hero-featured-handle {
    font: normal 13px/1.3 'Graphik-Regular', sans-serif;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

@media (max-width: 991px) {
    .member-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .member-stats-grid--fan {
        grid-template-columns: 1fr 1fr;
    }
    .member-stats-grid--fan .member-stat-card--fan-tokens {
        grid-column: 1 / -1;
    }
    .member-stat-card {
        min-height: 140px;
        padding: 22px 18px;
    }
    .member-stat-token-meta {
        top: 22px;
        right: 18px;
    }
    .member-stat-card--fan-tokens {
        min-height: 0;
        padding: 24px 22px;
    }
    .member-stat-card--fan-tokens .member-stat-number {
        font-size: 2.15rem;
    }
    .member-stat-number {
        font-size: 1.9rem;
    }
    .banner_sec--member .banner_box {
        min-height: 0;
        padding: 28px 0 32px;
    }
    .hero-featured {
        margin-top: 20px;
    }
    .following_sec .profile_img,
    .discover_sec .profile_img {
        width: 64px;
        height: 64px;
        left: 14px;
        top: -26px;
    }
    .following_sec .creator_txtInnr,
    .discover_sec .creator_txtInnr {
        padding-left: 82px;
    }
    .following_sec .profile_img.is-online::after,
    .following_sec .profile_img.is-offline::after {
        width: 12px;
        height: 12px;
        bottom: 4px;
        right: 4px;
    }
}
@media (max-width: 767px) {
    .banner_sec--member .banner_box {
        min-height: 0;
        height: auto;
        padding: 12px 0 24px;
    }
    .banner_sec--member .banner_innr {
        padding: 4px 0 12px;
    }
    .banner_sec--member .hero-featured {
        margin-top: 16px;
    }
    .member-stats-grid,
    .member-stats-grid--fan {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .member-stats-grid--fan .member-stat-card--fan-tokens {
        grid-column: auto;
    }
    .member-stat-card {
        min-height: 0;
        padding: 18px 16px;
    }
    a.member-feed-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 360px;
        min-width: 0;
        height: 48px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
        line-height: 1;
        border-radius: 14px;
        text-transform: none;
        font-size: 0.95rem;
    }
    .following_sec .pagination,
    .discover_sec .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
}

/* Member-only: welcome accent bar on portrait (guest uses modern layout) */
@media only screen and (max-width: 767px) {
    .welcome_sec p {
        position: relative;
        padding: 40px 0 0;
    }
    .welcome_sec p::before {
        display: block;
        width: 3px;
        height: 32px;
        position: absolute;
        left: 50%;
        top: 0;
        content: "";
        background: var(--bmf-red, #dc3545);
        transform: translate(-50%, 0);
        -webkit-transform: translate(-50%, 0);
    }
}
@media (max-width: 575px) {
    .member_stats_sec {
        padding: 40px 0 28px;
    }
    .member_stats_sec::before {
        margin-bottom: 28px;
    }
    .member-stats-grid,
    .member-stats-grid--fan {
        grid-template-columns: 1fr;
    }
    .member-stat-card--fan-tokens {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    .member-stat-fan-value {
        text-align: right;
        width: auto;
        padding-left: 0;
        flex-shrink: 0;
    }
    .member-stat-card--tokens {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .member-stat-card--tokens .member-stat-token-meta {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }
    .member-section-heading h2 {
        font-size: 1.65rem;
    }
    .following_sec,
    .discover_sec {
        padding: 40px 0 40px;
    }
    .discover_sec {
        padding-bottom: 56px;
    }
    .following_sec::before,
    .discover_sec::before {
        margin-bottom: 28px;
    }
    .banner_sec--member .banner_box {
        padding: 8px 0 20px;
    }
    .hero-featured-grid {
        gap: 10px;
    }
    .hero-featured-cover {
        height: 72px;
    }
    .hero-featured-body {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 12px 12px;
        gap: 0;
    }
    .hero-featured-avatar {
        width: 44px;
        height: 44px;
        margin-top: -22px;
        margin-bottom: 10px;
    }
    .hero-featured-meta {
        width: 100%;
    }
    .hero-featured-name {
        font-size: 13px;
    }
    .hero-featured-handle {
        font-size: 12px;
    }
    .following_sec .profile_img,
    .discover_sec .profile_img {
        width: 56px;
        height: 56px;
        left: 12px;
        top: -22px;
    }
    .following_sec .creator_txt,
    .discover_sec .creator_txt {
        padding: 16px 14px 14px;
    }
    .following_sec .creator_txtInnr,
    .discover_sec .creator_txtInnr {
        padding-left: 68px;
    }
}

/* Member homepage mobile CTA overrides */
@media (max-width: 991px) {
    body.modern-nav .banner_sec--member .banner_innr .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    body.modern-nav .banner_sec--member .banner_details a.explore_btn {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 48px !important;
    }
    body.modern-nav .following-actions .member-feed-btn,
    body.modern-nav .following-empty .member-feed-btn,
    body.modern-nav a.member-feed-btn {
        display: flex !important;
        width: 100% !important;
        max-width: 360px !important;
        min-width: 0 !important;
        height: 48px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
