
        /* Prevent flash of unstyled content */
        :root {
            color-scheme: light dark;
        }
        
        /* Mobil için immediate theme application */
        [data-theme="dark"] {
            color-scheme: dark;
        }
    


        :root {
            --primary: #e11d48;
            --primary-light: #fb7185;
            --bg: #ffffff;
            --hero-bg: radial-gradient(circle at top right, #fff5f5 0%, #ffffff 100%);
            --text-dark: #0f172a;
            --text-light: #64748b;
            --card-bg: #f8fafc;
            --nav-bg: rgba(255, 255, 255, 0.8);
            --border: rgba(225, 29, 72, 0.08);
            --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
            --glass: rgba(255, 255, 255, 0.7);
        }

        [data-theme="dark"] {
            --bg: #0b1120;
            --hero-bg: radial-gradient(circle at top right, #1e1b4b 0%, #0b1120 100%);
            --text-dark: #f1f5f9;
            --text-light: #94a3b8;
            --card-bg: #1e293b;
            --nav-bg: rgba(11, 17, 32, 0.8);
            --border: rgba(225, 29, 72, 0.15);
            --glass: rgba(30, 41, 59, 0.7);
        }

        /* Yumuşak tema geçişi */
        body, nav, .card-bg, section {
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }

        /* Mobil cihazlar için daha hızlı geçiş */
        @media (max-width: 768px) {
            body, nav, .card-bg, section {
                transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
            }
            
            /* Mobilde flash'ı engellemek için */
            html {
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
            }
        }

        body {
            background-color: var(--bg);
            color: var(--text-dark);
            font-family: 'Inter', sans-serif;
            margin: 0;
            overflow-x: hidden;
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
        }

        nav {
            position: fixed; top: 0; width: 100%;
            background: var(--nav-bg);
            backdrop-filter: blur(15px);
            display: flex; justify-content: space-between; align-items: center;
            padding: 15px 60px; box-sizing: border-box;
            border-bottom: 1px solid var(--border); z-index: 2000;
        }
        .logo {
            font-size: 1.6rem; font-weight: 800; color: var(--primary);
            text-decoration: none; letter-spacing: -1px;
            transition: var(--transition);
        }
        .logo:hover { transform: scale(1.04); }
        .menu-links { display: flex; align-items: center; }
        .menu-links a {
            color: var(--text-dark); text-decoration: none;
            margin-left: 30px; font-weight: 600; font-size: 16px;
            position: relative; transition: var(--transition);
        }
        .menu-links a::after {
            content: ''; position: absolute;
            width: 0; height: 2px; bottom: -5px; left: 0;
            background: var(--primary); transition: width 0.3s ease;
        }
        .menu-links a:hover::after { width: 100%; }
        .menu-links a:hover, .menu-links a.active { color: var(--primary); }
        
        .live-support-btn {
            background-color: var(--primary); color: #ffffff !important;
            padding: 12px 30px; border-radius: 10px; font-weight: 700;
            margin-left: 35px; text-decoration: none; transition: all 0.4s ease;
            box-shadow: 0 4px 15px rgba(225,29,72,0.2);
        }
        .live-support-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(225,29,72,0.4); }
        .live-support-btn::after { display: none !important; }
        /* Bize Katılın - Altın Sarısı Animated Button */
        .join-us-btn {
            background: linear-gradient(135deg, #b8941f, #d4a926, #e8c547, #d4a926, #b8941f) !important;
            background-size: 300% 300% !important;
            color: #ffffff !important;
            padding: 12px 28px; border-radius: 10px; font-weight: 800;
            margin-left: 35px; text-decoration: none !important;
            display: inline-flex; align-items: center; justify-content: center;
            min-height: 46px; line-height: 1; white-space: nowrap;
            transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.18s ease;
            box-shadow: 0 4px 18px rgba(212, 169, 38, 0.3);
            position: relative; overflow: hidden;
            letter-spacing: 0.3px; font-size: 15px;
        }
        .join-us-btn::before {
            content: '';
            position: absolute;
            top: 0; left: -140%; width: 70%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
            transform: skewX(-24deg);
            animation: joinGlint 14s ease-in-out infinite;
        }
        .join-us-btn::after { display: none !important; }
        .join-us-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(212, 169, 38, 0.5);
            color: #ffffff !important;
        }
        
        @keyframes joinGlint {
            0%, 82%, 100% { left: -140%; opacity: 0; }
            86% { opacity: 1; }
            92% { left: 155%; opacity: 1; }
            93% { opacity: 0; }
        }


        .hamburger-btn { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
        .hamburger-btn div { width: 28px; height: 3px; background: var(--primary); transition: 0.3s; }

        @media (max-width: 992px) {
            nav { padding: 15px 25px; }
            .hamburger-btn { display: flex; }
            .menu-links {
                display: none; flex-direction: column; position: absolute;
                top: 75px; right: 20px; background: var(--bg);
                padding: 25px; border-radius: 8px; width: 210px;
                box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid var(--border);
            }
            .menu-links.show { display: flex; }
            .menu-links a { margin: 8px 0; margin-left: 0; }
            .live-support-btn { margin-left: 0; margin-top: 12px; text-align: center; }
            .join-us-btn { margin-left: 0; margin-top: 12px; text-align: center; display: block; }
        }

        /* Dark Mode Toggle Switch */
        .theme-switch-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: 18px;
        }
        .theme-switch {
            display: inline-block;
            width: 44px;
            height: 24px;
            position: relative;
        }
        .theme-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .slider {
            background-color: rgba(203, 213, 225, 0.75);
            position: absolute;
            inset: 0;
            border-radius: 999px;
            transition: var(--transition);
            box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.15);
        }
        .slider:before {
            background-color: #ffffff;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            top: 3px;
            position: absolute;
            transition: var(--transition);
            border-radius: 50%;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
        }
        input:checked + .slider {
            background-color: var(--primary);
        }
        input:checked + .slider:before {
            transform: translateX(20px);
        }
        .theme-icon {
            font-size: 16px;
            margin-left: 6px;
            color: var(--text-light);
            display: flex;
            align-items: center;
        }
        .theme-switch-wrapper:hover .slider {
            box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.25), 0 6px 18px rgba(0, 0, 0, 0.12);
        }

        .reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
        .reveal.active { opacity: 1; transform: translateY(0); }
    


        /* Tema uygulanana kadar body'yi gizle, ardından anında göster */
        html:not([data-theme]) body,
        html[data-theme] body {
            visibility: visible;
        }
    


    /* === BUTON === */
    #ai-chat-btn {
        position: fixed;
        bottom: 26px;
        right: 26px;
        height: 52px;
        padding: 0 22px;
        border-radius: 26px;
        background: var(--primary, #e11d48);
        color: #fff;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: 'Inter', sans-serif;
        font-size: 0.88rem;
        font-weight: 700;
        letter-spacing: 0.2px;
        z-index: 9998;
        box-shadow: 0 4px 20px rgba(225, 29, 72, 0.35);
        transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    }

    #ai-chat-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 28px rgba(225, 29, 72, 0.5);
    }

    #ai-chat-btn svg {
        flex-shrink: 0;
    }

    #ai-chat-btn-label {
        white-space: nowrap;
    }

    /* Küçük ekranda sadece ikon */
    @media (max-width: 400px) {
        #ai-chat-btn {
            padding: 0;
            width: 52px;
            border-radius: 50%;
        }

        #ai-chat-btn-label {
            display: none;
        }
    }

    /* Yeşil online noktası */
    #ai-online-dot {
        width: 8px;
        height: 8px;
        background: #4ade80;
        border-radius: 50%;
        flex-shrink: 0;
        box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
        animation: onlinePulse 2.2s infinite;
    }

    @keyframes onlinePulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.5;
        }
    }

    /* === PENCERE === */
    #ai-chat-window {
        position: fixed;
        bottom: 90px;
        right: 26px;
        width: 380px;
        max-width: calc(100vw - 20px);
        height: 620px;
        max-height: calc(100dvh - 110px);
        background: #ffffff;
        border-radius: 20px;
        border: 1px solid var(--border, rgba(225, 29, 72, 0.1));
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
        display: flex;
        flex-direction: column;
        z-index: 9999;
        overflow: hidden;
        transform: translateY(16px) scale(0.96);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    }

    #ai-chat-window.open {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: all;
    }

    [data-theme="dark"] #ai-chat-window {
        background: #0f172a;
        border-color: rgba(225, 29, 72, 0.2);
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    }

    /* Mobil tam ekran */
    @media (max-width: 480px) {
        #ai-chat-window {
            bottom: 0;
            right: 0;
            width: 100%;
            max-width: 100%;
            height: 100dvh;
            max-height: 100dvh;
            border-radius: 0;
            border: none;
        }

        #ai-chat-btn {
            bottom: 18px;
            right: 18px;
        }
    }

    /* === BAŞLIK BARI === */
    #ai-chat-header {
        background: var(--primary, #e11d48);
        color: #fff;
        padding: 16px 18px;
        display: flex;
        align-items: center;
        gap: 13px;
        flex-shrink: 0;
    }

    .ai-hdr-avatar {
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.18);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

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

    .ai-hdr-info strong {
        display: block;
        font-size: 0.92rem;
        font-weight: 700;
    }

    .ai-hdr-status {
        font-size: 0.72rem;
        opacity: 0.82;
        display: flex;
        align-items: center;
        gap: 5px;
        margin-top: 2px;
    }

    .ai-hdr-dot {
        width: 6px;
        height: 6px;
        background: #4ade80;
        border-radius: 50%;
    }

    #ai-chat-close {
        background: rgba(255, 255, 255, 0.15);
        border: none;
        color: #fff;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        font-weight: 700;
        transition: background 0.2s;
        flex-shrink: 0;
        font-family: sans-serif;
    }

    #ai-chat-close:hover {
        background: rgba(255, 255, 255, 0.28);
    }

    #ai-new-chat-btn {
        display: none;
        padding: 6px 12px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        color: #fff;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }

    #ai-new-chat-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: #fff;
    }

    /* Toast Notification Styles */
    .ai-toast {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.85);
        color: #fff;
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 0.85rem;
        z-index: 10000;
        text-align: center;
        max-width: 80%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        animation: aiToastIn 0.3s ease-out, aiToastOut 0.3s ease-in 1.2s forwards;
        pointer-events: none;
        line-height: 1.4;
    }

    @keyframes aiToastIn {
        from {
            opacity: 0;
            transform: translate(-50%, -40%);
        }

        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }

    @keyframes aiToastOut {
        from {
            opacity: 1;
            transform: translate(-50%, -50%);
        }

        to {
            opacity: 0;
            transform: translate(-50%, -60%);
        }
    }

    /* === İSİM FORMU === */
    #ai-name-form {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 32px 24px;
        text-align: center;
        gap: 0;
    }

    .ai-nf-icon {
        width: 60px;
        height: 60px;
        background: rgba(225, 29, 72, 0.08);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 18px;
    }

    .ai-nf-title {
        font-size: 1rem;
        font-weight: 800;
        color: var(--text-dark, #0f172a);
        margin-bottom: 6px;
        line-height: 1.3;
    }

    [data-theme="dark"] .ai-nf-title {
        color: #f1f5f9;
    }

    .ai-nf-sub {
        font-size: 0.82rem;
        color: var(--text-light, #64748b);
        line-height: 1.55;
        margin-bottom: 24px;
    }

    #ai-name-input {
        width: 100%;
        padding: 13px 16px;
        border: 1.5px solid var(--border, #e2e8f0);
        border-radius: 12px;
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
        outline: none;
        background: var(--card-bg, #f8fafc);
        color: var(--text-dark, #0f172a);
        transition: border 0.2s, background 0.2s;
        margin-bottom: 12px;
        text-align: center;
        box-sizing: border-box;
    }

    [data-theme="dark"] #ai-name-input {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }

    #ai-name-input:focus {
        border-color: var(--primary, #e11d48);
        background: #fff;
    }

    [data-theme="dark"] #ai-name-input:focus {
        background: #1e293b;
    }

    #ai-name-submit {
        width: 100%;
        padding: 13px;
        background: var(--primary, #e11d48);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 4px 14px rgba(225, 29, 72, 0.28);
        box-sizing: border-box;
    }

    #ai-name-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(225, 29, 72, 0.38);
    }

    #ai-name-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    /* === MESAJLAR === */
    #ai-chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        scroll-behavior: smooth;
        background: #ffffff;
    }

    [data-theme="dark"] #ai-chat-messages {
        background: #0f172a;
    }

    #ai-chat-messages::-webkit-scrollbar {
        width: 4px;
    }

    #ai-chat-messages::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 4px;
    }

    .ai-bubble-row {
        display: flex;
        flex-direction: column;
    }

    .ai-bubble-row.user {
        align-items: flex-end;
    }

    .ai-bubble-row.assistant {
        align-items: flex-start;
    }

    .ai-bubble {
        max-width: 85%;
        padding: 12px 16px;
        border-radius: 18px;
        font-size: 0.88rem;
        line-height: 1.6;
        word-break: break-word;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
        animation: bubbleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes bubbleIn {
        from {
            transform: translateY(8px) scale(0.95);
            opacity: 0;
        }

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

    .ai-bubble.assistant {
        background: #f1f5f9;
        color: var(--text-dark, #0f172a);
        border-bottom-left-radius: 4px;
        border: 1px solid #e2e8f0;
    }

    [data-theme="dark"] .ai-bubble.assistant {
        background: #1e293b;
        color: #f1f5f9;
        border-color: #334155;
    }

    .ai-bubble.user {
        background: linear-gradient(135deg, var(--primary, #e11d48), #be123c);
        color: #fff;
        border-bottom-right-radius: 4px;
    }

    .ai-bubble-time {
        font-size: 0.65rem;
        color: var(--text-light, #94a3b8);
        margin-top: 4px;
        padding: 0 6px;
    }

    .typing-cursor {
        display: inline-block;
        width: 6px;
        height: 12px;
        background-color: var(--text-dark, #0f172a);
        margin-left: 2px;
        animation: aiCursorBlink 1s step-end infinite;
        vertical-align: middle;
    }

    [data-theme="dark"] .typing-cursor {
        background-color: #f1f5f9;
    }

    @keyframes aiCursorBlink {
        50% {
            opacity: 0;
        }
    }

    /* Yazıyor göstergesi */
    .ai-typing {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 10px 14px;
        background: var(--card-bg, #f1f5f9);
        border-radius: 16px;
        border-bottom-left-radius: 4px;
        align-self: flex-start;
        animation: bubbleIn 0.25s ease;
    }

    [data-theme="dark"] .ai-typing {
        background: #334155;
    }

    .ai-typing span {
        width: 6px;
        height: 6px;
        background: var(--text-light, #94a3b8);
        border-radius: 50%;
        animation: typDot 1.2s infinite;
    }

    .ai-typing span:nth-child(2) {
        animation-delay: 0.18s;
    }

    .ai-typing span:nth-child(3) {
        animation-delay: 0.36s;
    }

    @keyframes typDot {

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

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

    /* === HIZLI BUTONLAR === */
    #ai-quick-btns {
        padding: 0 12px 10px;
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        flex-shrink: 0;
    }

    .ai-qbtn {
        padding: 5px 12px;
        background: transparent;
        border: 1.5px solid var(--border, rgba(225, 29, 72, 0.15));
        color: var(--primary, #e11d48);
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        font-family: 'Inter', sans-serif;
        transition: background 0.18s, border-color 0.18s;
        white-space: nowrap;
    }

    .ai-qbtn:hover {
        background: rgba(225, 29, 72, 0.07);
        border-color: var(--primary, #e11d48);
    }

    /* === GİRİŞ ALANI === */
    #ai-chat-footer {
        padding: 10px 12px 12px;
        border-top: 1px solid var(--border, #e2e8f0);
        display: flex;
        gap: 8px;
        align-items: flex-end;
        flex-shrink: 0;
        background: #ffffff;
    }

    [data-theme="dark"] #ai-chat-footer {
        background: #1e293b;
        border-top-color: #334155;
    }

    #ai-chat-input {
        flex: 1;
        padding: 10px 14px;
        border: 1.5px solid var(--border, #e2e8f0);
        border-radius: 20px;
        font-family: 'Inter', sans-serif;
        font-size: 0.875rem;
        outline: none;
        resize: none;
        max-height: 90px;
        overflow-y: auto;
        background: var(--card-bg, #f8fafc);
        color: var(--text-dark, #0f172a);
        line-height: 1.45;
        transition: border 0.18s;
    }

    [data-theme="dark"] #ai-chat-input {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }

    #ai-chat-input:focus {
        border-color: var(--primary, #e11d48);
        background: #fff;
    }

    [data-theme="dark"] #ai-chat-input:focus {
        background: #1e293b;
    }

    #ai-chat-send {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--primary, #e11d48);
        border: none;
        color: #fff;
        cursor: pointer;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 3px 10px rgba(225, 29, 72, 0.3);
    }

    #ai-chat-send:hover {
        transform: scale(1.08);
        box-shadow: 0 5px 15px rgba(225, 29, 72, 0.45);
    }

    #ai-chat-send:disabled {
        opacity: 0.45;
        cursor: not-allowed;
        transform: none;
    }
