#registermodal .modal-dialog {
	max-width: 900px;
	margin: 1.75rem auto;
}

#registermodal .modal-content {
	background: transparent;
	border: none;
	border-radius: 12px;
	overflow: hidden;
}

#registermodal .modal-body {
	padding: 0;
}

.register-modal-wrapper {
	display: flex;
	height: 600px;
	background: var(--MODAL_BG);
}

.register-left-panel {
	flex: 1;
	background: var(--MODAL_BG);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	height: 600px;
	box-sizing: border-box;
}

#registermodal .promo-full-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	pointer-events: none;
	z-index: 1;
}

#registermodal .promo-full-image.active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.register-left-panel .welcome-bonus-text {
	color: var(--MODAL_TXT_COLOR);
	font-family: var(--SECONDARY_FONT_FAMILY);
	font-size: var(--HEADER_FONT_SIZE);
	font-weight: var(--REG_FONT_WEIGHT);
	letter-spacing: var(--SECONDARY_FONT_LETTER_SPACING);
	border-radius: 8px;
}

.register-right-panel {
	flex: 1;
	background: var(--MODAL_BG);
	padding: 25px 40px 0 40px;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 620px;
	box-sizing: border-box;
	overflow: hidden;
}

.register-right-panel::-webkit-scrollbar {
	width: 6px;
}

.register-right-panel::-webkit-scrollbar-track {
	background: transparent;
}

.register-right-panel::-webkit-scrollbar-thumb {
	background: var(--PRIMARY_INACTIVE_BTN_BG);
	border-radius: 10px;
}

.register-right-panel::-webkit-scrollbar-thumb:hover {
	background: var(--THIRD_BTN_BG);
}

.btn-modalClose {
	position: absolute;
	top: 14px;
	right: 40px;
	width: 40px;
	height: 38px;
	border-radius: 10px;
	background: var(--MODAL_CLOSE_BTN_BG);
	border: none;
	color: var(--MODAL_CLOSE_BTN_COLOR);
	font-size: var(--HEADER_FONT_SIZE);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
}

.btn-modalClose:hover {
	filter: var(--THIRD_BTN_HOVER_BG);
}

.register-form-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.top-section {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

.top-section::-webkit-scrollbar {
	width: 4px;
}

.top-section::-webkit-scrollbar-track {
	background: transparent;
}

.top-section::-webkit-scrollbar-thumb {
	background: var(--PRIMARY_INACTIVE_BTN_BG);
	border-radius: 10px;
}

.top-section::-webkit-scrollbar-thumb:hover {
	background: var(--THIRD_BTN_BG);
}

.title-section {
	margin-bottom: 25px;
}

.register-title {
	color: var(--MODAL_HEADER_TXT_COLOR);
	font-family: var(--SECONDARY_FONT_FAMILY);
	font-size: var(--HEADER_FONT_SIZE);
	font-weight: var(--MED_FONT_WEIGHT);
	letter-spacing: var(--SECONDARY_FONT_LETTER_SPACING);
	margin-bottom: 0;
	margin-top: 0;
	padding-right: 40px;
}

.tab-list-1 {
	width: 100%;
}

.tab-list-1 .tab-content {
	width: 100%;
	min-height: 200px;
}

.progress-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin-bottom: 25px;
}

.progress-step {
	position: relative;
}

.step-number {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--PRIMARY_INACTIVE_BTN_BG);
	color: var(--TXT_COLOR_4);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	font-weight: var(--REG_FONT_WEIGHT);
	transition: all 0.3s ease;
}

.progress-step.active .step-number {
	background: var(--PRIMARY_BTN_BG);
	color: var(--PRIMARY_BTN_COLOR);
	box-shadow: 0 2px 8px var(--PRIMARY_BTN_SHADOW);
}

.progress-line {
	width: 60px;
	height: 2px;
	background: var(--PRIMARY_INACTIVE_BTN_BG);
}

#registermodal .form-group.text-right {
	margin-bottom: 20px;
}

.bottom-section .form-group:last-child {
	margin-bottom: 0;
}

.input-wrapper {
	position: relative;
	width: 100%;
}

