/* Currencies / Market Trend section
--------------------------------------------- */

.currencies-section > .inside {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 65px;
}

.currencies-section .section-header__heading{
	text-transform: none;
	font-weight: 400;
	font-family: 'Manrope';
	margin-top: 22px;
	letter-spacing: 0.5px;
}

.currencies-section .section-header__desc{
	margin: 18px 0 0 0;
}

/* Table container */

.currencies-table {
	width: 100%;
	padding: 46px 46px 0;
	border-radius: 46px;
	display: flex;
	flex-direction: column;
	gap: 35px;
}

/* Header row */

.currencies-table__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 81px 13px;
	border-bottom: 1.5px solid #333333;
	font-weight: 700;
	font-size: 20px;
	color: #bdbdbd;
}

/* Body rows wrapper */

.currencies-table__body {
	display: flex;
	flex-direction: column;
	gap: 46px;
}

/* Individual row */

.currencies-table__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 81px;
	border-radius: 46px;
	background: #0e0e0e;
	min-height: 70px;
}

.currencies-table__row--active {
	background: #434343;
}

/* Shared column widths (header + row cells use the same classes) */

.currencies-table__col-num {
	flex: 0 0 20px;
	font-family: 'Manrope', sans-serif;
	font-weight: 600;
	font-size: 23px;
	color: #bdbdbd;
}

.currencies-table__col-symbol {
	flex: 0 0 90px;
	text-align: center;
}

.currencies-table__col-currency {
	flex: 0 0 360px;
	min-width: 0;
}

.currencies-table__col-buy {
	flex: 0 0 165px;
	font-size: 22px;
	color: #fff;
}

.currencies-table__col-sell {
	flex: 0 0 175px;
	font-size: 23px;
	color: #fff;
}

.currencies-table__col-change {
	flex: 0 0 210px;
}

/* Row-specific inner layouts */

.currencies-table__row .currencies-table__col-currency {
	display: flex;
	align-items: center;
	gap: 12px;
}

.currencies-table__row .currencies-table__col-buy,
.currencies-table__row .currencies-table__col-sell {
	display: flex;
	align-items: center;
}

/* Symbol badge (yellow pill) */

.currencies-table__symbol-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 23px;
	border-radius: 23px;
	font-weight: 500;
	font-size: 23px;
	color: #f8cd04;
	white-space: nowrap;
}

/* Currency flag — sprite from currencies.png (191×47, 4 circles: USD, EUR, GBP, CHF) */

.currencies-table__flag {
	flex-shrink: 0;
	width: 47px;
	min-width: 47px;
	height: 47px;
	overflow: hidden;
	border-radius: 50%;
	background-image: url('../images/currencies.png');
	background-size: auto 47px;
	background-repeat: no-repeat;
}

.currencies-table__flag--usd {background-position: 0 0;box-shadow: 0 0 3px #263740 inset;}
.currencies-table__flag--eur {background-position: -49px 0;}
.currencies-table__flag--gbp {background-position: -98px 0;}
.currencies-table__flag--chf {background-position: -147px 0;}

.currencies-table__flag--emoji {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 47px;
	min-width: 47px;
	height: 47px;
	overflow: visible;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-size: 38px;
	line-height: 1;
}

/* Currency name & subtitle */

.currencies-table__currency-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
	gap: 2px;
}

.currencies-table__currency-name {
	font-weight: 500;
	font-size: 21px;
	line-height: 1.12;
	color: #fff;
	overflow-wrap: break-word;
}

.currencies-table__currency-sub {
	font-family: 'Manrope', sans-serif;
	font-size: 14.5px;
	line-height: 1.2;
	color: #bdbdbd;
}

/* Mini chart */

.currencies-table__chart {
	display: block;
	width: 220px;
	height: 58px;
	max-width: 100%;
	flex-shrink: 0;
	margin: 0;
}

/* ============================================================
   # MEDIA: 1200px
   ============================================================ */

@media screen and (max-width: 1200px) {
	.currencies-table {
		padding: 46px 0 0;
	}
	
	.currencies-table__header {
		padding: 0 30px 13px;
	}

	.currencies-table__row {
		padding: 8px 30px;
	}

	.currencies-table__col-symbol {
		flex-basis: 80px;
	}

	.currencies-table__col-currency {
		flex-basis: 300px;
	}

	.currencies-table__col-change {
		flex: 0 0 165px;
	}

	.currencies-table__chart {
		width: 165px;
		height: 35px;
	}

	.currencies-table__col-sell,
	.currencies-table__col-buy {
		flex: 0 0 125px;
	}
}

/* ============================================================
   # MEDIA: 992px
   ============================================================ */

@media (max-width: 992px) {
	.currencies-table__col-change {
		flex: 0 0 115px;
	}
}

/* ============================================================
   # MEDIA: 576px
   ============================================================ */

@media (max-width: 576px) {
	.currencies-section > .inside {
		gap: 58px;
	}

	.currencies-table__col-symbol,
	.currencies-table__col-change{
		display: none;
	}

	.currencies-section .section-header__heading {
		margin-top: 26px;
	}

	.currencies-section .section-header__desc {
		margin: 22px 0 0 0;
	}

	.currencies-table {
		padding: 0;
	}

	.currencies-table__body {
		gap: 19px;
	}

	.currencies-table__row {
		min-height: 64px;
		padding: 6px 12px;
		justify-content: flex-start;
	}

	.currencies-table__col-num{
		font-size: 18px;
		flex: 0 0 24px;
	}

	.currencies-table__header,
	.currencies-table__col-buy,
	.currencies-table__col-sell{
		font-size: 15px;
	}

	.currencies-table__header {
		padding-right: 12px;
		padding-left: 12px;
	}

	.currencies-table__currency-name {
		font-size: 16px;
	}

	.currencies-table__currency-sub {
		font-size: 10px;
	}

	.currencies-table__col-currency {
		flex: 1 1 auto;
		min-width: 0;
		gap: 8px;
	}

	.currencies-table__col-buy {
		flex: 0 0 78px;
	}

	.currencies-table__col-sell{
		flex: 0 0 78px;
	}

	.currencies-table__flag {
		width: 34px;
		min-width: 34px;
		height: 34px;
		background-size: auto 34px;
	}

	.currencies-table__flag--emoji {
		width: 34px;
		min-width: 34px;
		height: 34px;
		background: none;
		font-size: 29px;
	}

	.currencies-table__flag--eur {
		background-position: -35px 0;
	}

	.currencies-table__flag--gbp {
		background-position: -71px 0;
	}

	.currencies-table__flag--chf {
		background-position: -107px 0;
	}
}
