/* ========================================
   POPUP MESSAGES STYLE X.COM EXACT
======================================== */

/* Popup Messages principale */
.x-messages-popup {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 400px;
    max-height: 600px;
    background: rgb(0, 0, 0);
    border: 1px solid rgb(51, 54, 57);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 0px 15px, rgba(255, 255, 255, 0.15) 0px 0px 3px 1px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hide messages popup on Shorts page */
body.shorts-page .x-messages-popup {
    display: none !important;
}

/* Quand minimisé */
.x-messages-popup.minimized .x-messages-content,
.x-messages-popup.minimized .x-messages-conversation {
    display: none !important;
}

.x-messages-popup.minimized {
    max-height: 60px;
}

/* Header */
.x-messages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgb(47, 51, 54);
    cursor: pointer;
}

.x-messages-title {
    color: var(--x-text-primary);
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.x-messages-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.x-messages-action-btn {
    background: transparent;
    border: none;
    color: var(--x-text-primary);
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-messages-action-btn:hover {
    background-color: rgba(29, 155, 240, 0.1);
    color: var(--x-blue);
}

/* Content - Liste (PAS DE BARRE DE RECHERCHE) */
.x-messages-content {
    display: flex;
    flex-direction: column;
    height: 540px;
    max-height: 540px;
}

/* Messages list */
.x-messages-list {
    flex: 1;
    overflow-y: auto;
}

/* Message item - SANS LIGNES DE SÉPARATION */
.x-message-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-message-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.x-message-avatar {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    flex-shrink: 0;
}

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

.x-message-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2px;
}

.x-message-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1;
}

.x-message-name {
    color: var(--x-text-primary);
    font-weight: 700;
    font-size: 15px;
    line-height: 20px;
}

.x-message-username {
    color: var(--x-text-secondary);
    font-size: 15px;
    line-height: 20px;
}

.x-message-dot {
    color: var(--x-text-secondary);
    font-size: 15px;
}

.x-message-time {
    color: var(--x-text-secondary);
    font-size: 15px;
    line-height: 20px;
}

.x-message-preview {
    color: var(--x-text-secondary);
    font-size: 15px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty state */
.x-messages-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--x-text-secondary);
    font-size: 15px;
}

/* ========================================
   CONVERSATION VIEW
======================================== */

.x-messages-conversation {
    display: flex;
    flex-direction: column;
    height: 540px;
    max-height: 540px;
}

/* Header de la conversation */
.x-conversation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgb(47, 51, 54);
}

.x-conversation-back {
    background: transparent;
    border: none;
    color: var(--x-text-primary);
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.x-conversation-back:hover {
    background-color: rgba(29, 155, 240, 0.1);
    color: var(--x-blue);
}

.x-conversation-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.x-conversation-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
}

.x-conversation-user-info {
    flex: 1;
    min-width: 0;
}

.x-conversation-name {
    color: var(--x-text-primary);
    font-weight: 700;
    font-size: 15px;
    line-height: 20px;
}

.x-conversation-username {
    color: var(--x-text-secondary);
    font-size: 15px;
    line-height: 20px;
}

/* Messages de la conversation */
.x-conversation-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.x-conversation-loading {
    text-align: center;
    color: var(--x-text-secondary);
    padding: 40px 16px;
}

/* Bulles de messages */
.x-message {
    display: flex;
    max-width: 80%;
}

.x-message-received {
    align-self: flex-start;
}

.x-message-sent {
    align-self: flex-end;
}

.x-message-bubble {
    background-color: rgb(32, 35, 39);
    color: var(--x-text-primary);
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 20px;
    word-wrap: break-word;
}

.x-message-sent .x-message-bubble {
    background-color: var(--x-blue);
    color: var(--x-white);
}

/* Input de message */
.x-conversation-input {
    border-top: 1px solid rgb(47, 51, 54);
    padding: 8px 16px 12px 16px;
    background-color: rgb(0, 0, 0);
}

.x-conversation-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgb(22, 24, 28);
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    transition: all 0.2s;
}

.x-conversation-input-wrapper:focus-within {
    outline: none;
}

.x-input-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.x-input-icon-btn {
    background: transparent;
    border: none;
    color: rgb(29, 155, 240);
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 0;
}

.x-input-icon-btn:hover {
    background-color: rgba(29, 155, 240, 0.1);
}

#x-conv-textarea {
    flex: 1;
    background: transparent;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: rgb(231, 233, 234);
    font-size: 15px;
    line-height: 20px;
    resize: none;
    max-height: 100px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 4px 8px;
    min-width: 0;
}

#x-conv-textarea:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

#x-conv-textarea::placeholder {
    color: rgb(113, 118, 123);
}

.x-conversation-send {
    background: var(--x-blue);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.x-conversation-send:hover {
    background-color: rgb(26, 140, 216);
}

.x-conversation-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.x-conversation-send svg {
    color: var(--x-white);
}

/* Scrollbar styling */
.x-messages-list::-webkit-scrollbar,
.x-conversation-messages::-webkit-scrollbar {
    width: 6px;
}

.x-messages-list::-webkit-scrollbar-track,
.x-conversation-messages::-webkit-scrollbar-track {
    background: transparent;
}

.x-messages-list::-webkit-scrollbar-thumb,
.x-conversation-messages::-webkit-scrollbar-thumb {
    background: rgb(47, 51, 54);
    border-radius: 3px;
}

.x-messages-list::-webkit-scrollbar-thumb:hover,
.x-conversation-messages::-webkit-scrollbar-thumb:hover {
    background: rgb(62, 65, 68);
}

/* Masquer l'ancien chat */
.chat-all-container-old-hidden,
.chat-tab {
    display: none !important;
}

.extra {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
}


/* Popup fermée par défaut - seulement le header visible */
.x-messages-popup {
    max-height: 60px;
}

.x-messages-popup .x-messages-content,
.x-messages-popup .x-messages-conversation {
    display: none;
}

/* Quand la popup est ouverte */
.x-messages-popup.open {
    max-height: 600px;
}

.x-messages-popup.open .x-messages-content {
    display: flex;
}

/* Quand minimisée après ouverture */
.x-messages-popup.open.minimized {
    max-height: 60px;
}

.x-messages-popup.open.minimized .x-messages-content,
.x-messages-popup.open.minimized .x-messages-conversation {
    display: none;
}

/* X.com Profile Page Styles */

body {
    background-color: #000000 !important;
}

.x-profile-page {
    background-color: #000000 !important;
    color: #e7e9ea !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Header / Cover */
.x-profile-header {
    background-color: #000000 !important;
}

.x-cover-container {
    width: 100% !important;
    height: 200px !important;
    background-color: #333639 !important;
    position: relative !important;
    overflow: hidden !important;
}

.x-cover-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Profile Info Container */
.x-profile-info-container {
    padding: 12px 16px 0 !important;
    background-color: #000000 !important;
}

.x-profile-info {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 12px !important;
}

.x-avatar-container {
    position: relative !important;
    margin-top: -15% !important;
}

.x-avatar {
    width: 134px !important;
    height: 134px !important;
    border-radius: 50% !important;
    border: 4px solid #000000 !important;
    background-color: #000000 !important;
    object-fit: cover !important;
    cursor: pointer !important;
}

.x-profile-actions {
    display: flex !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.x-profile-action-buttons {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

.x-btn-icon-profile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 9999px !important;
    background-color: transparent !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    padding: 0 !important;
}

.x-btn-icon-profile:hover {
    background-color: rgba(239, 243, 244, 0.1) !important;
}

.x-btn-icon-profile svg {
    fill: currentColor !important;
}

/* Border grise pour les boutons Message et Plus uniquement */
.x-btn-message,
.x-btn-more {
    border-color: #536471 !important;
}

/* Border rose pour le bouton Souscription */
.x-subscribe-btn {
    border-color: rgb(201, 54, 204) !important;
}

.x-follow-message-buttons {
    display: flex !important;
    gap: 8px !important;
}

.x-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 0 16px !important;
    height: 34px !important;
    border-radius: 9999px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border: none !important;
    font-family: inherit !important;
}

.x-btn-outlined {
    background-color: transparent !important;
    color: #e7e9ea !important;
    border: 1px solid #536471 !important;
}

.x-btn-outlined:hover {
    background-color: rgba(239, 243, 244, 0.1) !important;
}

.x-btn-icon {
    background-color: transparent !important;
    color: #e7e9ea !important;
    border: 1px solid #536471 !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
}

.x-btn-icon:hover {
    background-color: rgba(239, 243, 244, 0.1) !important;
}

.x-btn-icon svg {
    fill: currentColor !important;
}

/* User Details */
.x-user-details {
    padding-bottom: 16px !important;
}

.x-user-name {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 24px !important;
    color: #e7e9ea !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 0 !important;
}

.x-verified-badge {
    width: 20px !important;
    height: 20px !important;
}

.x-verified-badge[data-verification-type="blue"] {
    fill: #1d9bf0 !important;
}

.x-verified-badge[data-verification-type="grey"] {
    fill: #71767B !important;
}

.x-verified-badge[data-verification-type="gold"] {
    fill: #FFD700 !important;
}

.x-user-username {
    font-size: 15px !important;
    color: #71767b !important;
    margin-bottom: 12px !important;
}

.x-user-bio {
    font-size: 15px !important;
    line-height: 20px !important;
    color: #e7e9ea !important;
    margin-bottom: 12px !important;
    white-space: pre-wrap !important;
}

.x-user-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.x-meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 15px !important;
    color: #71767b !important;
}

.x-meta-item svg {
    fill: #71767b !important;
}

.x-meta-item a {
    color: #1d9bf0 !important;
    text-decoration: none !important;
}

.x-meta-item a:hover {
    text-decoration: underline !important;
}

.x-user-stats {
    display: flex !important;
    gap: 20px !important;
}

.x-stat-item {
    display: flex !important;
    gap: 4px !important;
    text-decoration: none !important;
    color: inherit !important;
}

.x-stat-item:hover .x-stat-value {
    text-decoration: underline !important;
}

.x-stat-value {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #e7e9ea !important;
}

.x-stat-label {
    font-size: 15px !important;
    color: #71767b !important;
}

/* Navigation Tabs */
.x-profile-tabs {
    border-bottom: 1px solid #2f3336 !important;
    background-color: #000000 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

.x-tabs-container {
    display: flex !important;
}

.x-tab {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #71767b !important;
    text-decoration: none !important;
    border-bottom: 4px solid transparent !important;
    transition: all 0.2s !important;
    position: relative !important;
}

.x-tab:hover {
    background-color: rgba(231, 233, 234, 0.1) !important;
}

.x-tab.active {
    color: #e7e9ea !important;
    font-weight: 700 !important;
    border-bottom-color: #1d9bf0 !important;
}

/* Profile tab for pages */
.x-profile-tab {
    position: relative !important;
}

.x-profile-tab:hover {
    background-color: rgba(231, 233, 234, 0.1) !important;
}

.x-profile-tab.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background-color: #1d9bf0 !important;
    border-radius: 2px 2px 0 0 !important;
}

/* Content Area */
.x-profile-content {
    background-color: #000000 !important;
}

.x-content-wrapper {
    min-height: 400px !important;
}

.x-posts-container {
    background-color: #000000 !important;
}

.x-no-content {
    padding: 32px 16px !important;
    text-align: center !important;
    color: #71767b !important;
    font-size: 15px !important;
}

/* Hide WoWonder default elements */
.profile-avatar-changer,
.profile-cover-changer,
.cover-position-form {
    display: none !important;
}

/* Follow/Message Buttons X.com Style */
.x-follow-button,
.x-following-button,
.x-message-button,
.user-follow-button .btn,
.profile-message-btn .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    height: 34px !important;
    border-radius: 9999px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border: none !important;
}

.x-follow-button,
.user-follow-button .btn {
    background-color: #eff3f4 !important;
    color: #0f1419 !important;
}

.x-follow-button .button-text,
.user-follow-button .btn .button-text {
    color: #0f1419 !important;
}

.x-follow-button:hover,
.user-follow-button .btn:hover {
    background-color: #d7dbdc !important;
}

.x-following-button,
.user-follow-button .btn.following {
    background-color: transparent !important;
    color: #e7e9ea !important;
    border: 1px solid #536471 !important;
}

.x-following-button:hover,
.user-follow-button .btn.following:hover {
    background-color: rgba(244, 33, 46, 0.1) !important;
    color: #f4212e !important;
    border-color: rgba(244, 33, 46, 0.4) !important;
}

.x-following-button:hover .button-text::before,
.user-follow-button .btn.following:hover .button-text::before {
    content: "Se désabonner" !important;
}

.x-following-button:hover .button-text,
.user-follow-button .btn.following:hover .button-text {
    display: none !important;
}

.x-message-button,
.profile-message-btn .btn {
    background-color: transparent !important;
    color: #e7e9ea !important;
    border: 1px solid #536471 !important;
}

.x-message-button:hover,
.profile-message-btn .btn:hover {
    background-color: rgba(239, 243, 244, 0.1) !important;
}

/* Responsive */
@media (max-width: 600px) {
    .x-profile-page {
        border-left: none !important;
        border-right: none !important;
    }

    .x-avatar {
        width: 100px !important;
        height: 100px !important;
    }

    .x-user-name {
        font-size: 18px !important;
    }
}

/* Grille de médias (3 colonnes) */
.x-media-grid-container {
    padding: 0 !important;
}

.x-media-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2px !important;
    width: 100% !important;
}

.x-media-item {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 100% !important; /* Ratio 1:1 pour des carrés */
    overflow: hidden !important;
    background-color: #16181c !important;
    display: block !important;
}

.x-media-item img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: opacity 0.2s !important;
}

.x-media-item:hover img {
    opacity: 0.85 !important;
}

/* Page des abonnés/abonnements */
.x-follow-page-container {
    width: 100%;
}

.x-follow-page-header {
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(47, 51, 54);
    z-index: 3;
}

.x-follow-page-header-content {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 53px;
    gap: 32px;
}

.x-back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: rgb(231, 233, 234);
    transition: background-color 0.2s;
}

.x-back-button:hover {
    background-color: rgba(231, 233, 234, 0.1);
}

.x-follow-page-title {
    display: flex;
    flex-direction: column;
}

