/* Gold Price Scraper — styles phụ (lịch sử / dự đoán / thế giới).
   Bảng giá trang chủ dùng gold-table-style.css (sao y bản gốc).
   Tông màu bám theo thương hiệu: maroon #8D1B1B, Mua đỏ, Bán xanh. */
:root {
	--gps-brand: #8D1B1B;
	--gps-buy: #D32F2F;
	--gps-sell: #1976D2;
	--gps-bg-alt: #FFFBF5;
	--gps-border: #e0e0e0;
}

.gps-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	margin: 0 0 2em;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.gps-title {
	margin: 0;
	padding: 14px 18px;
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	background: var(--gps-brand);
}

.gps-table-wrap { overflow-x: auto; }
.gps-table { width: 100%; border-collapse: collapse; }
.gps-table thead th {
	background: var(--gps-brand);
	color: #fff;
	padding: 12px 18px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: .9rem;
	text-align: left;
}
.gps-table thead th:nth-child(2), .gps-table thead th:nth-child(3) { text-align: right; }
.gps-table tbody td { padding: 14px 12px; border-bottom: 1px solid #f0f0f0; }
.gps-table tbody td:nth-child(2), .gps-table tbody td:nth-child(3) { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.gps-table tbody td:nth-child(2) { color: var(--gps-buy); }
.gps-table tbody td:nth-child(3) { color: var(--gps-sell); }
.gps-table tbody tr:nth-child(even) { background: var(--gps-bg-alt); }
.gps-col-buy { color: var(--gps-buy); }
.gps-col-sell { color: var(--gps-sell); }

.gps-note, .gps-disclaimer { font-size: .85rem; color: #666; padding: 12px 18px; margin: 0; line-height: 1.6; }
.gps-empty { padding: 20px; text-align: center; color: #777; font-style: italic; }
.gps-flag { color: var(--gps-buy); font-weight: 600; }

/* Chart */
.gps-chart-box { position: relative; height: 320px; padding: 16px 18px; }

/* Prediction */
.gps-pred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 18px; }
.gps-pred-item { background: var(--gps-bg-alt); border: 1px solid var(--gps-border); border-radius: 8px; padding: 14px; text-align: center; }
.gps-pred-label { display: block; font-size: .8rem; color: #777; margin-bottom: 6px; }
.gps-pred-value { display: block; font-size: 1.15rem; font-weight: 800; color: #222; }
.gps-trend-up .gps-pred-value { color: #1f7a3f; }
.gps-trend-down .gps-pred-value { color: var(--gps-buy); }

/* World / FX */
.gps-world-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px 18px; }
.gps-world-item { background: var(--gps-bg-alt); border: 1px solid var(--gps-border); border-radius: 8px; padding: 16px; text-align: center; }
.gps-world-label { display: block; font-size: .82rem; color: #777; margin-bottom: 8px; }
.gps-world-value { display: block; font-size: 1.3rem; font-weight: 800; color: var(--gps-brand); }

@media (max-width: 600px) {
	.gps-pred-grid, .gps-world-grid { grid-template-columns: 1fr; }
}
