:root {
    --bg-base: #0b0e14;
    --bg-surface: #121721;
    --bg-card: #18202d;
    --bg-card-hover: #1f293b;
    --border: #222d3f;
    --border-light: #2c3a50;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.15);

    --green: #10b981;
    --green-bg: rgba(16, 185, 129, 0.12);
    --green-border: rgba(16, 185, 129, 0.3);

    --red: #f43f5e;
    --red-bg: rgba(244, 63, 94, 0.12);
    --red-border: rgba(244, 63, 94, 0.3);

    --yellow: #f59e0b;
    --yellow-bg: rgba(245, 158, 11, 0.12);

    --sol-color: #9945FF;
    --bnb-color: #F0B90B;
    --eth-color: #627EEA;
    --btc-color: #F7931A;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 24px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.nav-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.nav-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--green);
    display: inline-block;
}

.live-dot.pulse {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes flashGreen {
    0% { background-color: rgba(16, 185, 129, 0.4); color: #10b981; }
    100% { background-color: transparent; }
}

@keyframes flashRed {
    0% { background-color: rgba(244, 63, 94, 0.4); color: #f43f5e; }
    100% { background-color: transparent; }
}

.flash-up {
    animation: flashGreen 1.2s ease-out;
}

.flash-down {
    animation: flashRed 1.2s ease-out;
}

.live-dot.flash-glow {
    box-shadow: 0 0 15px 4px rgba(56, 189, 248, 0.9);
}

.badge {
    background-color: var(--border-light);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    margin-left: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.icon-btn:hover { opacity: 1; }

.btn {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background-color: var(--bg-card);
    border-color: var(--accent);
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #fff;
}
.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

/* Content Container */
.content-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.section {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px;
}

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

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.accent-text {
    color: var(--accent);
}

.subtitle-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Asset Tabs */
.asset-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.asset-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.asset-tab:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.asset-tab.active {
    background-color: var(--bg-card-hover);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 4px 16px var(--accent-glow);
}

.tab-coin-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.coin-sol { background: linear-gradient(135deg, #9945FF, #14F195); }
.coin-bnb { background: linear-gradient(135deg, #F0B90B, #F8D33A); color: #000; }
.coin-eth { background: linear-gradient(135deg, #627EEA, #8A92B2); }
.coin-btc { background: linear-gradient(135deg, #F7931A, #FFA733); }

.tab-info {
    display: flex;
    flex-direction: column;
}

.tab-symbol {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tab-price {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Ratio Cards Grid */
.ratio-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ratio-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(24, 32, 45, 0.6) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.ratio-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
}

.ratio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pair-badge {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.z-score-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.z-score-tag.hot {
    background-color: var(--red-bg);
    border-color: var(--red-border);
    color: var(--red);
    font-weight: 700;
}

.current-ratio-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.ratio-num {
    font-family: var(--font-mono);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

/* Delta Indicators */
.delta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
}

.delta-badge.up {
    color: var(--green);
    background-color: var(--green-bg);
    border: 1px solid var(--green-border);
}

.delta-badge.down {
    color: var(--red);
    background-color: var(--red-bg);
    border: 1px solid var(--red-border);
}

.delta-badge.flat {
    color: var(--text-muted);
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
}

.metrics-horizontal-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

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

.metric-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 2px;
}

/* Position Sizer in Section Header */
.position-sizer-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: var(--radius-md);
}

.sizer-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.sizer-input-group {
    display: flex;
    align-items: center;
    background-color: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
}

.currency-symbol {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.sizer-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    width: 65px;
    outline: none;
    text-align: right;
}

/* Arbitrage Trading Assistant Box */
.arbitrage-assistant-box {
    margin-top: 4px;
    padding: 12px;
    border-radius: var(--radius-md);
    background-color: rgba(11, 14, 20, 0.75);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assistant-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.assistant-status-pill {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 700;
}

.assistant-status-pill.overheated {
    background-color: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.assistant-status-pill.lagging {
    background-color: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green-border);
}

.assistant-status-pill.neutral {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.trade-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.trade-pill {
    padding: 8px 10px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: transform 0.15s ease;
}

.trade-pill.short {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(244, 63, 94, 0.04));
    border: 1px solid var(--red-border);
}

.trade-pill.long {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    border: 1px solid var(--green-border);
}

.trade-pill.dimmed {
    opacity: 0.65;
    border-style: dashed;
}

.trade-pill-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trade-pill.short .trade-pill-title { color: var(--red); }
.trade-pill.long .trade-pill-title { color: var(--green); }

.trade-pill-calc {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.trade-pill-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.assistant-hint {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.35;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 6px;
}

/* Chart Section */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.chart-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-group {
    display: flex;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2px;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.76rem;
    background: transparent;
    color: var(--text-secondary);
    border-radius: calc(var(--radius-md) - 2px);
}

.btn-sm:hover {
    color: var(--text-primary);
}

.btn-sm.active {
    background-color: var(--bg-surface);
    color: var(--accent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.chart-canvas-wrapper {
    position: relative;
    height: 380px;
    width: 100%;
}

.chart-canvas-wrapper-small {
    position: relative;
    height: 250px;
    width: 100%;
}

.chart-loader {
    position: absolute;
    inset: 0;
    background-color: rgba(18, 23, 33, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(4px);
}

.chart-loader.hidden {
    display: none;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dual Column Grid */
.dual-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.custom-select {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    font-size: 0.82rem;
    font-family: var(--font-sans);
    cursor: pointer;
    outline: none;
}
.custom-select:focus {
    border-color: var(--accent);
}

/* Matrix Table */
.matrix-table-wrapper {
    overflow-x: auto;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.matrix-table th, .matrix-table td {
    padding: 12px 14px;
    text-align: center;
    border: 1px solid var(--border);
}

.matrix-table th {
    background-color: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 700;
}

.matrix-table td.diagonal {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 600;
}

.matrix-cell-val {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #fff;
    display: block;
}

.matrix-cell-change {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    display: inline-block;
    margin-top: 3px;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 580px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}
.close-btn:hover { color: #fff; }

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.archive-stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.text-secondary {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.code-snippet {
    background-color: #05070a;
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.88rem;
    user-select: all;
}

.modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* Footer */
.footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    background-color: var(--bg-surface);
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* Nav View Switcher */
.nav-view-switcher {
    display: flex;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 4px;
}

.nav-view-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: calc(var(--radius-md) - 2px);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-view-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.04);
}

.nav-view-btn.active {
    background-color: var(--bg-surface);
    color: var(--accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.nav-paper-badge {
    background-color: var(--border-light);
    color: #fff;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
}

/* Paper Trading KPI Grid */
.paper-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 14px;
}

.kpi-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kpi-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.kpi-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.kpi-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.paper-header-actions {
    display: flex;
    gap: 10px;
}

.btn-danger-outline {
    border-color: rgba(244, 63, 94, 0.4);
    color: var(--red);
}
.btn-danger-outline:hover {
    background-color: var(--red-bg);
    border-color: var(--red);
}

/* Data Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background-color: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.015);
}

.badge-win {
    background-color: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green-border);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.72rem;
}

.badge-loss {
    background-color: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-border);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.72rem;
}

.btn-close-pos {
    background-color: transparent;
    color: var(--red);
    border: 1px solid rgba(244, 63, 94, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-close-pos:hover {
    background-color: var(--red-bg);
    border-color: var(--red);
}

/* FLOATING PAPER TRADING WIDGET */
.floating-trade-widget {
    position: fixed;
    bottom: 24px;
    right: 28px;
    width: 380px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.15);
    z-index: 500;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.floating-trade-widget.minimized .floating-widget-body {
    display: none;
}

.floating-trade-widget.is-dragging {
    user-select: none;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8), 0 0 0 2px var(--accent);
    transition: none !important;
}

.floating-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.floating-trade-widget.is-dragging .floating-widget-header {
    cursor: grabbing;
}

.widget-drag-handle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: grab;
    margin-right: 4px;
    letter-spacing: -2px;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.floating-widget-header:hover .widget-drag-handle {
    opacity: 1;
    color: var(--accent);
}

.widget-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.widget-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

.widget-open-badge {
    background-color: var(--border-light);
    color: var(--text-secondary);
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
}

.widget-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-pnl-pill {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.widget-pnl-pill.profit { color: var(--green); }
.widget-pnl-pill.loss { color: var(--red); }

.widget-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
}
.widget-toggle-btn:hover { color: #fff; }

.floating-widget-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-pair-selectors {
    display: flex;
    align-items: center;
    gap: 10px;
}

.float-coin-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.float-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.float-active-coin {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
}

.float-vs {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-top: 14px;
}

.float-select {
    background-color: var(--bg-card);
    color: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 6px 10px;
    font-size: 0.82rem;
    font-family: var(--font-sans);
    cursor: pointer;
    outline: none;
}
.float-select:focus { border-color: var(--accent); }

.float-ratio-ticker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.float-ratio-val {
    font-family: var(--font-mono);
    color: #fff;
    font-size: 0.84rem;
}

.float-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.float-amount-input-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
}

.float-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    width: 70px;
    outline: none;
    text-align: right;
}

.float-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-trade-short-long, .btn-trade-long-short {
    padding: 10px 14px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btn-trade-short-long {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(244, 63, 94, 0.06));
    border: 1px solid var(--red-border);
}
.btn-trade-short-long:hover {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.28), rgba(244, 63, 94, 0.12));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}

.btn-trade-long-short {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.06));
    border: 1px solid var(--green-border);
}
.btn-trade-long-short:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(16, 185, 129, 0.12));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-trade-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #fff;
}

.btn-trade-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Float Active Targets Box */
.float-active-targets-box {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.float-active-targets-box.hidden {
    display: none;
}

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

.targets-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.12);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.targets-pnl {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
}

.targets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.target-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.target-item.target-goal {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.35);
}

.target-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.target-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.target-profit {
    color: var(--green);
}

.btn-close-this-pair {
    width: 100%;
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.06);
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-this-pair:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f43f5e;
    color: #fff;
}

.float-footer-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
    .asset-tabs { grid-template-columns: repeat(2, 1fr); }
    .ratio-cards-grid { grid-template-columns: 1fr; }
    .dual-columns-grid { grid-template-columns: 1fr; }
    .paper-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 12px; align-items: flex-start; }
    .nav-metrics { flex-wrap: wrap; width: 100%; justify-content: space-between; }
    .chart-header { flex-direction: column; align-items: flex-start; }
    .chart-controls { flex-wrap: wrap; }
    .floating-trade-widget { width: calc(100% - 32px); right: 16px; bottom: 16px; }
}

/* ==========================================================================
   SOL / ETH TRAINER & AI MENTOR VIEW
   ========================================================================== */
.trainer-pair-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.trainer-pair-tab {
    display: inline-flex;
    justify-content: center;
    padding: 10px 18px;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.trainer-pair-tab:hover,
.trainer-pair-tab:focus-visible,
.trainer-pair-tab.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}

.trainer-hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.trainer-hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
    pointer-events: none;
}

.trainer-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.trainer-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trainer-pair-pill {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 3px 10px;
    border-radius: 999px;
}

.trainer-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.trainer-hero-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.5;
}

.trainer-timer-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.trainer-timer-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.9));
    border: 2px solid var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.trainer-timer-val {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
    line-height: 1;
}

.trainer-timer-lbl {
    font-size: 0.62rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
}

.trainer-timer-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 0.75rem;
}

/* Trainer Stats Grid */
.trainer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.trainer-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trainer-stat-card.highlight {
    border-color: rgba(56, 189, 248, 0.4);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), var(--bg-card));
}

.trainer-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.trainer-card-price {
    font-size: 1.45rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
    margin-bottom: 10px;
}

.trainer-card-price.ratio-mono {
    color: var(--accent);
}

.trainer-deltas-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.delta-tag {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--border-light);
    color: var(--text-secondary);
}
.delta-tag.up { background: var(--green-bg); color: var(--green); }
.delta-tag.down { background: var(--red-bg); color: var(--red); }

