/* ===================================
   UMAY V.01 — Ana Stil Dosyası
   Milli Yapay Zeka Mimarisi
   =================================== */

:root {
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

body {
    font-family: var(--font-main);
    background-color: #07080d;
    color: #e2e8f0;
    overflow: hidden;
    touch-action: manipulation;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #36374a;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #50526e;
}

#messages-container::-webkit-scrollbar {
    width: 8px;
}

#messages-container::-webkit-scrollbar-track {
    background: rgba(10, 11, 20, 0.3);
    border-radius: 9999px;
}

#messages-container::-webkit-scrollbar-thumb {
    background: #4a4d6b;
    border-radius: 9999px;
    border: 2px solid #07080d;
}

#messages-container::-webkit-scrollbar-thumb:hover {
    background: #e11d48;
}

/* ---- Scrollbar Gizleyici (Kaydırma Fonksiyonu Korunur) ---- */
.no-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* ---- Badge Stilleri ---- */
.tr-flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(227, 10, 23, 0.16), rgba(227, 10, 23, 0.05));
    border: 1px solid rgba(227, 10, 23, 0.45);
    color: #fecdd3;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(227, 10, 23, 0.2);
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.35);
    color: #fda4af;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---- Modal Animasyonları ---- */
.modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100 !important;
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content-box {
    transform: scale(0.94) translateY(10px);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.modal-backdrop.open .modal-content-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ---- Markdown / Prose Stilleri ---- */
/* Mesaj Balonları ve Taşma Önleme */
.user-msg-bubble {
    word-break: break-word;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    hyphens: auto;
}

.prose-chat {
    line-height: 1.7;
    font-size: 0.84rem;
    color: #e2e8f0;
    word-break: break-word;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.prose-chat strong,
.prose-chat b {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.4);
}

.prose-chat p {
    margin-bottom: 0.65rem;
}

.prose-chat p:last-child {
    margin-bottom: 0;
}

.prose-chat h1,
.prose-chat h2,
.prose-chat h3 {
    color: #fff;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.prose-chat ul,
.prose-chat ol {
    padding-left: 1.25rem;
    margin-bottom: 0.65rem;
}

.prose-chat ul {
    list-style-type: disc;
}

.prose-chat ol {
    list-style-type: decimal;
}

.prose-chat li {
    margin-bottom: 0.25rem;
}

.prose-chat code:not(pre code) {
    font-family: var(--font-code);
    background: rgba(244, 63, 94, 0.12);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.25);
    padding: 0.15rem 0.35rem;
    border-radius: 0.375rem;
    font-size: 0.8em;
}

.prose-chat pre {
    background: #090a0f !important;
    border: 1px solid #272738;
    border-radius: 0.75rem;
    padding: 0.85rem;
    overflow-x: auto;
    margin: 0.75rem 0;
    font-family: var(--font-code);
    font-size: 0.8em;
    color: #f1f5f9;
}

/* ---- GFM Tablo Stilleri ---- */
.prose-chat .table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 0.85rem 0;
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 19, 26, 0.7);
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35);
    -webkit-overflow-scrolling: touch;
}

.prose-chat table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.8rem;
    color: #d4d4d8;
}

.prose-chat thead th {
    background: rgba(26, 27, 36, 0.95);
    color: #f4f4f5;
    font-weight: 600;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.prose-chat tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.15s ease;
}

.prose-chat tbody tr:last-child {
    border-bottom: none;
}

.prose-chat tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.prose-chat tbody tr:hover {
    background: rgba(244, 63, 94, 0.08);
}

.prose-chat tbody td {
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    border-bottom: 1px solid #1f2033;
    vertical-align: top;
    line-height: 1.5;
}

.prose-chat tbody tr:last-child td {
    border-bottom: none;
}

/* ---- Ambient Bayrak Katmanı ---- */
.ambient-flag-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

#landing-view .ambient-flag-layer {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.ambient-flag-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.055;
    filter: contrast(135%) grayscale(15%);
    mix-blend-mode: screen;
}

.ambient-glow {
    background: radial-gradient(circle at 60% 18%, rgba(227, 10, 23, 0.08), transparent 60%);
}

