/* ========================================
   X-Theme - Style X.com/Twitter
   Version: 1.0.0
   Author: Claude AI
   ======================================== */

:root {
    --x-bg-primary: #000000;
    --x-bg-secondary: #16181c;
    --x-bg-hover: #1c1f23;
    --x-border: #2f3336;
    --x-text-primary: #e7e9ea;
    --x-text-secondary: #71767b;
    --x-blue: #1d9bf0;
    --x-blue-hover: #1a8cd8;
    --x-blue-dark: #0d5c8f;
    --x-white: #ffffff;
    --x-red: #f4212e;
    --x-green: #00ba7c;
    --x-spacing: 16px;
    --x-radius: 16px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--x-bg-primary) !important;
    color: var(--x-text-primary) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ========================================
   CLS PREVENTION - Prevent Layout Shifts
   ======================================== */
/* Extra container for chat - isolate from layout */
.extra {
    contain: layout style;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
}
.extra > * {
    pointer-events: auto;
}

/* Messages popup - contain to prevent CLS */
.x-messages-popup {
    contain: layout style;
}

/* Reserve space for images to prevent CLS */
.x-post-media img,
.x-post-media video {
    min-height: 100px;
    max-height: 510px;
    width: 100%;
    object-fit: contain;
    background-color: var(--x-bg-secondary);
    aspect-ratio: 16 / 9;
}

/* Profile images - reserve dimensions */
.x-post-avatar img,
.x-profile-avatar img {
    width: 40px;
    height: 40px;
}

/* ========================================
   HEADER STYLE X.com
   ======================================== */
.header-container {
    background-color: transparent !important;
    border-bottom: 1px solid var(--x-border) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    backdrop-filter: blur(12px) !important;
    background-color: rgba(0, 0, 0, 0.65) !important;
}

.navbar {
    background-color: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
    min-height: 53px !important;
}

.navbar-brand {
    padding: 0 !important;
    height: 53px !important;
    display: flex !important;
    align-items: center !important;
}

.navbar-nav > li > a {
    color: var(--x-text-primary) !important;
    transition: background-color 0.2s !important;
    border-radius: 9999px !important;
    margin: 0 4px !important;
}

.navbar-nav > li > a:hover {
    background-color: var(--x-bg-hover) !important;
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */
.content-container {
    background-color: var(--x-bg-primary) !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page-margin {
    max-width: 1265px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.row {
    margin: 0 !important;
    display: flex !important;
    min-height: 100vh !important;
}

/* ========================================
   SIDEBAR GAUCHE (Navigation)
   ======================================== */
.leftcol {
    width: 275px !important;
    padding: 0 !important;
    background-color: transparent !important;
    border-right: 1px solid var(--x-border) !important;
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 100 !important;
}

.leftcol::-webkit-scrollbar {
    display: none;
}

.leftcol .sidebar {
    padding: 8px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.leftcol .sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.leftcol .sidebar li {
    margin-bottom: 4px !important;
}

.leftcol .sidebar li a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    color: var(--x-text-primary) !important;
    text-decoration: none !important;
    border-radius: 9999px !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    transition: all 0.2s !important;
}

.leftcol .sidebar li a:hover {
    background-color: var(--x-bg-hover) !important;
}

.leftcol .sidebar li a i,
.leftcol .sidebar li a svg,
.leftcol .sidebar li a img {
    margin-right: 20px !important;
    font-size: 26px !important;
    width: 26px !important;
    height: 26px !important;
}

.leftcol .sidebar li.active a {
    font-weight: 700 !important;
}

/* Bouton "Post" style X */
.x-post-button {
    background-color: var(--x-white) !important;
    color: black !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 16px 32px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    width: calc(100% - 32px) !important;
    margin: 16px 16px 0 16px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.x-post-button:hover {
    background-color: rgb(215,219,220) !important;
}

/* ========================================
   COLONNE CENTRALE (Feed)
   ======================================== */
.middlecol {
    flex: 1 !important;
    max-width: 598px !important;
    width: 598px !important;
    border-right: 1px solid var(--x-border) !important;
    background-color: transparent !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

/* Header du feed */
.x-feed-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background-color: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--x-border) !important;
    padding: 0 var(--x-spacing) !important;
}

.x-feed-header h2 {
    color: var(--x-text-primary) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    line-height: 24px !important;
}

/* Tabs For You / Following */
.x-feed-tabs {
    display: flex !important;
    border-bottom: 1px solid var(--x-border) !important;
}

.x-feed-tab {
    flex: 1 !important;
    text-align: center !important;
    padding: 16px !important;
    color: var(--x-text-secondary) !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s !important;
    background: transparent !important;
    border: none !important;
}

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

.x-feed-tab.active {
    color: var(--x-text-primary) !important;
    font-weight: 700 !important;
}

.x-feed-tab.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 56px !important;
    height: 4px !important;
    background-color: var(--x-blue) !important;
    border-radius: 9999px !important;
}

/* ========================================
   COMPOSER DE POST (What's happening?)
   ======================================== */
.x-composer {
    padding: var(--x-spacing) !important;
    border-bottom: 1px solid var(--x-border) !important;
    background-color: transparent !important;
}

.x-composer-inner {
    display: flex !important;
    gap: 12px !important;
}

.x-composer-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 9999px !important;
    object-fit: cover !important;
}

.x-composer-content {
    flex: 1 !important;
}

.x-composer-textarea {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    color: var(--x-text-primary) !important;
    font-size: 20px !important;
    resize: none !important;
    outline: none !important;
    font-family: inherit !important;
    line-height: 24px !important;
    margin-top: 20px !important;
    margin-left: 8px !important;
}

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

.x-composer-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.x-composer-icons {
    display: flex !important;
    gap: 4px !important;
}

.x-composer-icon {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    color: var(--x-blue) !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    background: transparent !important;
    border: none !important;
}

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

.x-composer-icon svg,
.x-composer-icon i {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}

.x-post-btn {
    background-color: var(--x-blue) !important;
    color: var(--x-white) !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 8px 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    min-width: 80px !important;
}

.x-post-btn:hover:not(:disabled) {
    background-color: var(--x-blue-hover) !important;
}

.x-post-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ========================================
   POSTS / TWEETS
   ======================================== */
.x-post {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--x-border) !important;
    transition: background-color 0.2s !important;
    cursor: pointer !important;
    background-color: transparent !important;
    position: relative !important;
}

.x-post:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Pinned post indicator */
.x-pinned-indicator {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 4px !important;
    padding-left: 52px !important;
}

.x-pinned-indicator .css-175oi2r {
    display: inline-flex !important;
    width: 18.75px !important;
    height: 18.75px !important;
}

.x-pinned-indicator svg {
    width: 18.75px !important;
    height: 18.75px !important;
    fill: var(--x-text-secondary) !important;
}

