:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --accent-color: #4361ee;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --input-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

/* Range Slider Styling */
#cropper-zoom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
}

#cropper-zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00BAFF;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 186, 255, 0.4);
    border: 2px solid #fff;
    transition: 0.2s;
}

#cropper-zoom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 186, 255, 0.6);
}

.dark-theme {
    --bg-primary: #0f0f12;
    --bg-secondary: #1a1a1e;
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --border-color: #2f3037;
    --accent-color: #4895ef;
    --sidebar-bg: #151518;
    --card-bg: #1c1c21;
    --glass-bg: rgba(20, 20, 25, 0.9);
    --input-bg: #242526;
}

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

/* ==========================================
   GREEN PORTAL NOTIFICATION SYSTEM
   ========================================== */
#portal-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.portal-gate {
    width: 6px;
    height: 6px;
    background: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 12px #00ff66, 0 0 25px #00ff66, 0 0 50px #00ff66;
    position: relative;
    opacity: 0;
    transform: translateY(-20px) scale(0.1);
    transition:
        transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.4s ease,
        width 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        border-radius 0.5s ease,
        background-color 0.5s ease;
    pointer-events: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0px solid rgba(0, 255, 102, 0.8);
    box-sizing: border-box;
}

/* Step 1: Pixel drops and positions itself */
.portal-gate.arrived {
    opacity: 1;
    transform: translateY(30px) scale(1);
}

/* Step 2: Pixel grows to notification box size */
.portal-gate.expanded {
    width: 380px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid #00ff66;
    background: rgba(10, 25, 15, 0.95);
    box-shadow:
        0 0 20px rgba(0, 255, 102, 0.4),
        inset 0 0 25px rgba(0, 255, 102, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

/* Portal Energy Vortex Backdrop */
.portal-energy {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.25) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.portal-gate.expanded .portal-energy {
    opacity: 1;
    animation: portalPulse 2.5s infinite ease-in-out;
}

/* Portal content emerging from 3D space */
.portal-content {
    color: #ffffff;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    height: 100%;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: scale(0.6) translateY(10px);
    transition:
        opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    pointer-events: none;
}

.portal-gate.active .portal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.portal-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #e6ffe6;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-text b {
    color: #00ff66;
    font-weight: 700;
}

.portal-close-btn {
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid rgba(0, 255, 102, 0.3);
    color: rgba(0, 255, 102, 0.8);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-close-btn:hover {
    background: #00ff66;
    border-color: #00ff66;
    color: #0c1a10;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 0 10px #00ff66;
}

@keyframes portalPulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.4) saturate(1.2);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: visible;
    transition: background 0.3s, color 0.3s;
}

body.allow-scroll {
    overflow-y: auto !important;
}

.container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Sol Menü - Sabit (Sticky/Fixed) ve daha dar */
.sidebar {
    width: 180px;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 24px 8px;
    padding-top: 114px;
    overflow-y: auto;
    box-shadow: inset -1px 0 0 var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 60px;
    /* Narrower when collapsed */
    min-width: 60px;
    padding: 24px 0;
    align-items: center;
    overflow: hidden;
    /* No scrollbar as requested */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sidebar.collapsed .sidebar-header {
    flex-direction: column;
    gap: 20px;
}

.sidebar-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    color: #212529 !important;
    /* Rengi sabitledim */
    transition: all 0.2s;
    background: #e9ecef !important;
    /* Daha gri bi arka plan */
    z-index: 1000;
}

.sidebar-toggle:hover {
    background: var(--bg-secondary);
    color: var(--accent-color);
}

.sidebar-toggle i {
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(90deg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    /* Reduced from 8px */
}

.logo img {
    height: 28px;
    /* Reduced from 32px for better proportion */
    width: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0;
}

.sidebar.collapsed .logo img {
    margin: 0;
    transform: rotate(360deg);
}

.logo h1 {
    color: var(--accent-color);
    font-size: 20px;
    /* Shrunk from 28px to fit */
    font-weight: 800;
    letter-spacing: -1px;
    transition: all 0.2s;
    white-space: nowrap;
    margin: 0;
    line-height: 1;
}

.sidebar.collapsed .logo h1 {
    display: none;
}

.sidebar.collapsed .logo {
    justify-content: center;
    width: 100%;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    /* Take up available space */
}

.sidebar.collapsed .menu {
    width: 100%;
    align-items: center;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Emoji ve metin arası boşluk minimize edildi */
    padding: 8px 6px;
    /* İç boşluklar minimize edildi */
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 15px;
    /* Yazı boyutu hafif küçültüldü */
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.sidebar.collapsed .menu-item {
    padding: 10px 0;
    justify-content: center;
    width: 100%;
    margin: 0;
}

.sidebar.collapsed .menu-item .icon {
    width: 28px;
    /* Shrunk when collapsed */
    height: 28px;
    font-size: 14px;
    margin-right: 0;
}

.menu-item .emoji {
    font-size: 18px;
    margin-right: 4px;
    transition: all 0.2s;
    display: inline-block;
}

.sidebar.collapsed .menu-item .emoji {
    margin-right: 0;
    font-size: 22px;
    /* Daralınca daha büyük */
    display: block;
}

.menu-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 18px;
    margin-right: 12px;
    transition: all 0.2s;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 8px;
    color: var(--accent-color);
    /* Use accent color instead of secondary */
}

.sidebar.collapsed .menu-item .icon {
    margin-right: 0;
}

.menu-item:hover .icon {
    background: var(--accent-color);
    color: white !important;
}

.menu-item.active .icon {
    background: white;
    color: var(--accent-color) !important;
}

.menu-item.active .icon i {
    color: var(--accent-color) !important;
}

.menu-item .emoji {
    display: none;
}

.menu-item .text {
    transition: opacity 0.2s, visibility 0.2s;
    white-space: nowrap;
}

.sidebar.collapsed .menu-item .text {
    display: none;
}

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

.menu-item.active {
    background: var(--accent-color);
    color: white;
}

.menu-item.active i {
    color: inherit;
    /* Let the icon rule handle it */
}

.menu-item.active {
    font-weight: 600;
}

/* ==========================================
   URTIPUUL PLUS THEME COLORS FOR SIDEBAR
   ========================================== */

/* --- V.İ.P (Gold Theme) --- */
.sidebar.plus-vip .menu-item .icon {
    color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.1) !important;
}
.sidebar.plus-vip .menu-item:hover {
    color: #FFD700 !important;
}
.sidebar.plus-vip .menu-item:hover .icon {
    background: #FFD700 !important;
    color: #000000 !important;
}
.sidebar.plus-vip .menu-item.active {
    background: #FFD700 !important;
    color: #000000 !important;
}
.sidebar.plus-vip .menu-item.active .icon {
    background: #ffffff !important;
    color: #FFD700 !important;
}
.sidebar.plus-vip .menu-item.active .icon i {
    color: #FFD700 !important;
}

/* --- Premium (Green Theme) --- */
.sidebar.plus-premium .menu-item .icon {
    color: #34C759 !important;
    background: rgba(52, 199, 89, 0.1) !important;
}
.sidebar.plus-premium .menu-item:hover {
    color: #34C759 !important;
}
.sidebar.plus-premium .menu-item:hover .icon {
    background: #34C759 !important;
    color: #ffffff !important;
}
.sidebar.plus-premium .menu-item.active {
    background: #34C759 !important;
    color: #ffffff !important;
}
.sidebar.plus-premium .menu-item.active .icon {
    background: #ffffff !important;
    color: #34C759 !important;
}
.sidebar.plus-premium .menu-item.active .icon i {
    color: #34C759 !important;
}

