/* 
    АКASHI Data Center Manager - Stylesheet
    Разделы:
    1. Переменные и сброс
    2. Базовая сетка консоли
    3. Панели и скролл
    4. Шапка (Статистика и Локализация)
    5. Центральный дисплей (Нагрев и Статус)
    6. Кнопки управления (Футер)
    7. Входящие контракты (Левая панель)
    8. Активные контракты (Правая панель)
	9. Модальные окна
*/

/* --- 1. ПЕРЕМЕННЫЕ И СБРОС --- */
:root {
    --cyan: #70f3ff;
    --green: #22c55e;
    --red: #ef4444;
    --purple: #a855f7;
    --amber: #fbbf24;
    --bg: #060e1c;
    --panel-border: rgba(112, 243, 255, 0.15);
    --card-bg: #0f172a;
	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;
	--fw-bold: 700;
}

body {
    margin: 0;
    background: #020b18;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    user-select: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* --- 2. БАЗОВАЯ СЕТКА КОНСОЛИ --- */
#console {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    grid-template-rows: 100px 1fr;
    gap: 10px;
    padding: 10px;
    height: 100vh;
    box-sizing: border-box;
}

/* --- 3. ПАНЕЛИ И СКРОЛЛ --- */
.panel {
    background: var(--bg);
    border: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.scroll-area::-webkit-scrollbar { width: 4px; }
.scroll-area::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 10px; }

/* --- 4. ШАПКА (СТАТИСТИКА И ЛОКАЛИЗАЦИЯ) --- */
.header {
    grid-column: 1 / 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 15px;
    gap: 20px;
}

.stat-grid {
    display: flex;
    flex: 1;
    gap: 8px;
}

.stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat label {
    font-size: 9px;
    color: var(--cyan);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat value {
    font-size: 16px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
}

.lang-switch { display: flex; gap: 12px; margin-bottom: 4px; }
.lang-opt {
    font-size: 0.65rem;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    opacity: 0.6;
}
.lang-opt.active { opacity: 1; color: var(--cyan); text-shadow: 0 0 8px rgba(112, 243, 255, 0.6); }

.negative-balance {
    color: var(--red) !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

#val-time {
    display: inline-block;
    /* Устанавливаем фиксированную ширину, чтобы кнопка не прыгала */
    min-width: 70px; 
    text-align: left;
    /* Возвращаем основной шрифт интерфейса */
    font-family: inherit; 
    font-size: 16px;
    font-weight: bold;
}

.time-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

#btn-info {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.8);
    border-radius: 6px;

    font-size: 14px;
    font-weight: 900;
    line-height: 1;

    cursor: pointer;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);

    transition: all 0.2s ease;
}

#btn-info:hover {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.7);
}

#btn-info:active {
    transform: scale(0.9);
}

/* --- 5. ЦЕНТРАЛЬНЫЙ ДИСПЛЕЙ (НАГРЕВ И СТАТУС) --- */
.main-display {
    position: relative;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--panel-border);
}

.heat-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: #111;
}

#heat-bar {
    height: 100%;
    background: var(--green);
    transition: width 0.3s ease-in-out, background-color 0.5s ease;
}

.temp-display {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 48px;
    font-weight: bold;
    font-family: monospace;
}

#status-text {
    font-size: 64px;
    font-weight: 900;
    color: var(--green);
    text-transform: uppercase;
    margin-bottom: 100px;
}

/* --- 6. КНОПКИ УПРАВЛЕНИЯ (ФУТЕР) --- */
.btn-cool {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    height: 75px;
    background: var(--cyan);
    color: #020b18;
    font-size: 1.2rem;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.2s;
}

.btn-cool:hover {
    background: #a5faff;
    box-shadow: 0 0 25px rgba(112, 243, 255, 0.4);
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
}

.action-btn { 
    height: 52px; 
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

#buy-racks-btn { background: var(--amber); color: #000; }
#div-btn { background: var(--purple); color: #fff; }

#buy-chiller-btn {
    background: var(--cyan);
    color: #020b18;
}
#buy-chiller-btn:hover {
    background: #a5faff;
    box-shadow: 0 0 15px rgba(112, 243, 255, 0.35);
}