.x-follow-page-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: rgb(231, 233, 234);
    margin: 0;
    line-height: 24px;
}

.x-follow-page-username {
    font-size: 13px;
    color: rgb(113, 118, 123);
    line-height: 16px;
}

.x-follow-tabs {
    display: flex;
    border-bottom: 1px solid rgb(47, 51, 54);
}

.x-follow-tab {
    flex: 1;
    text-align: center;
    padding: 16px;
    font-size: 15px;
    font-weight: 500;
    color: rgb(113, 118, 123);
    text-decoration: none;
    position: relative;
    transition: background-color 0.2s;
}

.x-follow-tab:hover {
    background-color: rgba(231, 233, 234, 0.1);
}

.x-follow-tab.active {
    font-weight: 700;
    color: rgb(231, 233, 234);
}

.x-follow-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background-color: rgb(29, 155, 240);
    border-radius: 9999px;
}

.x-follow-list-container {
    width: 100%;
}

.x-user-card {
    padding: 12px 16px;
    border-bottom: 1px solid rgb(47, 51, 54);
    transition: background-color 0.2s;
}

.x-user-card:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.x-user-card-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.x-user-avatar {
    flex-shrink: 0;
}

.x-user-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.x-user-info {
    flex: 1;
    min-width: 0;
}

.x-user-card-name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 700;
    color: rgb(231, 233, 234);
    text-decoration: none;
    margin-bottom: 2px;
    line-height: 20px;
}

.x-user-card-name:hover {
    text-decoration: underline;
}

.x-verified-badge-inline {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.x-user-username {
    display: block;
    font-size: 15px;
    color: rgb(113, 118, 123);
    text-decoration: none;
    margin-bottom: 4px;
}

.x-user-bio-short {
    font-size: 15px;
    color: rgb(231, 233, 234);
    line-height: 20px;
    margin-top: 4px;
}

.x-user-action {
    flex-shrink: 0;
}

.x-btn-follow, .x-btn-following {
    min-width: 32px;
    min-height: 32px;
    padding: 0 16px;
    background-color: rgb(239, 243, 244);
    color: rgb(15, 20, 25);
    border: none;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-btn-follow:hover {
    background-color: rgb(215, 219, 220);
}

.x-btn-following {
    background-color: rgb(0, 0, 0);
    color: rgb(231, 233, 234);
    border: 1px solid rgb(231, 233, 234);
}

.x-btn-following .unfollow-text {
    display: none;
}

.x-btn-following:hover {
    background-color: rgba(244, 33, 46, 0.1);
    border-color: rgba(244, 33, 46, 0.4);
    color: rgb(244, 33, 46);
}

.x-btn-following:hover .following-text {
    display: none;
}

.x-btn-following:hover .unfollow-text {
    display: inline;
}

/* No Posts Empty State */
.x-profile-no-posts {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 32px 16px;
    background-color: #000000;
}

.x-no-posts-content {
    text-align: center;
    max-width: 336px;
}

.x-no-posts-title {
    color: #e7e9ea;
    font-size: 31px;
    font-weight: 800;
    line-height: 36px;
    margin: 0 0 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.x-no-posts-subtitle {
    color: #71767b;
    font-size: 15px;
    line-height: 20px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
}

/* Profile More Menu Dropdown */
.x-profile-more-menu-container {
    position: relative;
    display: inline-block;
}

.x-profile-more-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background-color: #000000;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 16px rgba(0, 0, 0, 0.8);
    min-width: 200px;
    overflow: hidden;
    z-index: 9999;
}

.x-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #e7e9ea;
    text-decoration: none;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: #e7e9ea;
    text-decoration: none;
}

.x-dropdown-item svg {
    flex-shrink: 0;
}
/* ========================================
   X-Publisher Box - Style X.com EXACT
   ======================================== */

/* Container */
.publisher-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.publisher-box .panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 16px !important;
    padding-bottom: 16px !important;
}

/* BORDURE APRES LA PUBLISHER-BOX */
.publisher-box {
    border-bottom: 1px solid rgb(47, 51, 54) !important;
    padding-bottom: 16px !important;
}

/* Zone textarea avec avatar - FLEX */
#post-textarea {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* Textarea */
#post-textarea textarea.postText {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    color: rgb(231, 233, 244) !important;
    font-size: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    resize: none !important;
    outline: none !important;
    padding: 8px 0 !important;
    padding-left: 0 !important;
    min-height: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    margin: 0 !important;
}

#post-textarea textarea.postText::placeholder {
    color: rgb(113, 118, 123) !important;
}

/* Hide old buttons */
#post-textarea .add-emoticons,
#post-textarea .camera-button,
#post-textarea #loading_indicator {
    display: none !important;
}

/* FOOTER - CACHER PAR DEFAUT */
.publisher-box-footer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Quand focus */
body.pub-focus .publisher-box-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    margin-left: 56px !important;
    margin-top: 12px !important;
}

/* Upper footer - icons */
.pub-footer-upper {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 0 0 12px 0 !important;
    margin: 0 !important;
}

/* Icon buttons */
.poster-left-buttons .btn {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.poster-left-buttons .btn:hover {
    background-color: rgba(29, 155, 240, 0.1) !important;
}

.poster-left-buttons .btn svg {
    width: 20px !important;
    height: 20px !important;
}

/* Bottom footer - AVEC BORDURE */
.pub-footer-bottom {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 12px !important;
    padding-right: 0 !important;
    margin: 0 !important;
    border-top: 1px solid rgb(47, 51, 54) !important;
}

/* Spacer pour pousser le bouton */
.pub-footer-bottom::before {
    content: '' !important;
    flex: 1 !important;
}

/* Bouton Poster - STYLE X.COM */
#publisher-button {
    background-color: rgb(239, 243, 244) !important;
    color: rgb(15, 20, 25) !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 0 20px !important;
    height: 36px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    min-width: 72px !important;
    margin-right: 16px !important;
}

#publisher-button:hover {
    background-color: rgb(215, 219, 220) !important;
}

#publisher-button:disabled {
    background-color: rgb(239, 243, 244) !important;
    color: rgb(15, 20, 25) !important;
    opacity: 0.5 !important;
}

/* Hide elements */
.poster-left-select,
.charsLeft-post,
.pub-footer-bottom .ball-pulse {
    display: none !important;
}

/* ========================================
   POLL STYLES
   ======================================== */
.x-poll-container {
    background-color: transparent !important;
    border: 1px solid var(--x-border) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-top: 12px !important;
}

.x-poll-answers {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.x-poll-choice-wrapper {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid var(--x-border) !important;
    border-radius: 4px !important;
    padding: 0 !important;
}

.x-poll-choice-label {
    position: absolute !important;
    top: 4px !important;
    left: 12px !important;
    font-size: 13px !important;
    color: var(--x-text-secondary) !important;
    pointer-events: none !important;
}

.x-poll-input {
    background-color: transparent !important;
    border: none !important;
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
    padding: 24px 12px 8px 12px !important;
    outline: none !important;
    width: 100% !important;
}

.x-poll-choice-wrapper:focus-within {
    border-color: var(--x-blue) !important;
}

.x-poll-input::placeholder {
    color: var(--x-text-secondary) !important;
}

.x-poll-add-answer {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    color: var(--x-blue) !important;
    font-size: 15px !important;
    cursor: pointer !important;
    padding: 8px 12px !important;
    border-radius: 9999px !important;
    transition: background-color 0.2s !important;
    margin-bottom: 16px !important;
    background-color: transparent !important;
    border: none !important;
}

.x-poll-add-answer:hover {
    background-color: rgba(29, 155, 240, 0.1) !important;
}

.x-poll-duration {
    margin-bottom: 16px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--x-border) !important;
}

