/* ==========================================
   GLOBAL STYLES & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* ==========================================
   HEADER STYLES
   ========================================== */
.main-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
}

.header-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease;
}

.fp-header__link {
    color: #f8f9fa;
}

.header-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    background: #dc7228;
    margin: 12px auto 0;
    border-radius: 3px;
    animation: fadeInUp 1s ease;
}

.gradient-text {
    background: linear-gradient(90deg, #fcd152, #dc7228);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================
   MAIN CONTENT LAYOUT
   ========================================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.posts-column {
    min-width: 0;
}

.sidebar-column {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.text-primary {
    color: #dc7228 !important;
}

/* ==========================================
   POST CARD STYLES
   ========================================== */
.post-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Post Header */
.post-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
    gap: 5px;
}

.post-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}
.post-user-info .user-details{
    text-align: center;
}

.post-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
}

.post-user-avatar img {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.post-user-avatar img.verified-user,
.user-initial.verified-user {
    border: 2px solid #cda333;
    box-shadow: 0px 0px 4px 4px #8e742e;
}

.post-header .connection-btn{
    text-align: end;
    width: fit-content;
    display: flex;
    align-items: end;
    justify-content: end;
}

.verified-icon {
    height: 20px;
    width: 20px;
    margin-top: -5px;
}

.user-details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.user-details p {
    font-size: 0.875rem;
    color: #999;
    margin: 0;
}

.post-username a {
    color: #fff;
    text-decoration: none;
}

.post-location a {
    font-size: 0.875rem;
    color: #999;
    margin: 0;
    text-decoration: none;
}

.post-time {
    font-size: 0.75rem;
    color: #666;
}

/* ==========================================
   CAROUSEL STYLES
   ========================================== */
.carousel-container {
    position: relative;
    background-color: #000;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.carousel-item.active {
    display: block;
}

.media-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.media-wrapper img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    height:100%!important;
}

.media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Video Controls Overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.carousel-item:hover .video-overlay {
    opacity: 1;
}

.play-pause-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-pause-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.play-pause-btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* Mute Button */
.mute-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.mute-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.mute-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

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

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-control-prev {
    left: 0.5rem;
}

.carousel-control-next {
    right: 0.5rem;
}

.carousel-control-prev svg,
.carousel-control-next svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator.active {
    /* width: 24px; */
    background-color: #ff6b35;
}

/* ==========================================
   POST FOOTER STYLES
   ========================================== */
.post-footer {
    padding: 0;
}

.post-description-wrapper {
    padding: 1rem;
}

.post-description,
.post-description-full {
    font-size: 0.875rem;
    color: #999;
    line-height: 1.6;
    word-wrap: break-word;
    margin: 0;
}

.post-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.post-description.d-none {
    display: none;
}

.post-description-full {
    display: block;
    max-height: 0;
    opacity: 0;
    text-align: justify;
    white-space: pre-line;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease, 
                padding-top 0.3s ease;
    padding-top: 0;
}

.post-description-full.d-none {
    display: none;
    max-height: 0;
    opacity: 0;
}

.post-description-full:not(.d-none) {
    max-height: 3000px;
    opacity: 1;
    padding-top: 0.5rem;
}

.read-more-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    /* margin-left: 0.5rem; */
    display: inline-block;
    transition: color 0.2s ease, opacity 0.3s ease;
    cursor: pointer;
    font-size: 13px;
}

.read-more-link:hover {
    color: #ff8c5a;
    text-decoration: underline;
}

.description-link {
    color: #dc7228;
    text-decoration: none;
    transition: color 0.2s ease;
}

.description-link:hover {
    color: #ff6b35;
    text-decoration: underline;
}

