/* ── PWA Install Banner ── */
.pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 9999;
    background: #ffffff;
    border: 1px solid rgba(13, 49, 94, 0.12);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(13, 49, 94, 0.18);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 280px;
    max-width: 380px;
    width: calc(100vw - 40px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
}

.pwa-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pwa-banner__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: #0d315e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-banner__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.pwa-banner__text {
    flex: 1;
    min-width: 0;
}

.pwa-banner__title {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 700;
    color: #0b1b2b;
    line-height: 1.3;
}

.pwa-banner__subtitle {
    margin: 0;
    font-size: 11px;
    color: #6b7787;
}

.pwa-banner__btn {
    flex-shrink: 0;
    background: #0d315e;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.pwa-banner__btn:hover {
    background: #0a2547;
    transform: translateY(-1px);
}

.pwa-banner__close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7787;
    padding: 4px;
    line-height: 1;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}

.pwa-banner__close:hover {
    background: rgba(13, 49, 94, 0.08);
    color: #0b1b2b;
}

/* ── PWA iOS Modal ── */
.pwa-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(11, 27, 43, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.pwa-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.pwa-modal {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 360px;
    position: relative;
    transform: translateY(40px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.pwa-modal-overlay.is-visible .pwa-modal {
    transform: translateY(0);
}

.pwa-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(13, 49, 94, 0.07);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: #6b7787;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.pwa-modal__close:hover {
    background: rgba(13, 49, 94, 0.14);
    color: #0b1b2b;
}

.pwa-modal__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #0d315e;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pwa-modal__icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.pwa-modal__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #0b1b2b;
}

.pwa-modal__subtitle {
    margin: 0 0 20px;
    font-size: 13px;
    color: #6b7787;
}

.pwa-modal__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.pwa-modal__step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #0b1b2b;
    line-height: 1.5;
}

.pwa-modal__step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0d315e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.pwa-modal__step-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 2px;
}

.pwa-modal__step strong {
    font-weight: 700;
}
