/* ========== ОСНОВНЫЕ СТИЛИ ========== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
height: 100%;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #121212;
color: #ffffff;
height: 100vh;
display: flex;
flex-direction: column;
transition: background-color 0.3s, color 0.3s;
overflow: hidden;
}

/* ========== ТЁМНАЯ ТЕМА (классическая) ========== */
body.dark-theme {
background-color: #121212;
color: #ffffff;
}

body.dark-theme .header {
background-color: #1e1e1e;
border-bottom: 1px solid #333;
}

body.dark-theme .header > div {
border-right-color: #333;
}

body.dark-theme .time-box {
background: #252525;
border-color: #333;
}

body.dark-theme .time-box h4 {
color: #aaa;
}

body.dark-theme .date-display,
body.dark-theme .time-display {
color: #4caf50;
}

body.dark-theme .tp-item-narrow {
background: #252525;
border-right-color: #444;
}

body.dark-theme .tp-item-narrow label {
color: #aaa;
border-bottom-color: #444;
}

body.dark-theme .tp-index-name {
color: #aaa;
}

body.dark-theme .tp-index-price {
color: #4caf50;
}

body.dark-theme .tp-index-change.positive {
color: #4caf50;
}

body.dark-theme .tp-index-change.negative {
color: #f44336;
}

body.dark-theme .tp-header-row span {
color: #666;
}

body.dark-theme .tp-price {
color: #2196f3;
}

body.dark-theme .tp-lots {
color: #4caf50;
}

body.dark-theme .tp-profit {
color: #ff9800;
}

body.dark-theme .col-analysis h4 {
color: #aaa;
}

body.dark-theme .status-container {
background: #252525;
border-color: #333;
}

body.dark-theme .mode-indicator.mode-pro {
background: rgba(33, 150, 243, 0.2);
border: 1px solid #2196f3;
color: #2196f3;
}

body.dark-theme .mode-indicator.mode-demo {
background: rgba(255, 152, 0, 0.2);
border: 1px solid #ff9800;
color: #ff9800;
}

body.dark-theme .license-input {
background: #333;
color: white;
border-color: #444;
}

body.dark-theme .license-input::placeholder {
color: #888;
}

body.dark-theme .btn-license-submit {
background: #4caf50;
color: white;
border-color: #4caf50;
}

body.dark-theme .col-status {
background: transparent;
}

body.dark-theme .api-status span {
color: #aaa;
}

body.dark-theme .indicator.green {
background-color: #4caf50;
}

body.dark-theme .btn-help,
body.dark-theme .btn-help-old,
body.dark-theme .btn-buy {
background: #2196f3;
color: white;
border-color: #2196f3;
}

body.dark-theme .btn-help-old {
background: #ff9800;
border-color: #ff9800;
}

body.dark-theme .btn-buy {
background: #4caf50;
border-color: #4caf50;
}

body.dark-theme .sidebar-left {
background-color: #1e1e1e;
border-color: #333;
}

body.dark-theme .sidebar-left h3 {
color: #4caf50;
}

body.dark-theme .input-group label {
color: #aaa;
}

body.dark-theme .input-group input {
background: #252525;
color: white;
border-color: #333;
}

body.dark-theme .search-box input {
background: #252525;
color: white;
border-color: #333;
}

body.dark-theme .btn {
background: #333;
color: white;
border-color: #444;
}

body.dark-theme .btn:hover:not(:disabled) {
background: #444;
}

body.dark-theme .btn-delete {
background: #f44336;
border-color: #f44336;
}

body.dark-theme .btn-export {
background: #2196f3;
border-color: #2196f3;
}

body.dark-theme .chart-header {
background: #252525;
border-color: #333;
}

body.dark-theme #selectInstrument,
body.dark-theme #selectTimeframe,
body.dark-theme #chartTypeSelector {
background: #333;
color: white;
border-color: #444;
}

body.dark-theme .dir-btn {
background: #333;
color: #aaa;
border-color: #444;
}

body.dark-theme .dir-btn.active#btnLong {
background: #4caf50;
border-color: #4caf50;
}

body.dark-theme .dir-btn.active#btnShort {
background: #f44336;
border-color: #f44336;
}

body.dark-theme .profile-btn {
background: #333;
color: #aaa;
border-color: #444;
}

body.dark-theme .profile-btn.active {
background: #2196f3;
color: white;
border-color: #2196f3;
}

body.dark-theme .profile-btn.auto-selected {
background: #4caf50;
color: white;
border-color: #4caf50;
}

body.dark-theme .profile-info {
background: #1a1a1a;
color: #aaa;
border-color: #333;
}

body.dark-theme .btn-center-price,
body.dark-theme .btn-toggle-levels {
background: #ff9800;
border-color: #ff9800;
}

body.dark-theme .btn-toggle-levels.active {
background: #666;
border-color: #666;
opacity: 0.7;
}

body.dark-theme .sidebar-right {
background-color: #1e1e1e;
border-color: #333;
}

body.dark-theme .sidebar-right h3 {
color: #2196f3;
}

body.dark-theme .sidebar-right input {
background: #252525;
color: white;
border-color: #333;
}

body.dark-theme .risk-btn {
background: #333;
color: #aaa;
border-color: #444;
}

body.dark-theme .risk-btn.active {
background: #2196f3;
color: white;
border-color: #2196f3;
}

body.dark-theme .tp-scheme-box {
background: #252525;
border-color: #333;
}

body.dark-theme .tp-scheme-header h4 {
color: #aaa;
}

body.dark-theme .total-lots {
background: #1a1a1a;
color: #4caf50;
border-color: #333;
}

body.dark-theme .tp-scheme {
background: #1a1a1a;
color: #4caf50;
border-color: #333;
}

body.dark-theme .tp-total-profit {
background: #1a1a1a;
border-color: #333;
}

body.dark-theme .tp-total-profit-label {
color: #aaa;
}

body.dark-theme .tp-total-profit-value {
color: #ff9800;
}

body.dark-theme .rr-box {
background: #252525;
border-color: #333;
}

body.dark-theme .rr-box h4 {
color: #aaa;
}

body.dark-theme .rr-value {
color: #4caf50;
}

body.dark-theme .btn-calculate {
width: 100%;
margin-top: 8px;
background: #ff9800;
border-color: #ff9800;
color: white;
font-size: 11px;
padding: 8px;
white-space: nowrap;
border-radius: 4px;
cursor: pointer;
}

body.dark-theme .btn-calculate:hover {
background: #f57c00;
}

body.dark-theme .modal-content {
background: #1e1e1e;
border-color: #333;
color: #ffffff;
}

body.dark-theme .modal-header {
border-bottom-color: #333;
}

body.dark-theme .modal-header h3 {
color: #2196f3;
}

body.dark-theme .modal-section h4 {
color: #4caf50;
border-bottom-color: #333;
}

body.dark-theme .saved-instruments-list {
background: #252525;
border-color: #333;
}

body.dark-theme .saved-instrument-item {
background: #1a1a1a;
border-color: #333;
}

body.dark-theme .saved-instrument-item:hover {
background: #2a2a2a;
}

body.dark-theme .saved-instrument-symbol {
color: #4caf50;
}

body.dark-theme .saved-instrument-name {
color: #aaa;
}

body.dark-theme .close-modal {
color: #aaa;
}

body.dark-theme .close-modal:hover {
color: white;
}

body.dark-theme .btn-primary {
background: #2196f3;
color: white;
border-color: #2196f3;
}

body.dark-theme .help-modal .help-content {
color: #ffffff;
}

body.dark-theme .help-content strong {
color: #ff9800;
}

body.dark-theme .help-content h4 {
color: #4caf50;
}

body.dark-theme .optgroup-header {
color: #aaa;
background: #1e1e1e;
border-color: #444;
}

body.dark-theme .chart-title {
background: rgba(0, 0, 0, 0.6);
color: white;
}

body.dark-theme .search-results {
background: #252525;
border-color: #333;
}

body.dark-theme .search-result-item {
border-bottom-color: #333;
}

body.dark-theme .search-result-item:hover {
background: #333;
}

/* ========== ИЗБРАННОЕ - ТЁМНАЯ ТЕМА ========== */
body.dark-theme .favorites-container {
background: #1e1e1e;
border: 1px solid #333;
}

body.dark-theme .favorites-header h4 {
color: #aaa;
}

body.dark-theme .favorites-update-timer {
color: #666;
}

body.dark-theme .favorite-card {
background: #252525;
border: 1px solid #444;
}

body.dark-theme .favorite-card:hover {
background: #333;
border-color: #2196f3;
}

body.dark-theme .favorite-symbol {
color: #4caf50;
}

body.dark-theme .favorite-price {
color: #ffffff;
}

body.dark-theme .favorite-change.positive {
color: #4caf50;
}

body.dark-theme .favorite-change.negative {
color: #f44336;
}

body.dark-theme .favorite-remove {
background: #f44336;
color: white;
}

body.dark-theme .add-favorite-card {
background: #252525;
border: 1px dashed #444;
}

body.dark-theme .favorite-add-icon {
color: #aaa;
}

body.dark-theme .favorite-add-text {
color: #aaa;
}

/* ========== СВЕТЛАЯ ТЕМА ========== */
body.light-theme {
background-color: #f5f5f5;
color: #333333;
}

body.light-theme .header {
background-color: #ffffff;
border-bottom: 1px solid #e0e0e0;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .header > div {
border-right-color: #e0e0e0;
}

body.light-theme .time-box {
background: #ffffff;
border-color: #e0e0e0;
}

body.light-theme .time-box h4 {
color: #666666;
}

body.light-theme .date-display,
body.light-theme .time-display {
color: #1976d2;
}

body.light-theme .tp-item-narrow {
background: #f8f9fa;
border-right-color: #ddd;
}

body.light-theme .tp-item-narrow label {
color: #666;
border-bottom-color: #ddd;
}

body.light-theme .tp-index-name {
color: #666;
}

body.light-theme .tp-index-price {
color: #1976d2;
}

body.light-theme .tp-index-change.positive {
color: #2e7d32;
}

body.light-theme .tp-index-change.negative {
color: #d32f2f;
}

body.light-theme .tp-header-row span {
color: #888;
}

body.light-theme .tp-price {
color: #1976d2;
}

body.light-theme .tp-lots {
color: #2e7d32;
}

body.light-theme .tp-profit {
color: #ef6c00;
}

body.light-theme .col-analysis {
background: transparent;
}

body.light-theme .status-container {
background: #ffffff;
border-color: #e0e0e0;
}

body.light-theme .mode-indicator.mode-pro {
background: rgba(33, 150, 243, 0.1);
border: 1px solid #2196f3;
color: #2196f3;
}

body.light-theme .mode-indicator.mode-demo {
background: rgba(255, 152, 0, 0.1);
border: 1px solid #ff9800;
color: #ff9800;
}

body.light-theme .license-input {
background: #ffffff;
color: #000000;
border-color: #cccccc;
}

body.light-theme .license-input::placeholder {
color: #999999;
}

body.light-theme .btn-license-submit {
background: #4caf50;
color: white;
border-color: #4caf50;
}

body.light-theme .col-status {
background: transparent;
}

body.light-theme .api-status span {
color: #666666;
}

body.light-theme .indicator.green {
background-color: #4caf50;
}

body.light-theme .btn-help,
body.light-theme .btn-help-old,
body.light-theme .btn-buy {
background: #2196f3;
color: white;
border-color: #2196f3;
}

body.light-theme .btn-help-old {
background: #ff9800;
border-color: #ff9800;
}

body.light-theme .btn-buy {
background: #4caf50;
border-color: #4caf50;
}

body.light-theme .sidebar-left {
background-color: #ffffff;
border-color: #e0e0e0;
}

body.light-theme .sidebar-left h3 {
color: #2e7d32;
}

body.light-theme .input-group label {
color: #666666;
}

body.light-theme .input-group input {
background: #ffffff;
color: #000000;
border-color: #cccccc;
}

body.light-theme .search-box input {
background: #ffffff;
color: #000000;
border-color: #cccccc;
}

body.light-theme .btn {
background: #e0e0e0;
color: #333333;
border-color: #cccccc;
}

body.light-theme .btn:hover:not(:disabled) {
background: #d0d0d0;
}

body.light-theme .btn-delete {
background: #f44336;
color: white;
border-color: #f44336;
}

body.light-theme .btn-export {
background: #2196f3;
color: white;
border-color: #2196f3;
}

body.light-theme .chart-header {
background: #ffffff;
border-color: #e0e0e0;
}

body.light-theme #selectInstrument,
body.light-theme #selectTimeframe,
body.light-theme #chartTypeSelector {
background: #ffffff;
color: #000000;
border-color: #cccccc;
}

body.light-theme .dir-btn {
background: #e0e0e0;
color: #666666;
border-color: #cccccc;
}

body.light-theme .dir-btn.active#btnLong {
background: #4caf50;
color: white;
border-color: #4caf50;
}

body.light-theme .dir-btn.active#btnShort {
background: #f44336;
color: white;
border-color: #f44336;
}