.btn-feature {
    background: linear-gradient(90deg, #c99212, #e5b23c);
    border: 0px;
    box-shadow: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-bump {
    background: linear-gradient(90deg, #dc3545, #e25544);
    border: 0px;
    box-shadow: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.stats-group {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #999;
    padding: 5px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-actions {
    display: flex;
    border-top: 1px solid #333;
    justify-content: space-around;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.action-btn:hover {
    color: #fff;
    background-color: #2a2a2a;
}

.action-btn.reacted {
    color: #ff6b35;
}

.action-btn:active {
    transform: scale(0.95);
}

/* ==========================================
   EMOJI REACTIONS STYLES
   ========================================== */
.emoji-reactions {
    position: absolute;
    bottom: calc(100% + 5px); 
    left: -40%;
    transform: translateX(-50%);
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 0.75rem;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    max-width: 90vw;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.emoji-reactions::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1e1e1e;
}

.action-btn.showEmotions .emoji-reactions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.reaction-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.reaction-emoji:hover {
    transform: scale(1.3) translateY(-8px);
}

.reaction-emoji img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.reaction-emoji img:hover {
    filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.5));
}

/* Animation for reaction popup */
@keyframes reactionPop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.action-btn.showEmotions .emoji-reactions {
    animation: reactionPop 0.3s ease;
}

/* Reaction count animation */
@keyframes reactionBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.reactions-count {
    animation: reactionBounce 0.4s ease;
}


/* --- Mobile Screen Fix (Add this block) --- */
@media (max-width: 600px) {
    .action-btn.showEmotions .emoji-reactions {
        left: 5px;
        transform: none; 
    }
}
/* ------------------------------------------ */

/* Like button active state */
.like-btn.reacted {
    color: #ff6b35;
}

.like-btn.reacted i {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ==========================================
   LOADING & END MESSAGE STYLES
   ========================================== */
.loading-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.loading-container.d-none {
    display: none;
}

.end-message {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    font-size: 0.875rem;
}

.end-message.d-none {
    display: none;
}

#scroll-observer {
    height: 40px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr 320px;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-column {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .header-title::after {
        width: 80px;
        height: 2px;
        margin: 8px auto 0;
    }
    
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .posts-wrapper {
        gap: 1.5rem;
    }
    
    .post-header {
        padding: 0.875rem 1rem;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .post-footer {
        padding: 0;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 36px;
        height: 36px;
    }
    
    .play-pause-btn {
        width: 56px;
        height: 56px;
    }
    
    .play-pause-btn svg {
        width: 28px;
        height: 28px;
    }

    .user-avatar img {
        width: 40px;
        height: 40px;
    }

    .action-btn {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.25rem;
    }
    
    .posts-wrapper {
        gap: 1rem;
    }
    
    .post-card {
        border-radius: 0.75rem;
    }
    
    .user-details h3 {
        font-size: 0.875rem;
    }
    
    .user-details p {
        font-size: 0.75rem;
    }
    
    .post-description {
        font-size: 0.8125rem;
    }
    
    .read-more-link {
        font-size: 0.8125rem;
    }

    .btn-feature, .btn-bump {
        font-size: 0.8125rem;
        font-weight: 600;
        color: #fff;
    }
    
    .stats-group {
        font-size: 0.7rem;
        gap: 0.75rem;
    }

    .action-btn {
        font-size: 11px;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
/* .d-none {
    display: none !important;
} */

.text-center {
    text-align: center;
}

/* ==========================================
   SIDEBAR SECTIONS
   ========================================== */
.sidebar-section {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 1rem;
    padding: 1.25rem;
    /* display:none; */
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
}

.search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1e1e1e;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #999;
}

.search-btn:hover {
    background-color: #2a2a2a;
    border-color: #444;
    color: #fff;
}

/* Popular Posts */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 350px;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.popular-posts-loader {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.popular-post-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popular-post-item:hover {
    background-color: #252525;
    border-color: #333;
    transform: translateX(4px);
}

.popular-post-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #2a2a2a;
}

.video-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #000;
}

.popular-post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-post-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.popular-post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Connections */
.connections-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 240px;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.connection-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.connection-item:hover {
    background-color: #252525;
    border-color: #333;
}

.connection-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    text-transform: uppercase;
}

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

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

.connection-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connection-name a {
    text-decoration: none;
    color: #fff;
}

.connection-username {
    font-size: 0.8125rem;
    color: #999;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connection-username a {
    text-decoration: none;
    color: #999;
}

.connection-btn {
   padding: 0.4rem .75rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: none;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.connection-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.connection-btn.connected {
    background: #1e1e1e;
    border: 1px solid #333;
}

.connection-btn.connected:hover {
    background: #2a2a2a;
    box-shadow: none;
}

.login-link {
    color: #dc7228;
    display: contents;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #ff6b35;
    text-decoration: underline;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.share-modal.active {
    display: flex;
}

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-modal-content {
    background: #1e1e2e;
    border-radius: 24px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 20px;
}

.share-modal-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.tabs-container {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 32px;
    gap: 8px;
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
    color: #ffffff;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
    padding: 28px 32px 32px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.social-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.social-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-item:hover {
    transform: translateY(-5px);
}

.social-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.15);
}

.social-label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.instagram { color: #E4405F; }
.twitter { color: #1DA1F2; }
.facebook { color: #1877F2; }
.tiktok { color: #000000; background: #ffffff !important; }
.whatsapp { color: #25D366; }
.discord { color: #5865F2; }
.reddit { color: #FF4500; }
.telegram { color: #0088cc; }

.copy-link-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 28px;
}

.copy-link-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.copy-link-container {
    display: flex;
    gap: 10px;
}

.link-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.link-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px 12px 44px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.users-list {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 20px;
    scrollbar-width: thin;
}

.users-list::-webkit-scrollbar {
    width: 6px;
}

.users-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.users-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-item.selected {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-info {
    flex: 1;
}

.connection-user-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.user-username {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.user-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    cursor: pointer;
    position: relative;
}

.user-item.selected .user-checkbox {
    background: #667eea;
    border-color: #667eea;
}

.user-item.selected .user-checkbox::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.send-btn {
    width: 100%;
    background: #667eea;
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.send-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.qr-code-wrapper {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.qr-code {
    width: 220px;
    height: 220px;
    display: block;
}

.qr-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.download-qr-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-qr-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}

@media (max-width: 480px) {
    .social-icons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .social-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .social-label {
        font-size: 12px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: #ff6b35;
    color: #fff;
}

::-moz-selection {
    background-color: #ff6b35;
    color: #fff;
}

.colored-toast.swal2-icon-success {
  background-color: #dc7228 !important;
}

.colored-toast.swal2-icon-error {
  background-color: #dc3545 !important;
}

.colored-toast.swal2-icon-warning {
  background-color: #ffc107 !important;
}

.colored-toast.swal2-icon-info {
  background-color: #17a2b8 !important;
}

.colored-toast.swal2-icon-question {
  background-color: #87adbd !important;
}

.colored-toast .swal2-title {
  color: white;
}

.colored-toast .swal2-close {
  color: white;
}

.colored-toast .swal2-html-container {
  color: white;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .colored-toast {
    width: 90% !important;
    max-width: 350px !important;
    margin: 10px !important;
  }
  
  .colored-toast .swal2-title {
    font-size: 16px !important;
  }
  
  .colored-toast .swal2-icon {
    width: 2em !important;
    height: 2em !important;
  }
}

@media (max-width: 480px) {
  .colored-toast {
    width: 95% !important;
    max-width: 320px !important;
    margin: 8px !important;
  }
  
  .colored-toast .swal2-title {
    font-size: 14px !important;
  }
  
  .colored-toast .swal2-timer-progress-bar {
    height: 3px !important;
  }
}

/* Better positioning for top-end toasts */
.swal2-container.swal2-top-end {
  padding: 15px;
}

/* Smooth animations */
.colored-toast {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Stack multiple toasts nicely */
.swal2-container .swal2-toast {
  margin-bottom: 10px;
}

/* ==========================================
   SIDEBAR NAVIGATION STYLES
   ========================================== */

/* Hide offcanvas on desktop, show sidebar instead */
@media (max-width: 992px) {
   .optimized_page .sidebar-column{display: none !important;}
}

/* Desktop Sidebar */
.fp-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #1a1a1a;
    border-right: 1px solid #333;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

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

.fp-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.fp-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Adjust main content to accommodate sidebar */
.main-content {
    transition: margin-left 0.3s ease;
}

/* Sidebar Logo/Brand */
.fp-sidebar__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.fp-sidebar__logo img {
    max-width: 150px;
    height: auto;
}

/* Profile Section in Sidebar */
.fp-sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #333;
    margin-bottom: 1.5rem;
}

.fp-sidebar-profile__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 2px solid #333;
}

.fp-sidebar-profile__avatar.gold-rim {
    border: 2px solid #cda333;
    box-shadow: 0px 0px 4px 4px #8e742e;
}

.fp-sidebar-profile__name-wrapper {
    text-align: center;
    width: 100%;
}

.fp-sidebar-profile__name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.fp-sidebar-profile__badge {
    width: 20px;
    height: 20px;
}

.fp-sidebar-profile__connections {
    color: #999;
    font-size: 0.875rem;
    text-decoration: none;
}

.fp-sidebar-profile__connections:hover {
    color: #dc7228;
}

/* Profile Buttons */
.fp-sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.fp-sidebar-buttons .fp-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.fp-btn-light {
    background-color: #2a2a2a;
    color: #fff;
}

.fp-btn-light:hover {
    background-color: #333;
}

.fp-btn-verify {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
}

.fp-btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.fp-btn-verify.is-disabled {
    background: #2a2a2a;
    color: #666;
    cursor: not-allowed;
}

.fp-btn-verify.is-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Sidebar Menu */
.fp-sidebar__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-sidebar__item {
    margin-bottom: 0.5rem;
}

.fp-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: #999;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.fp-sidebar__link:hover {
    background-color: #2a2a2a;
    color: #fff;
}

.fp-sidebar__link.active {
    background-color: #2a2a2a;
    color: #dc7228;
}

/* Collapsible Menu */
.fp-sidebar__link[data-bs-toggle="collapse"] {
    position: relative;
}

.fp-sidebar__link[data-bs-toggle="collapse"] i.float-end {
    position: absolute;
    right: 1rem;
    transition: transform 0.3s ease;
}

.fp-sidebar__link[data-bs-toggle="collapse"]:not(.collapsed) i.float-end {
    transform: rotate(180deg);
}

.collapse.show {
    margin-top: 0.5rem;
}

.collapse .fp-sidebar__link {
    padding-left: 2.5rem;
    font-size: 0.875rem;
}

.optimized_page  .offcanvas-start{width: 320px !important;}
.fp-navigation__left{overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin;}
.fp-header__links{flex-wrap: nowrap !important;}
.optimized_page .fp-navigation__search .search-dropdown{transform: none !important; right: 0 !important;top: 25px !important;}
.optimized_page .fp-navigation__search .search-dropdown input{padding: 14px 15px !important;}
.fp-header__daily-quote-icon svg{
    color: #dc7228;
    font-size: 20px;
}
.fp-header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc7228;
    transition: width 0.3s ease;
}

.company-logo .fp-navigation__left{padding-bottom: 0 !important;}

/* Mobile - Keep offcanvas behavior */
@media (max-width: 991px) {
    .fp-sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .offcanvas-start {
        display: flex !important;
    }
}

/* Toggle button for mobile */
.fp-sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .fp-sidebar-toggle {
        display: flex;
    }
}

/* Header adjustments for sidebar layout */
@media (min-width: 1025px) {   
    .fp-navigation__toggle-btn {
        display: none;
    }
     .offcanvas-start {
        display: none !important;
    }
   
}

@media (max-width: 1200px) {   
   .optimized_page main.main-content {padding-left: 10px; padding-right: 10px;}
}
@media (max-width: 1024px) {   
   .optimized_page aside.sidebar{display: none;}
   .optimized_page main.main-content {padding-left: 10px; padding-right: 10px; margin-left: 0px;}
}
@media (max-width: 768px) {   
    .fp-navigation__toggle-btn {
        display: none;
    }
     .offcanvas-start {
        display: none !important;
    }

      .optimized_page .mobile-bottom-nav {
        display: flex !important;
    }
    .optimized_page .fp-navigation__right .notification-wrapper{display: none !important;}
    .optimized_page .fp-navigation__right .fp-navigation__user{display: none !important;}
}

@media (max-width: 575px) { 
.fp-header__link {font-size: 0.95rem !important; }
}

@media (max-width: 425px) { 
 .post-username a {font-size: 12px;}
 .connection-btn { padding: 0.4rem .7rem; font-size: .7rem;}
 .post-header {padding: 0.875rem .7rem;}
 .action-btn { padding: 0.65rem .65rem;}
}
@media (max-width: 350px) { 
 .post-username a {font-size: 11px;}
 .connection-btn { padding: 0.3rem .5rem; font-size: .65rem;}
 .post-header {padding: 0.7rem .5rem;}
 
}

/*---- Mobile nav ---------------- */

.optimized_page .mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--spacing-md);
    z-index: 998;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.optimized_page .mobile-nav.active {
    display: block;
}

.optimized_page .mobile-nav a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-normal);
    font-weight: 500;
}

.optimized_page .mobile-nav a:hover,
.optimized_page .mobile-nav a.active {
    background-color: var(--bg-hover);
    color: var(--accent-orange);
}

/* Mobile Search */
.optimized_page .mobile-search {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333333;
    padding: var(--spacing-md);
    z-index: 998;
}

.optimized_page .mobile-search.active {
    display: block;
}

/* Mobile Bottom Navigation */
.optimized_page .mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #1a1a1a;
    border-top: 1px solid #333333;
    z-index: 999;
    padding: 0 0.3rem;
}

.optimized_page .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: #999999;
    text-decoration: none;
    transition: all .3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.optimized_page .bottom-nav-item i {
    font-size: 1.25rem;
}

.optimized_page .bottom-nav-item span {
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: capitalize;
    text-align: center;
}

.optimized_page .bottom-nav-item:hover,
.optimized_page .bottom-nav-item.active {
    color: #dc7228;
}

.optimized_page .bottom-nav-item.active {
    background-color: rgba(220, 114, 40, 0.1);
}

/* Show bottom nav on mobile */
@media (max-width: 991px) {
  
    
    .optimized_page .main-wrapper {
        padding-bottom: calc(var(--bottom-nav-height) + var(--spacing-md));
    }
    
    body {
        padding-bottom: var(--bottom-nav-height);
    }
}


.optimized_page .overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 897;
    backdrop-filter: blur(2px);
}

.optimized_page .overlay.active {
    display: block;
}

/*---- Mobile nav ---------------- */

/* Smooth transitions */
.fp-sidebar,
.main-content,
.fp-navigation {
    transition: all 0.3s ease;
}

/* Sidebar collapsed state (optional feature) */
.fp-sidebar.collapsed {
    width: 80px;
}

.fp-sidebar.collapsed ~ .main-content,
.fp-sidebar.collapsed ~ .fp-navigation {
    margin-left: 80px;
}

.fp-sidebar.collapsed .fp-sidebar-profile__name,
.fp-sidebar.collapsed .fp-sidebar-profile__connections,
.fp-sidebar.collapsed .fp-sidebar-buttons,
.fp-sidebar.collapsed .fp-sidebar__link span {
    display: none;
}

.fp-sidebar.collapsed .fp-sidebar__link {
    justify-content: center;
    padding: 0.875rem;
}

/* Switch Account Icon in Sidebar */
.fp-sidebar .switch_account {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
    margin-bottom: 1rem;
}

.fp-sidebar .switch_account i {
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.fp-sidebar .switch_account i:hover {
    color: #dc7228;
}

.modal-backdrop{
    display:none;
}