/* Twitter Klonu - Ana Stil Dosyası */

:root {
    --primary-color: #1d9bf0;
    --primary-hover: #1a8cd8;
    --secondary-color: #0f1419;
    --text-color: #0f1419;
    --text-secondary: #536471;
    --border-color: #eff3f4;
    --bg-color: #ffffff;
    --bg-secondary: #f7f9fa;
    --hover-bg: #f7f9fa;
    --error-color: #f4212e;
    --success-color: #00ba7c;
    --warning-color: #ffd400;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global image and media controls */
img, video, iframe {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

img {
    display: block;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Sadece tweet media resimleri sürüklenebilir */
.tweet-image img,
.tweet-media img,
.tweet-gallery img {
    -webkit-user-drag: auto;
    -khtml-user-drag: auto;
    -moz-user-drag: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
    pointer-events: auto;
    cursor: grab;
}

.tweet-image img:active,
.tweet-media img:active,
.tweet-gallery img:active {
    cursor: grabbing;
}

/* Image Modal Styles */
.x-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.x-image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.x-image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10001;
}

.x-image-modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.x-image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Media Modal Styles */
.x-media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.x-media-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.x-media-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: 800px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.x-media-modal-body {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.x-media-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    z-index: 10002;
}

.x-media-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.x-media-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.x-media-modal-prev,
.x-media-modal-next {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    pointer-events: all;
}

.x-media-modal-prev:hover,
.x-media-modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

#media-view-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#media-view-container img,
#media-view-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

html {
    overflow-x: hidden;
    overflow-y: scroll; /* Windows'ta scrollbar sonradan çıkınca layout kaymasını engelle */
    scrollbar-gutter: stable; /* Destekleyen tarayıcılarda scrollbar alanını sabit tut */
    max-width: 100vw;
    background-color: var(--bg-color);
}

/* Twitter/X Font - Chirp (fallback to system fonts) */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100vw;
    width: 100%;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    word-break: break-word;
}

.x-layout-content {
    display: flex;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg-color);
    justify-content: center;
    padding-left: 275px;
    padding-right: 350px;
    box-sizing: border-box;
    position: relative;
}

/* Twitter/X Layout */
.x-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg-color);
}

/* Sol Sidebar */
.x-sidebar-left {
    width: 275px;
    min-width: 275px;
    max-width: 275px;
    border-right: 1px solid var(--border-color);
    padding: 0 12px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    z-index: 100;
    box-sizing: border-box;
    overflow: hidden;
}

.x-logo {
    padding: 12px;
    margin-bottom: 4px;
}

.x-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background-color 0.2s;
    color: var(--text-color);
}

.x-logo a:hover {
    background-color: var(--hover-bg);
}

.x-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: auto;
}

.x-nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 700;
    transition: background-color 0.2s;
    position: relative;
    line-height: 1.2;
    margin-left: 0;
    margin-right: 0;
}

.x-nav-item svg {
    width: 26px;
    height: 26px;
}

.x-nav-item:hover {
    background-color: var(--hover-bg);
}

.x-nav-item.active {
    color: var(--text-color);
    font-weight: 700;
}

.x-nav-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    width: 4px;
    height: calc(100% - 8px);
    top: 4px;
    background-color: var(--primary-color);
    border-radius: 0 2px 2px 0;
}

.x-badge {
    background-color: #ef4444;
    color: white;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.x-tweet-btn {
    width: 90%;
    margin: 16px auto;
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    display: block;
}

#mobile-sidebar-create-btn {
    display: block;
}

.x-tweet-btn:hover {
    background-color: var(--primary-hover);
}

.x-user-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 30px;
    margin-top: auto;
    margin-bottom: 12px;
    transition: background-color 0.2s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.x-auth-buttons {
    margin-top: auto;
    margin-bottom: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.x-login-btn {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.x-login-btn:hover {
    background-color: var(--hover-bg);
}

.x-register-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.x-register-btn:hover {
    background-color: var(--primary-hover);
}

.x-user-menu:hover {
    background-color: var(--hover-bg);
}

.x-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.x-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    max-width: 100%;
}

.x-user-details {
    display: flex;
    flex-direction: column;
}

.x-user-details strong {
    font-size: 15px;
    font-weight: 700;
}

.x-user-details span {
    font-size: 15px;
    color: var(--text-secondary);
}

.x-logout-btn {
    padding: 8px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.x-logout-btn:hover {
    background-color: var(--hover-bg);
}

.x-logout-text {
    display: none; /* Masaüstünde gizli */
}

/* Main Content Area */
.x-main-content {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    border-right: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    width: 600px;
    min-width: 600px;
    max-width: 600px;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Mesajlaşma sayfası için main-content düzenlemesi */
.x-main-content:has(.x-messages-container) {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.x-feed-main {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible;
    word-wrap: break-word;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    contain: layout;
}

.x-feed-main > * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Mesajlaşma sayfası için özel düzenleme */
/* Mesajlaşma sayfası için özel düzenleme - Sadece mesajlar kaydırılabilir */
.x-feed-main:has(.x-messages-container) {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.x-feed-main:has(.x-messages-container) .x-messages-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.x-feed-main:has(.x-messages-container) .x-message-form-container {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10000;
    background-color: var(--bg-color);
}

.x-conversation-page-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-color);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
    .x-conversation-page-header {
        background-color: rgba(0, 0, 0, 0.95);
    }
}

.x-message-form-container {
    flex-shrink: 0;
    background-color: var(--bg-color);
    position: sticky;
    bottom: 0;
    z-index: 10000;
}

/* Sağ Sidebar */
.x-sidebar-right {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    padding: 0 16px;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--bg-color);
    z-index: 50;
    box-sizing: border-box;
}

/* Page Headers */
.x-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

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

.x-page-header-content h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    margin-bottom: 2px;
}

.x-page-header-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

@media (prefers-color-scheme: dark) {
    .x-page-header {
        background-color: rgba(0, 0, 0, 0.95);
    }
}

.x-page-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* Profile Header */
.x-profile-header {
    position: relative;
}

.x-profile-cover {
    width: 100%;
    height: 200px;
    background-color: var(--bg-secondary);
    background-size: cover;
    background-position: center;
}

.x-profile-info {
    padding: 0 16px 0 16px;
    position: relative;
    margin-top: 0;
    display: flex;
    flex-direction: column;
}

.x-profile-avatar {
    position: absolute;
    top: -67px;
    left: 16px;
    width: 134px;
    height: 134px;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    overflow: hidden;
    background-color: var(--bg-color);
    z-index: 10;
}

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

.x-profile-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin-top: -70px;
    margin-bottom: 0;
    padding-top: 0;
    align-items: center;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    position: relative;
    z-index: 5;
}

.x-follow-btn-large {
    padding: 8px 24px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    height: 36px;
}

.x-follow-btn-large:hover {
    background-color: var(--hover-bg);
}

.x-follow-btn-large.following {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.x-edit-profile-btn {
    padding: 8px 24px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.x-edit-profile-btn:hover {
    background-color: var(--hover-bg);
}

.x-message-btn-large {
    padding: 8px 24px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    line-height: 1.2;
    height: 36px;
}

.x-message-btn-large:hover {
    background-color: var(--hover-bg);
}

.x-message-btn-large svg {
    flex-shrink: 0;
}

.x-profile-details {
    padding-bottom: 16px;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0;
    clear: both;
}

.x-profile-details h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.x-profile-username {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.x-profile-bio {
    font-size: 15px;
    color: var(--text-color);
    margin: 0 0 12px 0;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

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

.x-stat-link {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    gap: 4px;
    transition: color 0.2s;
}

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

.x-stat-link strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
}

.x-stat-link span {
    font-size: 15px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Profile Tabs */
.x-profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.x-profile-tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
    z-index: 11;
    pointer-events: auto;
    cursor: pointer;
    display: block;
}

.x-profile-tab:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.x-profile-tab.active {
    color: var(--text-color);
    border-bottom-color: var(--primary-color);
}

/* Notifications */
/* Bildirimler sayfası header ve menü */
.x-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.x-notifications-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.x-notifications-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.x-select-all-btn,
.x-notifications-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.x-select-all-btn:hover,
.x-notifications-menu-btn:hover {
    background-color: var(--hover-bg);
}

.x-notifications-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

.x-notifications-menu-item {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    text-align: left;
    transition: background-color 0.2s;
}

.x-notifications-menu-item:hover {
    background-color: var(--hover-bg);
}

.x-notifications-menu-item svg {
    flex-shrink: 0;
}

.x-notification-checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.x-notification-item {
    position: relative;
}

.x-notifications-list {
    background-color: var(--bg-color);
}

.x-notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.x-notification-item:hover {
    background-color: var(--hover-bg);
}

.x-notification-item.unread {
    background-color: var(--hover-bg);
}

.x-notification-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.x-notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.x-notification-content {
    flex: 1;
}

.x-notification-text {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.x-notification-text strong {
    font-weight: 700;
}

.x-notification-time {
    font-size: 15px;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

.x-notification-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
}

.x-notification-link:hover {
    text-decoration: underline;
}

/* Mesaj bildirimleri için özel stil */
.x-notification-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.x-notification-message-header strong {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-color);
    flex-shrink: 0;
}

.x-notification-message-header .x-notification-time {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    flex-shrink: 0;
}

.x-notification-message-preview {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.8em;
}

/* Mobil için bildirim düzenlemeleri */
@media (max-width: 768px) {
    .x-notification-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .x-notification-avatar {
        width: 40px;
        height: 40px;
    }
    
    .x-notification-icon {
        width: 40px;
        height: 40px;
    }
    
    .x-notification-text {
        font-size: 14px;
    }
    
    .x-notification-message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .x-notification-message-header .x-notification-time {
        font-size: 12px;
    }
    
    .x-notification-message-preview {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: 2.6em;
    }
    
    .x-notification-time {
        font-size: 13px;
    }
    
    .x-notification-link {
        font-size: 14px;
        margin-top: 6px;
    }
}

/* Explore */
.x-search-results {
    background-color: var(--bg-color);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.x-search-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.x-search-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.x-search-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

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

.x-trending-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.x-trending-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.x-trends-list-full {
    display: flex;
    flex-direction: column;
}

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

.x-trend-item-full:hover {
    background-color: var(--hover-bg);
}

.x-trend-item-full:last-child {
    border-bottom: none;
}

/* Settings */
.x-settings-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    gap: 0;
}

.x-settings-sidebar {
    width: 250px;
    min-width: 250px;
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-color);
    flex-shrink: 0;
}

.x-settings-menu {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.x-settings-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.x-settings-menu-item:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.x-settings-menu-item.active {
    background-color: var(--hover-bg);
    border-left-color: var(--primary-color);
    font-weight: 700;
    color: var(--primary-color);
}

.x-settings-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.x-settings-menu-icon svg {
    width: 100%;
    height: 100%;
}

.x-settings-menu-text {
    flex: 1;
}

.x-settings-content {
    flex: 1;
    background-color: var(--bg-color);
    min-height: 400px;
    padding: 20px;
    overflow-x: hidden;
}

.x-settings-page {
    max-width: 700px;
}

.x-settings-page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
}

.x-settings-form {
    max-width: 700px;
}

.x-form-group {
    margin-bottom: 20px;
}

.x-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.x-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background-color: var(--bg-color);
    color: var(--text-color);
    box-sizing: border-box;
}

.x-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.x-username-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.x-username-input-wrapper .x-form-input {
    padding-right: 100px;
}

.x-username-status {
    position: absolute;
    right: 12px;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
    transition: color 0.2s;
}

.x-username-status-available {
    color: #10b981;
}

.x-username-status-unavailable {
    color: #e0245e;
}

.x-username-status-checking {
    color: var(--text-secondary);
    font-weight: 400;
}

.x-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background-color: var(--bg-color);
    color: var(--text-color);
    resize: vertical;
    box-sizing: border-box;
}

