.hamster-pwa-install {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hamster-pwa-install.is-visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.hamster-pwa-install__card {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: #1a1d28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hamster-pwa-install__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.hamster-pwa-install__body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 24px;
    margin-bottom: 12px;
}

.hamster-pwa-install__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #12141c;
}

.hamster-pwa-install__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hamster-pwa-install__title {
    font-size: 15px;
    line-height: 1.3;
    color: #fff;
}

.hamster-pwa-install__subtitle {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.62);
}

.hamster-pwa-install__actions {
    display: flex;
    gap: 8px;
}

.hamster-pwa-install__btn {
    flex: 1;
    height: 40px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.hamster-pwa-install__btn--primary {
    background: linear-gradient(135deg, #22c37a, #1aa860);
    color: #fff;
}

.hamster-pwa-install__btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

.hamster-pwa-ios {
    position: fixed;
    inset: 0;
    z-index: 99995;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.hamster-pwa-ios__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hamster-pwa-ios__sheet {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 18px 16px 16px;
    border-radius: 18px 18px 16px 16px;
    background: #1a1d28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(24px);
    transition: transform 0.25s ease;
}

.hamster-pwa-ios.is-visible .hamster-pwa-ios__sheet {
    transform: translateY(0);
}

.hamster-pwa-ios__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.hamster-pwa-ios__header h3 {
    margin: 0;
    font-size: 17px;
    color: #fff;
}

.hamster-pwa-ios__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 18px;
}

.hamster-pwa-ios__steps {
    margin: 0 0 16px;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.5;
}

.hamster-pwa-ios__steps li {
    margin-bottom: 10px;
}

.hamster-pwa-ios__steps i {
    color: #22c37a;
    vertical-align: middle;
}

.hamster-pwa-ios__done {
    width: 100%;
}

@media (min-width: 768px) {
    .hamster-pwa-install,
    .hamster-pwa-ios {
        display: none !important;
    }
}
