:root {
    --bg: #050814;
    --panel: #0b1630;
    --card: #0d1b36;
    --muted: #b3948a;
    /* Оранжевая палитра */
    --accent: #ff8800;
    --accent2: #ffcc00;
    --accent-light: #ff9d33;
    --success: #00ff88;
    --danger: #ff5555;
    --warning: #ffcc00;
    --glass: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #e0c1b8;
    --regular-bg: rgba(255, 136, 0, 0.15);
    --regular-color: #ff8800;
    /* OTC теперь оранжевый */
    --otc-bg: rgba(255, 136, 0, 0.15);
    --otc-color: #ff8800;
    --shadow-dark: 0 8px 30px rgba(2, 6, 23, 0.7);
    --shadow-light: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-inset-dark: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    --shadow-inset-light: inset 0 1px 0 rgba(0, 0, 0, 0.02);
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        Roboto,
        "Segoe UI",
        Arial; /* <-- ШРИФТ ЗДЕСЬ (НЕ МЕНЯЛСЯ) */
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html,
body {
    height: 100%;
    background:
        radial-gradient(
            800px 300px at 10% 10%,
            rgba(255, 136, 0, 0.1),
            transparent 8%
        ),
        radial-gradient(
            600px 200px at 90% 90%,
            rgba(255, 204, 0, 0.08),
            transparent 6%
        ),
        var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    background: var(--bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 8px;
    position: relative;
    z-index: 10;
}
.app-header .time-display {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}
.app-title {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
}
.time-display {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
    text-align: center;
}
.brand-name {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 136, 0, 0.3);
}
/* Language Selector */
.language-selector-container {
    position: relative;
    margin-bottom: 16px;
    z-index: 11;
}
.language-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--panel);
    border-radius: 20px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    width: fit-content;
    transition: all 0.2s;
}
.language-trigger:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.3);
}
.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
}
.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--panel);
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
    margin-bottom: 8px;
    min-width: 120px;
}
.language-dropdown.active {
    display: flex;
}
/* Выпадающий список языков (в шапке) */
.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.language-option:hover {
    background: rgba(255, 255, 255, 0.05);
}
.language-option.active {
    background: rgba(255, 136, 0, 0.2);
    border: 1px solid rgba(255, 136, 0, 0.3);
}
/* Trading Type Selector */
.trading-type-selector {
    display: flex;
    background: var(--panel);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
    position: relative;
    gap: 8px;
}
.trading-type-selector {
    display: flex;
    background: var(--panel);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    z-index: 10;
    position: relative;
    gap: 8px;
}
.type-btn {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--muted);
    border: none;
}
.type-btn.active {
    background: var(--regular-bg);
    color: var(--regular-color);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.2);
}
.type-btn.otc.active {
    background: var(--otc-bg);
    color: var(--otc-color);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.2);
}
/* Signal Card */
.signal-card {
    background: var(--bg);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--card);
    box-shadow: var(--shadow-dark), var(--shadow-inset-dark);
    display: block;
    z-index: 1;
    position: relative;
}
.signal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.pair-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pair-flags {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: -20px;
}
.pair-flag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: 20px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8),
        1px 4px 10px rgba(0, 0, 0, 0.2),
        0 0 0 1px var(--panel);
    overflow: hidden;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.pair-flag .fi {
    width: 100%;
    height: 100%;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.pair-flag:first-child {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    left: 0;
    z-index: 2;
}
.pair-flag:last-child {
    background: linear-gradient(135deg, var(--danger), #ff9900);
    left: 28px;
    z-index: 1;
}
.pair-details {
    margin-left: 80px;
    flex: 1;
}
.pair-details h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.pair-details .pair-type {
    display: none;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.accuracy-display {
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
}
.accuracy-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}
.accuracy-value {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(to right, var(--accent), var(--accent2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 136, 0, 0.3);
}
/* Current Signal */
.current-signal {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}
.signal-title {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
    font-weight: 500;
    text-align: center;
}
.signal-direction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.direction-arrow-large {
    font-size: 48px;
    font-weight: 800;
}
.direction-text {
    font-size: 22px;
    font-weight: 800;
    padding: 8px 24px;
    border-radius: 50px;
    letter-spacing: 1px;
}
.direction-buy {
    color: var(--success);
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}
.direction-sell {
    color: var(--danger);
    background: rgba(255, 85, 85, 0.1);
    border: 2px solid rgba(255, 85, 85, 0.3);
    box-shadow: 0 0 15px rgba(255, 85, 85, 0.2);
}
.arrow-buy {
    color: var(--success);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
.arrow-sell {
    color: var(--danger);
    text-shadow: 0 0 10px rgba(255, 85, 85, 0.5);
}
.signal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.meta-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.meta-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.meta-value {
    font-size: 18px;
    font-weight: 700;
}
/* Signal Result */
.signal-result {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
}
.signal-result.win {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.3);
    display: flex;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}
.signal-result.loss {
    background: rgba(255, 85, 85, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 85, 85, 0.3);
    display: flex;
    box-shadow: 0 0 15px rgba(255, 85, 85, 0.2);
}
/* Progress Section */
.progress-section {
    margin-bottom: 20px;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.progress-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}
.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--accent), var(--accent2));
    border-radius: 4px;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.3);
}
.timer-display {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}
/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.btn {
    padding: 20px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 17px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    letter-spacing: 1px;
}
.btn-primary {
    background: linear-gradient(to right, var(--accent), var(--accent2));
    color: white;
    box-shadow: 0 6px 20px rgba(255, 136, 0, 0.3);
}
.btn-secondary {
    background: linear-gradient(
        to right,
        rgba(255, 136, 0, 0.2),
        rgba(255, 204, 0, 0.2)
    );
    color: var(--text-primary);
    border: 1px solid rgba(255, 136, 0, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.btn-secondary:hover {
    background: linear-gradient(
        to right,
        rgba(255, 136, 0, 0.3),
        rgba(255, 204, 0, 0.3)
    );
    box-shadow: 0 6px 15px rgba(255, 136, 0, 0.2);
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255, 136, 0, 0.4);
    background: linear-gradient(to right, #ff9d33, #ffcc00);
}
/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 20, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}
.loading-overlay.active {
    display: flex;
}
.loading-content {
    background: var(--panel);
    border-radius: 20px;
    padding: 40px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.loading-icon {
    font-size: 60px;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--accent), var(--accent2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}
.loading-text {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}
.loading-subtext {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}
.loading-progress {
    margin-top: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}
.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--accent), var(--accent2));
    border-radius: 2px;
    transition: width 0.3s ease;
}
/* Footer Tabs */
.footer-tabs {
    display: flex;
    background: var(--panel);
    border-radius: 16px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    z-index: 10;
    position: relative;
}
.tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tab.active {
    background: rgba(255, 136, 0, 0.2);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.2);
}
/* Content Sections */
.content-section {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 16px;
}
.content-section.active {
    display: flex;
    flex-direction: column;
}
/* Profile Section */
.profile-section {
    background: var(--bg);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid var(--card);
    box-shadow: var(--shadow-dark), var(--shadow-inset-dark);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    flex-shrink: 0;
}
.stat-card {
    background: var(--panel);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.stat-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 14px;
    color: var(--muted);
}
.stat-success {
    color: var(--success);
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}
.stat-danger {
    color: var(--danger);
    text-shadow: 0 0 5px rgba(255, 85, 85, 0.3);
}
.stat-warning {
    color: var(--warning);
}
.history-section {
    background: var(--bg);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid var(--card);
    box-shadow: var(--shadow-dark), var(--shadow-inset-dark);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 8px;
    flex: 1;
    min-height: 0;
}
.history-item {
    background: var(--panel);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.history-pair {
    display: flex;
    align-items: center;
    gap: 12px;
}
.history-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.history-pair-name {
    font-weight: 700;
    font-size: 16px;
}
.history-time {
    font-size: 12px;
    color: var(--muted);
}
.history-result {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 16px;
}
.history-win {
    color: var(--success);
}
.history-loss {
    color: var(--danger);
}
/* Responsive */
@media (max-width: 480px) {
    .app-container {
        padding: 12px;
    }
    .signal-card,
    .profile-section,
    .history-section {
        padding: 16px;
    }

    .btn {
        padding: 18px;
        font-size: 16px;
    }

    .selectors-container {
        flex-direction: column;
    }
}
/* Selector Containers */
.selector-container {
    position: relative;
    margin-bottom: 16px;
    z-index: 8;
}
.selector-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.selector-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--panel);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s;
}
.selector-trigger:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.3);
}
.selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 90;
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
}
.selector-dropdown.active {
    display: flex;
}
.pair-option-dropdown,
.timeframe-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}
.pair-option-dropdown:hover,
.timeframe-option:hover {
    background: rgba(255, 255, 255, 0.05);
}
.pair-option-dropdown.active,
.timeframe-option.active {
    background: rgba(255, 136, 0, 0.2);
    border: 1px solid rgba(255, 136, 0, 0.3);
}
.selectors-wrapper {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.selector-container {
    flex: 1;
    margin-bottom: 0;
}
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 136, 0, 0.2);
    border-top-color: #ff8800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.btn-disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}
