html{height:100%;}body{font-family:'Poppins',sans-serif;background:#fff;height:100%;margin:0;padding:0;display:flex;flex-direction:column;overflow:hidden;}
.app-container{display:flex;flex:1;width:100%;overflow:hidden;position:relative;}
.sidebar{width:0;background:rgba(255,255,255,0.95);backdrop-filter:blur(10px);border-right:1px solid rgba(0,0,0,0.1);/* Yaylanarak genişleme ve daralma hissi */transition:width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);overflow:hidden;display:flex;flex-direction:column;z-index:100;box-shadow:4px 0 15px rgba(0,0,0,0.05);position:absolute;top:0;bottom:0;left:0;height:100%;}
.sidebar.open{width:280px;}

/* İçeriklerin daralırken sıkışıp alt alta kaymasını önlemek için sabitliyoruz ve yumuşak fade geçişi ekliyoruz */
.sidebar-header{padding:1.25rem 1rem;border-bottom:1px solid rgba(0,0,0,0.1);display:flex;align-items:center;justify-content:space-between;flex-shrink:0;min-width:280px;transition:opacity 0.2s ease;}
.chat-list{flex:1;overflow-y:auto;padding:0.75rem 0.5rem;display:flex;flex-direction:column;gap:0.25rem;min-width:280px;transition:opacity 0.2s ease;}
.sidebar:not(.open) .sidebar-header, .sidebar:not(.open) .chat-list {opacity:0;}
.chat-item{padding:0.65rem 0.85rem;border-radius:0.75rem;cursor:pointer;transition:all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);display:flex;align-items:center;border:1px solid transparent;color:#4b5563;font-size:0.92rem;position:relative;margin-bottom:0;}
.chat-item:has(.chat-item-menu.show) { z-index: 50; }
.chat-item:hover{background-color:rgba(243,244,246,0.8);color:#1f2937;border-color:rgba(229,231,235,0.5);}
.chat-item.active{background:linear-gradient(135deg, rgba(239,246,255,0.8), rgba(243,232,255,0.8));border-color:rgba(139,92,246,0.2);color:#4c1d95;font-weight:600;box-shadow:0 4px 10px -2px rgba(139,92,246,0.05);}
.chat-item.active::before{content:'';position:absolute;left:0;top:15%;bottom:15%;width:3px;background:linear-gradient(180deg,#8b5cf6,#3b82f6);border-radius:0 4px 4px 0;}

.main-content{flex:1;display:flex;flex-direction:column;transition:margin-left 0.3s ease;height:100%;width:100%;overflow:hidden;min-height:0;}
.header{display:flex;justify-content:space-between;align-items:center;padding:0.75rem;background:rgba(255,255,255,0.8);backdrop-filter:blur(5px);border-bottom:1px solid rgba(0,0,0,0.1);z-index:10;height:60px;min-height:60px;flex-shrink:0;}
.chat-container{flex:1;min-height:0;background:rgba(255,255,255,0.85);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.3);overflow:hidden;display:flex;flex-direction:column;position:relative;}
.messages-area{flex:1;min-height:0;overflow-y:auto;padding: 1rem 1rem 25px 1rem;display:flex;flex-direction:column-reverse;scroll-behavior:smooth;overflow-anchor: auto !important;}
.message-bubble{max-width:80%;padding:0.75rem 1rem;margin-bottom:0.75rem;border-radius:1.25rem;box-shadow:0 2px 8px rgba(0,0,0,0.05);position:relative;animation:fadeIn 0.3s ease;word-wrap:break-word;}
.message-bubble.ai {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important; 
    padding-right: 0 !important;
    margin-top: 0 !important;
    background: transparent;
    color: #000;
    box-shadow: none;
    font-size: 0.98rem;
    overflow-x: auto;
    overflow-y: hidden;
}
.message-bubble.user{background:#e9eef6;border-radius:1.25rem 1.25rem 0.5rem 1.25rem;margin-left:auto;color:#000;box-shadow:none;font-size:0.98rem;margin-bottom:3rem;}
.input-container { flex-shrink: 0; display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-radius: 2rem; padding: 0.6rem 0.8rem; margin: 0 1.5rem 1.5rem 1.5rem; border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease; position: relative; z-index: 50; }
.input-container:focus-within { transform: translateY(-4px); background: rgba(255, 255, 255, 0.9); border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 15px 40px -5px rgba(59, 130, 246, 0.15), 0 0 20px rgba(139, 92, 246, 0.2), 0 0 0 2px rgba(139, 92, 246, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.9); animation: inputPulse 3s infinite alternate ease-in-out; }
@keyframes inputPulse { 0% { box-shadow: 0 15px 40px -5px rgba(59, 130, 246, 0.15), 0 0 15px rgba(139, 92, 246, 0.1), 0 0 0 2px rgba(139, 92, 246, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.9); } 100% { box-shadow: 0 20px 45px -5px rgba(59, 130, 246, 0.25), 0 0 30px rgba(139, 92, 246, 0.3), 0 0 0 3px rgba(139, 92, 246, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.9); border-color: rgba(139, 92, 246, 0.6); } }
.btn-icon{min-width:2.25rem;height:2.25rem;display:flex;align-items:center;justify-content:center;border-radius:50%;cursor:pointer;transition:all 0.2s ease;color:#6b7280;flex-shrink:0;background: white; border: 1px solid #e5e7eb;}
.btn-icon:hover{background-color:rgba(59,130,246,0.1);color:#3b82f6;transform:scale(1.05);}
.btn-send { background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); color: white; min-width: 2.6rem; height: 2.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); margin-left: 0.5rem; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3); flex-shrink: 0; border: none; }
.btn-send:hover:not(.disabled) { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4); }
.btn-send i { transition: transform 0.3s ease; }
.btn-send:hover:not(.disabled) i { transform: translateY(-2px); }
.btn-send.disabled{opacity:0.5;cursor:not-allowed;pointer-events:none;}
.modal{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;z-index:2000;opacity:0;pointer-events:none;transition:opacity 0.3s ease;}
.modal.active{opacity:1;pointer-events:auto;}
.modal-content{background:white;border-radius:1rem;width:90%;max-width:400px;padding:1.5rem;box-shadow:0 10px 25px rgba(0,0,0,0.2);transform:translateY(20px);transition:transform 0.3s ease;}
.modal.active .modal-content{transform:translateY(0);}
.pro-badge{background:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);color:white;padding:0rem 0.75rem;border-radius:1rem;font-size:0.75rem;font-weight:600;box-shadow:0 2px 5px rgba(59,130,246,0.2);transition:all 0.2s ease;flex-shrink:0;display:flex;align-items:center;justify-content:center;margin:0 0.25rem;cursor:pointer;height:2.25rem;min-width:fit-content;}
.pro-badge:hover{transform:scale(1.05);}
.thinking-text{font-style:normal;color:#4b5563;animation:pulse-text 1.5s infinite ease-in-out;}
@keyframes pulse-text{0%,100%{opacity:0.7;}50%{opacity:1;}}
@keyframes thinkingBreath{0%{box-shadow:0 0 0 0 rgba(255,255,255,0);}50%{box-shadow:0 0 8px 3px rgba(59,130,246,0.3);}100%{box-shadow:0 0 0 0 rgba(255,255,255,0);}}

#thinkingAnimation { align-items: flex-start !important; } 

#thinkingAnimation .avatar { 
    top: 0 !important; 
    margin-top: 6px !important;  
}

#thinkingAnimation .message-bubble { margin-bottom: 0 !important; }

#thinkingAnimation .thinking-text { position: relative; display: inline-block; overflow: hidden; top: 1px; }
#thinkingAnimation .thinking-text::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { 0% { left: -100%; } 100% { left: 100%; } }

@keyframes fadeIn{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}
.logo-text{background:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:700;letter-spacing:0.5px;}
.avatar{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-right:0rem;flex-shrink:0;}
.avatar.ai{background:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);color:white;box-shadow:0 2px 5px rgba(59,130,246,0.2);margin-top:0 !important;will-change:transform;position:relative;top:6px;}
mjx-container{display:inline-block !important;}
.message-row{display:flex;align-items:flex-start;width:100%;}
.message-row.user-row{justify-content:flex-end;}
.modal-close{width:2rem;height:2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all 0.2s ease;}
.modal-close:hover{background-color:#f3f4f6;}
.input-field{width:100%;padding:0.75rem;border-radius:0.5rem;border:1px solid #e5e7eb;outline:none;transition:all 0.2s ease;}
.input-field:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,0.1);}
.submit-btn{width:100%;padding:0.75rem;border-radius:0.5rem;font-weight:500;transition:all 0.2s ease;background:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);color:white;text-align:center;text-decoration:none;display:block;}