.x-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.x-form-help {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.x-form-feedback {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.x-form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.x-form-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.x-char-count {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
}

.x-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.x-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.x-btn-primary:hover {
    opacity: 0.9;
}

.x-btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-color);
}

.x-btn-secondary:hover {
    background-color: var(--hover-bg);
}

.x-btn-danger {
    background-color: #e0245e;
    color: white;
}

.x-btn-danger:hover {
    background-color: #c91e56;
}

.x-settings-avatar-section,
.x-settings-cover-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.x-settings-cover-section:last-child {
    border-bottom: none;
}

.x-settings-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.current-avatar,
.current-cover {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.current-avatar h4,
.current-cover h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.x-settings-account-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.x-settings-danger-zone {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-secondary);
}

.x-settings-danger-zone h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.x-settings-danger-zone p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.x-blocked-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.x-blocked-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-secondary);
}

.x-blocked-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    flex: 1;
}

.x-blocked-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.x-blocked-user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.x-blocked-user-details strong {
    font-size: 15px;
    font-weight: 600;
}

.x-blocked-user-details span {
    font-size: 13px;
    color: var(--text-secondary);
}

.x-settings-form {
    max-width: 700px;
}

.x-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

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

.x-search-box {
    position: relative;
    margin: 12px 0;
    background-color: var(--bg-secondary);
    border-radius: 30px;
    padding: 12px 20px 12px 50px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.x-search-box:focus-within {
    background-color: var(--bg-color);
    border-color: var(--primary-color);
}

.x-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

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

.x-search-input::placeholder {
    color: var(--text-secondary);
}

/* Widgets */
.x-widget {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.x-sidebar-right > .x-widget:first-child {
    margin-top: 20px;
}

.x-widget-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-color);
}

/* Trends */
.x-trends-list {
    display: flex;
    flex-direction: column;
}

.x-trend-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

.x-trend-item:last-child {
    border-bottom: none;
}

.x-trend-item:hover {
    background-color: var(--hover-bg);
}

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

.x-trend-number {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

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

.x-trend-tag {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 4px;
}

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

/* Suggested Users */
.x-suggested-list {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.x-suggested-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
}

.x-suggested-item:last-child {
    border-bottom: none;
}

.x-suggested-item:hover {
    background-color: var(--hover-bg);
}

.x-suggested-user {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    flex: 1;
    min-width: 0;
}

.x-suggested-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.x-suggested-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.x-suggested-name {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.x-suggested-info strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.x-suggested-info span {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.x-follow-btn {
    padding: 6px 12px;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.x-follow-btn:hover {
    background-color: var(--text-secondary);
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: var(--hover-bg);
}

.nav-link.admin-link {
    color: var(--error-color);
}

.nav-user .user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

.x-top-right-menu-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10004;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-top-right-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.x-top-right-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #000000;
    filter: invert(0);
    border-radius: 2px;
}

/* When on dark backgrounds, make the icon white */
.x-top-right-menu-btn.dark-bg span {
    filter: invert(1);
}

.x-notifications-popup {
    position: fixed;
    top: 60px;
    right: 10px;
    width: min(360px, calc(100vw - 20px));
    max-height: 70vh;
    overflow: hidden;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    z-index: 10004;
    display: flex;
    flex-direction: column;
}

body.page-messages .x-top-right-menu-btn,
body.page-messages .x-notifications-popup {
    display: none !important;
}

.x-notifications-popup-list {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.x-notifications-popup-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.x-notifications-popup-item:hover {
    background-color: var(--hover-bg);
}

.x-notifications-popup-item.unread {
    background-color: rgba(29, 155, 240, 0.08);
}

.x-notifications-popup-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-secondary);
    flex-shrink: 0;
}

.x-notifications-popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.x-notifications-popup-avatar-fallback {
    width: 100%;
    height: 100%;
    background-color: var(--border-color);
}

.x-notifications-popup-text {
    min-width: 0;
    flex: 1;
}

.x-notifications-popup-title {
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-color);
}

.x-notifications-popup-empty {
    padding: 14px;
    font-size: 13px;
    color: var(--text-secondary);
}

.x-notifications-popup-all {
    display: block;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--bg-color);
}

.x-notifications-popup-all:hover {
    background-color: var(--hover-bg);
}