/* --- 7. ВХОДЯЩИЕ КОНТРАКТЫ (ЛЕВАЯ ПАНЕЛЬ) --- */
.card {
    background: var(--card-bg);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 10px;
    position: relative;
    border-left: 5px solid #64748b;
}

.card.border-high { border-left-color: var(--green); }
.card.border-mid { border-left-color: var(--cyan); }
.card.border-low { border-left-color: var(--red); }

.tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 10px;
}

.tag-local { background: rgba(112, 243, 255, 0.1); color: var(--cyan); border: 1px solid var(--cyan); }
.tag-hyper { background: rgba(168, 85, 247, 0.1); color: var(--purple); border: 1px solid var(--purple); }

.card-btn {
    width: 100%;
    background: var(--green);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 30px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
}

.client-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.contract-type-badge {
    padding: 4px 10px;
    border-radius: 6px;

    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;

    display: inline-block;

    margin-bottom: 10px;

    line-height: 1.2;
}


/* 12 месяцев */
.contract-type-badge.contract-1y {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.35);
}

/* 24 месяца */
.contract-type-badge.contract-2y {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.35);
}

/* FLEX */
.contract-type-badge.contract-flex {
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(196, 181, 253, 0.35);
}

/* --- 8. АКТИВНЫЕ КОНТРАКТЫ (ПРАВАЯ ПАНЕЛЬ) --- */
.section-title {
    color: var(--cyan);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin: 15px 10px 10px 15px;
    text-shadow: 0 0 10px rgba(112, 243, 255, 0.3);
}

.active-client-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: rgba(15, 23, 42, 0.6);
    margin: 0 10px 8px 10px;
    padding: 12px 15px;
    border-radius: 4px 8px 8px 4px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--green);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.active-client-item:hover { background: rgba(30, 41, 59, 0.8); }

.active-client-item.warning {
    border-left-color: var(--amber);
    background: rgba(251, 191, 36, 0.05);
}