.x-poll-duration-label {
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.x-poll-duration-selects {
    display: flex !important;
    gap: 12px !important;
}

.x-poll-select-wrapper {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.x-poll-select-wrapper label {
    font-size: 13px !important;
    color: var(--x-text-secondary) !important;
}

.x-poll-select {
    background-color: transparent !important;
    border: 1px solid var(--x-border) !important;
    border-radius: 4px !important;
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
    padding: 12px 32px 12px 12px !important;
    outline: none !important;
    appearance: none !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2371767b'%3E%3Cpath d='M3.543 8.96l1.414-1.42L12 14.59l7.043-7.05 1.414 1.42L12 17.41 3.543 8.96z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 20px !important;
}

.x-poll-select:focus {
    border-color: var(--x-blue) !important;
}

.x-poll-select option {
    background-color: var(--x-bg-primary) !important;
    color: var(--x-text-primary) !important;
}

.x-poll-remove {
    text-align: center !important;
    padding: 12px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: background-color 0.2s !important;
    border-top: 1px solid var(--x-border) !important;
    margin-top: 12px !important;
    padding-top: 16px !important;
}

.x-poll-remove:hover {
    background-color: rgba(244, 33, 46, 0.1) !important;
}

.x-poll-remove span {
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* ========================================
   GIF PICKER STYLES
   ======================================== */
.x-gif-container {
    background-color: transparent !important;
    border: 1px solid var(--x-border) !important;
    border-radius: 16px !important;
    padding: 12px !important;
    margin-top: 12px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

.x-gif-search {
    background-color: var(--x-bg-secondary) !important;
    border: 1px solid var(--x-border) !important;
    border-radius: 9999px !important;
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    outline: none !important;
    width: 100% !important;
    margin-bottom: 12px !important;
}

.x-gif-search:focus {
    border-color: var(--x-blue) !important;
}

.x-gif-search::placeholder {
    color: var(--x-text-secondary) !important;
}

.x-gif-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 8px !important;
}

.x-gif-grid img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
}

.x-gif-grid img:hover {
    opacity: 0.8 !important;
}

/* ========================================
   FEELING/EMOTION STYLES
   ======================================== */
.x-feeling-container {
    background-color: transparent !important;
    border: 1px solid var(--x-border) !important;
    border-radius: 16px !important;
    padding: 12px !important;
    margin-top: 12px !important;
}

.x-feeling-header {
    margin-bottom: 12px !important;
}

.feelings-type-to {
    color: var(--x-blue) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.feelings-value {
    display: block !important;
    color: var(--x-text-primary) !important;
    margin-bottom: 8px !important;
}

.feelings-value i {
    margin-right: 4px !important;
}

.x-feeling-input {
    background-color: transparent !important;
    border: 1px solid var(--x-border) !important;
    border-radius: 4px !important;
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
    padding: 12px !important;
    outline: none !important;
    width: 100% !important;
    cursor: pointer !important;
}

.x-feeling-input:focus {
    border-color: var(--x-blue) !important;
}

.x-feeling-input::placeholder {
    color: var(--x-text-secondary) !important;
}

.x-feeling-categories {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.x-feeling-category {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.x-feeling-category:hover {
    background-color: var(--x-bg-hover) !important;
}

.x-feeling-category svg {
    flex-shrink: 0 !important;
}

.x-feeling-category span {
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
}

.x-feeling-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 8px !important;
    margin-top: 12px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

.x-feeling-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.x-feeling-item:hover {
    background-color: var(--x-bg-hover) !important;
}

.x-feeling-item i {
    flex-shrink: 0 !important;
}

.x-feeling-item span {
    color: var(--x-text-primary) !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ========================================
   LOCATION STYLES
   ======================================== */
.x-location-container {
    background-color: transparent !important;
    border: 1px solid var(--x-border) !important;
    border-radius: 16px !important;
    padding: 12px !important;
    margin-top: 12px !important;
}

.x-location-input {
    background-color: transparent !important;
    border: none !important;
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
    padding: 8px !important;
    outline: none !important;
    width: 100% !important;
}

.x-location-input::placeholder {
    color: var(--x-text-secondary) !important;
}

/* ========================================
   VIDEO INFO STYLES
   ======================================== */
.x-video-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background-color: var(--x-bg-secondary) !important;
    border: 1px solid var(--x-border) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-top: 12px !important;
}

.x-video-info svg {
    color: var(--x-blue) !important;
    flex-shrink: 0 !important;
}

.x-video-input {
    background-color: transparent !important;
    border: none !important;
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
    outline: none !important;
    width: 100% !important;
}

/* ========================================
   AUDIO INFO STYLES
   ======================================== */
.x-audio-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background-color: var(--x-bg-secondary) !important;
    border: 1px solid var(--x-border) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-top: 12px !important;
}

.x-audio-info svg {
    color: var(--x-blue) !important;
    flex-shrink: 0 !important;
}

.x-audio-input {
    background-color: transparent !important;
    border: none !important;
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
    outline: none !important;
    width: 100% !important;
}

/* ========================================
   IMAGE PREVIEW STYLES
   ======================================== */
#image-holder {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

#image-holder img {
    max-width: 100% !important;
    border-radius: 16px !important;
    border: 1px solid var(--x-border) !important;
}
/* X-Theme Modal Styles */

.x-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(91, 112, 131, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10001 !important;
    backdrop-filter: blur(4px) !important;
}

.x-modal-content {
    background-color: var(--x-bg-primary) !important;
    border-radius: 16px !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    border: 1px solid var(--x-border) !important;
}

.x-quick-reply-content {
    max-width: 600px !important;
}

.x-modal-header {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--x-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.x-modal-close {
    background: transparent !important;
    border: none !important;
    color: var(--x-text-primary) !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s !important;
}

.x-modal-close:hover {
    background-color: rgba(239, 243, 244, 0.1) !important;
}

.x-modal-body {
    padding: 16px !important;
}

.x-loading {
    text-align: center !important;
    padding: 40px !important;
    color: var(--x-text-secondary) !important;
}

.x-error {
    text-align: center !important;
    padding: 40px !important;
    color: var(--x-red) !important;
}

/* Scrollbar for modal */
.x-modal-content::-webkit-scrollbar {
    width: 6px !important;
}

.x-modal-content::-webkit-scrollbar-track {
    background: transparent !important;
}

.x-modal-content::-webkit-scrollbar-thumb {
    background: var(--x-border) !important;
    border-radius: 3px !important;
}

.x-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--x-text-secondary) !important;
}

/* Quick Reply Styles */
.x-post-mini {
    padding: 16px !important;
    border-bottom: 1px solid var(--x-border) !important;
}

.x-post-mini-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.x-post-mini-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
}

.x-post-mini-info {
    display: flex !important;
    flex-direction: column !important;
}

.x-post-mini-name {
    color: var(--x-text-primary) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

.x-post-mini-username {
    color: var(--x-text-secondary) !important;
    font-size: 15px !important;
}

.x-post-mini-text {
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
    line-height: 20px !important;
    margin-left: 52px !important;
}

.x-quick-reply-form {
    padding: 16px !important;
}

.x-quick-reply-header {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.x-quick-reply-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.x-quick-reply-textarea {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    color: var(--x-text-primary) !important;
    font-size: 20px !important;
    line-height: 24px !important;
    resize: none !important;
    outline: none !important;
    min-height: 120px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.x-quick-reply-textarea::placeholder {
    color: var(--x-text-secondary) !important;
}

.x-quick-reply-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--x-border) !important;
    margin-left: 52px !important;
}

.x-quick-reply-actions {
    display: flex !important;
    gap: 4px !important;
}

.x-quick-reply-action {
    background: transparent !important;
    border: none !important;
    color: var(--x-blue) !important;
    padding: 8px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s !important;
}

.x-quick-reply-action:hover {
    background-color: rgba(29, 155, 240, 0.1) !important;
}

.x-quick-reply-btn {
    background-color: var(--x-blue) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.x-quick-reply-btn:hover:not(:disabled) {
    background-color: var(--x-blue-hover) !important;
}

.x-quick-reply-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}
/* X-Theme: Post Focus View */

/* Override x-layout for post focus page */
.x-layout {
    display: flex !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    gap: 0 !important;
}

.x-post-focus-container {
    width: 100% !important;
    max-width: 600px !important;
    min-height: 100vh !important;
    border-left: 1px solid var(--x-border) !important;
    border-right: 1px solid var(--x-border) !important;
}

.x-post-focus-content {
    background-color: var(--x-bg-primary) !important;
}

.x-post-focus-header {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--x-border) !important;
    position: sticky !important;
    top: 0 !important;
    background-color: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 100 !important;
}

.x-back-button {
    background: transparent !important;
    border: none !important;
    color: var(--x-text-primary) !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s !important;
    width: 34px !important;
    height: 34px !important;
}

.x-back-button:hover {
    background-color: rgba(239, 243, 244, 0.1) !important;
}

.x-post-focus-title {
    color: var(--x-text-primary) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.x-post-focus-main {
    padding: 0 !important;
    margin-top: 0 !important;
}

.x-post-comments-section {
    padding: 0 !important;
}

.x-no-comments {
    padding: 40px 16px !important;
    text-align: center !important;
    color: var(--x-text-secondary) !important;
    font-size: 15px !important;
}

/* Make the focused post look special - completely different layout from feed */
.x-post-focus-main .x-post {
    border-bottom: none !important;
    padding: 12px 16px 0 16px !important;
    margin-top: 0 !important;
    display: block !important;
}

/* Restructure layout: avatar + content side by side */
.x-post-focus-main .x-post-inner {
    display: flex !important;
    gap: 12px !important;
}

/* Avatar column - fixed width */
.x-post-focus-main .x-post-avatar {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
}

/* Content column - takes remaining space */
.x-post-focus-main .x-post-content {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Header with name at top */
.x-post-focus-main .x-post-header {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    margin-bottom: 2px !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
}

.x-post-focus-main .x-post-user-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
}

.x-post-focus-main .x-post-name {
    font-size: 15px !important;
    font-weight: 700 !important;
}

.x-post-focus-main .x-post-username {
    font-size: 15px !important;
    color: var(--x-text-secondary) !important;
    font-weight: 400 !important;
}

/* Hide the inline time (·  2h) in header */
.x-post-focus-main .x-post-header .x-post-dot,
.x-post-focus-main .x-post-header .x-post-time {
    display: none !important;
}

/* Post text - readable size like X */
.x-post-focus-main .x-post-text {
    font-size: 17px !important;
    line-height: 24px !important;
    margin: 0 0 12px 0 !important;
    color: var(--x-text-primary) !important;
    font-weight: 400 !important;
}

/* Hide full timestamp in feed, show only in focus */
.x-post-full-time {
    display: none !important;
}

.x-post-focus-main .x-post-full-time {
    display: block !important;
    margin: 12px 0 0 0 !important;
    padding: 16px 0 !important;
    color: var(--x-text-secondary) !important;
    font-size: 15px !important;
    border-bottom: 1px solid var(--x-border) !important;
    margin-left: -52px !important;
    margin-right: -16px !important;
    padding-left: 68px !important;
    padding-right: 16px !important;
}

/* Actions at bottom */
.x-post-focus-main .x-post-actions {
    padding: 12px 0 !important;
    margin-left: -52px !important;
    margin-right: -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    border-top: 1px solid var(--x-border) !important;
    border-bottom: 1px solid var(--x-border) !important;
    display: flex !important;
    justify-content: space-around !important;
    max-width: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Reply section */
.x-post-reply-section {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px !important;
    border-bottom: 1px solid var(--x-border) !important;
}

.x-reply-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.x-reply-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.x-reply-input-wrapper {
    flex: 1 !important;
}

.x-reply-placeholder {
    color: var(--x-text-secondary) !important;
    font-size: 20px !important;
    cursor: text !important;
    padding: 12px 0 !important;
}

.x-reply-button {
    background: rgb(29, 155, 240) !important;
    color: rgb(255, 255, 255) !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 8px 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
}

.x-reply-button:hover {
    background: rgb(26, 140, 216) !important;
}

/* Show all media in post focus */
.x-post-focus-main .x-post-media img,
.x-post-focus-main .x-post-media video {
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
}

.x-post-focus-main .x-post-media {
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-top: 12px !important;
}

/* Comments styling */
.x-post-comments-section .comment-container {
    padding: 16px !important;
    border-bottom: 1px solid var(--x-border) !important;
}

.x-post-comments-section .comment-container:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
}
/* X-Theme Right Sidebar */
.x-right-sidebar {
    width: 350px;
    padding: 0;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
}

/* Search Box */
.x-search-container {
    position: relative;
    margin-bottom: 16px;
}

.x-search-box {
    position: relative;
    background: rgb(32, 35, 39);
    border: 1px solid rgb(32, 35, 39);
    border-radius: 9999px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.x-search-box:focus-within {
    background: rgb(0, 0, 0);
    border-color: rgb(29, 155, 240);
}

.x-search-box:focus-within .x-search-icon {
    fill: rgb(29, 155, 240);
}

.x-search-icon {
    width: 19px;
    height: 19px;
    fill: rgb(113, 118, 123);
    margin-right: 12px;
    flex-shrink: 0;
    transition: fill 0.2s;
}

.x-search-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: rgb(231, 233, 234) !important;
    font-size: 15px !important;
    line-height: 20px !important;
    flex: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 20px !important;
    height: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.x-search-input::placeholder {
    color: rgb(113, 118, 123) !important;
    font-size: 15px !important;
    opacity: 1 !important;
}

.x-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(231, 233, 234, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(15, 20, 25, 0.45);
    z-index: 999;
    backdrop-filter: blur(12px);
}

.x-search-container.active .x-search-dropdown {
    display: block;
}

.x-search-dropdown .x-search-message {
    padding: 14px 18px;
    font-size: 15px;
    color: rgb(113, 118, 123);
    line-height: 1.4;
}

.x-search-dropdown.is-loading .x-search-message::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(113, 118, 123, 0.6);
    border-top-color: rgb(29, 155, 240);
    border-radius: 50%;
    animation: x-search-spin 0.6s linear infinite;
    vertical-align: middle;
}

.x-search-dropdown.has-results .x-search-message {
    display: none;
}

.x-search-results {
    max-height: 420px;
    overflow-y: auto;
}

.x-search-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.x-search-result-list > li {
    border-bottom: 1px solid rgba(231, 233, 234, 0.08);
}

.x-search-result-list > li:last-child {
    border-bottom: none;
}

.x-search-result-list > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.x-search-result-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.x-search-result-list > li > a:hover {
    background: rgba(231, 233, 234, 0.06);
}

.x-search-dropdown .search-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 0;
}

.x-search-dropdown .search-user-avatar.pull-left,
.x-search-dropdown .search-user-avatar.pull-right {
    float: none !important;
}

.x-search-dropdown .search-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.x-search-dropdown .x-search-user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.x-search-dropdown .search-user-name {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: rgb(231, 233, 234);
    line-height: 1.1;
}

.x-search-dropdown .search-user-name .verified-color i {
    color: rgb(29, 155, 240);
}

.x-search-dropdown .x-search-username {
    display: block;
    font-size: 13px;
    color: rgb(113, 118, 123);
    margin-top: 2px;
    line-height: 1.1;
}

.x-search-dropdown .x-search-more {
    display: block;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    color: rgb(29, 155, 240);
    text-decoration: none;
    border-top: 1px solid rgba(231, 233, 234, 0.08);
    transition: background 0.2s;
}

.x-search-dropdown .x-search-more:hover {
    background: rgba(231, 233, 234, 0.04);
    text-decoration: underline;
}

.x-search-dropdown .x-search-more.is-hidden {
    display: none;
}

.x-search-dropdown .search-dropdown-result,
.x-search-dropdown .recent,
.x-search-dropdown .clear {
    display: none !important;
}

@keyframes x-search-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Sidebar Modules */
.x-sidebar-module {
    background: transparent;
    border: 1px solid rgb(47, 51, 54);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.x-sidebar-title {
    padding: 12px 16px;
    font-size: 20px;
    font-weight: 800;
    color: rgb(231, 233, 234);
    margin: 0;
    border-bottom: 1px solid rgb(47, 51, 54);
}

.x-sidebar-content {
    padding: 0;
}

/* Trend Items */
.x-trend-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgb(47, 51, 54);
}

.x-trend-item:last-child {
    border-bottom: none;
}

.x-trend-item:hover {
    background: rgb(28, 30, 34);
}

.x-trend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.x-trend-category {
    font-size: 13px;
    color: rgb(113, 118, 123);
}

.x-trend-name {
    font-size: 15px;
    font-weight: 700;
    color: rgb(231, 233, 234);
    margin-bottom: 2px;
}

.x-trend-posts {
    font-size: 13px;
    color: rgb(113, 118, 123);
}

/* Suggestion Items */
.x-suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgb(47, 51, 54);
}

.x-suggestion-item:last-child {
    border-bottom: none;
}

.x-suggestion-item:hover {
    background: rgb(28, 30, 34);
}

.x-suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.x-suggestion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.x-suggestion-info {
    flex: 1;
    min-width: 0;
}

.x-suggestion-name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 700;
    color: rgb(231, 233, 234);
    text-decoration: none;
    margin-bottom: 2px;
}

.x-suggestion-name:hover {
    text-decoration: underline;
}

.x-verified-badge {
    width: 18px;
    height: 18px;
    fill: rgb(29, 155, 240);
}

.x-suggestion-username {
    font-size: 15px;
    color: rgb(113, 118, 123);
}

.x-follow-button {
    background: rgb(239, 243, 244);
    color: rgb(15, 20, 25);
    border: none;
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.x-follow-button:hover {
    background: rgb(215, 219, 220);
}

/* Style unifié pour tous les boutons following */
.x-follow-button.x-btn-following,
.x-btn-following {
    background-color: rgb(0, 0, 0);
    color: rgb(231, 233, 234);
    border: 1px solid rgb(231, 233, 234);
}

.x-follow-button.x-btn-following .unfollow-text,
.x-btn-following .unfollow-text {
    display: none;
}

.x-follow-button.x-btn-following:hover,
.x-btn-following:hover {
    background-color: rgba(244, 33, 46, 0.1);
    border-color: rgba(244, 33, 46, 0.4);
    color: rgb(244, 33, 46);
}

.x-follow-button.x-btn-following:hover .following-text,
.x-btn-following:hover .following-text {
    display: none;
}

.x-follow-button.x-btn-following:hover .unfollow-text,
.x-btn-following:hover .unfollow-text {
    display: inline;
}

/* Show More Link */
.x-sidebar-show-more {
    display: block;
    padding: 16px;
    color: rgb(29, 155, 240);
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.2s;
}

.x-sidebar-show-more:hover {
    background: rgb(28, 30, 34);
}

/* Footer */
.x-sidebar-footer {
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.x-sidebar-footer a {
    color: rgb(113, 118, 123);
    text-decoration: none;
}

.x-sidebar-footer a:hover {
    text-decoration: underline;
}

.x-sidebar-copyright {
    color: rgb(113, 118, 123);
    width: 100%;
}

.x-sidebar-developer {
    color: rgb(113, 118, 123);
    width: 100%;
    margin-top: 8px;
    font-size: 13px;
}

.x-sidebar-developer a {
    color: rgb(29, 155, 240);
    text-decoration: none;
    transition: color 0.2s ease;
}

.x-sidebar-developer a:hover {
    color: rgb(26, 140, 216);
    text-decoration: underline;
}

.x-sidebar-developer strong {
    font-weight: 700;
}

/* ==================== RESPONSIVE FIXES ==================== */

/* Ajustements pour les petites résolutions */
@media (max-height: 900px) {
    .x-right-sidebar {
        max-height: calc(100vh - 20px) !important;
        padding-bottom: 20px !important;
    }
}

@media (max-height: 800px) {
    .x-right-sidebar {
        max-height: calc(100vh - 10px) !important;
        padding-bottom: 10px !important;
    }

    /* Réduire l'espace entre les widgets */
    .x-widget {
        margin-bottom: 12px !important;
    }
}

@media (max-height: 700px) {
    .x-right-sidebar {
        max-height: calc(100vh - 5px) !important;
        padding-bottom: 5px !important;
    }

    /* Réduire encore plus l'espace */
    .x-widget {
        margin-bottom: 8px !important;
    }

    /* Limiter le nombre de suggestions affichées */
    .x-who-to-follow .x-follow-user:nth-child(n+4) {
        display: none !important;
    }
}

/* Pour les très petites hauteurs d'écran */
@media (max-height: 600px) {
    .x-right-sidebar {
        max-height: calc(100vh - 5px) !important;
        padding: 0 !important;
    }

    /* Compacter encore plus */
    .x-widget {
        margin-bottom: 6px !important;
        padding: 12px !important;
    }

    /* Limiter à 2 suggestions */
    .x-who-to-follow .x-follow-user:nth-child(n+3) {
        display: none !important;
    }

    /* Réduire le padding des liens */
    .x-widget-footer a {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* Assurer un scroll fluide */
.x-right-sidebar::-webkit-scrollbar {
    width: 6px;
}

.x-right-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.x-right-sidebar::-webkit-scrollbar-thumb {
    background: rgba(113, 118, 123, 0.3);
    border-radius: 10px;
}

.x-right-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(113, 118, 123, 0.5);
}
/* X.com Style Settings Panel */

/* Overlay */
.x-settings-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(91, 112, 131, 0.4) !important;
    z-index: 9999 !important;
    backdrop-filter: blur(4px) !important;
}

/* Settings Panel (slides from right) */
.x-settings-panel {
    position: fixed !important;
    top: 0 !important;
    right: -600px !important;
    width: 600px !important;
    max-width: 100vw !important;
    height: 100vh !important;
    background-color: rgb(0, 0, 0) !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    transition: right 0.3s ease !important;
    border-left: 1px solid rgb(47, 51, 54) !important;
}

.x-settings-panel-open {
    right: 0 !important;
}

/* Header */
.x-settings-header {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgb(47, 51, 54) !important;
    min-height: 53px !important;
    position: sticky !important;
    top: 0 !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 2 !important;
}

.x-settings-back,
.x-settings-close {
    background: transparent !important;
    border: none !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: rgb(231, 233, 234) !important;
    transition: background-color 0.2s !important;
    flex-shrink: 0 !important;
}

.x-settings-back:hover,
.x-settings-close:hover {
    background-color: rgba(239, 243, 244, 0.1) !important;
}

.x-settings-back svg,
.x-settings-close svg {
    fill: currentColor !important;
}

.x-settings-header h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
    margin: 0 !important;
    flex: 1 !important;
    text-align: center !important;
    line-height: 24px !important;
}

.x-settings-close {
    margin-left: auto !important;
}

/* Content */
.x-settings-content {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Search Box */
.x-settings-search {
    width: calc(100% - 32px) !important;
    margin: 16px !important;
    padding: 12px 16px !important;
    background-color: rgb(32, 35, 39) !important;
    border: 1px solid rgb(47, 51, 54) !important;
    border-radius: 9999px !important;
    color: rgb(231, 233, 234) !important;
    font-size: 15px !important;
    outline: none !important;
    transition: border-color 0.2s, background-color 0.2s !important;
}

.x-settings-search:focus {
    background-color: rgb(0, 0, 0) !important;
    border-color: rgb(29, 155, 240) !important;
}

.x-settings-search::placeholder {
    color: rgb(113, 118, 123) !important;
}

/* Section */
.x-settings-section {
    border-bottom: 1px solid rgb(47, 51, 54) !important;
    padding: 12px 0 !important;
}

.x-settings-section h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
    padding: 12px 16px !important;
    margin: 0 !important;
}

/* Settings Item */
.x-settings-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    border: none !important;
    width: 100% !important;
    background: transparent !important;
}

