/* Piyasalar — kompakt finans tablosu */

.hk-front .hk-markets-section {
	background: var(--hk-bg, #f4f6fb);
}

.hk-front .hk-markets-section.section-space-default {
	padding-bottom: 1.25rem;
	padding-top: 1.25rem;
}

.hk-front .hk-markets__panel {
	background: var(--hk-surface, #fff);
	border: 1px solid var(--hk-border, #e2e8f0);
	border-radius: 18px;
	box-shadow: var(--hk-shadow, 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06));
	overflow: hidden;
}

.hk-front .hk-markets__head {
	align-items: center;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 0.75rem;
	justify-content: space-between;
	padding: 0.85rem 1rem;
}

.hk-front .hk-markets__title {
	color: #fff;
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
}

.hk-front .hk-markets__updated {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 10px;
	font-weight: 600;
	padding: 0.3rem 0.65rem;
	white-space: nowrap;
}

.hk-front .hk-markets__spotlight {
	background: #f8fafc;
	border-bottom: 1px solid var(--hk-border, #e2e8f0);
	display: grid;
	gap: 0.55rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 0.75rem;
}

.hk-front .hk-markets__spot {
	background: #fff;
	border: 1px solid var(--hk-border, #e2e8f0);
	border-radius: 12px;
	display: grid;
	gap: 0.08rem;
	padding: 0.65rem 0.75rem;
}

.hk-front .hk-markets__spot.is-up {
	border-top: 3px solid #16a34a;
}

.hk-front .hk-markets__spot.is-down {
	border-top: 3px solid #dc2626;
}

.hk-front .hk-markets__spot.is-flat {
	border-top: 3px solid #94a3b8;
}

.hk-front .hk-markets__spot-code {
	color: #0f172a;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.1;
}

.hk-front .hk-markets__spot-name {
	color: #64748b;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
}

.hk-front .hk-markets__spot-price {
	color: #0f172a;
	font-size: clamp(1rem, 2.8vw, 1.25rem);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1.1;
	margin-top: 0.15rem;
}

.hk-front .hk-markets__spot-change {
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
}

.hk-front .hk-markets__spot-change.is-up {
	color: #047857;
}

.hk-front .hk-markets__spot-change.is-down {
	color: #b91c1c;
}

.hk-front .hk-markets__spot-change.is-flat {
	color: #64748b;
}

.hk-front .hk-markets__summary {
	background: #fff;
	border-bottom: 1px solid var(--hk-border, #e2e8f0);
	color: #64748b;
	display: flex;
	flex-wrap: wrap;
	font-size: 11px;
	font-weight: 600;
	gap: 0.45rem 0.75rem;
	padding: 0.5rem 0.85rem;
}

.hk-front .hk-markets__summary strong {
	color: #0f172a;
}

.hk-front .hk-markets__summary-up {
	color: #16a34a;
}

.hk-front .hk-markets__summary-down {
	color: #dc2626;
}

.hk-front .hk-markets__body {
	padding: 0.65rem 0.75rem 0.75rem;
}

.hk-front .hk-markets__group {
	margin-bottom: 0.85rem;
}

.hk-front .hk-markets__group:last-child {
	margin-bottom: 0;
}

.hk-front .hk-markets__group-title {
	color: #64748b;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0 0 0.4rem;
	text-transform: uppercase;
}

.hk-front .hk-markets__table-wrap {
	border: 1px solid var(--hk-border, #e2e8f0);
	border-radius: 12px;
	overflow: hidden;
}

.hk-front .hk-markets__table {
	border-collapse: collapse;
	margin: 0;
	width: 100%;
}

.hk-front .hk-markets__table thead {
	background: #f8fafc;
}

.hk-front .hk-markets__table th {
	border-bottom: 1px solid var(--hk-border, #e2e8f0);
	color: #64748b;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 0.45rem 0.65rem;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.hk-front .hk-markets__table th:not(:first-child) {
	text-align: right;
}

.hk-front .hk-markets__table td {
	border-bottom: 1px solid #f1f5f9;
	font-size: 12px;
	padding: 0.5rem 0.65rem;
	vertical-align: middle;
}

.hk-front .hk-markets__table tbody tr:last-child td {
	border-bottom: none;
}

.hk-front .hk-markets__table tbody tr:hover {
	background: #fafbfc;
}

.hk-front .hk-markets__cell-name strong {
	color: #0f172a;
	display: block;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.1;
}

.hk-front .hk-markets__cell-name span {
	color: #64748b;
	display: block;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	margin-top: 0.05rem;
}

.hk-front .hk-markets__cell-num {
	color: #0f172a;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	text-align: right;
	white-space: nowrap;
}

.hk-front .hk-markets__cell-change {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	text-align: right;
	white-space: nowrap;
}

.hk-front .hk-markets__cell-change.is-up {
	color: #047857;
}

.hk-front .hk-markets__cell-change.is-down {
	color: #b91c1c;
}

.hk-front .hk-markets__cell-change.is-flat {
	color: #64748b;
}

.hk-front .hk-markets__cell-time {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 600;
	text-align: right;
	white-space: nowrap;
}

.hk-front .hk-markets__mobile-list {
	display: none;
}

.hk-front .hk-markets__mobile-row {
	align-items: center;
	background: #fff;
	border: 1px solid var(--hk-border, #e2e8f0);
	border-radius: 10px;
	display: flex;
	gap: 0.5rem;
	justify-content: space-between;
	margin-bottom: 0.4rem;
	min-height: 44px;
	padding: 0.45rem 0.65rem;
}

.hk-front .hk-markets__mobile-row:last-child {
	margin-bottom: 0;
}

.hk-front .hk-markets__mobile-row.is-up {
	border-left: 3px solid #16a34a;
}

.hk-front .hk-markets__mobile-row.is-down {
	border-left: 3px solid #dc2626;
}

.hk-front .hk-markets__mobile-row.is-flat {
	border-left: 3px solid #94a3b8;
}

.hk-front .hk-markets__mobile-main {
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
	min-width: 0;
}

.hk-front .hk-markets__mobile-main strong {
	color: #0f172a;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.1;
}

.hk-front .hk-markets__mobile-main span {
	color: #64748b;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.15;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hk-front .hk-markets__mobile-meta {
	align-items: flex-end;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 0.05rem;
}

.hk-front .hk-markets__mobile-price {
	color: #0f172a;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1.1;
}

.hk-front .hk-markets__mobile-change {
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
}

.hk-front .hk-markets__mobile-change.is-up {
	color: #047857;
}

.hk-front .hk-markets__mobile-change.is-down {
	color: #b91c1c;
}

.hk-front .hk-markets__mobile-change.is-flat {
	color: #64748b;
}

@media (max-width: 767px) {
	.hk-front .hk-markets-section.section-space-default {
		padding-bottom: 0.75rem;
		padding-top: 0.75rem;
	}

	.hk-front .hk-markets-section .container {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

	.hk-front .hk-markets__panel {
		border-left: none;
		border-radius: 14px;
		border-right: none;
	}

	.hk-front .hk-markets__spotlight {
		grid-template-columns: 1fr;
		padding: 0.55rem;
	}

	.hk-front .hk-markets__spot {
		align-items: center;
		display: grid;
		gap: 0.15rem 0.65rem;
		grid-template-columns: auto 1fr auto;
		grid-template-rows: auto auto;
		padding: 0.55rem 0.65rem;
	}

	.hk-front .hk-markets__spot-code {
		grid-column: 1;
		grid-row: 1;
	}

	.hk-front .hk-markets__spot-name {
		grid-column: 2;
		grid-row: 1;
	}

	.hk-front .hk-markets__spot-change {
		grid-column: 3;
		grid-row: 1 / span 2;
	}

	.hk-front .hk-markets__spot-price {
		grid-column: 1 / span 2;
		grid-row: 2;
		margin-top: 0;
	}

	.hk-front .hk-markets__body {
		padding: 0.55rem;
	}

	.hk-front .hk-markets__table-wrap--desktop {
		display: none;
	}

	.hk-front .hk-markets__mobile-list {
		display: block;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.hk-front .hk-markets__spotlight {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