.input-wrapper input[type="text"],
.input-wrapper input[type="password"],
.input-wrapper select,
.input-wrapper textarea {
	width: 100%;
	height: 44px;
	padding: 13px 23px;
	background: var(--INPUT_BG);
	border: var(--INPUT_BORDER);
	border-radius: 10px;
	color: var(--INPUT_TXT_COLOR);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	font-weight: var(--LIGHT_FONT_WEIGHT);
	transition: all 0.3s ease;
	outline: none;
	box-sizing: border-box;
	font-family: var(--PRIMARY_FONT_FAMILY);
}

.input-wrapper textarea {
	height: auto;
	min-height: 80px;
	resize: vertical;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
	color: var(--INPUT_PLACEHOLDER_TXT_COLOR);
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
	box-shadow: var(--PRIMARY_BTN_SHADOW);
}

select.prefix-select {
    width: 91px;
	height: 44px;
	padding-right: 10px;
	background-position: right 5px center;
}

.password-wrapper {
	position: relative;
}

.password-wrapper input {
	padding-right: 45px;
}

.regPswdVisi-,
.regCfmPswdVisi- {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ICON_DISABLED_BG);
	cursor: pointer;
	font-size: var(--ICON_SMALL_FONT_SIZE);
	transition: color 0.3s ease;
}

.regPswdVisi-:hover,
.regCfmPswdVisi-:hover {
	color: var(--THIRD_BTN_HOVER_BG);
}

.flex-d-row {
	display: flex;
	gap: 10px;
}

.flex-grow-1 {
	flex-grow: 1;
}

.currency-copy-wrapper {
	display: flex;
	gap: 10px;
	align-items: center;
	width: 100%;
}

.currency-copy-wrapper select {
	flex: 1;
	min-width: 0;
}

.currency-copy-wrapper .btn-copy {
	flex-shrink: 0;
	white-space: nowrap;
}

.otp-wrapper {
	position: relative;
}

.otp-wrapper input {
	flex: 1;
}

.captcha-wrapper {
	align-items: center;
}

.captcha-wrapper input {
	flex: 1;
}

.captcha-img {
	display: flex;
	align-items: center;
	gap: 5px;
	padding-left: 10px;
}

.captcha-img img {
	height: 44px;
	border-radius: 6px;
	background-color: #ffffff;
	padding: 2px;
	filter: brightness(1.2) contrast(1.1);
}

.captcha-img .reload {
	color: var(--ICON_DISABLED_BG);
	cursor: pointer;
	font-size: var(--ICON_SMALL_FONT_SIZE);
	transition: color 0.3s ease;
	padding: 5px;
}

.captcha-img .reload:hover {
	color: var(--SECONDARY_COLOR);
}

.telegram-register-info,
.whatsapp-register-info {
	margin-bottom: 20px;
}

.register-steps {
	list-style-position: inside;
	padding-left: 0;
	margin-bottom: 20px;
}

.register-steps li {
	color: var(--MODAL_TXT_COLOR);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	font-family: var(--PRIMARY_FONT_FAMILY);
	margin-bottom: 12px;
	line-height: 1.6;
}

.register-steps li label {
	margin-top: 10px;
}

.btn-copy {
	padding: 10px 20px;
	background: var(--SECONDARY_BTN_BG);
	border: var(--SECONDARY_BTN_BORDER);
	box-shadow: var(--SECONDARY_BTN_SHADOW);
	border-radius: 8px;
	color: var(--SECONDARY_BTN_COLOR);	
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-weight: var(--REG_FONT_WEIGHT);
	cursor: pointer;
	transition: all 0.3s ease;
	margin: 10px 0;
	width: 28%;
}

.btn-copy:hover {
	filter: var(--SECONDARY_BTN_HOVER_FILTER_BG);
	transform: translateY(-2px);
}

.qr-code-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
}

.qr-code-wrapper #telegramQR,
.qr-code-wrapper #whatsappQR {
	display: inline-block;
}


.important-icon {
	color: var(--IMPORTANT_COLOR);
}

.btn-register {
	padding: 12px 24px;
	background: var(--PRIMARY_BTN_BG);
	border: none;
	border-radius: 10px;
	color: var(--PRIMARY_BTN_COLOR);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-weight: var(--REG_FONT_WEIGHT);
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px var(--PRIMARY_BTN_SHADOW);
}

.btn-register:hover {
	filter: var(--PRIMARY_BTN_HOVER_FILTER_BG);
	transform: translateY(-2px);
}

