/* Fixed loader.css */
#visibilityLoaderOverlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Inter', system-ui, sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#visibilityLoaderOverlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.loader-panel {
    width: min(560px, 92%);
    background: #ffffff;
    padding: 48px 32px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 95%;
    height: 95%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-wrap img {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.heading {
    margin: 24px 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00c853, #1de9b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#domainName {
    font-weight: 800;
}

.phase-text {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 32px;
}

.ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 11;
}

.ring-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 11;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.6s ease, stroke 0.8s ease;
    stroke-linecap: round;
}

.ring-fill.phase-static {
    stroke: url(#gradientStatic);
}

.ring-fill.phase-gpt {
    stroke: url(#gradientGPT);
}

.ring-fill.phase-grok {
    stroke: url(#gradientGrok);
}

.ring-fill.phase-final {
    stroke: url(#gradientFinal);
}


.ring-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 800;
    color: #00c853;
}

.ring-percent span {
    font-size: 1rem;
}

.phase-dots {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    border-radius: 50%;
    position: relative;
}

.dot.active {
    background: #00c853;
    box-shadow: 0 0 0 6px rgba(0, 200, 83, 0.2);
    animation: pulse 2s infinite;
}

.dot span {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s;
}

.dot.active span {
    opacity: 1;
}

.prompts-list {
    margin: 24px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.prompts-list.hidden {
    display: none;
}

.list-header {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 1rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #cbd5e1;
}

.phase-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-list li {
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 10px;
    font-size: 0.92rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid;
    /* color: var(--panel); */
}

#gptList li {
    border-left-color: #00b0ff;
    background: var(--bg);
    color: var(--text);
}

#grokList li {
    border-left-color: #ffab00;
    background: var(--bg);
    color: var(--text);
}

#staticPrompts {
    font-style: italic;
    color: #2c9f77;
}

#staticPrompts div {
    margin: 8px 0;
    padding: 10px;
    background: #ecfdf5;
    border-radius: 10px;
    border-left: 4px solid #10b981;
}

.final-callout {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00c853;
    margin-top: 20px;
}

.final-callout.hidden {
    display: none;
}

.btn-cancel {
    margin-top: 32px;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    background: #6b21a8;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-cancel:hover {
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(0, 200, 83, 0.2);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(0, 200, 83, 0);
    }
}

/* Demo button */
.demo-btn {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: #00c853;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10000;
}