﻿/* ============================================
   GLOBAL THEME COLORS - Dark & Light Mode
   ============================================ */

:root {
    /* Light Mode Colors (Default) */
    --text-primary: #1a1a1a;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;

    /* Component Variables */
    --radius: 12px;
    --radius-sm: 8px;
    --color-border: #e5e5e5;
    --color-text: #333;
    --color-muted: #777;
    --color-primary: #007bff;
    --color-bg: #fff;
}
@media (prefers-color-scheme: light) {
    background::after {
        background: #ffffff;
    }
}


html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #fff;
    font-family: system-ui, sans-serif;
    color: #000;
}

body {
    display: block;
    padding-top: calc(var(--m-top) + env(safe-area-inset-top));
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/*.login-wrapper {
    width: 100%;
    max-width: 400px;
    background: #fff;*/ /*rgba(255,255,255,0.05);  subtle translucent card */
    /*backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
}*/

/*@media (max-width: 640px) {
    .login-wrapper {
        padding: 10px;
    }
}
*/
/*.login-page {
    width: 100%;
    min-height: 100vh;
    background: #0d0f12;*/ /* your TSR dark background */
    /*display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}*/

.button-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 1.2s ease-in-out infinite;
}



/* Ensure proper text colors across all elements */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

p, span, div, label, li, td, th {
    color: inherit;
}

/* Override white text in light mode */
:not(.dark) .text-white:not(.btn):not(.button):not([class*="bg-"]):not([class*="gradient"]) {
    color: var(--text-primary) !important;
}

/* Keep white text only on dark backgrounds */
.dark .text-white,
[class*="bg-gray-"]:not(.bg-gray-50):not(.bg-gray-100):not(.bg-gray-200) .text-white,
[class*="bg-blue-"] .text-white,
[class*="bg-purple-"] .text-white,
[class*="gradient"] .text-white {
    color: #ffffff !important;
}

