/* Страница обмена Bitcoin — UI как у обменника */

.rcoin-page,
.rcoin-layout,
.rcoin-exchange-card,
.rcoin-side {
	position: relative;
	z-index: 1;
}

.rcoin-hero {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
}

.rcoin-hero__icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #f6c453, #e8a317);
	color: #1a1205;
	font-size: 26px;
	flex-shrink: 0;
	box-shadow: 0 8px 20px rgba(232, 163, 23, 0.28);
}

.rcoin-hero__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	line-height: 1.25;
}

.rcoin-hero__sub {
	margin: 4px 0 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}

.rcoin-layout {
	display: grid;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	margin-bottom: 16px;
}

.rcoin-side {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rcoin-info-card {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: #141418;
	padding: 16px 16px 14px;
	min-height: 140px;
}

.rcoin-info-card__title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.rcoin-info-card__list {
	margin: 0;
	padding: 0 0 0 18px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 12px;
	line-height: 1.55;
}

.rcoin-info-card__list li {
	margin-bottom: 4px;
}

.rcoin-info-card__deco {
	position: absolute;
	right: -8px;
	bottom: -10px;
	font-size: 84px;
	color: rgba(246, 196, 83, 0.12);
	pointer-events: none;
	line-height: 1;
}

.rcoin-exchange-card {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.75fr);
	border-radius: 18px;
	border: 1px solid rgba(91, 109, 246, 0.28);
	background: #12131a;
	overflow: hidden;
	min-height: 320px;
}

.rcoin-exchange-card__main {
	padding: 18px 18px 16px;
}

.rcoin-exchange-card__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.rcoin-exchange-card__head i {
	color: #6b7cff;
	font-size: 18px;
}

.rcoin-swap {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 420px;
}

.rcoin-swap-row {
	background: #0c0d12;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	padding: 12px 14px;
}

.rcoin-swap-row__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.rcoin-swap-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}

.rcoin-swap-badge--btc i {
	color: #f6c453;
	font-size: 18px;
}

.rcoin-flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 20px;
	padding: 0 6px;
	border-radius: 4px;
	background: linear-gradient(180deg, #fff 0 33%, #0039a6 33% 66%, #d52b1e 66% 100%);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.rcoin-swap-bal {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.45);
}

.rcoin-swap-input {
	width: 100%;
	border: none;
	outline: none;
	background: transparent;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	padding: 0;
}

.rcoin-swap-input::placeholder {
	color: rgba(255, 255, 255, 0.25);
}

.rcoin-swap-toggle {
	align-self: center;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: #5b6df6;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 20px;
	box-shadow: 0 8px 18px rgba(91, 109, 246, 0.35);
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.rcoin-swap-toggle:hover {
	opacity: 0.92;
	transform: rotate(180deg);
}

.rcoin-swap-submit {
	width: 100%;
	border: none;
	border-radius: 12px;
	padding: 14px 16px;
	margin-top: 6px;
	background: #5b6df6;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.rcoin-swap-submit:hover {
	opacity: 0.92;
}

.rcoin-exchange-card__aside {
	padding: 18px 16px;
	background: linear-gradient(180deg, #1a2140 0%, #12162a 100%);
	border-left: 1px solid rgba(91, 109, 246, 0.2);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rcoin-rate-note {
	margin: 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.4;
}

.rcoin-rate-big {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: #6b9bff;
	line-height: 1.3;
}

.rcoin-rate-big--soft {
	font-size: 14px;
	color: #8aa4ff;
	font-weight: 700;
}

.rcoin-balances-mini {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 8px;
}

.rcoin-balances-mini > div {
	background: rgba(0, 0, 0, 0.22);
	border-radius: 10px;
	padding: 10px;
}

.rcoin-balances-mini span {
	display: block;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 4px;
}

.rcoin-balances-mini strong {
	display: block;
	font-size: 14px;
	color: #fff;
	word-break: break-all;
}

.rcoin-topup {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(91, 109, 246, 0.18);
	color: #9db0ff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

.rcoin-topup:hover {
	color: #fff;
	text-decoration: none;
}

.rcoin-panel {
	background: #141418;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 16px;
	padding: 16px;
	margin-bottom: 14px;
}

.rcoin-panel-title {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.rcoin-muted {
	opacity: 0.7;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.55);
}

.rcoin-history-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.rcoin-history-table th,
.rcoin-history-table td {
	padding: 8px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	text-align: left;
	color: rgba(255, 255, 255, 0.85);
}

.rcoin-history-table th {
	opacity: 0.7;
	font-weight: 600;
}

/* Сайдбар-балансы (другие страницы) */
.navigation_profile .balance_mini_profile--dual {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow: hidden;
}

.navigation_profile .balance_mini_profile--dual .flex_balance_mp {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 8px;
	width: 100%;
	min-width: 0;
}

.navigation_profile .balance_mini_profile--dual .flex_balance_mp > i {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	font-size: 14px;
}

.navigation_profile .balance_mini_profile--dual .flex_balance_mp > span {
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.navigation_profile .balance_mini_profile--dual .button_plus_purse {
	flex: 0 0 auto;
	margin-left: auto;
	padding: 0 10px;
	height: 30px;
	font-size: 10px;
	white-space: nowrap;
}

.navigation_profile .rcoin-nav-balance {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 8px;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 0.85rem;
	color: #fcd34d;
}

.navigation_profile .rcoin-nav-balance > i {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05rem;
	border-radius: 10px;
	background: rgba(251, 191, 36, 0.12);
}

.navigation_profile .rcoin-nav-balance > span {
	flex: 1 1 0;
	min-width: 0;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.navigation_profile .rcoin-nav-link {
	flex: 0 0 auto;
	font-size: 0.72rem;
	color: #38bdf8;
	margin-left: 0;
	white-space: nowrap;
	text-decoration: none;
}

.navigation_profile .rcoin-nav-link:hover {
	color: #7dd3fc;
}

.economy-sidebar-col .navigation_profile .balance_mini_profile--dual {
	width: 100%;
}

@media (max-width: 991.98px) {
	.rcoin-layout {
		grid-template-columns: 1fr;
	}

	.rcoin-exchange-card {
		grid-template-columns: 1fr;
	}

	.rcoin-exchange-card__aside {
		border-left: none;
		border-top: 1px solid rgba(91, 109, 246, 0.2);
	}
}

@media (max-width: 575.98px) {
	.rcoin-hero__title {
		font-size: 18px;
	}

	.rcoin-swap-input {
		font-size: 22px;
	}
}
