/* 
   CreatorOS FanFeed Design System
   Theme: Luxury Dark (Extracted from User Template)
*/
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
    min-height: 100vh;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Desktop Layout (Instagram-like) */
.feed-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}

/* Updated Accents */
.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--btn-text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #e0c268;
    border-color: #e0c268;
    color: var(--btn-text-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--btn-text-color);
}

.badge-premium {
    background-color: var(--primary-color);
    color: var(--btn-text-color);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Banner-Header Section ────────────────────────── */
.profile-banner {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: var(--surface-color);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Dark gradient overlay for text readability */
.profile-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.55) 40%,
            rgba(0, 0, 0, 0.4) 70%,
            rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* No banner fallback: subtle gradient */
.profile-banner.no-banner {
    height: auto;
    min-height: 0;
    background: linear-gradient(135deg, var(--surface-color) 0%, #222 100%);
}

.profile-banner.no-banner::after {
    display: none;
}

/* Inner content layer above gradient */
.profile-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding: 18px 30px;
    gap: 20px;
}

.profile-banner.no-banner .profile-banner-content {
    padding: 25px 20px;
}

/* Profile Pic */
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #333;
    border: 4px solid var(--primary-color);
    flex-shrink: 0;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Profile Info (name + stats) */
.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info h1 {
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.profile-info .text-muted {
    color: rgba(240, 240, 240, 0.7) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Bio Section (inside banner) */
.profile-bio {
    padding: 0;
    margin-top: 4px;
}

.profile-bio-text {
    margin: 0;
    color: rgba(240, 240, 240, 0.85);
    font-size: 0.85rem;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* No-banner: bio gets bottom border */
.profile-banner.no-banner .profile-bio {
    margin-top: 8px;
}

.profile-banner.no-banner~.feed-container {
    margin-top: 0;
}

/* ── Social Icons ────────────────────────── */
.social-icons {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon-link:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ── Header Utility Classes (replaces inline styles) ── */

/* Tier info in dropdown (crown icon + tier name) */
.tier-accent {
    color: var(--primary-color);
}

/* CTA button compact variant (when user is logged in but has no tier) */
.btn-premium-cta.btn-compact {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Guest login icon */
.header-login-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.header-login-icon:hover {
    color: #fff;
}

/* Text-only post caption in grid */
.text-only-caption {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Grid Layout */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

@media (min-width: 768px) {
    .feed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
}

@media (min-width: 1200px) {
    .feed-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
    }
}

.feed-item {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--surface-color);
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

/* Text-only posts: gradient background with centered text */
.feed-item.text-only {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feed-item.text-only .preview-media {
    width: 100%;
    overflow: hidden;
}

.feed-item.text-only .preview-media>div {
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.feed-item img,
.feed-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.2s;
}

/* Hover Effect Desktop */
@media (hover: hover) {
    .feed-item:hover img {
        transform: scale(1.02);
    }
}

/* Premium CTA Button Base */
.btn-premium-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f9d774 0%, #e0c268 50%, #f9d774 100%);
    background-size: 200% auto;
    color: #121212 !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(249, 215, 116, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-premium-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(249, 215, 116, 0.5);
    background-position: right center;
}

/* Shimmer Effect Animation */
.btn-premium-cta::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: none;
    animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
    0% {
        left: -60%;
    }

    15% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

.btn-premium-cta i {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .feed-container {
        padding: 0;
    }

    /* ── Mobile Header: Banner als Hintergrund wie Desktop ── */
    .profile-banner {
        height: auto;
        min-height: 180px;
        overflow: hidden;
        margin-bottom: 4px;
        padding-top: 0;
        background-size: cover;
        background-position: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    /* Full gradient overlay for text readability on mobile */
    .profile-banner::after {
        height: 100%;
        top: 0;
        bottom: 0;
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.75) 0%,
                rgba(0, 0, 0, 0.6) 35%,
                rgba(0, 0, 0, 0.45) 65%,
                rgba(0, 0, 0, 0.3) 100%);
    }

    /* No-banner mobile */
    .profile-banner.no-banner {
        padding-top: 0;
        min-height: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .profile-banner.no-banner::after {
        display: none;
    }

    /* Content inside banner */
    .profile-banner-content {
        position: relative;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        margin-top: 0;
        padding: 20px 16px 16px;
        gap: 0 12px;
        background: none;
    }

    .profile-banner.no-banner .profile-banner-content {
        margin-top: 0;
        padding: 14px 16px 12px;
        background: var(--bg-color, #121212);
    }

    /* Mobile avatar */
    .profile-pic {
        width: 60px;
        height: 60px;
        border-width: 3px;
        margin-top: 0;
        margin-bottom: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    }

    .profile-banner.no-banner .profile-pic {
        margin-top: 0;
    }

    /* Name + stats next to avatar */
    .profile-info {
        flex: 1;
        min-width: 0;
        padding-top: 4px;
    }

    .profile-info h1 {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .profile-info .text-muted {
        color: rgba(240, 240, 240, 0.7) !important;
        font-size: 0.72rem;
    }

    /* Bio: full width below avatar row – must clear 60px avatar */
    .profile-bio {
        margin-top: 22px;
        margin-left: -72px;
        /* Pull back past avatar (60px) + gap (12px) */
        width: calc(100% + 72px);
    }

    .profile-bio-text {
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.85);
        max-width: 100%;
    }

    /* Social Icons: full width, smaller on mobile */
    .social-icons {
        margin-top: 10px;
        margin-left: -72px;
        width: calc(100% + 72px);
        gap: 6px;
    }

    .social-icon-link {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    /* CTA area: full-width button below the info */
    .header-cta-area {
        width: 100%;
        margin-top: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header-cta-area .btn-premium-cta {
        flex: 1;
    }

    /* Grid */
    .feed-grid {
        gap: 2px;
    }

    .feed-item {
        border-radius: 0;
    }

    .media-indicator {
        top: 8px;
        right: 8px;
        font-size: 0.9rem;
    }
}

/* Detail Modal (Simulation) */
.modal-content {
    background-color: #121212;
    color: white;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.5);
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-content img,
.video-content video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* --- NEW UI ELEMENTS --- */

/* Carousel & Media */
.carousel-inner,
.carousel-item {
    border-radius: 4px;
    overflow: hidden;
}

/* Custom Indicators (Dashes - Bottom Center) */
.custom-indicators {
    margin-bottom: 12px;
    gap: 4px;
    z-index: 15;
    /* Above overlay */
}

.custom-indicators [data-bs-target] {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    margin: 0;
    transition: background-color 0.2s, width 0.2s;
    opacity: 1;
}

.custom-indicators .active {
    background-color: #fff;
    width: 30px;
}

/* Feed UI Overlay Container */
.feed-ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 15px;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s ease;
}

.hover-stat {
    cursor: default;
}

.feed-item:hover .feed-ui-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* Top Right: Media Indicator (Minimalist) */
.media-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    z-index: 30;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Top Left: Expiration Badge */
.expiration-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 35;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.expiration-badge.expiration-normal {
    background: rgba(120, 120, 120, 0.75);
}

.expiration-badge.expiration-soon {
    background: rgba(255, 152, 0, 0.85);
}

.expiration-badge.expiration-urgent {
    background: rgba(220, 53, 69, 0.9);
    animation: pulse-urgent 1.5s ease-in-out infinite;
}

@keyframes pulse-urgent {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Top Right: Media Counter */
.media-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(30, 30, 30, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Desktop Only: Hover Info (Likes/Comments centered) */
.hover-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 25;
}

.feed-item:hover .hover-info {
    opacity: 1;
}

.hover-stat {
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.hover-stat i {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

/* Specific Sound Toggle Style */
.sound-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.sound-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* --- NEW GRID & MODAL REFACTOR ELEMENTS --- */

/* Large Centered Play Icon for Grid Preview */
.large-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Carousel Styling */
#modalCarousel {
    width: 100%;
    height: 100%;
    background: #000;
}

#modalCarousel .carousel-item {
    height: 80vh;
}

/* --- MODAL REFACTOR: Dynamic Slides & Backgrounds --- */

.modal-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-media-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.8);
    opacity: 0.8;
    z-index: 1;
}

.modal-media-bg-video {
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    object-fit: cover;
}

.modal-media-content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-media-content img,
.modal-media-content video {
    height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Modal Carousel Controls */
.modal-carousel-controls .carousel-control-prev,
.modal-carousel-controls .carousel-control-next {
    width: 10%;
    opacity: 0;
    /* Hidden by default (Mobile) */
    transition: opacity 0.3s;
    z-index: 30;
}

@media (min-width: 992px) {

    .modal-carousel-controls .carousel-control-prev,
    .modal-carousel-controls .carousel-control-next {
        opacity: 0.8;
        /* Visible on Desktop */
    }

    .modal-carousel-controls .carousel-control-prev:hover,
    .modal-carousel-controls .carousel-control-next:hover {
        opacity: 1;
    }
}

/* Play/Pause Overlay in Modal */
.play-pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-media-wrapper.paused .play-pause-overlay {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
}

.modal-media-wrapper {
    cursor: pointer;
    /* Signal clickability for play/pause */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

/* Custom Scrollbar for Modal Sidebar (for longer captions/comments) */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #111;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Override Modal Sidebar Background for Consistency */
/* Locked Content Styles */
.preview-media {
    position: relative;
    overflow: hidden;
}

.blur-locked {
    filter: blur(40px) brightness(0.7);
    transition: filter 0.3s;
    user-select: none;
    pointer-events: none;
}

.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    /* Vertical Layout */
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* Space between box and text */
    z-index: 10;
    transition: all 0.3s ease;
    pointer-events: none;
    /* Let clicks pass to the parent feed-item */
}

.lock-box {
    background: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    width: 76px;
    /* Back to original elegant size */
    height: 76px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(249, 215, 116, 0.35);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 0 15px rgba(249, 215, 116, 0.05);
    transition: all 0.3s ease;
}

.lock-text {
    color: #f9d774;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    margin-top: 4px;
    white-space: nowrap;
    /* Prevent wrapping */
}

.lock-box i {
    background: linear-gradient(135deg, #f9d774 0%, #e0c268 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.lock-box .lock-logo {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Custom overlay logo: displayed freely without lock-box frame */
.lock-logo-free {
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.feed-item:hover .lock-logo-free {
    transform: scale(1.08);
}

.feed-item:hover .lock-box {
    transform: scale(1.08);
    border-color: rgba(249, 215, 116, 0.6);
}

/* Responsive Lock Scaling */
@media (max-width: 767px) {
    .lock-overlay {
        gap: 8px;
    }

    .lock-box {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .lock-box i {
        font-size: 1.6rem;
    }

    .lock-text {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }
}

#detailModal .modal-header,
#detailModal .modal-content {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (min-width: 1200px) {
    #detailModal .modal-xl {
        max-width: 1400px;
    }
}

#detailModal .modal-body {
    background-color: #121212;
    padding: 20px;
}

.post-header-sidebar .post-date-sidebar {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    font-weight: 700;
    opacity: 1 !important;
}

.post-caption-sidebar {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.interaction-stats-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.interaction-stats-bar i {
    font-size: 1.4rem;
    transition: transform 0.2s, color 0.2s;
    color: var(--primary-color) !important;
}

.interaction-stats-bar i:hover {
    transform: scale(1.1);
}

/* --- Like Button Styles --- */
.like-btn {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.like-btn i {
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Grid overlay: default gold heart */
.hover-stat.like-btn i {
    color: var(--primary-color);
}

/* Grid overlay: liked → red */
.hover-stat.like-btn.liked i {
    color: #ff3040 !important;
}

/* Modal sidebar: default gold heart */
.stat-item.like-btn i {
    color: var(--primary-color) !important;
}

/* Modal sidebar: liked → red */
.stat-item.like-btn.liked i {
    color: #ff3040 !important;
}

/* Pop animation on like */
.like-btn.liked i {
    animation: likeHeartPop 0.35s ease;
}

@keyframes likeHeartPop {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.35);
    }

    60% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.stat-item span {
    font-size: 0.85rem;
    color: #fff;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.comment-avatar svg {
    width: 100%;
    height: 100%;
}

.comment-item {
    padding: 4px 0;
}

.comment-item .fw-bold {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.comment-item .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.8rem;
}

/* Comment Input Area */
.comment-input-area input {
    border-radius: 20px !important;
    font-size: 0.85rem;
}

.comment-input-area input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.comment-input-area input:focus {
    box-shadow: 0 0 0 0.2rem rgba(249, 215, 116, 0.25);
    border-color: #f9d774;
}

.btn-comment-send {
    appearance: none;
    -webkit-appearance: none;
    background: none !important;
    border: none !important;
    padding: 4px 8px !important;
    margin: 0;
    color: #f9d774 !important;
    font-size: 1.15rem;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
    flex-shrink: 0;
    outline: none;
}

.btn-comment-send i {
    display: block;
}

.btn-comment-send:hover:not(:disabled),
.btn-comment-send:focus:not(:disabled) {
    color: #ffe699 !important;
    transform: scale(1.15);
    outline: none;
}

.btn-comment-send:active:not(:disabled) {
    transform: scale(0.9);
}

.btn-comment-send:disabled {
    color: #555 !important;
    cursor: default;
    transform: none !important;
    opacity: 0.6 !important;
}

#detailModal .modal-footer {
    min-height: 60px;
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
}

#detailModal .modal-footer i.bi-send-fill {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.2s;
}

#detailModal .modal-footer i.bi-send-fill:hover {
    transform: scale(1.1);
}

/* Mobile Preview Overlay (Long Press) */
.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.preview-overlay.show {
    opacity: 1;
    visibility: visible;
}

.preview-content {
    width: 85%;
    max-width: 400px;
    max-height: 90vh;
    /* Fallback */
    max-height: 90dvh;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    position: relative;
    /* For volume toggle */
}

.preview-volume-toggle {
    position: absolute;
    right: 15px;
    bottom: 85px;
    /* Above the actions bar */
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    z-index: 10;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-media-container {
    width: 100%;
    flex: 1;
    min-height: 0;
    background: #000;
    overflow: hidden;
}

.preview-media-container img,
.preview-media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-actions {
    display: grid;
    grid-template-columns: 75% 25%;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-actions-left {
    display: flex;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-actions-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-action-item {
    flex: 1;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.preview-action-item i {
    font-size: 1.3rem;
}

.preview-close-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.preview-close-btn i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.preview-action-item:active {
    background: rgba(255, 255, 255, 0.1);
}

.preview-action-item i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* Preview overlay: liked state → red heart */
.preview-action-item.like-btn.liked i {
    color: #ff3040 !important;
    animation: likeHeartPop 0.35s ease;
}

/* SUBSCRIPTION MODAL - CLEAN & HARDENED */
.subscription-modal-content {
    background: radial-gradient(circle at top right, #2a2a2a, #121212) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 20px;
}

.sub-headline-refined {
    color: #dfdfdf !important;
    font-size: 0.95rem;
    opacity: 1 !important;
}

.sub-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .pricing-podium .tier-featured {
        transform: scale(1.1) !important;
        z-index: 10;
        border: 2px solid rgba(249, 215, 116, 0.4) !important;
        background: rgba(249, 215, 116, 0.05) !important;
    }
}

.price-box {
    display: inline-flex !important;
    position: relative !important;
    justify-content: center;
    align-items: flex-start;
    margin: 15px 0 !important;
}

.price-box .price {
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 0.9 !important;
    letter-spacing: -2px;
}

.price-box .currency {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    margin-left: 4px;
    margin-top: 0.2rem;
    color: var(--primary-color);
}

.tier-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tier-bronze .tier-icon {
    color: #cd7f32;
}

.tier-silver .tier-icon {
    color: #c0c0c0;
}

.tier-gold .tier-icon {
    color: #f9d774;
}

.sub-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.tier-icon i::before {
    content: "\F586" !important;
    /* Always bi-star-fill */
}

.duration {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.save-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--primary-color);
    color: #121212;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Tier Specific Styles */
.tier-gold {
    border: 1px solid rgba(249, 215, 116, 0.3);
    background: rgba(249, 215, 116, 0.05);
}

.tier-gold::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(249, 215, 116, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.btn-silver {
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    color: #121212;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn-silver:hover {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .sub-card {
        padding: 20px 15px;
    }

    .price-box .price {
        font-size: 1.8rem;
    }
}

/* SUBSCRIPTION MODAL - FINAL POLISHED & FIXED */
.pricing-podium .tier-featured {
    transform: scale(1.1) !important;
    z-index: 100 !important;
    box-shadow: 0 20px 60px rgba(249, 215, 116, 0.3) !important;
    border: 2px solid rgba(249, 215, 116, 0.5) !important;
}

.sub-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    /* CRITICAL for badge clipping */
}

.save-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--primary-color);
    color: #121212;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.price-box {
    display: inline-flex !important;
    position: relative !important;
    justify-content: center;
    align-items: flex-start;
    margin: 15px 0 !important;
}

.price-box .price {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    line-height: 0.9 !important;
    letter-spacing: -1px;
}

.price-box sup.currency {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    margin-left: 5px;
    margin-top: 0.3rem;
    color: var(--primary-color);
    opacity: 0.9;
}

.tier-icon i.bi-star-fill::before {
    content: "\F586" !important;
}

/* VIP Avatar Styling for Gold Card */
.vip-avatar-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 15px;
    z-index: 5;
}

.vip-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(249, 215, 116, 0.5);
    background: #2a2a2a;
}

@keyframes crown-float {

    0%,
    100% {
        transform: rotate(15deg) translateY(0);
    }

    50% {
        transform: rotate(15deg) translateY(-5px);
    }
}

/* Adjustments for Bronze/Silver Icons to match size/spacing */
.pricing-podium .tier-icon {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.8) 50%, transparent 100%);
    z-index: 1050;
    /* Above modals */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .mobile-sticky-cta {
        display: none !important;
    }
}

/* Ensure Feed Grid has padding at bottom for sticky CTA on mobile */
@media (max-width: 767px) {
    .feed-container {
        padding-bottom: 80px;
    }
}

/* Responsive Detail Modal Fix */
@media (min-width: 992px) {
    .detail-modal-row {
        height: 90vh;
        max-height: 90vh;
    }

    .detail-modal-media,
    .detail-modal-sidebar {
        height: 100%;
    }
}

@media (max-width: 991px) {
    .detail-modal-row {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .detail-modal-media {
        width: 100%;
        height: auto;
        min-height: 300px;
    }

    .video-wrapper {
        height: auto;
    }

    .video-content {
        height: auto;
    }

    .video-content img,
    .video-content video {
        width: 100%;
        height: auto;
    }

    .detail-modal-sidebar {
        height: auto;
    }
}

/* === AUTH FORM FLOATING LABELS & NARROW VIEWS === */

/* Constrain register/login/loggedin views to a slimmer width */
#authView-register,
#authView-login,
#authView-loggedin {
    max-width: 380px;
    margin: 0 auto;
}

/* Floating Label Group */
.ff-float-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.ff-float-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 22px 16px 8px;
    font-size: 0.95rem;
    color: #fff;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
}

.ff-float-group input::placeholder {
    color: transparent;
    /* Hide native placeholder */
}

.ff-float-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
    padding: 0 2px;
}

/* Floating state: when focused or has value */
.ff-float-group input:focus~label,
.ff-float-group input:not(:placeholder-shown)~label {
    top: 10px;
    transform: translateY(0);
    font-size: 0.7rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* Focus ring glow */
.ff-float-group input:focus {
    border-color: rgba(249, 215, 116, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(249, 215, 116, 0.1);
}

/* Error state (optional, for future validation) */
.ff-float-group input.is-invalid {
    border-color: #dc3545;
}

.ff-float-group input.is-invalid~label {
    color: #dc3545;
}

/* Subscription modal: use modal-sm sizing for auth views */
#subscriptionModal .modal-dialog {
    transition: max-width 0.3s ease;
}

/* When showing auth views, make modal narrower */
#subscriptionModal.auth-narrow .modal-dialog {
    max-width: 460px;
}

/* Auth error alert styling */
#auth-error-register,
#auth-error-login {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
    border-radius: 10px;
}

/* === FAN AVATAR DROPDOWN === */

.fan-avatar-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Hide Bootstrap dropdown caret */
.fan-avatar-btn::after {
    display: none;
}

.fan-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #e0c268);
    color: #121212;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(249, 215, 116, 0.3);
}

.fan-avatar-btn:hover .fan-avatar-circle {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(249, 215, 116, 0.5);
}

.fan-dropdown {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.fan-dropdown .dropdown-header {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px 4px;
}

.fan-dropdown-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
}

.fan-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

.fan-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    font-size: 0.85rem;
    transition: background 0.15s, color 0.15s;
}