.btn-register:active {
	transform: translateY(0);
}

.btn-previous {
	padding: 10px 24px;
	background: var(--THIRD_BTN_BG);
	border: var(--THIRD_BTN_BORDER);
	border-radius: 10px;
	color: var(--THIRD_BTN_COLOR);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-weight: var(--LIGHT_FONT_WEIGHT);
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-previous:hover {
	background: var(--THIRD_BTN_BG);
	color: var(--THIRD_BTN_HOVER_COLOR);
	transform: translateY(-2px);
}

.btn-previous:active {
	transform: translateY(0);
}

.form-page {
	width: 100%;
	transition: opacity 0.3s ease-in-out;
	padding-right: 10px;
}

.form-page.d-none {
	display: none !important;
}

.separator-line {
	position: relative;
	text-align: center;
	margin: 20px 0 24px 0;
}

.separator-line::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 1px;
	background: var(--PRIMARY_INACTIVE_BTN_BG);
}

.separator-line span {
	position: relative;
	background: var(--MODAL_BG);
	padding: 0 15px;
	color: var(--TXT_COLOR_4);
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	z-index: 1;
}

.btn-otp {
	padding: 10px 23px;
	background: var(--SECONDARY_BTN_BG);
	border: var(--SECONDARY_BTN_BORDER);
	box-shadow: var(--SECONDARY_BTN_SHADOW);
	color: var(--SECONDARY_BTN_COLOR);
	border-radius: 10px;
	font-size: var(--SUBBODY_TXT_FONT_SIZE);
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-weight: var(--REG_FONT_WEIGHT);
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.btn-otp:hover {
	filter: var(--SECONDARY_BTN_HOVER_FILTER_BG);
}

.bottom-section {
	flex-shrink: 0;
	    padding: 0 0 40px 0;
}

.other-register-tabs {
	margin-top: 0;
}

#registermodal .nav-tabs-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 0;
	list-style: none;
	border: none;
}

#registermodal .nav-tabs-bottom .nav-item {
	flex: 1 1 calc(50% - 5px);
	min-width: calc(50% - 5px);
}

#registermodal .nav-tabs-bottom .nav-item:first-child:nth-last-child(1),
#registermodal .nav-tabs-bottom .nav-item:first-child:nth-last-child(2),
#registermodal .nav-tabs-bottom .nav-item:first-child:nth-last-child(2) ~ .nav-item {
	flex: 1;
	min-width: 0;
}

#registermodal .nav-tabs-bottom .nav-item:first-child:nth-last-child(n+3),
#registermodal .nav-tabs-bottom .nav-item:first-child:nth-last-child(n+3) ~ .nav-item {
	flex: 1 1 calc(50% - 5px);
	min-width: calc(50% - 5px);
}

/* When total is 3 items, center the 3rd one */
#registermodal .nav-tabs-bottom .nav-item:first-child:nth-last-child(3) ~ .nav-item:last-child
 {
	margin: 0 auto;
	flex: 0 0 calc(50% - 5px);
}

#registermodal .nav-link-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    border: var(--THIRD_BTN_BORDER);
    border-radius: 10px;
    color: var(--THIRD_BTN_COLOR);
    font-size: var(--SUBBODY_TXT_FONT_SIZE);
    font-weight: var(--LIGHT_FONT_WEIGHT);
    font-family: var(--PRIMARY_FONT_FAMILY);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    max-width: 200px;
}

#registermodal .nav-link-bottom:hover,
#registermodal .nav-link-bottom.active {
	background: var(--THIRD_BTN_BG);
	color: var(--THIRD_BTN_HOVER_COLOR);
	text-decoration: none;
}

#registermodal .nav-link-bottom i {
	font-size: var(--ICON_SMALL_FONT_SIZE);
}

.signin-section {
	margin-top: 0;
	margin-bottom: 20px;
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	font-weight: var(--REG_FONT_WEIGHT);
}

.already-account-text {
	color: var(--MODAL_TXT_COLOR);
	margin-right: 5px;
	font-weight: var(--LIGHT_FONT_WEIGHT);
}

.signin-link {
	color: var(--SECONDARY_COLOR);
	text-decoration: none;
	transition: color 0.3s ease;
	cursor: pointer;
}

