:root {
	--gold: #d99a00;
	--gold-dark: #b87900;
	--gold-light: #fff4d6;
	--navy: #061a2f;
	--navy-2: #0d2744;
	--bg: #f8fafc;
	--white: #ffffff;
	--text: #111827;
	--muted: #6b7280;
	--border: #eadfca;
	--green: #16a34a;
	--red: #dc2626;
	--orange: #f59e0b;
}

.is-bieu-do-page .primary-menu li:nth-child(3) > a {
	color: var(--gold-dark);
	border-bottom-color: var(--gold);
}

.topbar__hotline {
	margin-left: 22px;
}

.chart-page {
	background: var(--bg);
	padding: 22px 0 0;
	font-size: 13px;
}

.is-bieu-do-page .gvt-container {
	width: min(1440px, calc(100% - 48px));
}

.cp-breadcrumb {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
	font-weight: 750;
	color: var(--muted);
}

.cp-breadcrumb a {
	color: var(--gold-dark);
}

.cp-breadcrumb span::before {
	content: ">";
	margin-right: 8px;
	color: #cbd5e1;
}

.cp-title-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 640px;
	gap: 18px;
	align-items: end;
	margin-bottom: 18px;
}

.cp-title-grid h1 {
	margin: 0;
	font-size: 32px;
	line-height: 1.15;
	font-weight: 900;
	color: var(--navy);
}

.cp-title-grid p {
	margin: 7px 0 0;
	color: var(--muted);
}

.cp-status-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.cp-status-cards div,
.cp-ticker-item,
.cp-filter-card,
.cp-chart-panel,
.cp-tabs-card,
.cp-right .gvt-card,
.cp-below .gvt-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(7, 26, 47, .055);
}

.cp-status-cards div {
	padding: 12px;
}

.cp-status-cards span,
.cp-ticker-item span {
	display: block;
	color: var(--muted);
	font-size: 11px;
	font-weight: 750;
}

.cp-status-cards strong,
.cp-ticker-item strong {
	display: block;
	margin-top: 5px;
	color: var(--navy);
	font-size: 14px;
	font-weight: 900;
}

.is-up { color: var(--green) !important; }
.is-down { color: var(--red) !important; }

.cp-ticker {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 12px;
	margin-bottom: 18px;
}

.cp-ticker-item {
	padding: 13px 14px;
	position: relative;
	overflow: hidden;
	min-height: 92px;
}

.cp-ticker-item em {
	display: block;
	margin-top: 6px;
	font-style: normal;
	font-weight: 850;
	font-size: 12px;
}

.cp-ticker-item svg {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 74px;
	height: 28px;
	fill: none;
	stroke: var(--green);
	stroke-width: 3;
}

.cp-ticker-item:has(.is-down) svg {
	stroke: var(--red);
}

.cp-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr) 340px;
	gap: 18px;
	align-items: start;
	width: 100%;
	max-width: 100%;
}

.cp-left,
.cp-right {
	display: grid;
	gap: 16px;
	position: sticky;
	top: 142px;
	min-width: 0;
}

.cp-left { grid-column: 1; }
.cp-main { grid-column: 2; }
.cp-right { grid-column: 3; }

.cp-filter-card,
.cp-right .gvt-card {
	padding: 18px;
}

.cp-filter-card h2,
.cp-right h2,
.cp-below h2 {
	margin: 0 0 12px;
	color: var(--navy);
	font-size: 14px;
	font-weight: 900;
	text-transform: uppercase;
}

.cp-filter-card h2:not(:first-child) {
	margin-top: 20px;
}

.cp-filter-card label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 26px;
	color: #334155;
	font-size: 12px;
	font-weight: 750;
}

.cp-button-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 7px;
}

.cp-button-grid button,
.cp-chart-types button,
.cp-alert-toggle button,
.unit-buttons button {
	min-height: 32px;
	border: 1px solid #e5e7eb;
	border-radius: 7px;
	background: #fff;
	font-size: 12px;
	font-weight: 850;
	cursor: pointer;
}

.cp-chart-types {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 7px;
}

.cp-button-grid .is-active,
.cp-chart-types .is-active,
.cp-alert-toggle .is-active,
.unit-buttons .is-active {
	border-color: var(--gold);
	background: var(--gold-light);
	color: var(--gold-dark);
}