body.light-theme .profile-btn {
background: #e0e0e0;
color: #666666;
border-color: #cccccc;
}

body.light-theme .profile-btn.active {
background: #2196f3;
color: white;
border-color: #2196f3;
}

body.light-theme .profile-btn.auto-selected {
background: #4caf50;
color: white;
border-color: #4caf50;
}

body.light-theme .profile-info {
background: #f0f0f0;
color: #666666;
border-color: #cccccc;
}

body.light-theme .btn-center-price,
body.light-theme .btn-toggle-levels {
background: #ef6c00;
color: white;
border-color: #ef6c00;
}

body.light-theme .btn-toggle-levels.active {
background: #999;
border-color: #999;
}

body.light-theme .sidebar-right {
background-color: #ffffff;
border-color: #e0e0e0;
}

body.light-theme .sidebar-right h3 {
color: #1976d2;
}

body.light-theme .sidebar-right input {
background: #ffffff;
color: #000000;
border-color: #cccccc;
}

body.light-theme .risk-btn {
background: #e0e0e0;
color: #666666;
border-color: #cccccc;
}

body.light-theme .risk-btn.active {
background: #2196f3;
color: white;
border-color: #2196f3;
}

body.light-theme .tp-scheme-box {
background: #f8f9fa;
border-color: #e0e0e0;
}

body.light-theme .tp-scheme-header h4 {
color: #666666;
}

body.light-theme .total-lots {
background: #e8f5e9;
color: #2e7d32;
border-color: #c8e6c9;
}

body.light-theme .tp-scheme {
background: #ffffff;
color: #2e7d32;
border-color: #e0e0e0;
}

body.light-theme .tp-total-profit {
background: #ffffff;
border-color: #e0e0e0;
}

body.light-theme .tp-total-profit-label {
color: #666666;
}

body.light-theme .tp-total-profit-value {
color: #ef6c00;
}

body.light-theme .rr-box {
background: #f8f9fa;
border-color: #e0e0e0;
}

body.light-theme .rr-box h4 {
color: #666666;
}

body.light-theme .rr-value {
color: #2e7d32;
}

body.light-theme .btn-calculate {
width: 100%;
margin-top: 8px;
background: #ff9800;
border-color: #ff9800;
color: white;
font-size: 11px;
padding: 8px;
white-space: nowrap;
border-radius: 4px;
cursor: pointer;
}

body.light-theme .btn-calculate:hover {
background: #f57c00;
}

body.light-theme .modal-content {
background: #ffffff;
border-color: #e0e0e0;
color: #333333;
}

body.light-theme .modal-header {
border-bottom-color: #e0e0e0;
}

body.light-theme .modal-header h3 {
color: #1976d2;
}

body.light-theme .modal-section h4 {
color: #2e7d32;
border-bottom-color: #e0e0e0;
}

body.light-theme .saved-instruments-list {
background: #f8f9fa;
border-color: #e0e0e0;
}

body.light-theme .saved-instrument-item {
background: #ffffff;
border-color: #e0e0e0;
}

body.light-theme .saved-instrument-item:hover {
background: #f0f0f0;
}

body.light-theme .saved-instrument-symbol {
color: #2e7d32;
}

body.light-theme .saved-instrument-name {
color: #666666;
}

body.light-theme .close-modal {
color: #666666;
}

body.light-theme .close-modal:hover {
color: #333333;
}

body.light-theme .btn-primary {
background: #2196f3;
color: white;
border-color: #2196f3;
}

body.light-theme .chart-title {
background: rgba(255, 255, 255, 0.8);
color: #333333;
}

body.light-theme .search-results {
background: #ffffff;
border-color: #cccccc;
}

body.light-theme .search-result-item {
border-bottom-color: #eeeeee;
}

body.light-theme .search-result-item:hover {
background: #f0f0f0;
}

/* ========== ИЗБРАННОЕ - СВЕТЛАЯ ТЕМА ========== */
body.light-theme .favorites-container {
background: #ffffff;
border: 1px solid #e0e0e0;
}

body.light-theme .favorites-header h4 {
color: #666666;
}

body.light-theme .favorites-update-timer {
color: #999;
}

body.light-theme .favorite-card {
background: #f8f9fa;
border: 1px solid #e0e0e0;
}

body.light-theme .favorite-card:hover {
background: #f0f0f0;
border-color: #2196f3;
}

body.light-theme .favorite-symbol {
color: #2e7d32;
}

body.light-theme .favorite-price {
color: #333333;
}

body.light-theme .favorite-change.positive {
color: #2e7d32;
}

body.light-theme .favorite-change.negative {
color: #d32f2f;
}

body.light-theme .favorite-remove {
background: #f44336;
color: white;
}

body.light-theme .add-favorite-card {
background: #f8f9fa;
border: 1px dashed #ccc;
}

body.light-theme .favorite-add-icon {
color: #666;
}

body.light-theme .favorite-add-text {
color: #666;
}

/* ========== ТЕМА ГЖЕЛЬ (светлая) ========== */
body.gzhel-theme {
background-color: #f0f7ff;
color: #0a2a4a;
}

body.gzhel-theme .header {
background: linear-gradient(135deg, #ffffff 0%, #e6f0ff 100%);
border-bottom: 2px solid #2a6f9c;
box-shadow: 0 2px 10px rgba(42, 111, 156, 0.2);
}

body.gzhel-theme .header > div {
border-right-color: #b0d4f0;
}

body.gzhel-theme .time-box,
body.gzhel-theme .status-container,
body.gzhel-theme .sidebar-left,
body.gzhel-theme .sidebar-right,
body.gzhel-theme .tp-scheme-box,
body.gzhel-theme .rr-box,
body.gzhel-theme .chart-header,
body.gzhel-theme .favorites-container,
body.gzhel-theme .tp-item-narrow,
body.gzhel-theme .modal-content {
border-width: 2px;
border-style: solid;
}

body.gzhel-theme .time-box {
background: #ffffff;
border: 2px solid #2a6f9c;
box-shadow: 0 2px 8px rgba(42, 111, 156, 0.1);
}

body.gzhel-theme .time-box h4 {
color: #1a4a6a;
}

body.gzhel-theme .date-display,
body.gzhel-theme .time-display {
color: #2a6f9c;
}

body.gzhel-theme .tp-item-narrow {
background: #ffffff;
border-right-color: #b0d4f0;
}

body.gzhel-theme .tp-item-narrow label {
color: #1a4a6a;
border-bottom-color: #b0d4f0;
}

body.gzhel-theme .tp-index-name {
color: #1a4a6a;
}

body.gzhel-theme .tp-index-price {
color: #2a6f9c;
}

body.gzhel-theme .tp-index-change.positive {
color: #2a6f9c;
}

body.gzhel-theme .tp-index-change.negative {
color: #c0504e;
}

body.gzhel-theme .tp-header-row span {
color: #6a8faa;
}

body.gzhel-theme .tp-price {
color: #1a4a6a;
}

body.gzhel-theme .tp-lots {
color: #2a6f9c;
}

body.gzhel-theme .tp-profit {
color: #c0602e;
}

body.gzhel-theme .col-analysis {
background: transparent;
}

body.gzhel-theme .status-container {
background: #ffffff;
border: 2px solid #2a6f9c;
}

body.gzhel-theme .mode-indicator.mode-pro {
background: #e6f0ff;
border: 2px solid #2a6f9c;
color: #1a4a6a;
}

body.gzhel-theme .mode-indicator.mode-demo {
background: #fff0e0;
border: 2px solid #c0602e;
color: #c0602e;
}

body.gzhel-theme .license-input {
background: #f5faff;
color: #1a4a6a;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .license-input::placeholder {
color: #8aaac0;
}

body.gzhel-theme .btn-license-submit {
background: #2a6f9c;
color: white;
border: 2px solid #1a4a6a;
}

body.gzhel-theme .btn-license-submit:hover {
background: #1a5a8a;
}

body.gzhel-theme .col-status {
background: transparent;
}

body.gzhel-theme .api-status span {
color: #1a4a6a;
}

body.gzhel-theme .indicator.green {
background-color: #2a6f9c;
}

body.gzhel-theme .btn-help,
body.gzhel-theme .btn-help-old,
body.gzhel-theme .btn-buy {
background: #2a6f9c;
color: white;
border: 2px solid #1a4a6a;
}

body.gzhel-theme .btn-help-old {
background: #c0602e;
border-color: #a0401e;
}

body.gzhel-theme .btn-buy {
background: #4a8fbc;
border-color: #2a6f9c;
}

body.gzhel-theme .sidebar-left {
background: #ffffff;
border: 2px solid #2a6f9c;
}

body.gzhel-theme .sidebar-left h3 {
color: #2a6f9c;
}

body.gzhel-theme .input-group label {
color: #1a4a6a;
}

body.gzhel-theme .input-group input {
background: #f5faff;
color: #1a4a6a;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .search-box input {
background: #f5faff;
color: #1a4a6a;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .btn {
background: #e6f0ff;
color: #1a4a6a;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .btn:hover:not(:disabled) {
background: #d0e4ff;
}

body.gzhel-theme .btn-delete {
background: #c0504e;
color: white;
border-color: #a0302e;
}

body.gzhel-theme .btn-export {
background: #2a6f9c;
color: white;
border-color: #1a4a6a;
}

body.gzhel-theme .chart-header {
background: #ffffff;
border: 2px solid #2a6f9c;
}

body.gzhel-theme #selectInstrument,
body.gzhel-theme #selectTimeframe,
body.gzhel-theme #chartTypeSelector {
background: #f5faff;
color: #1a4a6a;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .dir-btn {
background: #e6f0ff;
color: #1a4a6a;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .dir-btn.active#btnLong {
background: #2a6f9c;
color: white;
border-color: #1a4a6a;
}

body.gzhel-theme .dir-btn.active#btnShort {
background: #c0504e;
color: white;
border-color: #a0302e;
}

body.gzhel-theme .profile-btn {
background: #e6f0ff;
color: #1a4a6a;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .profile-btn.active {
background: #2a6f9c;
color: white;
border-color: #1a4a6a;
}

body.gzhel-theme .profile-btn.auto-selected {
background: #4a8fbc;
color: white;
border-color: #2a6f9c;
}