.x-pinned-text {
    color: var(--x-text-secondary) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.x-repost-indicator {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 4px !important;
    padding-left: 52px !important;
}

.x-repost-indicator .css-175oi2r {
    display: inline-flex !important;
    width: 18.75px !important;
    height: 18.75px !important;
}

.x-repost-indicator svg {
    width: 18.75px !important;
    height: 18.75px !important;
    fill: rgb(113, 118, 123) !important;
}

.x-repost-text {
    color: rgb(113, 118, 123) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.x-repost-text a:hover {
    text-decoration: underline !important;
}

.x-post-inner {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
}

.x-post-avatar {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    margin-right: 0 !important;
}

.x-post-avatar a {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
}

.x-post-avatar img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.x-post-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.x-post-header {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    margin-bottom: 2px !important;
    flex-wrap: nowrap !important;
}

.x-post-user-info {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    flex: 1 !important;
}

.x-post-name {
    color: #e7e9ea !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 20px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.x-post-name:hover {
    text-decoration: underline !important;
}

.x-post-verified {
    display: inline-block !important;
    flex-shrink: 0 !important;
    margin-left: 2px !important;
    margin-right: 2px !important;
    vertical-align: text-bottom !important;
    position: relative !important;
    top: 3px !important;
}

.x-post-username {
    color: #71767b !important;
    font-size: 15px !important;
    line-height: 20px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-weight: 400 !important;
}

.x-post-username:hover {
    text-decoration: underline !important;
}

.x-post-dot {
    color: #71767b !important;
    font-size: 15px !important;
    line-height: 20px !important;
    margin: 0 2px !important;
    font-weight: 400 !important;
}

.x-post-time {
    color: #71767b !important;
    font-size: 15px !important;
    line-height: 20px !important;
    white-space: nowrap !important;
    font-weight: 400 !important;
}

.x-post-time:hover {
    text-decoration: underline !important;
}

.x-post-menu {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.x-post-menu-btn {
    width: 34.75px !important;
    height: 34.75px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    color: var(--x-text-secondary) !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.x-post-menu-btn:hover {
    background-color: rgba(29, 155, 240, 0.1) !important;
    color: var(--x-blue) !important;
    text-decoration: none !important;
}

/* Dropdown menu style X */
.x-post-dropdown {
    background-color: var(--x-bg-primary) !important;
    border: none !important;
    border-radius: 4px !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: 200px !important;
    padding: 12px 0 !important;
    margin-top: 4px !important;
    z-index: 1000 !important;
}

.x-post-dropdown li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.x-post-dropdown li hr {
    border: 0 !important;
    border-top: 1px solid var(--x-border) !important;
    margin: 4px 0 !important;
}

.x-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    text-decoration: none !important;
}

.x-dropdown-item:hover {
    background-color: var(--x-bg-hover) !important;
    text-decoration: none !important;
}

.x-dropdown-item svg {
    fill: currentColor !important;
    flex-shrink: 0 !important;
}

.x-post-text {
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
    line-height: 20px !important;
    margin-bottom: 12px !important;
    word-wrap: break-word !important;
    text-indent: 0 !important;
    white-space: normal !important;
}

.x-post-text p {
    text-indent: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
}

/* Force no leading spaces */
.x-post-text::first-line,
.x-post-text p::first-line {
    text-indent: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.x-post-show-more {
    color: rgb(29, 155, 240) !important;
    font-size: 15px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    display: inline-block !important;
    margin-top: 4px !important;
}

.x-post-show-more:hover {
    text-decoration: underline !important;
}

.x-post-media {
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
}

.x-post-media img,
.x-post-media video {
    width: 100% !important;
    display: block !important;
    max-height: 510px !important;
    object-fit: cover !important;
}

.x-post-actions {
    display: flex !important;
    justify-content: space-between !important;
    max-width: 425px !important;
    margin-top: 8px !important;
}

.x-post-action {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--x-text-secondary) !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.x-post-action-icon {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    transition: all 0.2s !important;
}

.x-post-action.reply:hover .x-post-action-icon {
    background-color: rgba(29, 155, 240, 0.1) !important;
    color: var(--x-blue) !important;
}

.x-post-action.repost:hover .x-post-action-icon {
    background-color: rgba(0, 186, 124, 0.1) !important;
    color: var(--x-green) !important;
}

.x-post-action.like:hover .x-post-action-icon {
    background-color: rgba(249, 24, 128, 0.1) !important;
    color: #f91880 !important;
}

.x-post-action.share:hover .x-post-action-icon {
    background-color: rgba(29, 155, 240, 0.1) !important;
    color: var(--x-blue) !important;
}

.x-post-action:hover {
    color: inherit !important;
}

/* ========================================
   SIDEBAR DROITE (Trends)
   ======================================== */
.col-md-3 {
    width: 350px !important;
    padding: 0 16px !important;
    background-color: transparent !important;
}

.x-search-box {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    padding: 8px 0 !important;
    background-color: var(--x-bg-primary) !important;
    margin-bottom: 16px !important;
}

.x-search-input-wrapper {
    position: relative !important;
    background-color: rgb(32, 35, 39) !important;
    border: none !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    transition: all 0.2s !important;
}

.x-search-input-wrapper:focus-within {
    outline: 1px solid rgb(29, 155, 240) !important;
    background-color: rgb(0, 0, 0) !important;
}

.x-search-input-wrapper:focus-within .x-search-icon {
    color: rgb(29, 155, 240) !important;
}

.x-search-icon {
    color: rgb(113, 118, 123) !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    transition: color 0.2s !important;
}

.x-search-input {
    background: transparent !important;
    border: none !important;
    color: rgb(231, 233, 234) !important;
    font-size: 15px !important;
    line-height: 20px !important;
    outline: none !important;
    width: 100% !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.x-search-input::placeholder {
    color: rgb(113, 118, 123) !important;
}

.x-widget {
    background-color: var(--x-bg-secondary) !important;
    border-radius: var(--x-radius) !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
}

.x-widget-header {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--x-border) !important;
}

.x-widget-title {
    color: var(--x-text-primary) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.x-widget-item {
    padding: 12px 16px !important;
    transition: background-color 0.2s !important;
    cursor: pointer !important;
    border-bottom: 1px solid var(--x-border) !important;
}

.x-widget-item:last-child {
    border-bottom: none !important;
}

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

.x-trend-category {
    color: var(--x-text-secondary) !important;
    font-size: 13px !important;
}

.x-trend-name {
    color: var(--x-text-primary) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    margin: 2px 0 !important;
}

.x-trend-posts {
    color: var(--x-text-secondary) !important;
    font-size: 13px !important;
}

.x-widget-footer {
    padding: 16px !important;
    color: var(--x-blue) !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

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

/* ========================================
   SCROLLBAR PERSONNALISÉE
   ======================================== */
::-webkit-scrollbar {
    width: 6px !important;
}

::-webkit-scrollbar-track {
    background: var(--x-bg-primary) !important;
}

::-webkit-scrollbar-thumb {
    background: var(--x-text-secondary) !important;
    border-radius: 3px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--x-text-primary) !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Force right sidebar to show above 750px (override Bootstrap) */
@media (min-width: 751px) {
    .col-md-3 {
        display: block !important;
    }
}

@media (max-width: 750px) {
    .col-md-3 {
        display: none !important;
    }

    .middlecol {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .leftcol {
        width: 80px !important;
    }

    .leftcol .sidebar li a span {
        display: none !important;
    }

    .x-post-button {
        width: 50px !important;
        height: 50px !important;
        padding: 0 !important;
        border-radius: 9999px !important;
        font-size: 24px !important;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.x-post {
    animation: fadeIn 0.3s ease-in-out !important;
}

/* ========================================
   UTILITAIRES
   ======================================== */
.x-divider {
    height: 1px !important;
    background-color: var(--x-border) !important;
    margin: 0 !important;
}

.x-hidden {
    display: none !important;
}

.x-flex {
    display: flex !important;
}

.x-items-center {
    align-items: center !important;
}

.x-justify-between {
    justify-content: space-between !important;
}

.x-gap-2 {
    gap: 8px !important;
}

.x-gap-3 {
    gap: 12px !important;
}

.x-gap-4 {
    gap: 16px !important;
}

/* ========================================
   OVERRIDES FORCÉS - Écrasement ancien thème
   ======================================== */

/* Forcer le fond noir partout */
body,
html,
.container,
.content-container,
.page-margin {
    background-color: var(--x-bg-primary) !important;
    color: var(--x-text-primary) !important;
}

/* Supprimer les styles cards de l'ancien thème */
.card,
.panel,
.well,
.panel-default,
.user-profile-card {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Forcer le style des posts */
.posts,
.post-container,
.wo_post_body {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--x-border) !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    margin: 0 !important;
}

/* Avatars ronds */
.avatar img,
.user-avatar img,
.post-avatar img,
img[class*="avatar"] {
    border-radius: 9999px !important;
}

/* Texte blanc */
.post-description,
.user-name,
.post-text {
    color: var(--x-text-primary) !important;
}

/* Liens bleus */
a:hover {
    color: var(--x-blue) !important;
}

/* Boutons style X */
.btn-primary,
.btn-main,
.btn-active {
    background-color: var(--x-blue) !important;
    border-color: var(--x-blue) !important;
    color: var(--x-white) !important;
    border-radius: 9999px !important;
}

.btn-default {
    background-color: transparent !important;
    border-color: var(--x-border) !important;
    color: var(--x-text-primary) !important;
    border-radius: 9999px !important;
}

/* Sidebar et widgets */
.sidebar,
.rightcol,
.leftcol-sidebar {
    background-color: transparent !important;
}

.list-group,
.list-group-item {
    background-color: transparent !important;
    border-color: var(--x-border) !important;
    color: var(--x-text-primary) !important;
}

/* Supprimer les box-shadows de l'ancien thème */
* {
    box-shadow: none !important;
}

/* Headers et navigation */
.navbar,
.navbar-default {
    background-color: rgba(0, 0, 0, 0.65) !important;
    border-bottom: 1px solid var(--x-border) !important;
    backdrop-filter: blur(12px) !important;
}

/* Inputs et textareas */
input[type="text"]:not(.x-search-input),
input[type="email"],
input[type="password"],
textarea:not(.x-search-input),
select {
    background-color: #000000 !important;
    border: 1px solid var(--x-border) !important;
    color: var(--x-text-primary) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--x-blue) !important;
    background-color: transparent !important;
    outline: none !important;
}

/* Modals */
.modal-content {
    background-color: var(--x-bg-primary) !important;
    border: 1px solid var(--x-border) !important;
    color: var(--x-text-primary) !important;
}

.modal-header {
    border-bottom: 1px solid var(--x-border) !important;
}

.modal-footer {
    border-top: 1px solid var(--x-border) !important;
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--x-bg-primary) !important;
    border: 1px solid var(--x-border) !important;
}

.dropdown-menu > li > a {
    color: var(--x-text-primary) !important;
}

.dropdown-menu > li > a:hover {
    background-color: var(--x-bg-hover) !important;
}

/* Footer */
footer {
    background-color: transparent !important;
    border-top: 1px solid var(--x-border) !important;
}

/* Alerts */
.alert {
    background-color: var(--x-bg-secondary) !important;
    border: 1px solid var(--x-border) !important;
    color: var(--x-text-primary) !important;
}

/* Tables */
table {
    background-color: transparent !important;
    color: var(--x-text-primary) !important;
}

th, td {
    border-color: var(--x-border) !important;
}

/* Forms */
.form-control {
    background-color: var(--x-bg-secondary) !important;
    border: 1px solid var(--x-border) !important;
    color: var(--x-text-primary) !important;
}

.form-control:focus {
    border-color: var(--x-blue) !important;
    background-color: transparent !important;
}

/* Publisher box (composer) */
.publisher-box,
#publisher-box {
    background-color: transparent !important;
    border: none !important;
}

/* Story content (posts) */
.story-content,
.wo_story {
    background-color: transparent !important;
}

/* User status */
.user-status-home {
    display: none !important;
}

/* Hide elements that don't fit X design */
.home-announcement,
.order-by,
.filterby,
.greetalert {
    display: none !important;
}

/* Post actions style X */
.post-options,
.post-reactions {
    display: flex !important;
    gap: 8px !important;
}

.post-option,
.reaction-btn {
    color: var(--x-text-secondary) !important;
    transition: all 0.2s !important;
}

.post-option:hover,
.reaction-btn:hover {
    color: var(--x-blue) !important;
}

/* Images in posts */
.post-image,
.post-media img {
    border-radius: 16px !important;
}

/* Video player */
.video-container {
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* Comments */
.comment-container {
    background-color: transparent !important;
    border-left: 2px solid var(--x-border) !important;
}

/* Pagination */
.pagination > li > a,
.pagination > li > span {
    background-color: transparent !important;
    border-color: var(--x-border) !important;
    color: var(--x-text-primary) !important;
}

.pagination > .active > a {
    background-color: var(--x-blue) !important;
    border-color: var(--x-blue) !important;
}

/* Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--x-border) !important;
}

.nav-tabs > li > a {
    color: var(--x-text-secondary) !important;
}

.nav-tabs > li.active > a {
    background-color: transparent !important;
    border-color: var(--x-border) var(--x-border) transparent !important;
    color: var(--x-text-primary) !important;
}

/* Badges and labels */
.badge,
.label {
    background-color: var(--x-blue) !important;
    color: var(--x-white) !important;
    border-radius: 9999px !important;
}

/* Progress bars */
.progress {
    background-color: var(--x-bg-secondary) !important;
}

.progress-bar {
    background-color: var(--x-blue) !important;
}

/* Tooltips */
.tooltip-inner {
    background-color: var(--x-bg-primary) !important;
    color: var(--x-text-primary) !important;
    border: 1px solid var(--x-border) !important;
}

/* Popovers */
.popover {
    background-color: var(--x-bg-primary) !important;
    border: 1px solid var(--x-border) !important;
}

.popover-title {
    background-color: var(--x-bg-secondary) !important;
    border-bottom: 1px solid var(--x-border) !important;
    color: var(--x-text-primary) !important;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent !important;
    border: 1px solid var(--x-border) !important;
}

/* Wells */
.well {
    background-color: var(--x-bg-secondary) !important;
    border: 1px solid var(--x-border) !important;
}

/* Jumbotron */
.jumbotron {
    background-color: var(--x-bg-secondary) !important;
}

/* Chat */
.message-container,
.chat-container {
    background-color: transparent !important;
    border-color: var(--x-border) !important;
}

/* Notification badge */
.notification-badge,
.badge-notification {
    background-color: var(--x-blue) !important;
    color: var(--x-white) !important;
}

/* Loading spinner */
.spinner,
.loading {
    border-color: var(--x-border) !important;
    border-top-color: var(--x-blue) !important;
}

/* Ensure X-theme elements are always on top */
.x-post,
.x-widget,
.x-composer,
.x-feed-header,
.x-feed-tabs {
    position: relative !important;
}

/* ========================================
   FIX: Cacher la sidebar de l'ancien thème
   ======================================== */

/* Cacher complètement l'ancienne sidebar qui apparaît en bas */
.sidebar-conatnier,
.sidebar-container,
.home.profile-style,
.sidebar-profile-style,
.featured-users,
.sidebar-latest-products,
#sidebar-sticky,
.sidebar-ad,
.list-group.trending,
.list-group.activity-container,
.card.hovercard {
    display: none !important;
}

/* S'assurer que seule notre sidebar X apparaît */
.col-md-3:not(.x-sidebar) {
    display: none !important;
}

/* Marquer notre sidebar comme visible */
.col-md-3 {
    display: block !important;
}

/* Fix pour la structure de page */
.page-margin > .row {
    display: flex !important;
}

.page-margin > .row > .leftcol {
    display: block !important;
}

.page-margin > .row > .middlecol {
    display: block !important;
}

.page-margin > .row > .col-md-3:last-child {
    display: block !important;
}

/* Cacher les éléments WoWonder par défaut qui ne correspondent pas à X */
.wo_user_side_info,
.sidebar-users-may-know-container,
.sidebar-pages-may-know-container,
.sidebar-group-may-know-container,
.invite-user-form,
.pro-me-here {
    display: none !important;
}

/* Cacher les footers multiples */
.second-footer,
.footer-wrapper {
    display: none !important;
}

/* S'assurer que le chat reste visible si activé */
.chat-container {
    display: block !important;
}

/* ========================================
   FORCE POSTS STYLE X.COM - FIX FINAL
   ======================================== */

/* Réinitialiser TOUT le style des posts */
#posts .posts,
#posts .post,
#posts .post-container,
.wo_post_body,
.panel-post,
article {
    all: unset !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--x-border) !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

#posts .posts:hover,
#posts .post:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* Structure du post en flex */
#posts .posts > div,
#posts .post > div,
.post-container > div {
    display: flex !important;
    gap: 12px !important;
}

/* Avatar style X */
#posts img[class*="avatar"],
#posts .post-avatar,
#posts .user-avatar img,
.avatar img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 9999px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Contenu du post */
#posts .post-content,
#posts .wo_post_cont {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Header du post (nom + username) */
#posts .post-header,
#posts .user-name,
.post-user-name {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
}

/* Nom de l'utilisateur */
#posts .post-name,
#posts .user-name a,
.username a {
    color: var(--x-text-primary) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
}

#posts .post-name:hover,
#posts .user-name a:hover {
    text-decoration: underline !important;
}

/* Username @handle */
#posts .post-username,
.time,
.post-time {
    color: var(--x-text-secondary) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

/* Texte du post */
#posts .post-description,
#posts .post-text,
.wo_post_cont p {
    color: var(--x-text-primary) !important;
    font-size: 15px !important;
    line-height: 20px !important;
    margin: 8px 0 12px 0 !important;
    word-wrap: break-word !important;
}

/* Images dans les posts */
#posts .post-image,
#posts img:not([class*="avatar"]):not(.x-quoted-post-avatar img):not(.x-quoted-page-badge img) {
    border-radius: 16px !important;
    width: 100% !important;
    max-height: 510px !important;
    object-fit: cover !important;
    margin: 12px 0 !important;
}

/* Badge carré de page dans le quote preview */
.x-quoted-page-badge {
    display: inline-block !important;
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}

.x-quoted-page-badge img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    object-fit: cover !important;
    display: block !important;
}

/* Exception pour les avatars des posts cités */
.x-quoted-post-avatar img {
    margin: 0 !important;
}

/* Actions du post (like, comment, share) */
#posts .post-options,
#posts .post-reactions,
.wo_post_options {
    display: flex !important;
    justify-content: space-between !important;
    max-width: 425px !important;
    margin-top: 12px !important;
    gap: 8px !important;
}

#posts .post-option,
#posts .reaction-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--x-text-secondary) !important;
    font-size: 13px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
}

#posts .post-option-icon,
.reaction-icon {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    transition: all 0.2s !important;
}

#posts .post-option:hover .post-option-icon {
    background: rgba(29, 155, 240, 0.1) !important;
    color: var(--x-blue) !important;
}

/* Supprimer TOUS les éléments inutiles */
#posts .panel,
#posts .panel-body,
#posts .panel-heading,
#posts .panel-footer,
.post-share-text,
.post-via,
.post-menu,
.dropdown {
    display: none !important;
}

/* Container des posts */
#posts {
    background: transparent !important;
}

/* Timestamp */
.time,
.post-time,
[data-time] {
    color: var(--x-text-secondary) !important;
    font-size: 15px !important;
}

/* Badge vérifié */
.verified-badge,
.verified {
    color: var(--x-blue) !important;
    margin-left: 4px !important;
}

/* Liens dans les posts - SEULEMENT les liens HTTP/HTTPS dans le texte */
#posts .x-post-text a[href^="http"],
#posts .x-post-text a[href^="https"] {
    color: var(--x-blue) !important;
}

#posts .x-post-text a[href^="http"]:hover,
#posts .x-post-text a[href^="https"]:hover {
    text-decoration: underline !important;
}