.expire-badge {
    display: inline-block;
    border: 1px solid var(--amber);
    color: var(--amber);
    background: rgba(251, 191, 36, 0.1);
    font-size: 9px;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.expire-badge.flex {
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(196, 181, 253, 0.35);
}

.client-info { display: flex; flex-direction: column; gap: 2px; }
.client-name { font-weight: 800; font-size: 1rem; color: #fff; }
.client-details { font-size: 0.8rem; color: #94a3b8; }

.client-controls { display: flex; align-items: center; gap: 8px; }

.btn-renew {
    background: var(--amber);
    border: none;
    color: #ffffff;
    cursor: pointer;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s, background 0.2s;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.btn-renew:hover { background: #f59e0b; transform: scale(1.1); }
.btn-renew:active { transform: scale(0.95); }

.btn-terminate {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border: 1px solid var(--red);
    cursor: pointer;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.2s;
}

.btn-terminate:hover { background: var(--red); color: #fff; }

.time-left-display {
    font-size: 0.8rem;
    color: #94a3b8;
    font-family: monospace;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 15px 10px 10px 15px;
}

.section-title-row .section-title {
    margin: 0;
}

.mini-info-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.8);
    border-radius: 6px;

    font-size: 13px;
    font-weight: var(--fw-bold);
    line-height: 1;

    cursor: pointer;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
    transition: 0.2s;
}

.mini-info-btn:hover {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.7);
}

.mini-info-btn:active {
    transform: scale(0.92);
}

.mini-market-btn {
    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(168, 85, 247, 0.08);
    color: var(--purple);
    border: 1px solid rgba(168, 85, 247, 0.8);
    border-radius: 8px;

    cursor: pointer;
    transition: 0.2s;
}

.mini-market-btn svg {
    width: 16px;
    height: 16px;
}

.mini-market-btn:hover {
    background: var(--purple);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
}

.mini-clients-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(112, 243, 255, 0.08);
    color: var(--cyan);
    border: 1px solid rgba(112, 243, 255, 0.8);
    border-radius: 8px;

    cursor: pointer;
    transition: 0.2s;
}

.mini-clients-btn svg {
    width: 17px;
    height: 17px;
}

.mini-clients-btn:hover {
    background: var(--cyan);
    color: #020b18;
    box-shadow: 0 0 14px rgba(112, 243, 255, 0.6);
}

.mini-clients-btn:active {
    transform: scale(0.92);
}

/* --- 9. МОДАЛЬНАЯ СИСТЕМА --- */

/* overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(2, 11, 24, 0.92);
    backdrop-filter: blur(5px);
    z-index: 9999;
    padding: 22px;
    box-sizing: border-box;
}

/* базовое окно (дефолт = INFO/cyan) */
.modal-window {
    width: 100%;
    height: 100%;
    background: rgba(6, 14, 28, 0.96);
    border: 1px solid var(--cyan);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 32px rgba(112, 243, 255, 0.25),
        inset 0 0 24px rgba(255, 255, 255, 0.03);
}

/* верхняя панель */
.modal-titlebar {
    height: 54px;
    background: linear-gradient(90deg, #0ea5e9, #0369a1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 22px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* иконка */
.modal-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #fff;
    color: #0ea5e9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

/* заголовок */
.modal-title {
    font-size: 15px;
    font-weight: var(--fw-bold); /* 700 */
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fff;
}

/* языки */
.modal-lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
}

.modal-lang {
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    border-radius: 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.4px;

    color: rgba(255,255,255,0.72);
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
}

.modal-lang:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.modal-lang.active {
    background: rgba(2, 11, 24, 0.72);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.25);
    cursor: default;
    pointer-events: none;
}

/* кнопка закрытия */
.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 22px;
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: 0.2s;
    flex: 0 0 auto;
}

.modal-close:hover {
    background: #fff;
    color: #0ea5e9;
}

/* контент */
.modal-content {
    flex: 1;
    padding: 42px 48px;
    overflow-y: auto;
}

#modal-body p {
    font-size: 20px;
    line-height: 1.65;
    color: #e5e7eb;
    width: 100%;
    max-width: none;
    margin: 0;
}

/* футер */
.modal-footer {
    padding: 20px 32px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid rgba(112, 243, 255, 0.25);
    background: rgba(2, 11, 24, 0.45);
}

/* кнопки */
.modal-btn {
    min-width: 130px;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
     font-weight: var(--fw-semibold);
    font-size: 15px;
    transition: 0.2s;
}

.modal-btn-primary {
    background: #0ea5e9;
    color: #fff;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.45);
}

.modal-btn-primary:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

/* --- ТЕМЫ --- */

