/* --- CSS Variables and Global Styles --- */
:root {
	--color-bg: #FAF9F6;
	--card-bg: #ffffff;
	--text-primary: #181616;
	--text-secondary: #181616;
	--border-color: #e5e7eb;
	--accent-positive: #79BF43;
    --accent-negative: #f87171;
	--accent-nomove: #6b7280;
	--icon-bg-blue: #f2f2f2;
	--icon-text-blue: #1F1346;
	--icon-bg-green: #f2f2f2;
	--icon-text-green: #1F1346;
	--font-sans: var(--font);
}



body {
	font-family: var(--font-sans);
	background-color: rgba(255, 255, 255, 0.7);
	display: flex;
	align-items: center;
	/* justify-content: center; */
	margin: 0;
	padding: 1rem;
}

/* --- Main Card Container --- */
.stats-container {
	width: 100%;
	max-width: 1150px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

/* --- Individual Card Styling --- */
.stat-card {
	background-color: var(--card-bg);
	border-radius: var(--border-radius);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1),
    0 -6px 12px -4px rgba(0, 0, 0, 0.1);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 24px;
	transition: box-shadow 0.3s ease-in-out;
}



/* --- Card Sections --- */
.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.card-header h3 {
	font-weight: 700;
	font-size: 18px;
	color: var(--secondary);
	margin: 0;
}

.card-header p {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: 0;
	font-weight: 700;
}

.card-main {
	text-align: center;
}

.card-main .price {
	font-size: clamp(1.75rem, 3vw, 2.3rem);
	font-weight: 700;
	color: var(--primary);
	margin: 0;
	font-family: var(--font-display);
}

.card-main .price small {
	font-family: var(--font);
	font-size: var(--text-lg);
	font-weight: 600;
	color: var(--text-muted);
}

.card-main .move small {
	font-size: var(--text-xs);
}

.card-main .move {
	font-weight: 700;
	font-size: 18px;
	margin-top: 0.25rem;
	display: block;
}

.move.positive {
	color: var(--accent-positive);
}

.move.negative {
	color: var(--accent-negative);
}

.move.nomove {
	color: var(--accent-nomove);
}

/* --- High/Low Range Visualizer --- */
.range-visualizer .labels {
	display: flex;
	justify-content: space-between;
	font-size: var(--text-sm);
	font-weight: 400;
	color: var(--text-sm);
	margin-bottom: 0.25rem;
}

.range-visualizer .labels small {
	font-size: 70%;
}

.range-visualizer .bar {
	position: relative;
	width: 100%;
	background-color: var(--color-surface-muted);
	border-radius: 9999px;
	height: 0.5rem;
}

.range-visualizer .indicator {
	position: absolute;
	top: 0;
	height: 0.5rem;
	width: 0.5rem;
	background-color: var(--primary);
	border-radius: 9999px;
	transform: translateX(-50%);
	transition: left 0.5s ease-in-out; /* a nice transition */
}

.lhBold
{
	font-weight: 600;
    color: var(--text-primary)
}

/* --- Details Section (Volume & Value) --- */
.card-details {
	border-top: 1px solid var(--border-color);
	padding-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.detail-item {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.detail-item .icon-wrapper {
	padding: 0.75rem;
	border-radius: 8px;
}

.icon-wrapper.blue {
	background-color: var(--icon-bg-blue);
	color: var(--icon-text-blue);
}

.icon-wrapper.green {
	background-color: var(--icon-bg-green);
	color: var(--icon-text-green);
}

.detail-item svg {
	height: 1.5rem;
	width: 1.5rem;
}

.detail-item .text-content p:first-child {
	font-size: var(--text-sm);
	color: var(--secondary);
	margin: 0;
}

.detail-item .text-content p:last-child {
	font-weight: 700;
	font-size: var(--text-sm);
	color: var(--primary);
	margin: 0;
}

.poweredby {
    font-size: 8px;
    color: #999999;
    text-align: right;
    letter-spacing: 2px;
    height: 30px;
    border-top: 1px solid var(--line-color);
    padding-left: 24px;
    max-width: 200px;
    align-self: flex-start;
	
}

.poweredby img {
    height: 10px;
    padding-top: 10px;
}

/* --- Responsive Design --- */
@media (min-width: 640px) {
	body {
		padding: 1rem;
	}
}

@media (min-width: 768px) {
	.stats-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	body {
		padding: 1rem;
	}
	.stats-container {
		grid-template-columns: repeat(3, 1fr);
	}
}