.bse-auth-layer[hidden],
.bse-account-menu[hidden] {
	display: none !important;
}

body.bse-auth-open {
	overflow: hidden;
}

body {
	--font-family: "Tajawal", sans-serif;
	font-family: var(--font-family) !important;
}

body :where(p, a, span, strong, em, small, label, input, textarea, select, button, h1, h2, h3, h4, h5, h6, li, td, th, div):not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not([class*="fa-"]):not(.logo-text) {
	font-family: var(--font-family) !important;
}

.bse-auth-layer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 20px;
}

.bse-auth-backdrop {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(7, 30, 42, 0.22), rgba(0, 0, 0, 0.58));
	backdrop-filter: blur(10px) saturate(0.95) brightness(0.72);
	-webkit-backdrop-filter: blur(10px) saturate(0.95) brightness(0.72);
}

.bse-auth-dialog {
	position: relative;
	width: min(92vw, 470px);
	max-height: min(88vh, 760px);
	overflow-y: auto;
	background:
		linear-gradient(180deg, rgba(10, 39, 52, 0.98), rgba(3, 18, 26, 0.98)),
		var(--bse-panel, #061923);
	color: #f8fbff;
	border: 1px solid rgba(103, 232, 249, 0.28);
	border-radius: 22px;
	box-shadow:
		0 26px 80px rgba(0, 0, 0, 0.48),
		0 0 34px rgba(34, 211, 238, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	padding: 32px 32px 34px;
	font-family: "Tajawal", sans-serif;
	animation: bse-dialog-in 220ms ease-out both;
}

.bse-close {
	position: absolute;
	top: 18px;
	left: 18px;
	width: 34px;
	height: 34px;
	border: 0;
	background: #102f3e !important;
	color: #fff !important;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	border-radius: 12px;
}

.bse-avatar {
	width: 104px;
	height: 104px;
	display: grid;
	place-items: center;
	margin: 0 auto 20px;
	border: 1.5px solid #00f2fe;
	border-radius: 50%;
	background: rgba(8, 22, 38, 0.85);
	box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
	padding: 6px;
	overflow: hidden;
}

.bse-3d-user-icon {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.5));
	transition: transform 0.3s ease;
}

.bse-avatar:hover .bse-3d-user-icon {
	transform: scale(1.08);
}

.bse-auth-dialog h2 {
	margin: 0 0 26px;
	text-align: center;
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0;
}

.bse-step {
	display: none;
}

.bse-step.is-active {
	display: grid;
	gap: 14px;
}

.bse-step.is-entering {
	animation: bse-step-in 260ms ease-out both;
}

.bse-step label {
	display: block;
	color: #f5f7fa;
	font-weight: 700;
	font-size: 16px;
	text-align: right;
}

.bse-step input[type="email"],
.bse-step input[type="text"],
.bse-step input[type="tel"] {
	width: 100%;
	min-height: 52px;
	border: 2px solid rgba(216, 234, 244, 0.42) !important;
	border-radius: 4px;
	background: #020d15 !important;
	color: #ffffff !important;
	padding: 0 14px;
	font-size: 18px;
	outline: none;
	box-sizing: border-box;
}

