/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== СВЕТЛАЯ ТЕМА - ФИОЛЕТОВАЯ (по умолчанию) ===== */
:root {
    --bg-primary: #f5f3ff;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #ede9fe;
    --text-primary: #1e1b4b;
    --text-secondary: #6366f1;
    --text-muted: #8b5cf6;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --border-color: #ddd6fe;
    --shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
    --shadow-lg: 0 4px 16px rgba(99, 102, 241, 0.15);
}

/* ===== ТЕМНАЯ ТЕМА ===== */
[data-theme="dark"] {
    --bg-primary: #0f0e17;
    --bg-secondary: #1a1625;
    --bg-card: #1e1b2e;
    --bg-hover: #2a2540;
    --text-primary: #e0d6ff;
    --text-secondary: #a78bfa;
    --text-muted: #8b5cf6;
    --accent-primary: #8b5cf6;
    --accent-secondary: #a78bfa;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --border-color: #2d2540;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 70px; /* Место для нижней навигации */
}

/* ===== ВЕРХНЯЯ ПАНЕЛЬ ===== */
.top-bar {
    background: var(--bg-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-bar-title {
    flex: 1;
    text-align: center;
}

.top-bar-title h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: var(--bg-hover);
}

.btn-icon:active {
    background: var(--bg-card);
}

/* ===== ОБЛАСТЬ КОНТЕНТА ===== */
.content-area {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.page {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== КАРТОЧКИ ===== */
.welcome-card,
.status-card,
.balance-card,
.form-card,
.bot-info-card,
.profit-card,
.settings-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.welcome-card h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ===== ШАГИ НАЧАЛА РАБОТЫ ===== */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-item.completed .step-icon {
    background: var(--accent-primary);
    color: white;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.step-link {
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-top: 4px;
}

.step-link:hover {
    text-decoration: underline;
}

/* ===== СТАТУС И БАЛАНС ===== */
.status-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-danger);
    animation: pulse 2s infinite;
}

.status-indicator.connected {
    background: var(--accent-primary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.balance-card {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #45a049 100%);
    text-align: center;
    color: white;
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-value {
    font-size: 32px;
    font-weight: 700;
}

/* ===== ПОДКЛЮЧЕННЫЕ БИРЖИ ===== */
.connected-exchanges {
    margin-bottom: 16px;
}

.exchanges-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exchange-item-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.exchange-logo {
    font-size: 20px;
}

.exchange-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.exchange-status-mini {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.exchange-status-mini.connected {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

/* ===== БАЛАНСЫ ПО БИРЖАМ ===== */
.balances-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.total-balance {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #6366f1 100%);
    text-align: center;
    color: white;
    padding: 20px;
    border-radius: 16px;
}

.exchanges-balances {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exchange-balance-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.exchange-balance-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.exchange-balance-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== ВКЛАДКИ ===== */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--accent-primary);
    color: white;
}

/* ===== СПИСОК БОТОВ ===== */
.bots-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bot-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.bot-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bot-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
}

.bot-card-actions {
    display: flex;
    gap: 8px;
}

.btn-edit, .btn-delete {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-edit:hover {
    background: var(--bg-hover);
    color: var(--accent-secondary);
}

.btn-delete:hover {
    background: var(--bg-hover);
    color: var(--accent-danger);
}

.bot-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
}

.metric-value.positive {
    color: var(--accent-primary);
}

.metric-value.negative {
    color: var(--accent-danger);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
    margin-bottom: 20px;
}

/* ===== ФОРМЫ ===== */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.input-group input,
.select-custom {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s;
}

.input-group input:focus,
.select-custom:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 12px;
}

.select-custom {
    appearance: none;
    padding-right: 40px;
}

/* ===== СЛАЙДЕР ===== */
.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slider-btn:hover {
    background: var(--bg-hover);
}

.slider-track {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    position: relative;
    padding: 0 4px;
}

.slider-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.slider-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 2;
}

.slider-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.2);
}

.slider-value {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-top: 8px;
}

/* ===== КНОПКИ ===== */
.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--accent-primary);
    color: white;
}

.btn-success:hover {
    background: var(--accent-secondary);
}

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