.x-settings-item:hover {
    background-color: rgba(231, 233, 234, 0.03) !important;
}

.x-settings-item-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.x-settings-item-title {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: rgb(231, 233, 234) !important;
    line-height: 20px !important;
}

.x-settings-item-desc {
    font-size: 13px !important;
    color: rgb(113, 118, 123) !important;
    line-height: 16px !important;
}

.x-settings-arrow {
    fill: rgb(113, 118, 123) !important;
    flex-shrink: 0 !important;
    margin-left: 12px !important;
}

/* Placeholder for empty pages */
.x-settings-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 16px !important;
    min-height: 300px !important;
}

.x-settings-placeholder p {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
    text-align: center !important;
}

/* Dropup Menu for "Plus" */
.x-more-menu-container {
    position: relative !important;
}

.x-more-dropup {
    position: fixed !important;
    background-color: rgb(0, 0, 0) !important;
    border-radius: 16px !important;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 0px 15px, rgba(255, 255, 255, 0.15) 0px 0px 3px 1px !important;
    min-width: 300px !important;
    overflow: hidden !important;
    z-index: 9998 !important;
}

.x-more-dropup-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    color: rgb(231, 233, 234) !important;
}

.x-more-dropup-item:hover {
    background-color: rgba(231, 233, 234, 0.03) !important;
}

.x-more-dropup-item svg {
    flex-shrink: 0 !important;
}

.x-more-dropup-item span {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .x-settings-panel {
        width: 100vw !important;
        right: -100vw !important;
        border-left: none !important;
    }

    .x-settings-panel-open {
        right: 0 !important;
    }

    .x-more-dropup {
        min-width: 280px !important;
    }
}
/* X.com Style Settings - Inline in Central Column */



/* Keep middle column at 598px when settings/notifications are open */
body.x-settings-open .middlecol,
body.x-settings-open #x-middle-col {
    width: 598px !important;
    flex: 0 0 598px !important;
    max-width: 598px !important;
}

/* Expand middle column to 1050px when settings with hidden sidebar */
body.x-hide-right-sidebar .middlecol,
body.x-hide-right-sidebar #x-middle-col {
    width: 598px !important;
    flex: 0 0 598px !important;
    max-width: 598px !important;
}

/* Hide right sidebar only when settings/premium/monetization are open */
body.x-hide-right-sidebar .rightcol,
body.x-hide-right-sidebar #x-right-sidebar {
    display: none !important;
}

.x-settings-inline-wrapper {
    background-color: rgb(0, 0, 0) !important;
    min-height: 100vh !important;
    max-width: 1050px !important;
    width: 1050px !important;
    border-right: 1px solid rgb(47, 51, 54) !important;
}

/* Header */
.x-settings-inline-header {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgb(47, 51, 54) !important;
    position: sticky !important;
    top: 0 !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 2 !important;
    gap: 32px !important;
}

.x-settings-inline-back {
    background: transparent !important;
    border: none !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: rgb(231, 233, 234) !important;
    transition: background-color 0.2s !important;
    flex-shrink: 0 !important;
}

.x-settings-inline-back:hover {
    background-color: rgba(239, 243, 244, 0.1) !important;
}

.x-settings-inline-back svg {
    fill: currentColor !important;
}

.x-settings-inline-header h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
    margin: 0 !important;
    line-height: 24px !important;
}

/* Two Column Layout */
.x-settings-inline-columns {
    display: flex !important;
    min-height: calc(100vh - 53px) !important;
}

/* Left Column - Menu */
.x-settings-inline-menu {
    width: 50% !important;
    border-right: 1px solid rgb(47, 51, 54) !important;
    overflow-y: auto !important;
}

/* Search Box */
.x-settings-inline-search {
    width: calc(100% - 32px) !important;
    margin: 16px !important;
    padding: 12px 16px !important;
    background-color: rgb(32, 35, 39) !important;
    border: 1px solid rgb(47, 51, 54) !important;
    border-radius: 9999px !important;
    color: rgb(231, 233, 234) !important;
    font-size: 15px !important;
    outline: none !important;
    transition: border-color 0.2s, background-color 0.2s !important;
}

.x-settings-inline-search:focus {
    background-color: rgb(0, 0, 0) !important;
    border-color: rgb(29, 155, 240) !important;
}

.x-settings-inline-search::placeholder {
    color: rgb(113, 118, 123) !important;
}

/* Section */
.x-settings-inline-section {
    border-bottom: 1px solid rgb(47, 51, 54) !important;
    padding: 12px 0 !important;
}

.x-settings-inline-section h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
    padding: 12px 16px !important;
    margin: 0 !important;
}

/* Settings Item */
.x-settings-inline-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    border: none !important;
    width: 100% !important;
    background: transparent !important;
}

.x-settings-inline-item:hover {
    background-color: rgba(231, 233, 234, 0.03) !important;
}

.x-settings-inline-item-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.x-settings-inline-item-title {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: rgb(231, 233, 234) !important;
    line-height: 20px !important;
}

.x-settings-inline-item-desc {
    font-size: 13px !important;
    color: rgb(113, 118, 123) !important;
    line-height: 16px !important;
}

.x-settings-inline-arrow {
    fill: rgb(113, 118, 123) !important;
    flex-shrink: 0 !important;
    margin-left: 12px !important;
}

/* Right Column - Detail View */
.x-settings-inline-detail {
    flex: 1 !important;
    padding: 20px !important;
    overflow-y: auto !important;
}

.x-settings-inline-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 16px !important;
    min-height: 300px !important;
}

.x-settings-inline-placeholder p {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
    text-align: center !important;
    max-width: 400px !important;
}

.x-settings-inline-subpage-content {
    padding: 20px !important;
}

.x-settings-inline-subpage-content p {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .x-settings-inline-columns {
        flex-direction: column !important;
    }

    .x-settings-inline-menu {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgb(47, 51, 54) !important;
    }

    .x-settings-inline-detail {
        width: 100% !important;
    }
}
/* X.com Style Settings Pages */
.x-settings-page-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    background: var(--x-bg-primary);
    min-height: 100vh;
}

.x-settings-page-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--x-border-color);
    position: sticky;
    top: 0;
    background: var(--x-bg-primary);
    z-index: 10;
}

.x-settings-page-back {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: background-color 0.2s;
}

.x-settings-page-back:hover {
    background-color: var(--x-hover-bg);
}

.x-settings-page-back svg {
    fill: var(--x-text-primary);
}

.x-settings-page-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--x-text-primary);
    margin: 0;
}

/* Form Styles */
.x-settings-form {
    padding: 0;
}

.x-settings-form-group {
    padding: 16px;
    border-bottom: 1px solid var(--x-border-color);
}

.x-settings-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--x-text-secondary);
    margin-bottom: 8px;
}

.x-settings-input,
.x-settings-select,
.x-settings-textarea {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    color: var(--x-text-primary);
    background: var(--x-bg-primary);
    border: 1px solid var(--x-border-color);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.x-settings-input:focus,
.x-settings-select:focus,
.x-settings-textarea:focus {
    border-color: var(--x-color-primary);
}

.x-settings-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.x-settings-help {
    display: block;
    font-size: 13px;
    color: var(--x-text-secondary);
    margin-top: 8px;
}

.x-settings-birthday-row {
    display: flex;
    gap: 8px;
}

.x-settings-birthday-row select {
    flex: 1;
}

.x-settings-section-divider {
    height: 12px;
    background: var(--x-bg-secondary);
    border-top: 1px solid var(--x-border-color);
    border-bottom: 1px solid var(--x-border-color);
}

.x-settings-form-footer {
    padding: 16px;
    border-top: 1px solid var(--x-border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.x-settings-save-btn {
    background: var(--x-color-primary);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 8px 16px;
    min-width: 80px;
    min-height: 36px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-settings-save-btn:hover {
    background: var(--x-color-primary-hover);
}

.x-settings-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Alert Styles */
.x-alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px;
    font-size: 14px;
}

.x-alert-success {
    background: rgba(0, 186, 124, 0.1);
    color: rgb(0, 186, 124);
    border: 1px solid rgba(0, 186, 124, 0.2);
}

.x-alert-error {
    background: rgba(244, 33, 46, 0.1);
    color: rgb(244, 33, 46);
    border: 1px solid rgba(244, 33, 46, 0.2);
}

/* Hide ball-pulse in settings */
.x-settings-form-footer .ball-pulse {
    display: none !important;
}

/* Privacy Settings Specific Styles */
.x-settings-privacy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--x-border-color);
}

.x-settings-privacy-label {
    flex: 1;
}

.x-settings-privacy-label h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--x-text-primary);
    margin: 0 0 4px 0;
}

.x-settings-privacy-label p {
    font-size: 13px;
    color: var(--x-text-secondary);
    margin: 0;
}

.x-settings-privacy-row select {
    width: auto;
    min-width: 150px;
    padding: 8px 12px;
    font-size: 14px;
}

/* Toggle Switch */
.x-settings-toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.x-settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.x-settings-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--x-border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.x-settings-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.x-settings-toggle input:checked + .x-settings-toggle-slider {
    background-color: var(--x-color-primary);
}

.x-settings-toggle input:checked + .x-settings-toggle-slider:before {
    transform: translateX(20px);
}

/* Loading and Error States */
.x-settings-loading,
.x-settings-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 40px;
}

.x-settings-loading .ball-pulse {
    display: flex !important;
}

.x-settings-error p {
    color: var(--x-text-secondary);
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .x-settings-page-container {
        max-width: 100%;
    }

    .x-settings-birthday-row {
        flex-direction: column;
    }

    .x-settings-privacy-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .x-settings-privacy-row select {
        width: 100%;
    }
}
/* X Content Inline (Premium, Shorts, Monetization) */

.x-content-inline-wrapper {
    background-color: rgb(0, 0, 0) !important;
    min-height: 100vh !important;
    width: 598px !important;
    max-width: 598px !important;
    border-right: 1px solid var(--x-border) !important;
}

/* Header */
.x-content-inline-header {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgb(47, 51, 54) !important;
    position: sticky !important;
    top: 0 !important;
    background-color: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 10 !important;
}

.x-content-inline-back {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    margin-right: 20px !important;
    transition: background-color 0.2s !important;
    color: rgb(231, 233, 234) !important;
}

.x-content-inline-back:hover {
    background-color: rgba(231, 233, 234, 0.1) !important;
}

.x-content-inline-header h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
    margin: 0 !important;
}

/* Body */
.x-content-inline-body {
    padding: 0 !important;
    min-height: calc(100vh - 53px) !important;
}

/* Connect Suggestions Tabs */
.x-connect-tabs {
    display: flex;
    border-bottom: 1px solid var(--x-border);
}

.x-connect-tab {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--x-text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
}

.x-connect-tab:hover {
    background: rgba(255,255,255,.03);
}

.x-connect-tab.active {
    border-bottom-color: var(--x-color-primary);
    color: var(--x-text-primary);
    font-weight: 700;
}

/* Connect User Item */
.x-connect-user-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--x-border);
    transition: background .2s ease;
}

