:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --primary-dark: #4834D4;
    --secondary: #00CEC9;
    --success: #00B894;
    --danger: #E17055;
    --warning: #FDCB6E;
    --info: #74B9FF;
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-nav: rgba(255,255,255,0.95);
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-muted: #B2BEC3;
    --border-color: #DFE6E9;
    --shadow: 0 10px 40px rgba(0,0,0,0.06);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
    min-height: 100vh;
}

.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--bg-nav); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem; height: 70px;
    display: flex; align-items: center;
}
.nav-container { max-width: 1440px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-icon { font-size: 28px; animation: float 3s ease-in-out infinite; }
.brand-text { font-size: 24px; font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.brand-highlight { -webkit-text-fill-color: var(--primary); }
.brand-badge { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 20px; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-link { padding: 8px 16px; border-radius: 10px; color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 500; transition: var(--transition); cursor: pointer; }
.nav-link:hover { color: var(--text-primary); background: rgba(108,92,231,0.08); }
.nav-link.active { color: var(--primary); background: rgba(108,92,231,0.12); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.mode-badge { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.mode-badge.test { background: #FDCB6E; color: #2D3436; }
.mode-badge.live { background: #00B894; color: white; }
.theme-toggle { background: none; border: 1px solid var(--border-color); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; transition: var(--transition); }
.theme-toggle:hover { background: rgba(108,92,231,0.08); transform: rotate(15deg); }
.nav-status { display: flex; align-items: center; gap: 8px; padding: 4px 12px; background: rgba(0,184,148,0.1); border-radius: 20px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.online { background: var(--success); animation: pulse-dot 2s infinite; }
.status-text { font-size: 11px; font-weight: 600; color: var(--success); }

.main-content { max-width: 1440px; margin: 80px auto 0; padding: 0 1.5rem 2rem; }
.page { display: none; animation: fadeInUp 0.6s cubic-bezier(0.4,0,0.2,1); }
.page.active { display: block; }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 28px; font-weight: 700; background: linear-gradient(135deg, var(--text-primary), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-header p { color: var(--text-secondary); font-size: 15px; margin-top: 4px; }

.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); border: 1px solid var(--border-color); transition: var(--transition); cursor: pointer; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-icon { font-size: 28px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: rgba(108,92,231,0.08); border-radius: 12px; }
.stat-info { flex: 1; }
.stat-label { display: block; font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.stat-value { display: block; font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 2px 0; }
.stat-change { font-size: 11px; font-weight: 600; }
.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

.quick-controls { display: flex; gap: 16px; flex-wrap: wrap; padding: 16px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-color); margin-bottom: 24px; align-items: center; }
.control-group { display: flex; align-items: center; gap: 8px; }
.control-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.control-hint { font-size: 11px; color: var(--text-muted); }
.btn-mode-toggle, .btn-auto-toggle { padding: 6px 16px; border-radius: 8px; border: none; font-weight: 600; font-size: 12px; cursor: pointer; transition: var(--transition); }
.btn-mode-toggle.test { background: #FDCB6E; color: #2D3436; }
.btn-mode-toggle.live { background: #00B894; color: white; }
.btn-auto-toggle.on { background: #00B894; color: white; }
.btn-auto-toggle.off { background: #E17055; color: white; }
.btn-emergency { padding: 6px 16px; background: #E17055; color: white; border: none; border-radius: 8px; font-weight: 700; font-size: 12px; cursor: pointer; transition: var(--transition); animation: pulse-emergency 2s infinite; }
.btn-emergency:hover { transform: scale(1.05); }

.charts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 24px; }
.chart-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.chart-header h3 { font-size: 15px; font-weight: 600; }
.chart-controls { display: flex; gap: 4px; }
.chart-btn { padding: 4px 10px; border: 1px solid var(--border-color); background: transparent; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 600; transition: var(--transition); color: var(--text-secondary); }
.chart-btn:hover { background: rgba(108,92,231,0.08); }
.chart-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.chart-container { position: relative; height: 220px; }

.trades-table { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); margin-bottom: 24px; }
.table-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.table-header h3 { font-size: 15px; font-weight: 600; }
.table-badge { font-size: 10px; font-weight: 600; color: var(--success); background: rgba(0,184,148,0.1); padding: 3px 10px; border-radius: 20px; }
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg-primary); }
th { padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--border-color); }
tr:hover td { background: rgba(108,92,231,0.04); }
td.buy { color: var(--success); font-weight: 600; }
td.sell { color: var(--danger); font-weight: 600; }
td.pnl-positive { color: var(--success); }
td.pnl-negative { color: var(--danger); }
td.status-open { color: var(--info); }
td.status-closed { color: var(--text-secondary); }
.loading-text { color: var(--text-muted); text-align: center; padding: 20px; }

.checklist-section, .warnings-section { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); margin-bottom: 16px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-header h3 { font-size: 15px; font-weight: 600; }
.checklist-progress, .warnings-count { font-size: 12px; color: var(--text-secondary); background: var(--bg-primary); padding: 2px 12px; border-radius: 20px; }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.checklist-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: var(--transition); font-size: 13px; }
.checklist-item:hover { background: rgba(108,92,231,0.05); }
.checklist-item input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
.warnings-list { max-height: 200px; overflow-y: auto; }
.warning-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; font-size: 13px; border-left: 3px solid var(--warning); margin-bottom: 4px; background: rgba(253,203,110,0.05); }
.warning-item .warning-icon { font-size: 16px; }
.warning-item .warning-text { flex: 1; }
.warning-item .warning-dismiss { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; }

.trading-status { background: var(--bg-card); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); margin-bottom: 16px; }
.status-indicators { display: flex; gap: 24px; flex-wrap: wrap; }
.indicator { display: flex; align-items: center; gap: 6px; }
.indicator-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.indicator-value { font-size: 13px; font-weight: 600; }
.indicator-value.test { color: #FDCB6E; }
.indicator-value.live { color: #00B894; }

.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.action-btn { padding: 8px 16px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); cursor: pointer; font-size: 12px; font-weight: 500; transition: var(--transition); }
.action-btn:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }

.trading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trading-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.trading-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.order-row { display: flex; justify-content: space-between; padding: 4px 10px; border-radius: 4px; font-size: 13px; }
.order-row.bid { color: var(--success); }
.order-row.ask { color: var(--danger); }
.order-row.spread { background: rgba(108,92,231,0.08); font-weight: 600; padding: 6px 10px; margin: 2px 0; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.form-control { width: 100%; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 13px; background: var(--bg-primary); color: var(--text-primary); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,92,231,0.1); }
.side-buttons { display: flex; gap: 6px; }
.side-btn { flex: 1; padding: 8px; border: 1px solid var(--border-color); background: var(--bg-primary); border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; transition: var(--transition); }
.side-btn.buy.active { background: rgba(0,184,148,0.15); border-color: var(--success); color: var(--success); }
.side-btn.sell.active { background: rgba(225,112,85,0.15); border-color: var(--danger); color: var(--danger); }
.btn-trade-execute { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.btn-trade-execute:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(108,92,231,0.3); }

.strategies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.strategy-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); cursor: pointer; transition: var(--transition); }
.strategy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.strategy-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.strategy-icon { font-size: 24px; }
.strategy-name { font-size: 16px; font-weight: 600; flex: 1; }
.strategy-badge { padding: 2px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.strategy-badge.active { background: #00B894; color: white; }
.strategy-badge.inactive { background: var(--text-muted); color: white; }
.strategy-params { margin-bottom: 12px; }
.param-group { display: flex; flex-wrap: wrap; gap: 8px; }
.param-group label { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.param-input { width: 50px; padding: 2px 6px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 12px; background: var(--bg-primary); color: var(--text-primary); }
.strategy-actions { display: flex; gap: 8px; }
.btn-strategy-activate { padding: 6px 16px; background: var(--primary); color: white; border: none; border-radius: 6px; font-weight: 600; font-size: 12px; cursor: pointer; transition: var(--transition); }
.btn-strategy-activate:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,92,231,0.3); }
.btn-strategy-test { padding: 6px 16px; background: var(--info); color: white; border: none; border-radius: 6px; font-weight: 600; font-size: 12px; cursor: pointer; transition: var(--transition); }
.btn-strategy-test:hover { transform: translateY(-2px); }

.rules-section { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); margin-bottom: 24px; }
.rules-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.rules-group h4 { font-size: 14px; margin-bottom: 8px; }
.rules-group label { display: block; font-size: 13px; padding: 4px 0; cursor: pointer; }
.rules-group label input[type="checkbox"] { margin-right: 8px; accent-color: var(--primary); }
.btn-save-rules { padding: 8px 24px; background: var(--success); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-save-rules:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,184,148,0.3); }

.optimization-section { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.optimization-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.optimization-grid { display: grid; gap: 16px; }
.optimization-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.metric { padding: 12px; background: var(--bg-primary); border-radius: 8px; text-align: center; }
.metric-label { display: block; font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.metric-value { display: block; font-size: 20px; font-weight: 700; color: var(--text-primary); }
.optimization-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-optimize { padding: 10px 24px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-optimize:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,92,231,0.3); }
.btn-optimize-results { padding: 10px 24px; background: var(--info); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-optimize-results:hover { transform: translateY(-2px); }
.optimization-recommendations { padding: 16px; background: var(--bg-primary); border-radius: 8px; }
.optimization-recommendations h4 { font-size: 14px; margin-bottom: 8px; }
.optimization-recommendations ul { padding-left: 20px; }
.optimization-recommendations li { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }

.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.portfolio-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.portfolio-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.holding-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color); align-items: center; }
.holding-item:last-child { border-bottom: none; }
.holding-item span:first-child { font-weight: 600; font-size: 14px; }
.positive { color: var(--success); }
.negative { color: var(--danger); }

.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.analytics-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.analytics-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-item { padding: 10px; background: var(--bg-primary); border-radius: 8px; }
.metric-item span { display: block; }
.metric-item span:first-child { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.metric-value { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-top: 2px; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.settings-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.settings-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.settings-group { margin-bottom: 12px; }
.settings-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; }
.settings-group input[type="checkbox"] { margin-right: 6px; accent-color: var(--primary); }
.settings-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-save-settings { padding: 10px 24px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-save-settings:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,92,231,0.3); }
.btn-reset-settings { padding: 10px 24px; background: var(--warning); color: #2D3436; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-reset-settings:hover { transform: translateY(-2px); }

.admin-auth { display: flex; align-items: center; justify-content: center; min-height: 400px; }
.auth-card { background: var(--bg-card); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-hover); text-align: center; max-width: 400px; width: 100%; }
.auth-icon { font-size: 56px; margin-bottom: 16px; }
.auth-card h2 { font-size: 22px; margin-bottom: 8px; }
.auth-card p { color: var(--text-secondary); margin-bottom: 20px; }
.auth-input-group { display: flex; gap: 8px; }
.auth-input-group .form-control { flex: 1; }
.btn-auth { padding: 8px 20px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,92,231,0.3); }
.auth-hint { display: block; margin-top: 10px; font-size: 11px; color: var(--text-muted); }

.admin-section { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); margin-bottom: 16px; }
.admin-section h2 { font-size: 18px; margin-bottom: 16px; }
.exchange-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.exchange-card { background: var(--bg-primary); border-radius: var(--radius-sm); padding: 16px; }
.exchange-card h3 { font-size: 14px; margin-bottom: 12px; }
.btn-connect { width: 100%; padding: 10px; background: linear-gradient(135deg, var(--success), #00B894); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-connect:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,184,148,0.3); }
.btn-mode, .btn-disconnect, .btn-refresh { padding: 6px 14px; border: none; border-radius: 6px; font-weight: 600; font-size: 12px; cursor: pointer; transition: var(--transition); }
.btn-mode { background: var(--info); color: white; }
.btn-mode:hover { transform: translateY(-2px); }
.btn-disconnect { background: var(--danger); color: white; }
.btn-disconnect:hover { transform: translateY(-2px); }
.btn-refresh { background: var(--text-secondary); color: white; }
.btn-refresh:hover { transform: translateY(-2px); }
.trade-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; }
.btn-trade { padding: 10px; background: linear-gradient(135deg, var(--warning), #F39C12); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-trade:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(253,203,110,0.3); }
.status-badge-online { display: inline-block; background: var(--success); color: white; padding: 2px 8px; border-radius: 12px; font-size: 10px; }
.status-badge-offline { display: inline-block; background: var(--danger); color: white; padding: 2px 8px; border-radius: 12px; font-size: 10px; }
.bot-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-control { padding: 8px 16px; border: none; border-radius: 8px; font-weight: 600; font-size: 12px; cursor: pointer; transition: var(--transition); }
.btn-control:hover { transform: translateY(-2px); }
.btn-control.emergency { background: #E17055; color: white; animation: pulse-emergency 2s infinite; }
.btn-control.resume { background: #00B894; color: white; }
.btn-control.backup { background: var(--info); color: white; }
.btn-control.clear { background: var(--warning); color: #2D3436; }
.btn-control.export { background: var(--primary); color: white; }

.footer { background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 16px 2rem; margin-top: 40px; }
.footer-content { max-width: 1440px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.footer-version { font-size: 9px; background: var(--primary); color: white; padding: 2px 8px; border-radius: 10px; }
.footer-info { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.footer-separator { color: var(--border-color); }
.footer-status { font-weight: 600; color: var(--success); }
.footer-social { display: flex; gap: 12px; }
.social-link { color: var(--text-secondary); text-decoration: none; font-size: 12px; transition: var(--transition); }
.social-link:hover { color: var(--primary); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.2); } }
@keyframes pulse-emergency { 0%,100% { opacity:1; } 50% { opacity:0.6; } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .charts-grid { grid-template-columns: 1fr; }
    .trading-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .analytics-grid { grid-template-columns: 1fr; }
    .exchange-grid { grid-template-columns: 1fr; }
    .trade-form { grid-template-columns: 1fr; }
    .rules-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .main-content { padding: 0 1rem 1rem; }
    .navbar { padding: 0 1rem; }
    .quick-controls { flex-direction: column; align-items: stretch; }
    .control-group { justify-content: center; }
    .strategies-grid { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .optimization-metrics { grid-template-columns: 1fr 1fr; }
    .status-indicators { flex-direction: column; gap: 8px; }
}