/* Hashtags */
#posts .hashtag,
#posts .x-post-text a[href*="hashtag"] {
    color: var(--x-blue) !important;
}

/* Mentions dans le texte du post */
#posts .mention,
#posts .x-post-text a[href*="timeline"] {
    color: var(--x-blue) !important;
}

/* ========================================
   COMPOSER STYLE X.COM PARFAIT
   ======================================== */

/* Publisher box = Composer X */
#publisher-box,
.publisher-box {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--x-border) !important;
    padding: 16px !important;
    margin: 0 !important;
}

/* Structure flex pour le composer */
.publisher-box-inner,
#publisher-box > div {
    display: flex !important;
    gap: 12px !important;
}

/* Avatar dans le composer */
.publisher-box .avatar img,
#publisher-box img[class*="avatar"] {
    width: 48px !important;
    height: 48px !important;
    border-radius: 9999px !important;
}

/* Textarea du composer */
.publisher-box textarea,
.publisher-box .postText,
#publisher-box textarea {
    background: transparent !important;
    border: none !important;
    color: var(--x-text-primary) !important;
    font-size: 20px !important;
    resize: none !important;
    outline: none !important;
    width: 100% !important;
    font-family: inherit !important;
    line-height: 24px !important;
    box-shadow: none !important;
}