/* Secondary text colors */
.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Input and form elements */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.dark input:not([type="checkbox"]):not([type="radio"]),
.dark textarea,
.dark select {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Placeholder text */
::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Links */
a:not([class*="btn"]):not([class*="button"]) {
    color: var(--color-primary);
}

.dark a:not([class*="btn"]):not([class*="button"]) {
    color: #60a5fa;
}

/* Card and Surface backgrounds */
.card,
.surface,
[class*="bg-white"] {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.dark .card,
.dark .surface,
.dark [class*="bg-white"] {
    background-color: var(--bg-secondary);
}

/* ============================================
   END GLOBAL THEME COLORS
   ============================================ */

.saved-listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.saved-listing-card {
    display: flex;
    flex-direction: column; /* stack title → image → description */
    align-items: center;
    padding: 6px;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

    .saved-listing-card:hover {
        background: #f2f2f2;
    }

.saved-listing-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.saved-listing-image {
/*    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
*/    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 4px;
}

.saved-listing-description {
    font-size: 0.75rem;
    color: #666;
}



/* CSS */
.button-89 {
    --b: 3px; /* border thickness */
    --s: .45em; /* size of the corner */
    --color: #373B44;
    padding: calc(.5em + var(--s)) calc(.9em + var(--s));
    color: var(--color);
    --_p: var(--s);
    background: conic-gradient(from 90deg at var(--b) var(--b),#0000 90deg,var(--color) 0) var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
    transition: .3s linear, color 0s, background-color 0s;
    outline: var(--b) solid #0000;
    outline-offset: .6em;
    font-size: 18px;
    font-weight:700;
    border: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

    .button-89:hover,
    .button-89:focus-visible {
        --_p: 0px;
        outline-color: var(--color);
        outline-offset: .05em;
        background-color:forestgreen;
        color: white;
    }

    .button-89:active {
        background: var(--color);
        color: #fff;
    }

.button-89 {
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.upload-spinner {
    border-color: white;
    border-top-color: transparent;
}


.liquid-glass {
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(16px) url(#refraction-filter);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1), /* Inner Glow */
    0 8px 32px rgba(0, 0, 0, 0.3); /* Outer Shadow */
}

.glass-popup {
    background: rgba(255, 255, 255, 0.50); /* subtle white tint */
    backdrop-filter: blur(18px) saturate(100%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.90);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    padding: 24px;
    transition: all 0.25s ease;
}

.popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 50;
}
.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .popup-close:hover {
        background: rgba(255, 255, 255, 0.25);
    }

/* Ion-icon styling for better visibility */
ion-icon {
    font-size: 32px !important;
    font-weight: 900 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    -webkit-filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    opacity: 1 !important;
}

/* Ensure icons in gradients are very visible */
.bg-gradient-to-br ion-icon,
.bg-gradient-to-tl ion-icon {
    color: #ffffff !important;
    font-weight: bold !important;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
}



/* Post Options Dropdown with Liquid Glass Effect */
.post-options-dropdown {
    padding: 12px !important;
    min-width: 200px !important;
    background: rgba(255, 255, 255, 0.50) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 2px solid rgba(255, 255, 255, 1) !important;
    border-radius: 20px !important;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* Override UIKit dropdown default styles */
.uk-dropdown.post-options-dropdown {
    background: rgba(255, 255, 255, 0.50) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 2px solid rgba(255, 255, 255, 1) !important;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

    .post-options-dropdown button,
    .post-options-dropdown form button {
        width: 100%;
        text-align: left;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .post-options-dropdown hr {
        margin: 8px 0;
        opacity: 0.5;
    }

/* Reaction Picker Popup */
.reaction-container {
    position: relative;
}
.reaction-picker {
    position: absolute;
    top: 0; /* COVER the like button */
    left: 50%;
    transform: translateX(-50%) translateY(-110%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 99999;
}

    .reaction-picker.show {
        opacity: 1;
        pointer-events: all;
        transform: translateX(-50%) translateY(-120%) scale(1);
    }


/* Ensure the picker displays above other overlays and is reachable */
.reaction-container { overflow: visible; }
.reaction-picker { z-index: 99999 !important; }
.reaction-picker-inner { pointer-events: all; }

/* Prevent native long-press selection / magnifier on mobile for like button */
.like-button,
.reaction-container,
.reaction-picker,
.reaction-btn {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none; /* iOS Safari long-press menu */
    touch-action: manipulation;
}

/* Mobile: ensure reaction picker fits on small screens and is scrollable */
@media (max-width: 640px) {
    .reaction-picker {
        left: 8px;
        right: 8px;
        transform: translateY(-6px) scale(0.95);
        bottom: auto;
        top: auto;
        margin-bottom: 0;
    }

    .reaction-picker.show {
        transform: translateY(0) scale(1);
    }

    .reaction-picker-inner {
        padding: 6px 8px;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .reaction-btn {
        padding: 8px;
    }
}

.reaction-picker-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 50px;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.reaction-btn {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.reaction-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.3) translateY(-4px);
}

.reaction-emoji {
    font-size: 28px;
    line-height: 1;
    display: block;
    transition: transform 0.2s ease;
}

.reaction-btn:hover .reaction-emoji {
    transform: scale(1.1);
}

.reaction-label {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.reaction-btn:hover .reaction-label {
    opacity: 1;
    transform: translateY(0);
}

/* Reaction animation when clicked */
@keyframes reactionPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.reaction-animate {
    animation: reactionPop 0.4s ease;
}














.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.blur-xl.loaded {
    filter: blur(0) !important;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: auto;
    margin-left: 0 !important;
    padding-left: 0 !important;
    /*height: 680px;*/
}
.carousel-container {
    position: relative;
    overflow: hidden;
    background-color: #777;
    width: auto;
    margin-left: 0 !important;
    padding-left: 0 !important;
    /*height: 680px;*/
}


.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
}

.carousel-image,
.carousel-video {
    width: 100%;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
}

/* LQIP blur-up */
.lqip {
    filter: blur(20px);
    transition: filter .4s ease;
}

    .lqip.loaded {
        filter: blur(0);
    }

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    gap: 6px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    border: none;
}

    .carousel-dot.active {
        background: #fff;
    }

/* Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 24px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

    .carousel-arrow.left {
        left: 10px;
    }

    .carousel-arrow.right {
        right: 10px;
    }

.tsr-sidebar-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.08), transparent );
    background-size: 200% 100%;
    animation: tsr-sidebar-shimmer 3s infinite;
    pointer-events: none;
}
/* Remove ALL left padding/margin from the slider */
.uk-slider-items {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

    /* Remove UIkit's default li spacing */
    .uk-slider-items > li {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* Make images align flush-left */
    .uk-slider-items > li {
        justify-content: center !important;
    }
    .uk-slider-items img,
    .uk-slider-items .tsr-video-container {
        margin-left: 0 !important;
    }


@keyframes tsr-sidebar-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.tsr-event-item {
    margin-bottom: 0.75rem;
}

.tsr-event-title {
    font-weight: 600;
}

.tsr-event-date {
    font-size: 0.85rem;
    color: var(--tsr-text-secondary);
}

.tsr-sponsored-card {
    position: relative;
    overflow: hidden;
}

.tsr-sponsored-label {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.tsr-sponsored-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.tsr-suggest-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tsr-suggest-avatar {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    object-fit: cover;
}

.tsr-suggest-name {
    font-weight: 600;
}

.tsr-suggest-role {
    font-size: 0.85rem;
    color: var(--tsr-text-secondary);
}

.tsr-sidebar-card {
    background: var(--tsr-surface);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.tsr-sidebar-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tsr-trending-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tsr-trending-rank {
    font-weight: 700;
    color: var(--tsr-accent);
}

.tsr-feed-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

.tsr-feed-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tsr-search-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tsr-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.tsr-search-person img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.tsr-search-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.tsr-search-tabs {
    display: flex;
    gap: 0.25rem;
    background: #d9dbe1;
    padding: 0.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.05);
}
.tsr-search-btn {
    padding: 0.15rem 0.50rem;
    border-radius: 0.5rem;
    background: #15afe5;
    color: #ffffff;
    transition: 200ms;
}
.tsr-search-btn:hover {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #1297c2;
    color: #ffffff;
    transition: 200ms;
}

.tsr-search-tab {
    padding: 0.15rem 0.50rem;
    border-radius: 0.5rem;
    background: #15afe5;
    color: #ffffff;
    transition: 200ms;
}

    .tsr-search-tab:hover {
        background: var(--tsr-glass);
        color: var(--tsr-text-primary);
    }

    .tsr-search-tab.active {
        background: #1297c2;
        color: white;
    }

.tsr-search-header {
    display: flex;
    gap: 1rem;
   
}

.tsr-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background:rgba(255, 255, 255, 0.1);
    border: 2px solid #000;
    color: #000;
    font-size:large;
}

/*Start Mobile*/
.tsr-search-section-title-mobile {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tsr-search-grid-mobile {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.tsr-search-person-mobile img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.tsr-search-photo-mobile {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.tsr-search-tabs-mobile {
    display: flex;
    gap: 0.25rem;
    background: #d9dbe1;
    padding: 0.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.tsr-search-btn-mobile {
    padding: 1.25rem 1.25rem;
    border-radius: 0.5rem;
    background: #15afe5;
    color: #ffffff;
    transition: 200ms;
}

.tsr-search-btn-mobile:hover {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #1297c2;
    color: #ffffff;
    transition: 200ms;
}

.tsr-search-tab-mobile {
    padding: 0.15rem 0.50rem;
    border-radius: 0.5rem;
    background: #15afe5;
    color: #ffffff;
    transition: 200ms;
}

    .tsr-search-tab-mobile:hover {
        background: var(--tsr-glass);
        color: var(--tsr-text-primary);
    }

    .tsr-search-tab-mobile.active {
        background: #1297c2;
        color: white;
    }

.tsr-search-header-mobile {
    display: flex;
    gap: 1rem;
}



/* Make tabs align exactly with tab content */
.uk-tab {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.user-tabs-wrapper,
#profileTabsNav {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.user-tabs-wrapper,
#friendsTabsNav {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.uk-tab > * {
    margin-left: 0 !important;
}
/* Remove left padding/margin from the tab bar */
.mt-6 > nav,
.mt-6 > nav > ul {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.mt-6 nav ul li {
    margin-left: 0 !important;
}
    .mt-6 nav ul li:first-child a {
        margin-left: 0 !important;
    }
/* Align tabs with content */
#profileTabsNav,
#profileTabsNav ul {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Align tabs with content */
#friendsTabsNav,
#friendsTabsNav ul {
    margin-left: 0 !important;
    padding-left: 0 !important;
}








.tsr-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: var(--tsr-accent);
    border-radius: 9999px;
    box-shadow: 0 0 8px rgba(139,92,246,0.8);
}

.tsr-notif-avatar {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    object-fit: cover;
}

.tsr-notif-text {
    font-size: 0.95rem;
}

.tsr-notif-time {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.2rem;
}

.tsr-notif-list {
    max-height: 420px;
    overflow-y: auto;
}

.tsr-notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: 150ms;
}

    .tsr-notif-item:hover {
        background: rgba(255,255,255,0.05);
    }

    .tsr-notif-item.unread {
        background: rgba(139,92,246,0.15);
    }

.tsr-notif-header {
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tsr-notif-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 360px;
    background: rgba(20,20,20,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 1rem 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(-10px);
    transition: 250ms ease;
    z-index: 200;
}

    .tsr-notif-dropdown.show {
        opacity: 1;
        transform: translateY(0);
    }


.tsr-social-links {
    display: flex;
    gap: 1rem;
}

.tsr-social-link {
    color: var(--tsr-accent);
    font-weight: 600;
    transition: 150ms;
}

    .tsr-social-link:hover {
        opacity: 0.8;
    }


.tsr-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tsr-skill {
    background: rgba(255,255,255,0.08);
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.tsr-knownfor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.tsr-knownfor-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.tsr-knownfor-title {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}


.tsr-about-stats {
    display: flex;
    gap: 2rem;
}

.tsr-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.tsr-stat-label {
    color: var(--tsr-text-secondary);
    font-size: 0.85rem;
}


.tsr-about-card {
    background: var(--tsr-surface);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.tsr-about-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tsr-about-bio {
    color: var(--tsr-text-secondary);
    line-height: 1.6;
}

.tsr-about-hero {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.tsr-about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 9999px;
    object-fit: cover;
    border: 3px solid var(--tsr-accent);
}

.tsr-about-name {
    font-size: 2rem;
    font-weight: 700;
}

.tsr-about-role {
    color: var(--tsr-text-secondary);
    margin-top: 0.25rem;
}

.tsr-about-location {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.8;
}


.tsr-typing {
    display: flex;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
}

    .tsr-typing span {
        width: 8px;
        height: 8px;
        background: var(--tsr-text-secondary);
        border-radius: 50%;
        animation: tsr-typing 1.2s infinite;
    }

        .tsr-typing span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .tsr-typing span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes tsr-typing {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-4px);
    }
}


.tsr-msg-composer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}


.tsr-msg-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    animation: tsr-msg-in 250ms ease-out;
}

    .tsr-msg-bubble.me {
        background: var(--tsr-accent);
        color: white;
        margin-left: auto;
    }

    .tsr-msg-bubble.them {
        background: rgba(255,255,255,0.08);
        color: var(--tsr-text-primary);
    }


.tsr-convo-scroll {
    overflow-y: auto;
    padding-right: 0.5rem;
}

.tsr-convo-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: 200ms;
}

    .tsr-convo-item:hover {
        background: rgba(255,255,255,0.05);
    }

    .tsr-convo-item.active {
        background: var(--tsr-accent);
        color: white;
    }

.tsr-convo-avatar {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    object-fit: cover;
}


.tsr-messages-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 80px);
    gap: 1rem;
}

.tsr-featured-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.12), transparent );
    background-size: 200% 100%;
    animation: tsr-featured-shimmer 3s infinite;
    pointer-events: none;
}

@keyframes tsr-featured-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


.tsr-featured-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.tsr-featured-sub {
    color: var(--tsr-text-secondary);
    margin-top: 0.25rem;
}


.tsr-featured-img {
    width: 120px;
    height: 120px;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 300ms ease;
}

.tsr-featured-block:hover .tsr-featured-img {
    transform: scale(1.05);
}


.tsr-featured-content {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.tsr-featured-label {
    display: inline-block;
    background: var(--tsr-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 0 12px rgba(139,92,246,0.5);
}

    .tsr-featured-label.sponsored {
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(8px);
    }


@keyframes tsr-featured-in {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tsr-featured-block {
    background: var(--tsr-surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    animation: tsr-featured-in 350ms ease-out;
}


.tsr-pinned-wrapper {
    position: relative;
    overflow: hidden;
}

    .tsr-pinned-wrapper::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        border: 2px solid transparent;
        background: linear-gradient(120deg, rgba(139,92,246,0.0), rgba(139,92,246,0.4), rgba(139,92,246,0.0) );
        background-size: 200% 100%;
        animation: tsr-pinned-shimmer 3s infinite;
        pointer-events: none;
    }

@keyframes tsr-pinned-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


@keyframes tsr-pinned-pulse {
    0% {
        box-shadow: 0 0 12px rgba(139,92,246,0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(139,92,246,0.6);
    }

    100% {
        box-shadow: 0 0 12px rgba(139,92,246,0.3);
    }
}

.tsr-pinned-wrapper.pulse {
    animation: tsr-pinned-pulse 3s infinite;
}


.tsr-pinned-badge {
    display: inline-block;
    background: var(--tsr-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    box-shadow: 0 0 10px rgba(139,92,246,0.6);
}


.tsr-pinned-wrapper {
    border: 1px solid rgba(139,92,246,0.4);
    border-radius: 0.75rem;
    padding: 1rem;
    background: rgba(139,92,246,0.08);
    box-shadow: 0 0 18px rgba(139,92,246,0.25);
    margin-bottom: 2rem;
    animation: tsr-pinned-in 350ms ease-out;
}

@keyframes tsr-pinned-in {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.tsr-feed-skeleton {
    height: 140px;
    border-radius: 0.75rem;
    background: linear-gradient( 90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.12), rgba(255,255,255,0.04) );
    background-size: 200% 100%;
    animation: tsr-skeleton 1.2s infinite;
}

@keyframes tsr-skeleton {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


.tsr-loader-text {
    margin-top: 0.5rem;
    color: var(--tsr-text-secondary);
    font-size: 0.9rem;
}

.tsr-loader-dots {
    display: inline-flex;
    gap: 0.4rem;
}

    .tsr-loader-dots span {
        width: 10px;
        height: 10px;
        background: var(--tsr-accent);
        border-radius: 50%;
        animation: tsr-dot 1.2s infinite ease-in-out;
    }

        .tsr-loader-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .tsr-loader-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes tsr-dot {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}


.tsr-infinite-loader {
    text-align: center;
    padding: 2rem 0;
    opacity: 0;
    transition: opacity 250ms ease;
}

    .tsr-infinite-loader.show {
        opacity: 1;
    }

.tsr-feed-container {
    opacity: 1;
    transition: opacity 220ms ease;
}

    .tsr-feed-container.fade-out {
        opacity: 0;
    }


.tsr-feed-media-img {
    transition: transform 300ms ease;
}

    .tsr-feed-media-img:hover {
        transform: scale(1.03);
    }


.tsr-feed-item:hover {
    background: rgba(255,255,255,0.03);
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    transition: 200ms ease;
}


@keyframes tsr-composer-in {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tsr-feed-composer {
    animation: tsr-composer-in 300ms ease-out;
}


@keyframes tsr-post-in {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tsr-feed-item {
    animation: tsr-post-in 320ms ease-out;
}


.tsr-feed-skeleton {
    background: linear-gradient( 90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.12), rgba(255,255,255,0.04) );
    background-size: 200% 100%;
    animation: tsr-skeleton 1.2s infinite;
    border-radius: 0.75rem;
    height: 120px;
}

@keyframes tsr-skeleton {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


.tsr-feed-container {
    opacity: 1;
    transition: opacity 200ms ease;
}

    .tsr-feed-container.fade-out {
        opacity: 0;
    }


.tsr-feed-filters {
    position: relative;
}

.tsr-filter-highlight {
    position: absolute;
    top: 4px;
    bottom: 4px;
    border-radius: 0.6rem;
    background: rgba(139,92,246,0.18);
    transition: 220ms ease;
    pointer-events: none;
}


.tsr-feed-filter {
    position: relative;
    overflow: hidden;
}

    .tsr-feed-filter::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0.2rem;
        width: 0;
        height: 2px;
        background: rgba(255,255,255,0.7);
        transform: translateX(-50%);
        transition: width 180ms ease-out;
    }

    .tsr-feed-filter:hover::after {
        width: 60%;
    }

    .tsr-feed-filter.active::after {
        width: 80%;
        background: white;
    }



/* FILTER BAR */
.tsr-feed-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: var(--tsr-surface);
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
}

/* FILTER BUTTON */
.tsr-feed-filter {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--tsr-text-secondary);
    background: transparent;
    transition: 200ms;
}

    .tsr-feed-filter:hover {
        color: var(--tsr-text-primary);
        background: var(--tsr-glass);
    }

    /* ACTIVE STATE */
    .tsr-feed-filter.active {
        background: var(--tsr-accent);
        color: white;
        box-shadow: 0 0 12px rgba(139,92,246,0.6);
    }


.tsr-update-bar.shimmer {
    position: relative;
    overflow: hidden;
}

    .tsr-update-bar.shimmer::after {
        content: "";
        position: absolute;
        top: 0;
        left: -150%;
        width: 50%;
        height: 100%;
        background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.4), transparent );
        animation: tsr-shimmer 2.5s infinite;
    }

@keyframes tsr-shimmer {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}


@keyframes tsr-pulse {
    0% {
        box-shadow: 0 0 0px rgba(139,92,246,0.0);
    }

    50% {
        box-shadow: 0 0 12px rgba(139,92,246,0.6);
    }

    100% {
        box-shadow: 0 0 0px rgba(139,92,246,0.0);
    }
}

.tsr-update-bar.pulse {
    animation: tsr-pulse 2s infinite;
}


/* REAL-TIME UPDATE BAR */
.tsr-update-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--tsr-accent);
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: 250ms ease;
}

    .tsr-update-bar.show {
        opacity: 1;
        transform: translateY(0);
    }


/* FAVORITE CARD */
.tsr-favorite-card {
    background: var(--tsr-surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.25rem;
    border-radius: 0.75rem;
    transition: 200ms;
}

    .tsr-favorite-card:hover {
        background: rgba(255,255,255,0.03);
        transform: translateY(-3px);
    }

/* IMAGE */
.tsr-favorite-img-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.tsr-favorite-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 200ms;
}

.tsr-favorite-card:hover .tsr-favorite-img {
    transform: scale(1.05);
}


.tsr-settings-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--tsr-text-secondary);
    transition: 150ms;
}

    .tsr-settings-link:hover {
        background: var(--tsr-glass);
        color: var(--tsr-text-primary);
    }

/* PRODUCT TILE */
.tsr-product-tile {
    background: var(--tsr-surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.25rem;
    border-radius: 0.75rem;
    transition: 200ms;
}

    .tsr-product-tile:hover {
        background: rgba(255,255,255,0.03);
        transform: translateY(-3px);
    }

/* IMAGE */
.tsr-product-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.tsr-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 200ms;
}

.tsr-product-tile:hover .tsr-product-img {
    transform: scale(1.05);
}


.tsr-friend-card {
    background: var(--tsr-surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: 150ms;
}

    .tsr-friend-card:hover {
        background: rgba(255,255,255,0.03);
        transform: translateY(-2px);
    }

.tsr-friend-avatar {
    width: 96px;
    height: 96px;
    border-radius: 9999px;
    object-fit: cover;
    margin: 0 auto;
    border: 2px solid var(--tsr-accent);
}


/* COMPOSER */
.tsr-feed-composer {
    background: var(--tsr-surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.tsr-composer-input {
    width: 100%;
    background: var(--tsr-glass);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--tsr-text-primary);
    padding: 0.75rem;
    border-radius: 0.5rem;
    resize: none;
}

    .tsr-composer-input::placeholder {
        color: var(--tsr-text-secondary);
    }

.tsr-composer-icon {
    font-size: 1.25rem;
    transition: 150ms;
}

    .tsr-composer-icon:hover {
        color: var(--tsr-accent);
    }

/* MEDIA */
.tsr-feed-media-img {
    width: 100%;
    border-radius: 0.5rem;
    object-fit: cover;
}

/* ACTION BAR */
.tsr-feed-actions {
    display: flex;
    gap: 2rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 1rem;
}

.tsr-feed-action {
    color: var(--tsr-text-secondary);
    transition: 150ms;
}

    .tsr-feed-action:hover {
        color: var(--tsr-accent);
    }

/* COMMENTS */
.tsr-comment {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tsr-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    object-fit: cover;
}

.tsr-comment-input {
    flex: 1;
    background: var(--tsr-glass);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--tsr-text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}



/* WRAPPER */
.tsr-profile-wrapper {
    background: var(--tsr-surface);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

/* COVER PHOTO */
.tsr-profile-cover {
    height: 220px;
    overflow: hidden;
}

.tsr-profile-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* AVATAR */
.tsr-profile-avatar-lg {
    width: 128px;
    height: 128px;
    border-radius: 9999px;
    border: 4px solid var(--tsr-surface);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    object-fit: cover;
}

/* TABS */
.tsr-profile-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.75rem;
}

.tsr-profile-tab {
    padding-bottom: 0.5rem;
    color: var(--tsr-text-secondary);
    font-weight: 600;
    transition: 150ms;
    border-bottom: 2px solid transparent;
}

    .tsr-profile-tab:hover {
        color: var(--tsr-text-primary);
    }

    .tsr-profile-tab.active {
        color: var(--tsr-text-primary);
        border-bottom-color: var(--tsr-accent);
    }


.tsr-feed-item {
    background: var(--tsr-surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.tsr-feed-avatar {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    object-fit: cover;
}



.tsr-profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--tsr-surface);
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.tsr-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid var(--tsr-accent);
}


.tsr-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsr-modal {
    background: var(--tsr-surface);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2rem;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}


.tsr-section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tsr-text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.tsr-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--tsr-glass);
    color: var(--tsr-text-primary);
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 150ms;
}

    .tsr-input::placeholder {
        color: var(--tsr-text-secondary);
    }

    .tsr-input:focus {
        outline: none;
        border-color: var(--tsr-accent);
        box-shadow: 0 0 0 2px rgba(139,92,246,0.3);
    }


.tsr-card {
    background: var(--tsr-surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}


.tsr-nav-item {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--tsr-text-secondary);
    transition: 150ms;
}

    .tsr-nav-item:hover {
        background: var(--tsr-glass);
        color: var(--tsr-text-primary);
    }

.tsr-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--tsr-text-secondary);
    transition: 150ms;
}

    .tsr-dropdown-item:hover {
        background: var(--tsr-glass);
        color: var(--tsr-text-primary);
    }

.tsr-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: 150ms;
}

.tsr-btn-primary {
    background: var(--tsr-accent);
    color: white;
}

    .tsr-btn-primary:hover {
        background: #7c3aed;
    }

.tsr-btn-glass {
    background: var(--tsr-glass);
    color: var(--tsr-text-primary);
    backdrop-filter: blur(6px);
}

    .tsr-btn-glass:hover {
        background: rgba(255,255,255,0.08);
    }

.tsr-btn-ghost {
    background: transparent;
    color: var(--tsr-text-secondary);
}

    .tsr-btn-ghost:hover {
        color: var(--tsr-text-primary);
        background: var(--tsr-glass);
    }



body {
    background: #fafafa;
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

.feed-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 20px 0;
}

.post-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.post-user-info {
    display: flex;
    flex-direction: column;
}

.post-user-name {
    font-weight: 600;
    font-size: 15px;
}

.post-date {
    font-size: 12px;
    color: var(--color-muted);
}

.post-private-icon {
    margin-left: auto;
    font-size: 18px;
}

.post-caption {
    font-size: 15px;
    margin-bottom: 12px;
}

/* Custom Scrollbar Styles for Comment Modal */
#commentModal .overflow-y-auto::-webkit-scrollbar,
#commentModalScrollArea::-webkit-scrollbar {
    width: 8px;
}

#commentModal .overflow-y-auto::-webkit-scrollbar-track,
#commentModalScrollArea::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

#commentModal .overflow-y-auto::-webkit-scrollbar-thumb,
#commentModalScrollArea::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.5);
    border-radius: 10px;
    transition: background 0.2s;
}