.x-reels-feed {
    height: calc(100vh - 56px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.x-reel-item {
    position: relative;
    height: calc(100vh - 56px);
    scroll-snap-align: start;
    background: #000;
}

@media (max-width: 768px) {
    /* Reset explore mobile layout completely */
    body.page-explore {
        height: 100dvh;
        height: 100vh;
        overflow: hidden;
    }

    body.page-explore .x-layout {
        height: 100dvh;
        height: 100vh;
        overflow: hidden;
    }

    body.page-explore .x-layout-content {
        height: 100dvh;
        height: 100vh;
        overflow: hidden;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    body.page-explore .x-main-content {
        height: 100dvh;
        height: 100vh;
        overflow: hidden;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    body.page-explore .x-feed-main {
        height: 100dvh;
        height: 100vh;
        overflow: hidden;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    /* Hide header on mobile for full-screen reels */
    body.page-explore .x-page-header {
        display: none;
    }

    /* Full-screen reels feed */
    body.page-explore .x-reels-feed {
        flex: 1;
        height: calc(100dvh - var(--x-mobile-bottom-nav-h, 60px) - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        padding: 0;
        scroll-padding-bottom: calc(var(--x-mobile-bottom-nav-h, 60px) + env(safe-area-inset-bottom, 0px));
    }

    /* Each reel item takes full screen */
    body.page-explore .x-reel-item {
        height: calc(100dvh - var(--x-mobile-bottom-nav-h, 60px) - env(safe-area-inset-bottom, 0px));
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin: 0;
        padding: 0;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }

    /* Add spacer after last item to prevent snap issues */
    body.page-explore .x-reels-feed::after {
        content: '';
        display: block;
        height: calc(var(--x-mobile-bottom-nav-h, 60px) + env(safe-area-inset-bottom, 0px));
        flex-shrink: 0;
    }
}

.x-reel-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.x-reel-image,
.x-reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.x-reel-sound-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.35);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.x-reel-sound-btn .x-reel-sound-icon {
    display: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

.x-reel-sound-btn.is-muted .x-reel-sound-icon-muted {
    display: block;
}

.x-reel-sound-btn:not(.is-muted) .x-reel-sound-icon-unmuted {
    display: block;
}

@media (max-width: 768px) {
    .x-reel-overlay {
        bottom: calc(var(--x-mobile-bottom-nav-h, 60px) + env(safe-area-inset-bottom, 0px) + 14px);
        padding-bottom: 14px;
    }
}

.x-reel-tap {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.x-reel-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
    color: #fff;
}

@media (max-width: 768px) {
    .x-reel-overlay {
        bottom: calc(var(--x-mobile-bottom-nav-h, 60px) + env(safe-area-inset-bottom, 0px) + 8px);
        padding-bottom: 14px;
    }
}

.x-reel-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.x-reel-author-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 4;
}

.x-reel-like-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s;
}

@media (max-width: 768px) {
    .x-reel-like-btn {
        bottom: calc(14px + var(--x-mobile-bottom-nav-h, 60px) + env(safe-area-inset-bottom, 0px) + 8px);
    }
}

/* Hide top-right notifications UI on Explore */
body.page-explore .x-top-right-menu-btn,
body.page-explore .x-notifications-popup {
    display: none !important;
}

/* Hide top-right notifications when messenger widget is open */
.messenger-widget .messenger-chat-panel[style*="display: block"] ~ .x-top-right-menu-btn,
.messenger-widget .messenger-chat-panel:not([style*="display: none"]) ~ .x-top-right-menu-btn,
.messenger-widget .messenger-chat-panel[style*="display: block"] ~ .x-notifications-popup,
.messenger-widget .messenger-chat-panel:not([style*="display: none"]) ~ .x-notifications-popup {
    display: none !important;
}

.x-reel-like-btn:hover {
    transform: scale(1.15);
}

.x-reel-like-btn:active {
    transform: scale(0.95);
}

.x-reel-like-icon {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s, filter 0.2s;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.x-reel-like-btn.liked .x-reel-like-icon {
    color: #ff3040;
    animation: reelLikeHeartbeat 0.6s ease-out;
}

@keyframes reelLikeHeartbeat {
    0% { transform: scale(1); }
    20% { transform: scale(1.4); }
    40% { transform: scale(1); }
    60% { transform: scale(1.3); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.x-reel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.x-reel-author-name {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
}

.x-reel-author-username {
    font-size: 13px;
    opacity: 0.85;
}

.x-reel-caption {
    font-size: 14px;
    line-height: 1.35;
    max-height: 4.2em;
    overflow: hidden;
}

.x-reel-detail-toggle {
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.x-reel-item.expanded .x-reel-overlay {
    background: rgba(0,0,0,0.70);
    max-height: 60vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.x-reel-item.expanded .x-reel-caption {
    max-height: none;
    overflow: visible;
}

@media (max-width: 768px) {
    .x-reel-item.expanded .x-reel-media {
        inset: 0 0 55vh 0;
    }
    .x-reel-item.expanded .x-reel-overlay {
        height: 55vh;
    }
}

/* Butonlar */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--hover-bg);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-icon {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.btn-icon:hover {
    background-color: var(--hover-bg);
}

.btn-icon svg {
    display: block;
}

/* Feed Layout */
.feed-layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 2rem;
    padding: 2rem 0;
}

/* Sidebar */
.sidebar-left,
.sidebar-right {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-widget {
    background-color: var(--bg-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.trending-list,
.suggested-users,
.quick-links {
    list-style: none;
}

.trending-list li,
.suggested-users li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.trending-list li:last-child,
.suggested-users li:last-child {
    border-bottom: none;
}

.trending-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.trend-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 10px;
    transition: background-color 0.2s;
}

.user-item:hover {
    background-color: var(--hover-bg);
}

.user-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.quick-links li {
    padding: 0.5rem 0;
}

.quick-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.quick-links a:hover {
    color: var(--primary-color);
}

/* Tweet Compose */
.tweet-compose {
    background-color: var(--bg-color);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.compose-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobil görünümde gönderi formundaki profil resmi tıklanabilir */
@media (max-width: 768px) {
    #mobile-compose-avatar {
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        transition: transform 0.2s;
    }
    
    #mobile-compose-avatar:active {
        transform: scale(0.95);
    }
}

/* Global img { pointer-events: none; } override: compose avatar her boyutta tıklanabilir olmalı */
#mobile-compose-avatar {
    pointer-events: auto;
}

#tweet-content {
    flex: 1;
    border: none;
    resize: none;
    font-size: 1.1rem;
    min-height: 100px;
    outline: none;
    font-family: inherit;
}

.compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.compose-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.char-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.image-preview {
    margin-top: 1rem;
    display: none;
}

.image-preview img {
    max-width: 100%;
    border-radius: 10px;
}

.video-preview {
    margin-top: 1rem;
    display: none;
}

.video-preview video {
    max-width: 100%;
    border-radius: 10px;
}

/* Tweet List */
.tweet-list {
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
    contain: layout;
}

.tweet-item {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
}

.tweet-item:has(.tweet-menu-dropdown.show) {
    overflow: visible;
    z-index: 1;
}

.tweet-item .tweet-menu {
    overflow: visible;
    position: relative;
    z-index: 10000;
}

.tweet-item .tweet-menu-btn {
    position: relative;
    z-index: 10001;
}

.tweet-item .tweet-menu-dropdown {
    z-index: 99999;
}

.tweet-item:last-child {
    border-bottom: none;
}

.tweet-item:hover {
    background-color: var(--hover-bg);
}

.tweet-avatar {
    flex-shrink: 0;
}

.tweet-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.tweet-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
    position: relative;
}

.tweet-content:has(.tweet-menu-dropdown.show) {
    overflow: visible;
    z-index: 1;
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tweet-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    position: relative;
    z-index: 10001;
    overflow: visible;
}

.tweet-author {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
}

.tweet-author strong {
    font-weight: 700;
    font-size: 15px;
}

.tweet-username {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 15px;
}

.tweet-time {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

/* Tweet Menu */
.tweet-menu {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.tweet-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.tweet-menu-btn:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.tweet-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 99999;
    display: none;
    overflow: hidden;
    pointer-events: auto;
}

.tweet-menu-dropdown.show {
    display: block;
}

.tweet-menu-item {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-size: 15px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.tweet-menu-item:hover {
    background-color: var(--hover-bg);
}

.tweet-menu-item svg {
    flex-shrink: 0;
}

.tweet-menu-item.delete-tweet-btn {
    color: var(--error-color);
}

.tweet-menu-item.delete-tweet-btn:hover {
    background-color: rgba(244, 33, 46, 0.1);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #1d9bf0 0%, #1a8cd8 100%);
    border-radius: 50%;
    color: white;
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(29, 161, 242, 0.3);
    position: relative;
}

.verified-badge::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.tweet-text {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 15px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

.tweet-text a.hashtag,
.tweet-text a.mention {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.tweet-text a.hashtag:hover,
.tweet-text a.mention:hover {
    text-decoration: underline;
}

.tweet-image {
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.tweet-video-wrapper {
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
    position: relative;
}

.tweet-video-wrapper .tweet-video-player {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #000;
    border-radius: 10px;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}

/* Video controls gizle */
.tweet-video-wrapper .tweet-video-player::-webkit-media-controls {
    display: none !important;
}

.tweet-video-wrapper .tweet-video-player::-webkit-media-controls-enclosure {
    display: none !important;
}

.tweet-video-wrapper .tweet-video-player::-webkit-media-controls-panel {
    display: none !important;
}

.tweet-video-wrapper .tweet-video-player::-webkit-media-controls-play-button {
    display: none !important;
}

.tweet-video-wrapper .tweet-video-player::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Ortada play/pause butonu */
.tweet-video-play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: white;
    transition: background 0.2s, opacity 0.3s, visibility 0.3s;
    opacity: 0.8;
    visibility: visible;
}

.tweet-video-play-pause-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.tweet-video-play-pause-btn svg {
    width: 48px;
    height: 48px;
}

/* Ses butonu sağ üstte */
.tweet-video-mute-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: white;
    transition: background 0.2s;
}

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

.tweet-video-mute-btn svg {
    width: 20px;
    height: 20px;
}

/* Video progress bar */
.tweet-video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    z-index: 10;
    pointer-events: none;
}

.tweet-video-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
    transition: height 0.2s;
}

.tweet-video-progress-bar:hover {
    height: 6px;
}

.tweet-video-progress-filled {
    height: 100%;
    background: #1d9bf0;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
    position: relative;
}

.tweet-video-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #1d9bf0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.tweet-video-progress-bar:hover .tweet-video-progress-handle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.tweet-image img {
    max-width: 100%;
    width: 100%;
    max-height: 500px;
    height: auto;
    display: block;
    object-fit: cover;
    box-sizing: border-box;
}

.tweet-actions {
    display: flex;
    gap: 3rem;
    margin-top: 1rem;
    max-width: 100%;
    overflow-x: hidden;
    flex-wrap: wrap;
}

.tweet-action {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 20px;
    transition: all 0.2s;
    text-decoration: none;
}

.tweet-action:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.tweet-action.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
    text-decoration: none !important;
    user-select: none;
}

.tweet-action.disabled:hover {
    background-color: transparent;
    color: var(--text-secondary);
    text-decoration: none !important;
}

.tweet-action.active {
    color: var(--error-color);
}

.tweet-action.active.like-btn {
    color: var(--error-color);
}

.tweet-action svg {
    flex-shrink: 0;
}

/* Tweet Views */
.tweet-views {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
}

.tweet-views svg {
    flex-shrink: 0;
}

/* Modern Comment Form */
.x-comment-form {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.x-comment-form-header {
    display: flex;
    gap: 12px;
}

.x-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.x-comment-form-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.x-comment-textarea {
    width: 100%;
    max-width: 100%;
    min-height: 60px;
    padding: 12px;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
    line-height: 1.5;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

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

.x-comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.x-comment-char-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.x-comment-char-count .char-count {
    font-weight: 400;
}

.x-comment-submit-btn {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.x-comment-submit-btn:hover {
    background-color: var(--primary-hover);
}

.x-comment-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modern Comments Section */
.x-comments-section {
    background-color: var(--bg-color);
}

.x-comments-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.x-comments-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

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

.x-comments-list {
    display: flex;
    flex-direction: column;
}

.x-comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.x-comment-item:hover {
    background-color: var(--hover-bg);
}

.x-comment-item:last-child {
    border-bottom: none;
}

.x-comment-avatar-link {
    flex-shrink: 0;
}

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

.x-comment-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.x-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    min-width: 0;
    flex-wrap: wrap;
}

.x-comment-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.x-comment-menu {
    position: relative;
    display: inline-block;
}

.x-comment-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: background-color 0.2s;
    width: 28px;
    height: 28px;
}

.x-comment-menu-btn:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.x-comment-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    margin-top: 4px;
}

.x-comment-menu-dropdown.show {
    display: block;
}

.x-comment-menu-item {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-size: 15px;
    transition: background-color 0.2s;
}

.x-comment-menu-item:hover {
    background-color: var(--hover-bg);
}

.x-comment-menu-item svg {
    flex-shrink: 0;
}

.x-comment-menu-item.delete-comment-btn {
    color: #f4212e;
}

.x-comment-menu-item.delete-comment-btn:hover {
    background-color: rgba(244, 33, 46, 0.1);
}

.x-comment-author {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    min-width: 0;
    flex-shrink: 1;
}

.x-comment-author strong {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.x-comment-username {
    color: var(--text-secondary);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.x-comment-time {
    color: var(--text-secondary);
    font-size: 15px;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.x-comment-action.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: none !important;
}

.x-comment-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-color);
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

.x-comment-text a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.x-empty-comments {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.x-empty-comments svg {
    margin-bottom: 16px;
}

.x-empty-comments p {
    font-size: 15px;
    margin: 0;
}

/* Comment Actions */
.x-comment-actions {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    padding-top: 8px;
}

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

.x-comment-action:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.x-comment-action.active {
    color: var(--error-color);
}

.x-comment-action svg {
    flex-shrink: 0;
}

/* Comment Replies */
.x-comment-replies {
    margin-top: 12px;
    margin-left: 52px;
    padding-left: 12px;
    border-left: 2px solid var(--border-color);
}

.x-comment-reply {
    margin-bottom: 8px;
}

.x-comment-reply-form {
    margin-top: 12px;
    margin-left: 52px;
    padding: 12px;
    background-color: var(--hover-bg);
    border-radius: 12px;
}

.x-comment-reply-form-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.x-comment-reply-textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
}

.x-comment-reply-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.x-comment-reply-cancel,
.x-comment-reply-submit {
    padding: 6px 16px;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.x-comment-reply-cancel {
    background-color: transparent;
    color: var(--text-secondary);
}

.x-comment-reply-cancel:hover {
    background-color: var(--hover-bg);
}

.x-comment-reply-submit {
    background-color: var(--primary-color);
    color: white;
}

.x-comment-reply-submit:hover {
    background-color: var(--primary-hover);
}

/* Tweet Statistics */
.tweet-statistics {
    background-color: var(--bg-color);
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
}

@media (max-width: 768px) {
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .stat-icon svg {
        width: 28px;
        height: 28px;
    }
}

.stat-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Messages */
.x-messages-list {
    background-color: var(--bg-color);
}

.x-message-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
    position: relative;
}

.x-message-item:hover {
    background-color: var(--hover-bg);
}

.x-message-item.unread {
    background-color: var(--hover-bg);
}

.x-message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

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

.x-message-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    width: 100%;
    flex-wrap: nowrap;
}

.x-message-header strong {
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.x-message-time {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

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

.x-message-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Conversation */
.x-conversation-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-color);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
    .x-conversation-page-header {
        background-color: rgba(0, 0, 0, 0.95);
    }
}

.x-conversation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

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

.x-conversation-info:hover {
    opacity: 0.8;
    cursor: pointer;
}

.x-conversation-avatar-wrapper:hover {
    opacity: 0.8;
    cursor: pointer;
}

.x-conversation-menu {
    position: relative;
    flex-shrink: 0;
}

.x-conversation-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.x-conversation-menu-btn:hover {
    background-color: var(--hover-bg);
}

.x-conversation-messenger-widget-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    z-index: 10006;
    overflow: hidden;
    display: none;
}

.x-conversation-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    display: none;
}

.x-conversation-menu-dropdown.show {
    display: block;
}

.x-conversation-menu-item {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    text-align: left;
    transition: background-color 0.2s;
}

.x-conversation-menu-item:hover {
    background-color: var(--hover-bg);
}

.x-conversation-menu-item svg {
    flex-shrink: 0;
}

.x-conversation-info h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.x-conversation-username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.x-conversation-avatar-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

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

.x-online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border: 2px solid var(--bg-color);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    /* display, visibility ve opacity JavaScript ile kontrol edilecek - !important kaldırıldı */
}

@media (max-width: 768px) {
    .x-online-indicator {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
}

.x-conversation-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.x-conversation-username {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.x-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 15px;
    font-weight: 400;
}

.x-back-btn:hover {
    background-color: var(--hover-bg);
}

.x-back-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.x-back-btn span {
    font-size: 15px;
    font-weight: 400;
}

.x-tweet-detail-header,
.x-settings-header {
    display: flex;
    align-items: center;
}

.x-messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    margin: 0;
    position: relative;
    z-index: 0;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    visibility: visible !important;
    opacity: 1 !important;
}


@media (max-width: 768px) {
    .x-messages-container {
        padding: 12px 16px;
        padding-bottom: calc(140px + var(--x-mobile-bottom-nav-h, 60px) + 20px + env(safe-area-inset-bottom, 0px)) !important; /* Form yüksekliği (~140px) + bottom nav (dinamik) + boşluk (20px) */
        padding-top: 12px !important; /* Header için üst boşluk */
        margin: 0;
        flex: 1;
        min-height: 0;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .x-message-bubble {
        max-width: 85% !important;
        min-width: 100px !important;
        padding: 10px 14px !important;
        font-size: 15px !important;
    }
    
    .x-message-text {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
    
    .x-message-time {
        font-size: 12px !important;
        margin-top: 6px !important;
    }
    
    /* Mesajlar Listesi Mobil Uyumluluk */
    .x-messages-list {
        background-color: var(--bg-color);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .x-message-item {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .x-message-avatar {
        width: 48px !important;
        height: 48px !important;
    }
    
    .x-message-content {
        flex: 1;
        min-width: 0;
    }
    
    .x-message-header {
        flex-wrap: nowrap;
        gap: 4px;
        align-items: center;
        width: 100%;
    }
    
    .x-message-header strong {
        font-size: 14px !important;
        flex-shrink: 0;
    }
    
    .x-message-header .x-online-status-text {
        font-size: 12px !important;
        margin-left: 4px !important;
        flex-shrink: 0;
    }
    
    .x-message-time {
        font-size: 11px !important;
        margin-left: auto !important;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .x-message-preview {
        font-size: 14px !important;
        line-height: 1.4;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: 2.8em;
    }
    
    .x-message-badge {
        top: 8px;
        right: 12px;
        font-size: 11px;
        padding: 2px 6px;
        min-width: 18px;
    }
    
    .x-empty-state {
        padding: 60px 20px;
        text-align: center;
    }
    
    .x-empty-state svg {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .x-empty-state p {
        font-size: 15px;
        color: var(--text-secondary);
    }
    
    .x-message-sender-info {
        padding: 0 8px;
        margin-bottom: 6px;
    }
    
    .x-message-sender-info img {
        width: 24px !important;
        height: 24px !important;
    }
    
    .x-message-sender-info a {
        font-size: 14px !important;
    }
    
    .x-message-attachment-img {
        max-width: 250px !important;
        max-height: 250px !important;
    }
    
    .x-message-attachment-video {
        max-width: 250px !important;
        max-height: 250px !important;
    }
}

.x-message-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.x-message-sender-info {
    padding: 0 4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.x-message-swipe-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    z-index: 1;
    justify-content: flex-start;
    overflow: visible;
    touch-action: pan-y;
    margin-bottom: 0;
    min-height: 0;
}

/* Gelen mesajlar için sola hizalama */
.x-message-swipe-wrapper:has(.x-message-bubble.received) {
    justify-content: flex-start;
}

/* Gönderilen mesajlar için sağa hizalama */
.x-message-swipe-wrapper:has(.x-message-bubble.sent) {
    justify-content: flex-end;
}

.x-message-swipe-delete {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background-color: var(--red-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    z-index: 1;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Gelen mesajlar için sil butonu solda */
.x-message-swipe-wrapper:has(.x-message-bubble.received) > .x-message-swipe-delete {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}

/* Gelen mesajlar için swipe durumları */
.x-message-swipe-wrapper:has(.x-message-bubble.received).swiping > .x-message-swipe-delete,
.x-message-swipe-wrapper:has(.x-message-bubble.received).swiped > .x-message-swipe-delete {
    transform: translateX(0);
}

.x-message-swipe-wrapper.swiping .x-message-swipe-delete {
    opacity: 1;
    transform: translateX(0);
}

.x-message-swipe-wrapper.swiped .x-message-swipe-delete {
    opacity: 1;
    transform: translateX(0);
}

.x-message-bubble {
    position: relative;
    max-width: 75%;
    min-width: 80px;
    padding: 8px 12px;
    border-radius: 18px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    transition: transform 0.3s ease;
    z-index: 1;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
    align-items: flex-start;
}

.x-message-swipe-wrapper.swiping .x-message-bubble,
.x-message-swipe-wrapper.swiped .x-message-bubble {
    transform: translateX(-80px);
}

/* Gelen mesajlar için sola kaydırma */
.x-message-swipe-wrapper:has(.x-message-bubble.received).swiping .x-message-bubble,
.x-message-swipe-wrapper:has(.x-message-bubble.received).swiped .x-message-bubble {
    transform: translateX(-80px);
}

/* Gönderilen mesajlar için sağa kaydırma */
.x-message-swipe-wrapper:has(.x-message-bubble.sent).swiping .x-message-bubble,
.x-message-swipe-wrapper:has(.x-message-bubble.sent).swiped .x-message-bubble {
    transform: translateX(80px);
}

.x-message-bubble.sent {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
    margin-right: 0;
    align-self: flex-end;
}

.x-message-bubble.received {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border-bottom-left-radius: 4px;
    margin-right: auto;
    margin-left: 0;
    align-self: flex-start;
}

.x-message-text {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: block;
    overflow: visible;
}

.x-message-bubble.sent .x-message-text a {
    color: rgba(255, 255, 255, 0.9);
}

.x-message-time {
    font-size: 11px;
    opacity: 0.7;
    text-align: right;
    margin: 0;
    padding: 0;
    margin-top: 4px;
    flex-shrink: 0;
    align-self: flex-end;
    line-height: 1;
}

.x-message-bubble.received .x-message-time {
    text-align: left;
    align-self: flex-start;
}

.x-empty-messages {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.x-message-form-container {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: sticky;
    bottom: 0;
    z-index: 10000;
    margin: 0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .x-message-form-container {
        position: fixed !important;
        bottom: calc(var(--x-mobile-bottom-nav-h, 60px) + env(safe-area-inset-bottom, 0px)) !important;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--bg-color);
        border-top: 1px solid var(--border-color);
        padding: 12px 16px;
        z-index: 10001;
        box-sizing: border-box;
        transform: translateZ(0);
        will-change: transform;
    }
    .x-message-form-container {
        margin-bottom: 0;
        border-bottom: none;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 10001 !important; /* Bottom nav'dan (1000) yüksek, mesaj yazma formu üstte */
        box-sizing: border-box;
        background-color: var(--bg-color);
        overflow: visible;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
    
    .x-message-form-container .x-message-form,
    .x-message-form-container .x-message-form-inputs,
    .x-message-form-container .x-message-form-actions,
    .x-message-form-container .x-message-form-buttons {
        z-index: inherit;
        position: relative;
    }
    
    .x-message-form-container .x-message-emoji-btn,
    .x-message-form-container .x-message-file-btn,
    .x-message-form-container .x-message-voice-btn,
    .x-message-form-container .x-message-send-btn {
        z-index: 10002 !important;
        position: relative;
    }
    
    /* Mesaj yazma formu içindeki butonların bottom nav'ın üstünde görünmesi için */
    .x-message-form-container .x-message-form-actions,
    .x-message-form-container .x-message-form-buttons {
        z-index: 10002 !important;
        position: relative;
    }
    
    .x-messages-container {
        padding-bottom: calc(140px + var(--x-mobile-bottom-nav-h, 60px) + 20px + env(safe-area-inset-bottom, 0px)) !important; /* Form yüksekliği (~140px) + bottom nav (dinamik) + boşluk (20px) */
    }
    
    .x-message-form {
        gap: 10px;
    }
    
    .x-message-form-inputs {
        gap: 8px;
    }
    
    .x-message-form-actions {
        gap: 10px;
        flex-wrap: nowrap;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
    }
    
    .x-message-form-buttons {
        gap: 10px;
        margin: 0;
        padding: 0;
    }
    
    .x-message-emoji-btn,
    .x-message-file-btn,
    .x-message-voice-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        flex-shrink: 0;
    }
    
    .x-message-emoji-btn svg,
    .x-message-file-btn svg,
    .x-message-voice-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .x-message-send-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        flex-shrink: 0;
    }
    
    .x-message-send-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
}

.x-message-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.x-message-input {
    flex: 1;
    min-height: 40px;
    max-height: 120px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
    line-height: 1.5;
    margin: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .x-message-input {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 16px; /* iOS zoom önleme */
        line-height: 1.5;
    }
}

.x-message-input:focus {
    border-color: var(--primary-color);
}

.x-message-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .x-message-send-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        flex-shrink: 0;
    }
    
    .x-message-send-btn svg {
        width: 20px;
        height: 20px;
    }
}

.x-message-send-btn:hover {
    background-color: var(--primary-hover);
}

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

.x-message-form-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.x-message-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.x-message-form-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.x-message-emoji-btn,
.x-message-file-btn,
.x-message-voice-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .x-message-emoji-btn,
    .x-message-file-btn {
        width: 34px;
        height: 34px;
    }
}

.x-message-emoji-btn:hover,
.x-message-file-btn:hover,
.x-message-voice-btn:hover {
    background-color: var(--hover-bg);
}

.x-message-voice-btn:active {
    background-color: var(--error-color);
    color: white;
}

/* Ses Kaydı Modal */
.x-voice-recording-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: background-color 0.3s;
}

.x-voice-recording-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.x-voice-recording-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    height: 60px;
}

.x-voice-wave {
    width: 6px;
    height: 40px;
    background: white;
    border-radius: 3px;
    animation: voiceWave 1s ease-in-out infinite;
}

.x-voice-wave:nth-child(1) {
    animation-delay: 0s;
}

.x-voice-wave:nth-child(2) {
    animation-delay: 0.2s;
}

.x-voice-wave:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes voiceWave {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 60px;
    }
}

.x-voice-recording-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.x-voice-recording-time {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.x-voice-cancel-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 24px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
}

.x-voice-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* Ses Mesajı Player */
.x-message-audio-player {
    margin: 8px 0;
}

.x-message-attachment-audio {
    width: 100%;
    max-width: 300px;
    height: 40px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .x-message-attachment-audio {
        max-width: 250px;
    }
}

.x-message-attachment-preview {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 8px;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .x-message-attachment-preview {
        padding: 6px 10px;
        margin-bottom: 6px;
    }
}

.x-attachment-preview-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.x-attachment-preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .x-attachment-preview-image {
        max-height: 150px;
    }
}

.x-attachment-preview-file-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.x-attachment-preview-file-wrapper svg {
    flex-shrink: 0;
}

.x-attachment-preview-file-wrapper span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x-attachment-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.x-attachment-remove:hover {
    background-color: var(--hover-bg);
}

.x-message-attachment {
    margin: 0;
    margin-bottom: 4px;
    width: 100%;
    max-width: 100%;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    align-self: stretch;
    flex-shrink: 0;
}

.x-message-attachment-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 350px;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.x-message-attachment-video {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    display: block;
    margin: 0;
    padding: 0;
}

.x-message-attachment-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.x-message-attachment-file:hover {
    background-color: var(--hover-bg);
}

/* Message Menu */
.x-message-menu {
    position: absolute;
    top: 4px;
    right: 4px;
    display: inline-block;
    flex-shrink: 0;
    z-index: 10;
}

/* Duplicate definition removed - using the one above */

.x-message-menu-btn {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, opacity 0.2s;
    opacity: 0;
    width: 24px;
    height: 24px;
    z-index: 5;
}

.x-message-bubble:hover .x-message-menu-btn {
    opacity: 1;
}

.x-message-menu-btn:hover {
    opacity: 1 !important;
}

.x-message-bubble.received .x-message-menu-btn {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.x-message-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.x-message-bubble.received .x-message-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.x-message-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
    display: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    z-index: 100;
    display: none;
    overflow: hidden;
    margin-top: 4px;
}

.x-message-menu-dropdown.show {
    display: block;
}

.x-message-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s;
}

.x-message-menu-item:hover {
    background-color: var(--hover-bg);
}

.x-message-menu-item.delete-message-btn,
.x-message-menu-item.delete-conversation-btn {
    color: var(--red-color);
}

.x-message-menu-item.delete-message-btn:hover,
.x-message-menu-item.delete-conversation-btn:hover {
    background-color: var(--red-hover-bg);
}

.x-message-menu-item.block-user-btn {
    color: var(--red-color);
}

.x-message-menu-item.report-message-btn {
    color: var(--orange-color, #ff9800);
}

/* Long Press Menu */
.x-message-long-press-menu {
    position: fixed;
    z-index: 10000;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    overflow: hidden;
}

.x-message-long-press-menu-content {
    display: flex;
    flex-direction: column;
    padding: 4px;
}

.x-message-long-press-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 15px;
    text-align: left;
    transition: background-color 0.2s;
    width: 100%;
    border-radius: 8px;
}

.x-message-long-press-item:hover {
    background-color: var(--hover-bg);
}

.x-message-long-press-item svg {
    flex-shrink: 0;
}

.x-message-long-press-delete {
    color: var(--red-color);
}

.x-message-long-press-delete:hover {
    background-color: var(--red-hover-bg);
}

/* Report Modal */
.x-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure media modal sits above mobile bottom nav/top-right menus etc. */
#media-view-modal {
    z-index: 10050;
}