/* --- Standart (Blue Theme) --- */
.sidebar.plus-standart .menu-item .icon {
    color: #0095f6 !important;
    background: rgba(0, 149, 246, 0.1) !important;
}
.sidebar.plus-standart .menu-item:hover {
    color: #0095f6 !important;
}
.sidebar.plus-standart .menu-item:hover .icon {
    background: #0095f6 !important;
    color: #ffffff !important;
}
.sidebar.plus-standart .menu-item.active {
    background: #0095f6 !important;
    color: #ffffff !important;
}
.sidebar.plus-standart .menu-item.active .icon {
    background: #ffffff !important;
    color: #0095f6 !important;
}
.sidebar.plus-standart .menu-item.active .icon i {
    color: #0095f6 !important;
}

.logout-btn:hover {
    background: #ffe5e5 !important;
    color: #e63946 !important;
}

/* Alttaki Üç Nokta Menüsü */
.sidebar-more-container {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    background: var(--sidebar-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1010;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.more-menu-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.more-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    /* Shrunk from 8px */
    font-size: 14px;
    /* Shrunk from 18px */
    transition: all 0.3s;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar.collapsed .more-btn {
    padding: 8px 0;
}

.more-btn:hover {
    color: var(--accent-color);
}

.sidebar-submenu {
    display: none;
    position: absolute;
    bottom: 40px;
    left: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    overflow: hidden;
    padding: 6px 0;
}

.sidebar.collapsed .sidebar-submenu {
    left: 65px;
    /* Open to the right when collapsed */
    bottom: 0;
}

.submenu-item {
    padding: 11px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--bg-secondary);
    transition: all 0.2s;
    color: var(--text-primary) !important;
}

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

.submenu-item:hover {
    background: var(--bg-secondary);
}

.submenu-item i {
    color: var(--text-secondary);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.submenu-item span {
    font-size: 13px;
    font-weight: 500;
}

.submenu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 12px;
}

.submenu-problem i {
    color: #f59e0b !important;
}

.submenu-problem:hover {
    background: rgba(245, 158, 11, 0.08) !important;
}

.submenu-logout {
    color: #ef4444 !important;
}

.submenu-logout i {
    color: #ef4444 !important;
}

.submenu-logout:hover {
    background: rgba(239, 68, 68, 0.08) !important;
}

/* Icons are now enabled and styled above */

/* Stories Bar Styles */
.stories-bar {
    display: flex;
    padding: 12px 0 12px 12px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    background: var(--bg-primary);
    gap: 15px;
    scrollbar-width: none;
    /* Firefox */
}

/* #global-stories-bar base styles removed — final desktop rule is in the Home Feed section below */

.stories-bar::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Premium modern story-item format */
.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 66px;
    cursor: pointer;
}

.story-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    position: relative;
    overflow: hidden;
}

.story-avatar.watched {
    background: var(--border-color);
}

.story-avatar.plus {
    background: none;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    object-fit: cover;
}

.add-story {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #0095f6;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 5;
}

.story-item span {
    font-size: 11px;
    color: var(--text-primary);
    text-align: center;
    max-width: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sağ İçerik Alanı */
.content {
    flex: 1;
    background: var(--bg-primary);
    overflow-y: auto;
    position: relative;
    padding: 24px;
    padding-top: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 0;
    /* Fix flexbox scroll bug */
}

/* Profil sayfası açıkken .content padding'ini kaldır */
#profil.active~.content,
.content:has(#profil.active) {
    padding: 0;
}

.page {
    display: none;
    padding: 0;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

/* Profil sayfası için özel stiller — Instagram benzeri beyaz arka plan */
#profil.active {
    background: #fff;
    color: #000;
    width: 100%;
    display: block !important;
    min-height: 100%;
    z-index: 5;
    position: relative;
}

#profil .page-inner {
    padding: 0;
}

/* Profil içindeki tüm yazılar koyu olsun (dark mode override) */
#profil h1,
#profil h2,
#profil h3,
#profil p,
#profil div {
    color: inherit;
}

/* Profil tab'ları için hover efekti */
.profile-tab {
    transition: color 0.2s, border-color 0.2s;
}

.profile-tab:hover {
    color: #000 !important;
    border-top: 1px solid #000;
    margin-top: -1px;
}

/* Profil gönderi grid item hover */
.profile-post-item:hover .post-overlay {
    opacity: 1 !important;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    transform-origin: top;
}

.sidebar-collapsed .page-header {
    transform: translateY(-100%);
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-header h2 {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 700;
}

/* Ana Sayfa - Feed */
.feed {
    max-width: 640px;
    margin: 0 auto;
}

/* Em dusunceleri - X benzeri ana sayfa */
.x-home-feed {
    max-width: 680px;
    padding-top: 0;
    background: transparent;
    border-radius: 12px;
}

#em-feed-list {
    background: var(--bg-primary);
}

#ana-sayfa {
    position: relative;
}

.em-gonderi-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 50;
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d9bf0, #4361ee);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 18px rgba(29, 155, 240, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.em-gonderi-btn:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 12px 22px rgba(29, 155, 240, 0.45);
}

.em-compose-actions-hidden {
    display: none !important;
}

.story-item {
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    #ana-sayfa .x-home-feed {
        max-width: 100% !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-radius: 0 !important;
    }

    #ana-sayfa .em-compose-open {
        padding: 8px 10px 10px !important;
    }

    #ana-sayfa .x-compose-actions {
        gap: 8px;
    }

    #ana-sayfa .em-send-btn,
    #ana-sayfa .em-compose-plus-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Eski hikaye tasarım ezicileri silindi */

.x-compose-box {
    border-radius: 14px;
    border: 1px solid #d9dee5;
    margin: 10px 8px 14px;
    box-shadow: 0 2px 10px rgba(18, 25, 38, 0.04);
    padding: 14px 14px 10px;
    background: #f7f9fc;
    position: relative;
}

.x-compose-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.x-avatar {
    background: linear-gradient(135deg, #1d9bf0, #4361ee);
    color: #fff;
    border: none;
    font-weight: 700;
}

.x-compose-box textarea {
    border: 1px solid #d6dbe3;
    background: #ffffff;
    margin-bottom: 10px;
    min-height: 98px;
    padding: 14px 16px;
    font-size: 26px;
    line-height: 1.35;
    border-radius: 10px;
    box-shadow: none;
}

.x-compose-box textarea:focus {
    box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.12);
    border-color: #9ec9fb;
}

.x-compose-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #d6dbe3;
    padding-top: 10px;
}

.em-media-preview {
    margin: 8px 0 10px 44px;
    border: 1px solid #d6dbe3;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    position: relative;
    max-height: 320px;
}

.em-media-preview img,
.em-media-preview video {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
    background: #000;
}

.em-media-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.x-compose-tools {
    display: flex;
    gap: 12px;
    color: #1d9bf0;
}

.x-compose-tools span {
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease;
}

#em-compose-plus {
    border: none;
    background: rgba(29, 155, 240, 0.12);
    color: #1d9bf0;
    font-size: 22px;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(29, 155, 240, 0.25);
}

.x-compose-tools span:hover {
    background: rgba(29, 155, 240, 0.1);
}

.story-viewer-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Contain the home polish so other pages keep their original geometry. */
body {
    overflow: visible;
    background: var(--bg-primary);
}

.container {
    display: flex;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    background: var(--bg-primary);
}

.sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    width: var(--home-sidebar-width);
    height: 100vh;
    padding: 24px 8px;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: var(--home-sidebar-collapsed-width);
    min-width: var(--home-sidebar-collapsed-width);
}










