/* ============================================================
   MONITOR ONLINE — UNIFIED PRODUCTION CSS v3
   ============================================================ */

/* ===== ТЕМЫ ===== */
:root,
[data-theme="dark"] {
    --bg:            #080c14;
    --surface:       #0d1321;
    --surface2:      #111827;
    --border:        rgba(255,255,255,0.07);
    --border2:       rgba(255,255,255,0.13);
    --accent:        #3b82f6;
    --accent2:       #06b6d4;
    --accent-glow:   rgba(59,130,246,0.3);
    --text:          #f1f5f9;
    --text2:         #cbd5e1;
    --text3:         #94a3b8;
    --muted:         #64748b;
    --muted2:        #475569;
    --nav-bg:        rgba(8,12,20,0.85);
    --grid-color:    rgba(59,130,246,0.03);
    --glow:          rgba(59,130,246,0.12);
    --card-bg:       #0d1321;
    --input-bg:      rgba(255,255,255,0.04);
    --input-border:  rgba(255,255,255,0.1);
    --input-focus:   rgba(59,130,246,0.5);
    --input-text:    #f1f5f9;
    --placeholder:   #475569;
    --shadow:        rgba(0,0,0,0.4);
    --code-bg:       rgba(255,255,255,0.07);
    --code-text:     #06b6d4;
    --pre-bg:        #060a12;
    --blockquote-bg: rgba(59,130,246,0.05);
    --cover-ph:      linear-gradient(135deg,#0f2040,#1e293b);
    --up-color:      #10b981;
    --up-bg:         rgba(16,185,129,0.1);
    --up-border:     rgba(16,185,129,0.2);
    --up-text:       #34d399;
    --down-color:    #ef4444;
    --down-bg:       rgba(239,68,68,0.1);
    --down-border:   rgba(239,68,68,0.2);
    --down-text:     #f87171;
    --warn-color:    #f59e0b;
    --warn-bg:       rgba(245,158,11,0.1);
    --warn-border:   rgba(245,158,11,0.2);
    --warn-text:     #fbbf24;
    --info-bg:       rgba(59,130,246,0.1);
    --info-border:   rgba(59,130,246,0.2);
    --info-text:     #93c5fd;
    --toggle-off:    rgba(255,255,255,0.12);
    --empty-border:  rgba(255,255,255,0.08);
    --cover-placeholder: linear-gradient(135deg,#0f2040,#1e293b);
    --option-bg:     rgba(255,255,255,0.04);
    --option-hover:  rgba(59,130,246,0.5);
}

[data-theme="light"] {
    --bg:            #f0f4f8;
    --surface:       #ffffff;
    --surface2:      #f8fafc;
    --border:        rgba(0,0,0,0.09);
    --border2:       rgba(0,0,0,0.16);
    --accent:        #2563eb;
    --accent2:       #0891b2;
    --accent-glow:   rgba(37,99,235,0.2);
    --text:          #0f172a;
    --text2:         #1e293b;
    --text3:         #334155;
    --muted:         #64748b;
    --muted2:        #475569;
    --nav-bg:        rgba(240,244,248,0.92);
    --grid-color:    rgba(37,99,235,0.04);
    --glow:          rgba(37,99,235,0.08);
    --card-bg:       #ffffff;
    --input-bg:      #ffffff;
    --input-border:  rgba(0,0,0,0.15);
    --input-focus:   rgba(37,99,235,0.45);
    --input-text:    #0f172a;
    --placeholder:   #94a3b8;
    --shadow:        rgba(0,0,0,0.08);
    --code-bg:       rgba(0,0,0,0.05);
    --code-text:     #0369a1;
    --pre-bg:        #f1f5f9;
    --blockquote-bg: rgba(37,99,235,0.04);
    --cover-ph:      linear-gradient(135deg,#dbeafe,#e0f2fe);
    --up-color:      #059669;
    --up-bg:         rgba(5,150,105,0.08);
    --up-border:     rgba(5,150,105,0.25);
    --up-text:       #065f46;
    --down-color:    #dc2626;
    --down-bg:       rgba(220,38,38,0.08);
    --down-border:   rgba(220,38,38,0.25);
    --down-text:     #7f1d1d;
    --warn-color:    #d97706;
    --warn-bg:       rgba(217,119,6,0.08);
    --warn-border:   rgba(217,119,6,0.25);
    --warn-text:     #78350f;
    --info-bg:       rgba(37,99,235,0.08);
    --info-border:   rgba(37,99,235,0.2);
    --info-text:     #1e40af;
    --toggle-off:    rgba(0,0,0,0.15);
    --empty-border:  rgba(0,0,0,0.1);
    --cover-placeholder: linear-gradient(135deg,#dbeafe,#e0f2fe);
    --option-bg:     #f0f0f0;
    --option-hover:  #ddd;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.grecaptcha-badge { visibility: hidden !important; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}
@keyframes ping {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.5); opacity: 0; }
}

main { flex: 1; position: relative; z-index: 1; }
main > * { animation: fadeUp 0.4s ease both; }

/* ===== REPORTS ===== */

.toast {
    position: fixed;
    top: 24px;
    right: 24px;

    min-width: 300px;
    max-width: 380px;

    border-radius: 14px;
    backdrop-filter: blur(12px);
    background: rgba(17, 24, 39, 0.9);

    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);

    opacity: 0;
    transform: translateY(-10px) scale(0.98);

    z-index: 9999;
    overflow: hidden;

    transition: all 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-inner {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
}

.toast-icon {
    font-size: 18px;
    margin-top: 2px;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
}

.toast-message {
    font-size: 13px;
    opacity: 0.85;
}

.toast-close {
    margin-left: auto;
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
}

.toast-close:hover {
    color: white;
}

/* прогресс */
.toast-progress {
    height: 3px;
    background: rgba(255,255,255,0.1);
}

.toast-progress::after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    transform: translateX(-100%);
    animation: progress 3s linear forwards;
}

/* success */
.toast-success .toast-icon,
.toast-success .toast-title {
    color: #34d399;
}

.toast-success .toast-progress::after {
    background: #34d399;
}

/* error */
.toast-error .toast-icon,
.toast-error .toast-title {
    color: #f87171;
}

.toast-error .toast-progress::after {
    background: #f87171;
}

@keyframes progress {
    to {
        transform: translateX(0);
    }
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    letter-spacing: -0.02em;
    flex-shrink: 0;
    transition: color 0.3s;
}

.logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: box-shadow 0.2s;
}

.logo:hover .logo-icon { box-shadow: 0 0 16px var(--accent-glow); }
.logo span { color: var(--accent); }

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover { color: var(--text); background: rgba(128,128,128,0.08); }
.nav-link.active { color: var(--accent); background: var(--info-bg); }

.nav-divider { width: 1px; height: 20px; background: var(--border); margin: 0 6px; flex-shrink: 0; }

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.theme-toggle {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover { color: var(--text); background: rgba(128,128,128,0.08); border-color: var(--border2); }

.btn-login {
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.btn-login:hover { border-color: rgba(59,130,246,0.4); background: var(--info-bg); }

.btn-register {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    box-shadow: 0 0 18px var(--accent-glow);
    transition: box-shadow 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-register:hover { box-shadow: 0 0 28px var(--accent-glow); transform: translateY(-1px); }

.btn-logout {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.btn-logout:hover { color: var(--text); background: rgba(128,128,128,0.08); }

.menu-toggle {
    display: none;
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.menu-toggle:hover { background: rgba(128,128,128,0.08); }

/* ===== AI TEXT HIGHLIGHT ===== */

.ai-high {
    background: rgba(239, 68, 68, 0.10);
    border-left: 2px solid var(--down-color);
    color: var(--text);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ai-medium {
    background: rgba(245, 158, 11, 0.10);
    border-left: 2px solid var(--warn-color);
    color: var(--text);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ai-low {
    background: rgba(16, 185, 129, 0.08);
    border-left: 2px solid var(--up-color);
    color: var(--text);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.seo-section{
    max-width:860px;
    margin:70px auto 0;
    padding:0 20px;
    color:var(--text3);
    line-height:1.75;
    font-size:0.95rem;
}

.seo-box{
    background:var(--card-bg);
    border:1px solid var(--info-border);
    border-radius:16px;
    padding:26px;
}

.seo-box h2{
    font-family:'Syne',sans-serif;
    font-size:1.5rem;
    margin-bottom:14px;
    color:var(--text);
}

.seo-box h3{
    margin-top:20px;
    margin-bottom:10px;
    color:var(--text);
    font-size:1.1rem;
}

.seo-box p{
    margin-bottom:12px;
}

.seo-box ul{
    padding-left:18px;
    margin-top:10px;
}

.seo-box ul li{
    margin-bottom:6px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    z-index: 199;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 32px var(--shadow);
    transition: background 0.3s;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 10px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.mobile-nav-link:hover { color: var(--text); background: rgba(128,128,128,0.08); }
.mobile-nav-link.active { color: var(--accent); background: var(--info-bg); }

.mobile-divider { height: 1px; background: var(--border); margin: 8px 0; }

.mobile-nav-section {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding: 6px 14px 2px;
}

.mobile-auth-row { display: flex; gap: 8px; padding: 8px 0 0; }
.mobile-auth-row .btn-login,
.mobile-auth-row .btn-register { flex: 1; text-align: center; }

/* ===== FOOTER ===== */
footer {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: auto;
    transition: background 0.3s;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 40px;
}

.footer-brand { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 6px; }
.footer-copy  { font-size: 0.78rem; color: var(--muted); }
.footer-nav   { display: flex; gap: 40px; }

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
}

.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.82rem; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: box-shadow 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary:hover { box-shadow: 0 0 35px var(--accent-glow); transform: translateY(-1px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(128,128,128,0.07);
    color: var(--text);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border2);
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.btn-secondary:hover { background: rgba(128,128,128,0.12); }

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 0 25px var(--accent-glow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.btn-submit:hover { box-shadow: 0 0 40px var(--accent-glow); transform: translateY(-1px); }

.btn-save {
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 10px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 0 18px var(--accent-glow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.btn-save:hover { box-shadow: 0 0 28px var(--accent-glow); transform: translateY(-1px); }

.btn-test {
    background: var(--up-bg);
    color: var(--up-text);
    border: 1px solid var(--up-border);
    border-radius: 9px;
    padding: 10px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-test:hover { background: rgba(16,185,129,0.15); }

.btn-danger {
    background: none;
    border: none;
    color: var(--muted2);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    font-family: inherit;
}

.btn-danger:hover { color: var(--down-text); background: var(--down-bg); }

.btn-check {
    background: var(--info-bg);
    color: var(--accent);
    border: 1px solid var(--info-border);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-check:hover:not(:disabled) { background: rgba(59,130,246,0.18); border-color: rgba(59,130,246,0.4); }
.btn-check:disabled, .btn-check.disabled { background: rgba(128,128,128,0.06); color: var(--muted); border-color: var(--border); cursor: not-allowed; }

.btn-view {
    font-size: 0.78rem;
    color: var(--accent);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--info-border);
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
}

.btn-view:hover { background: var(--info-bg); }

.btn-link {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    margin-right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.btn-link:hover { text-decoration: underline; }
.btn-link.text-red { color: var(--down-text); }

.toggle-form-btn {
    display: inline-block;
    margin-bottom: 24px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 25px var(--accent-glow);
    transition: box-shadow 0.2s, transform 0.2s;
    border: none;
    font-family: inherit;
}

.toggle-form-btn:hover { box-shadow: 0 0 40px var(--accent-glow); transform: translateY(-1px); }

/* ===== ALERTS ===== */
.alert {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.875rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success { background: var(--up-bg);   border: 1px solid var(--up-border);   color: var(--up-text); }
.alert-error   { background: var(--down-bg);  border: 1px solid var(--down-border);  color: var(--down-text); }
.alert-warning { background: var(--warn-bg);  border: 1px solid var(--warn-border);  color: var(--warn-text); }
.alert-info    { background: var(--info-bg);  border: 1px solid var(--info-border);  color: var(--info-text); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text3);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--input-text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-input::placeholder { color: var(--placeholder); }

select.form-input {
    -webkit-appearance: none; 
    -moz-appearance: none;   
    appearance: none;
    background: var(--input-bg);
    color: var(--input-text);
    padding: 0.5em;
}

select.form-input::after {
    content: '▼';
    position: absolute;
    right: 10px;
}

select.form-input option {
    background: var(--option-bg);
    color: var(--input-text);
}
select.form-input option:hover { 
    background: var(--option-hover); 
}

.form-error { font-size: 0.78rem; color: var(--down-color); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.form-hint  { font-size: 0.78rem; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.form-divider { height: 1px; background: var(--border); margin: 28px 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.single { grid-template-columns: 1fr; }
.form-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; flex-wrap: wrap; gap: 12px; }

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 28px;
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title-sub { font-size: 0.75rem; font-weight: 400; color: var(--muted); font-family: 'Inter', sans-serif; }

/* ===== STATUS ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 100px;
}

.status-badge.up      { background: var(--up-bg);   color: var(--up-text);   border: 1px solid var(--up-border); }
.status-badge.down    { background: var(--down-bg);  color: var(--down-text);  border: 1px solid var(--down-border); }
.status-badge.unknown { background: rgba(100,116,139,0.1); color: var(--muted); border: 1px solid var(--border2); }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-pill.up      { background: var(--up-bg);   color: var(--up-text);   border: 1px solid var(--up-border); }
.status-pill.down    { background: var(--down-bg);  color: var(--down-text);  border: 1px solid var(--down-border); }
.status-pill.unknown { background: rgba(100,116,139,0.1); color: var(--muted); border: 1px solid var(--border2); }

.site-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.site-dot.up      { background: var(--up-color); box-shadow: 0 0 6px var(--up-bg); }
.site-dot.down    { background: var(--down-color); box-shadow: 0 0 6px var(--down-bg); }
.site-dot.unknown { background: var(--muted); }

.site-status-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; position: relative; }
.site-status-dot.up { background: var(--up-color); box-shadow: 0 0 8px rgba(16,185,129,0.6); }
.site-status-dot.up::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: rgba(16,185,129,0.2); animation: ping 2s infinite; }
.site-status-dot.down    { background: var(--down-color); box-shadow: 0 0 8px rgba(239,68,68,0.6); }
.site-status-dot.unknown { background: var(--muted); }

.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.5s infinite; }

/* ===== COMMON ===== */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); text-decoration: none; margin-bottom: 32px; transition: color 0.2s; }
.back-link:hover { color: var(--accent); }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: 40px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.4; }

.section-tag   { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--text); }
.section-sub   { font-size: 1rem; color: var(--muted); max-width: 500px; line-height: 1.7; }

.pagination-wrap { margin-top: 32px; display: flex; justify-content: center; }

.empty-state { text-align: center; padding: 80px 24px; color: var(--muted); }
.empty-state h2 { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 16px 0 8px; }
.empty-state p  { font-size: 0.9rem; }

.empty-sites {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    background: var(--card-bg);
    border: 1px dashed var(--empty-border);
    border-radius: 16px;
    color: var(--muted);
}

.empty-sites h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 12px 0 8px; }

.d-none { display: none; }
.timer-text { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* ===== HERO ===== */
.hero { position: relative; text-align: center; padding: 120px 24px 100px; overflow: hidden; }

.hero-glow { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(ellipse, var(--glow) 0%, transparent 65%); pointer-events: none; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.8rem;
    color: var(--info-text);
    margin-bottom: 28px;
}

.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: blink 2s infinite; }

.hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(2.5rem,6vw,4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; color: var(--text); }
.hero h1 span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 64px; flex-wrap: wrap; }
.hero-stat  { text-align: center; }
.hero-stat-num   { font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 800; color: var(--text); }
.hero-stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* Section wrapper */
.section { max-width: 1160px; margin: 0 auto; padding: 80px 24px; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; margin-top: 48px; }

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity 0.3s; }
.feature-card:hover { border-color: var(--info-border); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }

.feature-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 18px; }
.feature-card h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.feature-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ===== PRICING ===== */
.pricing-wrap { max-width: 1100px; margin: 0 auto; padding: 72px 24px 100px; }
.pricing-hero { text-align: center; margin-bottom: 56px; }
.pricing-tag  { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 14px; }
.pricing-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(2rem,5vw,3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; color: var(--text); }
.pricing-hero p  { color: var(--muted); font-size: 1rem; max-width: 460px; margin: 0 auto; line-height: 1.7; }

.pricing-grid,
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; margin-top: 48px; align-items: center; }

.plan-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.plan-card:hover { transform: translateY(-4px); }

.plan-card.featured {
    background: linear-gradient(145deg, #1e3a5f, #0f2040);
    border-color: rgba(59,130,246,0.4);
    transform: scale(1.04);
}

[data-theme="light"] .plan-card.featured { background: linear-gradient(145deg,#dbeafe,#eff6ff); border-color: rgba(37,99,235,0.35); }
.plan-card.featured:hover { transform: scale(1.04) translateY(-4px); }
.plan-card.current { border-color: var(--up-border); }

.plan-badge,
.plan-top-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 10px; border-radius: 100px; margin-bottom: 16px; }

.badge-popular { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.badge-current { background: var(--up-bg); color: var(--up-text); border: 1px solid var(--up-border); }

.plan-name  { font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.plan-price { font-family: 'Syne', sans-serif; font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; color: var(--text); }
.plan-price span, .plan-price sub { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.plan-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 8px; display: inline-block; }
.plan-desc { font-size: 0.82rem; color: var(--muted); margin-bottom: 24px; margin-top: 8px; }

.plan-features { list-style: none; padding: 0; margin: 0 0 28px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--text2); padding: 8px 0; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: none; }

.feat-check, .check {
    width: 18px; height: 18px;
    background: var(--info-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

.feat-check.green { background: var(--up-bg); color: var(--up-color); }

.plan-btn { display: block; text-align: center; padding: 13px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; font-family: inherit; width: 100%; transition: all 0.2s; text-decoration: none; }

.plan-btn-default  { background: rgba(128,128,128,0.08); color: var(--text); border: 1px solid var(--border2); }
.plan-btn-default:hover { background: rgba(128,128,128,0.14); }
.plan-btn-featured { background: linear-gradient(135deg, var(--accent), #1d4ed8); color: #fff; box-shadow: 0 0 25px var(--accent-glow); }
.plan-btn-featured:hover { box-shadow: 0 0 40px var(--accent-glow); transform: translateY(-1px); }
.plan-btn-current  { background: var(--up-bg); color: var(--up-text); border: 1px solid var(--up-border); cursor: default; }

.current-plan-banner { background: var(--card-bg); border: 1px solid var(--info-border); border-radius: 14px; padding: 20px 28px; margin-bottom: 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.current-plan-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 4px; }
.current-plan-name  { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--text); }
.current-plan-meta  { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* FAQ */
.faq-section { margin-top: 80px; max-width: 680px; margin-left: auto; margin-right: auto; }
.faq-title   { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 32px; letter-spacing: -0.02em; color: var(--text); }
.faq-item    { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-q       { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; color: var(--text); }
.faq-a       { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* CTA Banner */
.cta-banner { margin: 0 24px 80px; border-radius: 24px; background: var(--card-bg); border: 1px solid var(--info-border); padding: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 400px; height: 300px; background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%); pointer-events: none; }
.cta-banner h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 800; color: var(--text); margin-bottom: 16px; letter-spacing: -0.02em; position: relative; }
.cta-banner p  { color: var(--muted); margin-bottom: 32px; position: relative; }

/* ===== DASHBOARD ===== */
.dash { max-width: 1160px; margin: 0 auto; padding: 48px 24px 80px; }
.dash-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.dash-header h1 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.dash-header p  { font-size: 0.875rem; color: var(--muted); margin-top: 4px; }

.dash-section-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; color: var(--text); }
.dash-section-title span { font-size: 0.75rem; font-weight: 500; color: var(--muted); font-family: 'Inter', sans-serif; }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin-bottom: 40px; }
.stats-row  { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
}

/* Единая полоска сверху через ::after */
.stat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.stat-card.blue::after   { background: linear-gradient(90deg,#3b82f6,#06b6d4); }
.stat-card.green::after  { background: linear-gradient(90deg,#10b981,#34d399); }
.stat-card.red::after    { background: linear-gradient(90deg,#ef4444,#f87171); }
.stat-card.amber::after  { background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.stat-card.purple::after { background: linear-gradient(90deg,#8b5cf6,#a78bfa); }
.stat-card.muted::after  { background: linear-gradient(90deg,#64748b,#94a3b8); }

.stat-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 10px; }
.stat-value { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin-bottom: 4px; color: var(--text); }
.stat-value.green { color: var(--up-color); }
.stat-value.red   { color: var(--down-color); }
.stat-sub   { font-size: 0.75rem; color: var(--muted); }

.stat-mini { background: rgba(128,128,128,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; text-align: center; }
.stat-mini-val   { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; margin-bottom: 2px; color: var(--text); }
.stat-mini-label { font-size: 0.72rem; color: var(--muted); }

/* Sites grid (dashboard cards) */
.sites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 16px; margin-bottom: 48px; }

.site-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; transition: border-color 0.2s, transform 0.2s; }
.site-card:hover { border-color: var(--info-border); transform: translateY(-2px); }
.site-info { flex: 1; min-width: 0; }
.site-host { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; color: var(--text); }
.site-meta { font-size: 0.78rem; color: var(--muted); }

.site-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 100px; flex-shrink: 0; }
.site-badge.up      { background: var(--up-bg);   color: var(--up-text);   border: 1px solid var(--up-border); }
.site-badge.down    { background: var(--down-bg);  color: var(--down-text);  border: 1px solid var(--down-border); }
.site-badge.unknown { background: rgba(100,116,139,0.1); color: var(--muted); border: 1px solid var(--border2); }

/* Events table */
.events-table { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.events-table-row { display: grid; grid-template-columns: 120px 1fr 80px 120px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--border); font-size: 0.85rem; gap: 16px; }
.events-table-row:last-child { border-bottom: none; }
.events-table-head { background: rgba(128,128,128,0.04); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.event-status { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 100px; }
.event-status.up   { background: var(--up-bg);  color: var(--up-text); }
.event-status.down { background: var(--down-bg); color: var(--down-text); }
.event-host    { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-time-ms { color: var(--muted); text-align: right; }
.event-date    { color: var(--muted); text-align: right; }
.events-empty  { padding: 40px; text-align: center; color: var(--muted); font-size: 0.875rem; }

/* ===== SITES TABLE ===== */
.sites-wrap   { max-width: 1160px; margin: 0 auto; padding: 48px 24px 100px; }
.sites-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.sites-header h1 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.sites-header p  { font-size: 0.875rem; color: var(--muted); margin-top: 4px; }

.sites-table { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.sites-table-head { display: grid; grid-template-columns: 1fr 120px 140px 160px 160px; padding: 13px 24px; background: rgba(128,128,128,0.04); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); gap: 16px; }
.sites-table-row  { display: grid; grid-template-columns: 1fr 120px 140px 160px 160px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--border); gap: 16px; transition: background 0.15s; }
.sites-table-row:hover { background: rgba(128,128,128,0.03); }

.site-url-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-url-text { font-size: 0.9rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-url-link { font-size: 0.75rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.site-url-link:hover { color: var(--accent); }
.cell-muted    { font-size: 0.83rem; color: var(--muted); }
.cell-actions  { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }

/* ===== SITE DETAIL ===== */
.site-wrap { max-width: 1100px; margin: 0 auto; padding: 48px 24px 100px; }

.site-hero {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
    position: relative;
    overflow: hidden;
}

.site-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,#10b981,#3b82f6,#06b6d4); }
.site-hero.down::before { background: linear-gradient(90deg,#ef4444,#f97316); }
.site-hero-left  { display: flex; align-items: center; gap: 16px; }
.site-hero-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.site-status-circle { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.site-status-circle.up      { background: var(--up-bg); }
.site-status-circle.down    { background: var(--down-bg); }
.site-status-circle.unknown { background: rgba(100,116,139,0.12); }

.site-host { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--text); }

/* Chart */
.chart-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; margin-bottom: 24px; }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 80px; margin-bottom: 8px; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart-bar { width: 100%; border-radius: 3px 3px 0 0; min-height: 4px; transition: opacity 0.2s; }
.chart-bar:hover { opacity: 0.8; }
.chart-bar.up   { background: var(--up-color); }
.chart-bar.down { background: var(--down-color); }
.chart-bar.none { background: var(--border2); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }

/* SEO */
.seo-score-ring { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.seo-circle { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; flex-shrink: 0; }
.seo-circle.good   { background: var(--up-bg);   color: var(--up-text);   border: 2px solid var(--up-border); }
.seo-circle.medium { background: var(--warn-bg);  color: var(--warn-text);  border: 2px solid var(--warn-border); }
.seo-circle.bad    { background: var(--down-bg);  color: var(--down-text);  border: 2px solid var(--down-border); }
.seo-score-info h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.seo-score-info p  { font-size: 0.8rem; color: var(--muted); }

.seo-issues { display: flex; flex-direction: column; gap: 8px; }
.seo-issue  { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; padding: 10px 12px; border-radius: 8px; }
.seo-issue.error   { background: var(--down-bg);  color: var(--down-text);  border-left: 2px solid var(--down-color); }
.seo-issue.warning { background: var(--warn-bg);  color: var(--warn-text);  border-left: 2px solid var(--warn-color); }
.seo-issue.ok      { background: var(--up-bg);    color: var(--up-text);    border-left: 2px solid var(--up-color); }

.seo-checks { display: flex; flex-direction: column; }
.seo-check-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.seo-check-row:last-child { border-bottom: none; }
.seo-check-name { color: var(--text3); }
.seo-check-val  { font-weight: 600; font-size: 0.8rem; color: var(--text); }
.seo-check-val.ok   { color: var(--up-color); }
.seo-check-val.bad  { color: var(--down-color); }
.seo-check-val.warn { color: var(--warn-color); }

/* Log */
.log-table { width: 100%; }
.log-row   { display: grid; grid-template-columns: 90px 1fr 90px 100px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; gap: 12px; }
.log-row:last-child { border-bottom: none; }
.log-row-head { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--border2); }
.log-badge    { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 100px; }
.log-badge.up   { background: var(--up-bg);   color: var(--up-text); }
.log-badge.down { background: var(--down-bg);  color: var(--down-text); }
.log-muted { color: var(--muted); }
.log-right { text-align: right; color: var(--muted); }

.no-data, .no-seo { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 0.875rem; }
.no-data h3, .no-seo h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin: 10px 0 6px; }

/* ===== BLOG ===== */
.blog-hero      { text-align: center; padding: 80px 24px 60px; position: relative; }
.blog-hero-tag  { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 16px; }
.blog-hero h1   { font-family: 'Syne', sans-serif; font-size: clamp(2rem,5vw,3.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; color: var(--text); }
.blog-hero p    { color: var(--muted); font-size: 1rem; max-width: 480px; margin: 0 auto; line-height: 1.7; }
.blog-container { max-width: 1160px; margin: 0 auto; padding: 0 24px 80px; }
.blog-grid      { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 24px; }

/* Blog card (legacy .blog-card) */
.blog-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform 0.3s, border-color 0.3s; text-decoration: none; color: inherit; display: block; }
.blog-card:hover { transform: translateY(-4px); border-color: var(--info-border); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-img-placeholder { width: 100%; height: 200px; background: var(--cover-placeholder); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.blog-card-body { padding: 22px; }
.blog-card-tag  { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px; }
.blog-card-title { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.35; color: var(--text); transition: color 0.2s; }
.blog-card:hover .blog-card-title { color: var(--accent); }
.blog-card-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* Article cards */
.article-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.article-card:hover { transform: translateY(-5px); border-color: var(--info-border); box-shadow: 0 20px 40px var(--shadow); }
.article-card-img { width: 100%; height: 210px; object-fit: cover; display: block; }
.article-card-placeholder { width: 100%; height: 210px; background: var(--cover-placeholder); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.article-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.article-tag  { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); background: var(--info-bg); padding: 3px 10px; border-radius: 100px; }
.article-date { font-size: 0.78rem; color: var(--muted); }
.article-card-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: var(--text); transition: color 0.2s; }
.article-card:hover .article-card-title { color: var(--accent); }
.article-card-excerpt { font-size: 0.875rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 20px; }
.article-read-more { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--accent); transition: gap 0.2s; }
.article-card:hover .article-read-more { gap: 10px; }

/* Article show */
.article-wrap   { max-width: 780px; margin: 0 auto; padding: 60px 24px 100px; }
.article-header { margin-bottom: 40px;}
.article-header-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.article-title  { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem,4vw,2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 20px; color: var(--text); }
.article-lead   { font-size: 1.1rem; color: var(--text3); line-height: 1.75; border-left: 3px solid var(--accent); padding-left: 20px; }
.article-cover  { width: 100%; height: 420px; object-fit: cover; border-radius: 16px; margin-bottom: 48px; display: block; border: 1px solid var(--border); }
.article-cover-placeholder { width: 100%; height: 280px; background: var(--cover-placeholder); border-radius: 16px; margin-bottom: 48px; display: flex; align-items: center; justify-content: center; font-size: 4rem; border: 1px solid var(--border); }

.article-content { color: var(--text2); font-size: 1rem; line-height: 1.85; }
.article-content h2 { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--text); margin: 48px 0 16px; letter-spacing: -0.02em; }
.article-content h3 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 32px 0 12px; }
.article-content p  { margin-bottom: 20px; }
.article-content a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--accent2); }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote { border-left: 3px solid var(--accent); padding: 16px 20px; margin: 28px 0; background: var(--blockquote-bg); border-radius: 0 8px 8px 0; color: var(--text3); font-style: italic; }
.article-content code { background: var(--code-bg); padding: 2px 7px; border-radius: 4px; font-size: 0.88em; font-family: 'JetBrains Mono', monospace; color: var(--code-text); }
.article-content pre { background: var(--pre-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; overflow-x: auto; margin: 24px 0; }
.article-content pre code { background: none; padding: 0; color: var(--text2); }
.article-content img { width: 100%; border-radius: 12px; margin: 24px 0; border: 1px solid var(--border); }
.article-content hr  { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.article-divider { height: 1px; background: var(--border); margin: 48px 0; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.article-nav-link { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s; }
.article-nav-link:hover { border-color: var(--info-border); transform: translateY(-2px); }
.article-nav-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.article-nav-title { font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.article-nav-link:last-child { text-align: right; }

.article-cta { background: var(--card-bg); border: 1px solid var(--info-border); border-radius: 20px; padding: 40px; text-align: center; margin-top: 64px; }
.article-cta h3 { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; color: var(--text); }
.article-cta p  { color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; }

/* ===== COMPETITORS ===== */
.comp-wrap   { max-width: 1160px; margin: 0 auto; padding: 48px 24px 100px; }
.comp-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.comp-header h1 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }

.comp-table { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.comp-table-head { display: grid; grid-template-columns: 1fr 120px 140px 100px 80px; padding: 13px 24px; background: rgba(128,128,128,0.04); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); gap: 16px; }
.comp-table-row  { display: grid; grid-template-columns: 1fr 120px 140px 100px 80px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--border); gap: 16px; transition: background 0.15s; }
.comp-table-row:hover { background: rgba(128,128,128,0.03); }
.comp-host     { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.comp-url-full { font-size: 0.75rem; color: var(--muted2); }

.changes-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.changes-badge.has-changes { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.changes-badge.no-changes  { background: rgba(100,116,139,0.08); color: var(--muted); border: 1px solid var(--border2); }

/* Competitor items */
.competitor-item { border: 1px solid var(--border); border-radius: 15px; padding: 20px; margin-bottom: 16px; background: var(--card-bg); }
.competitor-host { font-weight: 700; font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.competitor-url a { color: var(--accent); text-decoration: none; }
.competitor-url a:hover { text-decoration: underline; }
.competitor-meta { font-size: 0.78rem; color: var(--text3); margin-top: 4px; }
.competitor-actions { margin-top: 12px; }

/* Timeline */
.show-wrap   { max-width: 900px; margin: 0 auto; padding: 48px 24px 100px; }
.show-header { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; margin-bottom: 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.show-host   { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.show-url    { font-size: 0.8rem; color: var(--muted2); }
.show-url a  { color: var(--accent); text-decoration: none; }
.show-meta   { text-align: right; font-size: 0.82rem; color: var(--muted); }

.timeline { display: flex; flex-direction: column; gap: 12px; }
.timeline-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; display: flex; align-items: flex-start; gap: 16px; transition: border-color 0.2s; }
.timeline-item:hover { border-color: var(--warn-border); }
.timeline-dot  { width: 36px; height: 36px; background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.timeline-title { font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }
.timeline-date  { font-size: 0.78rem; color: var(--muted); }

/* ===== CREATE ===== */
.create-wrap { max-width: 600px; margin: 0 auto; padding: 60px 24px 100px; }

.create-card,
.competitor-list-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px var(--shadow);
    margin-bottom: 24px;
}

.create-card h1,
.competitor-list-card h1 { font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--text); }

.create-card > p,
.competitor-list-card > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 36px; line-height: 1.6; }

.url-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.url-chip { font-size: 0.75rem; background: rgba(128,128,128,0.06); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; color: var(--muted); cursor: pointer; transition: all 0.2s; font-family: monospace; }
.url-chip:hover { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); }

/* ===== AUTH ===== */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow);
}

.auth-card::before { content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 300px; height: 200px; background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%); pointer-events: none; }

.auth-logo      { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 32px; text-decoration: none; }
.auth-logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.auth-logo-text { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--text); }
.auth-logo-text span { color: var(--accent); }

.auth-title    { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; text-align: center; color: var(--text); }
.auth-subtitle { font-size: 0.875rem; color: var(--muted); text-align: center; margin-bottom: 32px; }
.auth-subtitle a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
.auth-subtitle a:hover { color: var(--accent2); }
.auth-divider  { height: 1px; background: var(--border); margin: 28px 0; }
.auth-status   { background: var(--up-bg); border: 1px solid var(--up-border); border-radius: 8px; padding: 10px 14px; color: var(--up-text); font-size: 0.82rem; margin-bottom: 20px; text-align: center; }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.remember-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.remember-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.forgot-link { font-size: 0.82rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.forgot-link:hover { color: var(--accent); }

.auth-terms { font-size: 0.75rem; color: var(--muted2); text-align: center; margin-top: 16px; line-height: 1.5; }
.auth-terms a { color: var(--muted); text-decoration: underline; }

.recaptcha-note { font-size: 0.72rem; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; }
.recaptcha-note a { color: var(--accent); }

/* ===== PROFILE ===== */
.profile-wrap   { max-width: 860px; margin: 0 auto; padding: 48px 24px 100px; }
.profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }

.profile-avatar { width: 64px; height: 64px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; flex-shrink: 0; }

.profile-info h1 { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--text); }
.profile-info p  { font-size: 0.875rem; color: var(--muted); }

.profile-plan-badge { margin-left: auto; background: var(--info-bg); border: 1px solid var(--info-border); border-radius: 10px; padding: 10px 18px; text-align: right; }
.profile-plan-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 2px; }
.profile-plan-name  { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; color: var(--accent); }

.profile-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px 32px; margin-bottom: 20px; }
.profile-card-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.profile-card-desc  { font-size: 0.82rem; color: var(--muted); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }

/* Toggle */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-of-type { border-bottom: none; }
.toggle-label { font-size: 0.875rem; color: var(--text2); }
.toggle-desc  { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: var(--toggle-off); border-radius: 100px; cursor: pointer; transition: background 0.2s; }
.toggle-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.toggle-switch input:checked + .toggle-track { background: var(--accent); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); }

/* Telegram steps */
.tg-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.tg-step  { display: flex; align-items: flex-start; gap: 12px; font-size: 0.875rem; color: var(--text3); }
.tg-step-num { width: 24px; height: 24px; background: var(--info-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.tg-step a { color: var(--accent); text-decoration: none; }
.tg-step a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-desktop { display: none !important; }
    .menu-toggle { display: flex; }
    .footer-nav  { gap: 24px; }
    .stats-row   { grid-template-columns: repeat(2,1fr); }
    .two-col     { grid-template-columns: 1fr; }
    .article-nav { grid-template-columns: 1fr; }
    .pricing-grid, .plans-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .sites-table-head { display: none; }
    .sites-table-row  { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
    .site-url-cell    { grid-column: 1; }
    .cell-actions     { grid-column: 2; grid-row: 1; }
    .status-badge     { grid-column: 1; }
    .cell-muted       { display: none; }

    .comp-table-head  { display: none; }
    .comp-table-row   { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }

    .form-grid        { grid-template-columns: 1fr; }
    .profile-header   { flex-direction: column; align-items: flex-start; }
    .profile-plan-badge { margin-left: 0; }
}

@media (max-width: 640px) {
    .footer-inner  { grid-template-columns: 1fr; gap: 24px; }
    .footer-nav    { flex-wrap: wrap; gap: 20px; }
    .btn-login, .logo-text, .article-lead     { display: none; }
    .hero-stats    { gap: 20px; }
    .pricing-grid, .plans-grid { grid-template-columns: 1fr; }
    .plan-card.featured { transform: none; }
    .plan-card.featured:hover { transform: translateY(-4px); }
    .stats-row     { grid-template-columns: repeat(2,1fr); }
    .create-card, .competitor-list-card, .auth-card { padding: 28px 20px; }
    .cta-banner    { margin: 0 0 60px; padding: 40px 20px; }
    .article-wrap  { padding: 24px 16px 80px; }
}