/* ==========================================
   Trade Like Mike Dashboard Styles
   ========================================== */

:root {
    --font-body: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --bg: #080a14;
    --bg-card: #0f1225;
    --bg-card-hover: #151935;
    --bg-sidebar: #0b0e1c;
    --border: #1a1f3d;
    --border-light: #252b52;

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

    --blue: #3b82f6;
    --violet: #6c4bef;
    --violet-light: #8b72ff;
    --green: #22c55e;
    --amber: #f59e0b;

    --radius: 10px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
}

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

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---- Layout ---- */
.dash-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ==================
   SIDEBAR
   ================== */
.sidebar {
    width: 220px;
    min-width: 220px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-top {
    padding: 0 16px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 32px;
    padding: 0 4px;
}

/* Logo icon (reused from main site) */
.logo-icon {
    width: 28px;
    height: 28px;
    position: relative;
}

.logo-layers {
    position: relative;
    width: 100%;
    height: 100%;
}

.logo-layer {
    position: absolute;
    border-radius: 5px;
    border: 2px solid;
}

.logo-layer:nth-child(1) {
    width: 16px;
    height: 16px;
    top: 1px;
    left: 1px;
    border-color: var(--violet);
    background: rgba(108, 75, 239, 0.15);
}

.logo-layer:nth-child(2) {
    width: 16px;
    height: 16px;
    top: 4px;
    left: 4px;
    border-color: var(--blue);
    background: rgba(59, 130, 246, 0.15);
}

.logo-layer:nth-child(3) {
    width: 16px;
    height: 16px;
    top: 7px;
    left: 7px;
    border-color: var(--violet-light);
    background: rgba(139, 114, 255, 0.15);
}

/* Nav links */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    cursor: pointer;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
    color: var(--blue);
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
}

.sidebar-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
    margin-top: 8px;
}

/* Sidebar bottom */
.sidebar-bottom {
    padding: 0 16px;
}

.system-status {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.status-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.status-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* ==================
   MAIN CONTENT
   ================== */
.dash-main {
    flex: 1;
    overflow-y: auto;
    padding: 40px 48px;
}

.dash-page {
    display: none;
}

.dash-page.active {
    display: block;
}

/* Page header */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.page-title h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    padding-left: 32px;
}

/* Stat cards row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--border-light);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.stat-green {
    color: var(--green);
}

.stat-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Loading spinner */
.loading-area {
    display: flex;
    justify-content: center;
    padding: 80px 0;
}

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

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

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    gap: 16px;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 340px;
}

/* Profile card */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 480px;
}

.profile-row {
    margin-bottom: 20px;
}

.profile-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.profile-row input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition);
}

.profile-row input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(108, 75, 239, 0.15);
}

.plan-badge {
    display: inline-flex;
    padding: 4px 14px;
    border-radius: 9999px;
    background: rgba(108, 75, 239, 0.12);
    border: 1px solid rgba(108, 75, 239, 0.25);
    color: var(--violet-light);
    font-size: 13px;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* ==================
   DATA TABLES
   ================== */
.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition);
    cursor: pointer;
}

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.data-table td {
    padding: 14px 16px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.table-empty {
    text-align: center;
    padding: 40px !important;
    color: var(--text-muted) !important;
}

/* Whale row specifics */
.rank-cell {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-muted) !important;
    width: 60px;
}

.whale-name-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whale-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet) 0%, var(--blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.whale-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.whale-x {
    font-size: 12px;
    color: var(--blue);
}

.vol-cell {
    font-family: var(--font-mono);
    font-weight: 500;
}

.pnl-green {
    color: var(--green) !important;
    font-family: var(--font-mono);
    font-weight: 600;
}

.pnl-red {
    color: #ef4444 !important;
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Follow button */
.btn-follow {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-follow:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(59, 130, 246, 0.08);
}

.btn-follow.following {
    border-color: var(--green);
    color: var(--green);
    background: rgba(34, 197, 94, 0.08);
}

.btn-follow.following:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* Count badge */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 9999px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
}

/* ==================
   MARKET CARDS
   ================== */
.market-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cat-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.cat-tab {
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.cat-tab:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.cat-tab.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.market-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition);
    cursor: pointer;
}

.market-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

.mc-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.mc-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-left: auto;
}