/* Landing Alt Kırmızı Parıltı (Footer'a vuran sıcak Türk kırmızısı - yalnızca ortalanmış) */
.landing-footer-glow {
    position: fixed;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 380px;
    background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(227, 10, 23, 0.14), transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Animasyonlu Landing Input ---- */
.landing-input-card {
    position: relative;
    border-radius: 1.25rem;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.4), rgba(255, 255, 255, 0.06), rgba(225, 29, 72, 0.5), rgba(255, 255, 255, 0.04));
    background-size: 300% 300%;
    animation: borderShimmer 6s ease-in-out infinite;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(225, 29, 72, 0.15);
    transition: all 0.3s ease;
}

.landing-input-card:hover {
    box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.7), 0 0 30px -2px rgba(225, 29, 72, 0.3);
}

.landing-input-card:focus-within {
    background: linear-gradient(135deg, #f43f5e, rgba(255, 255, 255, 0.15), #e11d48, rgba(255, 255, 255, 0.1));
    background-size: 300% 300%;
    animation: borderShimmer 3s ease-in-out infinite;
    box-shadow: 0 15px 40px -8px rgba(0, 0, 0, 0.8), 0 0 35px 2px rgba(244, 63, 94, 0.35);
}

.landing-input-inner {
    display: flex;
    align-items: center;
    background: rgba(14, 15, 25, 0.92);
    backdrop-filter: blur(16px);
    border-radius: calc(1.25rem - 1.5px);
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
}

@keyframes borderShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ---- Tooltip ---- */
.custom-tooltip {
    position: fixed;
    background: #141521;
    color: #f1f5f9;
    border: 1px solid #2a2b3d;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
    pointer-events: none !important;
    z-index: 999999 !important;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.custom-tooltip.show {
    opacity: 1;
    transform: scale(1);
}

/* ---- Voice Modal ---- */
#voice-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: rgba(6, 7, 13, 0.98) !important;
}

#voice-modal:not(.open) {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

#voice-modal.open {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.select-text,
.select-text * {
    user-select: text !important;
    -webkit-user-select: text !important;
}

.cursor-text,
.cursor-text * {
    cursor: text !important;
}

html.route-landing #mobile-menu-btn,
.route-landing #mobile-menu-btn,
html.route-landing #top-right-bar,
.route-landing #top-right-bar {
    display: none !important;
}

html.mobile-sidebar-open #mobile-menu-btn,
body.mobile-sidebar-open #mobile-menu-btn,
html.mobile-sidebar-open #top-right-bar,
body.mobile-sidebar-open #top-right-bar {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

body.modal-open #top-right-bar,
body.modal-open #mobile-menu-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease;
}

body.modal-open #landing-view {
    overflow-y: hidden !important;
}

.modal-backdrop {
    overflow: hidden !important;
}

/* ---- Toast Popup ---- */
.toast-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(18, 19, 30, 0.95);
    border: 1px solid rgba(225, 29, 72, 0.4);
    color: #fda4af;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-popup.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ---- Voice Orb Animasyonları ---- */
.voice-orb-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-orb-glow {
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.45) 0%, rgba(244, 63, 94, 0.15) 50%, transparent 70%);
    filter: blur(25px);
    animation: orbPulse 3s ease-in-out infinite alternate;
}

.voice-orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(244, 63, 94, 0.4);
    animation: ringExpand 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.voice-orb-ring:nth-child(2) {
    animation-delay: 0.9s;
    border-color: rgba(251, 113, 133, 0.3);
}

.voice-orb-ring:nth-child(3) {
    animation-delay: 1.8s;
    border-color: rgba(225, 29, 72, 0.2);
}

.voice-orb-core {
    position: relative;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f43f5e, #be123c 60%, #4c0519 100%);
    box-shadow: 0 0 40px rgba(225, 29, 72, 0.65), inset 0 0 15px rgba(255, 255, 255, 0.4);
    transition: transform 0.12s ease, filter 0.2s ease;
}

.voice-visualizer-bar {
    width: 3.5px;
    border-radius: 999px;
    background: linear-gradient(to top, #be123c, #fda4af);
    transition: height 0.08s ease;
}

@keyframes orbPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.15);
        opacity: 0.95;
    }
}

@keyframes ringExpand {
    0% {
        width: 95px;
        height: 95px;
        opacity: 0.85;
        transform: scale(0.9);
    }

    100% {
        width: 220px;
        height: 220px;
        opacity: 0;
        transform: scale(1.3);
    }
}

/* ============================================
   LANDING PAGE — Temiz, Minimal, Premium Tema
   ============================================ */