body.gzhel-theme .profile-info {
background: #f5faff;
color: #1a4a6a;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .btn-center-price,
body.gzhel-theme .btn-toggle-levels {
background: #c0602e;
color: white;
border-color: #a0401e;
}

body.gzhel-theme .btn-toggle-levels.active {
background: #666;
border-color: #444;
}

body.gzhel-theme .sidebar-right {
background: #ffffff;
border: 2px solid #2a6f9c;
}

body.gzhel-theme .sidebar-right h3 {
color: #2a6f9c;
}

body.gzhel-theme .sidebar-right input {
background: #f5faff;
color: #1a4a6a;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .risk-btn {
background: #e6f0ff;
color: #1a4a6a;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .risk-btn.active {
background: #2a6f9c;
color: white;
border-color: #1a4a6a;
}

body.gzhel-theme .tp-scheme-box {
background: #f5faff;
border: 2px solid #2a6f9c;
}

body.gzhel-theme .tp-scheme-header h4 {
color: #1a4a6a;
}

body.gzhel-theme .total-lots {
background: #e6f0ff;
color: #2a6f9c;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .tp-scheme {
background: #ffffff;
color: #2a6f9c;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .tp-total-profit {
background: #ffffff;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .tp-total-profit-label {
color: #1a4a6a;
}

body.gzhel-theme .tp-total-profit-value {
color: #c0602e;
}

body.gzhel-theme .rr-box {
background: #f5faff;
border: 2px solid #2a6f9c;
}

body.gzhel-theme .rr-box h4 {
color: #1a4a6a;
}

body.gzhel-theme .rr-value {
color: #2a6f9c;
}

body.gzhel-theme .btn-calculate {
width: 100%;
margin-top: 8px;
background: #ff9800;
border-color: #ff9800;
color: white;
font-size: 11px;
padding: 8px;
white-space: nowrap;
border-radius: 4px;
cursor: pointer;
}

body.gzhel-theme .btn-calculate:hover {
background: #f57c00;
}

body.gzhel-theme .modal-content {
background: #ffffff;
border: 3px solid #2a6f9c;
color: #1a4a6a;
}

body.gzhel-theme .modal-header {
border-bottom-color: #b0d4f0;
}

body.gzhel-theme .modal-header h3 {
color: #2a6f9c;
}

body.gzhel-theme .modal-section h4 {
color: #2a6f9c;
border-bottom-color: #b0d4f0;
}

body.gzhel-theme .saved-instruments-list {
background: #f5faff;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .saved-instrument-item {
background: #ffffff;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .saved-instrument-item:hover {
background: #e6f0ff;
}

body.gzhel-theme .saved-instrument-symbol {
color: #2a6f9c;
}

body.gzhel-theme .saved-instrument-name {
color: #1a4a6a;
}

/* ========== ИЗБРАННОЕ - ГЖЕЛЬ ========== */
body.gzhel-theme .favorites-container {
background: #ffffff;
border: 2px solid #2a6f9c;
}

body.gzhel-theme .favorites-header h4 {
color: #1a4a6a;
}

body.gzhel-theme .favorites-update-timer {
color: #6a8faa;
}

body.gzhel-theme .favorite-card {
background: #f5faff;
border: 2px solid #b0d4f0;
}

body.gzhel-theme .favorite-card:hover {
background: #e6f0ff;
border-color: #2a6f9c;
}

body.gzhel-theme .favorite-symbol {
color: #2a6f9c;
}

body.gzhel-theme .favorite-price {
color: #1a4a6a;
}

body.gzhel-theme .favorite-change.positive {
color: #2a6f9c;
}

body.gzhel-theme .favorite-change.negative {
color: #c0504e;
}

body.gzhel-theme .favorite-remove {
background: #c0504e;
color: white;
}

body.gzhel-theme .add-favorite-card {
background: #f5faff;
border: 2px dashed #b0d4f0;
}

body.gzhel-theme .favorite-add-icon {
color: #6a8faa;
}

body.gzhel-theme .favorite-add-text {
color: #6a8faa;
}

/* ========== ТЁМНАЯ ГЖЕЛЬ ========== */
body.gzhel-dark-theme {
background-color: #0a1a2a;
color: #d0e4ff;
}

body.gzhel-dark-theme .header {
background: linear-gradient(135deg, #1a2a3a 0%, #0a1a2a 100%);
border-bottom: 2px solid #4a7db0;
}

body.gzhel-dark-theme .header > div {
border-right-color: #2a4a6a;
}

body.gzhel-dark-theme .time-box {
background: #1a2a3a;
border: 2px solid #4a7db0;
}

body.gzhel-dark-theme .time-box h4 {
color: #8aafd0;
}

body.gzhel-dark-theme .date-display,
body.gzhel-dark-theme .time-display {
color: #8aafd0;
}

body.gzhel-dark-theme .tp-item-narrow {
background: #1a2a3a;
border-right-color: #2a4a6a;
}

body.gzhel-dark-theme .tp-item-narrow label {
color: #8aafd0;
border-bottom-color: #2a4a6a;
}

body.gzhel-dark-theme .tp-index-name {
color: #8aafd0;
}

body.gzhel-dark-theme .tp-index-price {
color: #8aafd0;
}

body.gzhel-dark-theme .tp-index-change.positive {
color: #8aafd0;
}

body.gzhel-dark-theme .tp-index-change.negative {
color: #d08a8a;
}

body.gzhel-dark-theme .tp-header-row span {
color: #6a8aaa;
}

body.gzhel-dark-theme .tp-price {
color: #d0e4ff;
}

body.gzhel-dark-theme .tp-lots {
color: #8aafd0;
}

body.gzhel-dark-theme .tp-profit {
color: #d0a07a;
}

body.gzhel-dark-theme .col-analysis {
background: transparent;
}

body.gzhel-dark-theme .status-container {
background: #1a2a3a;
border: 2px solid #4a7db0;
}

body.gzhel-dark-theme .mode-indicator.mode-pro {
background: #1a3a5a;
border: 2px solid #4a7db0;
color: #8aafd0;
}

body.gzhel-dark-theme .mode-indicator.mode-demo {
background: #3a2a1a;
border: 2px solid #d0a07a;
color: #d0a07a;
}

body.gzhel-dark-theme .license-input {
background: #0a1a2a;
color: #d0e4ff;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .license-input::placeholder {
color: #6a8aaa;
}

body.gzhel-dark-theme .btn-license-submit {
background: #4a7db0;
color: white;
border: 2px solid #2a5a8a;
}

body.gzhel-dark-theme .btn-license-submit:hover {
background: #5a8dc0;
}

body.gzhel-dark-theme .col-status {
background: transparent;
}

body.gzhel-dark-theme .api-status span {
color: #8aafd0;
}

body.gzhel-dark-theme .indicator.green {
background-color: #4a7db0;
}

body.gzhel-dark-theme .btn-help,
body.gzhel-dark-theme .btn-help-old,
body.gzhel-dark-theme .btn-buy {
background: #4a7db0;
color: white;
border: 2px solid #2a5a8a;
}

body.gzhel-dark-theme .btn-help-old {
background: #d0a07a;
border-color: #b0805a;
}

body.gzhel-dark-theme .btn-buy {
background: #6a9dc0;
border-color: #4a7db0;
}

body.gzhel-dark-theme .sidebar-left {
background: #1a2a3a;
border: 2px solid #4a7db0;
}

body.gzhel-dark-theme .sidebar-left h3 {
color: #8aafd0;
}

body.gzhel-dark-theme .input-group label {
color: #8aafd0;
}

body.gzhel-dark-theme .input-group input {
background: #0a1a2a;
color: #d0e4ff;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .search-box input {
background: #0a1a2a;
color: #d0e4ff;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .btn {
background: #2a3a4a;
color: #d0e4ff;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .btn:hover:not(:disabled) {
background: #3a4a5a;
}

body.gzhel-dark-theme .btn-delete {
background: #c05a5a;
color: white;
border-color: #a03a3a;
}

body.gzhel-dark-theme .btn-export {
background: #4a7db0;
color: white;
border-color: #2a5a8a;
}

body.gzhel-dark-theme .chart-header {
background: #1a2a3a;
border: 2px solid #4a7db0;
}

body.gzhel-dark-theme #selectInstrument,
body.gzhel-dark-theme #selectTimeframe,
body.gzhel-dark-theme #chartTypeSelector {
background: #0a1a2a;
color: #d0e4ff;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .dir-btn {
background: #2a3a4a;
color: #d0e4ff;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .dir-btn.active#btnLong {
background: #4a7db0;
color: white;
border-color: #2a5a8a;
}

body.gzhel-dark-theme .dir-btn.active#btnShort {
background: #c05a5a;
color: white;
border-color: #a03a3a;
}

body.gzhel-dark-theme .profile-btn {
background: #2a3a4a;
color: #d0e4ff;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .profile-btn.active {
background: #4a7db0;
color: white;
border-color: #2a5a8a;
}

body.gzhel-dark-theme .profile-btn.auto-selected {
background: #5a8dc0;
color: white;
border-color: #3a6da0;
}