.mc-active {
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.mc-closed {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.mc-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mc-outcomes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.mc-outcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

.mc-outcome-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.mc-outcome-price {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
}

.mc-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
    color: var(--text-muted);
}

.mc-vol {
    font-family: var(--font-mono);
}

/* ==================
   INPUT FIELDS
   ================== */
.input-field {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition);
    width: 100%;
}

.input-field:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-sm {
    max-width: 180px;
}

#market-search {
    max-width: 260px;
    flex-shrink: 0;
}

/* ==================
   WALLET FORM & CARDS
   ================== */
.wallet-form {
    margin-bottom: 28px;
}

.wf-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wf-row .input-field:nth-child(2) {
    flex: 1;
}

.wallet-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    transition: border-color var(--transition);
}

.wallet-card:hover {
    border-color: var(--border-light);
}

.wc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.wc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--violet) 0%, var(--blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.wc-info {
    flex: 1;
    min-width: 0;
}

.wc-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.wc-addr {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.wc-positions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wc-pos {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 13px;
    color: var(--text-secondary);
}

.wc-pos-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    font-size: 16px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* Side badges */
.side-badge {
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}

.side-yes {
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
}

.side-no {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ==================
   WHALE DETAIL MODAL
   ================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.wd-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.whale-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet) 0%, var(--blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.wd-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}

.wd-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.wd-stat {
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.wd-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.wd-stat-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}

.wd-section-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.wd-pos-card {
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.wd-pos-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.wd-pos-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.pos-yes {
    color: var(--green);
    font-weight: 600;
}

.pos-no {
    color: #ef4444;
    font-weight: 600;
}

/* ==================
   TOAST NOTIFICATIONS
   ================== */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(34, 197, 94, 0.06) 100%);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(239, 68, 68, 0.06) 100%);
}

/* ==================
   MISC
   ================== */
.text-muted {
    color: var(--text-muted);
    font-size: 13px;
}

.text-sm {
    font-size: 12px;
}

.loading-sm {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.empty-inline {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.name-cell {
    font-weight: 500;
    color: var(--text-primary) !important;
}

/* ==================
   SCROLLBAR
   ================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 768px) {
    .sidebar {
        width: 64px;
        min-width: 64px;
    }

    .sidebar-logo span,
    .sidebar-link span,
    .sidebar-section-label,
    .user-details,
    .status-label,
    .status-value {
        display: none;
    }

    .sidebar-link {
        justify-content: center;
        padding: 12px;
    }

    .sidebar-logo {
        justify-content: center;
    }

    .user-info {
        justify-content: center;
    }

    .dash-main {
        padding: 24px 20px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .markets-grid {
        grid-template-columns: 1fr;
    }

    .wf-row {
        flex-direction: column;
    }

    .input-sm {
        max-width: 100%;
    }

    #market-search {
        max-width: 100%;
    }

    .market-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .trades-sections {
        flex-direction: column;
    }

    .wd-columns {
        flex-direction: column;
    }
}

/* ===================== QUALITY BADGES ===================== */
.quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.quality-green {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.quality-yellow {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.quality-red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.quality-gray {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
}

.quality-loading {
    opacity: 0.5;
}

.quality-cell {
    min-width: 90px;
}

/* ===================== TRADES SECTIONS (SPLIT LAYOUT) ===================== */
.trades-sections {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.trades-col {
    flex: 1;
    min-width: 0;
}

.trades-col-feed {
    max-width: 380px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* ===================== TRADE FEED CARDS ===================== */
.trade-feed-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 8px;
    transition: border-color var(--transition);
}

.trade-feed-card:hover {
    border-color: var(--border-light);
}

.tfc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.tfc-whale {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.tfc-time {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tfc-market {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.tfc-details {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ===================== SIDE BADGES ===================== */
.side-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.side-buy {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.side-sell {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.side-yes {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.side-no {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ===================== ENHANCED WHALE MODAL ===================== */
.modal-lg {
    max-width: 860px;
    width: 90vw;
}

.wd-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wd-quality-badge {
    margin-left: auto;
}

.wd-columns {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.wd-col {
    flex: 1;
    min-width: 0;
}

/* Whale trade cards in modal */
.wd-trade-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 6px;
}

.wd-trade-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.wd-trade-time {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.wd-trade-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.wd-trade-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* P&L colors */
.pnl-green {
    color: #22c55e !important;
}

.pnl-red {
    color: #ef4444 !important;
}