/* Modal de atualização — mesmo visual em todas as páginas (painel principal) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

html.sf-cache-guard-locked,
body.sf-cache-guard-locked {
    overflow: hidden !important;
}

.sf-cache-guard-blocker {
    --sf-cg-bg: #1b1f23;
    --sf-cg-border: #2d3139;
    --sf-cg-text: #e4e6eb;
    --sf-cg-muted: #b4b8c0;
    --sf-cg-accent: #1e90ff;
    --sf-cg-overlay: rgba(15, 17, 21, 0.75);

    position: fixed;
    inset: 0;
    z-index: 200000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--sf-cg-overlay);
    backdrop-filter: blur(3px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sf-cache-guard-blocker.is-visible {
    display: flex;
}

.sf-cache-guard-modal {
    width: min(320px, calc(100vw - 32px));
    padding: 22px 20px 20px;
    text-align: center;
    background: var(--sf-cg-bg);
    border: 1px solid var(--sf-cg-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    color: var(--sf-cg-text);
}

.sf-cache-guard-modal-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sf-cg-text);
}

.sf-cache-guard-modal-text {
    margin: 0 0 16px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--sf-cg-muted);
    line-height: 1.4;
}

.sf-cache-guard-blocker .sf-cache-guard-modal-btn {
    display: inline-block;
    min-width: 120px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: var(--sf-cg-accent);
    color: #fff;
    cursor: pointer;
    line-height: 1.25;
}

.sf-cache-guard-blocker .sf-cache-guard-modal-btn:hover {
    background: #2590ff;
    color: #fff;
}

.sf-cache-guard-blocker .sf-cache-guard-modal-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.35);
}

.sf-cache-guard-banner {
    display: none !important;
}

.sf-cache-guard-overlay {
    position: fixed;
    inset: 0;
    z-index: 200001;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 17, 21, 0.65);
}

.sf-cache-guard-overlay.is-visible {
    display: flex;
}

.sf-cache-guard-overlay .inner {
    text-align: center;
}

.sf-cache-guard-overlay .spinner-border {
    width: 2.25rem;
    height: 2.25rem;
    color: #1e90ff;
    border-width: 0.2em;
}