.cp-toggle-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px 10px;
}

.cp-switch {
	justify-content: space-between;
}

.cp-reset-chart {
	width: 100%;
	margin-top: 12px;
}

.cp-main {
	display: grid;
	gap: 18px;
	min-width: 0;
	max-width: 100%;
}

.cp-chart-panel {
	padding: 14px;
	min-width: 0;
	overflow: hidden;
}

.cp-tabs-card,
.cp-tab-panel,
.cp-below .gvt-card,
.cp-right .gvt-card,
.cp-filter-card {
	min-width: 0;
	max-width: 100%;
}

.cp-toolbar {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding-bottom: 12px;
	border-bottom: 1px solid #eef1f5;
}

.cp-toolbar button,
.cp-toolbar label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 10px;
	border: 1px solid #e5e7eb;
	border-radius: 7px;
	background: #fff;
	color: #334155;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.cp-chart-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 4px 6px;
}

.cp-chart-head h2 {
	margin: 0 0 6px;
	color: var(--navy);
	font-size: 17px;
}

.cp-chart-head h2 span {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--green);
}

.cp-chart-head p,
.cp-chart-head strong {
	margin: 0;
	color: #334155;
	font-size: 12px;
}

.cp-chart-head em {
	color: var(--green);
	font-style: normal;
	font-weight: 900;
}

.cp-chart-wrap {
	height: 520px;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

#cp-candle-chart,
#cp-compare-chart,
#cp-tab-compare-chart {
	width: 100%;
	max-width: 100%;
	min-height: 100%;
}

.apexcharts-canvas,
.apexcharts-svg {
	max-width: 100% !important;
}

.cp-chart-fallback,
.cp-gauge-fallback {
	display: flex;
	min-height: 220px;
	align-items: center;
	justify-content: center;
	border: 1px dashed var(--border);
	border-radius: 12px;
	background: #fffaf0;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
	padding: 18px;
}

.cp-gauge-fallback {
	flex-direction: column;
	gap: 4px;
}

.cp-gauge-fallback strong {
	color: var(--green);
	font-size: 34px;
}

.cp-chart-tooltip {
	display: grid;
	gap: 4px;
	min-width: 150px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--border);
	box-shadow: 0 10px 28px rgba(6, 26, 47, 0.12);
	color: var(--text);
	font-size: 12px;
}

.cp-mini-controls {
	display: flex;
	gap: 15px;
	align-items: center;
	padding: 10px 4px 0;
	color: #475569;
	font-size: 12px;
}

.cp-tabs-card {
	padding: 0;
	overflow: hidden;
}

.cp-tabs {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	border-bottom: 1px solid #eef1f5;
}

.cp-tabs button {
	min-height: 48px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: #fff;
	font-weight: 850;
	cursor: pointer;
}

.cp-tabs .is-active {
	color: var(--gold-dark);
	border-bottom-color: var(--gold);
}

.cp-tab-panel {
	display: none;
	padding: 18px;
}

.cp-tab-panel.is-active {
	display: block;
}

.cp-metric-grid,
.cp-indicator-grid,
.cp-forecast-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.cp-metric-grid article,
.cp-indicator-grid article,
.cp-forecast-grid article {
	padding: 14px;
	border: 1px solid #eef1f5;
	border-radius: 10px;
	background: #fff;
}

.cp-metric-grid span,
.cp-indicator-grid span,
.cp-forecast-grid span {
	display: block;
	color: var(--muted);
	font-size: 11px;
	font-weight: 750;
}

.cp-metric-grid strong,
.cp-indicator-grid strong,
.cp-forecast-grid strong {
	display: block;
	margin-top: 6px;
	color: var(--navy);
	font-size: 18px;
	font-weight: 900;
}

.cp-progress {
	height: 8px;
	margin-top: 9px;
	border-radius: 99px;
	background: #eef2f7;
	overflow: hidden;
}

.cp-progress i {
	display: block;
	height: 100%;
	background: var(--green);
}

.cp-watchlist #cp-watchlist,
.cp-market-overview #cp-market-overview,
.cp-fast-news #cp-fast-news {
	display: grid;
	gap: 10px;
}

