/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
    white-space: nowrap;
    text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 20px; }
.logo-accent { color: var(--gold); }

.server-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
}
.server-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.server-tab:hover { color: var(--text); background: var(--bg-card-2); }
.server-tab.active { color: var(--text); background: var(--bg-card-2); }
.server-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* ── Sub-nav ───────────────────────────────────────────────────────────── */
.sub-nav {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-h);
    z-index: 99;
}
.tab-list {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px 0;
}
.tab-list::-webkit-scrollbar { display: none; }

.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.tab-btn.active {
    color: var(--gold);
    background: var(--gold-bg);
}
.tab-count {
    font-size: 11px;
    font-weight: 700;
    background: var(--bg-card-2);
    padding: 1px 6px;
    border-radius: 10px;
    color: var(--text-muted);
}
.tab-btn.active .tab-count {
    background: var(--gold-bg);
    color: var(--gold);
}

/* ── Main content ──────────────────────────────────────────────────────── */
.main-content {
    padding: 24px 24px 48px;
}

.tab-panel { display: block; }
.tab-panel.hidden { display: none; }

/* ── Stat cards ────────────────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
}
.stat-card--highlight {
    border-color: rgba(245,197,24,0.25);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245,197,24,0.04) 100%);
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.stat-value {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-sub {
    font-size: 11px;
    color: var(--text-dim);
}

/* ── Filter bar ────────────────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-right { margin-left: auto; }

.filter-select {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 7px 10px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--gold); }

.view-toggle {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.view-btn {
    padding: 7px 10px;
    color: var(--text-muted);
    transition: color 0.15s, background 0.15s;
}
.view-btn:hover { color: var(--text); background: var(--bg-card-2); }
.view-btn.active { color: var(--gold); background: var(--gold-bg); }

/* ── Data table ────────────────────────────────────────────────────────── */
.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table thead {
    background: var(--bg-card-2);
    border-bottom: 1px solid var(--border);
}
.data-table th {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
}
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }

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

/* Token cell */
.token-cell { display: flex; flex-direction: column; gap: 2px; }
.token-name { font-weight: 700; font-size: 14px; }
.token-ca {
    font-size: 11px;
    color: var(--text-dim);
    font-family: monospace;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chain badges */
.chain-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.chain-badge.solana { background: rgba(20,241,149,0.12); color: var(--sol); }
.chain-badge.base   { background: rgba(0,82,255,0.12);   color: var(--base); }
.chain-badge.ethereum { background: rgba(98,126,234,0.15); color: var(--eth); }
.chain-badge.bsc    { background: rgba(243,186,47,0.12); color: var(--bsc); }
.chain-badge.other  { background: var(--bg-card-2); color: var(--text-muted); }

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-badge.active  { background: var(--green-bg); color: var(--green); }
.status-badge.closed  { background: var(--bg-card-2); color: var(--text-muted); }
.status-badge.rugged  { background: var(--purple-bg); color: var(--purple); }
.status-badge.pending { background: rgba(245,197,24,0.1); color: var(--gold); }

/* Change % */
.change-pos { color: var(--green); font-weight: 600; }
.change-neg { color: var(--red);   font-weight: 600; }
.change-neu { color: var(--text-muted); }

/* ATH multiplier */
.ath-badge {
    font-weight: 700;
    font-size: 13px;
}
.ath-badge.ath-10x  { color: var(--gold); }
.ath-badge.ath-2x   { color: var(--green); }
.ath-badge.ath-low  { color: var(--text-muted); }

/* ── Cards grid ────────────────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.call-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: border-color 0.15s, transform 0.15s;
    cursor: pointer;
}
.call-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.call-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}
.call-card-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
}
.call-card-ticker {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.call-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}
.call-card-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.call-card-stat-value {
    font-weight: 700;
    font-size: 15px;
}

/* ── Admin panel ───────────────────────────────────────────────────────── */
.admin-lock {
    display: flex;
    justify-content: center;
    padding: 60px 24px;
}
.lock-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.lock-icon { font-size: 36px; margin-bottom: 12px; }
.lock-card h3 { font-size: 18px; margin-bottom: 8px; }
.lock-card p { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.lock-input-row {
    display: flex;
    gap: 8px;
}
.lock-error {
    color: var(--red);
    font-size: 12px;
    margin-top: 8px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}
.admin-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.input-row { display: flex; gap: 8px; }
.input-row .input-field { flex: 1; }

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.form-feedback {
    font-size: 13px;
    color: var(--green);
}
.form-feedback.error { color: var(--red); }

/* ── Analytics charts ──────────────────────────────────────────────────── */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    overflow: hidden;
}
.chart-card--full {
    margin-bottom: 16px;
}
.chart-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}
.chart-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.chart-wrap {
    position: relative;
    height: 220px;
}
.chart-wrap--tall {
    height: 180px;
}

