.ag-ai-cap__t {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #6eb5d4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ag-ai-cap__list {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.45;
    color: #b8c0d0;
}

.ag-ai-cap__list li {
    margin-bottom: 4px;
}

#agAiRoot {
    position: fixed;
    z-index: 9990;
    right: 18px;
    bottom: 18px;
    font-family: var(--ag-font, "Segoe UI", system-ui, sans-serif);
}

.ag-ai-fab {
    position: relative;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(110, 181, 212, 0.35);
    border-radius: 50%;
    cursor: pointer;
    color: #8ecae6;
    background: radial-gradient(circle at 35% 30%, #1a2030, #06070a 70%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 28px rgba(110, 181, 212, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: agAiFabGlow 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes agAiFabGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(110, 181, 212, 0.1); }
    50% { box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6), 0 0 32px rgba(110, 181, 212, 0.22); }
}

.ag-ai-fab:hover {
    transform: scale(1.06);
}

.ag-ai-fab__ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(110, 181, 212, 0.25);
    animation: agAiRing 2.5s linear infinite;
    pointer-events: none;
}

@keyframes agAiRing {
    to { transform: rotate(360deg); }
}

.ag-ai-fab__logo {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-ai-fab__logo .ag-ai-logo-svg {
    width: 100%;
    height: 100%;
    animation: agAiLogoSpin 12s linear infinite;
}

.ag-ai-logo-svg {
    display: block;
    color: #9ec9e8;
}

.ag-ai-logo__orbit {
    animation: agAiLogoSpin 18s linear infinite reverse;
    transform-origin: center;
}

.ag-ai-logo__glow {
    animation: agAiLogoPulse 2.5s ease-in-out infinite;
}

@keyframes agAiLogoSpin {
    to { transform: rotate(360deg); }
}

@keyframes agAiLogoPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.28; }
}

.ag-ai-fab__icon {
    font-size: 22px;
    line-height: 1;
}

.ag-ai-fab__label {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(140, 155, 185, 0.2);
    background: rgba(6, 7, 10, 0.95);
    font: 700 11px/1 var(--ag-mono, monospace);
    letter-spacing: 0.06em;
    color: #8a9bb5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ag-ai-fab:hover .ag-ai-fab__label {
    opacity: 1;
}

.ag-ai-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    width: min(380px, calc(100vw - 28px));
    max-height: min(520px, calc(100vh - 100px));
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid rgba(140, 155, 185, 0.22);
    background: linear-gradient(180deg, rgba(10, 11, 14, 0.98), rgba(4, 5, 7, 0.99));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
}

.ag-ai-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ag-ai-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(140, 155, 185, 0.12);
    background: rgba(110, 181, 212, 0.04);
}

.ag-ai-head__info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ag-ai-head__logo {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    color: #8ecae6;
    filter: drop-shadow(0 0 10px rgba(110, 181, 212, 0.35));
}

.ag-ai-head__logo .ag-ai-logo-svg {
    width: 100%;
    height: 100%;
}

.ag-ai-head__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6eb5d4;
    box-shadow: 0 0 10px rgba(110, 181, 212, 0.6);
    animation: agAiPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes agAiPulse {
    50% { opacity: 0.5; }
}

.ag-ai-head__title {
    margin: 0;
    font: 800 13px/1.2 var(--ag-mono, monospace);
    color: #e8ecf2;
    letter-spacing: 0.04em;
}

.ag-ai-head__sub {
    margin: 2px 0 0;
    font-size: 10px;
    color: #5c6578;
}

.ag-ai-close {
    border: 0;
    background: transparent;
    color: #5c6578;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.ag-ai-close:hover { color: #9ca8c4; }

.ag-ai-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    max-height: 320px;
    scroll-behavior: smooth;
}

.ag-ai-msg-wrap {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    max-width: 100%;
    animation: agAiMsgIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-ai-msg-wrap--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ag-ai-msg-wrap--bot {
    align-self: flex-start;
}

.ag-ai-msg__avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #7eb8d8;
    opacity: 0.9;
}

.ag-ai-msg__avatar--pulse {
    animation: agAiLogoPulse 1s ease-in-out infinite;
}

.ag-ai-msg__avatar .ag-ai-logo-svg {
    width: 100%;
    height: 100%;
}

.ag-ai-msg {
    max-width: calc(100% - 36px);
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
}

.ag-ai-msg-wrap .ag-ai-msg {
    animation: none;
}

@keyframes agAiMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ag-ai-msg--bot {
    border: 1px solid rgba(140, 155, 185, 0.15);
    background: rgba(0, 0, 0, 0.45);
    color: #c8cdd8;
    border-bottom-left-radius: 4px;
}

.ag-ai-msg--user {
    border: 1px solid rgba(110, 181, 212, 0.25);
    background: rgba(110, 181, 212, 0.1);
    color: #e8ecf2;
    border-bottom-right-radius: 4px;
}

.ag-ai-msg code {
    font: 600 11px/1.4 var(--ag-mono, monospace);
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.45);
    color: #b8c8e8;
}

.ag-ai-msg strong {
    color: #e8ecf2;
    font-weight: 700;
}

.ag-ai-typing {
    display: flex;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(140, 155, 185, 0.12);
    background: rgba(0, 0, 0, 0.35);
}

.ag-ai-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6eb5d4;
    animation: agAiTyping 1.2s ease-in-out infinite;
}

.ag-ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ag-ai-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes agAiTyping {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

.ag-ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 10px;
}