.story-viewer-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
}

.story-progress-bars {
    flex: 1;
    display: flex;
    gap: 6px;
}

.story-progress-bars .bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
}

.story-progress-bars .bar-fill {
    height: 100%;
    width: 0%;
    background: #fff;
}

.story-viewer-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.story-viewer-content {
    width: min(520px, 92vw);
    height: min(84vh, 920px);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-viewer-content img,
.story-viewer-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-viewer-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    cursor: pointer;
}

.story-viewer-prev {
    left: 0;
}

.story-viewer-next {
    right: 0;
}

.story-viewer-user {
    position: absolute;
    left: 20px;
    bottom: 16px;
    color: #fff;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 12px;
}

.story-create-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 21000;
    display: none;
    align-items: center;
    justify-content: center;
}

.story-create-card {
    width: min(520px, 92vw);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d6dbe3;
}

.story-create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e6e9ef;
}

.story-create-header h3 {
    margin: 0;
    font-size: 18px;
}

.story-create-header button {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.story-create-body {
    padding: 14px 16px 16px;
}

.story-create-preview {
    min-height: 120px;
    border: 1px dashed #c5cddd;
    border-radius: 10px;
    background: #f8fafd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    text-align: center;
    padding: 10px;
}

.story-create-actions {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.story-create-actions button {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

#story-create-pick-btn {
    background: #eef2ff;
    color: #3f51d9;
}

#story-create-submit-btn {
    background: #4c63e6;
    color: #fff;
}

.x-compose-box .post-btn {
    border-radius: 999px;
    padding: 9px 22px;
    font-size: 16px;
    font-weight: 700;
    background: #4c63e6;
}

.x-post {
    background: var(--card-bg, #ffffff);
    border-radius: 14px;
    border: 1px solid var(--border-color, #e6e9ef);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin: 12px 8px 16px;
    padding: 18px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.x-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.x-post .post-content {
    margin: 12px 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
}

.x-verified {
    color: #1d9bf0;
    margin-left: 4px;
    font-size: 13px;
}

.x-actions {
    border-top: none;
    padding-top: 0;
    justify-content: space-between;
}

.x-actions button {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
}

.x-actions button:hover {
    background: rgba(67, 97, 238, 0.1);
}

/* Post Action Buttons */
.post-action-btn {
    background: transparent;
    border: none;
    color: #536471;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.post-action-btn:hover {
    background: rgba(67, 97, 238, 0.08);
}

.post-like-btn.liked {
    color: #ff2d55 !important;
}

.post-like-btn.liked i {
    color: #ff2d55;
}

.post-bookmark-btn.bookmarked {
    color: #6C6CE8 !important;
}

/* Em Post Comments Panel (X-style) */
.em-post-comments-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    justify-content: center;
    align-items: flex-end;
}

.em-comments-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.em-comments-sheet {
    position: relative;
    background: var(--card-bg, #fff);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

.em-comments-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.em-comments-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 50%;
}

.em-comments-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.em-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    min-height: 200px;
    max-height: 50vh;
}

.em-comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color, #e6e9ef);
    transition: background 0.15s;
}

.em-comment-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

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

.em-comment-body {
    flex: 1;
}

.em-comment-user {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.em-comment-text {
    font-size: 14px;
    color: var(--text-primary);
    margin-top: 4px;
    line-height: 1.4;
}

.em-comment-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.em-comment-input-area {
    border-top: 1px solid var(--border-color, #e6e9ef);
    padding: 12px 16px;
}

.em-comment-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.em-comment-input-wrapper textarea {
    flex: 1;
    border: 1px solid var(--border-color, #d0d0d0);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-primary);
    max-height: 100px;
}

.em-comment-input-wrapper textarea:focus {
    border-color: #6C6CE8;
}

.em-comment-send-btn {
    background: #6C6CE8;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.em-comment-send-btn:hover {
    background: #5a5ad4;
}

.em-comment-send-btn:disabled {
    background: #b0b0b0;
    cursor: not-allowed;
}

/* Em Post Share Modal */
.em-post-share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.em-share-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.em-share-sheet {
    position: relative;
    background: var(--card-bg, #fff);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.em-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #e6e9ef);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.em-share-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.em-share-header button {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
}

.em-share-link-area {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.em-share-link-area input {
    flex: 1;
    background: var(--bg-secondary, #f0f0f0);
    border: 1px solid var(--border-color, #d0d0d0);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
}

.em-share-link-area button {
    background: #ff3b5c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.em-share-link-area button:hover {
    background: #e6344c;
}

.em-share-users {
    overflow-y: auto;
    max-height: 300px;
}

.em-share-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 14px;
    color: var(--text-primary);
}

.em-share-user-item:hover {
    background: var(--bg-secondary, #f5f5f5);
}

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

@media screen and (max-width: 768px) {
    .em-gonderi-btn {
        top: 72px;
        right: 12px;
        padding: 8px 16px;
        font-size: 13px;
    }

}

.post-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.post-box textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--text-primary);
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.post-box textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.post-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.post-btn:hover {
    background: #3a56e4;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.post {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.user-info {
    display: flex;
    gap: 12px;
}

.avatar {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
}

.username {
    font-weight: 600;
    color: var(--text-primary);
}

.time {
    color: var(--text-secondary);
    font-size: 14px;
}

.post-content {
    margin: 16px 0;
    font-size: 16px;
    line-height: 1.6;
}

.post-content img {
    width: 100%;
    max-height: 500px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    object-fit: contain;
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.post-actions {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.post-actions button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-actions button:hover {
    color: var(--accent-color);
}

/* Keşfet */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.explore-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.explore-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(67, 97, 238, 0.2);
}

.card-image {
    font-size: 48px;
    margin-bottom: 16px;
}

.explore-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.explore-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Videolar */
.video-upload-box {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}

.video-upload-box h3 {
    color: var(--accent-color);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.upload-video-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin: 12px 0;
}

.upload-video-btn:hover {
    background: #3a56e4;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.upload-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: block;
}

.video-info {
    padding: 16px;
}

.video-meta {
    margin-bottom: 12px;
}

.video-uploader {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.video-uploader span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.video-info h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Arama */
.search-container {
    max-width: 640px;
    margin: 0 auto;
    padding-top: 40px;
}

.search-input-wrapper {
    position: relative;
    padding: 2px;
    border-radius: 50px;
    background: var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.1);
}

.search-input-wrapper::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(transparent,
            #4361ee 10%,
            #4cc9f0 25%,
            transparent 50%);
    animation: rotate-border 4s linear infinite;
    z-index: 0;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.search-input {
    width: 100%;
    background: var(--bg-primary);
    border: none;
    border-radius: 48px;
    padding: 14px 25px;
    color: var(--text-primary);
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    outline: none;
}

.search-input-wrapper:focus-within {
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.3);
    padding: 2.5px;
}

.search-input-wrapper:focus-within::before {
    animation-duration: 2s;
}

.search-results {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 10px;
    overflow: hidden;
    padding: 10px 0;
}

.search-results.search-results-empty {
    background: transparent;
    border: none;
    margin-top: 0;
    padding: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    margin: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.search-result-item:hover {
    background: var(--bg-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.08) !important;
    border-color: var(--accent-color) !important;
}

.search-result-item:active {
    transform: scale(0.98);
}

.search-result-item .result-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.search-result-item .result-info {
    flex: 1;
}

.search-result-item .result-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.search-result-item .result-meta {
    color: var(--text-secondary);
    font-size: 13px;
}

.search-view-btn {
    background: rgba(67, 97, 238, 0.1);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.search-chat-result {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.search-chat-result:hover {
    background: var(--bg-secondary);
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 15px;
    background: #0095f6;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid var(--bg-primary);
}

.search-hint {
    color: #888888;
}

/* Mesajlar */
.messages-container {
    display: flex;
    height: calc(100vh - 20px);
    gap: 24px;
    padding-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.chat-list {
    width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    box-shadow: var(--shadow);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), flex-grow 0.4s cubic-bezier(0.25, 1, 0.5, 1), max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.messages-container.no-active-chat .chat-list {
    width: 100%;
    flex-grow: 1;
    max-width: 100%;
}

.chat-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    align-items: center;
}

.chat-item:hover {
    background: var(--bg-secondary);
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.last-message {
    color: var(--text-secondary);
    font-size: 14px;
}

.chat-area {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    /* Varsayılan olarak ortala (Placeholder için) */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Taşmaları engelle */
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s, flex 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1), margin 0.4s, padding 0.4s, border-color 0.4s;
}

.messages-container.no-active-chat .chat-area {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    width: 0;
    min-width: 0;
    flex: 0 0 0;
    margin: 0;
    padding: 0;
    border: none;
    pointer-events: none;
}

.chat-area.active-chat {
    align-items: stretch;
    justify-content: flex-start;
    background: var(--bg-primary);
}

.chat-placeholder {
    color: #888888;
    font-size: 18px;
}

/* Handled via inline styles for maximum layout stability */
.profile-content-section {
    padding: 20px 0;
}


.profile-info h3 {
    font-size: 28px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.profile-info>p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.bio {
    font-size: 16px;
    color: var(--text-primary);
    margin: 20px 0;
}

.profile-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
}

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

.edit-profile-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-profile-btn:hover {
    background: #3a56e4;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Modern Button Styles */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background: #3a56e4;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

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

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

/* Card Styles */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Input Styles */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.p-1 {
    padding: 8px;
}

.p-2 {
    padding: 16px;
}

.p-3 {
    padding: 24px;
}

.p-4 {
    padding: 32px;
}

.d-flex {
    display: flex;
}

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

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.w-100 {
    width: 100%;
}

/* --- Mağaza (Market) Tasarımı --- */
.market-container {
    display: flex;
    height: calc(100vh - 100px);
    gap: 24px;
    margin-top: 20px;
}

.market-sidebar {
    width: 200px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

.market-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.market-nav-item {
    background: transparent;
    border: none;
    padding: 12px 16px;
    text-align: left;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.market-nav-item:hover {
    background: var(--bg-secondary);
    color: var(--accent-color);
}

.market-nav-item.active {
    background: var(--bg-secondary);
    color: var(--accent-color);
    font-weight: 600;
}

.market-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-search-container {
    display: flex;
    width: 100%;
    max-width: 500px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.market-search-container input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
}

.market-search-container input:focus {
    outline: none;
}

.market-search-container button {
    background: transparent;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    color: var(--text-secondary);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    overflow-y: auto;
    padding-bottom: 40px;
}

.market-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.market-card-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    overflow: hidden;
}

.market-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.market-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.market-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #fbc02d;
    font-weight: 700;
}

.market-card-price .coin-icon {
    width: 16px;
    height: 16px;
    background: #fbc02d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

/* Instagram Reels Style Fullscreen Video Viewer */
.reels-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: none;
    overflow: hidden;
}

/* New Responsive Profile Styles */
.profile-header-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.profile-avatar-container {
    width: 150px;
    height: 150px;
    background: #fafafa;
    border-radius: 50%;
    border: 1px solid #dbdbdb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

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

.profile-details {
    flex: 1;
    min-width: 300px;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.profile-username {
    font-size: 28px;
    font-weight: 300;
    margin: 0;
}

.profile-btn {
    background: #efefef;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.profile-btn:hover {
    background: #dbdbdb;
}

.profile-stats-list {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
    font-size: 16px;
}

.profile-stat-item strong {
    font-weight: 600;
}

.profile-realname {
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Handling */
@media (max-width: 768px) {
    .profile-header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .profile-actions {
        justify-content: center;
    }

    .profile-stats-list {
        justify-content: center;
        gap: 20px;
    }

    .profile-details {
        min-width: 100%;
    }
}



.reels-viewer.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reels-viewer-container {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.reels-viewer-container::-webkit-scrollbar {
    display: none;
}

.reel-item {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-video {
    width: auto;
    height: 100vh;
    max-width: 56vh;
    object-fit: contain;
    background: #000;
}

@media (min-width: 769px) {
    #videolar.reels-mode .reel-video,
    #video-gallery .reel-video {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
    }
}

.reel-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.reel-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.reel-controls {
    position: absolute;
    right: 12px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 10001;
    align-items: center;
}

.reel-control-btn {
    background: transparent;
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 0;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    position: relative;
}

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

.reel-control-btn.liked {
    color: #ff3b5c;
    animation: likeAnimation 0.4s ease;
}

@keyframes likeAnimation {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.reel-control-btn .like-icon,
.reel-control-btn>span:first-child {
    font-size: 28px;
    display: block;
    margin-bottom: 2px;
}

.reel-control-count {
    font-size: 11px;
    margin-top: 2px;
    font-weight: 600;
    color: white;
    text-align: center;
}

.reel-info {
    position: absolute;
    left: 12px;
    bottom: 80px;
    color: white;
    max-width: calc(100% - 100px);
    z-index: 10001;
}

.reel-uploader {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.reel-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1.5px solid white;
}

.reel-username {
    font-weight: 600;
    font-size: 13px;
    color: white;
}

.reel-title {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 400;
    line-height: 1.3;
}

.reel-description {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.3;
}

.reel-comments-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 70vh;
    background: var(--card-bg, #fff);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.reel-comments-section.active {
    transform: translateY(0);
}

.reel-comments-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color, #e6e9ef);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.reel-comments-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.reel-comments-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.reel-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    color: var(--text-primary);
}

.reel-comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.reel-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.reel-comment-content {
    flex: 1;
}

.reel-comment-username {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.reel-comment-text {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.reel-comment-time {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 4px;
}

.reel-comments-input-container {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color, #e6e9ef);
    display: flex;
    gap: 10px;
    background: var(--bg-secondary, #f5f5f5);
}

.reel-comments-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    font-size: 14px;
}

.reel-comments-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.reel-comments-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.reel-comments-send {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.reel-comments-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.reel-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 12px;
    opacity: 0.6;
    animation: bounce 2s infinite;
    z-index: 10001;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Modern Fullscreen Video Modal */
.fullscreen-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px;
    /* Smaller video area */
    max-height: 90vh;
}

.video-swiper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-video {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    outline: none;
    border-radius: 8px;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.video-info-overlay {
    flex: 1;
}

.video-uploader-overlay {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.username {
    font-weight: bold;
    font-size: 16px;
}

.video-title {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

.video-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

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

.action-icon {
    font-size: 28px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-count {
    font-size: 12px;
    font-weight: 600;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Comment Modal */
.comment-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 500px;
    background: white;
    z-index: 1002;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.comment-modal.active {
    transform: translateY(0);
}

.comment-container {
    padding: 20px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.close-comment {
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-comment:hover {
    background: #f0f0f0;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.comment-content {
    flex: 1;
}

.comment-username {
    font-weight: bold;
    font-size: 14px;
    color: var(--text-primary);
}

.comment-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.comment-input-area {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.comment-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.comment-send-btn {
    background: #00d4ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.comment-send-btn:hover {
    background: #00b0d9;
}

/* Modern Video Gallery with Horizontal Scroll */
.video-grid {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    scrollbar-width: thin;
    -ms-overflow-style: thin;
}

.video-grid.grabbing {
    cursor: grabbing;
}

/* Video slide animations */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.video-grid::-webkit-scrollbar {
    height: 6px;
}

.video-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.video-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.video-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

#video-gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-x: visible;
    overflow-y: auto;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    flex: 0 0 auto;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #000;
}

.video-info {
    padding: 12px;
}

.video-meta {
    margin-bottom: 8px;
}

.video-uploader {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.video-uploader span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.video-info h4 {
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Video Save Button */
.video-actions-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.save-video-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-video-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.save-icon {
    font-size: 18px;
    color: white;
}

.save-video-btn.saved .save-icon {
    color: #ff3b5c;
}

/* Profile Tab Styles */
.profile-content-section {
    margin-top: 20px;
}

.profile-tab.active-tab {
    color: #1a1a1a !important;
    border-top: 1px solid #1a1a1a !important;
}

/* Animation for tab switching */
.profile-content-section {
    transition: opacity 0.3s ease;
}

/* Typing Animation */
@keyframes dot-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.dot-animate {
    animation: dot-bounce 0.6s infinite ease-in-out;
    font-size: 16px;
    font-weight: bold;
    color: #666;

}

/* Settings & Feedback Modals */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.dark-theme .settings-modal {
    background: linear-gradient(135deg, #0f0f12 0%, #1a1a1e 100%);
}

.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-close-btn {
    font-size: 32px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

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

.settings-modal-content {
    background-color: var(--bg-primary);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feedback-modal-content {
    background-color: var(--bg-primary);
    width: 600px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    /* Auto height based on content */
}

.modal-header {
    padding: 0 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    background: transparent;
    position: relative;
}

.modal-header h3 {
    display: none !important;
}

.modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
    /* Light gray background like screenshot */
}

.dark-theme .modal-body {
    background: #000;
}

/* Section Header */
.settings-section-header {
    padding: 24px 20px 8px 20px;
    font-size: 11px;
    font-weight: 700;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.settings-modal.detail-view .settings-sidebar {
    display: none;
    /* Hide sidebar in detail view on mobile-like layout */
}

.settings-nav-item {
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    gap: 15px;
}

.settings-nav-item:hover {
    background: var(--bg-secondary);
    transform: none;
    box-shadow: none;
}

.settings-item-icon {
    width: 36px;
    height: 36px;
    background: #f2f2f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dark-theme .settings-item-icon {
    background: #1c1c1e;
}

.settings-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.settings-item-subtitle {
    font-size: 12px;
    color: #8e8e93;
}

.settings-item-arrow {
    color: #c7c7cc;
    font-size: 18px;
}

/* Footer Links */
.settings-footer-actions {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-action-link {
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.settings-action-link.danger {
    color: #ff3b30;
}

.settings-action-link:hover {
    opacity: 0.8;
}

.settings-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
    border: none;
    background: transparent;
    box-shadow: none;
}

.settings-back-btn span {
    font-size: 24px;
    color: var(--text-primary);
}

.settings-back-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.05);
}

.settings-modal.detail-view .settings-back-btn {
    display: flex;
}

/* Settings Content area overhaul */
.settings-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 80px 60px;
    background: var(--bg-primary);
    display: none;
}

.settings-modal.detail-view .settings-content-area {
    display: block;
}

.settings-tab-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

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

.settings-tab-content .settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.setting-item {
    margin-bottom: 0;
    /* Handled by grid gap */
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.setting-item.full-width {
    grid-column: 1 / -1;
}

.setting-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 15px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

textarea.form-control {
    min-height: 150px;
    line-height: 1.6;
}

.settings-tab-content .btn-primary {
    width: auto;
    min-width: 200px;
    padding: 18px 40px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    margin-top: 30px;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
    float: right;
}

.settings-tab-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.4);
    filter: brightness(1.1);
}

.settings-tab-content .btn-primary:active {
    transform: translateY(-1px);
}

/* Google Style Password Flow */
.google-style-container {
    background: #000;
    color: white;
    padding: 48px;
    border-radius: 28px;
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    border: 1px solid #3c4043;
    animation: fadeIn 0.3s ease;
}

.google-user-profile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px 4px 4px;
    border: 1px solid #3c4043;
    border-radius: 20px;
    margin-bottom: 24px;
    cursor: pointer;
}

.google-user-profile img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.google-user-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.google-welcome-text {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 32px;
}

.google-subtitle {
    font-size: 16px;
    color: white;
    margin-bottom: 20px;
}

.google-input-group {
    margin-bottom: 32px;
}

.google-input {
    width: 100%;
    background: transparent;
    border: 1px solid #5f6368;
    border-radius: 4px;
    padding: 13px 15px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.google-input:focus {
    border-color: #8ab4f8;
    border-width: 2px;
    padding: 12px 14px;
}

.google-checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 14px;
    cursor: pointer;
}

.google-checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: #8ab4f8;
}

.google-footer-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.google-link-btn {
    color: #8ab4f8;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.google-next-btn {
    background: #8ab4f8;
    color: #202124;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.google-next-btn:hover {
    background: #9cc3ff;
}

.google-next-btn.secondary {
    background: transparent;
    color: #8ab4f8;
    border: 1px solid #3c4043;
}

.google-next-btn.secondary:hover {
    background: rgba(138, 180, 248, 0.04);
}

.google-options-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #3c4043;
}

.google-option-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #3c4043;
    cursor: pointer;
    transition: background 0.2s;
}

.google-option-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.google-option-icon {
    font-size: 20px;
}

.settings-tab-content h4 {
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 500;
}

.setting-item {
    margin-bottom: 24px;
    max-width: 400px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.setting-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* Dark theme specific adjustments */
.dark-theme .slider {
    background-color: #555;
}

.dark-theme .toggle-switch input:checked+.slider {
    background-color: var(--accent-color);
}

/* UrtiAi Modern Chat Styles */
#urtiai-page {
    height: calc(100vh - 48px);
    display: none;
    flex-direction: column;
}

#urtiai-page.active {
    display: flex;
}

#urtiai-chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-primary);
    border: none !important;
    box-shadow: none !important;
}

.urtiai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-primary);
}

.urtiai-input-wrapper {
    padding: 24px 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.urtiai-input-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.urtiai-input-container:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    background: var(--bg-primary);
}

.urtiai-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
}

.urtiai-send-button {
    background: var(--accent-color);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 18px;
}

.urtiai-send-button:hover {
    transform: scale(1.05);
    background: #3a56e4;
}

.urtiai-message {
    max-width: 75%;
    padding: 14px 20px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.urtiai-message.received {
    align-self: flex-start;
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 4px;
}

.urtiai-message.sent {
    align-self: flex-end;
    background: var(--accent-color);
    color: #121212;
    border-bottom-right-radius: 4px;
}

/* ==========================================================================
   Instagram-Style Mobile Redesign
   ========================================================================== */

/* Mobil Üst Bar - Kaldırıldı (alt navigasyon barına taşındı) */
.mobile-top-bar {
    display: none !important;
}

.instagram-logo {
    font-family: 'Lobster', cursive;
    font-size: 26px;
    font-weight: 500;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.mobile-actions {
    display: flex;
    gap: 18px;
}

.mobile-action-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-action-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ed4956;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    display: block;
    /* Dinamik gösterilecek */
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 66px;
}

.story-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    position: relative;
}

.story-avatar.watched {
    background: var(--border-color);
}

.story-avatar.plus {
    background: none;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    object-fit: cover;
}

.add-story {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #0095f6;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.story-item span {
    font-size: 11px;
    color: var(--text-primary);
    max-width: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Desktop-only helpers */
.desktop-only {
    display: block;
}

@media screen and (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-top-bar {
        display: none !important;
    }

    /* Eski mobil hikaye ezicileri silindi */

    .container {
        flex-direction: column;
        height: auto;
        overflow: visible;
        min-height: 100vh;
    }

    body {
        overflow: auto !important;
        height: auto !important;
    }

    /* Sol Menü -> Alt Menü Dönüşümü (Instagram Style) */
    .sidebar {
        width: 100%;
        height: 56px;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 1000;
        padding: 0 4px;
        background: var(--bg-primary) !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-right: none;
        border-top: 1px solid var(--border-color);
        box-shadow: none;
        display: flex;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        overflow: visible;
    }

    .logo,
    .logout-btn {
        display: none !important;
    }

    .menu {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        flex: 1;
        margin: 0;
        height: 100%;
        gap: 0;
    }

    .sidebar-more-container {
        position: static;
        width: 50px;
        height: 100%;
        padding: 0;
        background: transparent !important;
        border-top: none !important;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 0 !important;
    }

    .more-menu-wrapper {
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .more-btn {
        height: 40px;
        width: 40px;
        font-size: 16px;
        opacity: 0.6;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .dark-theme .more-btn {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-secondary);
    }

    .sidebar-submenu {
        bottom: 75px;
        left: auto;
        right: 15px;
        width: 180px;
        border-radius: 18px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        border: 1px solid var(--border-color);
        background: var(--bg-primary);
    }

    .menu-item {
        flex: 1;
        justify-content: center;
        align-items: center;
        padding: 0;
        background: none !important;
        border-radius: 0;
        color: var(--text-primary);
        transition: transform 0.1s ease;
        display: flex;
        /* Tüm sekmeler mobilde gorunur */
    }

    /* Mobil Alt Bar Sırası (Desktop sidebar sırasıyla) */
    .menu-item[data-page="urtiai-page"] {
        order: 1;
    }

    .menu-item.game-mode-btn {
        order: 2;
    }

    .menu-item[data-page="ana-sayfa"] {
        order: 3;
    }

    .menu-item[data-page="bildirimler"] {
        order: 4;
    }

    .menu-item[data-page="videolar"] {
        order: 5;
    }

    .menu-item[data-page="arama"] {
        order: 6;
    }

    .menu-item[data-page="mesajlar"] {
        order: 7;
    }

    .menu-item[data-page="market-page"] {
        order: 8;
    }

    .menu-item[data-page="profil"] {
        order: 9;
    }

    .menu-item:active {
        transform: scale(0.9);
    }

    .menu-item.active {
        color: var(--accent-color);
        font-weight: 600;
        position: relative;
    }

    .menu-item.active .icon {
        transform: translateY(-2px);
        color: var(--accent-color) !important;
    }

    .menu-item.active::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        background: var(--accent-color);
        border-radius: 50%;
    }

    .menu-item .icon {
        font-size: 18px;
        width: 28px;
        height: 28px;
        margin-right: 0;
    }

    .menu-item .icon img {
        width: 18px;
        height: 18px;
    }

    .menu-item .text {
        display: none;
        /* Instagram tarzı sadece ikon */
    }

    /* Tüm sekmeler mobilde gorunur, sadece login butonu gizli */
    .menu-item#login-sidebar-btn {
        display: none !important;
    }

    /* Sağ İçerik Alanı */
    .content {
        width: 100% !important;
        padding: 0 !important;
        padding-bottom: 56px !important;
        /* Bottom bar height */
        margin-top: 0;
        height: auto;
        min-height: calc(100vh - 56px);
        overflow: visible;
    }

    .page {
        padding: 0;
    }

    /* Feed ve Kartlar (Instagram Style) */
    .feed {
        max-width: 100%;
        padding: 0;
    }

    .post-box {
        margin: 8px 12px;
        border-radius: 12px;
        background: var(--bg-secondary);
        border: none;
        box-shadow: none;
        padding: 12px;
    }

    .post {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border-color);
        margin-bottom: 8px;
        padding: 12px 0 0 0;
        box-shadow: none;
    }

    .post-header {
        padding: 0 12px 8px 12px;
    }

    .post-content {
        padding: 0 12px 12px 12px;
        margin: 0;
    }

    .post-actions {
        padding: 12px;
        gap: 16px;
    }

    .post-actions button {
        font-size: 20px;
        gap: 4px;
    }

    /* Profil Mobilde */
    #profil {
        padding: 12px !important;
        margin-top: 0 !important;
    }

    .profile-header-container {
        flex-direction: row;
        gap: 20px;
        margin-bottom: 20px;
    }

    .profile-avatar-container {
        width: 80px;
        height: 80px;
    }

    .profile-username {
        font-size: 20px;
    }

    .profile-stats-list {
        display: flex;
        justify-content: space-around;
        padding: 12px 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        width: 100vw;
        margin-left: -12px;
    }

    .profile-stat-item {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 13px;
        color: var(--text-secondary);
    }

    .profile-stat-item strong {
        color: var(--text-primary);
        font-size: 16px;
    }

    /* Mesajlar & Arama Mobilde */
    .messages-container {
        margin-top: 10px;
        height: calc(100vh - 100px);
    }

    .search-container {
        margin-top: 10px;
        padding: 0 12px;
    }
}

/* --- Infinite Video UI --- */
.video-card {
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail-container {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fullscreen-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px);
}

.video-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.nav-btn:hover {
    background: var(--accent-color) !important;
    transform: scale(1.1);
}


/* --- Server Hero Card Styles --- */
.server-selection-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
    perspective: 1000px;
}

.server-hero-card {
    flex: 1;
    min-width: 350px;
    background: rgba(15, 15, 25, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px) saturate(180%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.server-hero-card.active {
    border-color: #00d4ff;
    background: rgba(15, 15, 25, 0.7);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.server-hero-card.active .server-hero-icon {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.server-hero-card.active .server-badge {
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.server-hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 55%);
    transform: rotate(-45deg);
    transition: all 0.6s;
    pointer-events: none;
}

.server-hero-card:hover::after {
    left: 100%;
}

.server-hero-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(2deg);
    border-color: rgba(0, 212, 255, 0.8);
    background: rgba(15, 15, 25, 0.6);
    box-shadow: 0 40px 80px rgba(0, 212, 255, 0.15),
        0 0 20px rgba(0, 212, 255, 0.4);
}

.server-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 60%);
    opacity: 0.6;
    z-index: 0;
}

.server-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.server-badge {
    align-self: flex-start;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
}

.server-hero-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.server-hero-icon {
    font-size: 44px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.server-hero-info {
    text-align: left;
}

.server-hero-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #fff, #b2b2b2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.server-hero-desc {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.server-hero-stats {
    display: flex;
    gap: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
}

.hero-stat i {
    color: #00d4ff;
}

/* ==========================================================================
   UrtiAİ Premium Interface Styles (Ported to Phone)
   ========================================================================== */

#ai-messages::-webkit-scrollbar {
    display: none;
}

.ai-msg-bubble {
    position: relative;
    animation: slideInLeft 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.user-msg-bubble {
    position: relative;
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.code-block-wrapper.phone-code {
    position: relative;
    background: #1e242c;
    border-radius: 12px;
    margin: 10px 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.code-block-wrapper.phone-code pre {
    margin: 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    color: #e1e1e1;
    scrollbar-width: none;
}

.copy-btn-animated.phone-copy-btn {
    position: absolute;
    top: -12px;
    right: 8px;
    background: #00d4ff;
    border: none;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 10px;
    color: #000;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
    z-index: 10;
    animation: slideDownFade 0.5s ease forwards;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.code-block-wrapper.phone-code:hover .copy-btn-animated.phone-copy-btn,
.ai-msg-bubble:not(:has(.thinking-container)) .code-block-wrapper.phone-code .copy-btn-animated.phone-copy-btn {
    opacity: 1;
    transform: translateY(0);
}

.thinking-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.status-text {
    font-size: 11px;
    color: #888;
    font-style: italic;
    font-weight: 500;
}

.dots {
    display: flex;
    gap: 4px;
}

.thinking-dot {
    width: 6px;
    height: 6px;
    background: #00d4ff;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1.0);
        opacity: 1;
    }
}

#ai-photo-btn:active {
    transform: scale(0.9);
}

#ai-send-btn:active {
    transform: rotate(-45deg) scale(0.9);
}

/* Chat Mentions */
.mention {
    color: #ffd700;
    font-weight: bold;
    background: rgba(255, 215, 0, 0.1);
    padding: 0 4px;
    border-radius: 4px;
}

.chat-message.mentioned {
    animation: mention-pulse 2s infinite alternate;
}

@keyframes mention-pulse {
    from {
        background-color: rgba(255, 215, 0, 0.1);
    }

    to {
        background-color: rgba(255, 215, 0, 0.3);
    }
}

/* =========================================
   PREMIUM CHAT STYLES (Overrides)
   ========================================= */

.chat-area {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    /* Subtle pattern background for premium feel */
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

.chat-area.active-chat {
    align-items: stretch;
    justify-content: flex-start;
}

.chat-header {
    padding: 15px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    z-index: 10;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
}

.message {
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 70%;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease;
}

.message.received {
    align-self: flex-start;
    background: #ffffff;
    color: #000;
    border-bottom-left-radius: 4px;
    border: 1px solid #eef0f2;
}

.message.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent-color), #3a56e4);
    color: white;
    border-bottom-right-radius: 4px;
    border: none;
}

.chat-input-area {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 80px;
}

.chat-input-area input {
    flex: 1;
    padding: 14px 24px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    font-size: 15px;
    transition: all 0.3s ease;
}

.chat-input-area input:focus {
    background: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
    outline: none;
}

.msg-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
}

.msg-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.35);
}

.chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #9ca3af;
    text-align: center;
}

.chat-placeholder::before {
    content: '';
    font-size: 48px;
    opacity: 0.5;
}


/* Notifications */
.notification-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notification-item.read {
    opacity: 0.6;
    background: #f8f9fa;
    box-shadow: none;
}

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

.notification-avatar-system {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    object-fit: contain;
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: #888;
}

.notification-message-bubble {
    margin-top: 6px;
    background: var(--bg-secondary, #f0f0f0);
    border-radius: 12px;
    padding: 8px 12px;
    max-width: 100%;
    font-size: 13px;
    color: var(--text-primary, #333);
    border-bottom-left-radius: 4px;
    word-wrap: break-word;
}

.notification-item:has(.notification-message-bubble) {
    align-items: flex-start;
}

.notification-type-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: absolute;
    bottom: -5px;
    right: -5px;
    border: 2px solid white;
}

/* Modern Durum/Bildirimler Sayfasi */
.notifications-shell {
    max-width: 860px;
    margin: 0 auto;
    padding: 18px 8px 30px;
}

.notifications-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.08), rgba(0, 0, 0, 0));
    margin-bottom: 14px;
}

.notifications-hero h3 {
    margin: 0 0 4px;
    font-size: 24px;
}

.notifications-hero p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.notifications-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(29, 155, 240, 0.12);
    color: #1d9bf0;
    font-size: 13px;
    font-weight: 700;
}

.notifications-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    border-top: none;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg);
}

.notif-chip {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notif-chip:hover {
    color: var(--accent-color);
    background: rgba(67, 97, 238, 0.08);
}

.notif-chip.active {
    background: var(--accent-color);
    color: #fff;
}

.notifications-container {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--card-bg);
    overflow: hidden;
}

#notification-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#notification-list .notification-item {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    padding: 16px 18px;
}

#notification-list .notification-item:last-child {
    border-bottom: none;
}

/* Login Modal Styles */
.login-form-container {
    padding: 20px 0;
}

.tab-container {
    display: flex;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 5px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    background: white;
    color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.tab-btn:hover:not(.active) {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
}

.form-container {
    animation: fadeIn 0.3s ease;
}

.form-container.hidden {
    display: none;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-color), #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.auth-btn:active {
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Settings Icon Styling */
.settings-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    width: 32px;
    height: 32px;
}

.setting-item label i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    color: var(--accent-color);
    opacity: 0.8;
}

.google-option-icon i {
    font-size: 20px;
}

/* ==========================================================================
   Em Düşünceleri – Compose Box (Ana Sayfa)
   ========================================================================== */

/* Açık hâl */
.em-compose-open {
    padding: 4px 14px 10px;
}

.em-compose-open .x-compose-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

#em-post-content {
    flex: 1;
    width: 100%;
    min-height: 80px;
    max-height: 220px;
    border: none;
    outline: none;
    resize: none;
    font-size: 15px;
    line-height: 1.5;
    background: transparent;
    color: var(--text-primary, #1a1a1a);
    padding: 4px 0;
    font-family: inherit;
}

#em-post-content::placeholder {
    color: #8899a6;
}

/* Araçlar satırı */
.x-compose-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-color, #e8e8e8);
    margin-top: 4px;
}

