/* Lock rate modal — currency exchange page */
.lock-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(7, 13, 28, 0.62);
	backdrop-filter: blur(4px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.lock-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.lock-modal {
	width: 100%;
	max-width: 480px;
	background: #fff;
	border-radius: 14px;
	border: 1px solid #dde5ed;
	box-shadow: 0 24px 64px rgba(12, 32, 54, 0.22);
	overflow: hidden;
	transform: translateY(16px) scale(0.98);
	transition: transform 0.22s ease;
}

.lock-modal-overlay.is-open .lock-modal {
	transform: translateY(0) scale(1);
}

.lock-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid #e8eef5;
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.lock-modal-head h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: #0c2036;
	letter-spacing: -0.01em;
}

.lock-modal-close {
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 8px;
	background: #f4f7fb;
	color: #44596b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.lock-modal-close:hover {
	background: #e8eef5;
}

.lock-modal-body {
	padding: 16px 18px 12px;
}

.lock-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 12px;
}

.lock-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.lock-field label {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #7a8fa3;
}

.lock-field input,
.lock-field select {
	border: 1px solid #dde5ed;
	border-radius: 8px;
	padding: 8px 11px;
	font-size: 13.5px;
	color: #0c2036;
	background: #f7f9fc;
	outline: none;
	font-family: inherit;
	width: 100%;
	box-sizing: border-box;
}

.lock-field input::placeholder {
	color: #a8b8c8;
}

.lock-field input:focus,
.lock-field select:focus {
	border-color: #0f3c9a;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(15, 60, 154, 0.1);
}

.lock-field input[readonly] {
	background: #eef3f8;
	color: #44596b;
	cursor: default;
}

.lock-total-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 9px;
	background: linear-gradient(135deg, #0f3c9a 0%, #1a4db5 100%);
}

.lock-total-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.82);
	flex-shrink: 0;
}

.lock-total-value {
	border: none;
	background: transparent;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	text-align: right;
	outline: none;
	font-family: inherit;
	width: auto;
	min-width: 0;
	flex: 1;
	letter-spacing: -0.02em;
}

.lock-total-value::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.lock-modal-note {
	font-size: 11px;
	line-height: 1.45;
	color: #b45309;
	margin: 10px 0 0;
	padding: 8px 10px;
	background: #fffbeb;
	border-radius: 6px;
	border-left: 3px solid #f59e0b;
}

.lock-modal-foot {
	display: flex;
	gap: 8px;
	padding: 12px 18px 16px;
	border-top: 1px solid #e8eef5;
	background: #fafbfc;
}

.lock-btn-secondary,
.lock-btn-primary {
	flex: 1;
	border: none;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}

.lock-btn-secondary {
	background: #eef3f8;
	color: #44596b;
}

.lock-btn-primary {
	background: linear-gradient(135deg, #0f3c9a 0%, #1a4db5 100%);
	color: #fff;
	box-shadow: 0 4px 16px rgba(15, 60, 154, 0.28);
}

.lock-btn-primary:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.rates-updated {
	font-size: 13px;
	color: #8499ab;
	margin: -8px 0 18px;
}

.rates-updated strong {
	color: #44596b;
}

@media (max-width: 560px) {
	.lock-modal-overlay {
		padding: 12px;
		align-items: flex-end;
	}

	.lock-modal {
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}

	.lock-form-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.lock-total-bar {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
		gap: 4px;
	}

	.lock-total-value {
		text-align: center;
		font-size: 20px;
	}
}

.lock-toast {
	position: fixed;
	bottom: 24px;
	left: 24px;
	background: #0d1630;
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.92);
	border-radius: 11px;
	padding: 14px 18px;
	font-size: 13.5px;
	font-weight: 500;
	z-index: 1100;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 340px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	transform: translateY(80px);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lock-toast.show {
	transform: translateY(0);
	opacity: 1;
}