body.gzhel-dark-theme .profile-info {
background: #0a1a2a;
color: #8aafd0;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .btn-center-price,
body.gzhel-dark-theme .btn-toggle-levels {
background: #d0a07a;
color: white;
border-color: #b0805a;
}

body.gzhel-dark-theme .btn-toggle-levels.active {
background: #555;
border-color: #333;
}

body.gzhel-dark-theme .sidebar-right {
background: #1a2a3a;
border: 2px solid #4a7db0;
}

body.gzhel-dark-theme .sidebar-right h3 {
color: #8aafd0;
}

body.gzhel-dark-theme .sidebar-right input {
background: #0a1a2a;
color: #d0e4ff;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .risk-btn {
background: #2a3a4a;
color: #d0e4ff;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .risk-btn.active {
background: #4a7db0;
color: white;
border-color: #2a5a8a;
}

body.gzhel-dark-theme .tp-scheme-box {
background: #1a2a3a;
border: 2px solid #4a7db0;
}

body.gzhel-dark-theme .tp-scheme-header h4 {
color: #8aafd0;
}

body.gzhel-dark-theme .total-lots {
background: #0a1a2a;
color: #8aafd0;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .tp-scheme {
background: #0a1a2a;
color: #8aafd0;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .tp-total-profit {
background: #0a1a2a;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .tp-total-profit-label {
color: #8aafd0;
}

body.gzhel-dark-theme .tp-total-profit-value {
color: #d0a07a;
}

body.gzhel-dark-theme .rr-box {
background: #1a2a3a;
border: 2px solid #4a7db0;
}

body.gzhel-dark-theme .rr-box h4 {
color: #8aafd0;
}

body.gzhel-dark-theme .rr-value {
color: #8aafd0;
}

body.gzhel-dark-theme .btn-calculate {
width: 100%;
margin-top: 8px;
background: #ff9800;
border-color: #ff9800;
color: white;
font-size: 11px;
padding: 8px;
white-space: nowrap;
border-radius: 4px;
cursor: pointer;
}

body.gzhel-dark-theme .btn-calculate:hover {
background: #f57c00;
}

body.gzhel-dark-theme .modal-content {
background: #1a2a3a;
border: 3px solid #4a7db0;
color: #d0e4ff;
}

body.gzhel-dark-theme .modal-header {
border-bottom-color: #2a4a6a;
}

body.gzhel-dark-theme .modal-header h3 {
color: #8aafd0;
}

body.gzhel-dark-theme .modal-section h4 {
color: #8aafd0;
border-bottom-color: #2a4a6a;
}

body.gzhel-dark-theme .saved-instruments-list {
background: #0a1a2a;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .saved-instrument-item {
background: #1a2a3a;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .saved-instrument-item:hover {
background: #2a3a4a;
}

body.gzhel-dark-theme .saved-instrument-symbol {
color: #8aafd0;
}

body.gzhel-dark-theme .saved-instrument-name {
color: #8aafd0;
}

/* ========== ИЗБРАННОЕ - ТЁМНАЯ ГЖЕЛЬ ========== */
body.gzhel-dark-theme .favorites-container {
background: #1a2a3a;
border: 2px solid #4a7db0;
}

body.gzhel-dark-theme .favorites-header h4 {
color: #8aafd0;
}

body.gzhel-dark-theme .favorites-update-timer {
color: #6a8aaa;
}

body.gzhel-dark-theme .favorite-card {
background: #0a1a2a;
border: 2px solid #2a4a6a;
}

body.gzhel-dark-theme .favorite-card:hover {
background: #2a3a4a;
border-color: #4a7db0;
}

body.gzhel-dark-theme .favorite-symbol {
color: #8aafd0;
}

body.gzhel-dark-theme .favorite-price {
color: #d0e4ff;
}

body.gzhel-dark-theme .favorite-change.positive {
color: #8aafd0;
}

body.gzhel-dark-theme .favorite-change.negative {
color: #d08a8a;
}

body.gzhel-dark-theme .favorite-remove {
background: #c05a5a;
color: white;
}

body.gzhel-dark-theme .add-favorite-card {
background: #0a1a2a;
border: 2px dashed #2a4a6a;
}

body.gzhel-dark-theme .favorite-add-icon {
color: #6a8aaa;
}

body.gzhel-dark-theme .favorite-add-text {
color: #6a8aaa;
}

/* ========== ХОХЛОМА ========== */
body.khokhloma-theme {
background: linear-gradient(135deg, #1a0a0a 0%, #2a1a0a 100%);
color: #ffd700;
}

body.khokhloma-theme .header {
background: linear-gradient(135deg, #2a1a0a 0%, #1a0a0a 100%);
border-bottom: 3px solid #d4af37;
}

body.khokhloma-theme .header > div {
border-right-color: #4a3a1a;
}

body.khokhloma-theme .time-box {
background: #2a1a0a;
border: 2px solid #d4af37;
}

body.khokhloma-theme .time-box h4 {
color: #d4af37;
}

body.khokhloma-theme .date-display,
body.khokhloma-theme .time-display {
color: #d4af37;
}

body.khokhloma-theme .tp-item-narrow {
background: #2a1a0a;
border-right-color: #4a3a1a;
}

body.khokhloma-theme .tp-item-narrow label {
color: #d4af37;
border-bottom-color: #4a3a1a;
}

body.khokhloma-theme .tp-index-name {
color: #d4af37;
}

body.khokhloma-theme .tp-index-price {
color: #ffd700;
}

body.khokhloma-theme .tp-index-change.positive {
color: #ffd700;
}

body.khokhloma-theme .tp-index-change.negative {
color: #d46a6a;
}

body.khokhloma-theme .tp-header-row span {
color: #b0a070;
}

body.khokhloma-theme .tp-price {
color: #ffd700;
}

body.khokhloma-theme .tp-lots {
color: #d4af37;
}

body.khokhloma-theme .tp-profit {
color: #d4af37;
}

body.khokhloma-theme .col-analysis {
background: transparent;
}

body.khokhloma-theme .status-container {
background: #2a1a0a;
border: 2px solid #d4af37;
}

body.khokhloma-theme .mode-indicator.mode-pro {
background: #3a2a1a;
border: 2px solid #d4af37;
color: #ffd700;
}

body.khokhloma-theme .mode-indicator.mode-demo {
background: #3a2a1a;
border: 2px solid #d46a6a;
color: #d46a6a;
}

body.khokhloma-theme .license-input {
background: #1a0a0a;
color: #ffd700;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .license-input::placeholder {
color: #b0a070;
}

body.khokhloma-theme .btn-license-submit {
background: #d4af37;
color: #1a0a0a;
border: 2px solid #b08f17;
}

body.khokhloma-theme .btn-license-submit:hover {
background: #e5c048;
}

body.khokhloma-theme .col-status {
background: transparent;
}

body.khokhloma-theme .api-status span {
color: #d4af37;
}

body.khokhloma-theme .indicator.green {
background-color: #d4af37;
}

body.khokhloma-theme .btn-help,
body.khokhloma-theme .btn-help-old,
body.khokhloma-theme .btn-buy {
background: #d4af37;
color: #1a0a0a;
border: 2px solid #b08f17;
}

body.khokhloma-theme .btn-help-old {
background: #d46a6a;
border-color: #b04a4a;
}

body.khokhloma-theme .btn-buy {
background: #e5c048;
border-color: #b08f17;
}

body.khokhloma-theme .sidebar-left {
background: #2a1a0a;
border: 2px solid #d4af37;
}

body.khokhloma-theme .sidebar-left h3 {
color: #ffd700;
}

body.khokhloma-theme .input-group label {
color: #d4af37;
}

body.khokhloma-theme .input-group input {
background: #1a0a0a;
color: #ffd700;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .search-box input {
background: #1a0a0a;
color: #ffd700;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .btn {
background: #3a2a1a;
color: #d4af37;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .btn:hover:not(:disabled) {
background: #4a3a2a;
}

body.khokhloma-theme .btn-delete {
background: #d46a6a;
color: #1a0a0a;
border-color: #b04a4a;
}

body.khokhloma-theme .btn-export {
background: #d4af37;
color: #1a0a0a;
border-color: #b08f17;
}

body.khokhloma-theme .chart-header {
background: #2a1a0a;
border: 2px solid #d4af37;
}

body.khokhloma-theme #selectInstrument,
body.khokhloma-theme #selectTimeframe,
body.khokhloma-theme #chartTypeSelector {
background: #1a0a0a;
color: #ffd700;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .dir-btn {
background: #3a2a1a;
color: #d4af37;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .dir-btn.active#btnLong {
background: #d4af37;
color: #1a0a0a;
border-color: #b08f17;
}

body.khokhloma-theme .dir-btn.active#btnShort {
background: #d46a6a;
color: #1a0a0a;
border-color: #b04a4a;
}

body.khokhloma-theme .profile-btn {
background: #3a2a1a;
color: #d4af37;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .profile-btn.active {
background: #d4af37;
color: #1a0a0a;
border-color: #b08f17;
}

body.khokhloma-theme .profile-btn.auto-selected {
background: #e5c048;
color: #1a0a0a;
border-color: #c5a028;
}

body.khokhloma-theme .profile-info {
background: #1a0a0a;
color: #d4af37;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .btn-center-price,
body.khokhloma-theme .btn-toggle-levels {
background: #d4af37;
color: #1a0a0a;
border-color: #b08f17;
}

body.khokhloma-theme .btn-toggle-levels.active {
background: #666;
border-color: #444;
}

body.khokhloma-theme .sidebar-right {
background: #2a1a0a;
border: 2px solid #d4af37;
}

body.khokhloma-theme .sidebar-right h3 {
color: #ffd700;
}

body.khokhloma-theme .sidebar-right input {
background: #1a0a0a;
color: #ffd700;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .risk-btn {
background: #3a2a1a;
color: #d4af37;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .risk-btn.active {
background: #d4af37;
color: #1a0a0a;
border-color: #b08f17;
}

body.khokhloma-theme .tp-scheme-box {
background: #2a1a0a;
border: 2px solid #d4af37;
}

body.khokhloma-theme .tp-scheme-header h4 {
color: #d4af37;
}

body.khokhloma-theme .total-lots {
background: #1a0a0a;
color: #ffd700;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .tp-scheme {
background: #1a0a0a;
color: #ffd700;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .tp-total-profit {
background: #1a0a0a;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .tp-total-profit-label {
color: #d4af37;
}

body.khokhloma-theme .tp-total-profit-value {
color: #d4af37;
}

body.khokhloma-theme .rr-box {
background: #2a1a0a;
border: 2px solid #d4af37;
}

body.khokhloma-theme .rr-box h4 {
color: #d4af37;
}

body.khokhloma-theme .rr-value {
color: #ffd700;
}

body.khokhloma-theme .btn-calculate {
width: 100%;
margin-top: 8px;
background: #ff9800;
border-color: #ff9800;
color: white;
font-size: 11px;
padding: 8px;
white-space: nowrap;
border-radius: 4px;
cursor: pointer;
}

body.khokhloma-theme .btn-calculate:hover {
background: #f57c00;
}

body.khokhloma-theme .modal-content {
background: #2a1a0a;
border: 3px solid #d4af37;
color: #ffd700;
}

body.khokhloma-theme .modal-header {
border-bottom-color: #4a3a1a;
}

body.khokhloma-theme .modal-header h3 {
color: #ffd700;
}

body.khokhloma-theme .modal-section h4 {
color: #ffd700;
border-bottom-color: #4a3a1a;
}

body.khokhloma-theme .saved-instruments-list {
background: #1a0a0a;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .saved-instrument-item {
background: #2a1a0a;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .saved-instrument-item:hover {
background: #3a2a1a;
}

body.khokhloma-theme .saved-instrument-symbol {
color: #ffd700;
}

body.khokhloma-theme .saved-instrument-name {
color: #d4af37;
}

/* ========== ИЗБРАННОЕ - ХОХЛОМА ========== */
body.khokhloma-theme .favorites-container {
background: #2a1a0a;
border: 2px solid #d4af37;
}

body.khokhloma-theme .favorites-header h4 {
color: #d4af37;
}

body.khokhloma-theme .favorites-update-timer {
color: #b0a070;
}

body.khokhloma-theme .favorite-card {
background: #1a0a0a;
border: 2px solid #4a3a1a;
}

body.khokhloma-theme .favorite-card:hover {
background: #3a2a1a;
border-color: #d4af37;
}

body.khokhloma-theme .favorite-symbol {
color: #ffd700;
}

body.khokhloma-theme .favorite-price {
color: #ffd700;
}

body.khokhloma-theme .favorite-change.positive {
color: #ffd700;
}

body.khokhloma-theme .favorite-change.negative {
color: #d46a6a;
}

body.khokhloma-theme .favorite-remove {
background: #d46a6a;
color: #1a0a0a;
}

body.khokhloma-theme .add-favorite-card {
background: #1a0a0a;
border: 2px dashed #4a3a1a;
}

body.khokhloma-theme .favorite-add-icon {
color: #b0a070;
}

body.khokhloma-theme .favorite-add-text {
color: #b0a070;
}

/* ========== ЖОСТОВСКАЯ РОСПИСЬ ========== */
body.zhostovo-light-theme {
background: linear-gradient(135deg, #fef9e7 0%, #fef7e0 100%);
color: #8b3a4a;
}

body.zhostovo-light-theme .header {
background: linear-gradient(135deg, #d46a7a 0%, #b04a5a 100%);
border-bottom: 3px solid #f0a0b0;
}

body.zhostovo-light-theme .header > div {
border-right-color: #f0a0b0;
}

body.zhostovo-light-theme .time-box {
background: #fef9e7;
border: 2px solid #d46a7a;
}

body.zhostovo-light-theme .time-box h4 {
color: #8b3a4a;
}

body.zhostovo-light-theme .date-display,
body.zhostovo-light-theme .time-display {
color: #b04a5a;
}

body.zhostovo-light-theme .tp-item-narrow {
background: #fef9e7;
border-right-color: #f0a0b0;
}

body.zhostovo-light-theme .tp-item-narrow label {
color: #8b3a4a;
border-bottom-color: #f0a0b0;
}

body.zhostovo-light-theme .tp-index-name {
color: #8b3a4a;
}

body.zhostovo-light-theme .tp-index-price {
color: #b04a5a;
}

body.zhostovo-light-theme .tp-index-change.positive {
color: #2a8a5a;
}

body.zhostovo-light-theme .tp-index-change.negative {
color: #c05a6a;
}

body.zhostovo-light-theme .tp-header-row span {
color: #a06a7a;
}

body.zhostovo-light-theme .tp-price {
color: #b04a5a;
}

body.zhostovo-light-theme .tp-lots {
color: #2a8a5a;
}

body.zhostovo-light-theme .tp-profit {
color: #c05a6a;
}

body.zhostovo-light-theme .col-analysis {
background: transparent;
}

body.zhostovo-light-theme .status-container {
background: #fef9e7;
border: 2px solid #d46a7a;
}

body.zhostovo-light-theme .mode-indicator.mode-pro {
background: #f0d0d8;
border: 2px solid #d46a7a;
color: #8b3a4a;
}

body.zhostovo-light-theme .mode-indicator.mode-demo {
background: #f0d0a0;
border: 2px solid #c08a3a;
color: #8a4a2a;
}

body.zhostovo-light-theme .license-input {
background: #ffffff;
color: #8b3a4a;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .license-input::placeholder {
color: #c08a9a;
}

body.zhostovo-light-theme .btn-license-submit {
background: #d46a7a;
color: white;
border: 2px solid #b04a5a;
}

body.zhostovo-light-theme .btn-license-submit:hover {
background: #e07a8a;
}

body.zhostovo-light-theme .col-status {
background: transparent;
}

body.zhostovo-light-theme .api-status span {
color: #8b3a4a;
}

body.zhostovo-light-theme .indicator.green {
background-color: #2a8a5a;
}

body.zhostovo-light-theme .btn-help,
body.zhostovo-light-theme .btn-help-old,
body.zhostovo-light-theme .btn-buy {
background: #d46a7a;
color: white;
border: 2px solid #b04a5a;
}

body.zhostovo-light-theme .btn-help-old {
background: #c08a3a;
border-color: #a06a2a;
}

body.zhostovo-light-theme .btn-buy {
background: #2a8a5a;
border-color: #1a6a3a;
}

body.zhostovo-light-theme .sidebar-left {
background: #fef9e7;
border: 2px solid #d46a7a;
}

body.zhostovo-light-theme .sidebar-left h3 {
color: #b04a5a;
}

body.zhostovo-light-theme .input-group label {
color: #8b3a4a;
}

body.zhostovo-light-theme .input-group input {
background: #ffffff;
color: #8b3a4a;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .search-box input {
background: #ffffff;
color: #8b3a4a;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .btn {
background: #f0d0d8;
color: #8b3a4a;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .btn:hover:not(:disabled) {
background: #f0e0e8;
}

body.zhostovo-light-theme .btn-delete {
background: #c05a6a;
color: white;
border-color: #a03a4a;
}

body.zhostovo-light-theme .btn-export {
background: #2a8a5a;
color: white;
border-color: #1a6a3a;
}

body.zhostovo-light-theme .chart-header {
background: #fef9e7;
border: 2px solid #d46a7a;
}

body.zhostovo-light-theme #selectInstrument,
body.zhostovo-light-theme #selectTimeframe,
body.zhostovo-light-theme #chartTypeSelector {
background: #ffffff;
color: #8b3a4a;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .dir-btn {
background: #f0d0d8;
color: #8b3a4a;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .dir-btn.active#btnLong {
background: #2a8a5a;
color: white;
border-color: #1a6a3a;
}

body.zhostovo-light-theme .dir-btn.active#btnShort {
background: #c05a6a;
color: white;
border-color: #a03a4a;
}

body.zhostovo-light-theme .profile-btn {
background: #f0d0d8;
color: #8b3a4a;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .profile-btn.active {
background: #d46a7a;
color: white;
border-color: #b04a5a;
}

body.zhostovo-light-theme .profile-btn.auto-selected {
background: #e07a8a;
color: white;
border-color: #c05a6a;
}

body.zhostovo-light-theme .profile-info {
background: #ffffff;
color: #8b3a4a;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .btn-center-price,
body.zhostovo-light-theme .btn-toggle-levels {
background: #c08a3a;
color: white;
border-color: #a06a2a;
}

body.zhostovo-light-theme .btn-toggle-levels.active {
background: #aaa;
border-color: #888;
}

body.zhostovo-light-theme .sidebar-right {
background: #fef9e7;
border: 2px solid #d46a7a;
}

body.zhostovo-light-theme .sidebar-right h3 {
color: #b04a5a;
}

body.zhostovo-light-theme .sidebar-right input {
background: #ffffff;
color: #8b3a4a;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .risk-btn {
background: #f0d0d8;
color: #8b3a4a;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .risk-btn.active {
background: #d46a7a;
color: white;
border-color: #b04a5a;
}

body.zhostovo-light-theme .tp-scheme-box {
background: #fef9e7;
border: 2px solid #d46a7a;
}

body.zhostovo-light-theme .tp-scheme-header h4 {
color: #8b3a4a;
}

body.zhostovo-light-theme .total-lots {
background: #ffffff;
color: #2a8a5a;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .tp-scheme {
background: #ffffff;
color: #2a8a5a;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .tp-total-profit {
background: #ffffff;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .tp-total-profit-label {
color: #8b3a4a;
}

body.zhostovo-light-theme .tp-total-profit-value {
color: #c05a6a;
}

body.zhostovo-light-theme .rr-box {
background: #fef9e7;
border: 2px solid #d46a7a;
}

body.zhostovo-light-theme .rr-box h4 {
color: #8b3a4a;
}

body.zhostovo-light-theme .rr-value {
color: #2a8a5a;
}

body.zhostovo-light-theme .btn-calculate {
width: 100%;
margin-top: 8px;
background: #ff9800;
border-color: #ff9800;
color: white;
font-size: 11px;
padding: 8px;
white-space: nowrap;
border-radius: 4px;
cursor: pointer;
}

body.zhostovo-light-theme .btn-calculate:hover {
background: #f57c00;
}

body.zhostovo-light-theme .modal-content {
background: #fef9e7;
border: 3px solid #d46a7a;
color: #8b3a4a;
}

body.zhostovo-light-theme .modal-header {
border-bottom-color: #f0a0b0;
}

body.zhostovo-light-theme .modal-header h3 {
color: #b04a5a;
}

body.zhostovo-light-theme .modal-section h4 {
color: #b04a5a;
border-bottom-color: #f0a0b0;
}

body.zhostovo-light-theme .saved-instruments-list {
background: #ffffff;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .saved-instrument-item {
background: #fef9e7;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .saved-instrument-item:hover {
background: #f0d0d8;
}

body.zhostovo-light-theme .saved-instrument-symbol {
color: #b04a5a;
}

body.zhostovo-light-theme .saved-instrument-name {
color: #8b3a4a;
}

/* ========== ИЗБРАННОЕ - ЖОСТОВО ========== */
body.zhostovo-light-theme .favorites-container {
background: #fef9e7;
border: 2px solid #d46a7a;
}

body.zhostovo-light-theme .favorites-header h4 {
color: #8b3a4a;
}

body.zhostovo-light-theme .favorites-update-timer {
color: #a06a7a;
}

body.zhostovo-light-theme .favorite-card {
background: #ffffff;
border: 2px solid #f0a0b0;
}

body.zhostovo-light-theme .favorite-card:hover {
background: #f0d0d8;
border-color: #d46a7a;
}

body.zhostovo-light-theme .favorite-symbol {
color: #b04a5a;
}

body.zhostovo-light-theme .favorite-price {
color: #8b3a4a;
}

body.zhostovo-light-theme .favorite-change.positive {
color: #2a8a5a;
}

body.zhostovo-light-theme .favorite-change.negative {
color: #c05a6a;
}

body.zhostovo-light-theme .favorite-remove {
background: #c05a6a;
color: white;
}

body.zhostovo-light-theme .add-favorite-card {
background: #ffffff;
border: 2px dashed #f0a0b0;
}

body.zhostovo-light-theme .favorite-add-icon {
color: #a06a7a;
}

body.zhostovo-light-theme .favorite-add-text {
color: #a06a7a;
}

/* ========== МОНОХРОМ (КАК СВЕТЛАЯ КЛАССИКА, НО БЕЗ ЦВЕТОВ) ========== */
body.monochrome-theme {
background-color: #f5f5f5;
color: #333333;
}

body.monochrome-theme .header {
background-color: #ffffff;
border-bottom: 1px solid #cccccc;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.monochrome-theme .header > div {
border-right-color: #cccccc;
}

body.monochrome-theme .time-box {
background: #ffffff;
border-color: #cccccc;
}

body.monochrome-theme .time-box h4 {
color: #666666;
}

body.monochrome-theme .date-display,
body.monochrome-theme .time-display {
color: #333333;
}

body.monochrome-theme .tp-item-narrow {
background: #f8f9fa;
border-right-color: #dddddd;
}

body.monochrome-theme .tp-item-narrow label {
color: #666;
border-bottom-color: #dddddd;
}

body.monochrome-theme .tp-index-name {
color: #666;
}

body.monochrome-theme .tp-index-price {
color: #333;
}

body.monochrome-theme .tp-index-change.positive {
color: #333;
}

body.monochrome-theme .tp-index-change.negative {
color: #333;
}

body.monochrome-theme .tp-header-row span {
color: #888;
}

body.monochrome-theme .tp-price {
color: #333;
}

body.monochrome-theme .tp-lots {
color: #333;
}

body.monochrome-theme .tp-profit {
color: #333;
}

body.monochrome-theme .col-analysis {
background: transparent;
}

body.monochrome-theme .status-container {
background: #ffffff;
border-color: #cccccc;
}

body.monochrome-theme .mode-indicator.mode-pro {
background: #e0e0e0;
border: 1px solid #999;
color: #333;
}

body.monochrome-theme .mode-indicator.mode-demo {
background: #e0e0e0;
border: 1px solid #999;
color: #333;
}

body.monochrome-theme .license-input {
background: #ffffff;
color: #333;
border-color: #cccccc;
}

body.monochrome-theme .license-input::placeholder {
color: #999;
}

body.monochrome-theme .btn-license-submit {
background: #666;
color: white;
border-color: #555;
}

body.monochrome-theme .col-status {
background: transparent;
}

body.monochrome-theme .api-status span {
color: #666;
}

body.monochrome-theme .indicator.green {
background-color: #666;
}

body.monochrome-theme .btn-help,
body.monochrome-theme .btn-help-old,
body.monochrome-theme .btn-buy {
background: #666;
color: white;
border-color: #555;
}

body.monochrome-theme .btn-help-old {
background: #888;
border-color: #777;
}

body.monochrome-theme .btn-buy {
background: #777;
border-color: #666;
}

body.monochrome-theme .sidebar-left {
background-color: #ffffff;
border-color: #cccccc;
}

body.monochrome-theme .sidebar-left h3 {
color: #333;
}

body.monochrome-theme .input-group label {
color: #666;
}

body.monochrome-theme .input-group input {
background: #ffffff;
color: #333;
border-color: #cccccc;
}

body.monochrome-theme .search-box input {
background: #ffffff;
color: #333;
border-color: #cccccc;
}

body.monochrome-theme .btn {
background: #e0e0e0;
color: #333;
border-color: #cccccc;
}

body.monochrome-theme .btn:hover:not(:disabled) {
background: #d0d0d0;
}

body.monochrome-theme .btn-delete {
background: #999;
color: white;
border-color: #777;
}

body.monochrome-theme .btn-export {
background: #777;
color: white;
border-color: #666;
}

body.monochrome-theme .chart-header {
background: #ffffff;
border-color: #cccccc;
}

body.monochrome-theme #selectInstrument,
body.monochrome-theme #selectTimeframe,
body.monochrome-theme #chartTypeSelector {
background: #ffffff;
color: #333;
border-color: #cccccc;
}

body.monochrome-theme .dir-btn {
background: #e0e0e0;
color: #666;
border-color: #cccccc;
}

body.monochrome-theme .dir-btn.active#btnLong {
background: #666;
color: white;
border-color: #555;
}

body.monochrome-theme .dir-btn.active#btnShort {
background: #888;
color: white;
border-color: #777;
}

