/**
 * Оверлей зеркала для живых пользователей (partial подключается только если BotGate разрешил).
 * Краулеру отдаётся тот же шаблон без этого CSS/JS — в индексе/Turbo виден полный ленд.
 */
body.page-site .header, body.page-site .mobile-nav, body.page-site .main, body.page-site footer,
body.page-zerkalo .header, body.page-zerkalo .mobile-nav, body.page-zerkalo .main, body.page-zerkalo footer {
    display: none !important;
}

/* ── Полноэкранный оверлей ─────────────────────────────────────────────── */
.mr-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(ellipse at 50% 30%, #3a0a0a 0%, #1a0404 45%, #0d0202 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #fff;
}

/* ── Карточка ─────────────────────────────────────────────────────────── */
.mr-card {
    width: 100%;
    max-width: 540px;
    background: rgba(30, 4, 4, .9);
    border: 1px solid rgba(220, 80, 30, .35);
    border-radius: 18px;
    padding: 48px 40px 40px;
    text-align: center;
    box-shadow: 0 0 60px rgba(200, 50, 10, .2), inset 0 1px 0 rgba(255, 120, 30, .1);
}

/* ── Анимированная иконка WiFi ────────────────────────────────────────── */
.mr-icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
}

.mr-icon-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(#f5a020 0deg, #e05010 90deg, transparent 180deg, transparent 360deg);
    animation: mr-spin 2.5s linear infinite;
}

.mr-icon-wrap::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: #1e0404;
}

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

.mr-icon {
    position: relative;
    z-index: 2;
}

.mr-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #f5a020;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ── Тексты ───────────────────────────────────────────────────────────── */
.mr-title { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 6px; }

.mr-brand { font-size: 22px; font-weight: 800; color: #f5a020; display: block; margin-bottom: 10px; }

.mr-status { font-size: 14px; color: rgba(255, 255, 255, .6); margin-bottom: 28px; min-height: 20px; }

.mr-status b { color: #6fc96f; }

/* ── Прогресс-бар ─────────────────────────────────────────────────────── */
.mr-progress-wrap {
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mr-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 8px;
    background: linear-gradient(90deg, #f5a020, #e03010);
    transition: width .12s linear;
    box-shadow: 0 0 10px rgba(245, 160, 32, .5);
}

.mr-percent { font-size: 14px; font-weight: 700; color: #f5a020; margin-bottom: 24px; }

/* ── IP-строки ────────────────────────────────────────────────────────── */
.mr-ips { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.mr-ip-row {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .4s ease, transform .4s ease;
}

.mr-ip-row.mr-visible { opacity: 1; transform: translateY(0); }

.mr-ip-left { display: flex; align-items: center; gap: 10px; }

.mr-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f5a020;
    flex-shrink: 0;
    box-shadow: 0 0 6px #f5a020;
    animation: mr-pulse 1.4s ease-in-out infinite;
}

.mr-ip-row:nth-child(2) .mr-dot { animation-delay: .3s; }

.mr-ip-row:nth-child(3) .mr-dot { animation-delay: .6s; }

@keyframes mr-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.75); }
}

.mr-ip-addr { color: rgba(255, 255, 255, .88); letter-spacing: .4px; }

.mr-ping { color: #f5a020; font-weight: 700; font-size: 13px; white-space: nowrap; }

.mr-hint { font-size: 12px; color: rgba(255, 255, 255, .3); line-height: 1.7; }