#cp-fast-news,
.cp-news-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-side-row,
.cp-news-row,
.cp-watch-row,
.cp-overview-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	align-items: center;
	font-size: 12px;
}

#cp-fast-news li,
.cp-news-list li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 8px;
	align-items: start;
	font-size: 12px;
}

.cp-overview-row {
	grid-template-columns: minmax(0, 1fr) 96px auto;
}

#cp-fast-news li span,
.cp-news-list li span {
	min-width: 0;
	line-height: 1.45;
}

.cp-side-row strong,
.cp-watch-row strong,
.cp-overview-row strong {
	color: var(--navy);
}

.cp-side-row em,
.cp-news-row time,
#cp-fast-news time,
.cp-news-list time {
	font-style: normal;
	color: var(--muted);
}

.cp-watch-symbol {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 800;
	color: var(--navy);
}

.cp-watch-symbol i {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--gold);
}

.cp-overview-row div span {
	display: block;
	margin-top: 4px;
	color: var(--navy);
	font-weight: 800;
}

.cp-alert select,
.cp-alert input,
.cp-converter input,
.cp-converter select {
	width: 100%;
	min-height: 38px;
	margin-bottom: 10px;
	border: 1px solid #e5e7eb;
	border-radius: 7px;
	padding: 0 10px;
}

#cp-alert-message {
	min-height: 18px;
	margin: 8px 0 0;
	color: var(--green);
	font-size: 12px;
	font-weight: 800;
}

#cp-alert-message.is-error {
	color: var(--red);
}

.cp-alert-toggle,
.unit-buttons {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-bottom: 10px;
}

.cp-converter .unit-buttons {
	grid-template-columns: repeat(4, 1fr);
}

.cp-convert-row {
	display: grid;
	grid-template-columns: 1fr 96px;
	gap: 8px;
}

.cp-converter strong {
	display: block;
	margin: 10px 0;
	color: var(--navy);
	font-size: 20px;
}

.cp-app-card {
	overflow: hidden;
}

.cp-below {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 18px;
	margin-top: 0;
	margin-bottom: 26px;
	align-items: start;
	overflow: hidden;
}

.cp-below .gvt-card {
	padding: 18px;
	grid-column: 1 / -1;
}

.cp-below-wide,
.cp-ai,
.cp-heatmap,
.cp-faq,
.cp-compare-section {
	grid-column: 1 / -1;
}

.cp-below .cp-gauge,
.cp-below .cp-read-chart {
	grid-column: span 6;
	min-height: 338px;
}

.cp-below #cp-compare-chart,
.cp-below #cp-sentiment-gauge {
	min-height: 260px;
}

.cp-section-head {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 14px;
}

.cp-section-head h2 {
	margin-bottom: 5px;
}

.cp-section-head p {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.5;
}

.cp-compare-controls {
	display: grid;
	grid-template-columns: 150px 150px auto;
	gap: 8px;
	align-items: center;
	flex: 0 0 auto;
}

.cp-compare-controls select,
.cp-compare-controls button {
	min-height: 38px;
	border: 1px solid #e5e7eb;
	border-radius: 9px;
	background: #fff;
	color: var(--navy);
	font-size: 12px;
	font-weight: 800;
}

.cp-compare-controls select {
	padding: 0 34px 0 12px;
}

.cp-compare-controls button {
	padding: 0 14px;
	border-color: var(--gold);
	background: linear-gradient(180deg, #f0aa16, #d48b00);
	color: #fff;
	box-shadow: 0 8px 18px rgba(217, 154, 0, .18);
	cursor: pointer;
}

.cp-chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 4px 0 8px;
	color: #475569;
	font-size: 12px;
	font-weight: 800;
}

.cp-chart-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cp-chart-legend span::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--gold);
}

.cp-chart-legend .is-doji::before { background: #3b82f6; }
.cp-chart-legend .is-pnj::before { background: var(--green); }

.cp-compare-chart-wrap {
	min-height: 330px;
	max-height: 380px;
	overflow: hidden;
}

.cp-history-table,
.cp-history-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

table.cp-history-table {
	max-width: 100%;
	overflow-x: auto;
	white-space: nowrap;
}

table.cp-history-table thead,
table.cp-history-table tbody {
	display: table;
	width: 100%;
}

.cp-history-table th,
.cp-history-table td {
	padding: 10px 8px;
	border-bottom: 1px solid #eef1f5;
	text-align: left;
}

.cp-heatmap-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
	gap: 10px;
}