/* Landing Header — Yumuşak, Ortalanmış, Minimal */
.landing-header {
    height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 8, 13, 0.6);
    backdrop-filter: blur(20px) saturate(1.2);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
}

.landing-header-inner {
    max-width: 64rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Landing Input — Animasyonlu */
.landing-input-wrapper {
    position: relative;
    max-width: 36rem;
    width: 100%;
    margin: 0 auto;
}

.landing-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(16, 17, 29, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 4px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.4);
}

.landing-input-box:focus-within {
    border-color: rgba(225, 29, 72, 0.5);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.08), 0 8px 40px -8px rgba(225, 29, 72, 0.2);
    transform: translateY(-2px);
    background: rgba(16, 17, 29, 0.95);
}

.landing-input-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

.landing-input-box input::placeholder {
    color: #52536b;
    transition: color 0.3s ease;
}

.landing-input-box:focus-within input::placeholder {
    color: #6b6c85;
}

/* Landing Glow Efekti — Animasyonlu çizgi */
.landing-input-glow {
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e11d48, transparent);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.landing-input-box:focus-within .landing-input-glow {
    width: 80%;
    left: 10%;
}

/* Landing Özellik Kartları — Tek Tema, Tutarlı */
.landing-feature-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(15, 16, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.landing-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.landing-feature-card:hover {
    border-color: rgba(225, 29, 72, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -8px rgba(225, 29, 72, 0.1);
}

.landing-feature-card:hover::before {
    opacity: 1;
}

.landing-feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fb7185;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.landing-feature-card:hover .landing-feature-icon {
    background: rgba(225, 29, 72, 0.15);
    border-color: rgba(225, 29, 72, 0.35);
    transform: scale(1.05);
}

/* Landing Vizyon Kartı */
.landing-vision-card {
    padding: 2rem;
    border-radius: 1.25rem;
    background: rgba(15, 16, 28, 0.6);
    border: 1px solid rgba(225, 29, 72, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.landing-vision-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(225, 29, 72, 0.06), transparent);
    pointer-events: none;
}

.landing-vision-card:hover {
    border-color: rgba(225, 29, 72, 0.3);
}

/* Landing Footer — Kırmızı aksan */
.landing-footer {
    margin-top: auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(225, 29, 72, 0.12);
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    position: relative;
    background: linear-gradient(to top, rgba(225, 29, 72, 0.03), transparent);
}

.landing-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.3), transparent);
}

/* ---- Sidebar Collapsed Düzeltmeleri ---- */
#sidebar.w-16,
html.sidebar-is-collapsed #sidebar {
    width: 4.5rem !important;
    min-width: 4.5rem !important;
    max-width: 4.5rem !important;
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    border-right-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

#sidebar.w-16 #sidebar-bottom-actions,
#sidebar.w-16 #sidebar-footer,
#sidebar.w-16 #auth-sidebar-container,
html.sidebar-is-collapsed #sidebar #sidebar-bottom-actions,
html.sidebar-is-collapsed #sidebar #sidebar-footer,
html.sidebar-is-collapsed #sidebar #auth-sidebar-container {
    border-top-color: transparent !important;
}

#sidebar.w-16 #sidebar-bottom-actions,
html.sidebar-is-collapsed #sidebar #sidebar-bottom-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    padding: 6px 0 !important;
    gap: 4px !important;
}

#sidebar.w-16 #sidebar-bottom-actions button,
#sidebar.w-16 #google-login-btn,
#sidebar.w-16 #auth-authenticated>div,
html.sidebar-is-collapsed #sidebar #sidebar-bottom-actions button,
html.sidebar-is-collapsed #sidebar #google-login-btn,
html.sidebar-is-collapsed #sidebar #auth-authenticated>div {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

#sidebar.w-16 #sidebar-bottom-actions button .sidebar-text,
#sidebar.w-16 #new-chat-btn .sidebar-text,
#sidebar.w-16 #sidebar-footer .sidebar-text,
#sidebar.w-16 #auth-sidebar-container .sidebar-text,
html.sidebar-is-collapsed #sidebar .sidebar-text {
    display: none !important;
}

#sidebar.w-16 #new-chat-btn,
html.sidebar-is-collapsed #sidebar #new-chat-btn {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 auto 8px auto !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#sidebar.w-16 #session-list,
html.sidebar-is-collapsed #sidebar #session-list {
    display: none !important;
}