.x-connect-user-item:hover {
    background: rgba(255,255,255,.03);
}

.x-connect-user-info {
    display: flex;
    gap: 12px;
    flex: 1;
}

.x-connect-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.x-connect-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.x-connect-user-details {
    flex: 1;
    min-width: 0;
}

.x-connect-user-name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--x-text-primary);
    text-decoration: none;
    margin-bottom: 2px;
}

.x-connect-user-name:hover {
    text-decoration: underline;
}

.x-connect-user-username {
    font-size: 15px;
    color: var(--x-text-secondary);
    margin-bottom: 4px;
}

.x-connect-user-bio {
    font-size: 15px;
    color: var(--x-text-primary);
    line-height: 1.4;
    margin-top: 4px;
}

/* Show right sidebar for connect view but hide suggestions module */
body.x-connect-view .rightcol,
body.x-connect-view #x-right-sidebar {
    display: block !important;
}

body.x-connect-view .x-sidebar-suggestions {
    display: none !important;
}
/* Yeltok Shorts Integration for X-Theme */

/* Body class for shorts open */
body.x-shorts-open .middlecol,
body.x-shorts-open #x-middle-col {
    width: 598px !important;
    flex: 0 0 598px !important;
    max-width: 598px !important;
}

/* Container */
.x-shorts-page {
    background-color: #000000;
    height: 100vh;
    max-height: 100vh;
    max-width: 598px !important;
    width: 598px !important;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    border-right: 1px solid var(--x-border);
}

/* Force container width and height */
#x-shorts-inline-container {
    max-width: 598px !important;
    width: 598px !important;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    border-right: 1px solid var(--x-border);
}

/* NAVBAR TOP */
.yeltok-navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: rgba(0,0,0,.85);
    z-index: 50;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--x-border);
}

.yeltok-nav-tabs {
    display: flex;
    gap: 0;
    align-items: center;
}

.yeltok-tab-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--x-text-secondary);
    cursor: pointer;
    transition: all .2s ease;
    font-size: 15px;
    font-weight: 500;
}

.yeltok-tab-chip.active {
    border-bottom-color: var(--x-color-primary);
    color: var(--x-text-primary);
}

.yeltok-tab-chip:hover:not(.active) {
    background: rgba(255,255,255,.03);
}

/* FEED */
.yeltok-viewport {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 1;
}

.yeltok-viewport::-webkit-scrollbar {
    display: none;
}

.yeltok-track {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 598px;
}

.yeltok-card {
    position: relative;
    width: 100%;
    max-width: 598px;
    height: 100vh;
    scroll-snap-align: start;
    background: #000;
    overflow: hidden;
    margin: 0 auto;
}

.yeltok-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Gradient overlay à la TikTok pour rendre le texte lisible */
.yeltok-video-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

/* Fake video placeholder */
.yeltok-fake-video {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: radial-gradient(120% 120% at 0% 100%, #101010 0%, #050505 48%, #000 100%);
}

.yeltok-ph {
    width: auto;
    height: 100%;
    max-height: 100%;
    aspect-ratio: 9/16;
    max-width: 598px;
    border-radius: 18px;
    border: 1px solid var(--x-border);
    background: linear-gradient(180deg, rgba(255,0,80,.15), rgba(0,242,234,.12));
    display: grid;
    place-items: center;
}

.yeltok-ph span {
    font-weight: 700;
    opacity: .8;
}

/* Real video - 9:16 format - Centré et contenu dans 598px */
.yeltok-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Play/Pause indicator */
.yeltok-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,.7);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.yeltok-play-indicator::before {
    content: '▶';
    color: #fff;
    font-size: 30px;
    margin-left: 4px;
}

.yeltok-play-indicator.paused::before {
    content: '⏸';
    margin-left: 0;
}

/* Like animation */
.yeltok-like-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 60px;
    color: var(--x-color-primary);
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    animation: yeltokLikeFloat 1s ease-out;
}

@keyframes yeltokLikeFloat {
    0% {
        opacity: 1;
        transform: translate(-50%,-50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%,-50%) scale(1) translateY(-50px);
    }
}

/* Audio indicator */
.yeltok-audio-indicator {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 20;
    backdrop-filter: blur(4px);
}

.yeltok-audio-indicator.muted {
    color: #999;
}

/* ACTIONS à droite - Style X.com */
.yeltok-actions {
    position: absolute;
    right: 12px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    z-index: 15;
}

.yeltok-act {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-align: center;
}

/* Bouton Like */
.yeltok-act .yeltok-btn[data-yeltok-like] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22,24,28,.75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--x-border);
    cursor: pointer;
    transition: all .2s ease;
    color: #fff;
}

.yeltok-act .yeltok-btn[data-yeltok-like]:hover {
    background: rgba(249,24,128,.1);
    color: #F91880;
    border-color: rgba(249,24,128,.3);
}

.yeltok-act .yeltok-btn[data-yeltok-like].liked {
    background: #F91880;
    color: #fff;
    animation: yeltokLikeHeartBeat .5s ease;
    border-color: #F91880;
}

/* Commentaires */
.yeltok-act .yeltok-btn.yeltok-comments-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22,24,28,.75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--x-border);
    cursor: pointer;
    transition: all .2s ease;
    color: #fff;
}

.yeltok-act .yeltok-btn.yeltok-comments-btn:hover {
    background: rgba(29,155,240,.1);
    color: var(--x-color-primary);
    border-color: rgba(29,155,240,.3);
}

/* Partage */
.yeltok-act .yeltok-btn.yeltok-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22,24,28,.75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--x-border);
    cursor: pointer;
    transition: all .2s ease;
    color: #fff;
}

.yeltok-act .yeltok-btn.yeltok-share-btn:hover {
    background: rgba(0,186,124,.1);
    color: #00BA7C;
    border-color: rgba(0,186,124,.3);
}

/* BOUTON ADD VIDEO */
.yeltok-act .yeltok-btn.yeltok-add-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1d9bf0;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.yeltok-act .yeltok-btn.yeltok-add-btn:hover {
    background: var(--x-color-primary-hover);
    transform: scale(1.1);
}

.yeltok-act .yeltok-btn.yeltok-add-btn:active {
    transform: scale(0.95);
}

/* Boutons génériques */
.yeltok-act .yeltok-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22,24,28,.75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--x-border);
    cursor: pointer;
    transition: all .2s ease;
    color: #fff;
}

.yeltok-act .yeltok-btn:hover {
    background: rgba(255,255,255,.1);
    color: var(--x-text-primary);
}

.yeltok-act .yeltok-btn:active {
    transform: scale(0.95);
}

/* Compteurs */
.yeltok-act .yeltok-count {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    margin-top: 2px;
}

/* Animation du like - Sobre */
@keyframes yeltokLikeHeartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* CAPTION en bas */
.yeltok-caption {
    position: absolute;
    left: 14px;
    right: 84px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 15;
    pointer-events: auto;
}

.yeltok-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yeltok-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--x-card-bg);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--x-border);
}

.yeltok-username {
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}

.yeltok-username:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.yeltok-avatar {
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.yeltok-avatar:hover {
    opacity: 0.9;
}

.yeltok-follow {
    margin-left: 4px;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--x-text-primary);
    border: none;
    color: #000;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s ease;
}

.yeltok-follow:hover {
    background: rgba(231,233,234,.9);
}

.yeltok-desc, .yeltok-sound {
    font-size: 15px;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}

.yeltok-desc .hashtag {
    color: #fff;
    font-weight: 600;
}

.yeltok-sound {
    opacity: 0.9;
}

/* MODAL ADD VIDEO */
.yeltok-add-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 100;
    display: none;
    backdrop-filter: blur(8px);
}

.yeltok-add-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #000;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--x-border);
}

.yeltok-add-modal h2 {
    margin: 0 0 24px 0;
    font-size: 23px;
    font-weight: 700;
    color: var(--x-text-primary);
}

.yeltok-add-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yeltok-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yeltok-form-group label {
    font-size: 15px;
    color: var(--x-text-primary);
    font-weight: 600;
}

.yeltok-form-group input,
.yeltok-form-group textarea,
.yeltok-form-group select {
    background: transparent;
    border: 1px solid var(--x-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--x-text-primary);
    font-size: 15px;
    transition: border-color .2s ease;
}

.yeltok-form-group input:focus,
.yeltok-form-group textarea:focus,
.yeltok-form-group select:focus {
    outline: none;
    border-color: var(--x-color-primary);
}

.yeltok-form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.yeltok-form-group input::placeholder,
.yeltok-form-group textarea::placeholder {
    color: var(--x-text-secondary);
}

.yeltok-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.yeltok-btn-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid var(--x-border);
    color: var(--x-text-primary);
    padding: 14px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all .2s ease;
}

.yeltok-btn-cancel:hover {
    background: rgba(255,255,255,.1);
}

.yeltok-btn-submit {
    flex: 1;
    background: var(--x-color-primary);
    border: none;
    color: #fff;
    padding: 14px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all .2s ease;
}

.yeltok-btn-submit:hover {
    background: var(--x-color-primary-hover);
}

.yeltok-btn-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.yeltok-file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.yeltok-file-upload input[type=file] {
    position: absolute;
    left: -9999px;
}

.yeltok-file-upload-label {
    display: block;
    padding: 16px;
    background: var(--x-card-bg);
    border: 1px solid var(--x-border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    color: var(--x-text-secondary);
    transition: all .2s ease;
    font-size: 15px;
}

.yeltok-file-upload-label:hover {
    border-color: var(--x-color-primary);
    color: var(--x-color-primary);
}

.yeltok-shadow-soft {
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Assurer que tout reste dans les 598px */
.x-shorts-page * {
    box-sizing: border-box;
}

.yeltok-card * {
    max-width: 100%;
}

/* COMMENTS SIDEBAR (Desktop) */
.yeltok-comments-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: #000;
    border-left: 1px solid var(--x-border);
    z-index: 100;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
}

.yeltok-comments-sidebar.open {
    transform: translateX(0);
}

.yeltok-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--x-border);
    background: rgba(0,0,0,.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.yeltok-comments-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--x-text-primary);
}

.yeltok-comments-close {
    background: transparent;
    border: none;
    color: var(--x-text-primary);
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s ease;
}

.yeltok-comments-close:hover {
    background: rgba(255,255,255,.1);
}

.yeltok-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--x-border) transparent;
}

.yeltok-comments-list::-webkit-scrollbar {
    width: 8px;
}

.yeltok-comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.yeltok-comments-list::-webkit-scrollbar-thumb {
    background: var(--x-border);
    border-radius: 4px;
}

.yeltok-comments-list::-webkit-scrollbar-thumb:hover {
    background: var(--x-text-secondary);
}

.yeltok-comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    transition: background .2s ease;
}

.yeltok-comment-item:hover {
    background: rgba(255,255,255,.03);
}

.yeltok-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--x-card-bg);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--x-border);
    flex-shrink: 0;
}

.yeltok-comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yeltok-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yeltok-comment-username {
    font-weight: 600;
    color: var(--x-text-primary);
    font-size: 15px;
}

.yeltok-comment-time {
    font-size: 13px;
    color: var(--x-text-secondary);
}

.yeltok-comment-text {
    font-size: 15px;
    color: var(--x-text-primary);
    line-height: 1.4;
    word-wrap: break-word;
}

.yeltok-comments-input {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--x-border);
    background: rgba(0,0,0,.95);
    backdrop-filter: blur(12px);
    position: sticky;
    bottom: 0;
}

.yeltok-comments-input input {
    flex: 1;
    background: transparent;
    border: 1px solid var(--x-border);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--x-text-primary);
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease;
}

.yeltok-comments-input input:focus {
    border-color: var(--x-color-primary);
}

.yeltok-comments-input input::placeholder {
    color: var(--x-text-secondary);
}

.yeltok-comments-input button {
    background: var(--x-color-primary);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all .2s ease;
    flex-shrink: 0;
}

.yeltok-comments-input button:hover {
    background: var(--x-color-primary-hover);
    transform: scale(1.05);
}

.yeltok-comments-input button:active {
    transform: scale(0.95);
}

/* Mobile : plein écran */
@media (max-width: 768px) {
    .yeltok-track {
        max-width: 100%;
    }

    .x-shorts-page {
        max-width: 100vw !important;
        width: 100vw !important;
    }

    .yeltok-card {
        max-width: 100vw;
    }

    .yeltok-comments-sidebar {
        width: 100vw;
    }
}

/* SHARE TOAST NOTIFICATION */
.yeltok-share-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--x-color-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transition: all .3s ease;
    box-shadow: 0 8px 24px rgba(29, 155, 240, 0.3);
}

.yeltok-share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.yeltok-share-toast svg {
    flex-shrink: 0;
}
/* X Quote Modal - Style exact de X.com */

.x-quote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(91, 112, 131, 0.4);
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5vh;
}

.x-quote-modal {
    background-color: rgb(0, 0, 0);
    border-radius: 16px;
    width: 600px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 0px 15px, rgba(255, 255, 255, 0.15) 0px 0px 3px 1px;
}

.x-quote-modal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgb(47, 51, 54);
    gap: 24px;
}

.x-quote-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgb(239, 243, 244);
    transition: background-color 0.2s;
}

.x-quote-modal-close:hover {
    background-color: rgba(239, 243, 244, 0.1);
}

.x-quote-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: rgb(239, 243, 244);
    margin: 0;
}

.x-quote-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.x-quote-composer {
    display: flex;
    gap: 12px;
}

.x-quote-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
}

.x-quote-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.x-quote-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.x-quote-select-wrapper {
    margin-bottom: 4px;
}

/* Sélecteur "Poster en tant que" (profil ou page) */
.x-post-as-select {
    background: transparent;
    border: 1px solid rgb(29, 155, 240);
    border-radius: 9999px;
    padding: 4px 12px;
    color: rgb(29, 155, 240);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    outline: none;
    max-width: 100%;
}

.x-post-as-select:hover {
    background-color: rgba(29, 155, 240, 0.1);
}

.x-post-as-select:focus {
    background-color: rgba(29, 155, 240, 0.1);
}

.x-post-as-select option {
    background-color: rgb(0, 0, 0);
    color: rgb(239, 243, 244);
    padding: 8px;
}

