#security-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999998;
    pointer-events: none;
    overflow: visible;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    transition: background 0.9s ease, backdrop-filter 0.9s ease, -webkit-backdrop-filter 0.9s ease;
}

#security-overlay.active {
    display: block;
}

#security-overlay.phase-waiting {
    background: rgba(235, 235, 235, 0.38);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#security-overlay.phase-widget {
    background: rgba(200, 200, 200, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.page-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(232, 232, 232, 0.85);
    overflow: hidden;
    z-index: 10000000;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

#security-overlay.active .page-loading-bar {
    opacity: 1;
}

.page-loading-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #f6821f, #f9a825);
    transition: width 0.45s ease;
}

.security-stage {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000001;
    width: 100%;
    max-width: 680px;
    padding: 0 16px;
    box-sizing: border-box;
    pointer-events: auto;
}

.security-panel {
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.navigate-panel {
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background: #fff;
    border-radius: 8px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cf-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
}

#security-overlay.phase-widget .navigate-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
}

#security-overlay.phase-widget .cf-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
}

.page-loading-spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #e5e5e5;
    border-top-color: #555;
    animation: _co_spin 0.9s linear infinite;
}

#page-loading-text {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

._co_wrapper {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #313131;
    background: #fff;
    border-radius: 8px;
    padding: 28px 28px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    width: 100%;
    box-sizing: border-box;
}

._co_f9z2c {
    margin-top: 0;
    width: 100%;
    background: #f1f1f1;
    border-radius: 1px;
    padding: 1px 8px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

._co_h2t4v {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

._co_y6n1p {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
}

._co_m5x8k {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

._co_k8b5r {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #ccc;
    border-top: 3px solid #555;
    animation: _co_spin 1s linear infinite;
    flex-shrink: 0;
}

@keyframes _co_spin {
    100% { transform: rotate(360deg); }
}

._co_g3q7m svg {
    height: 28px;
    width: auto;
}

._co_z8c3f {
    width: 100%;
    background: #fff;
    border-radius: 1px;
    padding: 24px;
    box-shadow: 0 0 0 1px #e3e3e3, 0 2px 8px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

._co_w1p6m {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}

._co_e5v3x {
    height: 2px;
    background: #dcdcdc;
    margin: 22px 0;
}

._co_b8n5j {
    font-size: 17px;
    color: #333;
}

._co_f2q8t {
    margin-top: 12px;
    font-size: 16px;
    color: #666;
}

._co_g4w7y {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

._co_g4w7y a {
    background: #5c5c5c;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

._co_g4w7y a:hover {
    background: #3d3d3d;
}

._co_iBSEj5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

._co_desc {
    display: block;
    margin-bottom: 1rem;
    font-size: 15px;
}

._co_footer {
    margin-top: 16px;
    background: #f1f1f1;
    border: 1px solid #e0e0e0;
    border-radius: 1px;
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

._co_footer span {
    font-family: monospace;
    color: #313131;
}
