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

html,body {
    height: 100%
}

body {
    font-family: Segoe UI,Tahoma,Geneva,Verdana,sans-serif;
    background: var(--bg-gradient);
    height: 100dvh;
    min-height: 100svh;
    display: block;
    padding: 0;
    margin: 0;
    overscroll-behavior-y: contain
}

:root {
    --chat-bg: #efeae2;
    --chat-wallpaper: url(https://credprotege.com/images/chat-wallpaper-dark.png);
    --brand-base: var(--brand-500);
    --brand-strong: var(--brand-600, color-mix(in srgb, var(--brand-base) 86%, #000));
    --brand-soft: color-mix(in srgb, var(--brand-base) 72%, #fff);
    --brand-1: var(--brand-soft);
    --brand-2: var(--brand-strong);
    --bg-gradient: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
    --surface: rgba(255,255,255,.86);
    --surface-2: rgba(255,255,255,.98);
    --text: #0A0A0A;
    --muted: #6b7280;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --kbd: 0px;
    --input-h: 0px;
    --ring: color-mix(in srgb, var(--brand-1) 45%, transparent);
    --brand-gd: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
    --bubble-bot: #ffffff;
    --bubble-user: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
    --bubble-user-fg: #ffffff;
    --vh: 1vh
    --ms-navy: #12385B;         /* azul principal (do logotipo) */
   --ms-gold: #BE9630;         /* dourado */
   --ms-gold-600:#b5891e;
   --ms-gold-700:#a77911;
   --ms-ink: #0f1a2a;          /* texto escuro azulado */
   --ms-beige: #F4EFE7;        /* fundo bege claro */
   --ms-beige-2:#efe8dc;       /* variação */
   --bubble-radius: 18px;
   --shadow-1: 0 6px 20px rgba(16,24,40,.12);
   --shadow-2: 0 10px 32px rgba(16,24,40,.16);    
}

@media (prefers-color-scheme: dark) {
    :root {
        --chat-bg: #111b21;
        --chat-wallpaper: url(https://credprotege.com/images/chat-wallpaper-dark.png)
    }
}

body {
    background: var(--bg-gradient)
}

.chat-container {
    width: 100vw;
    max-width: none;
    height: calc(var(--vh, 1vh) * 100);
    min-height: 100svh;
    max-height: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--surface);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border: 1px solid rgba(255,255,255,0);
    box-shadow: none
}

.chat-header {
    background: var(--brand-gd);
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px #0000001a
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem
}

.chat-info h3 {
    font-size: 1.2rem;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px
}

.verified-icon {
    width: 30px;
    height: 30px;
    display: inline-block
}

.chat-info p {
    font-size: .85rem;
    opacity: .9
}

.chat-header .chat-info p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    line-height: 1
}

.online-status {
    display: flex;
    align-items: center;
    gap: 6px
}

.online-text {
    font-size: .85rem;
    opacity: .95;
    line-height: 1
}

.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e!important;
    box-shadow: 0 0 #22c55e73,0 0 8px 2px #22c55e66;
    animation: onlinePulse 1.2s ease-in-out infinite
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--chat-bg);
    background-image: var(--chat-wallpaper);
    background-size: 512px 512px;
    background-repeat: repeat;
    background-attachment: fixed;
    scroll-behavior: smooth;
    padding-bottom: calc(var(--input-h) + 12px + var(--safe-bottom))
}

body.kbd-open .chat-messages {
    padding-bottom: calc(var(--input-h) + var(--kbd) + 12px + var(--safe-bottom))
}

.message {
    margin-bottom: 15px;
    animation: slideIn .4s ease-out
}

.message .message-inner {
    display: flex;
    align-items: flex-start;
    gap: 8px
}

.message .message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    -o-object-fit: cover;
    object-fit: cover;
    box-shadow: 0 0 0 2px #ffffffe6;
    flex: 0 0 auto
}

.message-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 6px 18px #0206170f;
    word-wrap: break-word;
    white-space: pre-line;
    color: var(--text)
}

.message.received {
    display: flex;
    justify-content: flex-start
}

.message.received .message-bubble {
    background: var(--bubble-bot);
    border-bottom-left-radius: 4px;
    margin-left: 0;
    color: var(--text)
}

.message.sent {
    display: flex;
    justify-content: flex-end
}