/* PROBLEM (красный) */
.modal-problem {
    border-color: var(--red);
    box-shadow:
        0 0 32px rgba(239, 68, 68, 0.35),
        inset 0 0 24px rgba(255, 255, 255, 0.03);
}
.modal-problem .modal-titlebar {
    background: linear-gradient(90deg, #ef4444, #7f1d1d);
}
.modal-problem .modal-icon,
.modal-problem .modal-close:hover {
    color: var(--red);
}
.modal-problem .modal-footer {
    border-top-color: rgba(239, 68, 68, 0.25);
}
.modal-problem .modal-btn-primary {
    background: var(--red);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

/* RISK (желтый) */
.modal-risk {
    border-color: var(--amber);
    box-shadow:
        0 0 32px rgba(251, 191, 36, 0.32),
        inset 0 0 24px rgba(255, 255, 255, 0.03);
}
.modal-risk .modal-titlebar {
    background: linear-gradient(90deg, #fbbf24, #78350f);
}
.modal-risk .modal-title {
    color: #000;
}
.modal-risk .modal-icon,
.modal-risk .modal-close:hover {
    color: #78350f;
}
.modal-risk .modal-footer {
    border-top-color: rgba(251, 191, 36, 0.25);
}
.modal-risk .modal-btn-primary {
    background: var(--amber);
    color: #000;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.45);
}

/* ESG (зеленый) */
.modal-esg {
    border-color: var(--green);
    box-shadow:
        0 0 32px rgba(34, 197, 94, 0.32),
        inset 0 0 24px rgba(255, 255, 255, 0.03);
}
.modal-esg .modal-titlebar {
    background: linear-gradient(90deg, #22c55e, #14532d);
}
.modal-esg .modal-icon,
.modal-esg .modal-close:hover {
    color: var(--green);
}
.modal-esg .modal-footer {
    border-top-color: rgba(34, 197, 94, 0.25);
}
.modal-esg .modal-btn-primary {
    background: var(--green);
    color: #001b0b;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.45);
}

/* FINANCE (фиолетовый) */
.modal-finance {
    border-color: var(--purple);
    box-shadow:
        0 0 32px rgba(168, 85, 247, 0.34),
        inset 0 0 24px rgba(255, 255, 255, 0.03);
}
.modal-finance .modal-titlebar {
    background: linear-gradient(90deg, #a855f7, #4c1d95);
}
.modal-finance .modal-icon,
.modal-finance .modal-close:hover {
    color: var(--purple);
}
.modal-finance .modal-footer {
    border-top-color: rgba(168, 85, 247, 0.25);
}
.modal-finance .modal-btn-primary {
    background: var(--purple);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.45);
}
.market-modal-text {
    font-size: 20px;
    line-height: 1.65;
    color: #e5e7eb;
}

.market-modal-text p {
    margin: 0 0 18px 0;
}

.market-modal-text ul {
    margin: 10px 0 0 24px;
    padding: 0;
}

.market-modal-text li {
    margin-bottom: 10px;
}

.market-event-modal {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 10px;
}

.market-breaking {
    display: inline-flex;
    width: fit-content;

    padding: 8px 14px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.market-breaking.positive {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.4);
}

.market-breaking.negative {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.4);
}

.market-event-headline {
    font-size: 34px;
    line-height: 1.35;
    font-weight: 700;
    color: #ffffff;
}

.market-event-impact-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #94a3b8;
}

.market-event-impact {
    font-size: 24px;
    line-height: 1.5;
    color: #e2e8f0;
}

.renewal-modal {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.renewal-summary {
    display: grid;
    gap: 8px;
    font-size: 20px;
    color: #e5e7eb;
}

.renewal-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
}

.renewal-option {
    text-align: left;
    padding: 20px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.renewal-option:hover {
    transform: translateY(-2px);
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.renewal-option-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 12px;
}

.renewal-option-price {
    font-size: 18px;
    color: #c4b5fd;
    margin-bottom: 8px;
}

.renewal-option-mrr {
    font-size: 15px;
    color: #94a3b8;
}

.progress-results-modal {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.progress-intro {
    font-size: 20px;
    line-height: 1.55;
    color: #e5e7eb;
    margin-bottom: 6px;
}

.score-block {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 16px;
    padding: 20px;
}

.score-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.score-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}

.score-subtitle {
    font-size: 15px;
    color: #94a3b8;
    margin-top: 4px;
}

.score-points {
    font-size: 24px;
    font-weight: 900;
    color: var(--red);
    white-space: nowrap;
}

.score-details {
    font-size: 16px;
    color: #e5e7eb;
    margin-bottom: 6px;
}

.score-note {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 12px;
}

.score-bar {
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.score-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444, #f97316);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
}

.score-percent {
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
    text-align: right;
}

.progress-total {
    margin-top: 12px;
    text-align: center;
    padding: 28px;
    border-radius: 18px;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.progress-total-label {
    font-size: 16px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-total-score {
    font-size: 52px;
    font-weight: 1000;
    color: #fff;
    margin: 8px 0;
}

.progress-total-level {
    font-size: 22px;
    color: #e5e7eb;
}

.intro-briefing {
    display: flex;
    flex-direction: column;
    gap: 26px;
    color: #e5e7eb;
}

.intro-hero {
    padding: 22px 26px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.18), transparent 45%),
        rgba(15, 23, 42, 0.55);
}

.intro-kicker {
    color: #fca5a5;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.intro-title {
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.intro-subtitle {
    font-size: 20px;
    line-height: 1.45;
    color: #cbd5e1;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px;
}

.intro-card {
    padding: 20px 22px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.intro-card-main {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.12);
}

.intro-card-label {
    color: #fca5a5;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.intro-big-number {
    font-size: 40px;
    line-height: 1;
    font-weight: 1000;
    color: #fff;
    margin-bottom: 12px;
}

.intro-card-text,
.intro-card li {
    font-size: 18px;
    line-height: 1.45;
    color: #dbeafe;
}

.intro-card ul {
    margin: 0;
    padding-left: 20px;
}

.intro-card li {
    margin-bottom: 6px;
}

.intro-quote {
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
    color: #fff;
}

.intro-footer-note {
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.09);
    border: 1px solid rgba(239, 68, 68, 0.28);
    font-size: 18px;
    line-height: 1.55;
    color: #e5e7eb;
}

.level-progress-wrap {
    margin-top: 18px;
}

.level-progress-bar {
    height: 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin-bottom: 10px;
}

.level-progress-fill {
    height: 100%;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #ef4444,
            #f97316
        );

    box-shadow:
        0 0 12px rgba(239,68,68,0.45);
}

.level-progress-text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.result-recommendation {
    margin: 22px 0 26px 0;
    padding: 22px 24px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.18), transparent 42%),
        rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.12);
}

