﻿/* ═══ HELIOS · ZEF MODE ═══ */

.zef-body {
    --zef-magenta: #ff00aa;
    --zef-cyan: #00fff0;
    --zef-lime: #adff00;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

.zef-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: repeating-linear-gradient(0deg, #fff 0, #fff 1px, transparent 1px, transparent 3px);
    z-index: 1;
}

.zef-topbar {
    background: #050505;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
    z-index: 10;
}

.zef-logo-text {
    background: linear-gradient(90deg, var(--zef-magenta), var(--zef-cyan), var(--zef-magenta));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: zef-flow 4s linear infinite;
    letter-spacing: 6px;
    font-weight: 900;
    font-size: 24px;
}

.zef-logo-icon {
    animation: zef-pulse 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--zef-magenta));
}

.zef-logo-sub {
    color: var(--zef-cyan);
    font-family: monospace;
    letter-spacing: 2px;
    font-size: 10px;
    opacity: 0.7;
    text-transform: uppercase;
}

.zef-user {
    color: var(--zef-lime);
    font-family: monospace;
    font-size: 13px;
    text-shadow: 0 0 6px var(--zef-lime);
}

@keyframes zef-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes zef-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px var(--zef-magenta)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 16px var(--zef-cyan)); }
}

.zef-container { position: relative; z-index: 5; }

.zef-hero { text-align: center; margin: 60px 0 40px; }

.zef-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 0.95;
    margin-bottom: 24px;
}

.zef-title-line {
    font-family: "Arial Black", Impact, sans-serif;
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 900;
    letter-spacing: 8px;
    color: #ffffff;
    text-transform: uppercase;
}