.ag-ai-chip {
    border: 1px solid rgba(140, 155, 185, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #9ca8c4;
    border-radius: 999px;
    padding: 6px 12px;
    font: 600 11px/1 var(--ag-mono, monospace);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ag-ai-chip:hover {
    border-color: rgba(110, 181, 212, 0.4);
    color: #e8ecf2;
    background: rgba(110, 181, 212, 0.08);
}

.ag-ai-planos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 14px 8px;
}

.ag-ai-plano-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(110, 181, 212, 0.25);
    background: linear-gradient(145deg, rgba(20, 28, 40, 0.9), rgba(6, 8, 12, 0.95));
    color: #e8ecf2;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.ag-ai-plano-btn:hover {
    border-color: rgba(110, 181, 212, 0.55);
    box-shadow: 0 0 16px rgba(110, 181, 212, 0.15);
    transform: translateY(-1px);
}

.ag-ai-plano-btn__t {
    font: 700 11px/1.2 var(--ag-mono, monospace);
    letter-spacing: 0.03em;
}

.ag-ai-plano-btn__p {
    font-size: 12px;
    color: #8ecae6;
    font-weight: 800;
}

.ag-ai-form {
    display: flex;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(140, 155, 185, 0.1);
    background: rgba(0, 0, 0, 0.35);
}

.ag-ai-input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(140, 155, 185, 0.18);
    background: rgba(0, 0, 0, 0.5);
    color: #e8ecf2;
    font-size: 13px;
    outline: none;
}

.ag-ai-input:focus {
    border-color: rgba(110, 181, 212, 0.4);
    box-shadow: 0 0 0 3px rgba(110, 181, 212, 0.08);
}

.ag-ai-send {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    color: #0a0c10;
    background: linear-gradient(135deg, #b8c8e8, #6b8aaa);
    font-size: 16px;
    flex-shrink: 0;
    transition: filter 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-ai-send:hover { filter: brightness(1.1); }
.ag-ai-send:disabled { opacity: 0.5; cursor: wait; }

.ag-ai-msg--card {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: 100%;
}

.ag-ai-pix {
    border: 1px solid rgba(110, 181, 212, 0.28);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(12, 16, 22, 0.98), rgba(4, 6, 10, 0.99));
    padding: 12px;
    text-align: center;
}

.ag-ai-pix__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 700 10px/1 var(--ag-mono, monospace);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a8498;
    margin-bottom: 8px;
}

.ag-ai-pix__live {
    color: #8ecae6;
}

.ag-ai-pix__valor {
    font: 800 20px/1.1 var(--ag-mono, monospace);
    color: #e8ecf2;
    margin-bottom: 10px;
}

.ag-ai-pix__valor small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #7a8498;
    margin-top: 4px;
}

.ag-ai-pix__qr img {
    width: min(180px, 70vw);
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(140, 155, 185, 0.2);
    background: #fff;
    padding: 6px;
}

.ag-ai-pix__copy {
    margin-top: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(110, 181, 212, 0.35);
    border-radius: 10px;
    background: rgba(110, 181, 212, 0.1);
    color: #e8ecf2;
    font: 700 11px/1 var(--ag-mono, monospace);
    cursor: pointer;
}

.ag-ai-pix__copy:hover {
    background: rgba(110, 181, 212, 0.18);
}

.ag-ai-cred {
    border: 1px solid rgba(110, 181, 212, 0.3);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(10, 18, 14, 0.95), rgba(4, 6, 8, 0.99));
    padding: 12px;
}

.ag-ai-cred__badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(110, 181, 212, 0.15);
    color: #8ecae6;
    font: 700 9px/1 var(--ag-mono, monospace);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ag-ai-cred__title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    color: #e8ecf2;
}

.ag-ai-cred__row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
    color: #8a93a8;
}

.ag-ai-cred__row code {
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    color: #e8ecf2;
    font: 600 11px/1.3 var(--ag-mono, monospace);
    word-break: break-all;
}

.ag-ai-cred__btn {
    border: 0;
    border-radius: 8px;
    padding: 6px 8px;
    background: rgba(110, 181, 212, 0.2);
    color: #c8e4f4;
    font: 700 10px/1 var(--ag-mono, monospace);
    cursor: pointer;
}

.ag-ai-cred__wa {
    display: block;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font: 800 11px/1 var(--ag-mono, monospace);
    letter-spacing: 0.04em;
}

.ag-ai-contato {
    border: 1px solid rgba(46, 204, 113, 0.35);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(8, 20, 12, 0.95), rgba(4, 6, 8, 0.99));
    padding: 14px;
    text-align: center;
}

.ag-ai-contato__label {
    margin: 0 0 8px;
    font: 700 9px/1 var(--ag-mono, monospace);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6fcf97;
}

.ag-ai-contato__nome {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: #e8ecf2;
}

.ag-ai-contato__wa {
    margin: 0 0 12px;
    font: 700 13px/1.3 var(--ag-mono, monospace);
    color: #8ecae6;
}

.ag-ai-contato__btn {
    display: inline-block;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    text-decoration: none;
    font: 800 12px/1 var(--ag-mono, monospace);
    letter-spacing: 0.04em;
}

.ag-ai-contato__btn:hover {
    filter: brightness(1.08);
}

@media (max-width: 480px) {
    #agAiRoot {
        right: 12px;
        bottom: 12px;
    }

    .ag-ai-panel {
        width: calc(100vw - 24px);
    }

    .ag-ai-fab__label { display: none; }
}