.publisher-box textarea::placeholder,
#publisher-box textarea::placeholder {
    color: var(--x-text-secondary) !important;
}

/* Boutons du composer */
.publisher-box .post-toolbar,
.publisher-box .publisher-tools-emoji {
    display: flex !important;
    gap: 4px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--x-border) !important;
}

.publisher-box .btn,
.publisher-box button:not(.post-btn) {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    background: transparent !important;
    border: none !important;
    color: var(--x-blue) !important;
    cursor: pointer !important;
}

.publisher-box .btn:hover {
    background: rgba(29, 155, 240, 0.1) !important;
}

/* Bouton Poster */
.publisher-box .post-share,
.publisher-box .post-btn {
    background: var(--x-blue) !important;
    color: var(--x-white) !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 8px 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    min-width: 80px !important;
    height: auto !important;
}

.publisher-box .post-share:hover {
    background: var(--x-blue-hover) !important;
}

/* Cacher les éléments inutiles du publisher */
.publisher-box .form-group,
.publisher-box .panel,
.publisher-box-tabs {
    display: none !important;
}

/* ========================================
   X.COM POST STYLING - PERFECT COPY
======================================== */

.x-post {
    border-bottom: 1px solid var(--x-border);
    padding: 12px 16px;
    transition: background-color 0.2s;
    cursor: pointer;
}

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

.x-post-inner {
    display: flex;
    gap: 12px;
}

.x-post-avatar {
    flex-shrink: 0;
}

.x-post-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: block;
}

.x-post-content {
    flex: 1;
    min-width: 0;
}

.x-post-text {
    color: var(--x-text-primary);
    font-size: 15px;
    line-height: 20px;
    margin-top: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.x-post-media {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
}

.x-post-media img {
    width: 100%;
    display: block;
}

.x-post-media iframe {
    width: 100%;
    height: 315px;
    display: block;
}

.x-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    max-width: 425px;
}

.x-post-action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 9999px;
    color: var(--x-text-secondary);
    font-size: 13px;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

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

.x-post-action svg {
    width: 18.75px;
    height: 18.75px;
}

.x-post-action.liked {
    color: rgb(249, 24, 128);
}

.x-post-action.liked:hover {
    background-color: rgba(249, 24, 128, 0.1);
}

/* Hide all old WoWonder post styling */
#posts .posts,
#posts .post-container,
#posts .panel,
#posts .post-avatar,
#posts .post-description-wrapper,
#posts .avatar-img,
#posts .post-user-info,
#posts .post-description {
    all: unset !important;
}


/* ========================================
   X.COM COMPOSER STYLING
======================================== */

.x-composer {
    border-bottom: 1px solid var(--x-border);
    padding: 16px;
    background: transparent;
}

.x-composer-inner {
    display: flex;
    gap: 12px;
}

.x-composer-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    margin-left: 15px;
    margin-top: 20px;
}

.x-composer-content {
    flex: 1;
    min-width: 0;
}

.x-composer-textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--x-text-primary);
    font-size: 20px;
    line-height: 24px;
    resize: none;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.x-composer-textarea::placeholder {
    color: var(--x-text-secondary);
}

.x-composer-divider {
    height: 1px;
    background-color: var(--x-border);
    margin: 12px 0;
}

.x-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.x-composer-actions-left {
    display: flex;
    align-items: center;
}