body.monochrome-theme .profile-btn {
background: #e0e0e0;
color: #666;
border-color: #cccccc;
}

body.monochrome-theme .profile-btn.active {
background: #777;
color: white;
border-color: #666;
}

body.monochrome-theme .profile-btn.auto-selected {
background: #888;
color: white;
border-color: #777;
}

body.monochrome-theme .profile-info {
background: #f0f0f0;
color: #666;
border-color: #cccccc;
}

body.monochrome-theme .btn-center-price,
body.monochrome-theme .btn-toggle-levels {
background: #888;
color: white;
border-color: #777;
}

body.monochrome-theme .btn-toggle-levels.active {
background: #666;
border-color: #555;
}

body.monochrome-theme .sidebar-right {
background-color: #ffffff;
border-color: #cccccc;
}

body.monochrome-theme .sidebar-right h3 {
color: #333;
}

body.monochrome-theme .sidebar-right input {
background: #ffffff;
color: #333;
border-color: #cccccc;
}

body.monochrome-theme .risk-btn {
background: #e0e0e0;
color: #666;
border-color: #cccccc;
}

body.monochrome-theme .risk-btn.active {
background: #777;
color: white;
border-color: #666;
}

body.monochrome-theme .tp-scheme-box {
background: #f8f9fa;
border-color: #cccccc;
}

body.monochrome-theme .tp-scheme-header h4 {
color: #666;
}

body.monochrome-theme .total-lots {
background: #f0f0f0;
color: #333;
border-color: #cccccc;
}

body.monochrome-theme .tp-scheme {
background: #ffffff;
color: #333;
border-color: #cccccc;
}

body.monochrome-theme .tp-total-profit {
background: #ffffff;
border-color: #cccccc;
}

body.monochrome-theme .tp-total-profit-label {
color: #666;
}

body.monochrome-theme .tp-total-profit-value {
color: #333;
}

body.monochrome-theme .rr-box {
background: #f8f9fa;
border-color: #cccccc;
}

body.monochrome-theme .rr-box h4 {
color: #666;
}

body.monochrome-theme .rr-value {
color: #333;
}

body.monochrome-theme .btn-calculate {
width: 100%;
margin-top: 8px;
background: #666;
border-color: #666;
color: white;
font-size: 11px;
padding: 8px;
white-space: nowrap;
border-radius: 4px;
cursor: pointer;
}

body.monochrome-theme .btn-calculate:hover {
background: #555;
}

body.monochrome-theme .modal-content {
background: #ffffff;
border-color: #cccccc;
color: #333;
}

body.monochrome-theme .modal-header {
border-bottom-color: #cccccc;
}

body.monochrome-theme .modal-header h3 {
color: #333;
}

body.monochrome-theme .modal-section h4 {
color: #333;
border-bottom-color: #cccccc;
}

body.monochrome-theme .saved-instruments-list {
background: #f8f9fa;
border-color: #cccccc;
}

body.monochrome-theme .saved-instrument-item {
background: #ffffff;
border-color: #cccccc;
}

body.monochrome-theme .saved-instrument-item:hover {
background: #f0f0f0;
}

body.monochrome-theme .saved-instrument-symbol {
color: #333;
}

body.monochrome-theme .saved-instrument-name {
color: #666;
}

body.monochrome-theme .close-modal {
color: #666;
}

body.monochrome-theme .close-modal:hover {
color: #333;
}

body.monochrome-theme .btn-primary {
background: #666;
color: white;
border-color: #666;
}

body.monochrome-theme .chart-title {
background: rgba(255, 255, 255, 0.8);
color: #333;
}

body.monochrome-theme .search-results {
background: #ffffff;
border-color: #cccccc;
}

body.monochrome-theme .search-result-item {
border-bottom-color: #eeeeee;
}

body.monochrome-theme .search-result-item:hover {
background: #f0f0f0;
}

/* ========== ИЗБРАННОЕ - МОНОХРОМ ========== */
body.monochrome-theme .favorites-container {
background: #ffffff;
border: 1px solid #cccccc;
}

body.monochrome-theme .favorites-header h4 {
color: #666;
}

body.monochrome-theme .favorites-update-timer {
color: #999;
}

body.monochrome-theme .favorite-card {
background: #f8f9fa;
border: 1px solid #cccccc;
}

body.monochrome-theme .favorite-card:hover {
background: #f0f0f0;
border-color: #666;
}

body.monochrome-theme .favorite-symbol {
color: #333;
}

body.monochrome-theme .favorite-price {
color: #333;
}

body.monochrome-theme .favorite-change.positive {
color: #333;
}

body.monochrome-theme .favorite-change.negative {
color: #333;
}

body.monochrome-theme .favorite-remove {
background: #999;
color: white;
}

body.monochrome-theme .add-favorite-card {
background: #f8f9fa;
border: 1px dashed #ccc;
}

body.monochrome-theme .favorite-add-icon {
color: #666;
}

body.monochrome-theme .favorite-add-text {
color: #666;
}

/* ========== ШАПКА ========== */
.header {
flex-shrink: 0;
height: 168px;
background-color: #1e1e1e;
border-bottom: 1px solid #333;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
position: relative;
z-index: 10;
display: flex;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: thin;
scrollbar-color: #4caf50 #333;
}

.header::-webkit-scrollbar {
height: 6px;
}

.header::-webkit-scrollbar-track {
background: #333;
}

.header::-webkit-scrollbar-thumb {
background: #4caf50;
border-radius: 3px;
}

.header > div {
padding: 10px;
border-right: 1px solid #333;
display: flex;
flex-direction: column;
transition: border-color 0.3s;
min-width: 150px;
flex-shrink: 0;
}

.col-time {
width: 12%;
min-width: 140px;
display: flex;
flex-direction: column;
justify-content: center;
}

.time-box {
background: #252525;
padding: 12px;
border-radius: 5px;
border: 1px solid #333;
text-align: center;
transition: all 0.3s;
height: 148px;
display: flex;
flex-direction: column;
justify-content: center;
}

.time-box h4 {
font-size: 12px;
color: #aaa;
margin-bottom: 8px;
}

.date-display {
font-size: 12px;
font-weight: bold;
font-family: 'Courier New', monospace;
margin-bottom: 6px;
color: #4caf50;
letter-spacing: 1px;
}

.time-display {
font-size: 18px;
font-weight: bold;
font-family: 'Courier New', monospace;
margin-bottom: 12px;
color: #4caf50;
}

.col-trade {
flex: 1;
min-width: 0;
display: flex;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: thin;
scrollbar-color: #2196f3 #333;
}

.col-trade::-webkit-scrollbar {
height: 6px;
}

.col-trade::-webkit-scrollbar-track {
background: #333;
}

