
:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
    --panel-radius: 12px;
    --control-radius: 8px;
}

[data-theme="dark"] {
    --bg-primary: #0c0c0e;
    --bg-secondary: #111113;
    --bg-card: #171719;
    --bg-card-hover: #1e1e21;
    --chart-bg: var(--bg-card);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.10);
    --border-glow: rgba(255, 255, 255, 0.16);
    --text-primary: #f0f0f0;
    --text-secondary: #888888;
    --text-muted: #4a4a52;
    --accent: #c8c8c8;
    --accent-strong: #ffffff;
    --accent-muted: rgba(255, 255, 255, 0.07);
    --accent-contrast: #0c0c0e;
    --accent-gradient: #c8c8c8;
    --header-bg: #0c0c0e;
    --badge-bg: #35b85a;
    --badge-glow: rgba(53, 184, 90, 0.20);
    --badge-closed-bg: #3a3a40;
    --ask-bg: rgba(242, 54, 69, 0.06);
    --bid-bg: rgba(8, 153, 129, 0.06);
    --ask-bar: rgba(242, 54, 69, 0.18);
    --bid-bar: rgba(8, 153, 129, 0.18);
    --shadow-card: none;
    --shadow-header: none;
    --scrollbar-track: #0e0e10;
    --scrollbar-thumb: #2a2a2e;
    --price-neutral: #f0f0f0;
}

[data-theme="light"] {
    --bg-primary: #f0f0f2;
    --bg-secondary: #f8f8fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f4f6;
    --chart-bg: #fafafa;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --border-glow: rgba(0, 0, 0, 0.20);
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #999999;
    --accent: #2a2a2e;
    --accent-strong: #111111;
    --accent-muted: rgba(0, 0, 0, 0.07);
    --accent-contrast: #ffffff;
    --accent-gradient: #2a2a2e;
    --header-bg: #f8f8fa;
    --badge-bg: #168a3a;
    --badge-glow: rgba(22, 138, 58, 0.18);
    --badge-closed-bg: #c0c0c8;
    --ask-bg: rgba(242, 54, 69, 0.05);
    --bid-bg: rgba(8, 153, 129, 0.05);
    --ask-bar: rgba(242, 54, 69, 0.14);
    --bid-bar: rgba(8, 153, 129, 0.14);
    --shadow-card: none;
    --shadow-header: none;
    --scrollbar-track: #e8e8ea;
    --scrollbar-thumb: #c0c0c8;
    --price-neutral: #111111;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.18s ease, color 0.18s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.25rem;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-header);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--control-radius);
    padding: 2px 4px;
    transition: opacity 0.2s ease;
}

.header-logo-link:hover {
    opacity: 0.8;
}

.header-left h1 {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    letter-spacing: normal;
    margin-right: 0.5rem;
    line-height: 1;
}

.brand-sub {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-main {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-strong);
    letter-spacing: 0;
}

.header-logo {
    height: 30px;
    width: 30px;
    display: block;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

[data-theme=light] .header-logo > path {
    stroke: #3f3f46;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clock {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}


.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.48rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--badge-bg);
    border-radius: var(--control-radius);
}

.badge.closed {
    background: var(--badge-closed-bg);
    color: #ffffff;
}

.badge:not(.closed) {
    animation: none;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    }
}

.status-dot {
    display: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--badge-bg);
    flex-shrink: 0;
}

.status-dot.closed {
    background: var(--badge-closed-bg);
}

.status-dot:not(.closed) {
    animation: none;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(1.25);
    }
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--control-radius);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.lang-btn-group {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--control-radius);
    overflow: hidden;
    background: transparent;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.45rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-family);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover:not(.active) {
    background: var(--bg-card-hover);
    color: var(--text-secondary);
}

.lang-btn.active {
    background: var(--accent-gradient);
    color: var(--accent-contrast);
}

.icon {
    width: 18px;
    height: 18px;
}

.global-nav {
    display: flex;
    gap: 0;
    padding: 0 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    justify-content: flex-start;
    position: sticky;
    top: 51px;
    z-index: 90;
}

.global-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.56rem 0.95rem;
    font-size: 0.74rem;
    font-weight: 700;
    font-family: var(--font-family);
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.15s ease, border-color 0.15s ease;
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.global-nav-link:hover {
    color: var(--text-secondary);
}

