/**
 * Aurum Gold — cream / black / gold "financial dashboard" skin.
 * All custom classes are prefixed `aurum-` per project convention.
 */

:root {
	--aurum-bg: #f3efe6;
	--aurum-surface: #fff;
	--aurum-surface-2: #fbf8f1;
	--aurum-ink: #171511;
	--aurum-muted: #716a5e;
	--aurum-line: #e5ddcd;
	--aurum-gold: #bd8a22;
	--aurum-gold-2: #e9cb7e;
	--aurum-dark: #15130f;
	--aurum-green: #0c8a62;
	--aurum-red: #c94343;
	--aurum-shadow: 0 18px 54px rgba(52, 40, 10, .08);
	--aurum-radius: 22px;
	--aurum-radius-lg: 30px;
}

/* Global base. Flatsome's Customizer typography settings print an inline
   <style>body{font-family:Lato,...}</style> tag late in <head>, after this
   stylesheet — with equal specificity, source order would let it win, so
   these use a two-element selector (`html body`) to outrank it regardless
   of load order. */
html body { margin: 0; font-family: Inter, Arial, sans-serif; background: var(--aurum-bg); color: var(--aurum-ink); }
html body a { text-decoration: none; color: inherit; }
#wrapper, #main { background: var(--aurum-bg); }

/* Global header block */
.aurum-topline {
	height: 34px;
	background: #12110e;
	color: #d7cdb9;
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 4px;
}
.aurum-live-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #28bf83;
	margin-right: 7px;
	box-shadow: 0 0 0 4px rgba(40, 191, 131, .12);
}

/* Layout comes entirely from Flatsome's own [row v_align="middle"]/[col span=...] —
   adding display/gap/flex-wrap here double-applies spacing on top of Flatsome's own
   100%-wide columns and forces the last column to overflow onto a new line. */