@media (max-width: 768px) {
    .charts-row { grid-template-columns: 1fr; }
    .chart-wrap { height: 180px; }
}

/* ── Direction badges ──────────────────────────────────────────────────── */
.dir-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.dir-badge.long  { background: var(--green-bg); color: var(--green); }
.dir-badge.short { background: var(--red-bg);   color: var(--red); }

/* ── Futures status badges ─────────────────────────────────────────────── */
.status-badge.tp_full    { background: var(--green-bg); color: var(--green); }
.status-badge.tp_partial { background: rgba(245,197,24,0.12); color: var(--gold); }
.status-badge.stopped    { background: var(--red-bg);   color: var(--red); }
.status-badge.invalidated{ background: var(--bg-card-2); color: var(--text-dim); }

/* ── TP chips ──────────────────────────────────────────────────────────── */
.tp-chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.tp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid var(--border-light);
    color: var(--text-dim);
    background: var(--bg);
}
.tp-chip.hit {
    background: var(--green-bg);
    border-color: var(--green);
    color: var(--green);
}
.tp-chip.sl-chip {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-bg);
}
.tp-chip.be-chip {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-bg);
    width: auto;
    padding: 0 5px;
}

/* ── Futures detail panel ──────────────────────────────────────────────── */
.futures-detail {
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.futures-detail-inner { padding: 24px; }
.futures-detail-inner h3 {
    font-size: 18px;
    margin-bottom: 20px;
}
.futures-detail-close {
    float: right;
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: color 0.15s;
}
.futures-detail-close:hover { color: var(--text); }

/* Price bar */
.price-bar-wrap {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.price-bar-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.price-bar-track {
    position: relative;
    height: 12px;
    background: var(--bg-card-2);
    border-radius: 6px;
    margin: 0 12px;
}
.price-bar-segment {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 6px;
}
.price-bar-segment.entry-zone { background: rgba(245,197,24,0.35); }
.price-bar-segment.tp-zone    { background: rgba(16,185,129,0.25); }
.price-bar-segment.sl-zone    { background: rgba(239,68,68,0.25); }

.price-bar-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    color: var(--text-muted);
    font-family: monospace;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.detail-value { font-weight: 700; font-size: 15px; }

/* ── Bot status ────────────────────────────────────────────────────────── */
.bot-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.bot-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
    flex-shrink: 0;
}
.bot-status-dot.connected    { background: var(--green); box-shadow: 0 0 6px var(--green); }
.bot-status-dot.disconnected { background: var(--red); }
.bot-status-time { font-size: 11px; }

/* ── Channel list ──────────────────────────────────────────────────────── */
.channel-list { display: flex; flex-direction: column; gap: 8px; }
.channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
}
.channel-name { font-weight: 600; flex: 1; }
.channel-id-input {
    width: 260px;
    font-size: 12px;
    font-family: monospace;
}
.channel-type-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 8px;
    background: var(--bg-card-2);
    color: var(--text-muted);
}
.channel-type-badge.futures { background: rgba(245,197,24,0.1); color: var(--gold); }

/* Toggle switch */
.toggle {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--green-bg); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); background: var(--green); }