#media-view-modal .x-modal-overlay {
    z-index: 10050;
}

#media-view-modal .x-modal-content {
    z-index: 10051;
}

.x-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

#media-viewer-modal .x-modal-overlay {
    background-color: rgba(0, 0, 0, 0.78);
}

.x-modal-content {
    position: relative;
    background-color: var(--bg-color);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Report Modal - Daha küçük boyut */
#report-modal .x-modal-content {
    max-width: 400px;
    width: 85%;
}

.x-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.x-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* Report Modal Header - Daha küçük */
#report-modal .x-modal-header {
    padding: 12px 16px;
}

#report-modal .x-modal-header h2 {
    font-size: 18px;
}

.x-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.x-modal-close:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.x-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Report Modal Body - Daha küçük padding */
#report-modal .x-modal-body {
    padding: 16px 16px 12px 16px;
}

/* Report Modal Form Group - Daha küçük margin */
#report-modal .x-form-group {
    margin-bottom: 12px;
}

#report-modal .x-form-group:last-child {
    margin-bottom: 8px;
}

/* Report Modal Textarea - Daha küçük */
#report-modal .x-form-textarea {
    min-height: 80px;
    padding: 12px;
    font-size: 15px;
}

/* Report Modal Char Count - Daha küçük */
#report-modal .x-char-count {
    margin-top: 6px;
    font-size: 12px;
}

