.maxsoft-install-trigger {
    position: fixed;
    z-index: 2147482000;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    color: #fff;
    background: linear-gradient(135deg, #123b82, #2563eb);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(18, 59, 130, .28);
    cursor: pointer;
    font: 800 12px/1 "Inter", "Plus Jakarta Sans", sans-serif;
    transition: transform .2s ease, box-shadow .2s ease;
}

.maxsoft-install-trigger:hover,
.maxsoft-install-trigger:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(18, 59, 130, .34);
    outline: none;
}

.maxsoft-install-trigger.is-ready::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 11px;
    height: 11px;
    background: #22c55e;
    border: 3px solid #fff;
    border-radius: 999px;
}

.maxsoft-install-modal {
    position: fixed;
    z-index: 2147483600;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(8, 18, 37, .62);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.maxsoft-install-modal[hidden] {
    display: none !important;
}

.maxsoft-install-dialog {
    position: relative;
    width: min(470px, 100%);
    overflow: hidden;
    color: #172033;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 26px;
    box-shadow: 0 34px 90px rgba(8, 18, 37, .34);
    animation: maxsoftInstallIn .3s cubic-bezier(.2, .8, .2, 1) both;
}

.maxsoft-install-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 11px;
    cursor: pointer;
    font: 700 24px/1 sans-serif;
}

.maxsoft-install-close:hover,
.maxsoft-install-close:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .24);
    outline: none;
}

.maxsoft-install-hero {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 27px 58px 25px 25px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 15%, rgba(96, 165, 250, .45), transparent 35%),
        linear-gradient(135deg, #0d2c63, #1f55a4 58%, #2563eb);
}

.maxsoft-install-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    color: #123b82;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, .18);
    font-size: 22px;
}

.maxsoft-install-hero__copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.maxsoft-install-hero__copy small {
    color: #bfdbfe;
    font: 800 9px/1.2 "Inter", sans-serif;
    letter-spacing: .12em;
}

.maxsoft-install-hero__copy strong {
    font: 850 20px/1.2 "Inter", sans-serif;
}

.maxsoft-install-hero__copy > span {
    color: #dbeafe;
    font: 600 11px/1.4 "Inter", sans-serif;
}

.maxsoft-install-body {
    display: grid;
    gap: 16px;
    padding: 24px 25px 25px;
}

.maxsoft-install-intro {
    margin: 0;
    color: #475569;
    font: 600 13px/1.55 "Inter", sans-serif;
}

.maxsoft-install-steps {
    counter-reset: maxsoft-install-step;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.maxsoft-install-steps li {
    counter-increment: maxsoft-install-step;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 8px 11px;
    color: #334155;
    background: #f6f8fc;
    border: 1px solid #e8edf5;
    border-radius: 13px;
    font: 650 12px/1.4 "Inter", sans-serif;
}

.maxsoft-install-steps li::before {
    content: counter(maxsoft-install-step);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #1f55a4;
    border-radius: 10px;
    font-weight: 850;
}

.maxsoft-install-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, #123b82, #2563eb);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
    cursor: pointer;
    font: 800 13px/1 "Inter", sans-serif;
}

.maxsoft-install-action.is-guide-only {
    color: #475569;
    background: #eef2f7;
    box-shadow: none;
}

.maxsoft-install-secure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #64748b;
    font: 650 10px/1.3 "Inter", sans-serif;
}

body.maxsoft-install-open {
    overflow: hidden;
}

@keyframes maxsoftInstallIn {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
    .maxsoft-install-trigger {
        right: 12px;
        bottom: calc(86px + env(safe-area-inset-bottom));
        min-height: 44px;
        padding: 0 14px;
        border-radius: 14px;
    }

    .maxsoft-install-dialog {
        align-self: end;
        border-radius: 24px 24px 18px 18px;
    }

    .maxsoft-install-hero {
        padding: 23px 54px 22px 20px;
    }

    .maxsoft-install-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 16px;
    }

    .maxsoft-install-body {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maxsoft-install-dialog,
    .maxsoft-install-trigger {
        animation: none;
        transition: none;
    }
}