.signin-link:hover{
	color: var(--SECONDARY_COLOR);
	text-decoration: underline;
}

.inputmsg,
.inputMsg {
	color: var(--IMPORTANT_COLOR);
	font-size: var(--DEFAULT_FONT_SIZE);
	display: block;
	margin: 5px 0 0 5px;
}

small {
	color: var(--TXT_COLOR_3);
	font-size: var(--DEFAULT_FONT_SIZE);
	display: block;
	margin: 5px 0 0 5px;
}

#registermodal .form-group label {
	color: var(--MODAL_TXT_COLOR);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE);
	margin-bottom: 8px;
	display: block;
	font-weight: var(--REG_FONT_WEIGHT);
}

.tab-pane {
	display: none;
	opacity: 0;
	transition: opacity 0.15s linear;
}

.tab-pane.active {
	display: block;
}

.tab-pane.show {
	opacity: 1;
}

.tab-pane.show.active {
	display: block;
	opacity: 1;
}

.text-right {
	text-align: right;
}

.text-center {
	text-align: center;
}

.text-justify {
	text-align: justify;
}

.w-100 {
	width: 100%;
}

.d-none {
	display: none !important;
}

.mt-3 {
	margin-top: 1rem;
}

/* Registration Success Panel */
.register-success-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	text-align: center;
	min-height: 400px;
}

.register-success-panel .success-icon {
	margin-bottom: 30px;
}

.register-success-panel .success-icon i {
	font-size: 50px;
	color: var(--ACTIVE_BTN_BG);
	animation: successBounce 0.6s ease-in-out;
}

@keyframes successBounce {
	0% {
		transform: scale(0);
		opacity: 0;
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

#registermodal .banner-content {
	position: absolute;
	z-index: 100;
	color: var(--MODAL_TXT_COLOR);
	display: none;
}

#registermodal .banner-content.active {
	display: block;
}

#registermodal .banner-content-default {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	text-align: center;
	z-index: 100;
	padding: 10px 18px;
	width: calc(100% - 50px);
	margin: 0 25px 20px 25px;
}

#registermodal .register-instructions {
	top: 70%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	z-index: 100;
}

#registermodal .instruction-steps {
	list-style: none;
	padding: 0;
	margin: 0;
}

#registermodal .instruction-steps li {
	display: flex;
	align-items: center;
	margin-bottom: 18px;
	list-style: unset;
}

#registermodal .instruction-steps .step-number {
	min-width: 40px;
	height: 40px;
	background: var(--MODAL_TXT_COLOR);
	color: var(--TXT_COLOR_2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: var(--MED_FONT_WEIGHT);
	margin-right: 15px;
	flex-shrink: 0;
}

#registermodal .instruction-steps .step-text {
	flex: 1;
	padding-top: 8px;
	font-family: var(--PRIMARY_FONT_FAMILY);
	font-size: var(--SUBBODY_TXT_FONT_SIZE);
}

/* Animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#registermodal.show .modal-content {
	animation: fadeIn 0.3s ease;
}

.custom-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	margin-bottom: 0;
}

.custom-checkbox input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 1.5px solid var(--MODAL_TXT_COLOR);
	border-radius: 4px;
	background-color: transparent;
	cursor: pointer;
	position: relative;
	margin-top: 2px;
	transition: all 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:hover {
	border-color: var(--SECONDARY_COLOR);
}

.custom-checkbox input[type="checkbox"]:checked {
	background-color: var(--ACTIVE_BTN_BG);
	border-color: var(--ACTIVE_BTN_BG);
}

.custom-checkbox input[type="checkbox"]:checked::after {
	content: '\f00c';
	font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
	font-weight: 900;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--MODAL_TXT_COLOR);
	font-size: var(--DEFAULT_FONT_SIZE);
}

.custom-checkbox label {
	color: var(--MODAL_TXT_COLOR);
	font-size: var(--BODY_SMALL_TXT_FONT_SIZE, 14px);
	font-family: var(--PRIMARY_FONT_FAMILY);
	line-height: 1.5;
	cursor: pointer;
	margin-bottom: 0;
	flex: 1;
	user-select: none;
}

.custom-checkbox label a {
	color: var(--SECONDARY_COLOR);
	text-decoration: underline;
}

.custom-checkbox label a:hover {
	color: var(--SECONDARY_COLOR);
}