.zef-title-accent {
    background: linear-gradient(90deg, var(--zef-magenta), var(--zef-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: zef-glow 3s ease-in-out infinite alternate;
}

@keyframes zef-glow {
    0% { filter: drop-shadow(0 0 10px rgba(255, 0, 170, 0.6)); }
    100% { filter: drop-shadow(0 0 30px rgba(0, 255, 240, 0.8)); }
}

.zef-subtitle {
    color: var(--zef-cyan);
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.85;
}

.zef-motto {
    color: var(--zef-magenta);
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
}

.zef-tabs { border-bottom: 1px solid #1a1a1a; margin-bottom: 32px; }

.zef-tabs .tab {
    color: #666;
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
    transition: all 0.2s;
}

.zef-tabs .tab:hover { color: var(--zef-cyan); text-shadow: 0 0 8px var(--zef-cyan); }

.zef-tabs .tab-active {
    color: var(--zef-magenta);
    border-bottom-color: var(--zef-magenta);
    text-shadow: 0 0 8px var(--zef-magenta);
}

.zef-grid { gap: 20px; margin-bottom: 48px; }

.zef-card {
    background: #050505;
    border: 1px solid #1a1a1a;
    border-radius: 0;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.25s;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.zef-card:hover {
    border-color: var(--zef-magenta);
    box-shadow: 0 0 24px rgba(255, 0, 170, 0.4), inset 0 0 24px rgba(0, 255, 240, 0.06);
    transform: translateY(-2px);
}

.zef-card .card-label {
    color: var(--zef-cyan);
    font-family: monospace;
    letter-spacing: 3px;
    font-size: 11px;
}

.zef-value {
    font-family: "Arial Black", Impact, sans-serif;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    line-height: 1;
    margin: 8px 0 10px;
}

.zef-value-ok {
    color: var(--zef-lime);
    text-shadow: 0 0 16px var(--zef-lime);
    animation: zef-blink 2s ease-in-out infinite;
}

@keyframes zef-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.zef-card .card-sub { color: #666; font-family: monospace; font-size: 11px; letter-spacing: 1px; }

.zef-marquee {
    overflow: hidden;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding: 14px 0;
    margin-bottom: 48px;
    background: #030303;
}

.zef-marquee-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: zef-marquee 30s linear infinite;
    color: var(--zef-magenta);
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.zef-marquee-track span { flex-shrink: 0; }

@keyframes zef-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.zef-info { background: #050505; border: 1px solid #1a1a1a; border-radius: 0; padding: 28px; }

.zef-info-title {
    color: var(--zef-cyan);
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.zef-info p { color: #aaa; font-family: monospace; font-size: 13px; line-height: 1.7; }

.zef-version {
    border-top: 1px solid #1a1a1a !important;
    padding-top: 12px !important;
    color: #666 !important;
    margin-top: 12px !important;
}

.zef-version strong { color: var(--zef-magenta); }

.zef-footer {
    color: #333;
    font-family: monospace;
    letter-spacing: 4px;
    border-top: 1px solid #1a1a1a;
    font-size: 11px;
}

@media (max-width: 768px) {
    .zef-title-line { letter-spacing: 4px; }
    .zef-logo-sub { display: none; }
    .zef-marquee-track { gap: 24px; }
}

/* ═══ Перекраска всех страниц ═══ */

.zef-body {
    --bg: #000000;
    --bg-card: #050505;
    --bg-hover: #0a0a0a;
    --border: #1a1a1a;
    --text: #ffffff;
    --text-dim: #666666;
    --accent: #ff00aa;
    --accent-dim: #aa0070;
    --green: #adff00;
    --yellow: #ffaa00;
    --red: #ff0055;
}

/* Tabs на всех страницах */

.zef-body .tabs {
    border-bottom: 1px solid #1a1a1a;
}

.zef-body .tab {
    color: #666;
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
}

.zef-body .tab:hover {
    color: var(--zef-cyan);
    text-shadow: 0 0 8px var(--zef-cyan);
}

.zef-body .tab-active {
    color: var(--zef-magenta);
    border-bottom-color: var(--zef-magenta);
    text-shadow: 0 0 8px var(--zef-magenta);
}

/* Заголовки секций */

.zef-body .hero h1 {
    font-family: "Arial Black", Impact, sans-serif;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--zef-cyan);
    text-shadow: 0 0 24px rgba(0, 255, 240, 0.5);
}

.zef-body .subtitle {
    color: var(--zef-magenta);
    font-family: monospace;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Карточки */

.zef-body .bot-card {
    background: #050505;
    border: 1px solid #1a1a1a;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    transition: all 0.25s;
}

.zef-body .bot-card:hover {
    border-color: var(--zef-magenta);
    box-shadow: 0 0 24px rgba(255, 0, 170, 0.3);
}

.zef-body .bot-header {
    border-bottom: 1px solid #1a1a1a;
}

.zef-body .bot-header h2 {
    color: var(--zef-cyan);
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.zef-body .bot-meta {
    color: #555;
    font-family: monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
}

/* Заголовки подсекций */

.zef-body .bot-section h3 {
    color: var(--zef-cyan);
    font-family: monospace;
    letter-spacing: 2px;
}

/* Команды */

.zef-body .command-item {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 0;
}

.zef-body .command-item code {
    color: var(--zef-magenta);
    font-family: monospace;
    text-shadow: 0 0 8px rgba(255, 0, 170, 0.4);
}

.zef-body .command-desc {
    color: #555;
}

/* Теги cog'ов */

.zef-body .cog-tag {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    color: var(--zef-cyan);
    border-radius: 0;
    font-family: monospace;
    letter-spacing: 1px;
    font-size: 11px;
}

/* Stat-карточки */

.zef-body .stat-item {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 0;
}

.zef-body .stat-label {
    color: var(--zef-cyan);
    font-family: monospace;
    letter-spacing: 2px;
}

.zef-body .stat-value {
    color: #ffffff;
    font-family: "Arial Black", Impact, sans-serif;
    font-weight: 900;
}

.zef-body .stat-item-warn {
    border-left: 3px solid var(--zef-magenta);
}

/* Таблицы */

.zef-body .data-table thead {
    background: #0a0a0a;
}

.zef-body .data-table th {
    color: var(--zef-cyan);
    font-family: monospace;
    letter-spacing: 2px;
}

.zef-body .data-table td {
    color: #cccccc;
    border-bottom: 1px solid #1a1a1a;
}

.zef-body .data-table tbody tr:hover {
    background: #0a0a0a;
}

.zef-body .data-table code {
    color: var(--zef-magenta);
}

/* Кнопки сервисов */

.zef-body .service-btn {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 0;
    color: #666;
    font-family: monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
}

.zef-body .service-btn:hover {
    color: var(--zef-cyan);
    border-color: var(--zef-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 240, 0.3);
}

.zef-body .service-btn-active {
    background: var(--zef-magenta);
    color: #000;
    border-color: var(--zef-magenta);
    box-shadow: 0 0 16px rgba(255, 0, 170, 0.5);
}

/* Логи */

.zef-body .logs-block {
    background: #000000;
    border: 1px solid #00ff00;
    border-radius: 0;
    color: #00ff00;
    font-family: "SF Mono", "Consolas", monospace;
    text-shadow: 0 0 4px rgba(0, 255, 0, 0.4);
}

.zef-body .logs-meta {
    color: #555;
    font-family: monospace;
}

.zef-body .logs-hint {
    color: var(--zef-cyan);
}

/* Error block */

.zef-body .error-block {
    background: rgba(255, 0, 85, 0.08);
    border: 1px solid #ff0055;
    border-radius: 0;
    color: #ff0055;
}

/* Footer */

.zef-body .footer {
    color: #333;
    border-top: 1px solid #1a1a1a;
    letter-spacing: 4px;
    font-family: monospace;
}

/* Кнопка рестарта */

.zef-body button.service-btn {
    background: #0a0a0a;
    border: 1px solid var(--zef-cyan);
    color: var(--zef-cyan);
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.zef-body button.service-btn:hover {
    background: var(--zef-cyan);
    color: #000;
    box-shadow: 0 0 24px rgba(0, 255, 240, 0.6);
}

.zef-body button.service-btn:active {
    transform: scale(0.97);
}

/* htmx-индикатор загрузки */

.zef-body .htmx-request {
    opacity: 0.6;
    transition: opacity 0.2s;
}
/* ═══ Кнопка выхода ═══ */

.zef-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 0, 170, 0.1);
    border: 2px solid var(--zef-magenta);
    color: var(--zef-magenta);
    text-decoration: none;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    text-shadow: 0 0 8px rgba(255, 0, 170, 0.5);
}

.logout-btn::before {
    content: "✕";
    font-size: 14px;
    font-weight: 900;
}

.logout-btn:hover {
    background: var(--zef-magenta);
    color: #000;
    text-shadow: none;
    box-shadow: 0 0 24px rgba(255, 0, 170, 0.8);
}

/* ═══ Плашка пользователя ═══ */

.zef-user > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0, 255, 240, 0.08);
    border: 2px solid var(--zef-cyan);
    color: var(--zef-cyan);
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    text-shadow: 0 0 8px rgba(0, 255, 240, 0.5);
}

/* ═══ Страница логина ═══ */

.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #050505;
    border: 2px solid var(--zef-magenta);
    padding: 48px 40px;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    box-shadow: 0 0 40px rgba(255, 0, 170, 0.3);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    animation: zef-pulse 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 16px var(--zef-magenta));
}

.login-title {
    display: block;
    font-family: "Arial Black", Impact, sans-serif;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(90deg, var(--zef-magenta), var(--zef-cyan), var(--zef-magenta));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: zef-flow 4s linear infinite;
    margin-bottom: 8px;
}

.login-sub {
    display: block;
    color: var(--zef-cyan);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 3px;
    opacity: 0.7;
}

.login-error {
    background: rgba(255, 0, 85, 0.15);
    border: 1px solid #ff0055;
    color: #ff0055;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-label {
    color: var(--zef-cyan);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: -6px;
}

.login-input {
    background: #000;
    border: 1px solid #1a1a1a;
    color: #fff;
    padding: 12px 14px;
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.2s;
}

.login-input:focus {
    border-color: var(--zef-cyan);
    box-shadow: 0 0 16px rgba(0, 255, 240, 0.3);
}

.login-btn {
    margin-top: 12px;
    padding: 14px;
    background: rgba(255, 0, 170, 0.1);
    border: 2px solid var(--zef-magenta);
    color: var(--zef-magenta);
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.login-btn:hover {
    background: var(--zef-magenta);
    color: #000;
    box-shadow: 0 0 24px rgba(255, 0, 170, 0.8);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    color: #333;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 3px;
}


/* ═══ Двухстрочная плашка пользователя ═══ */

.user-info {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(0, 255, 240, 0.05);
    border: 2px solid var(--zef-cyan);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.user-nick {
    display: block;
    color: var(--zef-cyan);
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 255, 240, 0.5);
}

.user-position {
    display: block;
    color: var(--zef-magenta);
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 0, 170, 0.3);
    text-shadow: 0 0 8px rgba(255, 0, 170, 0.5);
}