.message.sent .message-bubble {
    background: var(--brand-gd);
    border-bottom-right-radius: 4px;
    margin-right: 0;
    color: var(--bubble-user-fg)
}

.message-time {
    font-size: .7rem;
    opacity: .8;
    margin-top: 5px;
    text-align: right;
    color: var(--muted)
}

.message.received .message-time {
    text-align: left
}

.message.composer {
    display: flex;
    justify-content: flex-start
}

.message.composer.hidden {
    display: none!important
}

.composer-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid rgba(2,6,23,.1);
    border-radius: 18px;
    padding: 10px 12px;
    box-shadow: 0 2px 8px #0000000f
}

.message.composer.disabled .composer-bubble {
    opacity: .6;
    pointer-events: none
}

.message.composer #messageInput {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(2,6,23,.1);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 16px;
    outline: none
}

.options-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.option-button {
    background: var(--brand-gd);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all .3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    box-shadow: 0 10px 24px color-mix(in srgb,var(--brand-2) 36%,transparent);
    border: 1px solid rgba(255,255,255,.35);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.option-button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.option-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px color-mix(in srgb,var(--brand-2) 42%,transparent)
}

.option-button:active {
    transform: translateY(0)
}

.options-container .option-button:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px
}

.options-container .option-button[disabled] {
    color: #ffffffbf;
    cursor: not-allowed;
    filter: saturate(.9) brightness(.98)
}

.typing-indicator,#typingIndicator {
    display: none;
    justify-content: flex-start;
    margin-bottom: 15px
}

.typing-indicator.active,#typingIndicator.active {
    display: flex;
    animation: slideIn .4s ease-out
}

.typing-indicator {
    align-items: flex-end;
    gap: 8px
}

.typing-bubble {
    background: var(--bubble-bot);
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 8px #0000001a;
    display: flex;
    align-items: center;
    gap: 8px
}

.typing-text {
    font-size: .75rem;
    color: #6b7280
}

.typing-dots {
    display: flex;
    gap: 3px
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    animation: typingBounce 1.4s infinite
}

.typing-dot:nth-child(2) {
    animation-delay: .2s
}

.typing-dot:nth-child(3) {
    animation-delay: .4s
}

.typing-indicator .message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    -o-object-fit: cover;
    object-fit: cover;
    flex: 0 0 auto;
    margin: 0;
    box-shadow: 0 0 0 2px #ffffffe6;
    background: transparent!important
}

.typing-indicator {
    margin-left: 8px;
    margin-top: 6px
}

@media (max-width: 480px) {
    .typing-indicator .message-avatar {
        width:24px;
        height: 24px
    }
}

.avatar-perfil {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    -o-object-fit: cover;
    object-fit: cover;
    flex: 0 0 auto;
    margin: 0;
    box-shadow: 0 0 0 2px #ffffffe6;
    background: transparent!important
}

.input-container {
    padding-bottom: calc(15px + env(safe-area-inset-bottom,0px));
    position: relative;
    z-index: 5;
    will-change: transform;
    backface-visibility: hidden;
    background: var(--surface-2);
    padding: 15px 20px;
    padding-bottom: calc(15px + var(--safe-bottom));
    display: none;
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,.06)
}

.input-container.active {
    display: flex
}

body.kbd-open .input-container {
    margin-bottom: var(--kbd)
}

.input-container input,#messageInput {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(2,6,23,.1);
    border-radius: 25px;
    outline: none;
    font-size: 16px;
    transition: border-color .2s ease,box-shadow .2s ease;
    scroll-margin-bottom: calc(var(--kbd) + var(--safe-bottom) + 40px)
}

.input-container input:focus,#messageInput:focus,#messageInput:focus-visible {
    border-color: var(--brand-1);
    box-shadow: 0 0 0 3px var(--ring)
}

#messageInput::-moz-placeholder {
    color: #94a3b8;
    opacity: 1
}

#messageInput::placeholder {
    color: #94a3b8;
    opacity: 1
}

.send-button,#sendButton {
    background: var(--brand-gd);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all .15s ease;
    display: flex;
    align-items: center;
    justify-content: center
}

.send-button:hover,#sendButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px color-mix(in srgb,var(--brand-2) 38%,transparent)
}