.x-quote-audience-btn {
    background: transparent;
    border: 1px solid rgb(29, 155, 240);
    border-radius: 9999px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgb(29, 155, 240);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-quote-audience-btn:hover {
    background-color: rgba(29, 155, 240, 0.1);
}

#x-quote-textarea {
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: rgb(239, 243, 244);
    font-size: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    resize: none;
    min-height: 80px;
    line-height: 24px;
    padding: 12px 0 !important;
    margin: 0 !important;
}

#x-quote-textarea::placeholder {
    color: rgb(113, 118, 123);
}

#x-quote-textarea:focus {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Quoted Post Preview */
.x-quote-preview {
    border: 1px solid rgb(47, 51, 54);
    border-radius: 16px;
    padding: 12px;
    margin-top: 12px;
}

.x-quote-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.x-quote-preview-avatar {
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    overflow: hidden;
}

.x-quote-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.x-quote-preview-user {
    display: flex;
    align-items: center;
    gap: 4px;
}

.x-quote-preview-name {
    font-size: 15px;
    font-weight: 700;
    color: rgb(231, 233, 234);
}

.x-quote-preview-username {
    font-size: 15px;
    color: rgb(113, 118, 123);
}

.x-quote-preview-dot {
    color: rgb(113, 118, 123);
    margin: 0 4px;
}

.x-quote-preview-time {
    font-size: 15px;
    color: rgb(113, 118, 123);
}

.x-quote-preview-text {
    font-size: 15px;
    color: rgb(231, 233, 234);
    line-height: 20px;
    word-wrap: break-word;
}

.x-quote-preview-media {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    max-height: 300px;
    border: 1px solid rgb(47, 51, 54);
}

.x-quote-preview-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.x-quote-preview-media iframe {
    width: 100%;
    height: 300px;
    display: block;
}

.x-quote-preview-media video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
}

.x-quote-char-limit {
    font-size: 13px;
    color: rgb(113, 118, 123);
    text-align: right;
    margin-top: 8px;
}

.x-quote-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid rgb(47, 51, 54);
}

.x-quote-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.x-quote-tool-btn {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-quote-tool-btn:hover {
    background-color: rgba(29, 155, 240, 0.1);
}

.x-quote-post-btn {
    background-color: rgb(29, 155, 240);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 9999px;
    padding: 8px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-quote-post-btn:hover:not(:disabled) {
    background-color: rgb(26, 140, 216);
}

.x-quote-post-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar styling */
.x-quote-modal-body::-webkit-scrollbar {
    width: 6px;
}

.x-quote-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.x-quote-modal-body::-webkit-scrollbar-thumb {
    background: rgb(47, 51, 54);
    border-radius: 10px;
}

.x-quote-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgb(62, 65, 68);
}

/* Styles spécifiques pour le modal de post (sans citation) */
#x-post-textarea {
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: rgb(239, 243, 244);
    font-size: 24px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    resize: none;
    min-height: 120px;
    line-height: 28px;
    padding: 16px 0 !important;
    margin: 0 !important;
    margin-top: 8px !important;
}

#x-post-textarea::placeholder {
    color: rgb(113, 118, 123);
    font-size: 24px;
}

#x-post-textarea:focus {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ajuster l'espacement pour le modal de post */
#x-post-modal .x-quote-select-wrapper {
    margin-bottom: 8px;
}

/* ===== STYLES POUR LE MODAL DE RÉPONSE ===== */

.x-reply-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Post original dans le modal de réponse */
.x-reply-original {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgb(47, 51, 54);
}

.x-reply-avatar {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    flex-shrink: 0;
    object-fit: cover;
}

.x-reply-content {
    flex: 1;
    min-width: 0;
}

.x-reply-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.x-reply-name {
    font-size: 15px;
    font-weight: 700;
    color: rgb(231, 233, 234);
}

.x-reply-username {
    font-size: 15px;
    color: rgb(113, 118, 123);
}

.x-reply-text {
    font-size: 15px;
    color: rgb(231, 233, 234);
    line-height: 20px;
    word-wrap: break-word;
}

/* Zone de composition de la réponse */
.x-reply-compose {
    display: flex;
    gap: 12px;
    padding: 12px 0;
}

.x-reply-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    flex-shrink: 0;
    object-fit: cover;
}

.x-reply-textarea {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: rgb(239, 243, 244);
    font-size: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    resize: none;
    min-height: 80px;
    line-height: 24px;
    padding: 0 !important;
    margin: 0 !important;
}

.x-reply-textarea::placeholder {
    color: rgb(113, 118, 123);
}

.x-reply-textarea:focus {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Actions et bouton répondre */
.x-reply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgb(47, 51, 54);
}

.x-reply-icons {
    display: flex;
    gap: 4px;
}

.x-reply-icon {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--x-blue);
}

.x-reply-icon:hover {
    background-color: rgba(29, 155, 240, 0.1);
}

.x-reply-btn {
    background-color: rgb(29, 155, 240);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 9999px;
    padding: 8px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-reply-btn:hover:not(:disabled) {
    background-color: rgb(26, 140, 216);
}

.x-reply-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* ========================================
   X-MESSAGES - Style X.com EXACT
   Container central uniquement
   ======================================== */

.x-messages-container-central {
    display: flex !important;
    overflow: visible !important;
    background: rgb(0, 0, 0) !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 1047px !important;
    min-width: 1047px !important;
    border-right: 1px solid rgb(47, 51, 54) !important;
}

/* ========================================
   SIDEBAR - Liste des conversations
   ======================================== */
.x-messages-sidebar {
    width: 448px !important;
    min-width: 448px !important;
    max-width: 448px !important;
    height: 100vh !important;
    border-right: 1px solid rgb(47, 51, 54) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

/* Header */
.x-messages-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px !important;
    border-bottom: 1px solid rgb(47, 51, 54) !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
}

.x-messages-header h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 244) !important;
    margin: 0 !important;
}

.x-messages-header-icons {
    display: flex !important;
    gap: 4px !important;
}

.x-icon-button {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: rgb(231, 233, 244) !important;
    transition: background-color 0.2s !important;
}

.x-icon-button:hover {
    background-color: rgba(231, 233, 244, 0.1) !important;
}

/* Search */
.x-messages-search {
    position: relative !important;
    padding: 12px 16px !important;
    background: rgb(0, 0, 0) !important;
}

.x-messages-search .x-search-icon {
    position: absolute !important;
    left: 28px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgb(113, 118, 123) !important;
    pointer-events: none !important;
}

.x-messages-search-input {
    width: 100% !important;
    background: rgb(32, 35, 39) !important;
    border: 1px solid transparent !important;
    border-radius: 9999px !important;
    padding: 12px 16px 12px 48px !important;
    color: rgb(231, 233, 244) !important;
    font-size: 15px !important;
    outline: none !important;
}

.x-messages-search-input:focus {
    background: rgb(0, 0, 0) !important;
    border-color: rgb(29, 155, 240) !important;
}

.x-messages-search-input::placeholder {
    color: rgb(113, 118, 123) !important;
}

/* Tabs */
.x-messages-tabs {
    display: flex !important;
    padding: 0 !important;
    border-bottom: 1px solid rgb(47, 51, 54) !important;
    background: rgb(0, 0, 0) !important;
}

.x-messages-tab {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    color: rgb(231, 233, 234) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    text-decoration: none !important;
}

.x-messages-tab:hover {
    background-color: rgba(231, 233, 244, 0.03) !important;
}

.x-messages-tab-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    background: rgb(22, 24, 28) !important;
    border-radius: 50% !important;
}

/* Messages list */
.x-messages-list {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.x-message-item {
    display: flex !important;
    gap: 12px !important;
    padding: 16px !important;
    border-bottom: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.x-message-item:hover {
    background-color: rgba(231, 233, 244, 0.03) !important;
}

.x-message-item.active {
    background-color: rgba(29, 155, 240, 0.12) !important;
}

.x-message-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.x-message-content {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.x-message-header {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    width: 100% !important;
    overflow: hidden !important;
}

.x-message-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 244) !important;
    flex-shrink: 0 !important;
    max-width: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.x-message-username {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
    flex-shrink: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.x-message-preview {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
}

/* ========================================
   MAIN - Zone de conversation
   ======================================== */
.x-messages-main {
    width: 599px !important;
    min-width: 599px !important;
    max-width: 599px !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgb(0, 0, 0) !important;
    border-right: 1px solid rgb(47, 51, 54) !important;
}

.x-messages-empty {
    text-align: left !important;
    padding: 32px !important;
    max-width: 380px !important;
}

.x-messages-empty h1 {
    font-size: 31px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 244) !important;
    margin: 0 0 8px 0 !important;
}

.x-messages-empty p {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
    margin: 0 0 28px 0 !important;
    line-height: 20px !important;
}

.x-btn-primary {
    background: rgb(29, 155, 240) !important;
    color: rgb(255, 255, 255) !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 16px 32px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.x-btn-primary:hover {
    background-color: rgb(26, 140, 216) !important;
}

/* Scrollbar styling */
.x-messages-list::-webkit-scrollbar {
    width: 6px !important;
}

.x-messages-list::-webkit-scrollbar-track {
    background: transparent !important;
}

.x-messages-list::-webkit-scrollbar-thumb {
    background: rgb(47, 51, 54) !important;
    border-radius: 3px !important;
}

.x-messages-list::-webkit-scrollbar-thumb:hover {
    background: rgb(62, 65, 68) !important;
}
/* Subscription Modal Styles */

/* Subscription Modal */
.x-subscription-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10002 !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 0 !important;
}

.x-subscription-modal[style*="display: flex"] {
    display: flex !important;
}

.x-subscription-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(91, 112, 131, 0.4) !important;
    z-index: 1 !important;
}

.x-subscription-modal-content {
    position: relative !important;
    width: 100% !important;
    min-width: 600px !important;
    max-width: 600px !important;
    min-height: 400px !important;
    max-height: 90vh !important;
    background-color: rgb(0, 0, 0) !important;
    z-index: 2 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 16px !important;
    margin: 20px !important;
}

.x-subscription-modal-inner {
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Subscription Header */
.x-subscription-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgb(47, 51, 54) !important;
    position: sticky !important;
    top: 0 !important;
    background-color: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 10 !important;
}

.x-subscription-header-left {
    flex: 1 !important;
}

.x-subscription-header-center {
    flex: 1 !important;
}

.x-subscription-header-right {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

.x-subscription-back-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgb(239, 243, 244) !important;
    transition: background-color 0.2s !important;
    width: 36px !important;
    height: 36px !important;
}

.x-subscription-back-btn:hover {
    background-color: rgba(239, 243, 244, 0.1) !important;
}

.x-subscription-subscribe-btn {
    background-color: rgb(239, 243, 244) !important;
    color: rgb(15, 20, 25) !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 6px 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    height: 32px !important;
    white-space: nowrap !important;
    min-width: fit-content !important;
}

.x-subscription-subscribe-btn:hover {
    background-color: rgb(215, 219, 220) !important;
}

.x-subscription-share-btn {
    background: transparent !important;
    border: 1px solid rgb(83, 100, 113) !important;
    border-radius: 9999px !important;
    padding: 6px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgb(239, 243, 244) !important;
    transition: background-color 0.2s !important;
    width: 32px !important;
    height: 32px !important;
}

.x-subscription-share-btn:hover {
    background-color: rgba(239, 243, 244, 0.1) !important;
}

/* Subscription Body */
.x-subscription-body {
    padding: 16px !important;
    flex: 1 !important;
}

.x-subscription-title-section {
    margin-bottom: 32px !important;
}

.x-subscription-title {
    font-size: 31px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
    margin: 0 0 12px 0 !important;
    line-height: 36px !important;
}

.x-subscription-subtitle {
    font-size: 15px !important;
    color: rgb(231, 233, 234) !important;
    margin: 0 0 24px 0 !important;
    line-height: 20px !important;
}

.x-subscription-user-badge {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    background-color: rgb(22, 24, 28) !important;
    border-radius: 16px !important;
}

.x-subscription-user-avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
}

.x-subscription-user-info {
    flex: 1 !important;
    font-size: 15px !important;
    color: rgb(231, 233, 234) !important;
}

/* Section Styles */
.x-subscription-section {
    margin-bottom: 32px !important;
}

.x-subscription-section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
    margin: 0 0 12px 0 !important;
}

.x-subscription-section-desc {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
    margin: 0 0 16px 0 !important;
    line-height: 20px !important;
}

/* Content Preview */
.x-subscription-content-preview {
    background-color: rgb(22, 24, 28) !important;
    border-radius: 16px !important;
    padding: 16px !important;
}

.x-subscription-content-desc {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
    margin: 0 0 16px 0 !important;
}

.x-subscription-content-author {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.x-subscription-author-name {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
}

.x-subscription-author-avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
}

/* Post Preview */
.x-subscription-post-preview {
    position: relative !important;
    margin-bottom: 32px !important;
    background-color: rgb(22, 24, 28) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    padding: 16px !important;
}

.x-subscription-post-skeleton {
    position: relative !important;
    z-index: 1 !important;
}

.x-subscription-post-header {
    margin-bottom: 16px !important;
}

.x-skeleton-lines {
    display: flex !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
}

.x-skeleton-line {
    height: 3px !important;
    background-color: rgb(231, 233, 234) !important;
    border-radius: 2px !important;
}

.x-subscription-post-actions {
    display: flex !important;
    gap: 48px !important;
    align-items: center !important;
}

.x-subscription-post-gradient {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 100% !important;
    background: linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0) 25%, rgba(0, 0, 0, 0.314) 75%, transparent 100%) !important;
    pointer-events: none !important;
}

.x-subscription-post-gradient-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 100% !important;
    background: linear-gradient(rgb(0, 0, 0), rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.314) 75%, transparent 100%) !important;
    pointer-events: none !important;
}

/* Badge Preview */
.x-subscription-badge-preview {
    background-color: rgb(22, 24, 28) !important;
    border-radius: 16px !important;
    padding: 16px !important;
}

.x-subscription-badge-items {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
}

.x-subscription-badge-item {
    flex: 1 !important;
}

.x-subscription-badge-skeleton {
    width: 100% !important;
    padding-bottom: 100% !important;
    background-color: rgb(51, 54, 57) !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
}