.messages-area::-webkit-scrollbar { display: none; }
.chat-list::-webkit-scrollbar { width: 5px; }
.chat-list::-webkit-scrollbar-track { background: transparent; }
.chat-list::-webkit-scrollbar-thumb { background-color: rgba(156, 163, 175, 0.4); border-radius: 10px; }
.chat-list::-webkit-scrollbar-thumb:hover { background-color: rgba(107, 114, 128, 0.6); }
.messages-area { scrollbar-width: none; -ms-overflow-style: none; }
.chat-list { scrollbar-width: thin; scrollbar-color: rgba(107, 114, 128, 0.5) transparent; }
.user-input{width:100%;border:none;outline:none;padding:0.5rem 0.5rem;background:transparent;resize:none;overflow-y:auto;max-height:120px;font-size:1rem;color:#1e293b;font-weight:500;}
.user-input::placeholder{color:#94a3b8;font-weight:400;transition:color 0.3s ease;}
.button-row{display:flex;justify-content:space-between;align-items:center;margin-top:0.5rem;}
.left-buttons{display:flex;gap:0.5rem;align-items:center;}
.login-btn{background:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);color:white;padding:0.75rem;border-radius:0.5rem;font-weight:500;transition:all 0.2s ease;flex-shrink:0;margin-left:0.5rem;}
.password-container{display:flex;align-items:center;width:100%;}

 


.input-wrapper{position:relative;width:100%;}
.ai-typing-cursor{display:inline-block;width:8px;height:1.1em;background-color:#1f2937;margin-left:9px;vertical-align:-3px;animation:blink-cursor 0.9s step-end infinite;border-radius:1px;}
@keyframes blink-cursor{0%,100%{opacity:1;}50%{opacity:0;}}

.dropdown-menu {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 0;
    width: 700px;
    max-width: 94vw;
    max-height: 60vh;   
    background: rgba(255, 255, 255, 0.94);
    /* Orijinal yoğun cam efekti (35px) geri getirildi */
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 1.5rem;
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.15),
        0 0 0 100vmax rgba(0, 0, 0, 0.5);  
        
    opacity: 0;
    visibility: hidden;    
    transform-origin: bottom center;    
    z-index: 10000;    
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* GİZLİ SİLAH: Sadece gerekenlerin donanım hızlandırması (GPU) açıldı */
    will-change: transform, opacity, box-shadow;
}

@media (min-width: 641px) {
    .dropdown-menu {       
        /* Orijinal yaylanma mesafen geri getirildi */
        transform: translateY(20px) scale(0.95); 
        /* "all" iptal edildi, orijinal sürelerin (0.4s) ile sadece gerekenler hareketlendirildi */
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, visibility 0.4s;
    }
}

@media (max-width: 640px) {
    .dropdown-menu {        
        /* Mobildeki siyah perde (box-shadow) yumuşak geçişi ve 0.35s orijinal hızın geri eklendi */
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, box-shadow 0.35s ease, visibility 0.35s;        
    }
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-header {
    padding: 1rem 1.4rem;
    background: #f8fafc;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}

.menu-title {
    font-size: 0.85rem;
    font-weight: 800; 
    color: #475569;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 8px;
}

.menu-close-mobile {
    display: none; width: 32px; height: 32px;
    background: #e2e8f0; border-radius: 50%;
    align-items: center; justify-content: center; cursor: pointer; color: #64748b;
    font-size: 1rem;
}
.menu-close-mobile:hover { background: #ef4444; color: white; }

.menu-grid {
    padding: 1.2rem;
    overflow-y: auto;    
    display: grid;   
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;     
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.menu-grid::-webkit-scrollbar { width: 5px; }
.menu-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.dropdown-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;    
    padding: 0.9rem 1rem;
    gap: 12px;    
    cursor: pointer;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;    
    font-size: 1.1rem; 
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 60px; 
    overflow: hidden; 
}

.dropdown-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
    color: #2563eb;
    z-index: 2;
}

.dropdown-item.active {
    background: #f0fdf4;
    border: 2px solid #10b981;
    color: #15803d;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.item-icon {    
    width: 32px; 
    height: 32px;    
    border-radius: 8px; 
    background: #eff6ff;
    color: #3b82f6;    
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;     
    flex-shrink: 0;
    transition: all 0.2s;
}

.dropdown-item.active .item-icon {
    background: #10b981; color: white;
}
.dropdown-item.active::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;    
    position: absolute;
    top: 6px;   
    right: 6px;     
    width: 20px;
    height: 20px;    
    background: #10b981;
    color: white;
    border-radius: 50%;    
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);  
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 640px) {
    .dropdown-menu {
        position: fixed;
        bottom: 0 !important; left: 0 !important; right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 60vh;
        
        background: #ffffff;
        border-radius: 24px 24px 0 0;
        border: none;
        
        padding-bottom: 30px;
        transform: translateY(110%);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.1); 
    }
    
    .dropdown-menu.show {
        transform: translateY(0);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.1), 0 0 0 100vh rgba(0, 0, 0, 0.6);
    }
    
    .dropdown-menu::before {
        content: ''; display: block;
        width: 50px; height: 5px;
        background: #e2e8f0; border-radius: 10px;
        margin: 12px auto 10px;
    }
    
    .menu-header { background: transparent; padding: 0.8rem 1.5rem; border-bottom: 1px solid #f1f5f9; }
    .menu-title { font-size: 1rem; }
    .menu-close-mobile { display: flex; }
    
    .menu-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);  
        gap: 0.7rem;  
        padding: 1rem 1rem 2.5rem; 
    }
    
    .dropdown-item { 
        padding: 0.8rem; 
        gap: 8px; 
        font-size: 1rem; 
        min-height: 60px;
        align-items: center;
        justify-content: flex-start;
    }    
   
    .dropdown-item span {
        display: -webkit-box;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.2;
    }    
    
    .dropdown-item.active::after {
        top: 5px; right: 5px;
        width: 18px; height: 18px;
        font-size: 0.6rem;
        background: #10b981;
        color: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

.timer-modal-content {text-align: center;}
.timer-circle {width: 80px;height: 80px;border-radius: 50%;border: 4px solid #3b82f6;display: flex;align-items: center;justify-content: center;font-size: 1.5rem;font-weight: bold;color: #3b82f6;margin: 0 auto 1.5rem;}
.baslik-container{position:absolute;top:50%;left:20px;right:20px;transform:translateY(-50%);text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:5;}
.baslik{position:static;transform:none;display:inline-flex;align-items:center;margin:0;font-size:1.3rem;font-weight:500;}
@media (min-width:640px){.baslik{font-size:1.8rem;}}
.info-icon{font-size:0.9em;margin-left:10px;color:#8b5cf6;background-color:rgba(139,92,246,0.1);width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.3s cubic-bezier(0.25,0.8,0.25,1);box-shadow:0 2px 4px rgba(0,0,0,0.05);}
.info-icon:hover{transform:scale(1.1);background-color:rgba(139,92,246,0.2);}
.info-icon.open{transform:rotate(90deg) scale(1.1);}
.info-list{list-style:none;padding:0;margin-top:15px;background:#ffffff;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,0.1);border:1px solid #e9eef6;width:90%;max-width:450px;overflow:hidden;max-height:0;opacity:0;transform:translateY(-10px);transition:max-height 0.4s ease-out,opacity 0.3s ease-out,transform 0.4s ease-out,padding 0.4s ease-out;}
.info-list.show{max-height:500px;opacity:1;transform:translateY(0);padding:12px;}
.info-list li{padding:10px 15px;color:#4b5563;font-size:0.85rem;font-weight:400;text-align:left;border-bottom:1px solid #f3f4f6;display:flex;align-items:center;}
.info-list li:last-child{border-bottom:none;}
.info-list li strong{color:#3b82f6;margin-right:8px;font-weight:600;}

.magic-tools-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;   
    margin: 5px 0 15px 0;
    width: 100%;
    padding-left: 0;   
    padding-right: 0;    
    box-sizing: border-box;
    animation: fadeIn 0.5s ease;
}
.magic-tool-btn{background-color:#f3f4f6;color:#4b5563;border:1px solid #e5e7eb;border-radius:1rem;padding:4px 10px;font-size:0.75rem;font-weight:500;cursor:pointer;transition:all 0.2s ease;display:flex;align-items:center;gap:4px;white-space:nowrap;margin-bottom: 5px;flex-shrink: 0;}
.magic-tool-btn:hover{background-color:#e5e7eb;border-color:#d1d5db;transform:translateY(-1px);}


/* Sihirli Asa (Wand) Özelleştirmesi */
.magic-tool-btn.wand {
    border-radius: 50%;
    width: 28px;   
    height: 28px;  
    padding: 0;
    justify-content: center;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5); /* Yeni: Cama benzer yarı şeffaf beyaz kenarlık eklendi */
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.4); /* Yeni: "inset" ile içine düşen beyaz ışık eklendi (Mücevher hissini veren asıl kod bu) */
    margin-bottom: 0;
    margin-top: 0;
}

/* Diğer butonlardaki lazer efektini asada kapattık ki tasarımı boğmasın */
.magic-tool-btn.wand::after { display: none; }

.magic-tool-btn.wand:hover {
    transform: scale(1.15) rotate(15deg); /* Yeni: Eskiden sadece büyüyordu, şimdi hem daha çok büyüyor hem de 15 derece dönerek oyunsu (playful) bir sihir hissi veriyor */
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.5); /* Hover'da dışa vuran mor neon ışığı güçlendirildi */
    background: linear-gradient(135deg, #c4b5fd, #9333ea); /* Yeni: Fare üzerine gelince renkler daha açık ve canlı bir tona geçiyor */
    border-color: rgba(255, 255, 255, 0.9); /* Fare üzerine gelince kenarlık daha belirginleşiyor */
}

/* Asanın içindeki ikonun (yıldızların) kendi gölgesi */
.magic-tool-btn.wand i { 
    color: white !important; 
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2)); /* Yeni: İkonun arka planda kaybolmaması için sadece ikona özel derinlik gölgesi eklendi */
}

.magic-tools-group {display: flex;gap: 6px;flex-wrap: wrap;transition: all 0.4s cubic-bezier(0.4,0,0.2,1);overflow: hidden;max-height: 500px;max-width: 600px;opacity: 1;margin-top: 0px;}
.magic-tools-group.hidden {max-height: 0;opacity: 0;margin-top: 0;padding: 0;}
.magic-tools-group .magic-tool-btn{transform:scale(1);opacity:1;transition:transform 0.3s ease,opacity 0.2s ease;}

.response-separator{position:relative;display:flex;align-items:center;text-align:center;margin:1.5rem 2rem 1rem 3rem;animation:fadeIn 0.6s ease;}
.response-separator::before,.response-separator::after{content:'';flex:1;height:1px;border-radius:50%;}
.response-separator::before{background:linear-gradient(to left, rgba(139, 92, 246, 0.4), transparent);}
.response-separator::after{background:linear-gradient(to right, rgba(139, 92, 246, 0.4), transparent);}
.response-separator span{font-size:0.85rem;font-weight:600;color:#7c3aed;padding:0 1rem;display:flex;align-items:center;gap:8px;letter-spacing:0.3px;}

.chat-icon{margin-right:0.75rem;color:#9ca3af;font-size:1.05rem;transition:all 0.3s ease;}
.chat-item:hover .chat-icon{color:#6b7280;}
.chat-item.active .chat-icon{color:#8b5cf6;filter:drop-shadow(0 0 4px rgba(139,92,246,0.3));}
.chat-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;letter-spacing:0.2px;transition:color 0.2s;}

.chat-item-actions{margin-left:auto;position:relative;opacity:0;transform:translateX(5px);transition:all 0.25s ease;}
.chat-item:hover .chat-item-actions, .chat-item.active .chat-item-actions, .chat-item:has(.chat-item-menu.show) .chat-item-actions{opacity:1;transform:translateX(0);}
@media (max-width:768px){.chat-item-actions{opacity:1;transform:translateX(0);}}
.chat-options-btn{background:transparent;border:none;color:#9ca3af;cursor:pointer;padding:0.35rem 0.5rem;border-radius:0.4rem;font-size:0.9rem;line-height:1;transition:all 0.2s ease;}
.chat-options-btn:hover, .chat-item:has(.chat-item-menu.show) .chat-options-btn{background-color:#fff;color:#3b82f6;box-shadow:0 2px 5px rgba(0,0,0,0.05);}
.chat-item-menu{display:none;position:absolute;top:calc(100% + 4px);right:0;background:rgba(255,255,255,0.95);backdrop-filter:blur(10px);border-radius:0.75rem;box-shadow:0 10px 30px -5px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);z-index:9999;min-width:190px;list-style:none;padding:0.4rem;margin:0;animation:fadeInMenu 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;transform-origin:top right;}

@keyframes fadeInMenu{from{opacity:0;transform:scale(0.95) translateY(-5px)}to{opacity:1;transform:scale(1) translateY(0)}}
.chat-item-menu.show{display:block;}
.chat-item-menu li a{display:flex;align-items:center;padding:0.6rem 0.8rem;border-radius:0.5rem;color:#4b5563;font-size:0.875rem;text-decoration:none;font-weight:500;transition:all 0.2s ease;}
.chat-item-menu li a:hover{background-color:#f3f4f6;color:#111827;}
.chat-item-menu li a .fa-fw{width:1.25em;text-align:center;margin-right:0.6rem;color:#9ca3af;transition:color 0.2s ease;}
.chat-item-menu li a:hover .fa-fw{color:#6b7280;}
.chat-item-menu li a .text-red-500{color:#ef4444;}
.chat-item-menu li a.delete-chat:hover{background-color:#fef2f2;color:#dc2626;}
.chat-item-menu li a.delete-chat:hover .text-red-500{color:#dc2626;}
.chat-item-menu .menu-item-date{font-size:0.7rem;color:#9ca3af;padding:0.5rem 0.5rem 0.2rem;margin-top:0.3rem;border-top:1px solid #f3f4f6;text-align:center;letter-spacing:0.3px;}


@media (max-width:640px){
    .sidebar.open{width:260px;}
    .sidebar-header, .chat-list {min-width:260px;}
    .input-container{padding:0.5rem 0.6rem; min-height:2.75rem; margin: 0 0.75rem 1rem 0.75rem; border-radius:1.75rem;}
    .header{padding:0.5rem;height:50px;min-height:50px;}
    .message-bubble{padding:0.6rem 0.8rem;max-width:85%;}
}

.message-bubble.ai hr { margin: 1rem 0 !important; border: none !important; border-top: 1px solid #e5e7eb !important; height: auto !important; }
.message-bubble.ai mjx-container { font-size: 120%; }

.btn-new-chat { background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); color: white; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 5px rgba(59, 130, 246, 0.2); touch-action: manipulation; }
.btn-new-chat:hover:not(.disabled) { transform: scale(1.1); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.btn-new-chat:active:not(.disabled) { transform: scale(0.9); box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2); }
.btn-new-chat.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none; }
.dropdown-item span:last-child { font-size: 0.70rem !important; opacity: 0.8; }

.ultra-pro-modal { position: relative; max-width: 360px !important; padding: 2.5rem 1.5rem; border-radius: 1.5rem; background: #ffffff; overflow: hidden; border: 1px solid rgba(139, 92, 246, 0.1); box-shadow: 0 20px 50px -12px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5); text-align: center; }
.modal-glow { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 100%; height: 100%; background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%); z-index: 0; pointer-events: none; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; background: #eff6ff; color: #3b82f6; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1.5rem; border: 1px solid #dbeafe; position: relative; z-index: 1; }
.ultra-timer-wrapper { position: relative; width: 120px; height: 120px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; z-index: 1; }
.ultra-ring { transform: rotate(-90deg); }
.ultra-ring-bg { fill: none; stroke: #f3f4f6; stroke-width: 8; }
.timer-inner { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.timer-big-text { font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.timer-small-text { font-size: 0.9rem; font-weight: 600; color: #9ca3af; margin-top: -5px; }
.ultra-title { font-size: 1.5rem; font-weight: 800; color: #1f2937; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.ultra-desc { font-size: 0.95rem; color: #4b5563; line-height: 1.5; margin-bottom: 2rem; padding: 0 0.5rem; position: relative; z-index: 1; }
.cta-button { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%); color: white; text-decoration: none; padding: 10px 10px 10px 20px; border-radius: 16px; position: relative; z-index: 1; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4); overflow: hidden; animation: pulse-shadow 2s infinite; }
.cta-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); animation: shimmer-btn 3s infinite; }
.cta-button:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 25px rgba(99, 102, 241, 0.5); }
.cta-content { text-align: left; }
.cta-title { display: block; font-size: 1rem; font-weight: 800; letter-spacing: 0.5px; }
.cta-subtitle { display: block; font-size: 0.75rem; opacity: 0.9; font-weight: 400; }
.cta-icon-box { background: rgba(255,255,255,0.2); width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; backdrop-filter: blur(4px); }
.trust-text { margin-top: 1rem; font-size: 0.75rem; color: #6b7280; display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; z-index: 1; }
.trust-text i { color: #10b981; }
.ultra-ring-progress { fill: none; stroke: url(#gradientColor); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 339; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.5)); }
@keyframes pulse-shadow { 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); } 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } }
@keyframes shimmer-btn { 0% { left: -100%; } 20% { left: 100%; } 100% { left: 100%; } }
.logo-link { pointer-events: none; cursor: default; }
@media (max-width: 450px) { .logo-link { pointer-events: auto; cursor: pointer; } }
#konuMenu .dropdown-item.active { background: transparent !important; color: #059669 !important; box-shadow: none !important; font-weight: 600; border: none; }
#konuMenu .dropdown-item.active::after { content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900; background-color: transparent !important; box-shadow: none !important; border-radius: 0; color: #10b981; font-size: 1.1rem; width: auto; height: auto; left: 1rem; transform: translateY(-50%); }
#konuMenu .dropdown-item.active:hover { background: rgba(16, 185, 129, 0.04) !important; }

.btn-icon.video-btn { color: #ef4444; border-color: #fee2e2; }
.btn-icon.video-btn:hover { background: #fef2f2; }
.btn-icon.video-btn.active { background: #ef4444; color: white; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }

.sticky-video-viewer {
    position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
    z-index: 1000; background-color: #000; box-sizing: border-box;
    width: 95vw; max-width: 600px;
    border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid #3b82f6; padding: 0; overflow: hidden;
    display: none; 
}
.sticky-video-viewer .video-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0;
}
.sticky-video-viewer iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

.sticky-video-viewer.minimized {
    width: 50px !important;
    height: 50px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    top: auto !important;
    left: auto !important;
    right: 20px !important;  
    bottom: 20px !important; 
    transform: none !important;
    overflow: visible !important;  
}
 
.sticky-video-viewer.minimized .video-wrapper,
.sticky-video-viewer.minimized .close-sticky-video,
.sticky-video-viewer.minimized .move-sticky-video {
    display: none !important;
}
 

body:has(#stickyVideoContainer[style*="display: block"]) .input-container,
body:has(#stickyVideoContainer[style*="display: block"]) .header {
    display: none !important;
}

.kavra-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #fff; z-index: 5000; display: none; 
    animation: fadeIn 0.3s ease;
}
.kavra-modal.active { display: block; }
.kavra-iframe {
    width: 100%; 
    height: 100%; 
    border: none; 
    display: block; 
    overflow-y: scroll; 
    scrollbar-width: none; 
    -ms-overflow-style: none;  
}
.kavra-iframe::-webkit-scrollbar { 
    display: none; 
}
.kavra-close-btn {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5001; font-size: 0.95rem;
    backdrop-filter: blur(4px); transition: all 0.2s ease;
    border: 2px solid rgba(255,255,255,0.3);
}
.kavra-close-btn:hover { background: #ef4444; transform: scale(1.1); }

.avatar.ai + .message-bubble.ai {
    padding-left: 0.8rem !important; 
}

.input-container.hidden-mode {
    display: none !important;
}
.restore-input-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 2.5rem;      
    height: 2.5rem;       
    font-size: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
    z-index: 100;
    cursor: pointer;   
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: popIn 0.4s ease;
}
.restore-input-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}
@keyframes popIn {
    from { transform: scale(0) rotate(-180deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}
.btn-fullscreen {
    background: transparent;
    color: #9ca3af;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-right: 0.25rem;
}
.btn-fullscreen:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
    border-color: #e5e7eb;
}

.gizli-sifre {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
}

.dropdown-item.purple-theme .item-icon {
    background: #f3e8ff;  
    color: #9333ea;       
}
 
.dropdown-item.purple-theme:not(.active):hover {
    border-color: #9333ea;
    color: #7e22ce;      
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.15);  
}

.dropdown-item.purple-theme.active .item-icon {
    background: #10b981 !important;
    color: white !important;
}

.ai-typing-cursor {
    position: relative;
    display: inline-block;
    vertical-align: text-bottom;
}


.close-sticky-video, .minimize-sticky-video, .move-sticky-video {
    position: absolute;
    right: -12px; /* Videonun kenarından hafif dışarıya taşırarak modern uydu hissi verdik */
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; z-index: 1002; color: white;
    /* Kalın kaba beyaz çizgi yerine yarı saydam cam efekti */
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    /* İçeriden vuran ışık ve dış gölge derinliği */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.4);
    /* Fırlama hatasını önlemek için 'all' iptal edildi, yaylanma sadece görsel efektlere kilitlendi */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

/* 1. KAPAT BUTONU (Kırmızı Neon) */
.close-sticky-video {
    top: 50%; margin-top: -64px; /* Kusursuz boşluk için matematiksel hizalama */
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.85) 0%, rgba(185, 28, 28, 0.95) 100%);
    cursor: pointer;
}
.close-sticky-video:hover { 
    transform: scale(1.15) rotate(90deg); /* Çarpı için premium 90 derece dönüş efekti */
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5), inset 0 2px 6px rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: rgba(255, 255, 255, 0.8);
}
.close-sticky-video:active { transform: scale(0.95); }

/* 2. TAŞIMA BUTONU (Mavi Neon) */
.move-sticky-video {
    top: 50%; margin-top: -20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85) 0%, rgba(29, 78, 216, 0.95) 100%);
    cursor: grab; touch-action: none;
}
.move-sticky-video:hover { 
    transform: scale(1.15); 
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5), inset 0 2px 6px rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: rgba(255, 255, 255, 0.8);
}
.move-sticky-video:active { 
    cursor: grabbing; transform: scale(0.92); 
}

/* 3. KÜÇÜLTME BUTONU (Mor Neon) */
.minimize-sticky-video {
    top: 50%; margin-top: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.85) 0%, rgba(109, 40, 217, 0.95) 100%);
    cursor: pointer;
}
.minimize-sticky-video:hover { 
    transform: scale(1.15) translateY(-2px); 
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5), inset 0 2px 6px rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-color: rgba(255, 255, 255, 0.8);
}
.minimize-sticky-video:active { transform: scale(0.95); }

/* 4. KÜÇÜLTÜLMÜŞ (MINIMIZED) DURUM İÇİN YANSIMA UYUMU */
.sticky-video-viewer.minimized .minimize-sticky-video {
    position: relative !important; 
    top: 0 !important; right: 0 !important; margin: 0 !important;
    width: 52px !important; height: 52px !important; font-size: 20px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    /* Siyah mat gölge yerine büyütülmüş mor lüks gölge */
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
}
.sticky-video-viewer.minimized .minimize-sticky-video:hover {
    transform: scale(1.1) translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.6), inset 0 2px 6px rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

  .magic-video-card {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 22px 28px;
        background: rgba(15, 23, 42, 0.85);
        backdrop-filter: blur(25px) saturate(200%);
        -webkit-backdrop-filter: blur(25px) saturate(200%);
        border: 1px solid rgba(139, 92, 246, 0.35);
        border-radius: 20px;
        max-width: 480px;
        width: 100%;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), inset 0 0 20px rgba(139, 92, 246, 0.15);
        margin: 5px 0 15px 0;
        font-family: 'Poppins', sans-serif;
        position: relative;
        overflow: hidden;
    }
    
    .magic-video-card::before {
        content: ''; 
        position: absolute; 
        top: 0; 
        left: -100%; 
        width: 50%; 
        height: 2px;
        background: linear-gradient(90deg, transparent, #a855f7, transparent);
        animation: mvc-card-scan 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }
    
    @keyframes mvc-card-scan { 
        100% { left: 200%; } 
    }

    .mvc-icon-box {
        position: relative;
        width: 56px; 
        height: 56px;
        border-radius: 16px; 
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        flex-shrink: 0;
        background: rgba(2, 6, 23, 0.9);
        border: 1px solid rgba(56, 189, 248, 0.4);
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.25), inset 0 0 15px rgba(56, 189, 248, 0.15);
        z-index: 1;
        overflow: hidden;
    }
    
    .mvc-icon-box::before {
        content: '';
        position: absolute;
        width: 150%;
        height: 150%;
        background: conic-gradient(from 0deg, transparent 50%, #38bdf8 70%, #8b5cf6 90%, transparent 100%);
        animation: mvc-neon-spin 2s linear infinite;
        z-index: -1;
    }
    
    .mvc-icon-box::after {
        content: '';
        position: absolute;
        inset: 2px;  
        background: #0f172a;  
        border-radius: 14px;
        z-index: -1;
    }
    
    .mvc-icon-box i {
        color: #e0e7ff; 
        z-index: 2;
        animation: mvc-icon-pulse 1.5s ease-in-out infinite alternate;
        filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.9));
    }
    
    @keyframes mvc-neon-spin { 
        0% { transform: rotate(0deg); } 
        100% { transform: rotate(360deg); } 
    }
    
    @keyframes mvc-icon-pulse { 
        0% { transform: scale(0.95); opacity: 0.85; } 
        100% { transform: scale(1.1); opacity: 1; } 
    }
    
    .mvc-content { 
        flex: 1; 
        min-width: 0; 
        display: flex; 
        flex-direction: column; 
        gap: 10px; 
    }
    
    .mvc-text-top { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        font-size: 0.95rem; 
        color: #f8fafc; 
        font-weight: 600; 
        letter-spacing: 0.3px; 
    }
    
    .mvc-badge { 
        font-size: 0.75rem; 
        font-family: monospace;
        background: rgba(139, 92, 246, 0.15); 
        color: #c4b5fd; 
        padding: 4px 10px; 
        border-radius: 8px; 
        font-weight: 600; 
        border: 1px solid rgba(139, 92, 246, 0.4); 
        box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.2);
        letter-spacing: 0.5px;
    }
    
    .mvc-badge strong, .mvc-word-count { 
        font-weight: 800; 
        color: #ffffff; 
        text-shadow: 0 0 6px rgba(255,255,255,0.6); 
        font-size: 0.85rem;
    }    
     
    .mvc-progress-bg { 
        width: 100%; 
        height: 6px;  
        background: rgba(255, 255, 255, 0.05);  
        border-radius: 10px; 
        overflow: visible; 
        position: relative; 
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mvc-progress-fill { 
        height: 100%; 
        width: 0%; 
        background: linear-gradient(90deg, #38bdf8, #a855f7); 
        border-radius: 10px; 
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
        position: relative;
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
    }
    
    .mvc-progress-fill::after { 
        content: ''; 
        position: absolute; 
        top: -4px; 
        right: -4px; 
        width: 14px; 
        height: 14px; 
        background: #ffffff; 
        border-radius: 50%; 
        box-shadow: 0 0 15px 5px rgba(168, 85, 247, 0.8), 0 0 30px rgba(56, 189, 248, 0.6); 
    }
	
    .video-magic-btn {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
    }
    .video-magic-btn:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    }
     
    .sticky-video-viewer.bottom-sticky {
        top: auto !important;
        bottom: 20px !important;
        transform: translateX(-50%) !important;
        z-index: 6000 !important; 
        box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
    }
	
    .sticky-video-viewer.bottom-sticky.minimized {
    top: auto !important;       
    bottom: 20px !important;    
    right: 20px !important;
    left: auto !important;
    transform: none !important;
}    
	
    body.welcome-mode .main-content { background-color: #f4f5f7 !important; position: relative; }
    body.welcome-mode .header { background-color: transparent !important; border-bottom-color: transparent !important; position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
    body.welcome-mode .chat-container { background-color: transparent !important; border-color: transparent !important; box-shadow: none !important; }
    body.welcome-mode #inputContainer { box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 2px 10px rgba(0,0,0,0.04) !important; border-color: #e5e7eb !important; z-index: 50 !important; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important; }
body.welcome-mode #inputContainer:focus-within { box-shadow: 0 12px 40px -8px rgba(0,0,0,0.15), 0 4px 15px -3px rgba(0,0,0,0.08) !important; border-color: #d1d5db !important; transform: translateY(-2px); }
    body.welcome-mode .messages-area { display: none !important; }
    
    @media (min-width: 640px) {
        body.welcome-mode .main-content { justify-content: center; align-items: center; }
        body.welcome-mode .chat-container { flex: 0 1 auto; order: 1; width: 100%; overflow: visible; margin-top: 60px; }
        body.welcome-mode #inputContainer { order: 2; width: calc(100% - 2rem); max-width: 768px; margin: 0 auto 20px auto; position: relative; }
        body.welcome-mode #welcomeButtonsDesktop { order: 3; display: flex !important; width: 100%; max-width: 800px; justify-content: center; flex-wrap: wrap; gap: 10px; z-index: 10; padding-bottom: 40px; }
        body.welcome-mode #welcomeContainer { position: static !important; transform: none !important; display: flex; flex-direction: column; align-items: center; margin-bottom: 10px; }
        body.welcome-mode #welcomeButtonsMobile { display: none !important; }
    }
    
   @media (max-width: 639px) {
        body.welcome-mode #welcomeButtonsDesktop { display: none !important; }
        body.welcome-mode #welcomeContainer { 
            position: absolute !important; 
            top: 0 !important; 
            left: 0 !important; 
            right: 0 !important; 
            bottom: 0 !important; 
            transform: none !important; 
            display: flex !important; 
            flex-direction: column !important; 
            justify-content: center !important;             
            padding-top: 6vh !important; 
            padding-bottom: 0 !important; 
        }
        body.welcome-mode #welcomeButtonsMobile { display: flex !important; flex-direction: column; gap: 12px; width: 100%; align-items: flex-start; }
    }

    @keyframes welcomeFadeUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .anim-welcome { opacity: 0; animation: welcomeFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
    .anim-d-1 { animation-delay: 0.1s; }
    .anim-d-2 { animation-delay: 0.2s; }
    .anim-d-3 { animation-delay: 0.3s; }
    .anim-d-4 { animation-delay: 0.4s; }
 
@media (max-width: 640px) {
    body.welcome-mode #inputContainer:focus-within {
        transform: none !important;
    }
}

    .no-magic-tools .magic-tools-container { 
        display: none !important; 
    }
    
    .welcome-action-btn {
        cursor: pointer !important;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        background: rgba(255, 255, 255, 0.35) !important;
        backdrop-filter: blur(16px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    }
    .welcome-action-btn:hover {
        transform: translateY(-4px) scale(1.02) !important;
        background: rgba(255, 255, 255, 0.7) !important;
        box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
        border-color: rgba(139, 92, 246, 0.4) !important;
    }


/* --- GERÇEK PREMIUM AI ARKA PLANI (ALTIN ORAN) --- */
body.welcome-mode {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.welcome-mode .main-content {
    background-color: #f8fafc !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.12) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.12) 0, transparent 50%), 
        radial-gradient(at 0% 100%, rgba(236, 72, 153, 0.08) 0, transparent 50%) !important;
    background-size: 200% 200% !important;
    /* 12 saniye yerine 25 saniye: Çok ağır, sakin ve pürüzsüz bir geçiş */
    animation: ultraAurora 25s ease-in-out infinite alternate !important;
}

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

body.welcome-mode #welcomeTitle h2:last-child {
    background: linear-gradient(110deg, #334155 0%, #8b5cf6 35%, #3b82f6 55%, #334155 85%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% auto;
    /* Başlıktaki ışık geçişi de öğrenciyi yormaması için yavaşlatıldı */
    animation: proShine 15s linear infinite; 
}

@keyframes proShine {
    0% { background-position: 300% center; }
    100% { background-position: 0% center; }
}

@media(prefers-reduced-motion: reduce) {
    body.welcome-mode .main-content, 
    body.welcome-mode #welcomeTitle h2:last-child {
        animation: none !important;
    }
}



.u-pro-c{background:rgba(255,255,255,.92);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid rgba(139,92,246,.3);box-shadow:0 30px 60px -12px rgba(15,23,42,.3),inset 0 1px 1px rgba(255,255,255,.9);border-radius:1.5rem;padding:2rem 1.5rem;position:relative;overflow:hidden;transform:translateY(20px) scale(.95);transition:all .5s cubic-bezier(.16,1,.3,1)}.modal.active .u-pro-c{transform:translateY(0) scale(1)}.u-pro-g{position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:conic-gradient(from 180deg at 50% 50%,rgba(139,92,246,.12) 0,rgba(59,130,246,.12) 180deg,rgba(236,72,153,.12) 360deg);filter:blur(40px);pointer-events:none;z-index:0;animation:s-glow 10s linear infinite}@keyframes s-glow{100%{transform:rotate(360deg)}}.u-t-grad{background:linear-gradient(135deg,#0f172a 0,#334155 100%);-webkit-background-clip:text;color:transparent;letter-spacing:-.5px}.u-i-wrap{background:linear-gradient(135deg,#2563eb,#9333ea);border-radius:.75rem;width:44px;height:44px;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(147,51,234,.4),inset 0 1px 2px rgba(255,255,255,.4);flex-shrink:0}.u-close{background:#f8fafc;color:#64748b;border:1px solid #e2e8f0;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;transition:all .3s cubic-bezier(.4,0,.2,1)}.u-close:hover{background:#ef4444;color:#fff;border-color:#ef4444;transform:rotate(90deg);box-shadow:0 4px 12px rgba(239,68,68,.3)}.u-p-btn{background:linear-gradient(135deg,#0f172a 0,#1e293b 100%);color:#fff;padding:1.1rem;border-radius:1rem;font-weight:700;font-size:1.05rem;letter-spacing:.3px;box-shadow:0 10px 25px -5px rgba(15,23,42,.5),inset 0 1px 1px rgba(255,255,255,.15);transition:all .4s cubic-bezier(.16,1,.3,1);display:flex;align-items:center;justify-content:center;gap:.6rem;position:relative;overflow:hidden;text-decoration:none;width:100%;z-index:10;border:1px solid rgba(255,255,255,.1)}.u-p-btn:hover{transform:translateY(-4px);box-shadow:0 20px 40px -10px rgba(139,92,246,.4),inset 0 1px 1px rgba(255,255,255,.2);background:linear-gradient(135deg,#1e293b 0,#334155 100%);color:#fff;border-color:rgba(139,92,246,.5)}.u-p-btn::before{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.15),transparent);animation:u-shimmer 3s infinite}@keyframes u-shimmer{0%{left:-100%}20%,100%{left:100%}}

.m-center {
    position: relative;
    display: inline-block;  
    line-height: 1;
	font-size: 0.90em;
}
.m-sub {
    position: absolute;
    font-size: 0.5em; /* Sayının küçüklüğü */
    right: -0.5em; /* Sayıyı M'nin dışına iter */
    bottom: -0.1em; /* Sayıyı aşağı çeker */
}