.send-button:active,#sendButton:active {
    transform: translateY(0)
}

.file-upload-area {
    border: 2px dashed #c7d2fe;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    margin: 10px 0;
    cursor: pointer;
    transition: all .25s ease;
    background: linear-gradient(180deg,#fffffff2,#ffffffe6);
    box-shadow: 0 8px 24px #02061714
}

.file-upload-area:hover {
    border-color: #818cf8;
    background: linear-gradient(180deg,#fff,#fffffff2)
}

.signature-area {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin: 10px 0;
    background: #fff;
    cursor: crosshair
}

.lp-widget {
    width: 100%;
    max-width: 560px
}

.lp-stepper {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
    overflow: hidden
}

.lp-step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center
}

.lp-ico {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #aab2ff;
    display: grid;
    place-items: center;
    background: #fff;
    color: #667eea
}

.lp-step.is-active .lp-ico {
    border-color: #667eea;
    box-shadow: 0 0 0 3px #667eea26
}

.lp-step.is-done .lp-ico {
    background: var(--brand-base);
    border-color: var(--brand-base);
    color: #fff
}

.lp-step small {
    display: none!important
}

.lp-progress {
    position: relative;
    height: 12px;
    background: #eef2ff;
    border-radius: 999px;
    overflow: hidden
}

.lp-bar {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    width: 0%;
    background: #667eea;
    transition: width .25s linear
}

.lp-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    pointer-events: none
}

.lp-lines {
    margin-top: 10px;
    display: grid;
    gap: 6px
}

.lp-line {
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px
}

.lp-line .tick {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: inline-block
}

.lp-line.is-active {
    color: #111827
}

.lp-line.is-active .tick {
    border-color: #aab2ff
}

.lp-line.is-active .tick:after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    bottom: -3px;
    left: -3px;
    border: 2px solid #aab2ff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: lp-spin .8s linear infinite
}

.lp-line.is-done .tick {
    background: var(--brand-base);
    border-color: var(--brand-base)
}

@keyframes lp-spin {
    to {
        transform: rotate(360deg)
    }
}

.lp-result {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb
}

.lp-badge {
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px
}

.lp-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.lp-btn {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px #0000001a
}

.lp-btn.primary,.lp-btn.success {
    background: linear-gradient(135deg,var(--brand-1),var(--brand-2));
    color: #fff
}

.lp-btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
    filter: saturate(.9) brightness(.98)
}

.lp-resumo {
    max-width: 100%;
    margin-top: 12px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 10px
}

.lp-resumo h4 {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.2
}

.lp-resumo dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    font-size: 14px;
    margin: 0
}

.lp-resumo dt {
    color: #6b7280;
    font-weight: 600;
    text-align: left;
    white-space: nowrap
}

.lp-resumo dt:after {
    content: ":";
    margin-left: 2px
}

.lp-resumo dd {
    margin: 0;
    color: #111827;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto
}

.lp-upload {
    background: linear-gradient(180deg,#fffffffa,#fffffff0);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 28px #02061714
}

.lp-upload .lp-upload-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 12px
}

.lp-upload .lp-file {
    display: grid;
    gap: 8px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 12px
}

.lp-upload .lp-file label {
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px
}

.lp-upload .lp-file label:before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(135deg,var(--brand-1),var(--brand-2));
    box-shadow: 0 2px 6px #6366f14d
}

.lp-upload .lp-file input[type=file] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #111827;
    transition: border-color .2s ease,box-shadow .2s ease,background .2s ease
}

.lp-upload .lp-file input[type=file]:focus-visible {
    outline: none;
    border-color: var(--brand-1);
    box-shadow: 0 0 0 3px var(--ring);
    background: #fff
}

.lp-upload .lp-file input[type=file]::file-selector-button {
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    margin-right: 10px;
    background: linear-gradient(135deg,var(--brand-1),var(--brand-2));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease,box-shadow .15s ease;
    box-shadow: 0 6px 16px #6366f147
}

.lp-upload .lp-file input[type=file]:hover::file-selector-button {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px #6366f157
}

.lp-upload .lp-file input[type=file]:active::file-selector-button {
    transform: translateY(0)
}

.lp-upload .lp-file input[type=file]::-webkit-file-upload-button {
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    margin-right: 10px;
    background: linear-gradient(135deg,var(--brand-1),var(--brand-2));
    color: #fff;
    font-weight: 600;
    cursor: pointer
}