.global-nav-link.active {
    color: var(--accent-strong);
    border-bottom-color: var(--accent);
}

.nav-clock {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.05rem;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--text-muted);
    white-space: nowrap;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.55rem 1rem;
    background: var(--bg-secondary);
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-family);
    position: sticky;
    top: 51px;
    z-index: 90;
}

.nav-toggle:hover {
    background: var(--bg-card-hover);
}

.mobile-nav-dropdown {
    display: none;
    flex-direction: column;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    position: sticky;
    top: 95px;
    z-index: 89;
}

.mobile-nav-dropdown.open {
    display: flex;
    max-height: 400px;
    overflow-y: auto;
}

.mobile-nav-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-secondary);
}

.mobile-nav-item.active {
    color: var(--accent-strong);
    background: var(--accent-muted);
}

.hidden {
    display: none;
}

.market-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--panel-radius);
    box-shadow: var(--shadow-card);
}

.market-tab-btn {
    flex: 1;
    padding: 0.5rem 1.05rem;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--control-radius);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.market-tab-btn:hover {
    color: var(--text-secondary);
    background: var(--bg-card-hover);
}

.market-tab-btn.active {
    color: var(--accent-contrast);
    background: var(--accent-gradient);
    box-shadow: none;
}

main {
    width: min(100%, 1680px);
    max-width: none;
    margin: 0 auto;
    padding: 1rem 1.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--panel-radius);
    box-shadow: var(--shadow-card);
    transition: background 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.78rem 1rem 0;
}

.card-header h2 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.combined-header {
    justify-content: flex-start;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.tab-btn {
    background: transparent;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0;
    position: relative;
    transition: color 0.2s ease;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 0;
}


.market-indicators-section {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 460px;
}

.tradingview-widget-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: inherit;
}

.tradingview-widget-container__widget {
    flex: 1;
    min-height: 420px;
}

.tradingview-widget-copyright {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.35rem 0.5rem;
    border-top: 1px solid var(--border-color);
}

.tradingview-widget-copyright a {
    color: var(--text-muted);
    text-decoration: none;
}

.tradingview-widget-copyright a:hover {
    color: var(--text-secondary);
}

.tradingview-widget-copyright .blue-text {
    color: var(--accent-strong);
}

.time-range {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--control-radius);
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
}

.chart-container {
    padding: 0.75rem 0.5rem 0.5rem;
    height: 480px;
    position: relative;
    background: var(--chart-bg);
}

#chartCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.investor-chart-container {
    padding: 0.75rem 0.5rem 0.5rem;
    height: 280px;
    position: relative;
    background: var(--chart-bg);
}

#investorChartCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.investor-chart-header-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.investor-chart-legend {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.investor-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.legend-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    display: inline-block;
}

.legend-individual {
    background: #34d399;
}

.legend-foreign {
    background: #38bdf8;
}

.legend-investment {
    background: #fbbf24;
}

.chart-header-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chart-copy-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--control-radius);
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.chart-copy-btn:hover {
    opacity: 1;
    background: var(--accent-gradient);
    color: var(--accent-contrast);
    border-color: transparent;
}

.market-overview-section,
.investor-combined-section {
    display: flex;
    flex-direction: column;
}

.market-overview-section .chart-section,
.market-overview-section .extra-info-section,
.investor-flow-chart-section {
    border-top: 1px solid var(--border-color);
}

.trade-info-section {
    padding: 1rem;
}

.trade-info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 0.8rem;
    align-items: center;
}

.trade-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.trade-info-item .label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.trade-info-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.trade-info-item.main-price .value {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0;
}

.trade-info-item .value.time {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.extra-info-section {
    padding: 1rem;
}

.extra-info-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8rem;
    align-items: center;
}

.up {
    color: #089981 !important;
}

.down {
    color: #f23645 !important;
}

.price-up {
    color: #089981 !important;
}

.price-down {
    color: #f23645 !important;
}

.price-neutral {
    color: var(--price-neutral) !important;
}

.orderbook-container {
    padding: 0 1rem 1rem;
}

.orderbook-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
}

