/* ==========================================================================
   MONASUS ULTRA-COMPACT PREMIUM DESIGN SYSTEM — TOTAL CORE (PART 1 OF 2)
   ========================================================================== */

:root {
    --emerald: #08332f;
    --gold: #c5a043;
    --cream: #faf8f2;
    --cyber-green: #238636;
    --alert-red: #7a1a1a;
    --text-dark: #222222;
    --text-muted: #63807d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

header, section, footer, nav, main, article {
    display: block;
}

body {
    font-family: "Georgia", "Times New Roman", serif;
    background-color: var(--cream);
    color: var(--emerald);
    line-height: 1.6;
    padding: 30px 20px 60px 20px;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border: 1px solid var(--gold);
    box-shadow: 0 12px 40px rgba(8, 51, 47, 0.06);
}

/* ==========================================================================
   УНИВЕРСАЛЬНЫЕ СЛУЖЕБНЫЕ КЛАССЫ (UTILITIES)
   ========================================================================== */
.text-center { text-align: center !important; }
.text-justify { text-align: justify !important; }
.text-gray { color: var(--text-muted) !important; }
.text-green { color: var(--cyber-green) !important; }
.text-red { color: var(--alert-red) !important; }

/* ==========================================================================
   ВЕРХНЯЯ ПАНЕЛЬ ЛОКАЛИЗАЦИИ И БАННЕР ШАПКИ
   ========================================================================== */
.lang-panel {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 25px;
    font-family: "Courier New", monospace;
    font-size: 13px;
}

.lang-link {
    color: var(--emerald);
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid var(--gold);
    background-color: var(--cream);
    transition: all 0.3s ease;
    font-weight: bold;
}

.lang-link:hover, .lang-active {
    background-color: var(--gold);
    color: var(--emerald);
}

.lang-active {
    background-color: var(--emerald);
    color: var(--gold) !important;
    border-color: var(--emerald);
    pointer-events: none;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.header-photo-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    margin: 0 auto 35px auto;
    border: 1px solid var(--gold);
}

.header-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-emblem {
    position: absolute;
    top: 15px;
    right: 20px;
    height: 210px;
    width: 210px;
    object-fit: contain;
    background-color: #ffffff;
    border: 1px solid var(--gold);
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

header h1 {
    font-size: 3.4rem;
    font-weight: normal;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 12px;
}

.subheader {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    padding: 12px 0;
    font-family: "Courier New", monospace;
    font-weight: bold;
}

/* ==========================================================================
   ДВУХКОНТУРНАЯ ИНСТИТУЦИОНАЛЬНАЯ НАВИГАЦИЯ
   ========================================================================== */
.tabs-container {
    display: flex;
    width: 100%;
    border: 1px solid var(--gold);
    background-color: var(--emerald);
    margin-bottom: 40px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 18px 5px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    font-weight: bold;
    color: var(--cream);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tab-public { border-right: 1px solid var(--gold); }
.tab-secure { border-right: 1px solid #114c47; background-color: rgba(8, 51, 47, 0.9); }
.tab-item:last-child { border-right: none; }

.tab-public:hover { background-color: var(--gold); color: var(--emerald); }
.tab-secure:hover { background-color: #114c47; box-shadow: inset 0 0 10px rgba(195, 160, 67, 0.2); }

.tab-active {
    background-color: var(--cream) !important;
    color: var(--emerald) !important;
    border-bottom: 4px solid var(--gold);
    pointer-events: none;
}

.net-indicator {
    font-size: 10px;
    font-family: "Courier New", monospace;
    letter-spacing: 0px;
    font-weight: normal;
    opacity: 0.7;
}

.tab-secure.secure-online {
    border-color: var(--cyber-green) !important;
    box-shadow: inset 0 0 8px rgba(35, 134, 54, 0.2);
}

.tab-secure.secure-online:hover {
    background-color: var(--cyber-green);
    color: #ffffff;
}
/* ==========================================================================
   MONASUS ULTRA-COMPACT PREMIUM DESIGN SYSTEM — COMPOSITE LAYER (PART 2 OF 2)
   ========================================================================== */

/* --- АБСТРАКТНЫЙ B2B КОМПОНЕНТ: УНИВЕРСАЛЬНАЯ КАРТОЧКА --- */
.quant-card {
    background-color: #ffffff;
    border: 1px solid var(--gold);
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(8, 51, 47, 0.02);
}

.card-centered { max-width: 500px; width: 100%; margin: 40px auto; }
.quant-card-meta { font-family: "Courier New", monospace; font-size: 12px; color: var(--gold); text-transform: uppercase; font-weight: bold; margin-bottom: 12px; border-bottom: 1px solid var(--cream); padding-bottom: 8px; }
.quant-card-title { font-family: "Georgia", serif; font-size: 1.8rem; color: var(--emerald); margin-bottom: 15px; font-weight: normal; }
.quant-card-content { font-family: "Georgia", serif; font-size: 1.1rem; color: var(--text-dark); text-align: justify; line-height: 1.7; white-space: pre-line; }

/* Автоматическое горизонтальное масштабирование панорамных графиков */
.media-frame { width: 100%; margin-bottom: 22px; border: 1px solid var(--gold); overflow: hidden; background-color: var(--cream); }
.media-frame-img { width: 100%; height: auto; display: block; object-fit: contain; }

/* --- МЕТАДАННЫЕ И БЛОКИ ПРИВАТНОСТИ --- */
.meta-container { font-family: "Courier New", monospace; background: var(--cream); padding: 18px; margin-bottom: 35px; font-size: 13px; border: 1px solid #e5dfd3; border-left: 4px solid var(--gold); }
.status-badge { color: var(--gold); font-weight: bold; }
.intro-text { text-align: justify; font-size: 1.15rem; margin-bottom: 40px; color: var(--emerald); text-indent: 40px; }
.secure-notice-box { background-color: #ffffff; border: 1px solid var(--gold); border-left: 4px solid var(--emerald); padding: 22px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(8, 51, 47, 0.02); }
.secure-notice-title { color: var(--emerald); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; font-weight: bold; display: block; margin-bottom: 10px; }
.secure-notice-text { font-size: 14px; color: #444444; text-align: justify; line-height: 1.6; }

/* --- ФОРМЫ РЕГИСТРАЦИИ И УПРАВЛЕНИЯ РЕЕСТРОМ --- */
.subscribe-box { background: var(--cream); border: 1px solid var(--gold); padding: 45px; text-align: center; margin-top: 40px; box-shadow: 0 6px 20px rgba(8, 51, 47, 0.02); }
.subscribe-box h3 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; color: var(--emerald); font-weight: normal; }
.subscribe-box p { color: #555555; font-size: 1.05rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

.form-table { max-width: 600px; margin: 0 auto; width: 100%; border-collapse: collapse; }
.form-table td { padding: 0 0 18px 0; vertical-align: top; text-align: left; }
.form-table input[type="text"] { width: 100%; padding: 14px; border: 1px solid #8fa8a4; background-color: #ffffff; font-size: 1rem; font-family: "Georgia", serif; color: var(--emerald); transition: all 0.3s ease; }
.form-table input[type="text"]:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 8px rgba(197, 160, 67, 0.15); }
.checkbox-container { font-size: 14px; cursor: pointer; color: var(--emerald); display: inline-block; user-select: none; }
.checkbox-container input { margin-right: 10px; vertical-align: middle; accent-color: var(--emerald); }
.button-group { display: flex; gap: 12px; width: 100%; margin-top: 5px; }
.form-table button { flex: 1; padding: 15px 25px; background: var(--emerald); color: var(--cream); border: 1px solid var(--gold); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; font-family: "Georgia", serif; font-weight: bold; transition: all 0.3s ease; }
.form-table button:hover { background: var(--gold); color: var(--emerald); }
.btn-unsubscribe { background: #ffffff !important; color: var(--alert-red) !important; border-color: var(--alert-red) !important; }
.btn-unsubscribe:hover { background: var(--alert-red) !important; color: #ffffff !important; }

/* --- УНИВЕРСАЛЬНЫЙ КОМПОНЕНТ: СТРУКТУРИРОВАННАЯ ТАБЛИЦА --- */
.terminal-header { font-family: "Courier New", monospace; font-size: 13px; color: var(--gold); margin-bottom: 12px; text-transform: uppercase; font-weight: bold; letter-spacing: 0.5px; }
.quant-table { width: 100%; border-collapse: collapse; font-family: "Courier New", monospace; font-size: 13px; border: 1px solid var(--gold); margin-bottom: 45px; box-shadow: 0 4px 15px rgba(8, 51, 47, 0.03); }
.quant-table th { background-color: var(--emerald); color: var(--cream); padding: 14px 10px; border-bottom: 2px solid var(--gold); text-transform: uppercase; font-weight: bold; cursor: pointer; border-right: 1px solid #114c47; }
.quant-table th:last-child { border-right: none; }
.quant-table th:hover { background-color: var(--gold); color: var(--emerald); }
.quant-table td { padding: 12px 10px; border-bottom: 1px solid #e5dfd3; background-color: #ffffff; border-right: 1px solid #e5dfd3; color: var(--emerald); }
.quant-table td:last-child { border-right: none; }

/* ИСПРАВЛЕНО: Зебра применяется только к строкам без явных inline-стилей фона */
.quant-table tr:nth-child(even):not([style]) td { background-color: var(--cream); }
.quant-table tr:hover:not([style]) td { background-color: #f2ede0; }

/* Пропорции ячеек новостного контура */
.quant-table th.th-news-time, .quant-table td:nth-child(1) { width: 140px; text-align: center; color: var(--text-muted); }
.quant-table th.th-news-tickers, .quant-table td:nth-child(2) { width: 160px; text-align: left; }
.quant-table th.th-news-impact, .quant-table td:nth-child(3) { width: 110px; text-align: center; }
.quant-table th.th-news-content, .quant-table td:nth-child(4) { text-align: left; white-space: normal; }

/* --- СВЕТОФОРНАЯ МАТРИЦА СИГНАЛОВ И ЗНАЧЕНИЙ (ТЕРМИНАЛ И НОВОСТИ) --- */
/* Сигналы */
.sig-gem { color: #8a2be2 !important; font-weight: bold; background-color: rgba(138, 43, 226, 0.08) !important; text-shadow: 0 0 1px rgba(138, 43, 226, 0.1); }
.sig-buy { color: var(--cyber-green); font-weight: bold; }
.sig-hold { color: #b8860b; font-weight: bold; }
.sig-sht { color: #ff3b30; font-weight: bold; }
.sig-neutral { color: var(--emerald); }

/* Мягкая светофорная заливка ячеек-мультипликаторов */
td.val-pos { background-color: rgba(35, 134, 54, 0.08) !important; color: var(--cyber-green) !important; font-weight: bold; }
td.val-neg { background-color: rgba(255, 59, 48, 0.08) !important; color: #ff3b30 !important; font-weight: bold; }

/* Предотвращение перекрытия при Hover эффектах */
tr:hover td.val-pos { background-color: rgba(35, 134, 54, 0.14) !important; }
tr:hover td.val-neg { background-color: rgba(255, 59, 48, 0.14) !important; }

/* --- СНОСКИ ОТВЕТСТВЕННОСТИ И ФУТЕРЫ --- */
.legal-disclaimer { font-size: 0.85rem; color: var(--text-muted); text-align: justify; border-top: 1px dotted var(--gold); padding-top: 25px; font-style: italic; line-height: 1.5; }
footer { text-align: center; margin-top: 50px; font-family: "Courier New", monospace; font-size: 12px; color: var(--gold); border-top: 1px solid var(--cream); padding-top: 15px; }

/* --- КВАНТОВАЯ МАТРИЦА СИГНАЛОВ С ПОЛНОЙ МЯГКОЙ ЗАЛИВКОЙ ЯЧЕЕК --- */
.sig-gem { 
    color: #8a2be2 !important; 
    font-weight: bold; 
    background-color: rgba(138, 43, 226, 0.08) !important; 
    text-shadow: 0 0 1px rgba(138, 43, 226, 0.1);
    border-right: 1px solid #e5dfd3 !important;
    border-left: 1px solid #e5dfd3 !important;
}

.sig-buy { 
    color: var(--cyber-green) !important; 
    font-weight: bold; 
    background-color: rgba(35, 134, 54, 0.06) !important;
    border-right: 1px solid #e5dfd3 !important;
    border-left: 1px solid #e5dfd3 !important;
}

.sig-hold { 
    color: #b8860b !important; 
    font-weight: bold; 
    background-color: rgba(184, 134, 11, 0.06) !important;
    border-right: 1px solid #e5dfd3 !important;
    border-left: 1px solid #e5dfd3 !important;
}

.sig-sht { 
    color: #ff3b30 !important; 
    font-weight: bold; 
    background-color: rgba(255, 59, 48, 0.06) !important;
    border-right: 1px solid #e5dfd3 !important;
    border-left: 1px solid #e5dfd3 !important;
}

.sig-neutral { color: var(--emerald); }

/* Мягкая заливка ячеек мультипликаторов */
td.val-pos { background-color: rgba(35, 134, 54, 0.08) !important; color: var(--cyber-green) !important; font-weight: bold; }
td.val-neg { background-color: rgba(255, 59, 48, 0.08) !important; color: #ff3b30 !important; font-weight: bold; }

tr:hover td.val-pos { background-color: rgba(35, 134, 54, 0.14) !important; }
tr:hover td.val-neg { background-color: rgba(255, 59, 48, 0.14) !important; }
