.pwa-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    padding: 0;
    background: transparent;
    transform: translateY(160%);
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
    pointer-events: none;
}

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

.pwa-bar__inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid rgba(12, 39, 71, .08);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 10px 30px rgba(12, 39, 71, .18), 0 2px 6px rgba(12, 39, 71, .08);
    pointer-events: auto;
}

.pwa-bar__icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, #0c2747 0%, #16314e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(12, 39, 71, .25);
    color: #ffffff;
}

.pwa-bar__icon svg {
    width: 20px;
    height: 20px;
}

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

.pwa-bar__title {
    font-size: 13px;
    font-weight: 600;
    color: #0c2747;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .1px;
}

.pwa-bar__title em {
    font-style: normal;
    font-weight: 400;
    color: inherit;
}

.pwa-bar__sub {
    font-size: 11px;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    background: #0c2747;
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(12, 39, 71, .25);
    transition: background .15s, box-shadow .15s, transform .1s;
}

.pwa-bar__btn:hover {
    background: #16314e;
    box-shadow: 0 6px 14px rgba(12, 39, 71, .32);
}

.pwa-bar__btn:active {
    transform: translateY(1px);
}

.pwa-bar__btn svg {
    width: 14px;
    height: 14px;
}

.pwa-bar__close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}

.pwa-bar__close:hover {
    background: rgba(12, 39, 71, .06);
    color: #0c2747;
}

.pwa-bar__close svg {
    width: 14px;
    height: 14px;
}

@media (min-width: 640px) {
    .pwa-bar { left: 16px; right: 16px; bottom: 16px; }
    .pwa-bar__inner { padding: 14px 16px; gap: 14px; }
    .pwa-bar__icon { width: 46px; height: 46px; }
    .pwa-bar__icon svg { width: 22px; height: 22px; }
    .pwa-bar__title { font-size: 14px; }
    .pwa-bar__sub { font-size: 12px; }
    .pwa-bar__btn { padding: 10px 18px; font-size: 14px; gap: 8px; }
    .pwa-bar__btn svg { width: 16px; height: 16px; }
    .pwa-bar__close { width: 32px; height: 32px; }
    .pwa-bar__close svg { width: 16px; height: 16px; }
}

.pwa-bar__title-long { display: none; }
.pwa-bar__title-short { display: inline; }

@media (min-width: 640px) {
    .pwa-bar__title-long { display: inline; }
    .pwa-bar__title-short { display: none; }
}

.pwa-ios-modal {
    position: fixed;
    inset: 0;
    background: rgba(12, 39, 71, .55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

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

.pwa-ios-modal__card {
    background: #ffffff;
    color: #0c2747;
    border-radius: 18px 18px 0 0;
    padding: 22px 22px 28px;
    width: 100%;
    max-width: 520px;
    font-family: 'Roboto', system-ui, sans-serif;
    border-top: 1px solid rgba(12, 39, 71, .08);
    box-shadow: 0 -20px 50px rgba(12, 39, 71, .35);
}

.pwa-ios-modal__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0c2747;
}

.pwa-ios-modal__step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(12, 39, 71, .08);
    font-size: 13px;
    color: #334155;
}

.pwa-ios-modal__step:last-of-type { border-bottom: none; }

.pwa-ios-modal__step i,
.pwa-ios-modal__step svg {
    color: #0c2747;
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.pwa-ios-modal__close {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    background: #0c2747;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
}

.pwa-ios-modal__close:hover {
    background: #16314e;
}