.x-compose-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color, #4361ee);
    font-size: 18px;
}

.x-compose-tools span,
.x-compose-tools i {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.x-compose-tools span:hover,
.x-compose-tools i:hover {
    opacity: 1;
}

/* Medya Ekle butonu */
.em-compose-plus-btn {
    background: rgba(67, 97, 238, 0.08);
    border: 1px solid rgba(67, 97, 238, 0.2);
    color: var(--accent-color, #4361ee);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 7px;
    opacity: 1;
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
}

.em-compose-plus-btn:hover {
    background: rgba(67, 97, 238, 0.14);
    border-color: rgba(67, 97, 238, 0.35);
    transform: translateY(-1px);
}

/* İptal butonu */
.em-compose-cancel-btn {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.em-compose-cancel-btn:hover {
    background: #f0f0f0;
    border-color: #aaa;
}

/* Gönder butonu */
.em-send-btn {
    background: linear-gradient(135deg, #4361ee, #00b4d8);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.28);
}

.em-send-btn:disabled {
    background: #b0bec5;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.em-send-btn:not(:disabled):hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(67, 97, 238, 0.35);
}

.em-send-btn:not(:disabled):active {
    transform: translateY(0);
}

/* Home feed polish: fixed story rail + modern clean visual system */
:root {
    --home-sidebar-width: 180px;
    --home-sidebar-collapsed-width: 60px;
    --home-feed-width: 680px;
    --home-story-height: 110px;
    --home-surface: #ffffff;
    --home-page-bg: #fbfcfe;
    --home-border: #dbe1ea;
    --home-soft-border: #edf1f6;
    --home-text: #0f172a;
    --home-muted: #64748b;
    --home-accent: #4361ee;
    --home-accent-soft: #eef2ff;
    --home-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--home-page-bg);
    color: var(--home-text);
    overflow: hidden;
}

.container {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: var(--home-page-bg);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--home-sidebar-width);
    height: 100vh;
    z-index: 900;
    background: var(--home-surface);
    border-right: 1px solid var(--home-border);
    box-shadow: none;
}

.sidebar.collapsed {
    width: var(--home-sidebar-collapsed-width);
    min-width: var(--home-sidebar-collapsed-width);
}

.content {
    flex: none;
    width: calc(100% - var(--home-sidebar-width));
    height: 100vh;
    min-height: 0;
    margin-left: var(--home-sidebar-width);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 24px 40px;
    background: var(--home-page-bg);
    scrollbar-gutter: stable;
}

.sidebar-collapsed .content {
    width: calc(100% - var(--home-sidebar-collapsed-width));
    margin-left: var(--home-sidebar-collapsed-width);
}

#ana-sayfa.active {
    min-height: 100%;
}

#ana-sayfa .x-home-feed {
    width: min(var(--home-feed-width), 100%);
    max-width: var(--home-feed-width);
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

#global-stories-bar {
    position: sticky;
    top: 0;
    left: max(calc(var(--home-sidebar-width) + 24px), calc(var(--home-sidebar-width) + 50vw - (var(--home-sidebar-width) / 2) - (var(--home-feed-width) / 2)));
    z-index: 1200;
    width: min(var(--home-feed-width), calc(100vw - var(--home-sidebar-width) - 48px));
    min-height: var(--home-story-height);
    height: var(--home-story-height);
    padding: 16px 14px 12px;
    display: flex !important;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--home-border);
    border-top: 0;
    scrollbar-width: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
    overflow-y: visible;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