.x-composer-action {
    padding: 8px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.x-composer-action:hover {
    background-color: rgba(29, 155, 240, 0.1);
}

.x-composer-button {
    background-color: rgb(239, 243, 244);
    color: rgb(15, 20, 25);
    border: none;
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.x-composer-button:disabled {
    background-color: rgb(239, 243, 244);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hide old publisher box elements */
.publisher-box.x-composer .panel,
.publisher-box.x-composer .panel-white,
.publisher-box.x-composer .post-avatar,
.publisher-box.x-composer #post-textarea,
.publisher-box.x-composer .add-emoticons,
.publisher-box.x-composer .camera-button,
.publisher-box.x-composer .publisher-box-footer {
    all: unset !important;
    display: none !important;
}

/* Image preview styling */
#image-holder {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

#image-holder img {
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid var(--x-border);
}


/* ========================================
   USER MENU (LOGOUT DROPDOWN)
======================================== */

.x-user-menu {
    position: relative !important;
    margin-top: auto !important;
    padding: 12px 0 !important;
}

.x-user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-user-menu-trigger:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

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

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

.x-user-menu .x-user-name {
    color: var(--x-text-primary) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    margin-bottom: 0 !important;
}

.x-user-menu .x-user-username {
    color: var(--x-text-secondary) !important;
    font-size: 15px !important;
    line-height: 20px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.x-user-menu-icon {
    width: 18px;
    height: 18px;
    fill: var(--x-text-primary);
    flex-shrink: 0;
}

/* Dropdown */
.x-user-dropdown {
    position: fixed !important;
    top: auto;
    bottom: 0;
    left: 0;
    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;
    max-width: 320px !important;
    overflow: visible !important;
    display: none !important;
    z-index: 99999 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.2s, visibility 0.2s !important;
}

.x-user-dropdown.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.x-dropdown-item {
    padding: 16px 16px !important;
    color: var(--x-text-primary) !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    transition: background-color 0.2s !important;
    border-bottom: 1px solid rgb(47, 51, 54) !important;
}

.x-dropdown-item:last-child {
    border-bottom: none !important;
}

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

.x-dropdown-item span {
    display: block !important;
}
/* X.com Profile Page Styles */

.x-profile-page {
    background-color: #000000;
    color: #e7e9ea;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Header / Cover */
.x-profile-header {
    background-color: #000000;
}

.x-cover-container {
    width: 100%;
    height: 200px;
    background-color: #333639;
    position: relative;
    overflow: hidden;
}

.x-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Info Container */
.x-profile-info-container {
    padding: 12px 16px 0;
    background-color: #000000;
}

.x-profile-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.x-avatar-container {
    position: relative;
    margin-top: -15%;
}

.x-avatar {
    width: 134px;
    height: 134px;
    border-radius: 50%;
    border: 4px solid #000000;
    background-color: #000000;
    object-fit: cover;
    cursor: pointer;
}

.x-profile-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.x-follow-message-buttons {
    display: flex;
    gap: 8px;
}

.x-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 16px;
    height: 34px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.x-btn-outlined {
    background-color: transparent;
    color: #e7e9ea;
    border: 1px solid #536471;
}

.x-btn-outlined:hover {
    background-color: rgba(239, 243, 244, 0.1);
}

.x-btn-icon {
    background-color: transparent;
    color: #e7e9ea;
    border: 1px solid #536471;
    width: 34px;
    height: 34px;
    padding: 0;
}

.x-btn-icon:hover {
    background-color: rgba(239, 243, 244, 0.1);
}

.x-btn-icon svg {
    fill: currentColor;
}

/* User Details */
.x-user-details {
    padding-bottom: 16px;
}

.x-user-name {
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
    color: #e7e9ea;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
}

.x-verified-badge {
    width: 20px;
    height: 20px;
    fill: #1d9bf0;
    vertical-align: text-bottom;
    margin-left: 2px;
    position: relative;
    top: 3px;
}

.x-user-username {
    font-size: 15px;
    color: #71767b;
    margin-bottom: 12px;
}

.x-user-bio {
    font-size: 15px;
    line-height: 20px;
    color: #e7e9ea;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.x-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.x-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    color: #71767b;
}

.x-meta-item svg {
    fill: #71767b;
}

.x-meta-item a {
    color: #1d9bf0;
    text-decoration: none;
}

.x-meta-item a:hover {
    text-decoration: underline;
}

.x-user-stats {
    display: flex;
    gap: 20px;
}

.x-stat-item {
    display: flex;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}

.x-stat-item:hover .x-stat-value {
    text-decoration: underline;
}

.x-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #e7e9ea;
}

.x-stat-label {
    font-size: 15px;
    color: #71767b;
}

/* Navigation Tabs */
.x-profile-tabs {
    border-bottom: 1px solid #2f3336;
    background-color: #000000;
    position: sticky;
    top: 0;
    z-index: 10;
}

.x-tabs-container {
    display: flex;
}

.x-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #71767b;
    text-decoration: none;
    border-bottom: 4px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.x-tab:hover {
    background-color: rgba(231, 233, 234, 0.1);
}

.x-tab.active {
    color: #e7e9ea;
    font-weight: 700;
    border-bottom-color: #1d9bf0;
}

/* Content Area */
.x-profile-content {
    background-color: #000000;
}

.x-content-wrapper {
    min-height: 400px;
}

.x-posts-container {
    background-color: #000000;
}

.x-no-content {
    padding: 32px 16px;
    text-align: center;
    color: #71767b;
    font-size: 15px;
}

/* Hide WoWonder default elements */
.profile-avatar-changer,
.profile-cover-changer,
.cover-position-form {
    display: none !important;
}

/* Style follow/message buttons from WoWonder */
.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;
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.user-follow-button .btn {
    background-color: #eff3f4 !important;
    color: #0f1419 !important;
}

.user-follow-button .btn:hover {
    background-color: #d7dbdc !important;
}

.user-follow-button .btn.following {
    background-color: transparent !important;
    color: #e7e9ea !important;
    border: 1px solid #536471 !important;
}

.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;
}

.profile-message-btn .btn {
    background-color: transparent !important;
    color: #e7e9ea !important;
    border: 1px solid #536471 !important;
}

.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;
        border-right: none;
    }

    .x-avatar {
        width: 100px;
        height: 100px;
    }

    .x-user-name {
        font-size: 18px;
    }
}

/* ========================================
   MODALS STYLE X.COM
   ======================================== */
.x-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.x-modal-overlay {
    z-index: 99999998 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(91, 112, 131, 0.4) !important;
}

.x-modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999999999 !important;
    
    
    width: 100% !important;
    max-width: 600px !important;
    
    padding: 0 16px !important;
}

.x-modal-content {
    background: #000000 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 0px 15px, rgba(255, 255, 255, 0.15) 0px 0px 3px 1px !important;
}

.x-modal-header {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgb(47, 51, 54) !important;
}

.x-modal-close {
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    margin-right: 20px !important;
}

.x-modal-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.x-modal-close svg {
    fill: rgb(231, 233, 234) !important;
}

.x-modal-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
    margin: 0 !important;
}

.x-modal-body {
    padding: 16px !important;
}

.x-modal-textarea {
    width: 100% !important;
    min-height: 120px !important;
    background: transparent !important;
    border: none !important;
    color: rgb(231, 233, 234) !important;
    font-size: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    resize: vertical !important;
    outline: none !important;
    padding: 0 !important;
}

.x-modal-textarea::placeholder {
    color: rgb(113, 118, 123) !important;
}

.x-modal-footer {
    padding: 12px 16px !important;
    border-top: 1px solid rgb(47, 51, 54) !important;
    display: flex !important;
    justify-content: center !important;
}

.x-modal-button {
    background: rgb(29, 155, 240) !important;
    color: rgb(255, 255, 255) !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 8px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    min-width: 100px !important;
    min-height: 36px !important;
}

.x-modal-button:hover:not(:disabled) {
    background: rgb(26, 140, 216) !important;
}

.x-modal-button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Delete modal specific styles */
.x-delete-modal-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
    margin: 0 0 8px 0 !important;
}

.x-delete-modal-text {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
    line-height: 20px !important;
    margin: 0 !important;
}

.x-delete-modal-button {
    width: 100% !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    min-height: 44px !important;
}