#commentModal .overflow-y-auto::-webkit-scrollbar-thumb:hover,
#commentModalScrollArea::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.8);
}

/* Dark mode scrollbar */
.dark #commentModal .overflow-y-auto::-webkit-scrollbar-thumb,
.dark #commentModalScrollArea::-webkit-scrollbar-thumb {
    background: rgba(75, 85, 99, 0.6);
}

.dark #commentModal .overflow-y-auto::-webkit-scrollbar-thumb:hover,
.dark #commentModalScrollArea::-webkit-scrollbar-thumb:hover {
    background: rgba(75, 85, 99, 0.9);
}

/* Firefox scrollbar */
#commentModal .overflow-y-auto,
#commentModalScrollArea {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

.dark #commentModal .overflow-y-auto,
.dark #commentModalScrollArea {
    scrollbar-color: rgba(75, 85, 99, 0.6) transparent;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Post Modal scrollbar styling */
#postModalCommentsArea {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

.dark #postModalCommentsArea {
    scrollbar-color: rgba(75, 85, 99, 0.6) transparent;
}

#postModalCommentsArea::-webkit-scrollbar {
    width: 8px;
}

#postModalCommentsArea::-webkit-scrollbar-track {
    background: transparent;
}

#postModalCommentsArea::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 10px;
}