.lp-upload .lp-file.is-valid input[type=file] {
    border-color: var(--brand-base);
    background: color-mix(in srgb,var(--brand-base) 8%,#fff)
}

.lp-upload .lp-file.is-error input[type=file] {
    border-color: #ef4444;
    background: #fef2f2
}

.lp-upload.is-dragover,.lp-upload .lp-file.is-dragover {
    border-color: #a78bfa;
    background: linear-gradient(180deg,#fff,#faf5ffe6)
}

.lp-hint {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px
}

.lp-signature {
    display: grid;
    gap: 8px
}

.lp-sig-canvas {
    width: 100%;
    max-width: 520px;
    height: 180px;
    border: 1px dashed #9ca3af;
    border-radius: 8px;
    background: #fff;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    cursor: crosshair
}

.lp-video {
    display: grid;
    gap: 8px
}

.lp-video-wrap {
    position: relative
}

.lp-video-el {
    width: 100%;
    border-radius: 8px;
    outline: none;
    background: #000;
    display: block
}

.lp-video-unmute {
    position: absolute;
    inset: auto 50% 16px auto;
    transform: translate(50%);
    padding: 8px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: var(--brand-gd);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px color-mix(in srgb,var(--brand-2) 32%,transparent)
}

.lp-video-unmute.is-pulsing {
    animation: lp-pulse-btn 1.1s ease-in-out infinite
}

@keyframes lp-pulse-btn {
    0%,to {
        transform: translate(50%) scale(1);
        box-shadow: 0 6px 16px #00000026
    }

    50% {
        transform: translate(50%) scale(1.07);
        box-shadow: 0 12px 26px #5b7cfa59
    }
}

.lp-loader {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff
}

.lp-loader .lp-loader-row {
    display: flex;
    align-items: center;
    gap: 12px
}

.lp-loader .lp-loader-text {
    font-weight: 600;
    color: #111827
}

.lp-loader .lp-loader-text small {
    font-weight: 500;
    color: #6b7280
}

.lp-spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #e6ebf3;
    border-top-color: #6b7cff;
    animation: lp-spin .9s linear infinite;
    display: grid;
    place-items: center
}

.lp-spinner.is-done {
    animation: none;
    background: var(--brand-base);
    border-color: var(--brand-base)
}

.lp-spinner.is-done .lp-check {
    width: 14px;
    height: 14px;
    stroke: #fff;
    stroke-width: 3;
    fill: none
}

.lp-progress-outer {
    height: 8px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden
}

.lp-progress-inner {
    background: #3b82f6;
    height: 100%;
    width: 0%;
    background: var(--brand-base)
}

.lp-video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #111827b3;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px
}

.lp-video-wrap.is-unmuted .lp-video-unmute,.lp-video-wrap.is-unmuted .lp-video-badge {
    display: none
}

#lp-confetti-canvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999
}

.message.received .message-bubble .lp-loader {
    border: 0;
    padding: 0;
    background: transparent
}

.message.received .message-bubble .lp-loader .lp-loader-row {
    padding: 0
}

.lp-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff
}

.lp-amount {
    margin-top: 8px;
    padding: 6px 0
}

.lp-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px
}

.lp-amount-title {
    font-weight: 700;
    color: #0f172a
}

.lp-amount-value {
    font-weight: 800;
    color: #0f172a
}

.lp-amount-minmax {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px
}

.lp-range {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    outline: none;
    transition: background .15s linear
}

.lp-range:disabled {
    opacity: .6;
    cursor: not-allowed
}

.lp-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgb(15,23,42);
    box-shadow: 0 1px 2px #00000026;
    cursor: pointer
}

.lp-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgb(15,23,42);
    box-shadow: 0 1px 2px #00000026;
    cursor: pointer
}

.lp-range::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb
}

@media (prefers-color-scheme: dark) {
    .lp-amount-title,.lp-amount-value {
        color:#e5e7eb
    }

    .lp-range::-webkit-slider-thumb,.lp-range::-moz-range-thumb {
        border-color: #0f172a
    }
}

.lp-terms {
    margin-top: 10px;
    padding: 6px 0
}

.pix-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    text-align: center
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background: #fff;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #666
}