.x-delete-confirm {
    background: rgb(244, 33, 46) !important;
    color: rgb(255, 255, 255) !important;
}

.x-delete-confirm:hover {
    background: rgb(220, 30, 41) !important;
}

.x-delete-cancel {
    background: transparent !important;
    color: rgb(231, 233, 234) !important;
    border: 1px solid rgb(83, 100, 113) !important;
}

.x-delete-cancel:hover {
    background: rgba(231, 233, 234, 0.1) !important;
}

/* ====================================
   X.COM COMMENTS SECTION
   ==================================== */

/* Post reply section */
.x-post-reply-section {
    display: flex !important;
    padding: 16px !important;
    border-bottom: 1px solid rgb(47, 51, 54) !important;
    gap: 12px !important;
    align-items: center !important;
}

.x-reply-avatar {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
}

.x-reply-avatar img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.x-reply-input-wrapper {
    flex: 1 !important;
}

.x-reply-placeholder {
    color: rgb(113, 118, 123) !important;
    font-size: 15px !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 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.x-reply-button:hover {
    background: rgb(26, 140, 216) !important;
}

/* Comments section */
.x-post-comments-section {
    border-top: 1px solid rgb(47, 51, 54) !important;
}

.x-no-comments {
    padding: 32px 16px !important;
    text-align: center !important;
    color: rgb(113, 118, 123) !important;
}

/* Individual comment */
.x-comment {
    display: flex !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgb(47, 51, 54) !important;
    gap: 12px !important;
    transition: background-color 0.2s !important;
}

.x-comment:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.x-comment-avatar {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
}

.x-comment-avatar img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.x-comment-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.x-comment-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.x-comment-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.x-comment-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
}

.x-comment-name {
    color: rgb(231, 233, 234) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    line-height: 20px !important;
}

.x-comment-name:hover {
    text-decoration: underline !important;
}

.x-comment-username {
    color: rgb(113, 118, 123) !important;
    font-size: 15px !important;
    line-height: 20px !important;
}

.x-comment-dot {
    color: rgb(113, 118, 123) !important;
    font-size: 15px !important;
}

.x-comment-time {
    color: rgb(113, 118, 123) !important;
    font-size: 15px !important;
    line-height: 20px !important;
}

.x-comment-time:hover {
    text-decoration: underline !important;
}

/* Comment menu */
.x-comment-menu {
    position: relative !important;
}

.x-comment-menu-btn {
    background: transparent !important;
    border: none !important;
    color: rgb(113, 118, 123) !important;
    cursor: pointer !important;
    padding: 4px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s, color 0.2s !important;
    width: 34.75px !important;
    height: 34.75px !important;
}

.x-comment-menu-btn:hover {
    background: rgba(29, 155, 240, 0.1) !important;
    color: rgb(29, 155, 240) !important;
}

.x-comment-menu-btn svg {
    fill: currentColor !important;
}

.x-comment-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: rgb(0, 0, 0) !important;
    border-radius: 4px !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: 200px !important;
    z-index: 1000 !important;
    overflow: hidden !important;
}

.x-comment-dropdown ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.x-comment-dropdown li {
    padding: 0 !important;
    margin: 0 !important;
}

.x-comment-dropdown .x-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    color: rgb(231, 233, 234) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.x-comment-dropdown .x-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.x-comment-dropdown .x-dropdown-item svg {
    fill: currentColor !important;
    flex-shrink: 0 !important;
}

/* Comment text */
.x-comment-text {
    color: rgb(231, 233, 234) !important;
    font-size: 15px !important;
    line-height: 20px !important;
    word-wrap: break-word !important;
    text-indent: 0 !important;
    padding: 0 !important;
}

.x-comment-text a {
    color: rgb(29, 155, 240) !important;
    text-decoration: none !important;
}

.x-comment-text a:hover {
    text-decoration: underline !important;
}

.x-read-more {
    color: rgb(29, 155, 240) !important;
    font-size: 15px !important;
    text-decoration: none !important;
}

.x-read-more:hover {
    text-decoration: underline !important;
}

/* Comment image */
.x-comment-image {
    margin-top: 12px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgb(47, 51, 54) !important;
}

.x-comment-image img {
    width: 100% !important;
    display: block !important;
    cursor: pointer !important;
}

/* Comment record */
.x-comment-record {
    margin-top: 12px !important;
}

.x-comment-record audio {
    width: 100% !important;
}

/* Comment actions */
.x-comment-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 425px !important;
    margin-top: 12px !important;
}

.x-comment-action {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: rgb(113, 118, 123) !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    font-size: 13px !important;
    min-width: 0 !important;
}

.x-comment-action:hover {
    color: rgb(29, 155, 240) !important;
}

.x-comment-action:hover svg {
    fill: rgb(29, 155, 240) !important;
}

.x-comment-action svg {
    fill: currentColor !important;
    transition: fill 0.2s !important;
}

.x-comment-count {
    font-size: 13px !important;
    color: rgb(113, 118, 123) !important;
    min-width: 16px !important;
}

.x-comment-action svg.x-liked {
    fill: rgb(249, 24, 128) !important;
}

.x-comment-action svg.x-reposted {
    fill: rgb(0, 186, 124) !important;
}

.x-like-action:hover {
    color: rgb(249, 24, 128) !important;
}

.x-like-action:hover svg {
    fill: rgb(249, 24, 128) !important;
}

.x-like-action .x-liked {
    fill: rgb(249, 24, 128) !important;
}

/* Like action when liked - icon AND counter pink */
.x-like-action svg.x-liked {
    fill: rgb(249, 24, 128) !important;
}

.x-like-action svg.x-liked + .x-like-count,
.x-like-action.x-liked-action .x-like-count {
    color: rgb(249, 24, 128) !important;
}

.x-repost-action {
    position: relative !important;
}

/* Repost action when reposted - icon AND counter green */
.x-repost-action svg.x-reposted {
    fill: rgb(0, 186, 124) !important;
}

.x-repost-action svg.x-reposted ~ span,
.x-repost-action.x-reposted-action > span {
    color: rgb(0, 186, 124) !important;
}

.x-repost-action:hover {
    color: rgb(0, 186, 124) !important;
}

.x-repost-action:hover svg {
    fill: rgb(0, 186, 124) !important;
}

.x-repost-dropdown {
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: 8px !important;
    background: rgb(0, 0, 0) !important;
    border-radius: 12px !important;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 0px 15px, rgba(255, 255, 255, 0.15) 0px 0px 3px 1px !important;
    overflow: hidden !important;
    z-index: 1000 !important;
    min-width: 220px !important;
}

.x-repost-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    position: relative !important;
}

.x-repost-item > span {
    color: rgb(231, 233, 234) !important;
    transition: color 0.2s !important;
}

.x-repost-item > svg {
    fill: rgb(231, 233, 234) !important;
    flex-shrink: 0 !important;
    transition: fill 0.2s !important;
}

.x-repost-dropdown .x-repost-item:not(:hover) > span {
    color: rgb(231, 233, 234) !important;
}

.x-repost-dropdown .x-repost-item:not(:hover) > svg {
    fill: rgb(231, 233, 234) !important;
}

.x-repost-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.x-repost-item:hover > span {
    color: rgb(0, 186, 124) !important;
}

.x-repost-item:hover > svg {
    fill: rgb(0, 186, 124) !important;
}

.x-comment-reply-action:hover {
    color: rgb(29, 155, 240) !important;
}

.x-comment-reply-action:hover svg {
    fill: rgb(29, 155, 240) !important;
}

/* Comment edit box */
.x-comment-edit {
    margin-top: 12px !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 16px !important;
}

