        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        
        body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--text-color);
            background-color: transparent;
            display: none;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            letter-spacing: -0.011em;
            color: #4d1f8c;
                    /* user-select: none; */
        }

        .main {
            display: flex;
            min-height: 100vh;
            overflow: hidden;
        }
        
        .aside {
            width: 30%;
            background-color: transparent;

            overflow-y: auto;
            transition: all 0.3s ease;
        }
        
        .section {
            width: 45%;
            background-color: transparent;
            overflow-y: auto;
            padding: 0 20px;
        }
        
        .article {
            width: 25%;
            background-color: transparent;
            overflow-y: auto;
            padding: 1rem;
        }
        
        textarea {
            overflow-y: scroll;
            overflow-x: hidden;
            resize: none;
        }
        
        .modal {
            background-color: rgba(255, 255, 255, 0.8);
        }

        .alert-info{
          color: #ffffff;
        }

          /* Base Styles */
  .home-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 90%;
    margin: auto;
    background-color: transparent;
    min-height: 100vh;
  }

  /* Header Styles */
  .home-header-content {
    background-color: transparent;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
  }
        
        .btn {
            font-size: 1em;
            transition: all 0.3s ease;
            border-radius: var(--border-radius);
        }
        
        .btn:focus, .btn:focus-visible {
            background-color: var(--transparent-color);
            color: black;
            box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5);
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .btn-gradient-primary{
            background: linear-gradient(90deg, #4e31f1 0%, #87dfe2 100%);
            border-color: #4e73df;
            color: white;
        }
        
        .btn-gradient-primary i{
            color: white;
        }

        .btn-warning {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
            color: black;
        }
        
        .app-text{
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
            color: var(--text-color);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            letter-spacing: 0.02em;
            font-weight: 300;
        }

        .form-group {
            margin: 1rem 0;
        }
        
        .alert-infos{
          color: #00ff88;
        }

        .miniInfo-text{
          color: #ecece8;
        }
        
        .miniInfoBtnClose {
            color: white;
            font-weight: bold;
            font-size: 1.2em;
            position: absolute;
            margin-top: -19px;
            padding-bottom: 25px;
            right: 3px;
            height: 20px;
            width: 15px;
            cursor: pointer;
            border-bottom: 1px solid #f6f69b;
        }
        
        .link-bgblue:hover {
            color: #cebfdc;
        }
        
        section::-webkit-scrollbar, html::-webkit-scrollbar , aside::-webkit-scrollbar, article::-webkit-scrollbar {
            width: 0 !important;
        }

        .video-actions {
    position: absolute;
    right: 15px;
    bottom: 100px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Style pour le conteneur d'avatar */
.video-actions .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.video-actions .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-actions .user-avatar::after {
    content: "+";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #ff0050;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Style de base pour les boutons d'action */
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn i {
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.action-btn span {
    font-size: 12px;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Effets au hover */
.action-btn:hover {
    transform: scale(1.05);
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* Animation spéciale pour le like */
.action-btn.liked i {
    color: #ff0050;
    animation: heartBeat 0.6s ease;
}

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

/* Style pour le bouton de commentaire actif */
.action-btn.has-comments i {
    color: #08f0ff;
}

/* Style pour le bouton de partage */
.action-btn.share-active i {
    color: #00ff88;
}
        
        /* Responsive adjustments */
        @media (max-width: 992px) {
            .aside {
                width: 30%;
            }
            .section {
                width: 70%;
            }
            .article {
                display: none;
            }

        }
        
        @media (max-width: 768px) {
            .aside {
                width: 100%;
                position: fixed;
                z-index: 1000;
                height: 100vh;
                transform: translateX(-100%);
            }
            .aside.active {
                transform: translateX(0);
            }
            .section {
                width: 100%;
                padding: 0 4px;
            }
            .home-content {
                width: 100%;
            }
        }
        
        @media (max-width: 450px) {
            #bottom-fix {
                display: flex;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                background: white;
                box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
                z-index: 1000;
                padding: 0.5rem;
                justify-content: space-around;
            }
            
            .aside, .article {
                display: none;
            }
            
            section {
                padding: 0 4px;
                margin-bottom: 60px;
            }
        }
        
        /* Owl Carousel customizations */
        #home_shorcut_content .btn {
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 500;
        }
        
        .owl-theme .owl-controls .owl-page span {
            background-color: var(--primary-color);
        }
        
        #post_sponsor_loading .owl-pagination,
        #owl_home_article_type1 .owl-pagination,
        #imgsp .owl-pagination {
            display: none;
        }
        
        #owl_home_article_type {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem 0;
        }
        
        #owl_home_article_type .item {
            margin: 0.5rem;
            box-shadow: var(--box-shadow);
            border-radius: var(--border-radius);
            transition: transform 0.3s ease;
        }
        
        #owl_home_article_type .item:hover {
            transform: translateY(-3px);
        }
        
        #home_shorcut_content .item {
            margin: 0.5rem;
            box-shadow: var(--box-shadow);
            border-radius: var(--border-radius);
        }
        
        /* Show full image/video modal */
        .show-full-img::-webkit-scrollbar, .show-full-video::-webkit-scrollbar {
          display: none;
          width: 0px;
        }

        .show-full-img, .show-full-video {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 99999;
            background-color: rgba(0, 0, 0, 0.9);
            overflow: auto;
        }
        
        .show-full-img-f2, .show-full-video .show-full-img-f2 {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            width: 100%;
        }
        
        .show-full-img-f1 {
            max-width: 90%;
            max-height: 90%;
        }
        
        .show-full-img-f1 img {
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
        }
        
        .show-full-img-hide {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 100000;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
        }
        
        /* Notification styles */
        #mini_alert {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 9999;
            background-color: var(--primary-color);
            color: white;
            text-align: center;
            padding: 1rem;
            display: none;
            animation: slideDown 0.5s ease;
        }
        
        @keyframes slideDown {
            from { transform: translateY(-100%); }
            to { transform: translateY(0); }
        }
        
        /* Loading indicators */
        #loading {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.8);
            z-index: 999999;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        #myProgress {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            z-index: 999999;
            background-color: transparent;
        }
        
        #myBar {
            height: 100%;
            background-color: var(--primary-color);
            width: 0;
            transition: width 0.3s ease;
        }
        
        /* Modern modal styles */
        .modal-content {
            border-radius: var(--border-radius);
            border: none;
            box-shadow: var(--box-shadow);
        }
        
        .modal-header {
            background-color: var(--primary-color);
            color: white;
            border-bottom: none;
            border-radius: var(--border-radius) var(--border-radius) 0 0;
        }
        
        .modal-title {
            font-weight: 600;
        }
        
        .btn-close {
            filter: invert(1);
        }
        
        /* Bottom fixed menu for mobile */
        .bottom-fix {
            display: none;
        }
        
        .bottom-fix .btn {
            flex: 1;
            margin: 0 0.5rem;
            padding: 0.75rem;
            font-weight: 500;
        }
        
        /* Partner logos */
        .parhtner-group {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 1rem;
            background-color: white;
            border-radius: var(--border-radius);
            margin: 1rem auto;
            box-shadow: var(--box-shadow);
        }
        
        .parhtner-group img {
            max-height: 40px;
            transition: transform 0.3s ease;
        }
        
        .parhtner-group img:hover {
            transform: scale(1.1);
        }
        
        /* Special promo button */
        #spp {
            background: linear-gradient(135deg, #ffc107, #ff9800);
            border: none;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
            transition: all 0.3s ease;
        }
        
        #spp:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
        }
        
        /* Chat list loading animation */
        .list-loading-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #f0f0f0;
        }
        
        .list-loading-rect {
            width: 120px;
            height: 15px;
            background-color: #f0f0f0;
            border-radius: 4px;
        }
        
        .list-loading-rect2 {
            width: 80px;
            height: 10px;
            background-color: #f0f0f0;
            border-radius: 4px;
        }
        
        /* Animation for elements */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }

                .dropdown-menu {
            background: #fff;
            border-radius: 4px;
        }

        .dropdown-menu button {
            width: 100%;
            padding: 8px 16px;
            border: none;
            background: none;
            text-align: left;
            cursor: pointer;
        }

        .dropdown-menu button:hover {
            background-color: #f5f5f5;
        }

  /*Group style*/
        .group-card {
        transition: all 0.2s ease;
        background: white;
        }

        .group-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        }

        .group-card .group-avatar {
        width: 60px;
        height: 60px;
        }

        .group-card .avatar-container {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        overflow: hidden;
        background-color: #f8f9fa;
        }

        .group-card .avatar-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        }

        .group-card .group-card .group-name {
        font-size: 1.1rem;
        font-weight: 600; 
        }

        .group-card .group-type, .group-members {
        color: #6c757d;
        }

  .first-option {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
  }

  .header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
  }

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

  .post-creation {
    flex-grow: 1;
    background-color: #f1f3f5;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .post-creation:hover {
    background-color: #e9ecef;
  }

  .boutique-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #868e96;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.2s;
  }

  .boutique-btn:hover {
    background-color: #f1f3f5;
  }

  /* Carousel Controls */
  .carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
  }

  .nav-arrows {
    display: flex;
    gap: 16px;
    background-color: #f1f3f5;
    padding: 6px 12px;
    border-radius: 20px;
  }

  .nav-arrows i {
    color: #495057;
    cursor: pointer;
    font-size: 14px;
  }

  .miniatures-btn span {
    background-color: #f1f3f5;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    color: #495057;
    font-size: 14px;
  }

  /* Sponsored Posts */
  #post_sponsor {
    margin-top: 8px;
  }

  .sponsored-carousel {
    display: flex;
    gap: 8px;
  }

  .sponsored-item {
    height: 100px;
    background-color: #f1f3f5;
    border-radius: 8px;
    flex: 1;
  }

  /* Auth Section */
  .auth-section {
    padding: 24px 16px;
    text-align: center;
    background-color: #fff;
    margin: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  .app-title {
    color: #4d1f8c;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
  }

  .auth-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 2px;
  }
  
  .auth-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .auth-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .auth-actions .signup-btn {
    background: linear-gradient(45deg, #4d1f8c, #6c3cb4);
  }
  
  .auth-actions .login-btn {
    background: linear-gradient(45deg, #dc3545, #ff4757);
  }

  .btn {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
  }

  .auth-actions .signup-btn {
    background-color: #4d1f8c;
    color: white;
  }

  .auth-actions .login-btn {
    background-color: #dc3545;
    color: white;
  }

  .google-signup {
    display: flex;
    align-items: center;
    background-color: #4285F4;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
  }

  .google-icon {
    background-color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .google-icon img {
    width: 20px;
    height: 20px;
  }

  .google-signup span {
    flex-grow: 1;
    text-align: center;
    padding: 12px;
  }

  /* Main Content */
  .main-content-container {
    padding: 0px;
  }

  .posts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .hidden-content {
    display: none;
  }

  /* Pagination */
  .pagination-container {
    text-align: center;
    margin: 24px 0;
  }

  .pagination-container button {
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .pagination-container img {
    height: 30px;
  }

  /* Back to Top Button */
  .back-to-top {
    position: fixed;
    bottom: 24px;
    right: 16px;
    width: 48px;
    height: 48px;
    background-color: #37cf4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
  }

  .back-to-top i {
    color: white;
    font-size: 18px;
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .header-nav {
      gap: 8px;
    }
    
    .post-creation, .boutique-btn {
      font-size: 13px;
      padding: 6px 12px;
    }
    
    .auth-section {
      margin: 8px;
    }
  }

  @keyframes likes-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert-info{
  color: wheat;
}

/*Media gallery styles*/
.media-flex{
    display:flex;
    flex-wrap:wrap;
    width:100%;
    background:#000;
}
.media-item{
    width:50%;
    aspect-ratio:1/1;
    overflow:hidden;
}
@media(min-width:768px){
    .media-item{
        width:33.33%;
    }
}
.media-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    border: 1px solid rgba(0, 0, 255, 0.514);
}
.alert-info{
    color: wheat;
}
.b-dark{
    border: 2px solid #000 !important;
}

/*Gain amount styles */
.gain-amount {
    position: absolute;
    pointer-events: none;
    left: 50%;
    transform: translateX(-50%) translateY(0) scale(1);
    white-space: nowrap;
    z-index: 99999;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    background: linear-gradient(90deg,#28a745,#6be379);
    box-shadow: 0 6px 18px rgba(40,167,69,0.25);
    opacity: 0;
    will-change: transform, opacity;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* positive / negative variants */
.gain-amount.positive { background: linear-gradient(90deg,#28a745,#6be379); color:#fff; }
.gain-amount.negative { background: linear-gradient(90deg,#dc3545,#ff7b86); color:#fff; box-shadow: 0 6px 18px rgba(220,53,69,0.22); }
.gain-amount .coin {
    width:18px;
    height:18px;
    border-radius:50%;
    background: radial-gradient(circle at 30% 30%, #fff6, #ffd700 40%, #c68a00 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transform-origin: center;
    animation: coinSpin 900ms linear;
}
/* Triggered state: pop then float+fade */
.gain-amount.show {
    animation:
        gainPop 700ms cubic-bezier(.2,.9,.2,1) forwards,
        gainFloat 1200ms ease-out 200ms forwards;
}
/* Value styling */
.gain-amount .value { font-variant-numeric: tabular-nums; }
/* Keyframes */
@keyframes gainPop {
    0%   { opacity:0; transform: translateX(-50%) translateY(8px) scale(.6); }
    60%  { opacity:1; transform: translateX(-50%) translateY(-6px) scale(1.08); }
    100% { opacity:1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes gainFloat {
    0%   { opacity:1; transform: translateX(-50%) translateY(0) scale(1); }
    100% { opacity:0; transform: translateX(-50%) translateY(-46px) scale(.96); }
}
@keyframes coinSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Small sparkle effect */
.gain-amount::after {
    content: "";
    position: absolute;
    right: -6px;
    top: -6px;
    width:8px; height:8px; border-radius:2px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 8px 4px rgba(255,255,255,0.08);
    transform: scale(.4);
    opacity:0;
}
.gain-amount.show::after { animation: sparkle 600ms ease-out forwards; }
@keyframes sparkle {
    0%   { opacity:0; transform: scale(.4) translate(0,0); }
    40%  { opacity:1; transform: scale(1.1) translate(-6px,-8px); }
    100% { opacity:0; transform: scale(.6) translate(-12px,-20px); }
}
/* support stacked notifications (e.g. multiple gains) */
.gain-amount.stack {
    left: auto;
    right: 20px;
    transform: none;
    display: block;
    margin-bottom: 8px;
}
/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .gain-amount, .gain-amount.show, .gain-amount::after { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}