:root {
    --bg-base: #060d1a;
    --bg-panel: rgba(12, 24, 48, 0.72);
    --bg-card: rgba(18, 36, 68, 0.55);
    --bg-card-solid: #0f1d35;
    --border: rgba(77, 166, 255, 0.14);
    --border-strong: rgba(77, 166, 255, 0.28);

    --text-primary: #e8f2ff;
    --text-muted: #7a9bc4;
    --text-dim: #4d6a8a;

    --fefer-blue: #4da6ff;
    --fefer-blue-soft: rgba(77, 166, 255, 0.15);
    --fefer-cyan: #5eead4;
    --bullish: #34d399;
    --bearish: #fb7185;

    --font-main: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --nav-h: auto;
    --nav-min-h: 62px;
    --stats-h: 88px;
    --radius: 14px;
    --radius-sm: 10px;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background: var(--bg-base);
    min-height: 100vh;
    overflow: hidden;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -80px;
    background: rgba(77, 166, 255, 0.18);
}

.bg-glow-2 {
    width: 360px;
    height: 360px;
    bottom: -100px;
    right: 10%;
    background: rgba(94, 234, 212, 0.08);
}

.app-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

/* NAVBAR */
.navbar {
    min-height: var(--nav-min-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 13, 26, 0.85);
    backdrop-filter: blur(16px);
    flex-shrink: 0;
}

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

.logo-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-strong);
    box-shadow: 0 0 24px rgba(77, 166, 255, 0.25);
    flex-shrink: 0;
}

.token-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.token-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #fff 0%, var(--fefer-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--bullish);
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
}

.status-dot.online {
    background: var(--bullish);
    box-shadow: 0 0 8px var(--bullish);
    animation: pulse 2s ease infinite;
}

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

.ca-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ca-address {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.btn-icon-copy {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-icon-copy:hover {
    color: var(--fefer-blue);
    border-color: var(--border-strong);
}

.btn-icon-copy svg {
    width: 13px;
    height: 13px;
}

.link-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    color: var(--fefer-blue);
    background: var(--fefer-blue-soft);
    border: 1px solid var(--border-strong);
    transition: 0.2s ease;
}

.link-chip:hover {
    background: rgba(77, 166, 255, 0.25);
    color: #fff;
}

.link-chip.muted {
    color: var(--text-muted);
    background: var(--bg-card);
}

.link-chip svg {
    width: 12px;
    height: 12px;
}

.navbar-guide {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.guide-header svg {
    width: 12px;
    height: 12px;
    color: var(--fefer-cyan);
}

.guide-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.guide-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    text-decoration: none;
    background: rgba(18, 36, 68, 0.65);
    border: 1px solid var(--border);
    transition: 0.2s ease;
    max-width: 200px;
}

.guide-step:hover {
    border-color: var(--border-strong);
    background: rgba(77, 166, 255, 0.12);
    transform: translateY(-1px);
}

.step-num {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.5), rgba(77, 166, 255, 0.2));
    border: 1px solid var(--border-strong);
    flex-shrink: 0;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.step-text strong {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.step-text small {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-icon {
    width: 11px;
    height: 11px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.guide-step:hover .step-icon {
    color: var(--fefer-blue);
}

.guide-arrow {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 13, 26, 0.5);
    overflow-x: auto;
    flex-shrink: 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.stat-card-hero {
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.18) 0%, rgba(18, 36, 68, 0.6) 100%);
    border-color: var(--border-strong);
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

.price-val {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.price-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--bullish);
    background: rgba(52, 211, 153, 0.15);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value.accent {
    color: var(--fefer-blue);
}

/* MAIN GRID */
.terminal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    background: rgba(6, 13, 26, 0.9);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.footer-label {
    font-size: 11px;
    color: var(--text-dim);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--fefer-blue);
}

.footer-link .x-logo {
    opacity: 0.85;
}

.chart-section {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.chart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(12, 24, 48, 0.4);
    overflow-x: auto;
}

.chart-toolbar::-webkit-scrollbar {
    display: none;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.tf-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.15s ease;
}

.tf-btn:hover {
    color: var(--text-primary);
    background: var(--fefer-blue-soft);
}

.tf-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.35), rgba(77, 166, 255, 0.15));
    border-color: var(--border-strong);
}

.btn-action-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

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

.btn-action-sm.active {
    color: #fff;
    background: rgba(77, 166, 255, 0.22);
    border-color: var(--border-strong);
}

.btn-action-sm svg {
    width: 13px;
    height: 13px;
}

.chart-main-wrapper {
    flex: 1;
    position: relative;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.tv-chart-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.ohlc-legend {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: rgba(6, 13, 26, 0.82);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    pointer-events: none;
}

.legend-symbol {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--fefer-blue);
    letter-spacing: 0.03em;
}

.legend-item b {
    color: var(--text-primary);
}

/* SIDE PANEL */
.side-panel {
    display: flex;
    flex-direction: column;
    background: rgba(8, 16, 32, 0.6);
    backdrop-filter: blur(12px);
    min-height: 0;
    min-width: 0;
    width: 350px;
    max-width: 350px;
    overflow: hidden;
}

.panel-tabs {
    display: flex;
    padding: 12px 12px 0;
    gap: 4px;
    background: rgba(6, 13, 26, 0.5);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

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

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.28), rgba(77, 166, 255, 0.1));
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.tab-btn svg {
    width: 14px;
    height: 14px;
}

.tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.tab-content.active {
    display: flex;
}

.trades-toolbar {
    padding: 14px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(77, 166, 255, 0.06) 0%, transparent 100%);
}

.trades-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bullish);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
    animation: pulse 2s ease infinite;
    flex-shrink: 0;
}