#global-stories-bar.stories-hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

.sidebar-collapsed #global-stories-bar {
    left: max(calc(var(--home-sidebar-collapsed-width) + 24px), calc(var(--home-sidebar-collapsed-width) + 50vw - (var(--home-sidebar-collapsed-width) / 2) - (var(--home-feed-width) / 2)));
    width: min(var(--home-feed-width), calc(100vw - var(--home-sidebar-collapsed-width) - 48px));
}

#stories-list {
    display: flex;
    flex-direction: row;
    gap: 14px;
    min-height: 78px;
    align-items: center;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
}

#global-stories-bar .story-item {
    min-width: 66px;
    gap: 6px;
}

#global-stories-bar .story-avatar {
    width: 62px;
    height: 62px;
    padding: 2px;
    background: linear-gradient(135deg, #8bbcff, #5b6ff0);
    box-shadow: 0 0 0 4px #eef6ff;
    overflow: visible;
}

#global-stories-bar .story-avatar.plus {
    background: linear-gradient(135deg, #dbeafe, #eef2ff);
}

#global-stories-bar .story-avatar img {
    border: 2px solid var(--home-surface);
}

#global-stories-bar .add-story {
    width: 22px;
    height: 22px;
    right: -3px;
    bottom: -3px;
    background: var(--home-accent);
    border-color: var(--home-surface);
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(67, 97, 238, 0.35);
    padding: 0;
    cursor: pointer;
}