.x-subscription-badge-lines {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}

.x-subscription-badge-line {
    height: 3px !important;
    background-color: rgb(231, 233, 234) !important;
    border-radius: 2px !important;
}

.x-subscription-badge-line:last-child {
    background-color: rgb(113, 118, 123) !important;
}

.x-subscription-badge-text-lines {
    display: flex !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
}

.x-skeleton-line-text {
    height: 3px !important;
    background-color: rgb(231, 233, 234) !important;
    border-radius: 2px !important;
}

/* Badge User Card */
.x-subscription-badge-user-card {
    display: flex !important;
    gap: 12px !important;
    padding: 12px !important;
    background-color: rgb(0, 0, 0) !important;
    border-radius: 12px !important;
    border: 1px solid rgb(47, 51, 54) !important;
}

.x-subscription-card-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.x-subscription-card-info {
    flex: 1 !important;
}

.x-subscription-card-name-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
}

.x-subscription-card-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
}

.x-subscription-card-username {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
    margin-bottom: 8px !important;
}

.x-subscription-card-badge {
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: rgb(223, 130, 224) !important;
    margin-bottom: 8px !important;
}

.x-subscription-card-text-lines {
    display: flex !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
}

.x-subscription-card-text-lines .x-skeleton-line-text {
    height: 4px !important;
}

/* Form Section */
.x-subscription-form {
    margin-top: 32px !important;
}

.x-subscription-checkbox {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
}

.x-subscription-checkbox-label {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer !important;
    padding-top: 2px !important;
}

.x-subscription-checkbox-label input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

.x-subscription-checkbox-box {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid rgb(113, 118, 123) !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
}

.x-subscription-checkbox-label input[type="checkbox"]:checked + .x-subscription-checkbox-box {
    background-color: rgb(29, 155, 240) !important;
    border-color: rgb(29, 155, 240) !important;
}