.bse-step input:focus {
	border-color: var(--bse-accent, #ffad0f) !important;
	box-shadow: 0 0 0 4px rgba(255, 173, 15, 0.28) !important;
}

.bse-auth-dialog .bse-primary,
.bse-auth-dialog button.bse-primary,
.bse-auth-dialog button[type="submit"].bse-primary {
	min-height: 52px;
	border: 0 !important;
	border-radius: 4px;
	background: var(--bse-accent, #ffad0f) !important;
	background-image: none !important;
	color: #1c1300 !important;
	font-size: 18px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(255, 173, 15, 0.2) !important;
}

.bse-auth-dialog .bse-primary:hover,
.bse-auth-dialog button.bse-primary:hover,
.bse-auth-dialog button[type="submit"].bse-primary:hover {
	background: #ffc247 !important;
	background-image: none !important;
	color: #1c1300 !important;
	filter: brightness(1.04);
	transform: translateY(-1px);
}

.bse-auth-dialog .bse-primary:disabled {
	cursor: wait;
	opacity: 0.72;
}

.bse-message {
	display: none;
	margin: -8px 0 18px;
	padding: 12px;
	border-radius: 4px;
	background: #123247 !important;
	color: #fff;
	text-align: center;
	font-size: 14px;
}

.bse-message.is-visible {
	display: block;
}

.bse-message.is-error {
	background: rgba(255, 82, 82, 0.16);
	color: #ffd5d5;
}

.bse-muted {
	margin: 0;
	text-align: center;
	color: #dce9f0;
	font-weight: 700;
	line-height: 1.8;
}

.bse-email-preview {
	display: block;
	text-align: center;
	color: #fff;
	font-size: 19px;
	font-weight: 800;
	direction: ltr;
}

.bse-otp {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 18px 0 8px;
}

.bse-otp input {
	height: 62px;
	text-align: center;
	font-size: 28px !important;
	font-weight: 800;
	padding: 0;
}

.bse-resend {
	border: 0;
	background: transparent;
	color: #c0d0da;
	font-size: 15px;
	cursor: pointer;
}

.bse-resend:not(:disabled) {
	color: var(--bse-accent, #ffad0f);
}

.bse-phone {
	display: grid;
	grid-template-columns: 80px 1fr;
	align-items: center;
	background: #020d15;
	border: 2px solid rgba(216, 234, 244, 0.42);
	border-radius: 4px;
	overflow: hidden;
}

.bse-phone span {
	display: grid;
	place-items: center;
	height: 52px;
	border-left: 1px solid rgba(172, 198, 211, 0.18);
	color: #d7e0e7;
	font-weight: 800;
	direction: ltr;
}

.bse-phone input {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.bse-check {
	display: flex !important;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
	color: #eef6fb !important;
}

.bse-check input {
	width: 28px;
	height: 28px;
	accent-color: var(--bse-accent, #ffad0f);
	flex: 0 0 auto;
}

.bse-privacy {
	margin: 0;
	text-align: center;
	color: #c4d2dc;
	font-size: 14px;
}

.bse-privacy a {
	color: var(--bse-accent, #ffad0f);
	text-decoration: none;
}

.bse-account-menu {
	position: fixed;
	z-index: 999998;
	width: min(86vw, 340px);
	background: linear-gradient(180deg, #082634, #031620);
	color: #fff;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 24px 65px rgba(0, 0, 0, 0.55);
	padding: 12px;
	font-family: "Tajawal", sans-serif;
	animation: bse-menu-in 160ms ease-out both;
}

.bse-account-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px 14px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	font-weight: 800;
}

.bse-mini-avatar {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #e9eef3;
	color: #0a1820;
}

.bse-account-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 54px;
	padding: 0 16px;
	color: #f7fbff;
	text-decoration: none;
	border-radius: 6px;
	font-size: 18px;
	font-weight: 700;
}

.bse-account-menu a:hover {
	background: #11394b;
}

.bse-account-menu i {
	color: #d8e6ef;
	width: 25px;
	text-align: center;
}

.bse-account-menu .bse-logout i,
.bse-account-menu .bse-logout {
	color: #ff7474;
}

@keyframes bse-dialog-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes bse-step-in {
	from {
		opacity: 0;
		transform: translateX(-14px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes bse-menu-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 520px) {
	.bse-auth-layer {
		align-items: center;
		padding: 16px;
	}

	.bse-auth-dialog {
		width: 100%;
		padding: 24px 22px 26px;
	}

	.bse-auth-dialog h2 {
		font-size: 25px;
	}

	.bse-avatar {
		width: 86px;
		height: 86px;
	}

	.bse-otp {
		gap: 8px;
	}

	.bse-account-menu {
		left: 16px !important;
		right: 16px !important;
		width: auto;
	}
}