.col-trade::-webkit-scrollbar-thumb {
background: #2196f3;
border-radius: 3px;
}

.tp-container {
display: flex;
gap: 0;
padding: 0;
height: 100%;
align-items: center;
width: 100%;
min-width: 100%;
}

.col-analysis {
width: 14%;
min-width: 200px;
display: flex;
flex-direction: column;
justify-content: flex-start;
height: 100%;
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
scrollbar-color: #ff9800 #333;
}

.col-analysis::-webkit-scrollbar {
width: 6px;
}

.col-analysis::-webkit-scrollbar-track {
background: #333;
}

.col-analysis::-webkit-scrollbar-thumb {
background: #ff9800;
border-radius: 3px;
}

.col-analysis h4 {
display: none;
}

.status-container {
background: #252525;
padding: 8px;
border-radius: 5px;
border: 1px solid #333;
margin-bottom: 8px;
flex-shrink: 0;
transition: all 0.3s;
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
overflow: hidden;
}

.license-input-group {
display: flex;
flex-direction: column;
gap: 8px;
width: 100%;
}

.license-row {
display: flex;
flex-direction: column;
gap: 5px;
width: 100%;
}

.license-input {
width: 100%;
padding: 6px;
background: #333;
color: white;
border: 1px solid #444;
border-radius: 4px;
font-size: 11px;
}

.btn-license-submit {
width: 100%;
padding: 6px;
background: #4caf50;
color: white;
border: 1px solid #4caf50;
border-radius: 4px;
font-size: 11px;
cursor: pointer;
transition: all 0.2s;
}

.col-status {
width: 12%;
min-width: 140px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
height: 100%;
}

.api-status {
display: flex;
align-items: center;
gap: 6px;
font-size: 10px;
margin-bottom: 8px;
flex-wrap: wrap;
align-self: flex-end;
margin-top: auto;
}

.help-buttons-row {
display: flex;
gap: 4px;
width: 100%;
margin-top: 0;
align-self: flex-start;
}

.indicator {
width: 10px;
height: 10px;
border-radius: 50%;
display: inline-block;
}

.indicator.red {
background-color: #f44336;
}

.indicator.yellow {
background-color: #ff9800;
}

.indicator.green {
background-color: #4caf50;
}

.btn-help, .btn-help-old, .btn-buy {
padding: 3px 5px;
font-size: 9px;
flex: 1;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-radius: 3px;
cursor: pointer;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.main-content {
display: flex;
flex: 1;
min-height: 0;
position: relative;
z-index: 5;
margin-top: 0;
gap: 8px;
padding: 8px;
}

/* ========== ЛЕВАЯ ПАНЕЛЬ ========== */
.sidebar-left {
width: 12%;
min-width: 160px;
background-color: #1e1e1e;
padding: 12px;
border-radius: 5px;
border: 1px solid #333;
transition: all 0.3s;
min-height: 0;
display: flex;
flex-direction: column;
gap: 12px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #4caf50 #333;
}

.sidebar-left::-webkit-scrollbar {
width: 6px;
}

.sidebar-left::-webkit-scrollbar-track {
background: #333;
}

.sidebar-left::-webkit-scrollbar-thumb {
background: #4caf50;
border-radius: 3px;
}

.sidebar-left h3 {
margin-bottom: 10px;
color: #4caf50;
font-size: 13px;
text-align: center;
white-space: nowrap;
}

.input-group {
margin-bottom: 10px;
}

.input-group label {
display: block;
font-size: 10px;
color: #aaa;
margin-bottom: 4px;
white-space: nowrap;
}

.input-group input {
width: 100%;
padding: 5px;
background: #252525;
color: white;
border: 1px solid #333;
border-radius: 4px;
font-size: 10px;
transition: all 0.3s;
}

.demo-blocked {
pointer-events: none !important;
opacity: 0.5 !important;
background-color: #2a2a2a !important;
}

.search-box {
margin: 8px 0;
position: relative;
}

.search-box input {
width: 100%;
padding: 5px;
background: #252525;
color: white;
border: 1px solid #333;
border-radius: 4px;
font-size: 10px;
transition: all 0.3s;
}

.search-results {
position: absolute;
z-index: 1000;
background: #252525;
border: 1px solid #333;
border-radius: 4px;
max-height: 180px;
overflow-y: auto;
width: 100%;
margin-top: 2px;
}

.search-result-item {
padding: 6px 8px;
cursor: pointer;
font-size: 11px;
border-bottom: 1px solid #333;
}

.search-result-item:hover {
background: #333;
}

.action-buttons {
display: flex;
flex-direction: column;
gap: 6px;
margin-top: 8px;
}

.btn {
padding: 6px 8px;
background: #333;
color: white;
border: 1px solid #444;
border-radius: 4px;
cursor: pointer;
font-size: 10px;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
flex-shrink: 1;
}

.btn:hover:not(:disabled) {
background: #444;
}

.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}

/* ========== РИСК-СТАТИСТИКА ========== */
.risk-statistics {
margin-top: 10px;
padding: 10px;
border-radius: 5px;
background: rgba(0,0,0,0.2);
border-top: 2px solid #333;
}

.risk-stats-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}

.risk-stats-header h4 {
font-size: 11px;
margin: 0;
color: #ff9800;
}

.risk-canvas-container {
width: 100%;
height: 40px;
margin-bottom: 10px;
position: relative;
}

#riskCanvas {
width: 100%;
height: 30px;
display: block;
border-radius: 4px;
}

.risk-arrow {
position: absolute;
top: 0;
width: 4px;
height: 30px;
background: white;
border: 1px solid #333;
transform: translateX(-50%);
pointer-events: none;
box-shadow: 0 0 5px rgba(255,255,255,0.5);
border-radius: 2px;
}

.risk-stats-actions {
display: flex;
flex-direction: column;
gap: 5px;
margin-top: 10px;
}

.risk-stats-actions .btn {
width: 100%;
padding: 4px;
font-size: 9px;
}

.btn-reset-stats {
background: #666;
border-color: #555;
position: relative;
cursor: not-allowed;
opacity: 0.7;
}

.btn-reset-stats.active {
background: #f44336;
border-color: #d32f2f;
cursor: pointer;
opacity: 1;
}

.btn-reset-stats .tooltip-text {
visibility: hidden;
width: 140px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 100;
bottom: 125%;
left: 50%;
margin-left: -70px;
opacity: 0;
transition: opacity 0.3s;
font-size: 9px;
pointer-events: none;
}

.btn-reset-stats:hover .tooltip-text {
visibility: visible;
opacity: 1;
}

.btn-chart-stats {
background: #2196f3;
border-color: #2196f3;
}

/* ========== ЦЕНТРАЛЬНАЯ ОБЛАСТЬ С ГРАФИКОМ ========== */
.chart-area {
width: 76%;
min-width: 400px;
padding: 0;
display: flex;
flex-direction: column;
height: 100%;
gap: 8px;
}

.chart-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
padding: 8px;
background: #252525;
border-radius: 5px;
flex-wrap: wrap;
gap: 6px;
height: auto;
min-height: 45px;
transition: all 0.3s;
}

.instrument-select-wrapper {
display: flex;
align-items: center;
gap: 3px;
position: relative;
}

#selectInstrument {
padding: 6px 8px;
background: #333;
color: white;
border: 1px solid #444;
border-radius: 4px;
font-size: 11px;
transition: all 0.3s;
min-width: 140px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

#btnDeleteSelectedInstrument {
margin-left: 0;
width: 26px;
height: 30px;
padding: 0;
font-size: 14px;
background: #f44336;
border-color: #d32f2f;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

#btnDeleteSelectedInstrument:hover:not(:disabled) {
background: #d32f2f;
transform: none;
}

.timeframe-wrapper {
display: flex;
align-items: center;
gap: 3px;
}

#selectTimeframe {
padding: 6px 8px;
background: #333;
color: white;
border: 1px solid #444;
border-radius: 4px;
font-size: 11px;
transition: all 0.3s;
min-width: 85px;
}

#chartTypeSelector {
padding: 6px 8px;
background: #333;
color: white;
border: 1px solid #444;
border-radius: 4px;
font-size: 11px;
transition: all 0.3s;
min-width: 85px;
cursor: pointer;
}

#chartTypeSelector:hover {
background: #444;
}

.btn-center-price,
.btn-toggle-levels {
padding: 6px 8px;
background: #ff9800;
color: white;
border: 1px solid #ff9800;
border-radius: 4px;
font-size: 11px;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 3px;
white-space: nowrap;
flex-shrink: 0;
}

.btn-center-price:hover,
.btn-toggle-levels:hover {
background: #f57c00;
}

.btn-toggle-levels.active {
background: #666;
border-color: #666;
}

.direction-selector,
.profile-selector {
display: flex;
gap: 4px;
flex-wrap: wrap;
flex-shrink: 1;
min-width: 0;
}

.dir-btn,
.profile-btn {
padding: 4px 6px;
background: #333;
color: #aaa;
border: 1px solid #444;
border-radius: 4px;
cursor: pointer;
font-size: 9px;
transition: all 0.2s;
white-space: nowrap;
flex-shrink: 0;
min-width: auto;
overflow: hidden;
text-overflow: ellipsis;
}

.dir-btn.active {
color: white;
}

.dir-btn.active#btnLong {
background: #4caf50;
border-color: #4caf50;
}

.dir-btn.active#btnShort {
background: #f44336;
border-color: #f44336;
}

.profile-btn.active {
background: #2196f3;
color: white;
border-color: #2196f3;
}

.profile-btn.auto-selected {
background: #4caf50;
color: white;
border-color: #4caf50;
}

.profile-info {
font-size: 10px;
color: #aaa;
padding: 4px 6px;
background: #1a1a1a;
border-radius: 4px;
border: 1px solid #333;
flex-shrink: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

/* ========== КОНТЕЙНЕР ГРАФИКА - ИСПРАВЛЕНО ========== */
.chart-container {
flex: 1;
background: #252525;
border-radius: 5px;
overflow: hidden;
min-height: 350px;
position: relative;
transition: all 0.3s;
}

#mainChart {
width: 100% !important;
height: 100% !important;
position: absolute;
top: 0;
left: 0;
}

.btn-save-levels {
position: absolute;
top: 10px;
left: 10px;
background: #ff9800;
color: white;
border: 2px solid #e08900;
border-radius: 6px;
padding: 8px 15px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
z-index: 20;
box-shadow: 0 2px 10px rgba(255, 152, 0, 0.3);
pointer-events: auto;
}

.btn-save-levels:hover {
background: #f57c00;
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.chart-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 10;
}

.chart-title {
position: absolute;
top: 8px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.6);
color: white;
padding: 3px 10px;
border-radius: 12px;
font-size: 12px;
font-weight: bold;
pointer-events: none;
backdrop-filter: blur(2px);
z-index: 15;
}

.chart-spinner {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
font-size: 14px;
z-index: 20;
}

.spinner {
width: 35px;
height: 35px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top: 3px solid #2196f3;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 12px;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* ========== ПАНЕЛЬ ИЗБРАННОГО - БАЗОВЫЕ СТИЛИ ========== */
.favorites-container {
margin: 0;
padding: 10px;
border-radius: 5px;
transition: all 0.3s;
flex-shrink: 0;
min-height: 120px;
width: 100%;
border: 1px solid #333;
}

.favorites-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}

.favorites-header h4 {
font-size: 11px;
margin: 0;
}

.favorites-update-timer {
font-size: 9px;
font-weight: normal;
}

.favorites-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 5px;
width: 100%;
}

.favorite-card {
position: relative;
padding: 6px;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
border: 1px solid #444;
background: #1a1a1a;
}

.favorite-card:hover {
border-color: #2196f3;
background: #252525;
}

.favorite-card:hover .favorite-remove {
display: block;
}

.favorite-symbol {
font-weight: bold;
font-size: 11px;
margin-bottom: 2px;
}

.favorite-price {
font-size: 10px;
}

.favorite-change {
font-size: 9px;
}

.favorite-change.positive {
color: #4caf50;
}

.favorite-change.negative {
color: #f44336;
}

.favorite-remove {
display: none;
position: absolute;
top: 2px;
right: 2px;
width: 16px;
height: 16px;
background: #f44336;
color: white;
border: none;
border-radius: 3px;
font-size: 10px;
cursor: pointer;
padding: 0;
line-height: 1;
}

.favorite-remove:hover {
opacity: 0.8;
}

.add-favorite-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 1px dashed #444;
}

.favorite-add-icon {
font-size: 20px;
}

.favorite-add-text {
font-size: 9px;
margin-top: 2px;
}

/* ========== ПРАВАЯ ПАНЕЛЬ ========== */
.sidebar-right {
width: 12%;
min-width: 160px;
background-color: #1e1e1e;
padding: 12px;
border-radius: 5px;
border: 1px solid #333;
transition: all 0.3s;
min-height: 0;
display: flex;
flex-direction: column;
gap: 12px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #2196f3 #333;
}

.sidebar-right::-webkit-scrollbar {
width: 6px;
}

.sidebar-right::-webkit-scrollbar-track {
background: #333;
}

