.guapa-assistant {
    --assistant-accent: #ff684f;
    --assistant-ink: #202438;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    font-family: inherit;
}

.guapa-assistant__toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 19px;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(125deg, #ff7657, #e83e59 72%, #ca3d72);
    box-shadow: 0 10px 28px rgba(232, 62, 89, 0.34), 0 0 24px rgba(255, 104, 79, 0.18);
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 300ms ease;
}

.guapa-assistant__toggle::after {
    position: absolute;
    inset: -60% auto -60% -55%;
    width: 36%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: rotate(24deg);
    animation: guapa-assistant-shine 5s ease-in-out infinite;
}

.guapa-assistant__toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(232, 62, 89, 0.4), 0 0 32px rgba(255, 104, 79, 0.22);
}

.guapa-assistant__toggle-icon {
    font-size: 19px;
    line-height: 1;
}

.guapa-assistant__panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    display: flex;
    flex-direction: column;
    width: min(370px, calc(100vw - 32px));
    height: min(490px, calc(100vh - 120px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 72px rgba(31, 38, 57, 0.22), 0 0 38px rgba(255, 104, 79, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.98);
    transform-origin: bottom right;
    transition: opacity 200ms ease, transform 240ms ease;
    backdrop-filter: blur(18px);
}

.guapa-assistant__panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.guapa-assistant__header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(115deg, #252a40, #3e3454 70%, #6a3b65);
}

.guapa-assistant__avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: linear-gradient(145deg, #ff9c69, #f05676);
    box-shadow: 0 0 20px rgba(255, 120, 105, 0.34);
}

.guapa-assistant__avatar canvas {
    width: 36px;
    height: 36px;
}

.guapa-assistant__heading {
    display: grid;
    gap: 3px;
}

.guapa-assistant__heading strong {
    font-size: 14px;
}

.guapa-assistant__heading small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.guapa-assistant__close {
    width: 34px;
    height: 34px;
    margin-left: auto;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.guapa-assistant__messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 16px;
    background: radial-gradient(ellipse at top right, rgba(255, 104, 79, 0.08), transparent 45%), #fbfbfd;
}

.guapa-assistant__message {
    max-width: 86%;
    margin: 0;
    padding: 10px 13px;
    color: var(--assistant-ink);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    border-radius: 15px 15px 15px 5px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(31, 38, 57, 0.07);
}

.guapa-assistant__message--user {
    align-self: flex-end;
    color: #fff;
    border-radius: 15px 15px 5px 15px;
    background: linear-gradient(130deg, #ff7657, #e84e68);
}

.guapa-assistant__form {
    display: flex;
    gap: 9px;
    padding: 12px;
    border-top: 1px solid rgba(31, 38, 57, 0.08);
}

.guapa-assistant__form input {
    width: 0;
    min-width: 0;
    flex: 1;
    padding: 10px 13px;
    color: var(--assistant-ink);
    border: 1px solid rgba(31, 38, 57, 0.12);
    border-radius: 12px;
    outline: none;
    background: #fff;
}

.guapa-assistant__form input:focus {
    border-color: rgba(255, 104, 79, 0.72);
    box-shadow: 0 0 0 3px rgba(255, 104, 79, 0.12);
}

.guapa-assistant__form button {
    width: 42px;
    color: #fff;
    font-size: 21px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7657, #e84e68);
    cursor: pointer;
}

.guapa-assistant__form button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.guapa-assistant__status {
    min-height: 18px;
    margin: -8px 12px 8px;
    color: #a2424d;
    font-size: 11px;
}

@keyframes guapa-assistant-shine {
    0%, 68%, 100% { left: -55%; }
    82% { left: 125%; }
}

@media (max-width: 480px) {
    .guapa-assistant {
        right: 14px;
        bottom: 14px;
    }

    .guapa-assistant__toggle {
        min-height: 50px;
        padding: 0 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guapa-assistant *,
    .guapa-assistant *::before,
    .guapa-assistant *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
