:root {
    --bg-main: #0c0d0d;
    --bg-card: #141516;
    --bg-input: #1b1c1d;
    --accent-yellow: #fcd535;
    --text-main: #ffffff;
    --text-muted: #888d92;
    --border-color: #2a2c2e;
    --profit-green: #34c759;
    --profit-red: #ff453a;
    --notification-red: #ff3b30;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* PIN-КОД ЭКРАН */
#pin-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    z-index: 20000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pin-dots {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #333;
    transition: 0.2s;
}

.dot.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(252, 213, 53, 0.4);
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 280px;
}

.num-btn {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.num-btn:active {
    background: var(--bg-input);
    transform: scale(0.92);
}

/* ПРЕЛОАДЕРЫ */
.logo-big {
    width: 230px;
    height: 230px;
    object-fit: contain;
    animation: pulse-big 1.8s infinite ease-in-out;
}

@keyframes pulse-big {
    0% {
        transform: scale(0.98);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
    100% {
        transform: scale(0.98);
        opacity: 0.7;
    }
}

#main-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    transition: opacity 0.3s ease;
}

/* ШАПКА */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-yellow);
    object-fit: cover;
    flex-shrink: 0;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.balance-box {
    background: var(--bg-input);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #3c3e41;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.deposit-btn {
    background: var(--accent-yellow);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: pointer;
}

.page {
    display: none;
    padding: 15px;
    padding-bottom: 120px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page.active {
    display: block;
    opacity: 1;
}

/* ТАРИФЫ (КАЛЬКУЛЯТОР) */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 5px;
    text-align: center;
}

.plan-card.active {
    border-color: var(--accent-yellow);
    background: #1c1d1e;
    box-shadow: 0 0 10px rgba(252, 213, 53, 0.1);
}

.plan-name {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 5px;
}

.plan-price {
    font-size: 17px;
    font-weight: 900;
    color: var(--accent-yellow);
}

.plan-info {
    font-size: 8px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* МАГАЗИН ТАРИФОВ */
.store-grid {
    display: grid;
    gap: 12px;
}

.store-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.store-item.highlight {
    border-color: var(--accent-yellow);
}

.store-item-title {
    font-weight: 800;
    color: var(--accent-yellow);
    font-size: 14px;
}

.store-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.store-item-price {
    font-weight: 900;
    font-size: 18px;
    margin-top: 8px;
}

/* КАЛЬКУЛЯТОР */
.calc-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.calc-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    outline: none;
    box-sizing: border-box;
}

.slider-container {
    margin: 15px 0;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--accent-yellow);
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid var(--bg-main);
}

.calc-res-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    background: var(--bg-input);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.calc-disclaimer {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.3;
    text-align: center;
}

/* КАРТОЧКА СДЕЛКИ */
.trade-card {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.trade-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.coin-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #232428 0%, #141516 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid #2a2c2e;
    overflow: hidden;
    font-weight: 800;
    color: var(--accent-yellow);
    font-size: 16px;
}

.coin-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.2);
}

.pair-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
}

.pair-title {
    font-weight: bold;
    font-size: 15px;
    color: var(--text-main);
}

.sub-text {
    color: var(--text-muted);
    font-size: 11px;
    min-height: 13px;
}

.trade-info-right {
    text-align: right;
    flex-shrink: 0;
}

.profit-val {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 2px;
}

.balance-after {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
}

/* ENGINE */
.engine-status-card {
    background: var(--bg-card);
    padding: 35px 20px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.power-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.power-btn.on {
    color: var(--accent-yellow);
    background: #1e1f10;
    box-shadow: 0 0 40px rgba(252, 213, 53, 0.2);
}

.engine-warning-box {
    background: rgba(255, 69, 58, 0.05);
    border: 1px solid rgba(255, 69, 58, 0.15);
    border-radius: 12px;
    padding: 12px;
    margin-top: 20px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    display: none;
}

.engine-warning-box.active {
    display: block;
}

.strategy-select {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.strategy-item {
    background: var(--bg-card);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.strategy-item.active {
    border-color: var(--accent-yellow);
    background: rgba(252, 213, 53, 0.04);
}

.strategy-item.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

/* РЫНОК НА ВЕСЬ ЭКРАН */
#page-market {
    padding: 0 !important;
    height: calc(100vh - 70px);
}

.tv-wrapper {
    height: calc(100vh - 135px);
    width: 100%;
    overflow: hidden;
}

/* =========================================
   УВЕДОМЛЕНИЯ - ПРОФЕССИОНАЛЬНЫЙ СТИЛЬ
========================================= */

.notif-card {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    border-left-width: 4px;
    border-left-style: solid;
    position: relative;
    transition: all 0.2s ease;
}

/* Непрочитанные */
.notif-card.unread {
    background: rgba(255, 255, 255, 0.03);
    border-left-width: 4px;
}

/* Цвета по статусам */
.notif-card.notif-success {
    border-left-color: var(--profit-green);
    background: linear-gradient(90deg, rgba(52, 199, 89, 0.05) 0%, var(--bg-card) 10%);
}

.notif-card.notif-error {
    border-left-color: var(--profit-red);
    background: linear-gradient(90deg, rgba(255, 69, 58, 0.05) 0%, var(--bg-card) 10%);
}

.notif-card.notif-pending {
    border-left-color: var(--accent-yellow);
    background: linear-gradient(90deg, rgba(252, 213, 53, 0.05) 0%, var(--bg-card) 10%);
}

.notif-card.notif-trade-plus {
    border-left-color: var(--profit-green);
    background: linear-gradient(90deg, rgba(52, 199, 89, 0.08) 0%, var(--bg-card) 10%);
}

.notif-card.notif-trade-minus {
    border-left-color: var(--profit-red);
    background: linear-gradient(90deg, rgba(255, 69, 58, 0.08) 0%, var(--bg-card) 10%);
}

.notif-card.notif-info {
    border-left-color: var(--text-muted);
    background: linear-gradient(90deg, rgba(136, 141, 146, 0.05) 0%, var(--bg-card) 10%);
}

/* Заголовок уведомления */
.notif-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-main);
}