.sidebar-right::-webkit-scrollbar-thumb {
background: #2196f3;
border-radius: 3px;
}

.sidebar-right h3 {
display: none;
}

/* ========== РИСК МЕНЕДЖМЕНТ ========== */
.risk-section {
flex: 1;
min-height: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 10px;
}

.risk-section h3 {
margin-bottom: 8px;
color: #2196f3;
font-size: 13px;
text-align: center;
white-space: nowrap;
flex-shrink: 0;
display: block;
}

.risk-inputs-row {
display: flex;
gap: 8px;
margin-bottom: 10px;
flex-wrap: wrap;
}

.risk-inputs-row .input-group {
flex: 1 1 100px;
margin-bottom: 0;
}

.risk-selector {
display: flex;
gap: 6px;
margin-bottom: 6px;
flex-wrap: wrap;
}

.risk-btn {
flex: 1 1 50px;
padding: 6px;
background: #333;
color: #aaa;
border: 1px solid #444;
border-radius: 4px;
cursor: pointer;
font-size: 11px;
transition: all 0.3s;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}

.risk-btn.active {
background: #2196f3;
color: white;
border-color: #2196f3;
}

/* ========== АДАПТИВНЫЙ РИСК ========== */
.adaptive-risk-toggle {
display: flex;
align-items: center;
margin: 8px 0;
padding: 5px 8px;
background: rgba(255, 255, 255, 0.05);
border-radius: 4px;
font-size: 11px;
}

.adaptive-risk-toggle .switch-label {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
width: 100%;
}

.adaptive-risk-toggle input[type="checkbox"] {
width: 16px;
height: 16px;
cursor: pointer;
accent-color: #2196f3;
}

.adaptive-risk-toggle .tooltip-icon {
margin-left: auto;
color: #aaa;
font-size: 12px;
cursor: help;
}

/* ========== СХЕМА TP ========== */
.tp-scheme-box {
background: #252525;
border-radius: 5px;
border: 1px solid #333;
padding: 8px;
transition: all 0.3s;
}

.tp-scheme-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
flex-wrap: wrap;
gap: 4px;
}

.tp-scheme-header h4 {
font-size: 11px;
color: #aaa;
margin: 0;
white-space: nowrap;
}

.total-lots {
font-size: 12px;
color: #4caf50;
font-weight: bold;
background: #1a1a1a;
padding: 3px 6px;
border-radius: 3px;
border: 1px solid #333;
transition: all 0.3s;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 80px;
text-align: center;
}

.tp-scheme {
font-family: 'Courier New', monospace;
font-size: 12px;
color: #4caf50;
padding: 6px 4px;
background: #1a1a1a;
border-radius: 4px;
text-align: center;
letter-spacing: 1px;
line-height: 1.4;
min-height: 36px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
margin-bottom: 8px;
word-break: break-all;
white-space: normal;
overflow: visible;
width: 100%;
}

.tp-total-profit {
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px;
background: #1a1a1a;
border-radius: 4px;
border: 1px solid #333;
transition: all 0.3s;
flex-wrap: wrap;
gap: 4px;
}

.tp-total-profit-label {
font-size: 10px;
color: #aaa;
white-space: nowrap;
}

.tp-total-profit-value {
font-size: 12px;
font-weight: bold;
color: #ff9800;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 80px;
}

.tp3-profit {
font-size: 10px;
color: #aaa;
margin-top: 2px;
text-align: right;
}

.tp3-profit .tp3-value {
font-weight: bold;
color: #ff9800;
}

.rr-box {
background: #252525;
border-radius: 5px;
border: 1px solid #333;
padding: 8px;
transition: all 0.3s;
}

.rr-box h4 {
font-size: 11px;
color: #aaa;
margin-bottom: 6px;
text-align: center;
white-space: nowrap;
}

.rr-value {
font-size: 14px;
font-weight: bold;
color: #4caf50;
text-align: center;
transition: all 0.3s;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

/* ========== ПЕРЕКЛЮЧАТЕЛЬ ТЕМ ========== */
.theme-switcher {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 8px;
position: relative;
width: 100%;
}

.theme-switcher span {
font-size: 9px;
color: #aaa;
margin-bottom: 5px;
text-align: center;
}

.theme-flower {
position: relative;
width: 80px;
height: 80px;
margin: 0 auto 5px;
}

.theme-lamp {
width: 24px;
height: 24px;
border-radius: 50%;
cursor: pointer;
border: 2px solid rgba(255, 255, 255, 0.8);
transition: all 0.3s ease;
position: absolute;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.theme-lamp:hover {
transform: scale(1.15);
z-index: 10;
}

.theme-lamp.active {
border-color: #fff;
box-shadow: 0 0 12px currentColor;
transform: scale(1.25);
z-index: 20;
}

.theme-lamp[data-theme="gzhel"] {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 50%, #1e4a7a 100%);
color: #1e4a7a;
width: 28px;
height: 28px;
z-index: 5;
}

.theme-lamp[data-theme="dark"] {
top: 0;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
color: #4caf50;
}

.theme-lamp[data-theme="light"] {
top: 15%;
right: 5px;
background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
color: #2196f3;
border: 1px solid #ddd;
}

.theme-lamp[data-theme="monochrome"] {
bottom: 15%;
right: 5px;
background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
color: #333333;
}

.theme-lamp[data-theme="khokhloma"] {
bottom: 0;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(135deg, #b22222 0%, #d4af37 100%);
color: #b8860b;
}

.theme-lamp[data-theme="gzhel-dark"] {
bottom: 15%;
left: 5px;
background: linear-gradient(135deg, #0a1a2f 0%, #1a2b4a 50%, #4a7db0 100%);
color: #b0c9f0;
}

.theme-lamp[data-theme="zhostovo-light"] {
top: 15%;
left: 5px;
background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #f48fb1 100%);
color: #880e4f;
border: 2px solid rgba(255, 255, 255, 0.9);
}

/* ========== РЕЖИМЫ ========== */
.mode-indicator {
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 8px;
border-radius: 4px;
font-weight: bold;
flex-wrap: wrap;
gap: 4px;
cursor: pointer;
width: 100%;
overflow: hidden;
}

.mode-label {
font-size: 12px;
letter-spacing: 1px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 0 1 auto;
}

.mode-days {
font-size: 10px;
font-family: 'Courier New', monospace;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 0 1 auto;
max-width: 100px;
}

.trial-info {
font-size: 9px;
margin-top: 4px;
padding: 3px;
background: rgba(255, 152, 0, 0.2);
border-radius: 4px;
display: flex;
justify-content: space-between;
align-items: center;
}

.trial-days {
font-weight: bold;
color: #ff9800;
}

.mode-last-day {
background: rgba(244, 67, 54, 0.2) !important;
border-color: #f44336 !important;
color: #f44336 !important;
animation: pulse 2s infinite;
}

@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.7; }
100% { opacity: 1; }
}

/* ========== ИНДЕКСЫ ВНУТРИ ТЕЙКОВ ========== */
.tp-item-narrow {
flex: 1 1 0;
min-width: 140px;
background: #252525;
border-right: 1px solid #444;
padding: 4px 2px;
display: flex;
flex-direction: column;
align-items: center;
transition: all 0.3s;
height: 148px;
margin: 0;
position: relative;
overflow: hidden;
}

.tp-index-info {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 2px 4px;
margin-bottom: 10px;
z-index: 10;
position: relative;
}

.tp-index-header {
display: flex;
align-items: center;
gap: 4px;
flex: 1;
}

.tp-index-name {
font-weight: bold;
font-size: 9px;
text-transform: uppercase;
white-space: nowrap;
}

.tp-index-price {
font-weight: bold;
font-size: 9px;
white-space: nowrap;
}

.tp-index-change {
font-size: 8px;
font-weight: bold;
white-space: nowrap;
min-width: 35px;
text-align: right;
}

.tp-index-change.positive {
color: #4caf50;
}

.tp-index-change.negative {
color: #f44336;
}

.mini-chart {
width: 100%;
max-width: 120px;
height: 32px;
z-index: 1;
opacity: 0.8;
flex-shrink: 0;
}

.tp-item-narrow label {
font-size: 13px;
color: #aaa;
margin-bottom: 2px;
text-transform: uppercase;
font-weight: bold;
letter-spacing: 0.5px;
border-bottom: 1px dashed #444;
padding-bottom: 2px;
width: 100%;
text-align: center;
z-index: 10;
position: relative;
}

.tp-header-row {
display: flex;
justify-content: space-between;
width: 100%;
margin-bottom: 1px;
font-size: 7px;
color: #666;
text-transform: uppercase;
letter-spacing: 0.3px;
z-index: 10;
position: relative;
padding: 0 2px;
}

.tp-header-row span {
flex: 1;
text-align: center;
}

.tp-data-row {
display: flex;
justify-content: space-between;
width: 100%;
margin-bottom: 2px;
z-index: 10;
position: relative;
padding: 0 2px;
}

.tp-data-row .tp-price,
.tp-data-row .tp-lots,
.tp-data-row .tp-profit {
flex: 1;
text-align: center;
font-size: 14px;
font-weight: bold;
background: transparent;
border: none;
padding: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.tp-item-narrow::after {
content: '';
position: absolute;
right: 0;
top: 10%;
height: 80%;
width: 1px;
background: linear-gradient(to bottom, transparent, #444, transparent);
}

.tp-item-narrow:last-child {
border-right: none;
}

.tp-item-narrow:last-child::after {
display: none;
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
display: none;
justify-content: center;
align-items: center;
z-index: 2000;
}

.modal-content {
background: #1e1e1e;
border-radius: 8px;
padding: 18px;
width: 550px;
max-width: 90%;
max-height: 80vh;
border: 1px solid #333;
transition: all 0.3s;
display: flex;
flex-direction: column;
}

.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 1px solid #333;
}

.modal-header h3 {
color: #2196f3;
margin: 0;
font-size: 16px;
}

.close-modal {
background: none;
border: none;
color: #aaa;
font-size: 20px;
cursor: pointer;
padding: 0;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}

.close-modal:hover {
color: white;
}

.modal-body {
margin-bottom: 15px;
overflow-y: auto;
flex: 1;
}

.modal-section {
margin-bottom: 20px;
}

.modal-section h4 {
margin-bottom: 12px;
color: #4caf50;
font-size: 14px;
border-bottom: 1px solid #333;
padding-bottom: 6px;
}

.saved-instruments-list {
max-height: 180px;
overflow-y: auto;
margin-bottom: 15px;
background: #252525;
border-radius: 5px;
border: 1px solid #333;
padding: 8px;
}

.saved-instrument-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px;
background: #1a1a1a;
border: 1px solid #333;
border-radius: 4px;
margin-bottom: 6px;
cursor: pointer;
transition: all 0.2s;
}

.saved-instrument-item:hover {
background: #2a2a2a;
}

.saved-instrument-symbol {
font-weight: bold;
color: #4caf50;
font-size: 13px;
}

.saved-instrument-name {
color: #aaa;
font-size: 11px;
}

.saved-instrument-stats {
display: flex;
gap: 12px;
font-size: 10px;
color: #888;
margin-top: 3px;
flex-wrap: wrap;
}

.saved-instrument-actions {
display: flex;
gap: 4px;
}

.delete-instrument-btn-small {
background: #f44336;
color: white;
border: none;
border-radius: 3px;
padding: 5px 8px;
font-size: 11px;
cursor: pointer;
transition: all 0.2s;
}

.delete-instrument-btn-small:hover {
background: #d32f2f;
}

.modal-footer {
display: flex;
justify-content: flex-end;
gap: 8px;
flex-shrink: 0;
flex-wrap: wrap;
}

.btn-primary {
background: #2196f3;
color: white;
border-color: #2196f3;
}

.btn-buy {
background: #ff9800;
color: white;
border: 1px solid #ff9800;
border-radius: 4px;
padding: 6px 12px;
font-size: 11px;
font-weight: bold;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
}

.btn-buy:hover:not(:disabled) {
background: #f57c00;
transform: scale(1.02);
}

.btn-buy:disabled {
background: #666;
border-color: #444;
cursor: not-allowed;
opacity: 0.5;
}

/* ========== МОДАЛЬНОЕ ОКНО АДАПТИВНОГО РИСКА ========== */
.risk-adaptive-modal .modal-content {
max-width: 400px;
}

.risk-adaptive-modal p {
margin-bottom: 15px;
line-height: 1.5;
}

.risk-adaptive-modal .modal-footer {
justify-content: center;
gap: 15px;
}

/* ========== СКРЫВАЕМ СТАРЫЕ ЭЛЕМЕНТЫ ========== */
.sidebar-right > #btnCalculate,
.sidebar-right > button#btnCalculate {
display: none;
}

.sidebar-right > #riskStatistics,
.sidebar-right > div#riskStatistics {
display: none;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1400px) {
.tp-item-narrow {
min-width: 120px;
}
.tp-data-row .tp-price,
.tp-data-row .tp-lots,
.tp-data-row .tp-profit {
font-size: 10px;
}
}