.pix-code {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    margin: 10px 0;
    border: 1px solid #e1e8ed
}

.copy-button {
    background: var(--brand-gd);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all .3s ease
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    margin: 5px 0
}

.status-pending {
    background: color-mix(in srgb,var(--brand-base) 12%,#fff7);
    color: color-mix(in srgb,var(--brand-base) 70%,#222)
}

.status-signed {
    background: color-mix(in srgb,var(--brand-base) 14%,#fff);
    color: var(--brand-600)
}

.status-paid {
    background: color-mix(in srgb,var(--brand-base) 10%,#fff);
    color: var(--brand-600)
}

.hidden {
    display: none!important
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all .3s ease
}

.step-dot.active {
    background: var(--brand-base);
    transform: scale(1.3)
}

.document-preview {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    text-align: center
}

.document-icon {
    font-size: 2rem;
    margin-bottom: 8px
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

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

@keyframes pulse {
    0%,to {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(1.1);
        opacity: .7
    }
}

@keyframes typingBounce {
    0%,60%,to {
        transform: translateY(0)
    }

    30% {
        transform: translateY(-10px)
    }
}

@keyframes onlinePulse {
    0% {
        box-shadow: 0 0 #22c55e73,0 0 8px 2px #22c55e66;
        transform: scale(1)
    }

    70% {
        box-shadow: 0 0 0 8px #22c55e00,0 0 14px 3px #22c55e4d;
        transform: scale(1.06)
    }

    to {
        box-shadow: 0 0 #22c55e00,0 0 8px 2px #22c55e66;
        transform: scale(1)
    }
}

.chat-messages::-webkit-scrollbar {
    width: 10px;
    height: 10px
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #0f172a1f;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box
}

@media (max-width: 680px) {
    .lp-upload {
        padding:12px
    }

    .lp-upload .lp-upload-grid {
        gap: 10px
    }

    .lp-upload .lp-file {
        padding: 10px
    }

    .lp-upload .lp-file input[type=file] {
        font-size: 15px
    }

    .lp-upload .lp-file input[type=file]::file-selector-button {
        padding: 10px 14px
    }
}

.chat-container .lp-upload .lp-upload-grid {
    grid-template-columns: 1fr!important
}

@media (max-width: 480px) {
    .message .message-avatar {
        width:24px;
        height: 24px
    }

    .lp-resumo dl {
        grid-template-columns: 1fr
    }

    .lp-resumo dt {
        opacity: .9
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation-duration: .001ms!important;
        animation-iteration-count: 1!important;
        transition: none!important
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --surface:rgba(17,24,39,.6);
        --surface-2: rgba(17,24,39,.85);
        --text: #e5e7eb;
        --muted: #9ca3af;
        --ring: rgba(129,140,248,.45);
        --bubble-bot: rgba(255,255,255,.08);
        --bubble-user: linear-gradient(135deg,var(--brand-1),var(--brand-2))
    }

    .message-bubble {
        color: var(--text)
    }
}

.chat-container .chat-messages .message.received,.chat-container .chat-messages .message.received .message-inner,.chat-container .chat-messages .message.received .message-bubble {
    opacity: 1!important;
    filter: none!important
}

.chat-container .chat-messages .message.received .message-bubble,.chat-container .chat-messages .message.received .message-bubble *:not(.option-button):not(.option-button *) {
    color: #0f172a!important;
    text-shadow: none!important
}

.chat-container .chat-messages .message.received .message-bubble {
    background: #fff!important
}

.chat-container .chat-messages .message.received .message-bubble a {
    color: #4338ca!important;
    text-decoration: underline
}

.chat-container .chat-messages .message.received .message-bubble .option-button,.chat-container .chat-messages .message.received .message-bubble .option-button * {
    color: #fff!important
}

@media (prefers-color-scheme: dark) {
    .chat-container .chat-messages .message.received .message-bubble,.chat-container .chat-messages .message.received .message-bubble *:not(.option-button):not(.option-button *) .chat-container .chat-messages .message.received .message-bubble {
        background:#fff!important
    }
}

.lp-modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0206178c;
    -webkit-backdrop-filter: saturate(140%) blur(6px);
    backdrop-filter: saturate(140%) blur(6px);
    animation: fadeIn .15s ease-out
}

.lp-modal {
    width: min(420px,calc(100% - 32px));
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 18px;
    box-shadow: 0 24px 70px #02061759;
    padding: 18px;
    color: var(--text);
    animation: scaleIn .16s ease-out
}

.lp-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px
}

.lp-modal-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: var(--brand-gd);
    color: #fff;
    box-shadow: 0 8px 18px color-mix(in srgb,var(--brand-2) 34%,transparent)
}

.lp-modal h3 {
    font-size: 1.05rem;
    line-height: 1.2;
    margin: 0;
    font-weight: 800;
    color: var(--text)
}

.lp-modal-text {
    margin: 6px 2px 14px;
    line-height: 1.45;
    color: var(--text)
}

.lp-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap
}

.lp-modal-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease,box-shadow .12s ease,opacity .12s ease
}

