/* ===== Mobile Block Overlay ===== */
#mobileBlockOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

#mobileBlockOverlay.active {
    display: flex;
}

.mobile-block-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: mobileBlockFadeIn 0.4s ease-out;
}

@keyframes mobileBlockFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-block-logo {
    width: 80px;
    margin-bottom: 1.5rem;
}

.mobile-block-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.mobile-block-card p.mobile-block-msg {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.mobile-block-apps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.mobile-block-app-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    background: #f9f9fb;
    color: #1a1a2e;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.mobile-block-app-btn:hover {
    text-decoration: none;
}

.mobile-block-app-btn i {
    font-size: 2.25rem;
    line-height: 1;
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
}

.mobile-block-app-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.25;
}

.mobile-block-app-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.mobile-block-app-sub {
    font-size: 0.82rem;
    color: #666;
    margin-top: 0.15rem;
}

.mobile-block-app-ios {
    border-color: #0f3460;
    background: #0f3460;
}

.mobile-block-app-ios .mobile-block-app-title,
.mobile-block-app-ios .mobile-block-app-sub,
.mobile-block-app-ios i {
    color: #ffffff;
}

.mobile-block-app-ios:hover {
    background: #1a4a7a;
    border-color: #1a4a7a;
    transform: translateY(-1px);
}

.mobile-block-app-android.disabled {
    cursor: not-allowed;
    opacity: 0.75;
    pointer-events: none;
}

.mobile-block-app-android i {
    color: #3ddc84;
}

.mobile-block-app-android:hover {
    background: #eef7f1;
    border-color: #3ddc84;
    transform: translateY(-1px);
}

/* ===== Small Screen Warning Overlay (width-based, dismissible) ===== */
#smallScreenWarningOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999998;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

#smallScreenWarningOverlay.active {
    display: flex;
}

#smallScreenWarningOverlay .mobile-block-card {
    max-width: 460px;
}

#smallScreenWarningContinue {
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
}