/* Trainer ratio averages */
.trainer-averages-card {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.trainer-averages-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.trainer-averages-card .card-title {
    font-size: 1rem;
}

.trainer-averages-card .card-desc {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.trainer-averages-updated,
.trainer-averages-note {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.6;
}

.trainer-averages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.trainer-average-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(56, 189, 248, 0.03);
}

.trainer-average-period {
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.trainer-average-value {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
}

.trainer-average-deviation {
    min-height: 1.6em;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.trainer-average-deviation.above { color: #38bdf8; }
.trainer-average-deviation.below { color: #c4b5fd; }

.trainer-average-coverage {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.6;
}

.trainer-average-coverage.partial { color: #fbbf24; }

.trainer-averages-note {
    margin: 14px 0 0;
}

/* Z-Score Gauge */
.trainer-z-value-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.trainer-z-score {
    font-size: 1.45rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
}

.trainer-z-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--border-light);
    color: var(--text-secondary);
}

.trainer-z-badge.overbought { background: var(--red-bg); color: var(--red); border: 1px solid var(--red); }
.trainer-z-badge.oversold { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }

.trainer-z-gauge {
    margin-top: 4px;
}

.gauge-bar-track {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 35%, #64748b 50%, #f59e0b 65%, #ef4444 100%);
    margin-bottom: 4px;
}

.gauge-center-line {
    position: absolute;
    left: 50%;
    top: -2px;
    width: 2px;
    height: 12px;
    background: #fff;
    transform: translateX(-50%);
}

.gauge-needle {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 6px var(--accent);
    transform: translateX(-50%);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Trainer Workspace Layout */
.trainer-workspace {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
    align-items: start;
}

.trainer-left-col, .trainer-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trainer-chart-card {
    min-height: 420px;
}

.trainer-chart-wrapper {
    position: relative;
    height: 320px;
    width: 100%;
}

.trade-amount-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mini-input {
    width: 80px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 4px 8px;
    text-align: right;
}

/* Active Position Banner */
.trainer-active-pos {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
}

.pos-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pos-badge-live {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--green);
}

.pos-time-counter {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pos-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
    background: var(--bg-surface);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
}

.pos-details-grid small {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.pos-pnl-val {
    font-size: 0.95rem;
    font-family: var(--font-mono);
}

.trainer-action-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* AI MENTOR CARD */
.mentor-card {
    border-color: rgba(56, 189, 248, 0.3);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.05) 0%, var(--bg-card) 30%);
}

.mentor-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mentor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.mentor-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.mentor-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mentor-status-tag {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--border-light);
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.mentor-status-tag.buy { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.mentor-status-tag.sell { background: var(--red-bg); color: var(--red); border: 1px solid var(--red); }
.mentor-status-tag.close { background: rgba(56, 189, 248, 0.2); color: var(--accent); border: 1px solid var(--accent); }

/* Mentor Signal Banner */
.mentor-signal-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.mentor-signal-banner.neutral {
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--border);
}

.mentor-signal-banner.long-sol {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.mentor-signal-banner.short-sol {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.05));
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.mentor-signal-banner.take-profit {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.06));
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.mentor-signal-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.mentor-signal-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.mentor-signal-action {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Guided Steps */
.mentor-steps-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 16px;
}

.mentor-steps-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

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

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

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    flex: 1;
}

.step-head {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.step-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.mentor-cheat-sheet {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.82rem;
}

.mentor-cheat-sheet summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--accent);
    outline: none;
}

.cheat-content {
    margin-top: 10px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cheat-content ul {
    margin: 6px 0 0 18px;
}

/* Mentor Feed */
.mentor-feed-card {
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

.mentor-feed-list {
    overflow-y: auto;
    max-height: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.mentor-feed-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    border-left: 3px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background-color 0.2s;
}

.mentor-feed-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mentor-feed-item.feed-buy { border-left-color: var(--green); }
.mentor-feed-item.feed-sell { border-left-color: var(--red); }
.mentor-feed-item.feed-close { border-left-color: var(--accent); }

.feed-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feed-time {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.feed-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

.feed-badge.buy { background: var(--green-bg); color: var(--green); }
.feed-badge.sell { background: var(--red-bg); color: var(--red); }
.feed-badge.neutral { background: var(--border-light); color: var(--text-secondary); }
.feed-badge.close { background: rgba(56, 189, 248, 0.2); color: var(--accent); }

.feed-msg {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .trainer-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .trainer-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .trainer-hero-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .trainer-stats-grid { grid-template-columns: 1fr; }
}