#sidebar.w-16 #sidebar-header,
html.sidebar-is-collapsed #sidebar #sidebar-header {
    justify-content: center !important;
    padding: 4px 0 !important;
    margin-bottom: 8px !important;
}

#sidebar.w-16 #brand-container,
html.sidebar-is-collapsed #sidebar #brand-container {
    display: none !important;
}

#sidebar.w-16 #toggle-sidebar-btn,
html.sidebar-is-collapsed #sidebar #toggle-sidebar-btn {
    margin: 0 auto !important;
}

#sidebar.w-16 #sidebar-footer,
html.sidebar-is-collapsed #sidebar #sidebar-footer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 8px 0 !important;
    width: 100% !important;
}

#sidebar.w-16 #footer-status-wrapper,
html.sidebar-is-collapsed #sidebar #footer-status-wrapper {
    margin: 0 auto !important;
    justify-content: center !important;
}

/* ---- Masaüstü Genişletilmiş (Açık) Sidebar Garantisi ---- */
@media (min-width: 768px) {
    html:not(.sidebar-is-collapsed) #sidebar {
        width: 16rem !important;
        min-width: 16rem !important;
        max-width: 16rem !important;
    }

    html:not(.sidebar-is-collapsed) #sidebar .sidebar-text {
        display: inline !important;
    }

    html:not(.sidebar-is-collapsed) #sidebar #brand-container {
        display: flex !important;
    }

    html:not(.sidebar-is-collapsed) #sidebar #session-list {
        display: block !important;
    }

    html:not(.sidebar-is-collapsed) #sidebar #sidebar-header {
        justify-content: space-between !important;
    }

    html:not(.sidebar-is-collapsed) #sidebar #new-chat-btn {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0.625rem 0.75rem !important;
        justify-content: flex-start !important;
    }

    html:not(.sidebar-is-collapsed) #sidebar #sidebar-bottom-actions {
        width: 100% !important;
        align-items: stretch !important;
    }

    html:not(.sidebar-is-collapsed) #sidebar #sidebar-bottom-actions button,
    html:not(.sidebar-is-collapsed) #sidebar #google-login-btn,
    html:not(.sidebar-is-collapsed) #sidebar #auth-authenticated>div {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0.5rem 0.75rem !important;
        justify-content: flex-start !important;
    }
}

/* ---- Genel Landing Animasyonları ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes subtleFloat {

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

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

.landing-animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing-animate-in-delay-1 {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.landing-animate-in-delay-2 {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.landing-animate-in-delay-3 {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.landing-animate-in-delay-4 {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.landing-float {
    animation: subtleFloat 4s ease-in-out infinite;
}

/* Landing Buton Stilleri */
.landing-btn-primary {
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #e11d48, #be123c);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px -2px rgba(225, 29, 72, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.landing-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px -2px rgba(225, 29, 72, 0.4);
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.landing-btn-primary:active {
    transform: scale(0.97);
}

/* Landing Örnek Butonları */
.landing-example-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.25s ease;
}

.landing-example-btn:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(225, 29, 72, 0.2);
}

/* Platform Badge */
.platform-badge {
    padding: 0.3rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.65rem;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ---- Pulsing dot ---- */
.dot-active {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: dotPulse 2s ease-in-out infinite;
}

.dot-upcoming {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
}

.dot-api {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
}

.dot-desktop {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ===================================================
   HESAP PROFİLİ & DENEYİM MODALI (MASAÜSTÜ & MOBİL)
   =================================================== */
.profile-modal-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.5rem !important;
    flex: 1 1 0% !important;
    min-height: 420px !important;
    max-height: calc(85vh - 120px) !important;
    overflow: hidden !important;
    width: 100% !important;
}

.profile-modal-nav {
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding-right: 1rem !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: none !important;
    overflow-y: auto !important;
}

.profile-tab-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.875rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-align: left !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    height: 44px !important;
    flex-shrink: 0 !important;
}

.profile-tab-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.profile-tab-btn.active {
    color: #ffffff !important;
    background: rgba(225, 29, 72, 0.14) !important;
    border-color: rgba(225, 29, 72, 0.35) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.18) !important;
}

.profile-modal-content-area {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow-y: auto !important;
    padding-right: 0.5rem !important;
}