.x-comment-edit-textarea {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    color: rgb(231, 233, 234) !important;
    font-size: 15px !important;
    line-height: 20px !important;
    resize: vertical !important;
    min-height: 60px !important;
    outline: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.x-comment-edit-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.x-comment-cancel-btn,
.x-comment-save-btn {
    padding: 8px 16px !important;
    border-radius: 9999px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border: none !important;
    transition: background-color 0.2s !important;
}

.x-comment-cancel-btn {
    background: transparent !important;
    color: rgb(231, 233, 234) !important;
    border: 1px solid rgb(83, 100, 113) !important;
}

.x-comment-cancel-btn:hover {
    background: rgba(231, 233, 234, 0.1) !important;
}

.x-comment-save-btn {
    background: rgb(29, 155, 240) !important;
    color: rgb(255, 255, 255) !important;
}

.x-comment-save-btn:hover {
    background: rgb(26, 140, 216) !important;
}

/* Comment reply box */
.x-comment-reply-box {
    margin-top: 12px !important;
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
}

.x-reply-input-container {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.x-reply-textarea {
    width: 100% !important;
    background: transparent !important;
    border: 1px solid rgb(47, 51, 54) !important;
    border-radius: 20px !important;
    color: rgb(231, 233, 234) !important;
    font-size: 15px !important;
    line-height: 20px !important;
    padding: 12px 16px !important;
    resize: vertical !important;
    min-height: 44px !important;
    outline: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.x-reply-textarea:focus {
    border-color: rgb(29, 155, 240) !important;
}

.x-reply-send-btn {
    align-self: flex-end !important;
    background: rgb(29, 155, 240) !important;
    color: rgb(255, 255, 255) !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 8px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.x-reply-send-btn:hover {
    background: rgb(26, 140, 216) !important;
}

/* Comment replies */
.x-comment-replies {
    margin-top: 12px !important;
    padding-left: 12px !important;
    border-left: 2px solid rgb(47, 51, 54) !important;
}

/* Individual reply */
.x-reply {
    display: flex !important;
    gap: 12px !important;
    padding: 12px 0 !important;
}

.x-reply:not(:last-child) {
    border-bottom: 1px solid rgb(47, 51, 54) !important;
}

.x-reply-avatar {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
}

.x-reply-avatar img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.x-reply-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.x-reply-header {
    margin-bottom: 4px !important;
}

.x-reply-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
}

.x-reply-name {
    color: rgb(231, 233, 234) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    line-height: 20px !important;
}

.x-reply-name:hover {
    text-decoration: underline !important;
}

.x-reply-username {
    color: rgb(113, 118, 123) !important;
    font-size: 15px !important;
    line-height: 20px !important;
}

.x-reply-dot {
    color: rgb(113, 118, 123) !important;
    font-size: 15px !important;
}

.x-reply-time {
    color: rgb(113, 118, 123) !important;
    font-size: 15px !important;
    line-height: 20px !important;
}

.x-reply-text {
    color: rgb(231, 233, 234) !important;
    font-size: 15px !important;
    line-height: 20px !important;
    word-wrap: break-word !important;
    white-space: pre-wrap !important;
}

.x-reply-text a {
    color: rgb(29, 155, 240) !important;
    text-decoration: none !important;
}

.x-reply-text a:hover {
    text-decoration: underline !important;
}

.x-reply-image {
    margin-top: 12px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgb(47, 51, 54) !important;
    max-width: 300px !important;
}

.x-reply-image img {
    width: 100% !important;
    display: block !important;
    cursor: pointer !important;
}

.x-reply-actions {
    display: flex !important;
    align-items: center !important;
    gap: 40px !important;
    margin-top: 8px !important;
}

.x-reply-action {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: rgb(113, 118, 123) !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    font-size: 13px !important;
}

.x-reply-action:hover {
    color: rgb(249, 24, 128) !important;
}

.x-reply-action:hover svg {
    fill: rgb(249, 24, 128) !important;
}

.x-reply-action svg {
    fill: currentColor !important;
    transition: fill 0.2s !important;
}

.x-reply-action svg.x-liked {
    fill: rgb(249, 24, 128) !important;
}

/* ========================================
   EXPLORER PAGE STYLES
   ======================================== */
.x-explorer-container {
    background-color: var(--x-bg-primary) !important;
}

.x-explorer-header-sticky {
    position: sticky !important;
    top: 0px !important;
    z-index: 100 !important;
    background-color: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px) !important;
}

.x-explorer-search {
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border-bottom: 1px solid var(--x-border) !important;
}

.x-explorer-settings-btn {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s !important;
    flex-shrink: 0 !important;
}

.x-explorer-settings-btn:hover {
    background-color: rgba(231, 233, 234, 0.1) !important;
}

.x-explorer-tabs {
    display: flex !important;
    gap: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    border-bottom: 1px solid var(--x-border) !important;
}

.x-explorer-tabs::-webkit-scrollbar {
    display: none !important;
}

.x-explorer-tab {
    flex: 1 !important;
    min-width: fit-content !important;
    padding: 16px !important;
    text-align: center !important;
    color: rgb(113, 118, 123) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    position: relative !important;
    border-bottom: 4px solid transparent !important;
}

.x-explorer-tab:hover {
    background-color: rgba(231, 233, 234, 0.1) !important;
}

.x-explorer-tab.active {
    color: rgb(231, 233, 234) !important;
    font-weight: 700 !important;
    border-bottom-color: rgb(29, 155, 240) !important;
}

.x-explorer-search svg {
    flex-shrink: 0 !important;
}

.x-explorer-search input {
    flex: 1 !important;
    background: rgb(32, 35, 39) !important;
    border: 1px solid transparent !important;
    border-radius: 9999px !important;
    padding: 12px 16px !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-explorer-search input:focus {
    border-color: rgb(29, 155, 240) !important;
    background: var(--x-bg-primary) !important;
}

.x-explorer-search input::placeholder {
    color: rgb(113, 118, 123) !important;
}

.x-trending-section {
    background-color: var(--x-bg-primary) !important;
}

.x-section-title {
    padding: 12px 16px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: rgb(231, 233, 234) !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--x-border) !important;
}

.x-trend-item {
    display: block !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--x-border) !important;
    transition: background-color 0.2s !important;
    text-decoration: none !important;
    color: inherit !important;
}

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

.x-trend-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 2px !important;
}

.x-trend-category {
    font-size: 13px !important;
    color: rgb(113, 118, 123) !important;
}

.x-trend-more {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 4px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s !important;
}

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

.x-trend-more:hover svg {
    fill: rgb(29, 155, 240) !important;
}

.x-trend-topic {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
    margin-bottom: 2px !important;
}

.x-trend-posts {
    font-size: 13px !important;
    color: rgb(113, 118, 123) !important;
}

.x-show-more {
    display: block !important;
    padding: 16px !important;
    color: rgb(29, 155, 240) !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: background-color 0.2s !important;
}

.x-show-more:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.x-empty-state {
    padding: 32px 16px !important;
    text-align: center !important;
    color: rgb(113, 118, 123) !important;
}

.x-empty-state p {
    margin: 0 !important;
    font-size: 15px !important;
}

.x-trending-posts-section {
    border-top: 8px solid var(--x-bg-secondary) !important;
}

/* Sidebar Suggestions Widget */
.x-sidebar-widget {
    background-color: var(--x-bg-secondary) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
}

.x-widget-title {
    padding: 12px 16px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: rgb(231, 233, 234) !important;
    margin: 0 !important;
}

.x-user-suggestion {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    gap: 12px !important;
    transition: background-color 0.2s !important;
}

.x-user-suggestion:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.x-suggestion-avatar {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
}

