.cg-pwa-lock {
    overflow: hidden !important;
}

.cg-pwa-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 8, 20, .72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.cg-pwa-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cg-pwa-card {
    width: min(100%, 430px);
    max-height: min(88dvh, 720px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(129, 207, 255, .18);
    border-radius: 28px;
    padding: 18px;
    color: #eef8ff;
    background:
        radial-gradient(circle at 78% 0%, rgba(32, 178, 255, .18), transparent 18rem),
        linear-gradient(180deg, rgba(11, 27, 55, .98), rgba(5, 16, 34, .99));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
    transform: translateY(28px) scale(.985);
    transition: transform .26s cubic-bezier(.22, .8, .2, 1);
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

.cg-pwa-overlay.is-open .cg-pwa-card {
    transform: translateY(0) scale(1);
}

.cg-pwa-handle {
    width: 42px;
    height: 5px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: rgba(212, 236, 255, .23);
}

.cg-pwa-app {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.cg-pwa-icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 11px 28px rgba(0, 0, 0, .32), 0 0 0 1px rgba(132, 214, 255, .12);
}

.cg-pwa-app-copy {
    min-width: 0;
}

.cg-pwa-app-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 950;
}

.cg-pwa-app-copy span {
    display: block;
    color: #8fb2cc;
    font-size: .79rem;
    font-weight: 700;
}

.cg-pwa-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.32rem, 6vw, 1.72rem);
    line-height: 1.45;
    font-weight: 950;
    letter-spacing: -.02em;
}

.cg-pwa-text {
    margin: 9px 0 17px;
    color: #a9c2d6;
    font-size: .9rem;
    line-height: 1.9;
    font-weight: 650;
}

.cg-pwa-actions {
    display: grid;
    gap: 9px;
}

.cg-pwa-btn {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    padding: 12px 16px;
    font: inherit;
    font-size: .92rem;
    font-weight: 950;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cg-pwa-btn-primary {
    color: #04111e;
    background: linear-gradient(135deg, #8de5ff, #49b8ff);
    box-shadow: 0 13px 30px rgba(49, 165, 237, .22);
}

.cg-pwa-btn-primary:active {
    transform: translateY(1px);
}

.cg-pwa-btn-secondary {
    color: #9eb9cc;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .07);
}

.cg-pwa-guide {
    display: none;
    margin: 4px 0 17px;
}

.cg-pwa-card.is-guide .cg-pwa-guide {
    display: grid;
    gap: 8px;
}


.cg-pwa-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid rgba(111, 194, 255, .1);
    border-radius: 15px;
    background: rgba(255, 255, 255, .035);
}

.cg-pwa-step-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #071326;
    background: #79d9ff;
    font-size: .82rem;
    font-weight: 950;
}

.cg-pwa-step span:last-child {
    color: #c5deed;
    font-size: .83rem;
    line-height: 1.75;
    font-weight: 750;
}

.cg-pwa-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 10px;
    color: #8edcff;
    font-size: .8rem;
    font-weight: 850;
}

.cg-pwa-status.is-visible {
    display: flex;
}

.cg-pwa-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(127, 219, 255, .22);
    border-top-color: #7fdbff;
    border-radius: 50%;
    animation: cg-pwa-spin .7s linear infinite;
}

@keyframes cg-pwa-spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 901px) {
    .cg-pwa-overlay {
        display: none !important;
    }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
    html,
    body {
        min-height: 100dvh;
    }
}