.cp-heat-item,
.cp-heatmap-item {
	padding: 14px;
	border-radius: 10px;
	font-weight: 900;
	min-width: 0;
	overflow: hidden;
}

.cp-heat-item.is-up,
.cp-heatmap-item.is-up {
	background: #dcfce7;
}

.cp-heat-item.is-down,
.cp-heatmap-item.is-down {
	background: #fee2e2;
}

.cp-heatmap-item strong,
.cp-heatmap-item b,
.cp-heatmap-item span {
	display: block;
}

.cp-heatmap-item b {
	margin: 7px 0 5px;
	font-size: 18px;
	white-space: nowrap;
}

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

.cp-forecast-item {
	min-width: 0;
}

.cp-faq-item {
	border-bottom: 1px solid #eef1f5;
}

.cp-faq-item button {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border: 0;
	background: transparent;
	color: var(--navy);
	font-weight: 800;
	text-align: left;
}

.cp-faq-answer {
	display: none;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.cp-faq-item.is-open .cp-faq-answer {
	display: block;
}

.cp-more-link {
	display: block;
	margin-top: 10px;
	color: var(--gold-dark);
	font-size: 12px;
	font-weight: 900;
	text-align: center;
}

.cp-gauge {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.cp-gauge strong {
	display: block;
	margin-top: -8px;
	color: var(--green);
	font-size: 34px;
	line-height: 1;
}

.cp-gauge > span {
	margin-top: 6px;
	color: var(--navy);
	font-weight: 700;
}

.cp-gauge #cp-sentiment-gauge {
	width: min(100%, 310px);
	margin: 2px auto 0;
}

.cp-read-chart {
	display: flex;
	flex-direction: column;
}

.cp-read-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	flex: 1;
}

.cp-read-grid div {
	display: flex;
	min-height: 76px;
	flex-direction: column;
	justify-content: center;
	padding: 12px;
	border: 1px solid #eef1f5;
	border-radius: 10px;
	background: #fff;
}

.cp-read-grid b,
.cp-read-grid span {
	display: block;
}

.cp-read-grid span {
	color: var(--muted);
	font-size: 12px;
}

.cp-feature-strip {
	background: #fff;
	border-top: 1px solid var(--border);
}

.cp-feature-strip .gvt-container {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
}

.cp-feature-strip article {
	padding: 22px;
	text-align: center;
	color: var(--gold-dark);
	font-weight: 900;
}

.cp-chart-panel.is-dark {
	background: #071a2f;
	color: #e5edf7;
}

.cp-chart-panel.is-dark h2,
.cp-chart-panel.is-dark strong {
	color: #fff;
}

@media (max-width: 1199px) {
	.cp-title-grid,
	.cp-layout,
	.cp-below {
		grid-template-columns: 1fr;
	}

	.cp-left,
	.cp-right {
		position: static;
	}

	.cp-left,
	.cp-main,
	.cp-right {
		grid-column: auto;
	}

	.cp-ticker {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.is-bieu-do-page .gvt-container {
		width: min(100% - 24px, 1440px);
	}

	.cp-status-cards,
	.cp-ticker,
	.cp-metric-grid,
	.cp-indicator-grid,
	.cp-forecast-grid,
	.cp-below,
	.cp-heatmap-grid,
	.cp-read-grid,
	.cp-feature-strip .gvt-container {
		grid-template-columns: 1fr;
	}

	.cp-below .gvt-card,
	.cp-below .cp-gauge,
	.cp-below .cp-read-chart {
		grid-column: 1 / -1;
	}

	.cp-tabs {
		grid-template-columns: repeat(2, 1fr);
	}

	.cp-chart-wrap {
		height: 360px;
	}

	.cp-toolbar,
	.cp-mini-controls {
		overflow-x: auto;
		flex-wrap: nowrap;
	}

	.cp-section-head,
	.cp-compare-controls {
		grid-template-columns: 1fr;
		display: grid;
	}

	.cp-compare-chart-wrap {
		min-height: 280px;
	}
}