.fan-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.fan-dropdown .dropdown-item i {
    color: var(--primary-color);
}

/* Expiry Warning Badge */
.fan-avatar-btn {
    position: relative;
}

.fan-expiry-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-color, #111);
    animation: expiry-pulse 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes expiry-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
    }
}

/* === SUBSCRIPTION INFO MODAL === */

.sub-info-card {
    background: #141414;
    border: 1px solid rgba(249, 215, 116, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(249, 215, 116, 0.05);
}

.sub-info-header {
    position: relative;
    text-align: center;
    padding: 2rem 1.5rem 1rem;
    overflow: hidden;
}

.sub-info-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(249, 215, 116, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.sub-info-crown {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #f9d774 0%, #e0c268 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(249, 215, 116, 0.3));
    position: relative;
    z-index: 1;
}

.sub-info-tier-name {
    font-weight: 800;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #f9d774, #e0c268);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.5rem 0 0.2rem;
    letter-spacing: 0.5px;
}

.sub-info-subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin: 0;
    letter-spacing: 0.3px;
}

.sub-info-stats {
    display: flex;
    gap: 12px;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.sub-info-stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(249, 215, 116, 0.1);
    border-radius: 12px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    backdrop-filter: blur(4px);
}

.sub-info-stat-value {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
}

.sub-info-stat-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.sub-info-progress-wrap {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.sub-info-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.sub-info-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a84c, #f9d774, #e0c268);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.sub-info-renew-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.sub-info-renew-hint i {
    color: rgba(249, 215, 116, 0.5);
}

.sub-info-renew-btn {
    background: linear-gradient(135deg, var(--primary-color), #e0c268);
    color: #000;
    border: none;
    font-size: 0.9rem;
    padding: 0.6rem;
}

.sub-info-renew-btn:hover {
    background: linear-gradient(135deg, #e0c268, var(--primary-color));
    color: #000;
}

.sub-info-close-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(249, 215, 116, 0.15);
    font-size: 0.85rem;
    padding: 0.5rem;
    transition: all 0.2s;
}

.sub-info-close-btn:hover {
    color: #fff;
    border-color: rgba(249, 215, 116, 0.4);
    background: rgba(249, 215, 116, 0.05);
}

/* === MOBILE PROFILE BOTTOM SHEET === */

.mobile-sheet-item {
    font-size: 0.95rem;
    border-radius: 0;
    transition: background 0.15s;
}

.mobile-sheet-item:hover,
.mobile-sheet-item:active {
    background: rgba(249, 215, 116, 0.06);
}

#mobileProfileSheet {
    z-index: 1060;
}

#mobileProfileSheet+.offcanvas-backdrop {
    z-index: 1055;
}