#global-stories-bar .story-item span {
    color: var(--home-text);
    font-size: 11px;
    font-weight: 700;
}

#em-compose-box {
    margin-top: 16px;
    margin-bottom: 20px;
}

#ana-sayfa .x-compose-box,
#ana-sayfa .x-post {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 8px;
    box-shadow: var(--home-shadow);
}

#ana-sayfa .x-compose-box {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 24px;
    padding: 24px 22px;
}

#ana-sayfa .em-compose-open {
    padding: 0;
}

#ana-sayfa .x-compose-top {
    gap: 14px;
    margin-bottom: 14px;
}

#ana-sayfa .avatar,
#ana-sayfa .x-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background: #f8fafc;
    border: 1px solid var(--home-border);
    color: var(--home-text);
    font-size: 18px;
    font-weight: 700;
}

#em-post-content {
    min-height: 104px;
    padding: 10px 0;
    color: var(--home-text);
    font-size: 16px;
    line-height: 1.55;
}

#em-post-content::placeholder {
    color: #7c8da3;
}

#ana-sayfa .x-compose-actions {
    margin-left: 58px;
    padding-top: 14px;
    border-top: 1px solid var(--home-border);
}

#ana-sayfa .x-compose-tools {
    gap: 12px;
    color: var(--home-accent);
}