.orderbook-table thead th {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.5rem 0.45rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.orderbook-table tbody td {
    padding: 0.42rem 0.45rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: background 0.15s ease;
}

.orderbook-table tbody tr:not(.separator) td:empty::after {
    content: '\00a0';
}

.orderbook-table tbody tr:last-child td {
    border-bottom: none;
}

.orderbook-table tbody tr.ask-row td {
    color: var(--text-primary);
}

.orderbook-table tbody tr.ask-row td.ask-price {
    font-weight: 600;
}

.orderbook-table tbody tr.bid-row td.bid-price {
    font-weight: 600;
}

.orderbook-table tbody td.ask-volume {
    background: var(--ask-bg);
}

.orderbook-table tbody td.bid-volume {
    background: var(--bid-bg);
}

.orderbook-table tbody tr.separator td {
    height: 3px;
    padding: 0;
    background: var(--accent-gradient);
    border: none;
}

.recent-trades-container {
    padding: 0 1rem 1rem;
}

.recent-trades-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
}

.recent-trades-table thead th {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.5rem 0.45rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.recent-trades-table tbody td {
    padding: 0.42rem 0.45rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.recent-trades-table tbody tr:last-child td {
    border-bottom: none;
}

.recent-trades-table tbody tr.trade-up td {
    color: #089981;
}

.recent-trades-table tbody tr.trade-down td {
    color: #f23645;
}

.recent-trades-table tbody tr.trade-up td.trade-time,
.recent-trades-table tbody tr.trade-down td.trade-time {
    color: var(--text-secondary);
}

.investor-summary-section {
    padding-bottom: 1.5rem;
}

.investor-summary-section .card-header {
    padding-bottom: 0.75rem;
}

.investor-updated {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.investor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0 1rem;
}

.investor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--panel-radius);
    background: var(--bg-secondary);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.investor-item:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.investor-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--control-radius);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.investor-item:hover .investor-icon {
    transform: scale(1.07);
}

.investor-icon--individual {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.investor-icon--foreign {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
}

.investor-icon--investment {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.investor-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.investor-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    transition: color 0.25s ease;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: none;
}

.market-overview-section {
    animation-delay: 0s;
}

.investor-combined-section {
    animation-delay: 0.1s;
}

.orderbook-section {
    animation-delay: 0.2s;
}

.recent-trades-section {
    animation-delay: 0.3s;
}

@keyframes flashUp {
    0% {
        background: rgba(8, 153, 129, 0.15);
    }

    100% {
        background: transparent;
    }
}

@keyframes flashDown {
    0% {
        background: rgba(242, 54, 69, 0.15);
    }

    100% {
        background: transparent;
    }
}

.flash-up {
    animation: flashUp 0.6s ease;
}

.flash-down {
    animation: flashDown 0.6s ease;
}

@media (max-width: 768px) {
    header {
        padding: 0.6rem 1rem;
    }

    .header-logo {
        height: 24px;
        width: 24px;
    }

    .header-left h1 {
        margin-right: 0.2rem;
    }

    .brand-sub {
        font-size: 0.52rem;
    }

    .brand-main {
        font-size: 0.78rem;
    }

    .badge {
        display: none;
    }

    .global-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .status-dot {
        display: inline-block;
    }

    main {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 0.5rem 2rem;
    }

    .market-tabs {
        padding: 0.3rem;
    }

    .market-tab-btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.92rem;
    }

    .chart-container {
        height: 320px;
    }

    .investor-chart-container {
        height: 260px;
    }

    .investor-chart-header-right {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .investor-chart-legend {
        gap: 0.45rem;
        font-size: 0.68rem;
    }

    .trade-info-grid,
    .extra-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trade-info-item.main-price .value {
        font-size: 1.4rem;
    }

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

    .market-indicators-section {
        min-height: 380px;
    }

    .tradingview-widget-container__widget {
        min-height: 340px;
    }

    .orderbook-table tbody td,
    .orderbook-table thead th,
    .recent-trades-table tbody td,
    .recent-trades-table thead th {
        font-size: 0.75rem;
        padding: 0.4rem 0.3rem;
    }

    .investor-grid {
        gap: 0.6rem;
        padding: 0 0.75rem;
    }

    .investor-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .investor-icon svg {
        width: 22px;
        height: 22px;
    }

    .investor-value {
        font-size: 1rem;
    }
}
