/* Full-screen mobile PWA install gate */
.pwa-gate {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200000;
    background:
        radial-gradient(ellipse at top right, rgba(195, 156, 89, 0.2), transparent 45%),
        radial-gradient(ellipse at bottom left, rgba(10, 51, 80, 0.95), #071f32 70%);
    color: #e8eef6;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pwa-gate.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.pwa-gate-active {
    overflow: hidden !important;
}

body.pwa-gate-active .dashboard-container,
body.pwa-gate-active .mobile-bottom-nav,
body.pwa-gate-active .mnav-sheet,
body.pwa-gate-active .card {
    visibility: hidden !important;
    pointer-events: none !important;
}

.pwa-gate-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.75rem 1.35rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

.pwa-gate-logo {
    display: block;
    height: 42px;
    width: auto;
    max-width: 100%;
    margin-bottom: 0.75rem;
}

.pwa-gate-product {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.1rem;
}

.pwa-gate-card h1 {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    color: #fff;
}

.pwa-gate-lead {
    margin: 0 0 1.25rem;
    color: #9bb4c9;
    font-size: 0.95rem;
    line-height: 1.45;
}

.pwa-gate-block {
    margin-bottom: 1rem;
}

.pwa-gate-btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    background: #c39c59;
    color: #0a3350;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
    min-height: 48px;
    touch-action: manipulation;
}

.pwa-gate-btn:active {
    background: #d4b06a;
}

.pwa-gate-steps {
    margin: 0 0 0.75rem;
    padding-left: 1.2rem;
    color: #e8eef6;
    line-height: 1.55;
    font-size: 0.95rem;
}

.pwa-gate-steps li {
    margin-bottom: 0.55rem;
}

.pwa-gate-hint {
    margin: 0;
    color: #9bb4c9;
    font-size: 0.85rem;
    line-height: 1.45;
}

.pwa-gate-status {
    margin: 1rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #c39c59;
    font-size: 0.8rem;
    font-weight: 600;
}

.pwa-gate-ios-share {
    display: inline-block;
    padding: 0 0.2rem;
    font-weight: 700;
}