.dark #postModalCommentsArea::-webkit-scrollbar-thumb {
    background-color: rgba(75, 85, 99, 0.6);
}

/* Settings page subcategory animation */
#subCategoryContainer {
    transition: all 0.3s ease-in-out;
}

#subCategoryContainer.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#subCategoryContainer.visible {
    opacity: 1;
    max-height: 200px;
}

.carousel-wrapper {
    position: relative;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 8px;
    padding-bottom: 6px;
}

    .carousel::-webkit-scrollbar {
        display: none;
    }

.carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.carousel-image {
    width: 100%;
    border-radius: var(--radius);
    user-select: none;
    pointer-events: none;
    filter: blur(12px);
    transform: scale(1.05);
    transition: filter 0.4s ease, transform 0.4s ease;
}

    .carousel-image.loaded {
        filter: blur(0);
        transform: scale(1);
    }

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    gap: 6px;
}

    .carousel-dots .dot {
        width: 8px;
        height: 8px;
        background: #ccc;
        border-radius: 50%;
        transition: background 0.2s ease, transform 0.2s ease;
    }

        .carousel-dots .dot.active {
            background: #333;
            transform: scale(1.3);
        }

.repost-block {
    background: #f7f7f7;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.action-btn,
.like-btn,
.favorite-btn,
.comment-btn,
.repost-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

    .action-btn:hover,
    .like-btn:hover,
    .favorite-btn:hover,
    .comment-btn:hover,
    .repost-btn:hover {
        transform: scale(1.15);
    }

    .like-btn.active {
        color: #e63946;
    }

    .favorite-btn.active {
        color: #ffb703;
    }

.post-comments {
    margin-top: 10px;
}

.comment {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.comment-user {
    font-weight: 600;
    margin-right: 6px;
    font-size: 14px;
}

.comment-text {
    font-size: 14px;
    color: #444;
}

.view-all-comments {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
}

    .view-all-comments:hover {
        text-decoration: underline;
    }

.comment-form {
    margin-top: 10px;
}

.comment-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.comment-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.profile-header {
    width: 100%;
    margin-bottom: 20px;
}

.profile-cover-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.profile-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-wrapper {
    margin-top: -60px;
    padding-left: 16px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

.profile-info {
    padding: 12px 16px;
}

.profile-fullname {
    font-size: 1.4rem;
    font-weight: 700;
}

.profile-username {
    color: #777;
    font-size: 0.95rem;
}

.profile-bio {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #444;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 0.95rem;
}

.profile-action {
    margin-top: 14px;
}

.profile-follow-btn,
.profile-edit-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: 600;
}

.profile-tabs {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

    .profile-tabs a {
        text-decoration: none;
        color: #555;
        padding: 8px 12px;
        font-weight: 600;
    }

        .profile-tabs a.active {
            color: black;
            border-bottom: 2px solid black;
        }

.profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.profile-post-tile {
    position: relative;
    display: block;
}

.profile-post-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.profile-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: 0.2s ease;
}

.profile-post-tile:hover .profile-post-overlay {
    opacity: 1;
}

.multi-image-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.55);
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.clips-feed {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.clip-item {
    position: relative;
    height: 100vh;
    scroll-snap-align: start;
}

.clip-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clip-overlay {
    position: absolute;
    bottom: 40px;
    left: 20px;
    color: white;
}

.clip-actions {
    position: absolute;
    right: 20px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .clip-actions button {
        background: none;
        border: none;
        color: white;
        font-size: 28px;
    }




/* Comment Modal Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}