@media (max-width: 768px) {
    .profile-modal-container {
        flex-direction: column !important;
        gap: 1rem !important;
        min-height: auto !important;
        max-height: 72vh !important;
    }

    .profile-modal-nav {
        width: 100% !important;
        min-width: 100% !important;
        flex-direction: row !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-right: 0 !important;
        padding-bottom: 0.6rem !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .profile-tab-btn {
        width: auto !important;
        flex-shrink: 0 !important;
        padding: 0.5rem 0.85rem !important;
        height: 38px !important;
    }

    #mobile-backdrop {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (min-width: 768px) {
    #mobile-backdrop {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ===================================================
   İŞ BİRLİKLERİ & ALTYAPI ORTAKLARI (AVANT-GARDE MARQUEE SHOWCASE)
   =================================================== */
.partners-container {
/* ===================================================
   İŞ BİRLİKLERİ & ALTYAPI ORTAKLARI (FULL-WIDTH INFINITE LOGO MARQUEE)
   =================================================== */
#landing-partners-strip {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    overflow: hidden !important;
}

.partners-marquee-container {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    padding: 1.25rem 0 !important;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%) !important;
}

.partners-marquee-track {
    display: flex !important;
    align-items: center !important;
    gap: 4.5rem !important;
    width: max-content !important;
    animation: partners-marquee-spin 28s linear infinite !important;
    will-change: transform !important;
}

.partners-marquee-track:hover {
    animation-play-state: paused !important;
}

@keyframes partners-marquee-spin {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-33.333333%, 0, 0);
    }
}

.partner-logo-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.partner-logo-img {
    height: 38px !important;
    max-height: 42px !important;
    max-width: 150px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: grayscale(100%) opacity(0.35) !important;
    -webkit-filter: grayscale(100%) opacity(0.35) !important;
    transition: filter 0.35s ease, -webkit-filter 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.partner-logo-item:hover {
    transform: translateY(-2px) !important;
}

.partner-logo-item:hover .partner-logo-img {
    filter: grayscale(0%) opacity(1) drop-shadow(0 4px 16px rgba(255, 255, 255, 0.15)) !important;
    -webkit-filter: grayscale(0%) opacity(1) drop-shadow(0 4px 16px rgba(255, 255, 255, 0.15)) !important;
    transform: scale(1.15) !important;
}

@media (max-width: 640px) {
    .partners-marquee-track {
        gap: 3rem !important;
        animation-duration: 20s !important;
    }
    .partner-logo-img {
        height: 30px !important;
        max-height: 34px !important;
        max-width: 120px !important;
    }
}

/* ===================================================
   MODEL, ARAÇLAR VE EKLER AÇILIR MENÜLERİ (TAM OPAK)
   =================================================== */
#model-dropdown-menu,
#tools-dropdown-menu,
#attachment-dropdown-menu {
    background: #10111a !important;
    border: 1px solid #27283c !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
}

/* ===================================================
   DONMA VE KASMAYI ÖNLEYEN KUSURSUZ SIDEBAR MİMARİSİ
   =================================================== */
#sidebar {
    will-change: width, transform;
    transform: translateZ(0);
    transition: width 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-x: hidden !important;
    contain: layout paint;
}

@media (min-width: 768px) {
    #sidebar {
        width: 16rem !important;
    }

    html.sidebar-is-collapsed #sidebar {
        width: 4.5rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    html.sidebar-is-collapsed #brand-container {
        display: none !important;
    }

    html.sidebar-is-collapsed #sidebar-header {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html.sidebar-is-collapsed .sidebar-text {
        display: none !important;
    }

    html.sidebar-is-collapsed #new-chat-btn {
        width: 2.25rem !important;
        height: 2.25rem !important;
        min-width: 2.25rem !important;
        padding: 0 !important;
        justify-content: center !important;
        margin: 0 auto 0.75rem auto !important;
        border-radius: 0.75rem !important;
    }

    html.sidebar-is-collapsed #auth-unauthenticated button,
    html.sidebar-is-collapsed #auth-authenticated>div,
    html.sidebar-is-collapsed #btn-sidebar-more {
        width: 2.25rem !important;
        height: 2.25rem !important;
        min-width: 2.25rem !important;
        padding: 0 !important;
        justify-content: center !important;
        margin: 0 auto !important;
        border-radius: 0.75rem !important;
    }

    html.sidebar-is-collapsed #auth-authenticated>div>div {
        padding: 0 !important;
        justify-content: center !important;
    }

    html.sidebar-is-collapsed #session-list {
        display: none !important;
    }
}