#ana-sayfa .em-compose-plus-btn,
#ana-sayfa .em-compose-cancel-btn,
#ana-sayfa .em-send-btn {
    min-height: 36px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

#ana-sayfa .em-compose-plus-btn {
    background: var(--home-accent-soft);
    border: 1px solid rgba(67, 97, 238, 0.26);
    color: var(--home-accent);
    padding: 7px 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

#ana-sayfa .em-compose-cancel-btn {
    background: var(--home-surface);
    border: 1px solid #cfd6df;
    color: #334155;
    padding: 7px 16px;
}

#ana-sayfa .em-send-btn {
    min-width: 92px;
    justify-content: center;
    padding: 8px 20px;
    background: var(--home-accent);
    box-shadow: none;
}

#ana-sayfa .em-send-btn:disabled {
    background: #cbd5df;
    color: #ffffff;
    opacity: 1;
}

#ana-sayfa .x-post {
    margin: 0 0 20px;
    padding: 20px;
}

#ana-sayfa .x-post:hover {
    transform: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

#ana-sayfa .post-header {
    margin-bottom: 14px;
}

#ana-sayfa .username {
    color: var(--home-text);
    font-size: 15px;
    font-weight: 800;
}

#ana-sayfa .time {
    color: var(--home-muted);
    font-size: 14px;
}