.aurum-header-main {
}
.aurum-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 185px;
	text-decoration: none;
	color: inherit;
}
.aurum-brandmark {
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: linear-gradient(145deg, #f2dda0, #a97412);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.aurum-brandmark span {
	font: 700 18px Georgia, serif;
	color: #47330b;
}
.aurum-brand b {
	font: 700 23px Georgia, serif;
	display: block;
}
.aurum-brand small {
	display: block;
	font-size: 9px;
	letter-spacing: .8px;
	color: var(--aurum-muted);
}
.aurum-menu {
	display: flex;
	gap: 4px;
	flex: 1;
	flex-wrap: wrap;
}
.aurum-menu a {
	padding: 10px 9px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 800;
	color: #514b41;
	text-decoration: none;
}
.aurum-menu a:hover,
.aurum-menu a.aurum-active {
	background: #e9e2d3;
	color: #8b6418;
}
.aurum-nav-actions {
	display: flex;
	gap: 8px;
}
.aurum-btn,
.aurum-icon-btn {
	border: 0;
	cursor: pointer;
	border-radius: 12px;
	font-weight: 800;
	font-size: 13px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.aurum-btn {
	padding: 12px 15px;
}
.aurum-btn-dark {
	background: #171511;
	color: #fff;
}
.aurum-btn-light {
	background: #fff;
	border: 1px solid var(--aurum-line);
	color: var(--aurum-ink);
}
.aurum-icon-btn {
	width: 42px;
	height: 42px;
	background: #fff;
	border: 1px solid var(--aurum-line);
	color: var(--aurum-ink);
}

/* Ticker */
.aurum-ticker {
	background: #faf7f0;
	border-top: 1px solid var(--aurum-line);
	border-bottom: 1px solid var(--aurum-line);
}
.aurum-ticker-row {
	height: 45px;
	display: flex;
	gap: 26px;
	align-items: center;
	overflow: auto;
	white-space: nowrap;
	padding: 0 4px;
}
.aurum-ticker-item {
	font-size: 11px;
	color: var(--aurum-muted);
}
.aurum-ticker-item b {
	color: var(--aurum-ink);
	margin: 0 6px;
}
.aurum-up { color: var(--aurum-green) !important; }
.aurum-down { color: var(--aurum-red) !important; }

/* Compact world price card (aurum_gold_ticker mode="world") */
.aurum-price-card h3 { font: 700 25px Georgia, serif; margin: 7px 0; }
.aurum-world-price { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.aurum-world-price strong { font-size: 40px; font-weight: 850; color: var(--aurum-ink); }
.aurum-world-price span { font-size: 14px; font-weight: 800; }
.aurum-spark { height: 120px; margin-top: 10px; border-radius: 14px; overflow: hidden; }
.aurum-spark svg { display: block; width: 100%; height: 100%; }

/* Generic building blocks used inside shortcodes */
.aurum-eyebrow {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 1.4px;
	color: #9d741e;
	text-transform: uppercase;
}
.aurum-card {
	background: var(--aurum-surface);
	border: 1px solid var(--aurum-line);
	border-radius: var(--aurum-radius);
	box-shadow: var(--aurum-shadow);
}
.aurum-muted { color: var(--aurum-muted); }

/* Page hero (Giá vàng / So sánh / Biểu đồ / Công cụ intros) */
.aurum-page-hero { padding: 42px 0 25px; }
.aurum-page-hero h1 { font-family: Georgia, serif; font-size: 48px; margin: 10px 0 8px; }
.aurum-page-hero p { max-width: 760px; color: var(--aurum-muted); line-height: 1.7; }
.aurum-breadcrumb { font-size: 11px; color: var(--aurum-muted); }

/* Section titles (Home's "So sánh" / "Biểu đồ" / "Công cụ" headings) */
.aurum-section-title h2 { font-family: Georgia, serif; font-size: 34px; margin: 7px 0 0; }
.aurum-section-title p { font-size: 12px; color: var(--aurum-muted); margin: 7px 0 0; }
.aurum-section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 17px; flex-wrap: wrap; }

/* Plain arrow link (not a boxed button) */
.aurum-link { font-size: 12px; font-weight: 850; color: #8c6518; }

/* Home tool cards */
.aurum-tool { padding: 20px; }
.aurum-tool-ico {
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: #f0e7d4;
	display: grid;
	place-items: center;
	margin-bottom: 13px;
}
.aurum-tool h3 { font-size: 15px; margin: 0 0 7px; }
.aurum-tool p { font-size: 11px; line-height: 1.6; color: var(--aurum-muted); min-height: 52px; }

/* Hero headline (Home hero, dark card) */
.aurum-hero-main h1 { font: 700 45px/1.08 Georgia, serif; margin: 10px 0; color: #fff; }
.aurum-hero-main p { color: #bdb3a0; font-size: 13px; }

/* Hero pair (aurum_gold_table hero mode) */
.aurum-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.aurum-pricebox {
	padding: 19px;
	border: 1px solid rgba(255, 255, 255, .11);
	background: rgba(255, 255, 255, .06);
	border-radius: 17px;
}
.aurum-pricebox small { color: #bbb3a2; }
.aurum-pricebox strong { display: block; font-size: 34px; margin: 7px 0; color: inherit; }
.aurum-hero-foot { display: flex; gap: 14px; margin-top: 20px; color: #a99f8c; font-size: 10px; }

/* Filters */
.aurum-filterbar {
	padding: 16px;
	display: flex;
	gap: 10px;
	align-items: end;
	flex-wrap: wrap;
}
.aurum-filter { min-width: 150px; }
.aurum-filter-wide { min-width: 320px; }
.aurum-filter label {
	display: block;
	font-size: 10px;
	color: var(--aurum-muted);
	font-weight: 800;
	margin-bottom: 6px;
}
.aurum-filter select,
.aurum-filter input {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--aurum-line);
	border-radius: 11px;
	background: #fcfaf5;
}
.aurum-brand-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.aurum-brand-chip {
	border: 1px solid var(--aurum-line);
	background: #fff;
	padding: 9px 11px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
}
.aurum-brand-chip.active { background: #171511; color: #fff; border-color: #171511; }
.aurum-brand-chip.aurum-off { opacity: .4; }

/* Tables */
.aurum-table-wrap { overflow: auto; }
.aurum-compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.aurum-compare-table th {
	padding: 14px 18px;
	background: #fbf9f4;
	text-align: left;
	border-bottom: 1px solid var(--aurum-line);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #827a6c;
}
.aurum-compare-table td { padding: 16px 18px; border-bottom: 1px solid #eee8dc; font-size: 12px; }
.aurum-compare-table tr:last-child td { border-bottom: 0; }
.aurum-brandname { font-weight: 900; font-size: 13px; }
.aurum-num { font-weight: 850; }
.aurum-best { background: #eef8f3; color: #0a7c58; font-weight: 900; border-radius: 8px; padding: 5px 7px; display: inline-block; }

/* Summary cards */
.aurum-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 14px 0; }
.aurum-summary { padding: 20px; }
.aurum-summary small { font-size: 10px; color: var(--aurum-muted); }
.aurum-summary strong { display: block; font-size: 20px; margin: 6px 0; }
.aurum-summary p { margin: 0; color: var(--aurum-muted); font-size: 10px; }

/* Chart */
.aurum-chart-shell { padding: 19px; }
.aurum-chart-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.aurum-range-tabs, .aurum-mode-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.aurum-mini-tab { border: 1px solid var(--aurum-line); background: #fff; border-radius: 9px; padding: 8px 10px; font-size: 10px; font-weight: 850; cursor: pointer; }
.aurum-mini-tab.active { background: #171511; color: #fff; }
.aurum-chart-wrap {
	position: relative;
	height: var(--aurum-chart-height, 430px);
	border-radius: 16px;
	background: #111;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.aurum-chart-wrap canvas { width: 100%; flex: 1 1 auto; min-height: 0; display: block; }
.aurum-sessionbar { flex-shrink: 0; }
.aurum-chart-tooltip {
	position: absolute;
	pointer-events: none;
	background: rgba(20, 18, 14, .96);
	color: #fff;
	border: 1px solid #4e4638;
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 10px;
	display: none;
	z-index: 3;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.aurum-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 11px; }
.aurum-legend button { border: 0; background: transparent; font-size: 10px; font-weight: 800; color: #5f594f; cursor: pointer; padding: 4px 0; }
.aurum-legend button.aurum-off { opacity: .35; text-decoration: line-through; }
.aurum-legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.aurum-sessionbar {
	height: 52px;
	background: #12110e;
	border-top: 1px solid #3d392f;
	display: flex;
	align-items: end;
	padding: 0 16px 8px;
	gap: 6px;
}
.aurum-session {
	height: 22px;
	border: 1px solid #8e7b1f;
	color: #f0d545;
	font-size: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Calculator */
.aurum-grid-2 { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.aurum-calc-card { padding: 24px; }
.aurum-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 14px; }
.aurum-field label { display: block; font-size: 10px; color: var(--aurum-muted); font-weight: 800; margin-bottom: 6px; }
.aurum-field input, .aurum-field select {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--aurum-line);
	border-radius: 11px;
	background: #fcfaf5;
}
.aurum-result { padding: 18px; margin-top: 14px; background: #171511; color: #fff; border-radius: 15px; }
.aurum-result small { color: #b7ad9a; }
.aurum-result strong { display: block; color: #e8ca7d; font-size: 27px; margin-top: 5px; }
.aurum-side-stack { display: grid; gap: 13px; }
.aurum-side-card { padding: 20px; }
.aurum-side-card h3 { margin: 0 0 12px; font-size: 15px; }

/* Footer block — column widths/responsiveness come from Flatsome's native
   [row]/[col span=...] grid (see content/global-footer.txt), not CSS Grid;
   this class only carries typography so it doesn't fight Flatsome's own
   flex-based column system. */
.aurum-footer-grid h4 { font-size: 12px; margin: 0 0 12px; color: #fff; }
.aurum-footer-grid p, .aurum-footer-grid a { font-size: 11px; line-height: 1.9; color: #aaa190; text-decoration: none; }
.aurum-footer-bottom {
	border-top: 1px solid #332e25;
	margin-top: 27px;
	padding-top: 18px;
	display: flex;
	justify-content: space-between;
	gap: 15px;
	color: #837a6b;
	font-size: 10px;
	flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1050px) {
	.aurum-menu { display: none; }
	.aurum-mobile-only { display: inline-grid; }
	.aurum-pair, .aurum-grid-2 { grid-template-columns: 1fr; }
	.aurum-summary-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
	.aurum-brand small { display: none; }
	.aurum-brand b { font-size: 19px; }
	.aurum-nav-actions .aurum-btn { display: none; }
	.aurum-summary-grid, .aurum-form-grid { grid-template-columns: 1fr; }
	.aurum-chart-wrap { height: 320px; }
	.aurum-filter, .aurum-filter-wide { width: 100%; min-width: 0; }
	.aurum-footer-bottom { flex-direction: column; }
}