.x-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

/* Report Modal Footer - Daha küçük padding */
#report-modal .x-modal-footer {
    padding: 8px 16px;
    gap: 8px;
}

/* Report Modal Footer Buttons - Daha küçük */
#report-modal .x-modal-footer button {
    padding: 8px 16px;
    font-size: 14px;
}

/* Image View Modal */
#image-view-modal .x-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    background: transparent;
    box-shadow: none;
    width: auto;
}

#image-view-modal .x-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-view-modal .x-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

#image-view-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Enhanced Media View Modal */
#media-view-modal .x-modal-content {
    max-width: 95vw;
    max-height: 95vh;
    padding: 0;
    background: transparent;
    box-shadow: none;
    width: auto;
}

#media-view-modal .x-modal-close:hover,
#media-prev-btn:hover,
#media-next-btn:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1);
}

#media-prev-btn,
#media-next-btn {
    opacity: 0.8;
    transition: all 0.3s ease;
}

#media-prev-btn:hover,
#media-next-btn:hover {
    opacity: 1;
}

#media-prev-btn.disabled,
#media-next-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#media-prev-btn.disabled:hover,
#media-next-btn.disabled:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.7) !important;
}

#media-view-img,
#media-view-video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

#media-thumbnails {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

#media-thumbnails::-webkit-scrollbar {
    height: 6px;
}

#media-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

#media-thumbnails::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#media-thumbnails::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.media-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.media-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.media-thumbnail.active {
    border-color: #1da1f2;
    box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.3);
}

.media-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

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

/* Input Validation Styles */
.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-status {
    position: absolute;
    right: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
}

.input-status-checking {
    color: #ffad1f;
}

.input-status-available {
    color: #17bf63;
}

.input-status-unavailable {
    color: #e0245e;
}

.form-feedback {
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.3;
}

/* Profile page username status styles (already exist) */
.x-username-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.x-username-status {
    position: absolute;
    right: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
}

.x-username-status-checking {
    color: #ffad1f;
}

.x-username-status-available {
    color: #17bf63;
}

.x-username-status-unavailable {
    color: #e0245e;
}

.x-form-feedback {
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.3;
}

.x-form-group {
    margin-bottom: 20px;
}

.x-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.x-report-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.x-report-reason-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.x-report-reason-item:hover {
    background-color: var(--hover-bg);
    border-color: var(--primary-color);
}

.x-report-reason-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.x-report-reason-item span {
    font-size: 15px;
    color: var(--text-color);
    flex: 1;
}

.x-report-reason-item input[type="radio"]:checked + span {
    font-weight: 700;
    color: var(--primary-color);
}

.x-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.x-form-textarea:focus {
    border-color: var(--primary-color);
}

.x-char-count {
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.x-btn-primary,
.x-btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.x-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.x-btn-primary:hover {
    background-color: var(--primary-hover);
}

.x-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.x-btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.x-btn-secondary:hover {
    background-color: var(--hover-bg);
}

/* Admin Panel Styles */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.admin-stat-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
}