.x-subscription-checkbox-label input[type="checkbox"]:checked + .x-subscription-checkbox-box::after {
    content: "✓" !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.x-subscription-checkbox-text {
    font-size: 13px !important;
    color: rgb(113, 118, 123) !important;
    line-height: 16px !important;
    margin: 0 !important;
}

.x-subscription-checkbox-text a {
    color: rgb(201, 54, 204) !important;
    text-decoration: none !important;
}

.x-subscription-checkbox-text a:hover {
    text-decoration: underline !important;
}

/* Email Input */
.x-subscription-email-input {
    margin-bottom: 16px !important;
}

.x-subscription-label {
    display: block !important;
    position: relative !important;
}

.x-subscription-label-text {
    position: absolute !important;
    top: 50% !important;
    left: 12px !important;
    transform: translateY(-50%) !important;
    font-size: 17px !important;
    color: rgb(113, 118, 123) !important;
    pointer-events: none !important;
    transition: all 0.2s !important;
}

.x-subscription-input {
    width: 100% !important;
    padding: 16px 12px !important;
    background-color: transparent !important;
    border: 1px solid rgb(51, 54, 57) !important;
    border-radius: 4px !important;
    color: rgb(231, 233, 234) !important;
    font-size: 17px !important;
    outline: none !important;
}

.x-subscription-input:focus {
    border-color: rgb(29, 155, 240) !important;
}

.x-subscription-input:focus ~ .x-subscription-label-text,
.x-subscription-input:not(:placeholder-shown) ~ .x-subscription-label-text {
    top: 8px !important;
    font-size: 13px !important;
    background-color: rgb(0, 0, 0) !important;
    padding: 0 4px !important;
}

/* Terms */
.x-subscription-terms {
    font-size: 11px !important;
    color: rgb(113, 118, 123) !important;
    line-height: 12px !important;
    margin: 0 0 16px 0 !important;
}

.x-subscription-terms a {
    color: rgb(201, 54, 204) !important;
    text-decoration: none !important;
}

.x-subscription-terms a:hover {
    text-decoration: underline !important;
}

/* Submit Button */
.x-subscription-submit-btn {
    width: 100% !important;
    padding: 12px 16px !important;
    background-color: rgb(201, 54, 204) !important;
    border: none !important;
    border-radius: 9999px !important;
    color: rgb(255, 255, 255) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.x-subscription-submit-btn:hover {
    background-color: rgb(176, 47, 179) !important;
}
/* ========================================
   PREMIUM MODAL - Exactement comme X.com
   ======================================== */

/* Overlay fullscreen avec gradient noir-bleu */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Container principal - VRAIMENT fullscreen avec gradient */
.premium-modal-container {
    background: radial-gradient(ellipse at center, rgba(20, 30, 50, 1) 0%, rgba(0, 0, 0, 1) 100%);
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Header avec bouton fermer - transparent avec le gradient */
.premium-modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 8px 16px;
    z-index: 100;
    display: flex;
    align-items: center;
    height: 53px;
}

.premium-modal-close {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #e7e9ea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    padding: 0;
}

.premium-modal-close:hover {
    background-color: rgba(239, 243, 244, 0.1);
}

.premium-modal-close svg {
    width: 20px;
    height: 20px;
}

/* Contenu - avec padding top pour le header fixe */
.premium-modal-content {
    padding: 73px 20px 48px 20px;
    max-width: 1095px;
    margin: 0 auto;
}

/* Titre */
.premium-modal-title {
    font-size: 31px;
    font-weight: 800;
    line-height: 36px;
    text-align: center;
    margin: 0 0 20px 0;
    color: #e7e9ea;
    letter-spacing: -0.6px;
}

/* Toggle Annuel/Mensuel */
.premium-toggle-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.premium-toggle-btn {
    padding: 11px 16px;
    border-radius: 9999px;
    border: 1px solid rgb(83, 100, 113);
    background: transparent;
    color: #e7e9ea;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

.premium-toggle-btn:hover {
    background-color: rgba(29, 155, 240, 0.1);
}

.premium-toggle-btn.active {
    background-color: #eff3f4;
    border-color: #eff3f4;
    color: #0f1419;
}

.premium-toggle-badge {
    background: rgb(0, 186, 124);
    padding: 0px 4px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    color: #000;
}

/* Container des 3 cartes */
.premium-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    max-width: 990px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .premium-cards-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

/* Carte Premium */
.premium-card {
    background: transparent;
    border: 1px solid rgb(47, 51, 54);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    cursor: pointer;
}

.premium-card:hover {
    background-color: rgba(231, 233, 234, 0.03);
}

.premium-card.selected {
    border-color: rgb(29, 155, 240);
    border-width: 2px;
    padding: 15px;
}

/* Carte centrale (Premium) mise en avant */
.premium-card-highlighted {
    border-color: rgb(29, 155, 240);
    border-width: 2px;
    padding: 15px; /* Compensate for 2px border */
    background: transparent;
}

.premium-card-highlighted:hover {
    background-color: rgba(29, 155, 240, 0.05);
}

/* Ribbon "Recommandé" */
.premium-card-ribbon {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(29, 155, 240);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
}

/* Header de la carte */
.premium-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgb(47, 51, 54);
}

.premium-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #e7e9ea;
    margin: 0;
}

.premium-badge-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.premium-badge-icon svg {
    width: 100%;
    height: 100%;
}

/* Badges plus gros au-dessus des boutons */
.premium-badge-large {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
}

.premium-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Prix */
.premium-card-price {
    margin-bottom: 16px;
    min-height: 80px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.premium-card-price-discount {
    margin-bottom: 16px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premium-card-price-discount > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-amount {
    font-size: 40px;
    font-weight: 700;
    line-height: 44px;
    color: #e7e9ea;
    letter-spacing: -1.2px;
}

.price-currency {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: #71767b;
}

.price-period {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #71767b;
}

.price-text-only {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #71767b;
}

.price-savings {
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    color: rgb(0, 186, 124);
    margin-top: 4px;
}

/* Features list */
.premium-card-features {
    flex: 1;
    margin-bottom: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    width: 18.75px;
    height: 18.75px;
}

.feature-item span {
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    color: #e7e9ea;
}

/* Boutons d'abonnement */
.premium-card-btn {
    width: 100%;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
}

.premium-btn-blue {
    background-color: rgb(29, 155, 240);
    color: rgb(255, 255, 255);
}

.premium-btn-blue:hover {
    background-color: rgb(26, 140, 216);
}

.premium-btn-gold {
    background: linear-gradient(to bottom, rgb(244, 231, 42), rgb(205, 129, 5));
    color: rgb(0, 0, 0);
}

.premium-btn-gold:hover {
    background: linear-gradient(to bottom, rgb(255, 242, 92), rgb(215, 139, 15));
}

.premium-btn-grey {
    background-color: rgb(83, 100, 113);
    color: rgb(255, 255, 255);
}

.premium-btn-grey:hover {
    background-color: rgb(110, 118, 125);
}

/* Footer du modal */
.premium-modal-footer {
    padding: 20px 0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.premium-footer-text {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: rgb(113, 118, 123);
    margin: 0;
}

.premium-footer-text a {
    color: rgb(29, 155, 240);
    text-decoration: none;
}

.premium-footer-text a:hover {
    text-decoration: underline;
}

/* Animation d'ouverture */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.premium-modal-overlay[style*="display: flex"] {
    animation: fadeIn 0.2s ease-out;
}

/* Scrollbar styling */
.premium-modal-container::-webkit-scrollbar {
    width: 6px;
}

.premium-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.premium-modal-container::-webkit-scrollbar-thumb {
    background: rgb(83, 100, 113);
    border-radius: 3px;
}

.premium-modal-container::-webkit-scrollbar-thumb:hover {
    background: rgb(110, 118, 125);
}

/* Section entreprise */
.premium-business-section {
    background-color: rgba(29, 155, 240, 0.1);
    border: 1px solid rgba(29, 155, 240, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 40px auto;
    max-width: 990px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.premium-business-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.premium-business-icon svg {
    width: 100%;
    height: 100%;
}

.premium-business-content {
    flex: 1;
}

.premium-business-content h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #e7e9ea;
    margin: 0 0 4px 0;
}

.premium-business-content p {
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    color: rgb(113, 118, 123);
    margin: 0;
}

.premium-business-btn {
    background-color: rgb(239, 243, 244);
    color: rgb(15, 20, 25);
    padding: 12px 24px;
    border-radius: 9999px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 44px;
    white-space: nowrap;
}

.premium-business-btn:hover {
    background-color: rgb(215, 219, 220);
}

/* Section comparaison */
.premium-comparison-section {
    margin: 40px auto;
    max-width: 990px;
}

.premium-comparison-section h2 {
    font-size: 31px;
    font-weight: 800;
    line-height: 36px;
    text-align: center;
    margin: 0 0 20px 0;
    color: #e7e9ea;
    letter-spacing: -0.6px;
}

.premium-comparison-card {
    background: transparent;
    border: 1px solid rgb(47, 51, 54);
    border-radius: 16px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.premium-comparison-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgb(47, 51, 54);
}

.premium-comparison-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #e7e9ea;
    margin-bottom: 8px;
}

.premium-comparison-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.comparison-amount {
    font-size: 31px;
    font-weight: 700;
    line-height: 36px;
    color: #e7e9ea;
    letter-spacing: -0.6px;
}

.comparison-period {
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    color: rgb(113, 118, 123);
}

.premium-comparison-billing {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: rgb(113, 118, 123);
}

.premium-comparison-btn {
    width: 100%;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 52px;
    background-color: rgb(239, 243, 244);
    color: rgb(15, 20, 25);
    margin-bottom: 16px;
}

.premium-comparison-btn:hover {
    background-color: rgb(215, 219, 220);
}

.premium-comparison-terms {
    padding: 0;
}

.premium-comparison-terms p {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: rgb(113, 118, 123);
    margin: 0;
}

.premium-comparison-terms a {
    color: rgb(29, 155, 240);
    text-decoration: none;
}

.premium-comparison-terms a:hover {
    text-decoration: underline;
}

.premium-comparison-terms strong {
    font-weight: 700;
}

/* Responsive pour la section entreprise */
@media (max-width: 768px) {
    .premium-business-section {
        flex-direction: column;
        text-align: center;
    }

    .premium-business-btn {
        width: 100%;
    }
}
/* ========================================
   MONETIZATION MODAL - Style X.com avec gradient vert/money
   ======================================== */

/* Overlay fullscreen avec gradient vert money */
.monetization-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Container principal avec gradient subtil vert/money */
.monetization-modal-container {
    background: radial-gradient(ellipse at center, rgba(5, 20, 15, 1) 0%, rgba(0, 0, 0, 1) 100%);
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Header avec bouton fermer */
.monetization-modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 8px 16px;
    z-index: 100;
    display: flex;
    align-items: center;
    height: 53px;
}

.monetization-modal-close {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #e7e9ea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    padding: 0;
}

.monetization-modal-close:hover {
    background-color: rgba(239, 243, 244, 0.1);
}

.monetization-modal-close svg {
    width: 20px;
    height: 20px;
}

/* Contenu */
.monetization-modal-content {
    padding: 73px 20px 48px 20px;
    max-width: 1095px;
    margin: 0 auto;
}

/* Titre */
.monetization-modal-title {
    font-size: 31px;
    font-weight: 800;
    line-height: 36px;
    text-align: center;
    margin: 0 0 32px 0;
    color: #e7e9ea;
    letter-spacing: -0.6px;
}

/* Section retrait */
.monetization-withdraw-section {
    margin-bottom: 40px;
}

.monetization-total-card {
    background: transparent;
    border: 1px solid rgb(47, 51, 54);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.monetization-total-label {
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    color: rgb(113, 118, 123);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.monetization-total-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.monetization-currency {
    font-size: 31px;
    font-weight: 700;
    line-height: 36px;
    color: rgb(0, 186, 124);
}

.monetization-amount {
    font-size: 56px;
    font-weight: 800;
    line-height: 64px;
    color: rgb(0, 186, 124);
    letter-spacing: -1.5px;
}

.monetization-withdraw-btn {
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    border-radius: 9999px;
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 52px;
    background-color: rgb(0, 186, 124);
    color: rgb(255, 255, 255);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.monetization-withdraw-btn:hover {
    background-color: rgb(0, 167, 111);
}

.monetization-withdraw-btn:active {
    transform: scale(0.98);
}

.monetization-withdraw-info {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: rgb(113, 118, 123);
    margin: 12px 0 0 0;
}

/* Commission wrapper */
.monetization-commission-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

/* Commission info */
.monetization-commission-info {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 12px 16px;
    background: rgba(249, 24, 128, 0.1);
    border: 1px solid rgba(249, 24, 128, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: rgb(113, 118, 123);
    transition: opacity 0.2s;
}

.monetization-commission-info svg {
    color: rgb(249, 24, 128);
}

.monetization-commission-info strong {
    color: rgb(249, 24, 128);
    font-weight: 700;
}

/* Premium boost info */
.monetization-premium-boost {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 12px 16px;
    background: rgba(29, 155, 240, 0.1);
    border: 1px solid rgba(29, 155, 240, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: rgb(113, 118, 123);
    transition: opacity 0.2s;
}

.monetization-premium-boost svg {
    color: rgb(29, 155, 240);
}

.monetization-premium-boost strong {
    color: rgb(29, 155, 240);
    font-weight: 700;
}

/* Stats Grid */
.monetization-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .monetization-stats-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Stat Card */
.monetization-stat-card {
    background: transparent;
    border: 1px solid rgb(47, 51, 54);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s;
}

.monetization-stat-card:hover {
    background: rgba(231, 233, 234, 0.03);
    border-color: rgb(47, 51, 54);
}

.monetization-stat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.monetization-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monetization-icon-subscriptions {
    background: rgba(201, 54, 204, 0.1);
    color: rgb(201, 54, 204);
}

.monetization-icon-videos {
    background: rgba(249, 24, 128, 0.1);
    color: rgb(249, 24, 128);
}

.monetization-icon-likes {
    background: rgba(0, 186, 124, 0.1);
    color: rgb(0, 186, 124);
}

.monetization-stat-header h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
    color: #e7e9ea;
    margin: 0;
}

.monetization-stat-value {
    font-size: 40px;
    font-weight: 800;
    line-height: 44px;
    color: #e7e9ea;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.monetization-stat-subtext {
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    color: rgb(113, 118, 123);
    margin-bottom: 16px;
}

.monetization-stat-earnings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 186, 124, 0.05);
    border: 1px solid rgba(0, 186, 124, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
}

.monetization-earnings-label {
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    color: #e7e9ea;
}

.monetization-earnings-value {
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
    color: rgb(0, 186, 124);
}

.monetization-stat-detail {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: rgb(113, 118, 123);
    text-align: center;
}

/* Section historique */
.monetization-history-section {
    max-width: 800px;
    margin: 0 auto;
}

.monetization-history-section h2 {
    font-size: 23px;
    font-weight: 800;
    line-height: 28px;
    color: #e7e9ea;
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

.monetization-history-card {
    background: transparent;
    border: 1px solid rgb(47, 51, 54);
    border-radius: 16px;
    padding: 24px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

/* Custom scrollbar pour l'historique */
.monetization-history-card::-webkit-scrollbar {
    width: 8px;
}

.monetization-history-card::-webkit-scrollbar-track {
    background: rgb(22, 24, 28);
    border-radius: 4px;
}

.monetization-history-card::-webkit-scrollbar-thumb {
    background: rgb(47, 51, 54);
    border-radius: 4px;
}

.monetization-history-card::-webkit-scrollbar-thumb:hover {
    background: rgb(83, 100, 113);
}

.monetization-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    gap: 16px;
}

.monetization-history-empty p {
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    color: rgb(113, 118, 123);
    margin: 0;
}

.monetization-payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgb(47, 51, 54);
}

.monetization-payment-item:last-child {
    border-bottom: none;
}

.monetization-payment-date {
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    color: rgb(113, 118, 123);
}

.monetization-payment-amount {
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
    color: rgb(0, 186, 124);
}

.monetization-payment-status {
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    color: #e7e9ea;
    background: rgba(0, 186, 124, 0.15);
    padding: 4px 12px;
    border-radius: 9999px;
}

/* Animation d'ouverture */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.monetization-modal-overlay[style*="display: flex"] {
    animation: fadeIn 0.2s ease-out;
}

/* Scrollbar styling */
.monetization-modal-container::-webkit-scrollbar {
    width: 6px;
}

.monetization-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.monetization-modal-container::-webkit-scrollbar-thumb {
    background: rgb(0, 186, 124);
    border-radius: 3px;
}

.monetization-modal-container::-webkit-scrollbar-thumb:hover {
    background: rgb(0, 167, 111);
}
/* ==================== MOBILE SIDEBAR SYSTEM ==================== */

/* Bouton hamburger menu (visible seulement sur mobile) */
.x-mobile-menu-btn {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    background-color: var(--x-bg-primary, #000000);
    border: 1px solid var(--x-border, rgb(47, 51, 54));
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-mobile-menu-btn:hover {
    background-color: var(--x-bg-hover, rgba(255, 255, 255, 0.1));
}

.x-mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--x-text-primary, #FFFFFF);
}

/* Overlay sombre derrière la sidebar */
.x-mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(91, 112, 131, 0.4);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.x-mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive: Hamburger menu pour mobile ET GMod (jusqu'à 991px) */
@media (max-width: 991px) {
    /* Afficher le bouton hamburger */
    .x-mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Cacher complètement la sidebar par défaut */
    .leftcol {
        position: fixed !important;
        left: -280px !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 9999 !important;
        background-color: var(--x-bg-primary, #000000) !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* S'assurer que la sidebar prend toute la hauteur */
    .leftcol .sidebar {
        min-height: 100vh !important;
        height: auto !important;
        padding: 8px 12px !important;
    }

    /* Afficher la sidebar quand active */
    .leftcol.mobile-active {
        left: 0 !important;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3) !important;
    }

    /* Réafficher les labels dans la sidebar mobile */
    .leftcol .sidebar li a span {
        display: inline-block !important;
    }

    /* Remettre le bouton Post en pleine largeur */
    .x-post-button {
        width: calc(100% - 24px) !important;
        height: auto !important;
        padding: 16px 32px !important;
    }

    /* Bouton hamburger pour fermer (X) */
    .x-mobile-menu-btn.close-btn {
        position: absolute;
        top: 10px;
        left: 230px;
        background-color: transparent;
        border: none;
    }

    .x-mobile-menu-btn.close-btn svg {
        fill: var(--x-text-primary, #FFFFFF);
    }

    /* Ajuster le contenu principal pour ne pas être sous le bouton hamburger */
    .middlecol {
        padding-top: 60px !important;
    }

    /* Empêcher le scroll du body quand la sidebar est ouverte */
    body.sidebar-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }

    /* Améliorer le rendu de la sidebar */
    .leftcol ul {
        width: 100% !important;
    }

    .leftcol li {
        width: 100% !important;
    }

    .leftcol li a {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Sur grands écrans (> 991px): sidebar normale */
@media (min-width: 992px) {
    .x-mobile-menu-btn {
        display: none !important;
    }

    .x-mobile-sidebar-overlay {
        display: none !important;
    }

    .leftcol {
        left: auto !important;
        width: 275px !important;
        min-height: 100vh !important;
    }

    .leftcol .sidebar li a span {
        display: inline-block !important;
    }

    .x-post-button {
        width: auto !important;
        height: auto !important;
        padding: 16px 32px !important;
        font-size: 15px !important;
    }
}
/* ==================== RIGHT SIDEBAR MODAL SYSTEM (GMod) ==================== */

/* Bouton pour ouvrir la sidebar droite (visible entre 751px et 991px) */
.x-right-sidebar-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: var(--x-blue, #1d9bf0);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}

.x-right-sidebar-btn:hover {
    background-color: var(--x-blue-hover, #1a8cd8);
    transform: scale(1.05);
}

.x-right-sidebar-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Overlay sombre derrière la sidebar */
.x-right-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(91, 112, 131, 0.4);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.x-right-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Modal de la sidebar droite */
.x-right-sidebar-modal {
    position: fixed;
    top: 0;
    right: -400px;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    background-color: var(--x-bg-primary, #000000);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    padding: 16px;
}

.x-right-sidebar-modal.active {
    right: 0;
}

/* Header de la modal avec bouton fermer */
.x-right-sidebar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--x-border, rgb(47, 51, 54));
}

.x-right-sidebar-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--x-text-primary, #FFFFFF);
}

.x-right-sidebar-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.x-right-sidebar-close-btn:hover {
    background-color: var(--x-bg-hover, rgba(255, 255, 255, 0.1));
}

.x-right-sidebar-close-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--x-text-primary, #FFFFFF);
}

/* Empêcher le scroll du body quand la sidebar est ouverte */
body.right-sidebar-open {
    overflow: hidden !important;
}

/* Afficher le bouton entre 751px et 991px (GMod) */
@media (min-width: 751px) and (max-width: 991px) {
    .x-right-sidebar-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* Cacher le bouton sur grands écrans */
@media (min-width: 992px) {
    .x-right-sidebar-btn {
        display: none !important;
    }
}
/* ============================================
   X-STYLE MEDIA LIGHTBOX
   Style inspiré de X.com pour l'affichage
   d'images/vidéos en plein écran
   ============================================ */

/* Overlay principal */
.x-lightbox-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.x-lightbox-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Container du média */
.x-lightbox-media-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}

/* Image dans la lightbox */
.x-lightbox-media-container img {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    user-select: none;
    -webkit-user-drag: none;
}

/* Vidéo dans la lightbox */
.x-lightbox-media-container video {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

/* Bouton de fermeture */
.x-lightbox-close {
    position: fixed !important;
    top: 16px !important;
    left: 16px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px);
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2147483647 !important;
    transition: background-color 0.2s ease;
    padding: 0 !important;
}

.x-lightbox-close:hover {
    background-color: rgba(60, 60, 60, 0.9) !important;
}

.x-lightbox-close svg {
    width: 20px !important;
    height: 20px !important;
    fill: #fff !important;
}

/* Boutons de navigation (précédent/suivant) */
.x-lightbox-nav {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px);
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2147483647 !important;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    padding: 0 !important;
}

.x-lightbox-nav:hover {
    background-color: rgba(60, 60, 60, 0.9) !important;
}

.x-lightbox-nav.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.x-lightbox-nav svg {
    width: 20px !important;
    height: 20px !important;
    fill: #fff !important;
}

.x-lightbox-prev {
    left: 16px !important;
}

.x-lightbox-next {
    right: 16px !important;
}

/* Actions bar en bas */
.x-lightbox-actions {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    justify-content: center;
    gap: 48px;
    z-index: 2147483647 !important;
}

.x-lightbox-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.x-lightbox-action:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.x-lightbox-action svg {
    width: 18.75px;
    height: 18.75px;
    fill: currentColor;
}

.x-lightbox-action span {
    font-size: 13px;
    font-weight: 400;
}

/* Counter d'images (1/5) */
.x-lightbox-counter {
    position: fixed !important;
    top: 16px !important;
    left: 50% !important;
    transform: translateX(-50%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    z-index: 2147483647 !important;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4px 12px;
    border-radius: 16px;
}

/* Rendre les images du post cliquables */
.x-post-media img,
.x-quoted-post-media img {
    cursor: pointer !important;
    transition: filter 0.15s ease;
}

.x-post-media img:hover,
.x-quoted-post-media img:hover {
    filter: brightness(0.92);
}

/* Animation de zoom à l'ouverture */
@keyframes x-lightbox-zoom-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.x-lightbox-overlay.active .x-lightbox-media-container {
    animation: x-lightbox-zoom-in 0.2s ease forwards;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .x-lightbox-close {
        top: 8px !important;
        left: 8px !important;
        width: 32px !important;
        height: 32px !important;
    }

    .x-lightbox-nav {
        width: 36px !important;
        height: 36px !important;
    }

    .x-lightbox-prev {
        left: 8px !important;
    }

    .x-lightbox-next {
        right: 8px !important;
    }

    .x-lightbox-actions {
        gap: 24px;
        padding: 8px 12px;
    }

    .x-lightbox-media-container img,
    .x-lightbox-media-container video {
        max-width: 100vw !important;
        max-height: 85vh !important;
    }
}
/* ============================================
   X-PJAX NAVIGATION TRANSITIONS
   Smooth page transitions without full reload
   ============================================ */

/* Progress bar (X.com style) */
#x-pjax-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: rgb(29, 155, 240);
    z-index: 2147483647;
    pointer-events: none;
    transition: width 0.2s ease-out;
}

#x-pjax-progress.loading {
    width: 70%;
    transition: width 0.8s ease-out;
}

#x-pjax-progress.finishing {
    width: 100%;
    transition: width 0.15s ease-out;
}

#x-pjax-progress.done {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

/* Main content transitions */
#x-middle-col,
.x-feed-content,
#contnet {
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
}

#x-middle-col.pjax-loading,
.x-feed-content.pjax-loading,
#contnet.pjax-loading {
    opacity: 0;
    transform: translateY(5px);
}

#x-middle-col.pjax-loaded,
.x-feed-content.pjax-loaded,
#contnet.pjax-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in animation for new content */
@keyframes pjax-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pjax-animate-in {
    animation: pjax-fade-in 0.2s ease-out forwards;
}

/* Navigation link hover effect - preloading indicator */
a[data-pjax="true"] {
    position: relative;
}

a[data-pjax="true"].pjax-preloading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 4px;
    background: rgb(29, 155, 240);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: pjax-preload-dot 0.6s ease-in-out infinite;
}

@keyframes pjax-preload-dot {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Active navigation state */
.x-nav-item.active > a,
.x-left-sidebar-nav li.active > a {
    font-weight: 700;
}

/* Skeleton loading placeholder (optional) */
.pjax-skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: pjax-skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes pjax-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Body scroll lock during transition */
body.pjax-transitioning {
    overflow: hidden;
}

/* Smooth scrollbar during transitions */
html {
    scroll-behavior: smooth;
}

/* Ensure smooth transitions on mobile */
@media (max-width: 768px) {
    #x-middle-col,
    .x-feed-content,
    #contnet {
        transition: opacity 0.1s ease-in-out;
    }

    .pjax-animate-in {
        animation-duration: 0.15s;
    }
}