/* Текст уведомления */
.notif-text {
    font-size: 13px;
    color: var(--text-main);
    opacity: 0.9;
    line-height: 1.4;
}

/* Время уведомления */
.notif-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 10px;
    display: block;
}

/* Иконка SVG в заголовке */
.notif-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* =========================================
   НОВЫЙ ПРОФИЛЬ (В СТИЛЕ TRUST WALLET)
========================================= */

/* Шапка профиля */
.profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.profile-user-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-yellow);
    object-fit: cover;
}

.profile-name-box {
    display: flex;
    flex-direction: column;
}

.p-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.p-id {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.profile-sub-badge {
    background: linear-gradient(135deg, rgba(252, 213, 53, 0.15) 0%, rgba(20, 21, 22, 0.5) 100%);
    color: var(--accent-yellow);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid rgba(252, 213, 53, 0.4);
}

/* Премиум-карточка баланса */
.premium-card {
    background: linear-gradient(135deg, #1f2022 0%, #111213 100%);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid #3c3e41;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 25px;
}

.premium-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(252, 213, 53, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.card-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-balance-big {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Круглые кнопки действий */
.action-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.action-circle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.action-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: 0.2s;
}

.action-circle:active {
    transform: scale(0.9);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    background: var(--bg-input);
}

.action-circle svg {
    width: 22px;
    height: 22px;
}

.action-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Меню-список (Настройки) */
.menu-list {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 5px 15px;
    margin-bottom: 25px;
}

.menu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: 0.2s;
}

.menu-row:active {
    opacity: 0.6;
}

.menu-row:last-child {
    border-bottom: none;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 600;
}

.menu-icon {
    color: var(--text-muted);
    display: flex;
}

.menu-icon svg {
    width: 20px;
    height: 20px;
}

.menu-right {
    color: var(--text-muted);
}

.menu-right svg {
    width: 18px;
    height: 18px;
}

/* ИСТОРИЯ ТРАНЗАКЦИЙ */
.history-box {
    margin-top: 10px;
}

.history-item {
    background: var(--bg-card);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hist-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hist-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.hist-icon.deposit {
    color: var(--profit-green);
}

.hist-icon.withdraw {
    color: var(--profit-red);
}

.hist-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hist-title {
    font-size: 13px;
    font-weight: 700;
}

.hist-time {
    font-size: 10px;
    color: var(--text-muted);
}

.hist-right {
    text-align: right;
}

.hist-amount {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 2px;
}

.hist-status {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending {
    color: var(--accent-yellow);
}

.status-success {
    color: var(--profit-green);
}

.status-rejected {
    color: var(--profit-red);
}

/* МОДАЛЬНЫЕ ОКНА ФИНАНСОВ И МАГАЗИНА */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 30000;
    padding: 20px;
    box-sizing: border-box;
}

.finance-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 360px;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
}

/* КРЕСТИК ЗАКРЫТИЯ */
.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 50;
    transition: 0.2s;
}

.close-modal-btn:active {
    color: var(--accent-yellow);
    transform: scale(0.85);
}

.finance-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-right: 30px;
}

.f-tab {
    padding-bottom: 12px;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.f-tab.active {
    color: var(--accent-yellow);
    border-bottom-color: var(--accent-yellow);
}

.fin-section {
    display: none;
}

.fin-section.active {
    display: block;
}

.asset-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.asset-item {
    background: var(--bg-input);
    padding: 12px 5px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.asset-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.asset-item.active {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    background: rgba(252, 213, 53, 0.05);
}

.address-container {
    background: var(--bg-main);
    padding: 16px;
    border-radius: 16px;
    border: 1px dashed #3a3c3e;
    margin-bottom: 20px;
    position: relative;
}

.wallet-addr {
    font-family: monospace;
    font-size: 11px;
    color: var(--accent-yellow);
    word-break: break-all;
    padding-right: 35px;
    line-height: 1.4;
}

.copy-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
}

.status-checking {
    background: rgba(252, 213, 53, 0.1);
    color: var(--accent-yellow);
    padding: 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(252, 213, 53, 0.2);
    text-align: center;
    display: none;
}

.btn-main-fin {
    width: 100%;
    background: var(--accent-yellow);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
}

.withdraw-info {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
}

/* НАВИГАЦИЯ */
.nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--bg-card);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 9999;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    position: relative;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.nav-item.active {
    color: var(--accent-yellow);
}

