@media screen and (max-width: 499px) {
    .global-blur {
        z-index: 100;
        position: fixed;
        top: 0;
        left: 0;

        pointer-events: none;
        opacity: 1;

        display: none;
        justify-content: center;
        align-items: center;
        align-content: center;

        width: 100%;
        height: 100%;

        backdrop-filter: var(--glassBlur);

        transition: all 600ms ease-in-out;
    }
    .global-blur-icon {
        width: 50%;
        height: 50%;

        opacity: 0.1;
    }

    /* AI */
    .assistant {
        z-index: 101;
        position: fixed;
        bottom: 0;
        right: 0;

        display: none;

        height: 100%;
        width: 100%;

        transition: all 300ms ease-in-out;
    }
    .assistant-frame {
        position: relative;

        display: flex;
        flex-direction: column;
        align-items: flex-end;
        align-content: flex-end;
        justify-content: flex-end;

        height: 100%;
        width: 100%;
    }

    .assistant-brand {
        cursor: pointer;

        display: flex;
        flex-direction: row;
        align-items: center;
        align-content: center;
        justify-content: space-between;

        padding: 1rem;
        height: 3rem;
        width: 3rem;

        border-radius: 50%;

        transition: all 300ms ease-in-out 200ms;
    }
    .assistant-brand-frame {
        display: flex;
        flex-direction: column;
        align-items: center;
        align-content: center;
        justify-content: center;

        width: 100%;
        height: 100%;

        transition: all 300ms ease-in-out;
    }

    .assistant-brand-icon {
        width: 100%;
        height: 100%;

        transition: all 300ms ease-in-out;
    }
    @keyframes bounce {
        0% {
            transform: translateY(0);
        }
        30% {
            transform: translateY(-4px);
        }
        60% {
            transform: translateY(2px);
        }
        100% {
            transform: translateY(0);
        }
    }

    .assistant-core {
        display: flex;
        flex-direction: column;

        border-bottom-left-radius: var(--r);
        border-bottom-right-radius: var(--r);
        opacity: 1;
        background: var(--light02);

        width: 0;
        height: 0;

        transition: all 300ms ease-in-out;
    }
    .assistant-core-frame {
        position: relative;

        display: flex;
        flex-direction: column;

        height: 100%;
        overflow: hidden;
        transition: all 300ms ease-in-out;
    }

    .assistant-core-heading {
        z-index: 2;
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: center;

        padding: 1rem;

        border-radius: var(--r);
    }
    .assistant-core-heading-frame {
        display: flex;
        flex-direction: row;
        align-items: center;
        align-content: center;
        justify-content: space-between;

        gap: 0.5rem;

        padding: 0;
        width: calc(100% - 0rem);
    }
    .assistant-core-heading-icon {
        min-width: 0.7rem;
        height: 0.7rem;

        filter: invert(1);
    }

    /* Chat Messages */
    .assistant-chat-messages {
        z-index: 1;
        padding: 1rem;
        overflow-y: scroll;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background: var(--light01);
        border-radius: var(--r);
    }

    /* Message Bubbles */
    .message {
        font-size: 0.85rem;
        font-weight: 400;
        padding: 0.8rem;
        color: var(--dark);
        border-radius: var(--r);
        line-height: 1.5;
        word-wrap: break-word;
        flex-wrap: wrap;
    }
    .message-user {
        align-self: flex-end;
        background: var(--light02);
    }
    .message-assistant {
        align-self: flex-start;
        background: var(--light03);
    }

    /* Input Area */
    .assistant-chat-input {
        display: flex;

        margin: 0;
        padding: 0.5rem;
    }
    .assistant-chat-input-container {
        display: flex;
        flex-direction: column;

        padding: 0.5rem;
        width: calc(100% - 1rem);
        background: var(--light01);
        border-radius: var(--r);

        gap: 1rem;
    }
    .assistant-chat-input-container-holder {
        display: flex;
        flex-direction: row;
        align-items: center;
        align-content: center;
        justify-content: space-between;

        width: 100%;

        gap: 1rem;
    }

    .assistant-input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 0.8rem;
        color: var(--dark01);

        background: transparent;
    }

    .assistant-send-button {
        cursor: pointer;
        color: var(--dark);
        font-size: 0.75rem;
        font-weight: 300;
        letter-spacing: 1px;

        padding: 0.8rem;
        border-radius: var(--r);
        background: var(--light02);
    }
    .assistant-send-button:hover {
        background: var(--light);
    }

    .assistant-input::placeholder {
        color: var(--dark);
        opacity: 0.3;
        font-size: 0.75rem;
        font-weight: 300;
        letter-spacing: 1px;
    }

    .assistant-send-title {
        color: var(--dark);
        opacity: 0.3;
        font-size: 0.75rem;
        font-weight: 300;
        letter-spacing: 1px;
    }


    @keyframes bounceIn {
      0% {
        transform: scale(0.93);
        opacity: 0;
      }
      60% {
        transform: scale(1.04);
        opacity: 1;
      }
      100% {
        transform: scale(1);
      }
    }
    .message-assistant.bounce-in {
      animation: bounceIn 0.4s ease-in-out;
    }
}
@media screen and (min-width: 999px) {
    .global-blur {
        z-index: 100;
        position: absolute;
        top: 0;
        left: 0;

        pointer-events: none;
        opacity: 0;

        display: flex;
        justify-content: center;
        align-items: center;
        align-content: center;

        width: 100%;
        height: 100%;

        backdrop-filter: var(--glassBlur);
        background: var(--glassBg);

        transition: all 600ms ease-in-out;
    }

    .global-blur-icon {
        width: 50%;
        height: 50%;

        opacity: 0.1;
    }

    /* AI */
    .assistant {
        z-index: 101;
        position: fixed;
        bottom: 1rem;
        right: 1rem;

        transition: all 300ms ease-in-out;
    }
    .assistant-frame {
        position: relative;

        display: flex;
        flex-direction: column;
        align-items: center;
        align-content: center;
        justify-content: space-between;

        width: 100%;
    }

    .assistant-brand {
        cursor: pointer;

        display: flex;
        flex-direction: row;
        align-items: center;
        align-content: center;
        justify-content: space-between;

        padding: 0;
        outline: 0;
        background: var(--dark01);
        height: 2rem;
        width: 2rem;
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.4), inset -4px -4px 8px rgba(255, 255, 255, 0.05);

        border-radius: 50%;

        transition: all 300ms ease-in-out 200ms;
    }
    .assistant-brand-frame {
        display: flex;
        flex-direction: column;
        align-items: center;
        align-content: center;
        justify-content: center;

        width: 100%;
        height: 100%;

        transition: all 300ms ease-in-out;
    }
    .assistant-brand-icon {
        width: 100%;
        height: 100%;
    box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.4), inset 4px 4px 8px rgba(255, 255, 255, 0.05);

    }
    .assistant-brand:hover {
        animation: var(--bounce);
    }

    @keyframes bounce {
        0% {
            transform: translateY(0);
        }
        30% {
            transform: translateY(-4px);
        }
        60% {
            transform: translateY(2px);
        }
        100% {
            transform: translateY(0);
        }
    }

    .assistant-core {
        display: flex;
        flex-direction: column;

        border-radius: var(--r);
        background: var(--dark01);
        border: 2px solid var(--dark02);

        overflow: hidden;

        padding: 0;
        width: 0;
        height: 0;

        transition: all 300ms ease-in-out;
    }
    .assistant-core-frame {
        position: relative;

        flex: 1;
        display: flex;
        flex-direction: column;

        overflow: hidden;
        transition: all 300ms ease-in-out;

        width: 100%;
    }

    .assistant-core-heading {
        z-index: 1;
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: center;

        margin-bottom: 1rem;

        width: 100%;
        border-top-right-radius: var(--r);
        border-top-left-radius: var(--r);
    }
    .assistant-core-heading-frame {
        display: flex;
        flex-direction: row;
        align-items: center;
        align-content: center;
        justify-content: center;

        gap: 0.5rem;

        padding: 0;
        width: calc(100% - 0rem);
    }
    .assistant-core-heading-title {
        cursor: pointer;

        font-size: 1rem;
        font-weight: 600;
    }

    /* Chat Messages */
    .assistant-chat-messages {
        z-index: 2;
        flex: 1;
        padding: 1rem;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        border-radius: var(--r);
        background: var(--dark);
        margin-bottom: 1rem;
    }

    /* Message Bubbles */
    .message {
        font-size: 0.9rem;
        font-weight: 500;
        padding: 1rem;
        border-radius: var(--r);
        background: var(--dark01);

        color: var(--light);
        line-height: 1.5;
        word-wrap: break-word;
        flex-wrap: wrap;
    }

    .message-user {
        align-self: flex-end;
    }

    .message-assistant {
        align-self: flex-start;
        color: var(--c);
    }

    /* Input Area */
    .assistant-chat-input {
        display: flex;

        margin: 0;
        padding: 0.5rem;
        border-radius: var(--r);
        background: var(--dark);
        width: 100%;
    }

    .assistant-chat-input-container {
        display: flex;
        flex-direction: column;

        padding: 0.5rem;
        width: 100%;

        border-radius: var(--r);

        gap: 1rem;
    }

    .assistant-chat-input-container-holder {
        display: flex;
        flex-direction: row;
        align-items: center;
        align-content: center;
        justify-content: space-between;

        width: 100%;

        gap: 1rem;
    }

    .assistant-input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 0.8rem;
        color: var(--light);

        background: transparent;
    }

    .assistant-send-button {
        cursor: pointer;
        color: var(--light);
        font-size: 0.75rem;
        font-weight: 300;
        letter-spacing: 1px;

        padding: 0.8rem;
        border-radius: var(--r);

    }
    .assistant-input::placeholder {
        color: var(--light);
        opacity: 0.3;
        font-size: 0.75rem;
        font-weight: 400;
    }

    .assistant-send-title {
        color: var(--dark);
        opacity: 0.3;
        font-size: 0.75rem;
        font-weight: 300;
        letter-spacing: 1px;
    }

}

