/* ===== ИНФОРМАЦИОННАЯ КАРТОЧКА ===== */
.bot-info-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span:first-child {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-row span:nth-child(2) {
    font-weight: 600;
    font-size: 16px;
}

/* ===== ИСТОРИЯ ===== */
.profit-card {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    color: white;
    box-shadow: var(--shadow-lg);
    border: none;
}

.profit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.profit-label {
    font-size: 14px;
    opacity: 0.9;
}

.btn-share {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profit-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.profit-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.history-table {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.table-row:last-child {
    border-bottom: none;
}

.table-col {
    display: flex;
    align-items: center;
}

.profit-positive {
    color: var(--accent-primary);
    font-weight: 600;
}

/* ===== НАСТРОЙКИ ===== */
.settings-section {
    margin-bottom: 20px;
}

.settings-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: help;
}

.exchange-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exchange-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.exchange-item:hover {
    background: var(--bg-hover);
}

.exchange-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.exchange-logo {
    font-size: 24px;
}

.exchange-name {
    font-weight: 600;
    font-size: 16px;
}

.exchange-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.exchange-status.connected {
    background: rgba(76, 175, 80, 0.2);
    color: var(--accent-primary);
}

.exchange-status.disconnected {
    background: rgba(244, 67, 54, 0.2);
    color: var(--accent-danger);
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.settings-col h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ===== */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary);
    transition: 0.3s;
    border-radius: 28px;
}

.slider-switch:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider-switch {
    background-color: var(--accent-primary);
}

input:checked + .slider-switch:before {
    transform: translateX(22px);
}

/* ===== НИЖНЯЯ НАВИГАЦИЯ ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-item.active {
    color: var(--accent-primary);
}

.nav-icon {
    font-size: 24px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    cursor: pointer;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 480px) {
    .content-area {
        padding: 12px;
    }
    
    .welcome-card,
    .form-card,
    .settings-section {
        padding: 16px;
    }
    
    .balance-value,
    .profit-value {
        font-size: 28px;
    }
}

/* ===== КНОПКИ ПОДДЕРЖКИ ===== */
.support-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn-support {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.btn-support:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.btn-support .btn-icon {
    font-size: 20px;
}

.btn-support .btn-text {
    font-size: 14px;
    font-weight: 500;
}

/* ===== СЕЛЕКТОР АКТИВА ===== */
.asset-selector {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.asset-selector:hover {
    background: var(--bg-hover);
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 8px;
}

.asset-symbol {
    font-size: 18px;
    font-weight: 600;
}

.asset-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.asset-price span:first-child {
    font-size: 16px;
    font-weight: 600;
}

.asset-price span:last-child {
    font-size: 14px;
    color: var(--text-secondary);
}

.asset-chevron {
    color: var(--text-secondary);
    font-size: 12px;
}

.asset-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 8px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.asset-option {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.asset-option:hover {
    background: var(--bg-hover);
}

.asset-option-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 6px;
}

/* ===== СТАТУС БОТА (ЗЕЛЕНАЯ КАРТОЧКА) ===== */
.bot-status-card {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #45a049 100%);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    color: white;
}

.bot-status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.bot-status-icon {
    font-size: 32px;
}

.bot-status-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
}

.btn-delete-bot {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.btn-delete-bot:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bot-status-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bot-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.bot-status-row span:first-child {
    opacity: 0.9;
}

.bot-status-row span:last-child {
    font-weight: 600;
    font-size: 16px;
}

/* ===== СЕЛЕКТОР ДАТ ===== */
.date-range-selector {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.date-range-selector:hover {
    background: var(--bg-hover);
}

.date-icon {
    font-size: 20px;
}

.date-range-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

/* ===== БАННЕР УСПЕХА API ===== */
.api-success-banner {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-primary);
}

.success-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* ===== ИКОНКИ АКТИВОВ ===== */
.asset-icon-btc {
    color: #f7931a;
}

.asset-icon-eth {
    color: #627eea;
}

.asset-icon-sol {
    color: #9945ff;
}

.asset-icon-ton {
    color: #0088cc;
}

.asset-icon-bnb {
    color: #f3ba2f;
}

/* ===== СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ СВЕТЛОЙ ТЕМЫ ===== */
[data-theme="light"] .welcome-card,
[data-theme="light"] .form-card,
[data-theme="light"] .settings-section,
[data-theme="light"] .bot-card,
[data-theme="light"] .history-table {
    border: 1px solid var(--border-color);
}

[data-theme="light"] .status-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .btn-support {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .btn-support:hover {
    background: var(--bg-hover);
}

[data-theme="light"] .exchange-item {
    border: 1px solid var(--border-color);
}

[data-theme="light"] .exchange-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

[data-theme="light"] .asset-selector {
    border: 1px solid var(--border-color);
}

[data-theme="light"] .asset-selector:hover {
    border-color: var(--accent-primary);
}

[data-theme="light"] .date-range-selector {
    border: 1px solid var(--border-color);
}

[data-theme="light"] .date-range-selector:hover {
    border-color: var(--accent-primary);
}

[data-theme="light"] .table-header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

[data-theme="light"] .table-row {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .table-row:hover {
    background: var(--bg-hover);
}

[data-theme="light"] .bot-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .slider-dot {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
}

[data-theme="light"] .slider-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

[data-theme="light"] .input-group input,
[data-theme="light"] .select-custom {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .input-group input:focus,
[data-theme="light"] .select-custom:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

[data-theme="light"] .slider-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .slider-btn:hover {
    background: var(--bg-hover);
}

[data-theme="light"] .tab-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .tab-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

[data-theme="light"] .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .asset-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .bottom-nav {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

/* ===== УТИЛИТЫ ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-16 {
    margin-top: 16px;
}

.mb-16 {
    margin-bottom: 16px;
}