.main-btn-circle {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 62px;
    height: 62px;
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.nav-item.active .main-btn-circle {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 20px rgba(252, 213, 53, 0.2);
}

.main-btn-circle svg {
    width: 28px;
    height: 28px;
    color: var(--accent-yellow);
    stroke-width: 2.5;
}

.badge {
    position: absolute;
    top: 10px;
    right: 20%;
    background: var(--notification-red);
    color: white;
    font-size: 9px;
    font-weight: bold;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-card);
    z-index: 10;
}

.plus {
    color: var(--profit-green);
}

.minus {
    color: var(--profit-red);
}

/* PNL СТАТИСТИКА В СТИЛЕ BINANCE */
.pnl-tabs {
    display: flex;
    gap: 15px;
    margin: 15px 0 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.pnl-tab {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
    letter-spacing: 0.5px;
}

.pnl-tab.active {
    color: var(--accent-yellow);
}

.pnl-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pnl-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.pnl-stat-val {
    font-size: 16px;
    font-weight: 900;
}

.pnl-stat-val.plus {
    color: var(--profit-green);
}

.pnl-stat-val.minus {
    color: var(--profit-red);
    text-shadow: 0 0 10px rgba(255, 69, 58, 0.2);
}

.pnl-stat-val.neutral {
    color: var(--text-main);
}

/* РЕФЕРАЛЬНАЯ СИСТЕМА */
.ref-card {
    background: linear-gradient(135deg, rgba(252, 213, 53, 0.05) 0%, rgba(20, 21, 22, 0.8) 100%);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(252, 213, 53, 0.2);
    margin-bottom: 25px;
}

.ref-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ref-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-yellow);
    text-transform: uppercase;
}

.ref-stats-row {
    display: flex;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.ref-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ref-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.ref-val {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

.ref-claim-btn {
    width: 100%;
    background: var(--accent-yellow);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.ref-claim-btn:active {
    transform: scale(0.95);
}

.ref-claim-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.promo-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-input);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px dashed #3c3e41;
    margin-top: 15px;
}

.promo-code {
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    color: var(--accent-yellow);
    letter-spacing: 1px;
}

.promo-copy {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.promo-copy:active {
    color: var(--accent-yellow);
}

/* ПОЛЕ ВВОДА ПРОМОКОДА */
.enter-promo-box {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.enter-promo-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-size: 12px;
    outline: none;
    text-transform: uppercase;
}

.enter-promo-btn {
    background: #2a2c2e;
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
}

.enter-promo-btn:active {
    background: var(--accent-yellow);
    color: #000;
}

/* --- Строгий AI Конструктор --- */
.onyx-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-input);
    outline: none;
}

.onyx-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-yellow);
    cursor: pointer;
    border: 3px solid var(--bg-main);
    transition: transform 0.1s ease;
}

.onyx-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.onyx-slider:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- LIVE TRADING BOARD --- */
.live-trade-board {
    background: linear-gradient(145deg, var(--bg-card) 0%, #0a0a0b 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.live-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 20px;
}

.live-status-badge.active {
    color: var(--profit-green);
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.live-status-badge.active .pulse-dot {
    background-color: var(--profit-green);
    box-shadow: 0 0 8px var(--profit-green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.live-pair {
    font-size: 16px;
    font-weight: 900;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.live-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.live-pnl-val {
    font-size: 28px;
    font-weight: 900;
    font-family: monospace;
    text-shadow: 0 0 15px rgba(255,255,255,0);
    transition: color 0.3s, text-shadow 0.3s;
}

.live-pnl-val.up { color: var(--profit-green); text-shadow: 0 0 15px rgba(52, 199, 89, 0.4); }
.live-pnl-val.down { color: var(--profit-red); text-shadow: 0 0 15px rgba(255, 69, 58, 0.4); }

.live-details {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.l-detail {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    font-size: 11px;
}

.l-label { color: var(--text-muted); text-transform: uppercase; }
.l-val { font-weight: 700; color: var(--text-main); font-family: monospace; }

/* --- СТИЛИ ДЛЯ PNL (USD + %) --- */
.live-pnl-usd {
    font-size: 22px;
    font-weight: 900;
    font-family: monospace;
    transition: color 0.3s, text-shadow 0.3s;
}
.live-pnl-roe {
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
    transition: color 0.3s, text-shadow 0.3s;
}
.live-pnl-usd.up, .live-pnl-roe.up { 
    color: var(--profit-green); 
    text-shadow: 0 0 10px rgba(52, 199, 89, 0.3); 
}
.live-pnl-usd.down, .live-pnl-roe.down { 
    color: var(--profit-red); 
    text-shadow: 0 0 10px rgba(255, 69, 58, 0.3); 
}

/* МАЛЕНЬКАЯ КНОПКА */
.btn-outline-small {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    transition: all 0.2s;
}
.btn-outline-small:hover, .btn-outline-small:active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}