/* CSS Variables */
:root {
	--text-gray: #050f1966;
}

body {
	margin: 0;
	padding: 0;
}

/* Page wrapper */
.pageWrapper {
	background: #fafbfc;
	margin: 0;
	font-family: 'Inter', Arial, sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	font-weight: 700;
	font-size: 24px;
	line-height: 32px;
	color: #000000;
}

/* Container */
.container {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	max-width: 600px;
	padding: 0 15px;
	box-sizing: border-box;
}

/* Logo Row */
.logoRow {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 32px 0 0 0;
	width: 100%;
	gap: 0;
}

.logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.logo svg {
	overflow: hidden;
	display: block;
	vertical-align: middle;
}

.logoText {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	color: #050f19;
	letter-spacing: 0.01em;
	margin-left: 4px;
}

.logoLink {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

/* Card */
.card {
	margin: 40px 0 0 0;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 0 0 0 #0001;
	padding: 40px 40px 32px 40px;
	width: 100%;
	max-width: 530px;
	box-sizing: border-box;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	border: 1px solid #f0f0f0;
}

.cardHeader {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.title {
	font-weight: 700;
	font-size: 24px;
	line-height: 32px;
	color: #050f19;
	margin: 0;
}

.desc {
	font-family: Inter, sans-serif;
	color: var(--text-gray);
	max-width: 328px;
	margin-top: 6px;
	margin-bottom: 24px;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 500;
}

.stepBadge {
	padding: 1px 15px;
	display: inline-flex;
	align-items: center;
	background-color: #0057ff1a;
	border: 1px solid rgba(0, 87, 255, 0.15);
	border-radius: 14px;
	color: #0057ff;
	font-size: 14px;
	font-weight: 600;
}

/* Network List */
.networkList {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 32px;
	min-width: 0;
	width: 100%;
}

.card > .networkList:last-child {
	margin-bottom: 0;
}

.networkBtn {
	display: flex;
	align-items: center;
	gap: 18px;
	background: #fff;
	border: 1.5px solid #f0f0f0;
	border-radius: 16px;
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
	padding: 16px 18px;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
	color: #111;
	min-width: 0;
	box-shadow: 0 0 0 0 #267dff10;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	text-align: left;
	font-family: inherit;
}

.networkBtn .icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.networkBtn.active,
.networkBtn:focus,
.networkBtn.selected {
	border-color: #267dff;
	background: #f5f9ff;
	box-shadow: 0 0 0 2px #267dff30;
}

.networkBtn:hover:not(.active):not(.selected) {
	border-color: #d0d8e3;
	background: #f8fbff;
}

.networkBtn.selected.only {
	background: #f5f9ff;
	border-color: #eaeaea;
	cursor: default;
	pointer-events: none;
}

.networkBtn .selectedNetworkText,
.networkBtn .walletBtnText {
	flex: 1;
	min-width: 0;
}

.networkBtn .selectedCheck,
.networkBtn .walletBtnArrow {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.networkBtn .walletBtnArrow {
	opacity: 0.5;
}

.networkBtn.walletconnectBtn:hover .walletBtnArrow {
	opacity: 1;
}

.networkSelectedDesc {
	color: var(--text-gray);
	font-size: 14px;
	line-height: 20px;
	margin-top: 2px;
	font-weight: 500;
}

.cryptoName {
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
	color: #111;
}

/* WalletConnect Button */
.walletconnectBtn {
	background: #f8fbff;
	border-color: #e0e6f2;
	color: #267dff;
	font-weight: 600;
}

.walletconnectBtn:hover {
	background: #e6f0ff;
	border-color: #267dff;
}

.walletconnectBtn.loading.only {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 18px;
	background: #fafbfc;
	border: 1.5px solid #f0f0f0;
	pointer-events: none;
	cursor: default;
	font-weight: 600;
	color: #111;
}

.walletconnectBtn.loading.only .icon {
	flex-shrink: 0;
}

.walletconnectBtn.loading.only .cryptoName {
	font-size: 18px;
}

.walletconnectBtn.loading.only .networkSelectedDesc {
	color: var(--text-gray);
	font-size: 14px;
	line-height: 20px;
	margin-top: 2px;
	font-weight: 500;
}

.spinner {
	margin-left: auto;
	width: 24px;
	height: 24px;
	border: 3px solid #e3eaf3;
	border-top: 3px solid #267dff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	display: inline-block;
	flex-shrink: 0;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Continue Button */
.continueBtn {
	margin-top: 12px;
	padding: 16px 0;
	border-radius: 16px;
	border: none;
	font-size: 1.1rem;
	font-weight: 700;
	background: #0057ff45;
	color: #fff;
	cursor: not-allowed;
	transition: background 0.2s, color 0.2s;
	font-family: inherit;
}

.continueBtn:enabled {
	background: #267dff;
	color: #fff;
	cursor: pointer;
}

/* Footer */
.footer {
	background: #fff;
	text-align: center;
	color: #a8afb9;
	font-size: 1.05rem;
	padding: 32px 0 18px 0;
	width: 100%;
	align-self: stretch;
	margin-top: auto;
	border-top: 1px solid #f0f0f0;
	letter-spacing: 0.01em;
	box-sizing: border-box;
	font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 600px) {
	.container {
		min-height: 100vh;
		justify-content: flex-start;
		padding: 0;
	}

	.logoRow {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 8px;
		margin: 24px 0 0 0;
	}

	.logo {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.logoText {
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 20px;
		font-weight: 700;
		color: #050f19;
		letter-spacing: 0.01em;
		margin-left: 4px;
	}

	.card {
		margin: 32px auto 0 auto;
		padding: 24px 20px;
		border-radius: 18px;
		min-width: unset;
		max-width: 370px;
		width: 100%;
		box-sizing: border-box;
	}

	.cardHeader {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 12px;
		position: relative;
		width: 100%;
	}

	.stepBadge {
		position: absolute;
		top: 0;
		left: 0;
		margin: 0 0 10px 0;
		font-size: 12px;
		padding: 1px 15px;
		height: 26px;
		border-radius: 13px;
		font-weight: 600;
		z-index: 2;
	}

	.title {
		margin-top: 52px;
		margin-bottom: 4px;
		font-size: 22px;
		line-height: 28px;
		width: 100%;
		font-weight: 700;
	}

	.desc {
		font-size: 15px;
		max-width: 100%;
		margin-top: 0;
		margin-bottom: 22px;
		font-weight: 500;
	}

	.networkList {
		gap: 12px;
		margin-bottom: 18px;
	}

	.networkList:last-of-type {
		margin-bottom: 18px;
	}

	.networkBtn,
	.networkBtn.selected.only {
		padding: 14px 12px;
		font-size: 16px;
		border-radius: 14px;
	}

	.cryptoName {
		font-size: 16px;
		line-height: 22px;
	}

	.continueBtn {
		font-size: 17px;
		padding: 15px 0;
		border-radius: 14px;
		margin-top: 8px;
	}

	.footer {
		display: auto;
	}
}
