.leyo-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 12px;
    font-family: "Inter", sans-serif;
}

.leyo-panel {
    width: min(360px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(137, 233, 215, .18);
    border-radius: 22px;
    background: #151722;
    box-shadow: 0 24px 70px rgba(16, 18, 29, .3);
    opacity: 0;
    transform: translateY(14px) scale(.97);
    transform-origin: right bottom;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.leyo-chat.is-open .leyo-panel {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.leyo-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(120deg, rgba(110, 225, 204, .09), rgba(126, 91, 255, .1));
}

.leyo-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #79e2ce, #8464ff);
    color: #11131c;
    font-weight: 800;
}

.leyo-header > div:nth-child(2) { display: grid; gap: 3px; }
.leyo-header strong { color: #fff; font-size: .94rem; }
.leyo-header span { color: #9ba0af; font-size: .7rem; }
.leyo-header span i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #79e2ce; box-shadow: 0 0 8px #79e2ce; }

.leyo-close {
    width: 32px;
    height: 32px;
    margin-left: auto;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #aeb2bf;
    cursor: pointer;
    font-size: 1.35rem;
}
.leyo-close:hover { background: rgba(255,255,255,.07); color: #fff; }

.leyo-messages {
    height: 250px;
    overflow-y: auto;
    padding: 20px 18px;
}

.leyo-message {
    width: fit-content;
    max-width: 84%;
    margin-bottom: 10px;
    padding: 11px 13px;
    border-radius: 14px;
    color: #e8e9ef;
    font-size: .8rem;
    line-height: 1.55;
}

.leyo-message-bot { border-bottom-left-radius: 4px; background: #242735; }
.leyo-message-user { margin-left: auto; border-bottom-right-radius: 4px; background: linear-gradient(135deg, #6edbc6, #8b70ff); color: #11131c; }
.leyo-contact-link { display: block; width: fit-content; margin-top: 10px; padding-bottom: 2px; border-bottom: 1px solid rgba(121, 226, 206, .55); color: #86e7d4; font-weight: 700; text-decoration: none; }
.leyo-contact-link:hover { border-color: #a38cff; color: #b3a2ff; }

.leyo-form {
    display: flex;
    gap: 8px;
    padding: 13px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.leyo-form input {
    min-width: 0;
    flex: 1;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    outline: none;
    background: #20232f;
    padding: 0 13px;
    color: #fff;
    font: inherit;
    font-size: .78rem;
}
.leyo-form input:focus { border-color: rgba(121,226,206,.55); }
.leyo-form input::placeholder { color: #777c8c; }

.leyo-form button,
.leyo-trigger {
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, #79e2ce, #8869ff);
}

.leyo-form button { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #12141d; }
.leyo-form button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.leyo-trigger {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 7px 18px 7px 8px;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(51, 42, 100, .25);
    color: #171923;
    font-weight: 750;
}

.leyo-trigger-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: rgba(18,20,29,.9); color: #86e7d4; }
.leyo-trigger-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 560px) {
    .leyo-chat { right: 32px; bottom: 16px; }
    .leyo-panel { width: calc(100vw - 64px); }
    .leyo-trigger > span:last-child { display: none; }
    .leyo-trigger { min-height: 54px; padding: 7px; border-radius: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .leyo-panel { transition: none; }
}
