.btn-nav {
    background-color: #fff;
    color: #333;
    border: 2px solid #ccc;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-nav:hover {
    background-color: #ffcc00;
    border-color: #ffcc00;
    color: #333;
}

#downloadBtn { color: #333; }
#downloadBtn:hover { background-color: #ffcc00; border-color: #ffcc00; }

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    transition: background 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-whatsapp:hover { background-color: #128C7E; }

.nav-buttons {
    display: flex;
    gap: 8px;
}

@media (max-width: 640px) {
    .btn-label { display: none; }

    .btn-nav {
        padding: 10px 12px;
        font-size: 15px;
        gap: 0;
    }

    .btn-whatsapp {
        padding: 10px 12px;
        gap: 0;
    }

    .nav-buttons { gap: 4px; }
}

#loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    min-width: 260px;
    max-width: 90vw;
}

.loading-logo {
    height: 48px;
    object-fit: contain;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e0e0e0;
    border-top-color: #ffcc00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.3px;
}

.loading-bar-track {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 99px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: #ffcc00;
    border-radius: 99px;
    transition: width 0.3s ease;
}

.loading-count {
    font-size: 12px;
    color: #999;
    font-weight: 600;
}