.admin-stat-icon {
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.admin-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.admin-stat-label {
    font-size: 15px;
    color: var(--text-secondary);
}

.admin-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.admin-link-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.admin-link-card:hover {
    border-color: var(--primary-color);
    background-color: var(--hover-bg);
}

.admin-link-icon {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.admin-link-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.admin-link-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.admin-search-bar {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.admin-search-form {
    display: flex;
    gap: 8px;
}

.admin-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.admin-search-input:focus {
    border-color: var(--primary-color);
}

.admin-search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.admin-search-btn:hover {
    background-color: var(--primary-hover);
}

.admin-table-container {
    background-color: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background-color: var(--bg-secondary);
}

.admin-table th {
    padding: 16px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    font-size: 15px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr:hover {
    background-color: var(--hover-bg);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-user-link {
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.admin-user-link:hover {
    text-decoration: underline;
}

.admin-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.admin-badge-user {
    background-color: var(--bg-secondary);
    color: var(--text-color);
}

.admin-badge-moderator {
    background-color: #ff9500;
    color: white;
}

.admin-badge-admin {
    background-color: var(--primary-color);
    color: white;
}

.admin-badge-success {
    background-color: #00ba7c;
    color: white;
}

.admin-badge-warning {
    background-color: #ff9500;
    color: white;
}

.admin-badge-error {
    background-color: var(--error-color);
    color: white;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.admin-btn-primary:hover {
    background-color: var(--primary-hover);
}

.admin-btn-danger {
    background-color: var(--error-color);
    color: white;
}

.admin-btn-danger:hover {
    background-color: #d32f2f;
}

/* Takip Edilenler ve Takipçiler Sayfaları */
.users-list {
    background-color: var(--bg-color);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.user-item-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.user-item-card:last-child {
    border-bottom: none;
}

.user-item-card:hover {
    background-color: var(--hover-bg);
}

.user-item-card .user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

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

.user-name {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.user-name strong {
    font-size: 15px;
    font-weight: 700;
}

.user-username {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0.25rem 0;
}

.user-bio {
    color: var(--text-color);
    font-size: 14px;
    margin-top: 0.5rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-actions {
    margin-left: auto;
    flex-shrink: 0;
}

.user-actions .btn {
    white-space: nowrap;
    font-size: 14px;
    padding: 8px 16px;
}

.profile-header {
    padding: 16px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

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

.profile-info p {
    margin: 0;
    font-size: 15px;
    color: var(--text-color);
}

.profile-info strong {
    font-size: 18px;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

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

/* Admin Panel Mobil Uyumluluk */
@media (max-width: 768px) {
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .admin-stat-card {
        padding: 16px;
    }
    
    .admin-stat-value {
        font-size: 24px;
    }
    
    .admin-stat-label {
        font-size: 13px;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .admin-links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .admin-link-card {
        padding: 20px;
    }
    
    .admin-link-card h3 {
        font-size: 16px;
    }
    
    .admin-link-card p {
        font-size: 14px;
    }
    
    .admin-search-bar {
        padding: 12px;
    }
    
    .admin-search-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-search-input {
        width: 100%;
        font-size: 16px;
        padding: 10px 14px;
    }
    
    .admin-search-btn {
        width: 100%;
        height: 44px;
        border-radius: 24px;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-actions button,
    .admin-actions a {
        width: 100%;
        text-align: center;
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .admin-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .x-form-group {
        margin-bottom: 16px;
    }
    
    .x-form-group label {
        font-size: 14px;
    }
    
    .x-form-input,
    .x-form-textarea,
    .x-form-select {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .x-btn-primary,
    .x-btn-secondary {
        font-size: 15px;
        padding: 12px 20px;
        width: 100%;
    }
    
    .x-report-reasons {
        flex-direction: column;
        gap: 8px;
    }
    
    .x-report-reason-item {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Takip Edilenler ve Takipçiler Mobil Uyumluluk */
    .users-list {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .user-item-card {
        padding: 12px 16px;
        gap: 12px;
        flex-wrap: nowrap;
    }
    
    .user-item-card .user-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .user-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .user-name strong {
        font-size: 14px !important;
    }
    
    .user-username {
        font-size: 13px !important;
    }
    
    .user-bio {
        font-size: 13px !important;
        margin-top: 4px;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .user-actions {
        margin-left: auto;
        flex-shrink: 0;
        width: auto;
    }
    
    .user-actions .btn {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 14px;
        min-width: auto;
    }
    
    .profile-header {
        padding: 12px 16px;
    }
    
    .profile-info p {
        font-size: 14px;
    }
    
    .profile-info strong {
        font-size: 16px;
    }
    
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
}

.admin-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 15px;
}

.admin-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.admin-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.x-form-group {
    margin-bottom: 20px;
}

.x-form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 15px;
}

.x-form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.x-form-select:focus {
    border-color: var(--primary-color);
}

.x-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.x-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.current-file {
    margin-bottom: 16px;
    padding: 12px;
    background-color: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.current-file img {
    display: block;
    margin-bottom: 8px;
    border-radius: 8px;
}

.current-file p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.form-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.admin-filters-bar {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    overflow-x: auto;
}

.admin-filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-secondary);
    background-color: transparent;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-filter-btn:hover {
    background-color: var(--hover-bg);
}

.admin-filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.admin-status-select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.admin-status-select:focus {
    border-color: var(--primary-color);
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
}

.auth-logo {
    display: none;
    margin-bottom: 2rem;
    text-align: center;
}

.auth-logo a {
    display: inline-block;
    text-decoration: none;
}

.auth-logo img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

.auth-logo svg {
    display: block;
    margin: 0 auto;
}

.auth-box {
    background-color: var(--bg-color);
    border-radius: 15px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-box h1 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 400;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.form-group-checkbox .checkbox-label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    color: var(--text-color, #14171a);
}

.form-group-checkbox .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.form-group-checkbox .checkbox-label span {
    white-space: nowrap;
    user-select: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

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

.auth-links a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Profile Page */
.profile-header {
    background-color: var(--bg-color);
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cover-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);
}

.profile-info {
    padding: 1.5rem;
    position: relative;
}

.profile-avatar {
    margin-top: -75px;
    margin-bottom: 1rem;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    object-fit: cover;
}

.profile-details h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.profile-username {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-bio {
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.profile-stats a {
    color: var(--text-color);
    text-decoration: none;
}

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

.follow-btn.following {
    background-color: var(--bg-secondary);
    color: var(--text-color);
}

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 300px;
    max-width: 600px;
    width: auto;
    padding: 1rem 1.5rem;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.flash-message .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.flash-close {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    line-height: 1;
}

.flash-close:hover {
    opacity: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Badge */
.badge {
    background-color: var(--error-color);
    color: white;
    border-radius: 10px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Settings */
.settings-page {
    background-color: var(--bg-color);
}

.account-info {
    max-width: 800px;
}

.account-info h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.info-section {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.info-section h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 150px;
}

.info-item span {
    color: var(--text-color);
    text-align: right;
}

.sessions-list {
    margin-top: 1rem;
}

.session-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.session-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.session-info strong {
    color: var(--text-color);
    font-size: 1rem;
}

.session-ip {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: monospace;
}

.session-device {
    color: var(--text-secondary);
    font-size: 0.85rem;
    word-break: break-word;
}

.settings-form {
    max-width: 600px;
}

.current-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Notifications */
.notifications-page {
    background-color: var(--bg-color);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.notifications-list {
    margin-top: 2rem;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: var(--hover-bg);
}

.notification-item:hover {
    background-color: var(--hover-bg);
}

.notification-avatar img,
.notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-content {
    flex: 1;
}

.notification-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

.notification-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Comments */
.comment-form {
    background-color: var(--bg-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
}

.comments-section {
    margin-top: 2rem;
}

.comments-list {
    margin-top: 1rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: none;
}

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

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive */
/* Profile Stats */
.x-profile-stats {
    display: flex;
    gap: 20px;
}

.x-stat-item {
    display: flex;
    flex-direction: column;
}

.x-stat-item strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.x-stat-item span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1300px) {
    .x-sidebar-right {
        display: none;
    }
    
    .x-layout-content {
        padding-right: 0;
    }
    
    .x-main-content {
        margin-right: 0;
    }
}

@media (max-width: 1000px) {
    .x-sidebar-left {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        align-items: center;
        box-sizing: border-box;
    }
    
    .x-layout-content {
        padding-left: 88px;
        padding-right: 0;
    }
    
    .x-main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .x-logo {
        padding: 12px;
    }
    
    .x-nav-item span {
        display: none;
    }
    
    .x-nav-item {
        justify-content: center;
        padding: 12px;
        width: 50px;
        height: 50px;
    }
    
    .x-tweet-btn {
        display: none;
    }

    #mobile-sidebar-create-btn {
        display: none !important;
    }
    
    .x-nav-item.active::before {
        display: none;
    }
    
    
    .x-user-details {
        display: none;
    }
    
    .x-user-menu {
        justify-content: center;
        width: 50px;
        height: 50px;
        padding: 0;
    }
}

.x-status-list {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    list-style: none;
    min-height: 90px;
}

.x-status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-decoration: none;
    color: var(--text-color);
    min-width: 64px;
    max-width: 64px;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.x-status-item:hover {
    opacity: 0.8;
}

.x-status-item.viewed {
    opacity: 0.6;
}

.x-status-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    flex-shrink: 0;
    overflow: hidden;
}

.x-status-item.viewed .x-status-avatar {
    border-color: var(--border-color);
}

.x-status-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.x-status-avatar svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    display: block;
}

.x-status-indicator {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    background: var(--error-color);
    border: 2px solid var(--bg-color);
    border-radius: 50%;
    z-index: 1;
}

.x-status-username {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
    margin: 0;
    padding: 0 2px;
    display: block;
}

.x-status-add {
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.x-status-add:hover {
    border-color: var(--primary-color);
    background: var(--hover-bg);
}

.x-status-add .x-status-avatar {
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
}

/* Footer Links */
.x-footer-links {
    margin-top: 16px;
    padding: 12px 16px;
    border-top: none !important;
    border-bottom: none !important;
}

.x-widget.x-footer-links {
    border-top: none !important;
    border-bottom: none !important;
    padding: 12px 16px;
}

.x-footer-links-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    align-items: center;
    text-align: left;
    padding: 0;
    margin: 0;
}

.x-footer-link {
    color: #536471;
    text-decoration: none !important;
    transition: color 0.2s;
    padding: 4px 0;
    line-height: 1.4;
    font-size: 13px;
    border-top: none !important;
    border-bottom: none !important;
    display: inline-block;
    white-space: nowrap;
}

.x-footer-link:visited {
    color: #536471;
}

.x-footer-link:hover {
    color: #536471;
    text-decoration: underline !important;
    border-top: none !important;
    border-bottom: none !important;
}

.x-footer-link:active {
    color: #536471;
}

.x-footer-link:link {
    color: #536471;
}

/* Messenger Widget */
.messenger-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10005;
    display: block;
}

.messenger-widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10001;
    pointer-events: auto;
}

.messenger-widget-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.messenger-widget-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    pointer-events: none;
}

.messenger-widget-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background-color: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10006;
    animation: slideUp 0.3s ease;
}

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

.messenger-widget-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-color);
}

.messenger-widget-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .messenger-widget {
        bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 16px);
        right: 16px;
        left: auto;
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
    }
    
    .messenger-widget-btn {
        width: 56px;
        height: 56px;
        position: relative;
        z-index: 10001;
    }
    
    /* Chat panel açıkken widget butonunu gizle */
    .messenger-widget .messenger-chat-panel[style*="display: block"] ~ .messenger-widget-btn,
    .messenger-widget .messenger-chat-panel:not([style*="display: none"]) ~ .messenger-widget-btn {
        display: none !important;
    }
    
    .messenger-widget-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .messenger-widget-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        width: 100%;
        max-width: 100vw;
        max-height: calc(100vh - 60px - env(safe-area-inset-bottom, 0px));
        height: calc(100vh - 60px - env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        box-sizing: border-box;
        overflow: hidden;
        z-index: 10001;
    }
    
    .messenger-chat-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - 60px - env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100vh - 60px - env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        z-index: 10003 !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        pointer-events: auto !important;
    }
    
    .messenger-chat-panel[style*="display: flex"],
    .messenger-chat-panel[style*="display:block"],
    .messenger-chat-panel[style*="display: block"] {
        display: flex !important;
        flex-direction: column !important;
        pointer-events: auto !important;
    }
    
    .messenger-chat-panel * {
        pointer-events: auto !important;
    }
    
    .messenger-widget-header {
        padding: 12px 16px;
        flex-shrink: 0;
    }
    
    .messenger-widget-header h3 {
        font-size: 18px;
    }
    
    .messenger-conversation-item {
        padding: 10px 12px;
    }
    
    .messenger-conversation-avatar {
        width: 44px;
        height: 44px;
    }
    
    .messenger-conversation-name {
        font-size: 14px;
    }
    
    .messenger-conversation-preview {
        font-size: 12px;
    }
    
    .messenger-chat-header {
        padding: 10px 12px;
        flex-shrink: 0;
    }
    
    .messenger-chat-avatar {
        width: 36px;
        height: 36px;
    }
    
    .messenger-chat-name {
        font-size: 15px;
    }
    
    .messenger-chat-input-container {
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        flex-shrink: 0;
        border-top: 1px solid var(--border-color);
        background-color: var(--bg-color);
        box-sizing: border-box;
    }
    
    .messenger-chat-input-container textarea {
        font-size: 15px;
    }
    
    .messenger-chat-form-actions {
        gap: 6px;
        justify-content: flex-end;
    }
    
    .messenger-chat-emoji-btn,
    .messenger-chat-file-btn,
    .messenger-chat-voice-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    .messenger-chat-send {
        width: 44px !important;
        height: 44px !important;
    }
    
    .messenger-chat-form-buttons {
        gap: 6px;
    }
    
    .messenger-widget-conversations {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        min-height: 0;
    }
    
    .messenger-chat-messages {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        min-height: 0;
        padding: 12px 16px;
        max-height: none;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        box-sizing: border-box;
    }
    
    .messenger-message {
        max-width: 90% !important;
        font-size: 15px !important;
        width: auto !important;
    }
    
    .messenger-message-content {
        font-size: 15px !important;
        padding: 12px 16px !important;
        line-height: 1.5 !important;
    }
    
    .messenger-message-avatar {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    
    .messenger-message-time {
        font-size: 12px !important;
    }
    
    .messenger-message {
        max-width: 90%;
        font-size: 15px;
    }
    
    .messenger-message-content {
        font-size: 15px;
        padding: 12px 16px;
        line-height: 1.5;
    }
    
    .messenger-message-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .messenger-message-time {
        font-size: 12px;
    }
}

.messenger-widget-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.messenger-widget-close:hover {
    background-color: var(--hover-bg);
}

.messenger-widget-conversations {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
}

.messenger-conversation-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.messenger-conversation-item:hover {
    background-color: var(--hover-bg);
}

.messenger-conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

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

.messenger-conversation-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messenger-conversation-preview {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messenger-conversation-badge {
    background-color: #ef4444;
    color: white;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
}

.messenger-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* Chat Panel */
.messenger-chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    max-height: 600px;
    background-color: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    z-index: 1000;
}

.messenger-chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-color);
    flex-shrink: 0;
}

.messenger-chat-back,
.messenger-chat-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.messenger-chat-back:hover,
.messenger-chat-close:hover {
    background-color: var(--hover-bg);
}

.messenger-chat-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.messenger-chat-user-info:hover {
    opacity: 0.8;
}

.messenger-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.messenger-chat-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.messenger-chat-name {
    font-weight: 700;
    font-size: 15px;
}

.messenger-online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #10b981 !important;
    border: 2px solid var(--bg-color);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.messenger-chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    max-height: 100%;
    height: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.messenger-message {
    display: flex;
    gap: 8px;
    max-width: 85%;
    width: fit-content;
    box-sizing: border-box;
    word-wrap: break-word;
    word-break: break-word;
}

.messenger-message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
    margin-left: auto;
}

.messenger-message.received {
    align-self: flex-start;
    margin-right: auto;
}

.messenger-message-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.messenger-message > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 0 1 auto;
}

.messenger-message-content {
    background-color: var(--bg-secondary);
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    display: inline-block;
}

.messenger-message.sent .messenger-message-content {
    background-color: var(--primary-color);
    color: white;
}

.messenger-message-attachment {
    margin-bottom: 6px;
    max-width: 100%;
}

.messenger-message-attachment-img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    display: block;
}

.messenger-message-attachment-video {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    display: block;
}

.messenger-message-attachment-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.messenger-message-attachment-file:hover {
    background-color: var(--hover-bg);
}

.messenger-message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    padding: 0 4px;
    white-space: nowrap;
}

.messenger-message.sent .messenger-message-time {
    text-align: right;
}

.messenger-message.received .messenger-message-time {
    text-align: left;
}

.messenger-chat-input-container {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    flex-shrink: 0;
}

.messenger-chat-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.messenger-chat-form textarea {
    width: 100%;
    min-height: 40px;
    max-height: 120px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.messenger-chat-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(29, 155, 240, 0.1);
}

.messenger-chat-form textarea::placeholder {
    color: var(--text-secondary);
}

.messenger-chat-form-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.messenger-chat-form-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    align-items: center;
}

.messenger-chat-emoji-btn,
.messenger-chat-file-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.messenger-chat-emoji-btn:hover,
.messenger-chat-file-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.messenger-chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

.messenger-chat-form textarea {
    flex: 1;
    min-height: 40px;
    max-height: 120px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.messenger-chat-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(29, 155, 240, 0.1);
}

.messenger-chat-form textarea::placeholder {
    color: var(--text-secondary);
}

.messenger-chat-send {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.messenger-chat-send:hover {
    background: #1a8cd8;
}

.messenger-chat-send:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

/* Attachment Preview */
#messenger-chat-attachment-preview {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--hover-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.messenger-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.messenger-attachment-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messenger-attachment-remove {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.messenger-attachment-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.messenger-chat-form-inputs textarea:focus {
    border-color: var(--primary-color);
}

.messenger-chat-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.messenger-chat-form-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.messenger-chat-emoji-btn,
.messenger-chat-file-btn,
.messenger-chat-voice-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.messenger-chat-emoji-btn:hover,
.messenger-chat-file-btn:hover,
.messenger-chat-voice-btn:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.messenger-chat-emoji-btn:active,
.messenger-chat-file-btn:active,
.messenger-chat-voice-btn:active {
    transform: scale(0.95);
}

.messenger-chat-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.messenger-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.messenger-chat-send:hover {
    background-color: var(--primary-hover);
}

.messenger-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Bottom Navigation - Masaüstünde gizli */
.x-mobile-bottom-nav {
    display: none;
}

/* Mobile Profile Avatar - Masaüstünde gizli */
.mobile-profile-avatar {
    display: none;
}

/* Flash Messages - Mobil */
@media (max-width: 768px) {
    .flash-message {
        left: 10px;
        right: 10px;
        transform: none !important;
        min-width: auto;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px) !important;
        }
        to {
            opacity: 1;
            transform: translateY(0) !important;
        }
    }
}

@media (max-width: 768px) {
    /* Settings Page */
    .x-settings-container {
        flex-direction: column;
    }
    
    .x-settings-sidebar {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 100;
        background-color: var(--bg-color);
    }
    
    .x-settings-menu {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .x-settings-menu-item {
        padding: 12px 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .x-settings-menu-item.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }
    
    .x-settings-content {
        padding: 16px;
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
    
    /* Settings sayfasında bottom nav görünür olmalı */
    body.page-settings .x-mobile-bottom-nav {
        display: flex !important;
    }
    
    .x-settings-form {
        max-width: 100%;
    }
    
    .x-page-header h1 {
        font-size: 18px;
        padding: 12px 16px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .btn {
        font-size: 15px;
        padding: 10px 20px;
    }
    
    .x-form-group {
        margin-bottom: 16px;
    }
    
    .checkbox-label {
        font-size: 14px;
    }
    
    .account-info h2,
    .account-info h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .info-section {
        margin-bottom: 20px;
    }
    
    .info-item {
        padding: 10px 0;
        font-size: 14px;
    }
    
    .danger-zone h2 {
        font-size: 18px;
    }
    
    .danger-section {
        margin-bottom: 24px;
    }
    
    .danger-section h3 {
        font-size: 16px;
    }
    
    .danger-section p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: none; /* Profil resmi gösteriliyorsa gizle */
    }
    
    .mobile-profile-avatar {
        display: block;
    }
    
    .x-sidebar-left {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        z-index: 10003;
        background-color: var(--bg-color);
        border-right: 1px solid var(--border-color);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        flex-direction: column;
        padding: 0;
        border-top: none;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }
    
    .x-sidebar-left.active {
        left: 0;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 10002;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Mobile Profile Avatar (Fixed Top) */
    .mobile-profile-avatar {
        display: block;
        position: fixed;
        top: 12px;
        left: 12px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid var(--bg-color);
        padding: 0;
        background: var(--bg-color);
        cursor: pointer;
        z-index: 1002;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .mobile-profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .mobile-profile-avatar:active {
        transform: scale(0.95);
    }
    
    .mobile-profile-avatar:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    /* Layout */
    .x-layout-content {
        padding-left: 0;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .x-main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        margin-bottom: 60px;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Mesajlaşma sayfası için mobil düzenleme */
    .x-main-content:has(.x-messages-container) {
        margin-bottom: 0;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
    
    .x-feed-main {
        padding: 0;
        padding-bottom: 80px;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Explore page: override bottom padding to avoid double spacing */
    body.page-explore .x-feed-main {
        padding-bottom: 0;
    }
    
    .x-feed-main:has(.x-search-results),
    .x-feed-main:has(.x-search-section) {
        padding-bottom: 100px;
    }
    
    .x-search-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .x-search-results {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .x-search-box {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Mesajlaşma sayfası için mobil feed-main düzenleme */
    .x-feed-main:has(.x-messages-container) {
        padding: 0;
        padding-bottom: 0;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .x-feed-main:has(.x-messages-container) .x-messages-container {
        flex: 1;
        min-height: 0;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .x-sidebar-right {
        display: none;
    }
    
    /* Navigation */
    .x-logo {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .x-nav {
        flex-direction: column;
        width: 100%;
        gap: 4px;
        margin: 0;
        padding: 12px;
        flex: 1;
        overflow-y: auto;
    }
    
    .x-nav-item {
        justify-content: flex-start;
        max-width: none;
        padding: 12px;
        width: 100%;
    }
    
    .x-nav-item span {
        display: inline;
    }
    
    .x-tweet-btn {
        display: none !important;
    }
    
    .x-tweet-btn:hover {
        background-color: var(--primary-hover);
    }
    
    .x-tweet-btn:active {
        transform: scale(0.98);
    }
    
    .x-user-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 12px;
        border-top: 1px solid var(--border-color);
        margin-top: auto;
        gap: 8px;
        overflow: visible;
    }
    
    .x-user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .x-logout-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 20px;
        color: var(--text-secondary);
        transition: background-color 0.2s;
        text-decoration: none;
        width: 100%;
        justify-content: center;
        overflow: visible;
        min-width: fit-content;
    }
    
    .x-logout-btn:hover {
        background-color: var(--hover-bg);
    }
    
    .x-logout-text {
        font-size: 15px;
        font-weight: 400;
        display: block !important; /* Mobilde görünür */
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        min-width: fit-content;
    }
    
    .x-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        margin-top: auto;
        margin-bottom: 12px;
    }
    
    /* Tweets */
    .tweet-item {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .tweet-content {
        padding-left: 12px;
        min-width: 0;
        max-width: 100%;
    }
    
    .tweet-header {
        gap: 0.25rem;
        flex-wrap: wrap;
        min-width: 0;
    }
    
    .tweet-author {
        font-size: 14px;
        gap: 3px;
        min-width: 0;
        flex-shrink: 1;
        overflow: hidden;
    }
    
    .tweet-author strong {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    .tweet-username {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .tweet-header-right {
        gap: 4px;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .tweet-time {
        font-size: 13px;
        white-space: nowrap;
    }
    
    .tweet-menu {
        position: relative;
        z-index: 10000;
        overflow: visible;
    }
    
    .tweet-menu {
        position: relative;
        z-index: 1000;
        overflow: visible;
    }
    
    .tweet-menu-btn {
        position: relative;
        z-index: 1001;
        pointer-events: auto;
        touch-action: manipulation;
        padding: 4px;
        flex-shrink: 0;
    }
    
    .tweet-menu-dropdown {
        z-index: 10000 !important;
        position: absolute !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        pointer-events: auto;
    }
    
    .tweet-menu-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .tweet-actions {
        gap: 1.5rem;
    }
    
    .tweet-item {
        overflow: visible;
    }
    
    .tweet-content {
        overflow: visible;
    }
    
    .tweet-header-right {
        overflow: visible;
        z-index: 10000;
    }
    
    /* Comment Header Mobile - 768px */
    .x-comment-header {
        gap: 0.25rem;
        flex-wrap: wrap;
        min-width: 0;
        align-items: flex-start;
    }
    
    .x-comment-author {
        font-size: 14px;
        gap: 3px;
        min-width: 0;
        flex-shrink: 1;
        max-width: calc(100% - 100px);
    }
    
    .x-comment-author strong {
        font-size: 14px;
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
    
    .x-comment-username {
        font-size: 13px;
        max-width: 90px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
    
    .x-comment-time {
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .tweet-action {
        font-size: 14px;
        padding: 4px;
    }
    
    .tweet-action svg {
        width: 16px;
        height: 16px;
    }
    
    /* Profile */
    .x-profile-header {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    .x-profile-cover {
        height: 150px;
        width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .x-profile-info {
        padding: 0 12px;
        margin: 0;
        width: 100%;
    }
    
    .x-profile-avatar {
        width: 80px;
        height: 80px;
        position: absolute;
        top: -54px;
        left: 12px;
        margin: 0;
        border: 4px solid var(--bg-color);
        border-radius: 50%;
        overflow: hidden;
        background-color: var(--bg-color);
        z-index: 10;
    }
    
    .x-profile-actions {
        padding: 0;
        margin-top: -50px !important;
        margin-bottom: 8px !important;
    }
    
    .x-profile-details {
        margin-top: 0;
        padding-top: 0;
    }
    
    .x-profile-stats {
        flex-wrap: nowrap;
        gap: 12px;
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    
    .x-stat-link {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        min-width: fit-content;
        flex-shrink: 0;
        padding: 4px 8px;
    }
    
    .x-stat-link strong {
        font-size: 16px;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    .x-stat-link span {
        font-size: 13px;
        color: var(--text-secondary);
        white-space: nowrap;
    }
    
    .profile-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Comments */
    .x-comment-form {
        padding: 12px;
    }
    
    .x-comment-form-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .x-comment-form-inner {
        width: 100%;
    }
    
    .x-comment-textarea {
        min-height: 80px;
        font-size: 15px;
    }
    
    .x-comments-list {
        padding: 0 12px;
    }
    
    .x-comment-item {
        padding: 12px 0;
    }
    
    /* Status */
    .x-status-section {
        padding: 12px;
    }
    
    .x-status-list {
        gap: 12px;
    }
    
    .x-status-avatar {
        width: 48px;
        height: 48px;
    }
    
    .x-status-username {
        font-size: 11px;
    }
    
    /* Page Header */
    .x-page-header {
        padding: 12px 16px;
    }
    
    .x-page-header h1,
    .x-page-header-content h1 {
        font-size: 18px;
    }
    
    .x-page-header-subtitle {
        font-size: 13px;
    }
    
    /* Başlıklar mobilde küçült */
    .x-feed-main h1,
    .x-feed-main h2,
    .x-feed-main h3 {
        font-size: 18px;
    }
    
    .x-profile-details h1 {
        font-size: 20px;
    }
    
    .x-profile-details .x-profile-username {
        font-size: 14px;
    }
    
    .x-profile-details .x-profile-bio {
        font-size: 14px;
    }
    
    /* Tweet text mobilde */
    .tweet-text {
        font-size: 15px;
        line-height: 1.5;
    }
    
    /* Form inputlar mobilde */
    .x-form-input,
    .x-form-textarea {
        font-size: 16px; /* iOS zoom önleme */
    }
    
    /* Butonlar mobilde */
    .x-btn-primary,
    .x-btn-secondary {
        font-size: 15px;
        padding: 10px 16px;
    }
    
    /* Widget başlıkları */
    .x-widget-title {
        font-size: 18px;
    }
    
    /* Trend item başlıkları */
    .x-trend-tag {
        font-size: 15px;
    }
    
    .x-trend-count {
        font-size: 13px;
    }
    
    /* Suggested user isimleri */
    .x-suggested-name strong {
        font-size: 15px;
    }
    
    .x-suggested-info span {
        font-size: 13px;
    }
    
    .x-back-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .x-back-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .x-back-btn span {
        font-size: 14px;
    }
    
    /* Modals */
    .x-modal-content {
        width: 95vw;
        max-width: 95vw;
        margin: 10px;
    }
    
    /* Images */
    .tweet-image {
        border-radius: 0;
        margin: 12px -12px;
    }
    
    .tweet-image img {
        border-radius: 0;
    }
    
    /* Mobile Bottom Navigation */
    .x-mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--bg-color);
        border-top: 1px solid var(--border-color);
        padding: 8px 0 max(8px, env(safe-area-inset-bottom));
        z-index: 10000;
        pointer-events: auto;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        justify-content: space-around;
        align-items: center;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .x-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 2px;
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 9px;
        font-weight: 400;
        transition: color 0.2s;
        position: relative;
        flex: 1;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .x-bottom-nav-item svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }
    
    .x-bottom-nav-item span {
        font-size: 9px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
        text-align: center;
        padding: 0 1px;
    }
    
    .x-bottom-nav-item.active {
        color: var(--text-color);
    }
    
    .x-bottom-nav-item.active svg {
        fill: var(--text-color);
    }
    
    .x-bottom-nav-item:active {
        opacity: 0.7;
    }
    
    .x-bottom-nav-badge {
        position: absolute;
        top: 0;
        right: 4px;
        background-color: #ef4444;
        color: white;
        font-size: 10px;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        border: 2px solid var(--bg-color);
    }
    
    .x-nav-item .x-badge {
        background-color: #ef4444;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    /* Bottom nav için body ve content padding - sadece mobilde */
    body {
        padding-bottom: 0;
    }
    
    .x-main-content {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .x-layout-content {
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 10px;
    }
    
    /* Bottom Navigation - Daha küçük yazılar */
    .x-mobile-bottom-nav {
        padding: 6px 0;
    }
    
    .x-bottom-nav-item {
        padding: 4px 2px;
        gap: 1px;
    }
    
    .x-bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }
    
    .x-bottom-nav-item span {
        font-size: 9px;
        line-height: 1;
        padding: 0 1px;
    }
    
    /* Tweets - Smaller */
    .tweet-item {
        padding: 12px;
        gap: 10px;
    }
    
    .tweet-avatar img {
        width: 42px;
        height: 42px;
    }
    
    .tweet-content {
        padding-left: 8px;
        min-width: 0;
    }
    
    .tweet-header {
        gap: 0.2rem;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .tweet-author {
        font-size: 13px;
        gap: 2px;
        min-width: 0;
        max-width: calc(100% - 80px);
        flex-wrap: wrap;
        line-height: 1.2;
    }
    
    .tweet-author strong {
        font-size: 13px;
        max-width: 80px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
    
    .tweet-username {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90px;
        display: inline-block;
    }
    
    .tweet-header-right {
        gap: 2px;
        flex-shrink: 0;
        align-items: center;
        flex-wrap: nowrap;
        overflow: visible;
        z-index: 10000;
    }
    
    .tweet-time {
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .tweet-menu {
        position: relative;
        z-index: 1000;
        overflow: visible;
    }
    
    .tweet-menu-btn {
        position: relative;
        z-index: 1001;
        pointer-events: auto;
        touch-action: manipulation;
        padding: 2px;
        flex-shrink: 0;
    }
    
    .tweet-menu-dropdown {
        z-index: 10000 !important;
        position: absolute !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        pointer-events: auto;
    }
    
    .tweet-menu-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .tweet-item {
        overflow: visible;
    }
    
    .tweet-content {
        overflow: visible;
    }
    
    /* Tweet detail page için özel */
    .tweet-detail-item .tweet-header {
        gap: 0.15rem;
    }
    
    .tweet-detail-item .tweet-author {
        max-width: calc(100% - 90px);
    }
    
    .tweet-detail-item .tweet-author strong {
        max-width: 70px;
    }
    
    .tweet-detail-item .tweet-username {
        max-width: 80px;
        font-size: 11px;
    }
    
    .tweet-detail-item .tweet-time {
        font-size: 11px;
    }
    
    /* Comment Header - 480px için */
    .x-comment-header {
        gap: 0.2rem;
    }
    
    .x-comment-author {
        font-size: 13px;
        gap: 2px;
        max-width: calc(100% - 90px);
    }
    
    .x-comment-author strong {
        font-size: 13px;
        max-width: 70px;
    }
    
    .x-comment-username {
        font-size: 12px;
        max-width: 80px;
    }
    
    .x-comment-time {
        font-size: 12px;
    }
    
    .x-back-btn {
        padding: 6px 8px;
        font-size: 13px;
        gap: 6px;
    }
    
    .x-back-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .x-back-btn span {
        font-size: 13px;
    }
    
    .tweet-actions {
        gap: 1rem;
    }
    
    .tweet-action {
        font-size: 13px;
    }
    
    .tweet-action span {
        font-size: 13px;
    }
    
    /* Headers */
    .x-page-header {
        padding: 12px;
    }
    
    .x-page-header h1 {
        font-size: 18px;
        padding: 0px;
    }
    
    /* Status - Smaller */
    .x-status-avatar {
        width: 44px;
        height: 44px;
    }
    
    .x-status-username {
        font-size: 10px;
    }
    
    /* Auth */
    .auth-logo {
        display: block;
    }
    
    .auth-box {
        padding: 1.5rem;
    }
    
    /* Profile - 480px için */
    .x-profile-header {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .x-profile-cover {
        width: 100%;
        border-radius: 0;
    }
    
    .x-profile-info {
        padding: 0 10px !important;
    }
    
    /* Search & Widgets */
    .x-search-box {
        margin: 12px;
        max-width: calc(100% - 24px);
        box-sizing: border-box;
    }
    
    .x-search-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .x-search-results {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .x-search-header,
    .x-search-section h3 {
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box;
    }
    
    .x-widget {
        margin: 12px;
        padding: 12px;
    }
    
    /* Metinler için word-wrap */
    .tweet-text,
    .x-comment-text,
    .x-profile-bio,
    .tweet-header,
    /* Comment Header Mobile */
    .x-comment-header {
        gap: 0.25rem;
        flex-wrap: wrap;
        min-width: 0;
        align-items: flex-start;
    }
    
    .x-comment-author {
        font-size: 14px;
        gap: 3px;
        min-width: 0;
        flex-shrink: 1;
        max-width: calc(100% - 100px);
    }
    
    .x-comment-author strong {
        font-size: 14px;
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
    
    .x-comment-username {
        font-size: 13px;
        max-width: 90px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
    
    .x-comment-time {
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
        margin-left: auto;
    }
}

/* Emoji Picker */
/* Emoji Picker Modal - scroll sadece grid'de */
#emoji-picker-modal .x-modal-body {
    overflow: visible;
    padding: 0;
}

 #emoji-picker-modal {
     z-index: 999999 !important;
     position: fixed !important;
 }

 #emoji-picker-modal .x-modal-overlay {
     z-index: 999999 !important;
 }

 #emoji-picker-modal .x-modal-content {
     z-index: 1000000 !important;
 }

.x-emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    #emoji-picker-modal .x-modal-content {
        max-width: 95vw !important;
        max-height: 70vh !important;
        margin: 10px !important;
    }
    
    .x-emoji-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 10px;
        max-height: 50vh;
    }
    
    .x-emoji-item {
        padding: 6px;
        font-size: 20px;
    }
    
    /* Media Viewer - Tam Ekran Mobil */
    #media-viewer-modal .x-modal-content {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    #media-viewer-left {
        border-radius: 0 !important;
    }
    
    #media-viewer-modal .x-modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    #media-viewer-prev,
    #media-viewer-next {
        width: 40px !important;
        height: 40px !important;
    }
    
    #media-viewer-prev {
        left: 10px !important;
    }
    
    #media-viewer-next {
        right: 10px !important;
    }
}

.x-emoji-item {
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.x-emoji-item:hover {
    background: var(--hover-bg);
    border-color: var(--border-color);
    transform: scale(1.1);
}

/* Gift Modal */
.x-gift-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 8px;
}

.x-gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    cursor: pointer;
    transition: all 0.2s;
}

.x-gift-item:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.x-gift-item span:last-child {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Share Modal */
.x-share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.x-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    background: var(--bg-color);
}

.x-share-option:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.x-share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.x-share-option span {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.x-share-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Notification action buttons */
.x-notification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.x-btn-small {
    padding: 4px 12px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.x-btn-small:hover {
    background: var(--hover-bg);
}

.x-btn-small.x-btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.x-btn-small.x-btn-primary:hover {
    background: var(--primary-hover);
}

.x-btn-small.x-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-color);
    border-color: var(--border-color);
}

.x-btn-small.x-btn-secondary:hover {
    background: var(--hover-bg);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .x-notification-actions {
        margin-top: 6px;
        gap: 6px;
    }
    
    .x-btn-small {
        padding: 3px 10px;
        font-size: 11px;
    }
}
