/* Install / PWA promo */
.install-promo {
    position: relative;
    display: none;
    overflow: hidden;
    isolation: isolate;
}

.install-promo.is-visible {
    display: grid;
}

.install-promo__glow {
    position: absolute;
    inset: auto -30% -50% auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(220, 251, 110, 0.18);
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
}

.install-promo__icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    flex-shrink: 0;
}

.install-promo__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.install-promo__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.install-promo__eyebrow {
    margin: 0 0 4px;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.install-promo__copy strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.install-promo__copy small {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.install-promo__actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.install-promo__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #dcfb6e;
    color: #000;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.install-promo__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(220, 251, 110, 0.35);
}

.install-promo__btn:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.install-promo__dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    opacity: 0.55;
    cursor: pointer;
}

.install-promo__dismiss:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

.install-promo__hint {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
}

/* Auth */
.install-promo--auth {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 12px 14px;
    margin-top: 16px;
    padding: 18px 16px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(0, 0, 0, 0.55), rgba(20, 16, 32, 0.72)),
        rgba(8, 7, 12, 0.65);
    border: 1px solid rgba(220, 251, 110, 0.22);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    color: rgba(244, 241, 250, 0.88);
    animation: install-in 0.55s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.install-promo--auth .install-promo__icon {
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    align-self: center;
}

.install-promo--auth .install-promo__copy {
    grid-column: 2;
}

.install-promo--auth .install-promo__eyebrow {
    color: #dcfb6e;
}

.install-promo--auth .install-promo__copy strong {
    color: #fff;
}

.install-promo--auth .install-promo__copy small {
    color: rgba(244, 241, 250, 0.58);
}

.install-promo--auth .install-promo__actions {
    grid-column: 2;
}

.install-promo--auth .install-promo__hint {
    color: rgba(244, 241, 250, 0.55);
}

/* Sidebar */
.install-promo--side {
    grid-template-columns: auto 1fr;
    gap: 10px 10px;
    padding: 12px;
    border-radius: 14px;
    background:
        linear-gradient(160deg, rgba(220, 251, 110, 0.12), transparent 55%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(220, 251, 110, 0.2);
    color: var(--sb-text);
    margin-bottom: 2px;
}

.install-promo--side .install-promo__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.install-promo--side .install-promo__copy strong {
    font-size: 0.82rem;
    color: #fff;
}

.install-promo--side .install-promo__copy small {
    color: var(--sb-muted);
    font-size: 0.7rem;
}

.install-promo--side .install-promo__actions {
    grid-column: 1 / -1;
}

.install-promo--side .install-promo__btn {
    width: 100%;
    min-height: 34px;
    font-size: 0.78rem;
}

.install-promo--side .install-promo__hint {
    color: var(--sb-muted);
}

/* Dashboard page */
.install-promo--page {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(120deg, rgba(0, 0, 0, 0.92), rgba(28, 22, 42, 0.95) 55%, rgba(18, 40, 12, 0.9)),
        #0b0b0b;
    border: 1px solid rgba(220, 251, 110, 0.24);
    box-shadow: var(--shadow-md), 0 0 40px rgba(220, 251, 110, 0.08);
    color: #f4f1fa;
    animation: install-in 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.install-promo--page .install-promo__eyebrow {
    color: #dcfb6e;
}

.install-promo--page .install-promo__copy strong {
    color: #fff;
    font-size: 1.05rem;
}

.install-promo--page .install-promo__copy small {
    color: rgba(244, 241, 250, 0.62);
}

.install-promo--page .install-promo__hint {
    color: rgba(244, 241, 250, 0.55);
}

@keyframes install-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .install-promo--page {
        grid-template-columns: auto 1fr;
    }

    .install-promo--page .install-promo__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .install-promo--page .install-promo__btn {
        flex: 1;
    }
}