#ana-sayfa .x-post .post-content {
    margin: 12px 0 14px;
    color: var(--home-text);
    font-size: 15px;
    line-height: 1.6;
}

#ana-sayfa .post-actions {
    padding-top: 14px;
    border-top: 1px solid var(--home-border);
    gap: 0;
    justify-content: space-between;
}

#ana-sayfa .post-actions button {
    min-width: 44px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #456176;
    font-size: 14px;
}

#ana-sayfa .post-actions button:hover {
    background: var(--home-accent-soft);
    color: var(--home-accent);
}

@media screen and (max-width: 768px) {
    body {
        overflow: hidden !important;
        height: 100vh !important;
    }

    .container {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    .content {
        width: 100% !important;
        height: 100vh;
        min-height: 0;
        margin-left: 0;
        overflow-y: auto;
        padding: 0 0 78px !important;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
        height: 65px;
        position: fixed;
        inset: auto 0 0 0;
        z-index: 1000;
        padding: 0 12px;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        border-right: 0;
        border-top: 1px solid var(--home-border);
        overflow: visible;
    }

    #global-stories-bar,
    .sidebar-collapsed #global-stories-bar {
        top: 50px;
        left: 0;
        width: 100%;
        height: 96px;
        min-height: 96px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        padding: 12px;
    }

    #em-compose-box {
        margin-top: 16px;
    }


    #ana-sayfa .x-compose-box {
        margin-left: 12px;
        margin-right: 12px;
        padding: 18px 14px;
    }

    #ana-sayfa .x-compose-actions {
        margin-left: 0;
        align-items: flex-end;
        gap: 10px;
    }

    #ana-sayfa .x-compose-tools {
        flex-wrap: wrap;
        gap: 8px;
    }

    #ana-sayfa .x-post {
        margin: 0 0 12px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.story-create-modal {
    z-index: 100000;
    padding: 20px;
}

.story-create-card {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}

.story-create-header h3 {
    color: var(--home-text, #0f172a);
}

#story-create-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#story-create-close:hover {
    background: #e2e8f0;
}

#story-create-submit-btn:disabled {
    background: #cbd5df;
    color: #ffffff;
    cursor: not-allowed;
}

.em-media-preview {
    position: relative;
}

.em-media-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