.lp-modal-btn.primary {
    background: var(--brand-gd);
    color: #fff;
    box-shadow: 0 10px 24px color-mix(in srgb,var(--brand-2) 30%,transparent)
}

.lp-modal-btn.ghost {
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb
}

.lp-modal-btn:hover {
    transform: translateY(-1px)
}

.lp-modal-btn:active {
    transform: translateY(0)
}

.lp-modal-btn:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px
}

@keyframes fadeIn {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(.98)
    }

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

.message.received .message-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px
}

.message.received .message-avatar {
    order: 0;
    align-self: flex-end;
    margin: 0
}

.message.received .message-bubble {
    order: 1
}
/* ===== Botões de opção no chat ===== */
.lp-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.lp-option {
  display: inline-block;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px; /* pílula */
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%); /* verde suave */
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 6px 18px rgba(16,185,129,.25);
  transition: transform .04s ease-in, filter .12s ease-in;
}

.lp-option:active {
  transform: translateY(1px);
  filter: brightness(.96);
}

.lp-option:focus { outline: none; }

/* === Mensagens do usuário (lado direito) === */
.lp-user-msg {
  display: flex;
  justify-content: flex-end;
  margin: 6px 10px;
}

.lp-user-msg .lp-msg {
  background: #00a884;
  color: #fff;
  border-radius: 20px 20px 0 20px;
  padding: 10px 16px;
  max-width: 75%;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* === Botões (fieis ao print) === */
.lp-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0 58px;
}

.lp-option {
  background: linear-gradient(180deg, #00a884 0%, #009c7d 100%);
  border-radius: 24px;
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
  width: auto;
  min-width: 120px;
}

.lp-option:hover {
  filter: brightness(1.05);
}

.lp-option:active {
  filter: brightness(0.9);
}

/* === Caixa de resumo final === */
.lp-summary {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  margin: 10px 0 10px 58px;
  max-width: 85%;
}

.lp-summary h3 {
  color: #00a884;
  font-size: 17px;
  margin-bottom: 8px;
}

/* === container do chat: evita grudar no rodapé quando o input some */
.lp-messages {
  scroll-padding-bottom: 120px; /* dá espaço na rolagem */
  padding-bottom: 24px;
}

/* === balão do bot (branco) — igual às mensagens do print */
.lp-bot-msg .lp-msg {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 0 rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.06);
  padding: 14px 16px;
}

/* === grupo de opções DENTRO do balão branco */
.lp-msg .lp-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* === botões (pílula verde) */
.lp-option {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg,#00a884 0%,#019777 100%);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 6px 18px rgba(1,151,119,.25);
  cursor: pointer;
  transition: transform .04s ease-in, filter .12s ease-in;
}
.lp-option:active { transform: translateY(1px); filter: brightness(.96); }

/* === “respirar” acima do rodapé quando houver opções: */
.lp-bot-msg[data-has-options="1"] { margin-bottom: 84px; }

/* ===== Card de resumo com sliders (print 4/6) ===== */
.lp-summary {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 0 rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.06);
  padding: 16px;
}
.lp-summary__title {
  color: #16a34a;
  font-weight: 800;
  margin-bottom: 8px;
}
.lp-summary__row { margin-top: 12px; }
.lp-summary__label { color:#111827; margin-bottom: 4px; }
.lp-summary__value { font-weight: 800; margin-bottom: 6px; }

/* sliders (range) */
.lp-summary input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  outline: none;
}
.lp-summary input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 2px 6px rgba(22,163,74,.35);
  cursor: pointer;
}
.lp-summary__scale {
  display:flex; justify-content:space-between;
  font-size:12px; color:#6b7280; margin-top:6px;
}