.trades-heading-text {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.trades-count {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--fefer-blue);
    background: var(--fefer-blue-soft);
    border: 1px solid var(--border-strong);
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: auto;
}

.filter-segment {
    display: flex;
    padding: 3px;
    gap: 3px;
    border-radius: 10px;
    background: rgba(6, 13, 26, 0.8);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.filter-btn {
    flex: 1;
    padding: 7px 0;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: 0.2s ease;
}

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

.filter-btn.active {
    color: #fff;
    background: rgba(77, 166, 255, 0.35);
    box-shadow: 0 2px 8px rgba(77, 166, 255, 0.2);
}

.filter-btn.active.green {
    background: rgba(52, 211, 153, 0.28);
    color: #6ee7b7;
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.15);
}

.filter-btn.active.red {
    background: rgba(251, 113, 133, 0.28);
    color: #fda4af;
    box-shadow: 0 2px 8px rgba(251, 113, 133, 0.15);
}

.trades-table {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.trades-table-header {
    display: grid;
    grid-template-columns: 54px 42px minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 0.85fr) 24px;
    gap: 6px;
    padding: 10px 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: rgba(6, 13, 26, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 2;
}

.trades-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 8px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(77, 166, 255, 0.3) transparent;
}

.trades-list::-webkit-scrollbar {
    width: 5px;
}

.trades-list::-webkit-scrollbar-thumb {
    background: rgba(77, 166, 255, 0.25);
    border-radius: 999px;
}

.trade-row {
    display: grid;
    grid-template-columns: 54px 42px minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 0.85fr) 24px;
    gap: 6px;
    padding: 9px 8px;
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-primary);
    background: rgba(18, 36, 68, 0.35);
    border: 1px solid rgba(77, 166, 255, 0.08);
    border-radius: 10px;
    align-items: center;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    position: relative;
    overflow: hidden;
}

.trade-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 10px 0 0 10px;
    opacity: 0.9;
}

.trade-row.buy::before {
    background: linear-gradient(180deg, #34d399, #059669);
}

.trade-row.sell::before {
    background: linear-gradient(180deg, #fb7185, #e11d48);
}

.trade-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-row:hover {
    background: rgba(77, 166, 255, 0.1);
    border-color: rgba(77, 166, 255, 0.22);
    transform: translateX(2px);
}

.trade-time {
    color: var(--text-muted);
    font-size: 10px;
}

.trade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.trade-badge.buy {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.trade-badge.sell {
    color: #fda4af;
    background: rgba(251, 113, 133, 0.15);
    border: 1px solid rgba(251, 113, 133, 0.25);
}

.trade-price {
    color: #fff;
    font-weight: 600;
}

.trade-amount {
    color: var(--text-muted);
}

.trade-total {
    color: var(--fefer-blue);
    font-weight: 600;
}

.trade-link {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s ease;
}

.trade-link:hover {
    color: var(--fefer-blue);
    background: var(--fefer-blue-soft);
    border-color: var(--border-strong);
}

.trade-link svg {
    width: 11px;
    height: 11px;
}

/* INFO TAB */
#tabContentInfo {
    padding: 12px;
    gap: 12px;
    overflow-y: auto;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.info-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-strong);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
}

.info-card-head p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    gap: 12px;
}

.info-key {
    color: var(--text-muted);
    flex-shrink: 0;
}

.info-val {
    font-weight: 600;
    text-align: right;
}

.code-val {
    font-family: var(--font-mono);
    color: var(--fefer-blue);
}

.btn-block-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.35), rgba(77, 166, 255, 0.15));
    color: #fff;
    border: 1px solid var(--border-strong);
}

.btn-block-link:hover {
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.5), rgba(77, 166, 255, 0.25));
}

.btn-block-link.secondary {
    background: var(--bg-card-solid);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-block-link.secondary:hover {
    border-color: var(--border-strong);
    color: var(--fefer-blue);
}

.btn-block-link svg {
    width: 14px;
    height: 14px;
}

/* ANIMATIONS */
@keyframes flashGreen {
    0% { color: var(--bullish); text-shadow: 0 0 12px rgba(52, 211, 153, 0.6); }
    100% { color: #fff; text-shadow: none; }
}

@keyframes flashRed {
    0% { color: var(--bearish); text-shadow: 0 0 12px rgba(251, 113, 133, 0.6); }
    100% { color: #fff; text-shadow: none; }
}

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

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

/* TOAST */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-strong);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    animation: slideIn 0.3s ease;
}

.toast svg {
    width: 16px;
    height: 16px;
    color: var(--fefer-blue);
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-card-hero {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .app-container {
        height: auto;
        min-height: 100vh;
    }

    .navbar {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar-guide {
        width: 100%;
        align-items: stretch;
    }

    .guide-header {
        justify-content: center;
    }

    .guide-steps {
        justify-content: center;
    }

    .guide-step {
        flex: 1;
        min-width: 130px;
        max-width: none;
    }

    .guide-arrow {
        display: none;
    }

    .logo-badge {
        width: 40px;
        height: 40px;
    }

    .token-name {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
        gap: 8px;
    }

    .stat-card-hero {
        grid-column: 1 / -1;
    }

    .price-val {
        font-size: 18px;
    }

    .terminal-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .chart-section {
        border-right: none;
        height: 52vh;
        min-height: 340px;
    }

    .side-panel {
        height: 44vh;
        min-height: 300px;
    }

    .side-panel {
        width: 100%;
        max-width: 100%;
    }

    .trades-table-header,
    .trade-row {
        grid-template-columns: 48px 38px minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 0.85fr) 22px;
        gap: 4px;
        font-size: 9px;
    }
}