.x-suggestion-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.x-suggestion-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.x-suggestion-name {
    display: flex !important;
    align-items: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
    text-decoration: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.x-suggestion-name:hover {
    text-decoration: underline !important;
}

.x-suggestion-username {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.x-follow-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: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    flex-shrink: 0 !important;
}

.x-follow-btn:hover {
    background-color: rgb(215, 219, 220) !important;
}

.x-footer-links {
    padding: 12px 16px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px 8px !important;
    font-size: 13px !important;
}

.x-footer-links a,
.x-footer-links span {
    color: rgb(113, 118, 123) !important;
    text-decoration: none !important;
}

.x-footer-links a:hover {
    text-decoration: underline !important;
}


/* Subscription Button */
.x-subscribe-btn {
    border-color: rgb(201, 54, 204) !important;
    color: rgb(201, 54, 204) !important;
    transition: background-color 0.2s !important;
}

.x-subscribe-btn:hover {
    background-color: rgba(201, 54, 204, 0.1) !important;
}

.x-subscribe-btn svg {
    color: rgb(201, 54, 204) !important;
    fill: rgb(201, 54, 204) !important;
}

/* Quoted Post Styles */
.x-quoted-post {
    margin-top: 12px !important;
    border: 1px solid rgb(47, 51, 54) !important;
    border-radius: 16px !important;
    padding: 12px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.x-quoted-post:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.x-quoted-post-header {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    text-decoration: none !important;
    margin-bottom: 4px !important;
    max-width: 100% !important;
}

.x-quoted-post-avatar {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

.x-quoted-post-avatar img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.x-quoted-post-user {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
}

.x-quoted-post-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: rgb(231, 233, 234) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-shrink: 1 !important;
}

.x-quoted-post-user .x-verified-badge {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

.x-quoted-post-name:hover {
    text-decoration: underline !important;
}

.x-quoted-post-username {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.x-quoted-post-dot {
    color: rgb(113, 118, 123) !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
}

.x-quoted-post-time {
    font-size: 15px !important;
    color: rgb(113, 118, 123) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.x-quoted-post-text {
    font-size: 15px !important;
    color: rgb(231, 233, 234) !important;
    line-height: 20px !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    text-indent: 0 !important;
    padding: 0 !important;
}

.x-quoted-post-media {
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-top: 8px !important;
    border: 1px solid rgb(47, 51, 54) !important;
}

.x-quoted-post-media img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    max-height: 300px !important;
    object-fit: cover !important;
}

.x-quoted-post-media iframe {
    width: 100% !important;
    height: 200px !important;
    display: block !important;
    border: none !important;
}

/* X-style user hover popover */
.x-user-popover {
    position: absolute;
    width: 320px;
    background: rgba(0, 0, 0, 0.94);
    border: 1px solid rgba(231, 233, 234, 0.12);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(15, 20, 25, 0.45);
    color: rgb(231, 233, 234);
    z-index: 9999;
    pointer-events: auto;
}

.x-user-popover-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.x-user-popover-loading .x-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(231, 233, 234, 0.2);
    border-top-color: rgb(29, 155, 240);
    border-radius: 50%;
    animation: x-user-popover-spin 0.75s linear infinite;
}

@keyframes x-user-popover-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.x-user-popover-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.x-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.x-popover-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.x-popover-actions .btn,
.x-popover-actions button {
    background: rgb(29, 155, 240) !important;
    color: #fff !important;
    border-radius: 9999px !important;
    border: none !important;
    padding: 6px 18px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.x-popover-actions .btn:hover,
.x-popover-actions button:hover {
    background: rgb(24, 140, 216) !important;
}

.x-popover-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.x-popover-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    color: rgb(231, 233, 234);
    text-decoration: none;
}

.x-popover-name:hover {
    text-decoration: underline;
}

.x-popover-verified svg {
    color: rgb(29, 155, 240);
}

.x-popover-username {
    font-size: 15px;
    color: rgb(113, 118, 123);
}

.x-popover-bio {
    font-size: 15px;
    color: rgb(231, 233, 234);
    line-height: 1.4;
}

.x-popover-website a {
    color: rgb(29, 155, 240);
    text-decoration: none;
    font-size: 14px;
}

.x-popover-website a:hover {
    text-decoration: underline;
}

.x-popover-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.x-popover-stats a {
    display: inline-flex;
    gap: 4px;
    color: rgb(113, 118, 123);
    text-decoration: none;
    align-items: baseline;
}

.x-popover-stats a:hover {
    text-decoration: underline;
}

.x-popover-stats .value {
    font-weight: 700;
    color: rgb(231, 233, 234);
}

.x-popover-stats .label {
    color: rgb(113, 118, 123);
}

.x-popover-mutual {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgb(113, 118, 123);
}

.x-popover-mutual-avatars {
    display: flex;
    align-items: center;
}

.x-popover-mutual-avatars img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgb(0, 0, 0);
    margin-left: -10px;
}

.x-popover-mutual-avatars img:first-child {
    margin-left: 0;
}

.x-popover-profile-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(231, 233, 234, 0.2);
    border-radius: 9999px;
    padding: 10px 0;
    font-weight: 700;
    color: rgb(231, 233, 234);
    text-decoration: none;
}

.x-popover-profile-button:hover {
    background: rgba(231, 233, 234, 0.08);
}
.x-popover-actions .btn.btn-success,
.x-popover-actions .btn.btn-secondary,
.x-popover-actions .btn.btn-info,
.x-popover-actions .btn.btn-follow,
.x-popover-actions .btn.btn-default {
    background: transparent !important;
    color: rgb(231, 233, 234) !important;
    border: 1px solid rgba(231, 233, 234, 0.35) !important;
}

.x-popover-actions .btn.btn-success:hover,
.x-popover-actions .btn.btn-secondary:hover,
.x-popover-actions .btn.btn-info:hover,
.x-popover-actions .btn.btn-default:hover {
    background: rgba(231, 233, 234, 0.12) !important;
}

/* Page popover specific styles */
.x-page-popover-card .x-popover-avatar img {
    border-radius: 12px;
}

.x-popover-category {
    color: rgb(29, 155, 240);
    font-size: 14px;
}

.x-popover-website {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgb(113, 118, 123);
}

.x-popover-website svg {
    flex-shrink: 0;
}

.x-popover-stat-item {
    display: inline-flex;
    gap: 4px;
    color: rgb(113, 118, 123);
    align-items: baseline;
}

.x-popover-stat-item .value {
    font-weight: 700;
    color: rgb(231, 233, 234);
}

.x-popover-stat-item .label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: rgb(113, 118, 123);
}

.x-post-name-link,
.x-post-username-link {
    text-decoration: none !important;
    color: inherit !important;
}
.x-post-name-link:hover .x-post-name,
.x-post-username-link:hover .x-post-username {
    text-decoration: underline;
}

/* ========================================
   NEW POSTS BUTTON (X.com style)
   ======================================== */
.posts-count {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 0 !important;
    background: transparent !important;
    border: none !important;
    color: rgb(29, 155, 240) !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-align: center !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.posts-count:not(:empty) {
    display: flex;
}

.posts-count:hover {
    background: rgba(29, 155, 240, 0.1) !important;
    color: rgb(29, 155, 240) !important;
}

.posts-count::before {
    content: none !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* ========================================
   NOTIFICATION BADGE
   ======================================== */
.x-notification-badge {
    position: absolute;
    top: -4px;
    left: 18px;
    background-color: rgb(29, 155, 240);
    color: white;
    border-radius: 9999px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 12px;
    min-width: 16px;
    text-align: center;
    border: 2px solid rgb(0, 0, 0);
    z-index: 1;
}

/* ========================================
   X.COM STYLE FEED LOADING SPINNER
   ======================================== */
.x-feed-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 200px;
}

.x-feed-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid transparent;
    border-top-color: rgb(29, 155, 240);
    border-radius: 50%;
    animation: x-feed-spin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

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

/* Alternative: Multi-arc spinner like X.com */
.x-feed-loading-spinner-multi {
    width: 28px;
    height: 28px;
    position: relative;
}

.x-feed-loading-spinner-multi::before,
.x-feed-loading-spinner-multi::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
}

.x-feed-loading-spinner-multi::before {
    border-top-color: rgb(29, 155, 240);
    animation: x-feed-spin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.x-feed-loading-spinner-multi::after {
    border-bottom-color: rgba(29, 155, 240, 0.3);
    animation: x-feed-spin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite reverse;
    animation-delay: -0.4s;
}

/* Hide old loader styles */
.wo_loading_post,
.wo_loading_post_child {
    display: none !important;
}