/* === LEGAL SIDEBAR === */
.sidebar-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color) !important;
    opacity: 1 !important;
    transform: translateX(4px);
}

.sidebar-link i {
    transition: transform 0.2s ease;
}

.sidebar-link:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* === DESKTOP LEFT SIDEBAR === */
.desktop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80px;
    background: var(--bg-color, #111);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1040;
    transition: all 0.3s ease;
}

.sidebar-avatar-wrapper:hover .fan-avatar-circle {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(249, 215, 116, 0.4);
}

.sidebar-login-icon i, .sidebar-burger-icon i {
    transition: all 0.2s ease;
}

.sidebar-login-icon:hover i, .sidebar-burger-icon:hover i {
    opacity: 1 !important;
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

@media (min-width: 768px) {
    body {
        /* Shift the main content area by the sidebar width */
        padding-left: 80px;
    }
    
    /* Center the feed container in the remaining width */
    .feed-container {
        margin: 0 auto;
        width: 100%;
    }
}

/* --- MEDIA PROTECTION (Anti-Download) --- */
.feed-item img, .feed-item video,
.modal-media-content img, .modal-media-content video,
.preview-media-container img, .preview-media-container video,
.modal-media-bg {
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
    pointer-events: none !important;
    -webkit-user-drag: none;
}

/* === LOGIN HINT TOAST (Feature Discovery) === */
.login-hint-toast {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(10px);
    background: #1e1e1e;
    border: 1px solid rgba(249, 215, 116, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 15px rgba(249, 215, 116, 0.1);
    width: max-content;
    max-width: 250px;
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.4s;
    pointer-events: none;
}

.login-hint-toast.show-toast {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(20px);
    pointer-events: auto;
}

.login-hint-toast .toast-body {
    padding: 12px 16px;
}

.login-hint-toast .btn-close {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.login-hint-toast .btn-close:hover {
    opacity: 1;
}

/* Caret/Arrow */
.login-hint-toast::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -7px;
    transform: translateY(-50%);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid rgba(249, 215, 116, 0.2);
}
.login-hint-toast::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #1e1e1e;
}