/* NP PWA Modal, Splash Screen & Top Progress Bar */
.np-ios-pwa-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.np-ios-pwa-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}
.np-ios-pwa-sheet {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 32px 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    animation: npSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes npSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.np-ios-pwa-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}
.np-ios-pwa-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.np-ios-pwa-appicon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.np-ios-pwa-header h4 {
    margin: 0 0 2px 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}
.np-ios-pwa-header p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}
.np-ios-pwa-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}
.np-ios-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.np-ios-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #007aff;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.np-ios-step-text {
    font-size: 13.5px;
    line-height: 1.4;
    color: #1e293b;
}
.np-ios-pwa-gotit {
    width: 100%;
    background: #007aff;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* PWA App Opening Screen & Circular Progress Bar */
.np-pwa-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--np-pwa-bg, #ffffff);
    z-index: 999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.np-pwa-splash.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.np-pwa-splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    max-width: 320px;
}
.np-pwa-splash-ring-wrap {
    position: relative;
    width: 124px;
    height: 124px;
    margin: 0 auto 22px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.np-pwa-splash-ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 124px;
    height: 124px;
    animation: npRingRotate 1.8s linear infinite;
    transform-origin: center center;
    pointer-events: none;
    z-index: 1;
}
.np-pwa-ring-track {
    stroke: rgba(0, 0, 0, 0.07);
}
.np-pwa-ring-spinner {
    stroke: var(--np-pwa-theme, #d93025);
    stroke-linecap: round;
    animation: npRingDash 1.4s ease-in-out infinite;
}
.np-pwa-splash-logo-circle {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    animation: npLogoPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: transform 0.3s ease;
}
.np-pwa-splash-logo-circle.is-circle {
    border-radius: 50%;
}
.np-pwa-splash-logo-circle.is-squircle {
    border-radius: 24px;
}
.np-pwa-splash-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.np-pwa-splash-logo-circle.is-circle .np-pwa-splash-logo-img {
    border-radius: 50%;
}
.np-pwa-splash-logo-circle.is-squircle .np-pwa-splash-logo-img {
    border-radius: 16px;
}
.np-pwa-splash-title {
    font-size: 21px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.2px;
}
.np-pwa-splash-status {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    letter-spacing: 0.2px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@keyframes npRingRotate {
    100% {
        transform: rotate(360deg);
    }
}
@keyframes npRingDash {
    0% {
        stroke-dasharray: 1, 340;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 220, 340;
        stroke-dashoffset: -70;
    }
    100% {
        stroke-dasharray: 220, 340;
        stroke-dashoffset: -338;
    }
}
@keyframes npLogoPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Sleek Top Navigation Progress Bar for Mobile & PWA */
.np-pwa-progressbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3.5px;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #f97316 100%);
    z-index: 999999999;
    pointer-events: none;
    opacity: 0;
    transition: width 0.25s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.3s ease;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7), 0 0 4px rgba(249, 115, 22, 0.8);
}
.np-pwa-progressbar.is-active {
    opacity: 1;
}
.np-pwa-progressbar-glow {
    position: absolute;
    right: 0;
    top: -2px;
    width: 100px;
    height: 7px;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(249,115,22,0.4) 60%, transparent 100%);
    box-shadow: 0 0 12px #f97316;
    animation: npBarGlowPulse 1.2s infinite ease-in-out;
}
@keyframes npBarGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}