.menu-trigger {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel);
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
    transition: background 0.2s;
    flex-shrink: 0;
}
.menu-trigger i {
    color: var(--text-secondary);
    font-size: 18px;
}
.menu-trigger i {
    color: var(--text-secondary);
    font-size: 18px;
    margin: 0;
    padding: 0;
}
@media (max-width: 480px) {
    .menu-trigger {
        width: 32px;
        height: 32px;
        top: calc(12px + env(safe-area-inset-top, 0px));
        left: calc(12px + env(safe-area-inset-left, 0px));
    }
    .menu-trigger i {
        font-size: 16px;
    }
}
.menu-trigger i {
    color: var(--text-secondary);
    font-size: 18px;
}
/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--panel);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 16px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}
.side-menu.active {
    transform: translateX(0);
}
.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.side-menu-header .brand-name {
    font-size: 20px;
}
.side-menu-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
}
.side-menu-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}
.side-menu-item {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}
.side-menu-item:hover {
    background: rgba(255, 136, 0, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}
/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}
.menu-overlay.active {
    display: block;
}
/* Language Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-overlay.active {
    display: flex;
}
.language-modal {
    background: var(--card);
    border-radius: 18px;
    width: 90%;
    max-width: 320px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.modal-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: background 0.2s;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
}
.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.modal-lang-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-lang-btn:hover {
    background: rgba(255, 136, 0, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}
/* Стиль для флага в истории */
.pair-flag-history {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8),
        1px 2px 6px rgba(0, 0, 0, 0.2),
        0 0 0 1px var(--panel);
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
}
.pair-flag-history .fi {
    width: 100%;
    height: 100%;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;
}
/* Добавляем к контейнеру модального окна */
.language-modal .modal-body {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    padding: 16px 8px;
    max-height: 300px;
    overflow-y: auto;
}
/* Стили для каждой колонки */
.language-modal .lang-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-width: 200px;
}
/* Модальное окно выбора языка */
.language-modal .modal-lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--panel);
    color: var(--text-primary);
    border-radius: 16px;
    cursor: pointer;
    transition:
        background 0.2s,
        border-color 0.2s;
    font-size: 16px;
    text-align: left;
}
.language-modal .modal-lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}
.language-modal .modal-lang-btn .fi {
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 1;
}
#signalTypeValue {
    background: linear-gradient(135deg, #ff9d33, #ffcc00, #ff9d33);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
    animation: steelShine 4s ease infinite;
}
@keyframes steelShine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