@media (max-width: 1200px) {
.tp-item-narrow {
min-width: 110px;
}
.tp-index-info {
font-size: 8px;
}
.tp-index-name,
.tp-index-price {
font-size: 8px;
}
.tp-index-change {
font-size: 7px;
}
.tp-data-row .tp-price,
.tp-data-row .tp-lots,
.tp-data-row .tp-profit {
font-size: 9px;
}
.mini-chart {
height: 28px;
}
}

@media (max-width: 900px) {
.col-trade {
overflow-x: auto;
}
.tp-container {
min-width: 100%;
}
.main-content {
flex-direction: column;
}
.sidebar-left,
.chart-area,
.sidebar-right {
width: 100% !important;
min-width: 100% !important;
}
.chart-area {
min-height: 450px;
}
.chart-container {
min-height: 300px;
}
.favorites-container {
min-height: 100px;
}
.risk-section,
.tests-section {
flex: none;
min-height: auto;
}
}

@media (max-width: 600px) {
.tp-item-narrow {
min-width: 100px;
}
.tp-item-narrow label {
font-size: 9px;
}
.tp-header-row {
font-size: 6px;
}
.tp-index-info {
font-size: 7px;
}
.tp-index-name,
.tp-index-price {
font-size: 7px;
}
.tp-index-change {
font-size: 6px;
}
.tp-data-row .tp-price,
.tp-data-row .tp-lots,
.tp-data-row .tp-profit {
font-size: 8px;
}
.mini-chart {
height: 24px;
}
.chart-header {
flex-direction: column;
gap: 8px;
padding: 8px;
}
.direction-selector,
.profile-selector {
width: 100%;
justify-content: center;
gap: 6px;
}
.dir-btn,
.profile-btn {
flex: 1;
min-width: 65px;
font-size: 9px;
padding: 5px 4px;
}
#selectInstrument,
#selectTimeframe,
#chartTypeSelector {
width: 100%;
font-size: 10px;
}
.mode-indicator {
flex-direction: column;
align-items: flex-start;
}
}

@media (min-width: 1920px) {
.tp-item-narrow {
min-width: 180px;
flex: 1 1 0;
}
.tp-data-row .tp-price,
.tp-data-row .tp-lots,
.tp-data-row .tp-profit {
font-size: 12px;
}
.chart-container {
min-height: 450px;
}
.favorites-container {
min-height: 140px;
}
}

@media (min-width: 2560px) {
.tp-item-narrow {
min-width: 220px;
flex: 1 1 0;
}
.tp-data-row .tp-price,
.tp-data-row .tp-lots,
.tp-data-row .tp-profit {
font-size: 14px;
}
}

/* ========== КНОПКИ ПОМОЩИ (SVG) ========== */
.help-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1); /* Белые иконки на тёмном фоне */
    transition: filter 0.2s ease;
}

.btn-help:hover .help-icon,
.btn-help-old:hover .help-icon {
    filter: brightness(0) invert(1); /* Остаются белыми при наведении */
}

/* Адаптация под светлые темы */
body.light-theme .help-icon,
body.gzhel-theme .help-icon,
body.zhostovo-light-theme .help-icon {
    filter: brightness(0); /* Чёрные иконки на светлом фоне */
}

body.light-theme .btn-help:hover .help-icon,
body.gzhel-theme .btn-help:hover .help-icon,
body.zhostovo-light-theme .btn-help:hover .help-icon,
body.light-theme .btn-help-old:hover .help-icon,
body.gzhel-theme .btn-help-old:hover .help-icon,
body.zhostovo-light-theme .btn-help-old:hover .help-icon {
    filter: brightness(0); /* Остаются чёрными при наведении */
}

/* Монохромная тема */
body.monochrome-theme .help-icon {
    filter: brightness(0.5);
}

/* ========== КНОПКИ ПОДЕЛИТЬСЯ ========== */
.share-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-title {
    font-size: 12px;
    color: #ff9800;
    text-align: center;
    margin-bottom: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 5px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0.9);
    transition: all 0.2s ease;
}

.share-button:hover .share-icon {
    filter: brightness(1.2);
}

/* Цвета при наведении */
.share-vk:hover {
    background: #0077FF;
    border-color: #0077FF;
}

.share-telegram:hover {
    background: #26A5E4;
    border-color: #26A5E4;
}

.share-ok:hover {
    background: #EE8208;
    border-color: #EE8208;
}

.share-max:hover {
    background: #FF4B4B;
    border-color: #FF4B4B;
}

.share-dzen:hover {
    background: #333333;
    border-color: #333333;
}

.share-yandex:hover {
    background: #FFCC00;
    border-color: #FFCC00;
}

/* Адаптация под светлую тему */
body.light-theme .share-button {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .share-title {
    color: #ff9800;
}

/* Адаптация под мобильные */
@media (max-width: 600px) {
    .share-button {
        width: 40px;
        height: 40px;
    }
    
    .share-icon {
        width: 22px;
        height: 22px;
    }
}

/* ========== СТИЛИ ДЛЯ ИНДИКАТОРА ОШИБКИ СТОП-ЛОССА ========== */
#stopLossGroup {
    position: relative;
}

.stop-loss-error-icon {
    display: none; /* Скрыто по умолчанию */
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 14px;
    font-weight: bold;
    cursor: help; /* Показывает, что есть подсказка */
    z-index: 5;
    pointer-events: auto; /* Важно, чтобы работал title */
}

/* Красная рамка для поля при ошибке */
.stop-loss-error {
    border-color: #f44336 !important;
    border-width: 2px !important;
    background-color: rgba(244, 67, 54, 0.05) !important;
}

/* Стили для адаптивного стопа */
.stop-loss-adaptive {
    background-color: rgba(255, 152, 0, 0.1);
    border-color: #ff9800 !important;
    border-width: 2px !important;
}

/* Анимация пульсации (оставим на всякий случай) */
@keyframes pulse-red {
    0% { border-color: #f44336; }
    50% { border-color: #ff8a80; }
    100% { border-color: #f44336; }
}

.stop-loss-error {
    animation: pulse-red 1s infinite;
}
/* Исправление читаемости в светлых темах */
body.light-theme .help-modal .modal-content,
body.light-theme .help-modal .help-content,
body.light-theme .help-modal p,
body.light-theme .help-modal li,
body.light-theme .help-modal .micro-block,
body.light-theme .help-modal .quote-block p,
body.light-theme .help-modal .author-quote p,
body.light-theme .help-modal .story-block p,
body.light-theme .help-modal .warning-block p,
body.light-theme .help-modal .tip-block p,
body.light-theme .help-modal .insight-block p {
    color: #333333 !important;
}

body.light-theme .help-modal .modal-header h3 {
    color: #1976d2 !important;
}

body.light-theme .help-modal h4 {
    color: #2e7d32 !important;
    border-left-color: #2e7d32 !important;
}

body.light-theme .help-modal .micro-block {
    background: rgba(0, 0, 0, 0.02) !important;
    border-left-color: #2196f3 !important;
}

body.light-theme .help-modal table {
    background: #ffffff !important;
}

body.light-theme .help-modal th {
    background: #f0f0f0 !important;
    color: #333333 !important;
}

body.light-theme .help-modal td {
    border-bottom-color: #dddddd !important;
}

body.light-theme .help-modal .quote-block {
    background: rgba(255, 193, 7, 0.05) !important;
}

body.light-theme .help-modal .warning-block {
    background: rgba(244, 67, 54, 0.05) !important;
}

body.light-theme .help-modal .tip-block {
    background: rgba(33, 150, 243, 0.05) !important;
}

/* Дополнительные стили для модальных окон */

.help-modal .modal-content {
    background: #1e1e1e;
    color: #e0e0e0;
}

/* Улучшенная читаемость во всех темах */
.help-modal .micro-block,
.help-modal .warning-block,
.help-modal .tip-block,
.help-modal .insight-block,
.help-modal .story-block,
.help-modal .author-quote,
.help-modal .quote-block {
    color: #e0e0e0;
}

.help-modal .micro-block p,
.help-modal .micro-block li,
.help-modal .warning-block p,
.help-modal .tip-block p,
.help-modal .insight-block p {
    color: #e0e0e0;
}

/* Стили для заголовков с двоеточиями */
.help-modal h4 {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.help-modal h4 + p strong,
.help-modal p strong:first-child {
    display: inline-block;
    margin-right: 5px;
}

/* Таблицы */
.help-modal .help-table {
    width: 100%;
    border-collapse: collapse;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
}

.help-modal .help-table th {
    background: #333;
    color: #ffc107;
    font-weight: 600;
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #ffc107;
}

.help-modal .help-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #444;
    color: #e0e0e0;
}

.help-modal .help-table tr:last-child td {
    border-bottom: none;
}

/* Матрица - улучшенная видимость */
.help-modal .matrix-block {
    background: #0a0a0a;
    color: #00ff00;
    border-left: 6px solid #00ff00;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 8px #00ff00;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    background-image: repeating-linear-gradient(0deg, rgba(0,255,0,0.05) 0px, rgba(0,255,0,0.05) 2px, transparent 2px, transparent 4px);
    box-shadow: 0 0 15px rgba(0,255,0,0.2);
}

.help-modal .matrix-block p {
    color: #00ff00;
    margin: 5px 0;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 0 5px #00ff00;
}

.help-modal .matrix-dialogue {
    color: #00ff00;
    display: block;
    margin: 8px 0;
    font-weight: 500;
    text-shadow: 0 0 5px #00ff00;
}

/* Карточки оплаты для светлых тем */
.help-modal .pricing-card {
    background: #2a2a2a;
    color: #ffffff;
}

.help-modal .pricing-card .pricing-title,
.help-modal .pricing-card .pricing-price,
.help-modal .pricing-card .pricing-desc,
.help-modal .pricing-card .pricing-old-price,
.help-modal .pricing-card .pricing-savings {
    color: #ffffff;
}

.help-modal .pricing-card .pricing-old-price {
    color: #aaaaaa;
}

.help-modal .pricing-card .btn-buy {
    color: #ffffff;
    background: transparent;
}

/* Кодовый блок */
.help-modal .code-block {
    background: #2a2a2a;
    padding: 10px;
    border-radius: 4px;
    color: #ffc107;
    font-family: monospace;
    margin: 15px 0;
    border: 1px solid #444;
}

/* Текст заметок */
.help-modal .note-text {
    color: #e0e0e0;
    font-style: italic;
    margin-top: 10px;
}

/* Стили для светлых тем */
body.light-theme .help-modal .modal-content,
body.gzhel-theme .help-modal .modal-content {
    background: #f5f5f5;
    color: #333333;
}

body.light-theme .help-modal .micro-block,
body.light-theme .help-modal .warning-block,
body.light-theme .help-modal .tip-block,
body.light-theme .help-modal .insight-block,
body.light-theme .help-modal .story-block,
body.light-theme .help-modal .author-quote,
body.light-theme .help-modal .quote-block,
body.gzhel-theme .help-modal .micro-block,
body.gzhel-theme .help-modal .warning-block,
body.gzhel-theme .help-modal .tip-block,
body.gzhel-theme .help-modal .insight-block,
body.gzhel-theme .help-modal .story-block,
body.gzhel-theme .help-modal .author-quote,
body.gzhel-theme .help-modal .quote-block {
    color: #333333;
    background: rgba(0,0,0,0.03);
}

body.light-theme .help-modal .micro-block p,
body.light-theme .help-modal .micro-block li,
body.light-theme .help-modal .warning-block p,
body.light-theme .help-modal .tip-block p,
body.light-theme .help-modal .insight-block p,
body.gzhel-theme .help-modal .micro-block p,
body.gzhel-theme .help-modal .micro-block li,
body.gzhel-theme .help-modal .warning-block p,
body.gzhel-theme .help-modal .tip-block p,
body.gzhel-theme .help-modal .insight-block p {
    color: #333333;
}

body.light-theme .help-modal .help-table,
body.gzhel-theme .help-modal .help-table {
    background: #ffffff;
}

body.light-theme .help-modal .help-table td,
body.gzhel-theme .help-modal .help-table td {
    color: #333333;
    border-bottom: 1px solid #dddddd;
}

body.light-theme .help-modal .pricing-card,
body.gzhel-theme .help-modal .pricing-card {
    background: #ffffff;
    color: #333333;
    border: 2px solid;
}

body.light-theme .help-modal .pricing-card .pricing-title,
body.light-theme .help-modal .pricing-card .pricing-price,
body.light-theme .help-modal .pricing-card .pricing-desc,
body.light-theme .help-modal .pricing-card .pricing-savings,
body.gzhel-theme .help-modal .pricing-card .pricing-title,
body.gzhel-theme .help-modal .pricing-card .pricing-price,
body.gzhel-theme .help-modal .pricing-card .pricing-desc,
body.gzhel-theme .help-modal .pricing-card .pricing-savings {
    color: #333333;
}

body.light-theme .help-modal .matrix-block,
body.gzhel-theme .help-modal .matrix-block {
    background: #111111;
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
}

body.light-theme .help-modal .matrix-block .matrix-dialogue,
body.gzhel-theme .help-modal .matrix-block .matrix-dialogue {
    color: #00ff00;
}