:root {
    --mrsoltek-blue: #0b4784;
    --mrsoltek-cyan: #12d6ff;
    --mrsoltek-purple: #cc35e8;
    --mrsoltek-ink: #0f172a;
    --mrsoltek-soft: #f8fbff;
    --mrsoltek-viewport-height: 100dvh;
    --mrsoltek-viewport-top: 0px;
}

.mrsoltek-launcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 89;
    width: 68px;
    height: 68px;
    border: 0;
    padding: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    overflow: visible;
    outline: none;
    touch-action: manipulation;
    transform: translateZ(0);
    transition: transform 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.mrsoltek-launcher:focus {
    outline: none;
}

.mrsoltek-launcher:hover {
    transform: translateY(-4px) scale(1.02);
}

.mrsoltek-launcher:active {
    transform: translateY(-1px) scale(0.98);
}

.soltek-comic-open .mrsoltek-launcher {
    opacity: 0;
    pointer-events: none;
}

.mrsoltek-launcher-orb {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    background: radial-gradient(circle at 40% 20%, #ffffff 0%, #e8f8ff 46%, #dff3ff 100%);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.32), 0 8px 18px rgba(11, 71, 132, 0.18), 0 0 0 1px rgba(255,255,255,0.68) inset;
    pointer-events: none;
}

.mrsoltek-launcher:hover .mrsoltek-launcher-orb {
    box-shadow: 0 28px 58px rgba(15, 23, 42, 0.36), 0 10px 22px rgba(11, 71, 132, 0.2), 0 0 34px rgba(204, 53, 232, 0.3);
}

.mrsoltek-launcher:focus-visible .mrsoltek-launcher-orb {
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.28), 0 0 0 4px rgba(204, 53, 232, 0.28);
}

.mrsoltek-launcher img {
    width: 118%;
    height: 118%;
    display: block;
    object-fit: cover;
    object-position: center 10%;
    pointer-events: none;
}

.mrsoltek-launcher::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    border: 1px solid rgba(18, 214, 255, 0.38);
    opacity: 0;
    animation: mrsoltek-ping 2.8s ease-out infinite;
    pointer-events: none;
}

.mrsoltek-status-dot {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    background: #22c55e;
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
    pointer-events: none;
    z-index: 2;
}

.mrsoltek-root {
    position: fixed;
    top: var(--mrsoltek-viewport-top, 0px);
    left: 0;
    right: 0;
    z-index: 120;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    height: var(--mrsoltek-viewport-height, 100dvh);
    overflow: hidden;
    overscroll-behavior: none;
}

.mrsoltek-root.is-open {
    pointer-events: auto;
}

.mrsoltek-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    opacity: 0;
    transition: opacity 220ms ease;
}

.mrsoltek-root.is-open .mrsoltek-backdrop {
    opacity: 1;
}

.mrsoltek-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(390px, 100vw);
    height: 100vh;
    height: 100dvh;
    height: var(--mrsoltek-viewport-height, 100dvh);
    max-height: 100vh;
    max-height: 100dvh;
    max-height: var(--mrsoltek-viewport-height, 100dvh);
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: linear-gradient(180deg, #f8fbff 0%, #eef8ff 46%, #ffffff 100%);
    box-shadow: -28px 0 70px rgba(15, 23, 42, 0.24);
    transform: translateX(104%);
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--mrsoltek-ink);
    overflow: hidden;
    overscroll-behavior: contain;
}

.mrsoltek-root.is-open .mrsoltek-panel {
    transform: translateX(0);
}

.mrsoltek-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 92px;
    padding: 18px 18px 15px;
    background: linear-gradient(135deg, #0b4784 0%, #0f172a 58%, #43116d 100%);
    color: white;
}

.mrsoltek-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mrsoltek-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset;
    flex: 0 0 auto;
}

.mrsoltek-avatar img {
    width: 122%;
    height: 122%;
    display: block;
    object-fit: cover;
    object-position: center 10%;
}

.mrsoltek-title-copy {
    min-width: 0;
}

.mrsoltek-title-copy strong {
    display: block;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: 0;
}

