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

    body {
        min-height: 100vh;
        font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        background:
            radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.18), transparent 30%),
            radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.15), transparent 30%),
            #080b14;
        color: #f8fafc;

        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 60px 20px;
    }

    /* Main Heading */
    h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        font-weight: 800;
        letter-spacing: -2px;
        margin-bottom: 35px;

        background: linear-gradient(
            135deg,
            #ffffff,
            #a5b4fc,
            #c084fc
        );

        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Chat Form */
    #form {
        width: min(700px, 100%);
        display: flex;
        align-items: center;
        gap: 12px;

        padding: 10px;

        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 18px;

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.35),
            inset 0 1px rgba(255, 255, 255, 0.08);
    }

    /* Hide label visually but keep it accessible */
    label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    /* Message Input */
    #input {
        flex: 1;
        min-width: 0;

        padding: 15px 18px;

        border: none;
        outline: none;
        border-radius: 12px;

        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;

        font-size: 16px;

        transition: 0.25s ease;
    }

    #input::placeholder {
        color: #64748b;
    }

    #input:focus {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.45);
    }

    /* Send Button */
    #sendBtn ,.toggleBtn {
        border: none;
        outline: none;
        cursor: pointer;

        padding: 14px 23px;
        border-radius: 12px;

        color: white;
        font-size: 15px;
        font-weight: 700;

        background: linear-gradient(
            135deg,
            #6366f1,
            #8b5cf6
        );

        box-shadow:
            0 8px 25px rgba(99, 102, 241, 0.3);

        transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            filter 0.2s ease;
    }

    #sendBtn:hover {
        transform: translateY(-2px);
        filter: brightness(1.12);

        box-shadow:
            0 12px 30px rgba(99, 102, 241, 0.45);
    }

    #sendBtn:active {
        transform: translateY(0) scale(0.97);
    }

    /* Messages Container */
    #messages {
        width: min(700px, 100%);
        margin-top: 25px;

        list-style: none;

        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Individual Message */
    #messages li {
        width: fit-content;
        max-width: 80%;

        padding: 13px 17px;

        border-radius: 16px 16px 16px 4px;

        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.08);

        color: #e2e8f0;
        font-size: 15px;
        line-height: 1.5;

        word-break: break-word;

        backdrop-filter: blur(12px);

        animation: messageIn 0.3s ease forwards;
    }

    /* Message Animation */
    @keyframes messageIn {
        from {
            opacity: 0;
            transform: translateY(10px) scale(0.98);
        }

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

    /* Mobile */
    @media (max-width: 600px) {
        body {
            padding: 35px 14px;
        }

        h1 {
            margin-bottom: 25px;
        }

        #form {
            padding: 8px;
        }

        #input {
            padding: 13px;
        }

        #sendBtn {
            padding: 13px 17px;
        }

        #messages li {
            max-width: 90%;
        }
    }