.result-recommendation-label {
    color: #fca5a5;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.result-recommendation-title {
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 12px;
}

.result-recommendation-text {
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.55;
}

.progress-intro-card {
    padding: 22px 26px;
    margin-bottom: 24px;

    border-radius: 18px;

    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.16), transparent 45%),
        rgba(15, 23, 42, 0.72);

    border: 1px solid rgba(239, 68, 68, 0.35);

    font-size: 24px;
    line-height: 1.45;
    font-weight: 700;

    color: #ffffff;
}
.modal-btn-disabled,
.modal-btn-disabled:hover {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.5);
    transform: none;
    box-shadow: none;
}

.endgame-card {
    margin-top: 24px;
    padding: 20px 24px;

    border-radius: 18px;

    background:
        radial-gradient(circle at top left, rgba(99,102,241,0.18), transparent 45%),
        rgba(15,23,42,0.72);

    border: 1px solid rgba(99,102,241,0.35);
}

.endgame-card-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.endgame-card-text {
    line-height: 1.6;
    color: #dbeafe;
}

.academy-help {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.academy-card {
    background: rgba(15,23,42,.75);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 18px;
}

.academy-warning {
    border-color: rgba(250,204,21,.35);
}

.academy-title {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.academy-example {
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    font-weight: 700;
}

.orders-help {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.orders-help-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    align-items: stretch;
}

.orders-help-card .card {
    margin-bottom: 0;
    height: 100%;
    box-sizing: border-box;
}

.orders-help-text {
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
}

.orders-help-text h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #fff;
}

.orders-help-text p {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.5;
    color: #cbd5e1;
}

.demo-active-client {
    margin: 0;
}

.orders-help {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.orders-help-intro {
    padding: 22px 26px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.20), transparent 45%),
        rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(168, 85, 247, 0.38);
}

.academy-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.16);
    color: #d8b4fe;
    border: 1px solid rgba(216, 180, 254, 0.35);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.orders-help-intro-title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.orders-help-intro-text {
    font-size: 19px;
    line-height: 1.55;
    color: #cbd5e1;
}

.orders-help-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    align-items: stretch;
}

.orders-help-card .card {
    margin-bottom: 0;
    height: 100%;
    box-sizing: border-box;
}

.orders-help-text {
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
}

.orders-help-text h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #fff;
}

.orders-help-text p {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.5;
    color: #cbd5e1;
}

.orders-help-section-title {
    margin-top: 12px;
    padding: 16px 22px;
    border-radius: 16px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.orders-help-price-note {
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 18px;
    line-height: 1.55;
    color: #cbd5e1;
}

.demo-active-client {
    margin: 0;
}