.mrsoltek-title-copy span {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,0.74);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.mrsoltek-icon-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(255,255,255,0.12);
    color: white;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.mrsoltek-icon-button:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.mrsoltek-body {
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.mrsoltek-suggestions {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 13px 14px 8px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.mrsoltek-suggestions::-webkit-scrollbar {
    display: none;
}

.mrsoltek-chip {
    border: 1px solid rgba(11, 71, 132, 0.12);
    border-radius: 999px;
    background: white;
    color: #16446f;
    padding: 8px 11px;
    font: 800 11px/1.2 Poppins, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
    .mrsoltek-suggestions {
        flex-wrap: wrap;
        gap: 6px;
        overflow: visible;
        padding: 8px 12px 7px;
        touch-action: auto;
    }

    .mrsoltek-chip {
        min-height: 28px;
        padding: 6px 9px;
        font-size: 10.5px;
        line-height: 1;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    }
}

.mrsoltek-messages {
    min-height: 0;
    overflow-y: auto;
    padding: 10px 14px 16px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.mrsoltek-message {
    display: flex;
    gap: 9px;
    margin: 12px 0;
}

.mrsoltek-message.user {
    justify-content: flex-end;
}

.mrsoltek-mini-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 11px;
    overflow: hidden;
    margin-top: 2px;
    background: #f8fbff;
    box-shadow: 0 0 0 1px rgba(11, 71, 132, 0.1) inset;
}

.mrsoltek-mini-avatar img {
    width: 124%;
    height: 124%;
    display: block;
    object-fit: cover;
    object-position: center 10%;
}

.mrsoltek-bubble {
    position: relative;
    max-width: 86%;
    border-radius: 18px;
    padding: 12px 13px;
    font-size: 13px;
    line-height: 1.55;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.mrsoltek-message.assistant .mrsoltek-bubble {
    background: white;
    border: 1px solid rgba(11, 71, 132, 0.1);
    border-bottom-left-radius: 7px;
    color: #26364f;
}

.mrsoltek-message.assistant .mrsoltek-bubble::after {
    content: "";
    position: absolute;
    left: -4px;
    top: 15px;
    width: 10px;
    height: 10px;
    background: white;
    border-left: 1px solid rgba(11, 71, 132, 0.1);
    border-top: 1px solid rgba(11, 71, 132, 0.1);
    transform: rotate(45deg);
}

.mrsoltek-message.user .mrsoltek-bubble {
    background: linear-gradient(135deg, #0b4784, #163b75);
    color: white;
    border-bottom-right-radius: 7px;
}

.mrsoltek-message.user .mrsoltek-bubble::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 15px;
    width: 10px;
    height: 10px;
    background: #163b75;
    transform: rotate(45deg);
}

.mrsoltek-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1;
    color: #64748b;
    font-weight: 800;
}

.mrsoltek-message.user .mrsoltek-label {
    justify-content: flex-end;
}

.mrsoltek-label time {
    color: #94a3b8;
    font-weight: 700;
}

.mrsoltek-summary {
    display: grid;
    gap: 7px;
}

.mrsoltek-reco-label {
    width: fit-content;
    border-radius: 999px;
    background: rgba(18, 214, 255, 0.13);
    color: #075985;
    padding: 5px 8px;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.mrsoltek-questions {
    display: grid;
    gap: 7px;
    margin-top: 6px;
}

.mrsoltek-question-chip {
    border-radius: 11px;
    background: #f1f7ff;
    border: 1px solid #dbeafe;
    color: #16446f;
    padding: 9px 10px;
    font-weight: 700;
}

.mrsoltek-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}

.mrsoltek-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    border-radius: 999px;
    background: #0b4784;
    color: #ffffff;
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
}

.mrsoltek-action:hover {
    background: #083564;
}

.mrsoltek-action-whatsapp {
    background: #e8f8ef;
    border: 1px solid rgba(22, 163, 74, 0.18);
    color: #166534;
}

.mrsoltek-action-whatsapp:hover {
    background: #dff4e8;
    color: #11532b;
}

.mrsoltek-whatsapp-icon {
    width: 15px;
    height: 15px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.mrsoltek-whatsapp-icon svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: currentColor;
}

.mrsoltek-options {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.mrsoltek-option {
    border-radius: 8px;
    border: 1px solid rgba(11, 71, 132, 0.14);
    background: #ffffff;
    padding: 12px;
}

.mrsoltek-option-picked {
    border-color: rgba(204, 53, 232, 0.42);
    box-shadow: 0 12px 28px rgba(204, 53, 232, 0.12);
}

.mrsoltek-option-marker {
    width: fit-content;
    border-radius: 999px;
    background: rgba(204, 53, 232, 0.12);
    color: #8b1ca3;
    padding: 5px 8px;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mrsoltek-product-name {
    font-size: 14px;
    line-height: 1.28;
    font-weight: 900;
    color: #0f172a;
}

.mrsoltek-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.mrsoltek-why,
.mrsoltek-warning,
.mrsoltek-note {
    margin-top: 8px;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.mrsoltek-warning {
    color: #7c2d12;
}

.mrsoltek-link-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 10px;
}

.mrsoltek-link-row a,
.mrsoltek-quote-button {
    min-height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
}

.mrsoltek-link-row a {
    color: #0b4784;
    background: #eaf7ff;
}

.mrsoltek-quote-button {
    border: 0;
    color: white;
    background: linear-gradient(135deg, #0b4784, #cc35e8);
    padding: 0 13px;
    cursor: pointer;
}

.mrsoltek-progress {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    width: min(270px, 100%);
    min-height: 42px;
}

.mrsoltek-brain {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8fbff;
    box-shadow: 0 0 0 0 rgba(204, 53, 232, 0.24);
    animation: mrsoltek-brain-pulse 1.35s ease-in-out infinite;
}

.mrsoltek-brain img {
    display: block;
    width: 124%;
    height: 124%;
    object-fit: cover;
    object-position: center 10%;
    transform-origin: center;
    animation: mrsoltek-brain-bob 1.35s ease-in-out infinite;
}

.mrsoltek-progress-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.mrsoltek-progress-copy strong {
    color: #0f172a;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 900;
}

.mrsoltek-progress-copy span {
    overflow: hidden;
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.25;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mrsoltek-progress-time {
    border-radius: 999px;
    background: #eef6ff;
    color: #0b4784;
    padding: 4px 7px;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.mrsoltek-composer {
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(11, 71, 132, 0.1);
}

.mrsoltek-composer-shell {
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: end;
    gap: 8px;
    padding: 7px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.mrsoltek-input {
    width: 100%;
    max-height: 124px;
    min-height: 44px;
    border: 0;
    resize: none;
    outline: none;
    background: transparent;
    color: #0f172a;
    font: 700 13px/1.45 Poppins, sans-serif;
    padding: 11px 8px;
}

.mrsoltek-send {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #0b4784, #cc35e8);
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease;
}

.mrsoltek-send:disabled {
    opacity: 0.65;
    cursor: wait;
}

.mrsoltek-send:not(:disabled):hover {
    transform: translateY(-1px);
}

@keyframes mrsoltek-ping {
    0% { transform: scale(0.9); opacity: 0.42; }
    72%, 100% { transform: scale(1.18); opacity: 0; }
}

@keyframes mrsoltek-brain-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(204, 53, 232, 0.24); transform: scale(1); }
    50% { box-shadow: 0 0 0 8px rgba(204, 53, 232, 0); transform: scale(1.05); }
}

@keyframes mrsoltek-brain-bob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-1px) scale(1.08); }
}

@media (max-width: 640px) {
    .mrsoltek-launcher {
        right: 16px;
        bottom: 16px;
        width: 58px;
        height: 58px;
        border-radius: 20px;
    }

    .mrsoltek-launcher-orb {
        width: 58px;
        height: 58px;
        border-radius: 20px;
        padding: 0;
    }

    .mrsoltek-launcher::after {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .mrsoltek-launcher img {
        width: 118%;
        height: 118%;
    }

    .mrsoltek-panel {
        width: 100vw;
        left: 0;
        right: 0;
    }

    .mrsoltek-header {
        min-height: 78px;
        padding: 12px 14px;
    }

    .mrsoltek-title-copy strong {
        font-size: 20px;
    }

    .mrsoltek-suggestions {
        padding: 10px 12px 7px;
    }

    .mrsoltek-messages {
        padding: 8px 12px 14px;
    }

    .mrsoltek-composer {
        padding: 10px 10px max(10px, env(safe-area-inset-bottom));
    }

    .mrsoltek-composer-shell {
        grid-template-columns: 1fr 44px;
        border-radius: 18px;
        padding: 6px;
    }

    .mrsoltek-input {
        min-height: 40px;
        max-height: 96px;
        padding: 9px 8px;
    }

    .mrsoltek-send {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }
}