/* === Grupo de opções dentro de um card branco (igual ao print 2) === */
.lp-bot-msg .lp-options-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 0 rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.06);
  padding: 14px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* === Botões dentro do card === */
.lp-options-card .lp-option {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg,#00a884 0%,#009b7b 100%);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 6px 18px rgba(1,151,119,.25);
  cursor: pointer;
  transition: transform .04s ease-in, filter .12s ease-in;
}
.lp-options-card .lp-option:active {
  transform: translateY(1px);
  filter: brightness(.96);
}

/* ===== Card de simulação completo ===== */
.lp-sim {
  background:#fff; border-radius:16px; padding:16px;
  box-shadow:0 2px 0 rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.06);
  max-width: 520px;
}
.lp-sim__progress {
  margin-bottom:12px;
}
.lp-sim__icons {
  display:flex; gap:18px; align-items:center; margin-bottom:8px;
}
.lp-sim__icons .dot {
  width:28px; height:28px; border-radius:50%;
  background:#10b981; color:#fff; display:grid; place-items:center;
  font-size:14px; box-shadow:0 2px 6px rgba(16,185,129,.35);
}
.lp-sim__bar {
  height:8px; width:100%; background:#e5e7eb; border-radius:999px; overflow:hidden;
}
.lp-sim__bar > span { display:block; height:100%; width:100%; background:#3b82f6; }

.lp-sim__list {
  margin:12px 0 8px 0; color:#111827;
}
.lp-sim__list li { display:flex; gap:10px; align-items:flex-start; margin:6px 0; }
.lp-sim__list .ck {
  color:#10b981; font-weight:900; margin-top:1px;
}

.lp-sim__title { font-weight:800; color:#16a34a; margin-bottom:8px; }

.lp-sim__row { margin-top:14px; }
.lp-sim__label { color:#111827; margin-bottom:4px; }
.lp-sim__value { font-weight:800; margin-bottom:6px; }

.lp-sim input[type="range"]{
  -webkit-appearance:none; appearance:none; width:100%;
  height:6px; border-radius:999px; background:#e5e7eb; outline:none;
}
.lp-sim input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:18px; height:18px;
  border-radius:50%; background:#16a34a; box-shadow:0 2px 6px rgba(22,163,74,.35);
  cursor:pointer;
}
.lp-sim__scale{ display:flex; justify-content:space-between; font-size:12px; color:#6b7280; margin-top:6px; }

.lp-sim__cta { margin-top:14px; }

/* balão padrão do bot (largura moderada) */
.lp-bot-msg .lp-msg{
  max-width: 540px;           /* 👈 controla a largura do balão */
}

/* card que envolve os botões (dentro do balão) */
.lp-bot-msg .lp-options-card{
  width: 100%;
  max-width: 520px;           /* 👈 não passa do balão */
  margin: 8px 0 0 0;
  background:#fff;
  border-radius:16px;
  box-shadow:0 2px 0 rgba(0,0,0,.06),0 8px 22px rgba(0,0,0,.06);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* botão “pílula” */
.lp-options-card .lp-option{
  display:block; width:100%;
  padding:12px 18px; border:0; border-radius:999px;
  background:linear-gradient(180deg,#00a884 0%,#009b7b 100%);
  color:#fff; font-weight:700; text-align:center;
  box-shadow:0 2px 0 rgba(0,0,0,.08),0 6px 18px rgba(1,151,119,.25);
  cursor:pointer; transition:transform .04s, filter .12s;
}
.lp-options-card .lp-option:active{ transform:translateY(1px); filter:brightness(.96); }

/* ========== MS CREDIT – PALETA E OVERRIDES (append no final) ========== */
:root{
  --ms-azul: #0B2F52;
  --ms-dourado: #C19B36;
  --ms-bg: #F7F8FA;
  --ms-text: #1d2939;
}

/* Fundo geral do chat */
.chat-messages,
#chatMessages {
  background: var(--ms-bg);
}

/* Bolha do BOT (esquerda) */
.message.received .message-bubble,
.lp-bot-msg .lp-msg {
  background: #fff;
  color: var(--ms-text);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Bolha do USUÁRIO (direita) */
.message.sent .message-bubble {
  background: var(--ms-azul) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(11,47,82,.25);
}

/* Botões de opções */
.options-container .option-button,
.lp-option {
  background: var(--ms-dourado) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 28px !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(193,155,54,.25) !important;
  transition: transform .06s ease, filter .06s ease;
}
.options-container .option-button:hover,
.lp-option:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* Cabeçalho (se existir uma barra de topo) */
.chat-header, .cbx-head {
  background: var(--ms-azul) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--ms-dourado) !important;
}

/* Campo de digitação e botão enviar */
#composer, .input-container {
  border-top: 1px solid rgba(0,0,0,.06);
  background: #fff;
}
#sendButton, .send-button {
  background: var(--ms-azul) !important;
  color: #fff !important;
  border-radius: 20px !important;
}

/* Card de RESUMO – elegante */
.lp-card.lp-summary,
.lp-summary {
  background: #fff !important;
  border-left: 6px solid var(--ms-dourado) !important;
  padding: 20px 24px !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.08) !important;
  color: var(--ms-text) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}
.lp-card.lp-summary h4,
.lp-summary h4 {
  margin: 0 0 10px 0 !important;
  font-size: 18px !important;
  color: var(--ms-azul) !important;
  display: flex; align-items: center; gap: 8px;
}
.lp-card.lp-summary ul,
.lp-summary ul { margin: 0; padding: 0; list-style: none; }
.lp-card.lp-summary li,
.lp-summary li { margin: 6px 0; }
.lp-card.lp-summary strong,
.lp-summary strong { color: var(--ms-azul); }

:root{
  --brand-gold: #BF953F;      /* dourado */
  --brand-gold-700:#A27E2F;
  --brand-navy: #15324B;      /* azul MS */
  --bg-beige: #F5EFE5;        /* fundo papel/bege */

  --bubble-radius: 18px;
  --bubble-shadow: 0 10px 22px rgba(0,0,0,.06);
  --gold-bar: 6px;
}

/* Balão base */
.message .message-bubble{
  border-radius: var(--bubble-radius);
  background: #fff;
  color: var(--ms-ink);
  box-shadow: var(--shadow-1);
}



/* Balão do USUÁRIO (direita) com leve anel dourado translúcido */
.message.sent .message-bubble{
  background: #fff;
  border: 2px solid rgba(190,150,48,.18);
}

/* Botões das opções (cards) */
.option-button, .lp-option{
  background: var(--ms-gold);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 16px 20px;
  box-shadow: 0 8px 18px rgba(190,150,48,.25);
  transition: transform .05s ease, background .2s ease, box-shadow .2s ease;
}
.option-button:hover, .lp-option:hover{
  background: var(--ms-gold-600);
  box-shadow: 0 10px 24px rgba(190,150,48,.28);
}
.option-button:active, .lp-option:active{
  transform: translateY(1px);
  background: var(--ms-gold-700);
}
/* O resumo deve parecer apenas o balão (sem caixa interna) */
.lp-card.lp-summary{
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;                 /* o padding fica por conta do balão */
}

/* Tipografia e espaçamento do conteúdo do resumo */
.lp-card.lp-summary h4{
  font-size: 20px;
  line-height: 1.3;
  color: var(--ms-navy);
  margin: 0 0 14px 0;
  display: flex; align-items: center; gap: 8px;
}
.lp-card.lp-summary h4::after{
  content: "✓";
  font-weight: 700;
  color: var(--ms-gold);
}

.lp-card.lp-summary ul{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;   /* ocupa largura, reduz “altura” */
  gap: 14px 28px;
}
@media (max-width: 720px){
  .lp-card.lp-summary ul{ grid-template-columns: 1fr; }
}

.lp-card.lp-summary li{
  margin: 0;
  line-height: 1.55;           /* compacta um pouco */
}

.lp-card.lp-summary li strong{
  color: var(--ms-ink);
}
/* Glow dourado apenas no balão que contém o resumo */
.message.received .message-bubble:has(.lp-card.lp-summary){
  border-left-color: var(--ms-gold);
  box-shadow: var(--shadow-2), inset 0 0 0 0 rgba(0,0,0,0);
}