/* ── Bot log ───────────────────────────────────────────────────────────── */
.bot-log {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}
.log-entry {
    display: grid;
    grid-template-columns: 130px 80px 1fr;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg);
    border-radius: 6px;
    font-size: 12px;
    font-family: monospace;
    border-left: 2px solid var(--border);
    align-items: start;
}
.log-entry.info    { border-left-color: var(--text-dim); }
.log-entry.warning { border-left-color: var(--gold); }
.log-entry.error   { border-left-color: var(--red); }
.log-time  { color: var(--text-dim); }
.log-type  { color: var(--text-muted); }
.log-msg   { color: var(--text); white-space: pre-wrap; word-break: break-all; }

/* ── Market Cycle ───────────────────────────────────────────────────────── */
.cycle-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.cycle-gauge-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.cycle-svg { width: 200px; height: 200px; }
.gauge-track { stroke: var(--bg-card-2); }
.gauge-arc   { stroke: var(--gold); transition: stroke-dasharray 1s ease, stroke 0.5s; }
.gauge-pct   { font-family: var(--font-head); font-size: 32px; font-weight: 800; fill: var(--text); }
.gauge-label { font-size: 12px; fill: var(--text-muted); font-family: var(--font-body); }
.gauge-days  { font-size: 11px; fill: var(--text-dim);   font-family: var(--font-body); }
.cycle-zone-label {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    color: var(--gold);
}
.cycle-type-badge {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(245,197,24,0.12);
    color: var(--gold);
    border: 1px solid rgba(245,197,24,0.25);
}
.cycle-type-badge.bull { background: rgba(16,185,129,0.12); color: var(--green); border-color: rgba(16,185,129,0.25); }
.cycle-type-badge.bear { background: rgba(239,68,68,0.12);  color: var(--red);   border-color: rgba(239,68,68,0.25); }

.cycle-details-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cycle-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* DCA zone bar */
.dca-bar-wrap { display: flex; flex-direction: column; gap: 4px; }
.dca-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-radius: var(--radius);
    overflow: hidden;
    height: 32px;
}
.dca-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(0,0,0,0.7);
}
.dca-heavy   { background: #10B981; }
.dca-normal  { background: #6EE7B7; }
.dca-caution { background: #F5C518; }
.dca-profits { background: #EF4444; color: #fff; }
.dca-pointer-wrap { position: relative; height: 8px; }
.dca-pointer {
    position: absolute;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 10px solid var(--text);
    top: -2px;
    transition: left 1s ease;
}

/* Timeline */
.timeline-wrap { display: flex; flex-direction: column; gap: 6px; }
.timeline-bar {
    background: var(--bg-card-2);
    border-radius: 4px;
    height: 10px;
    overflow: hidden;
}
.timeline-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #F5C518, #EF4444);
    border-radius: 4px;
    transition: width 1s ease;
}
.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* Info grid */
.cycle-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cycle-info-item {
    background: var(--bg-main);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cycle-info-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.cycle-info-value { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--text); }

@media (max-width: 768px) {
    .cycle-layout { grid-template-columns: 1fr; }
    .cycle-gauge-card { padding: 16px; }
}

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.hidden { display: none; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.modal-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px 24px; }
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
}

/* ── Form helpers ───────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-input {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: var(--gold); }
.form-input option { background: var(--bg-nav); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--red); font-size: 13px; margin-top: 8px; }
.form-error.hidden { display: none; }

/* ── Portfolio pnl colors ──────────────────────────────────────────────── */
.pnl-pos { color: var(--green); font-weight: 600; }
.pnl-neg { color: var(--red);   font-weight: 600; }
.pnl-neu { color: var(--text-muted); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-nav);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    margin-top: auto;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}
.footer-version { font-size: 11px; color: var(--text-dim); }

/* ── Responsive overrides ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .data-table th:nth-child(4),
    .data-table td:nth-child(4) { display: none; }
    .header-actions .btn-outline-sm { display: none; }
}
@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card--highlight { grid-column: 1 / -1; }
    .filter-bar { flex-direction: column; align-items: flex-start; }
    .filter-right { margin-left: 0; }
    .data-table th:nth-child(5),
    .data-table td:nth-child(5),
    .data-table th:nth-child(7),
    .data-table td:nth-child(7) { display: none; }
}
