/* Nukhbat auth — navy #1a2b42, LTR mobile drawer from LEFT */
.nukhbat-tutor-auth-wrap {
	--nukhbat-auth-navy: #1a2b42;
	--nukhbat-auth-navy-soft: #243a5a;
	--nukhbat-auth-logout: #c0392b;
	--nukhbat-auth-border: #e5e7eb;
	--nukhbat-auth-head-bg: #f0f4f8;
	--nukhbat-auth-surface: #f8fafc;
	--nukhbat-auth-muted: #64748b;
	font-family: inherit;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}

.nukhbat-auth-login-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.25rem;
	background: var(--nukhbat-auth-navy);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 9999px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.nukhbat-auth-login-btn:hover,
.nukhbat-auth-login-btn:focus-visible {
	background: #14202f;
	color: #fff !important;
}

.nukhbat-auth-login-btn--block {
	justify-content: center;
	width: 100%;
}

.nukhbat-auth-login-ico,
.nukhbat-auth-login-ico svg {
	display: block;
	flex-shrink: 0;
}

.nukhbat-auth-logged {
	position: relative;
}

.nukhbat-auth-trigger {
	display: none;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 1.1rem;
	background: var(--nukhbat-auth-navy);
	color: #fff !important;
	border: none;
	border-radius: 9999px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	max-width: 220px;
}

.nukhbat-auth-trigger-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nukhbat-auth-trigger-caret {
	display: flex;
	color: #fff;
	opacity: 0.9;
}

.nukhbat-auth-dropdown {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 8px);
	min-width: 260px;
	max-width: min(320px, 92vw);
	background: #fff;
	border: 1px solid var(--nukhbat-auth-border);
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(26, 43, 66, 0.14);
	z-index: 100050;
	text-align: start;
}

.nukhbat-auth-dropdown[hidden] {
	display: none !important;
}

.nukhbat-auth-dropdown-head {
	padding: 0.85rem 1rem;
	background: var(--nukhbat-auth-head-bg);
	border-radius: 12px 12px 0 0;
	font-weight: 700;
	color: var(--nukhbat-auth-navy-soft);
	font-size: 1rem;
}

.nukhbat-auth-dropdown-body {
	padding: 0.35rem 0;
}

.nukhbat-auth-dd-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nukhbat-auth-dd-link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.7rem 1rem;
	color: #1e293b !important;
	text-decoration: none !important;
	font-size: 0.92rem;
	font-weight: 500;
}

.nukhbat-auth-dd-link:hover,
.nukhbat-auth-dd-link:focus-visible {
	background: var(--nukhbat-auth-surface);
}

.nukhbat-auth-dd-link .nukhbat-auth-ico {
	flex-shrink: 0;
	color: var(--nukhbat-auth-navy-soft);
	opacity: 0.9;
}

.nukhbat-auth-dd-label {
	flex: 1;
	min-width: 0;
}

.nukhbat-auth-dropdown-foot {
	border-top: 1px solid var(--nukhbat-auth-border);
	padding: 0.5rem 0;
}

.nukhbat-auth-logout {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1rem;
	color: var(--nukhbat-auth-logout) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.92rem;
	width: 100%;
	box-sizing: border-box;
}

.nukhbat-auth-logout--block {
	margin-top: 0;
	justify-content: center;
	border: 1px solid rgba(192, 57, 43, 0.25);
	border-radius: 10px;
	background: #fff;
}

.nukhbat-auth-logout:hover,
.nukhbat-auth-logout:focus-visible {
	background: rgba(192, 57, 43, 0.06);
}

/* Burger */
.nukhbat-auth-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--nukhbat-auth-navy);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	align-items: center;
}

.nukhbat-auth-burger-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
	border-radius: 1px;
}

.nukhbat-auth-burger[hidden] {
	display: none !important;
}

/* Backdrop */
.nukhbat-auth-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	z-index: 100100;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.nukhbat-auth-drawer-backdrop.is-open {
	opacity: 1;
	pointer-events: auto;
}

.nukhbat-auth-drawer-backdrop[hidden] {
	display: none !important;
}

/* Drawer slides from LEFT */
.nukhbat-auth-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: auto;
	width: min(100%, 400px);
	max-width: 100%;
	background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
	z-index: 100110;
	transform: translateX(-100%);
	box-shadow: 12px 0 40px rgba(15, 23, 42, 0.12);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.nukhbat-auth-drawer.is-open {
	transform: translateX(0);
}

.nukhbat-auth-drawer[hidden] {
	display: none !important;
}

.nukhbat-auth-drawer-inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	max-height: 100dvh;
	padding: 0;
}

/* Head: close left, logo center */
.nukhbat-drawer-head {
	position: relative;
	padding: 1rem 1.1rem 0.75rem;
	border-bottom: 1px solid var(--nukhbat-auth-border);
	background: #fff;
}

.nukhbat-auth-drawer-x {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: none;
	background: var(--nukhbat-auth-surface);
	border-radius: 12px;
	color: var(--nukhbat-auth-muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s, color 0.2s;
}

.nukhbat-auth-drawer-x:hover,
.nukhbat-auth-drawer-x:focus-visible {
	background: #e8eef4;
	color: var(--nukhbat-auth-navy);
}

.nukhbat-mob-logo {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	max-width: 220px;
	padding: 0.25rem 2.5rem;
}

.nukhbat-mob-logo img {
	max-width: 100%;
	height: auto;
	max-height: 52px;
	object-fit: contain;
}

.nukhbat-mob-logo--text {
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	color: var(--nukhbat-auth-navy) !important;
	text-decoration: none !important;
	padding: 0.5rem 2.5rem;
	text-align: center;
}

/* Search */
.nukhbat-mob-search {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 1rem 1.1rem 0.75rem;
	padding: 0.55rem 0.85rem;
	background: var(--nukhbat-auth-head-bg);
	border: 1px solid var(--nukhbat-auth-border);
	border-radius: 12px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.nukhbat-mob-search:focus-within {
	border-color: rgba(26, 43, 66, 0.35);
	box-shadow: 0 0 0 3px rgba(26, 43, 66, 0.08);
}

.nukhbat-mob-search-ico {
	color: var(--nukhbat-auth-navy);
	display: flex;
	flex-shrink: 0;
	opacity: 0.85;
}

.nukhbat-mob-search-input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 0.95rem;
	color: #0f172a;
	min-width: 0;
}

.nukhbat-mob-search-input::placeholder {
	color: #94a3b8;
}

.nukhbat-mob-search-input:focus {
	outline: none;
}

/* Scroll region */
.nukhbat-drawer-scroll {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.5rem;
}

.nukhbat-mob-user-chip {
	margin: 0.35rem 1.1rem 0.5rem;
	padding: 0.55rem 0.85rem;
	background: #fff;
	border: 1px solid var(--nukhbat-auth-border);
	border-radius: 10px;
	font-weight: 700;
	color: var(--nukhbat-auth-navy-soft);
	font-size: 0.95rem;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Nav card */
.nukhbat-mob-nav-card {
	margin: 0.5rem 1rem 0.75rem;
	background: #fff;
	border: 1px solid var(--nukhbat-auth-border);
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.nukhbat-auth-mob-primary-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nukhbat-auth-mob-primary-list > .nukhbat-mob-li {
	margin: 0;
	border-bottom: 1px solid #eef2f7;
}

.nukhbat-auth-mob-primary-list > .nukhbat-mob-li:last-child {
	border-bottom: none;
}

.nukhbat-mob-parent-row {
	display: flex;
	align-items: stretch;
	gap: 0;
}

.nukhbat-mob-linkrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
	padding: 0.85rem 1rem;
	color: var(--nukhbat-auth-navy) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.95rem;
	min-width: 0;
}

.nukhbat-mob-linkrow--parent {
	font-weight: 700;
}

.nukhbat-mob-ico {
	flex-shrink: 0;
	color: var(--nukhbat-auth-navy-soft);
	opacity: 0.92;
}

.nukhbat-mob-ico--sub {
	color: #94a3b8;
}

.nukhbat-mob-label {
	min-width: 0;
}

.nukhbat-mob-sub-toggle {
	width: 48px;
	flex-shrink: 0;
	border: none;
	border-left: 1px solid #eef2f7;
	background: var(--nukhbat-auth-surface);
	color: var(--nukhbat-auth-navy);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s;
}

.nukhbat-mob-sub-toggle:hover,
.nukhbat-mob-sub-toggle:focus-visible {
	background: #e8eef4;
}

.nukhbat-mob-sub-toggle[aria-expanded="true"] {
	background: #fff;
}

.nukhbat-mob-sub-toggle[aria-expanded="true"] .nukhbat-mob-sub-toggle-ico {
	transform: rotate(45deg);
}

.nukhbat-mob-sub-toggle-ico {
	display: flex;
	transition: transform 0.25s ease;
}

/* Submenu: closed by default (hidden attr) */
.nukhbat-mob-sublist {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0 0.5rem;
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
	border-top: 1px dashed #e2e8f0;
}

.nukhbat-mob-sublist[hidden] {
	display: none !important;
}

.nukhbat-mob-sublist > .nukhbat-mob-li {
	border-bottom: 1px solid #f1f5f9;
}

.nukhbat-mob-sublist > .nukhbat-mob-li:last-child {
	border-bottom: none;
}

.nukhbat-mob-sublink {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.65rem 1rem 0.65rem 1.35rem;
	color: #475569 !important;
	text-decoration: none !important;
	font-size: 0.9rem;
	font-weight: 500;
	border-left: 3px solid rgba(26, 43, 66, 0.12);
	margin-left: 0.75rem;
}

.nukhbat-mob-sublink:hover,
.nukhbat-mob-sublink:focus-visible {
	background: rgba(26, 43, 66, 0.04);
	color: var(--nukhbat-auth-navy) !important;
}

/* Join CTA */
.nukhbat-mob-join-wrap {
	margin: 0 1rem 1rem;
}

.nukhbat-mob-join {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.85rem 1rem;
	background: var(--nukhbat-auth-navy);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: 9999px;
	box-shadow: 0 8px 24px rgba(26, 43, 66, 0.25);
	transition: transform 0.15s, box-shadow 0.2s;
}

.nukhbat-mob-join:hover,
.nukhbat-mob-join:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(26, 43, 66, 0.3);
	color: #fff !important;
}

/* Tutor account card */
.nukhbat-mob-account-card {
	margin: 0 1rem 1rem;
	padding: 0.75rem 0 0;
	background: #fff;
	border: 1px solid var(--nukhbat-auth-border);
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.nukhbat-auth-mob-account-label {
	margin: 0 1rem 0.35rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nukhbat-auth-muted);
	font-weight: 700;
}

.nukhbat-auth-mob-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nukhbat-auth-mob-link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.75rem 1rem;
	color: #334155 !important;
	text-decoration: none !important;
	font-size: 0.92rem;
	font-weight: 500;
	border-top: 1px solid #f1f5f9;
}

.nukhbat-auth-mob-link .nukhbat-auth-ico {
	flex-shrink: 0;
	color: var(--nukhbat-auth-navy-soft);
}

.nukhbat-auth-mob-link:hover,
.nukhbat-auth-mob-link:focus-visible {
	background: var(--nukhbat-auth-surface);
}

/* Social */
.nukhbat-mob-social-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0.25rem 1rem 1rem;
}

.nukhbat-mob-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--nukhbat-auth-border);
	border-radius: 10px;
	background: #fff;
	color: var(--nukhbat-auth-navy-soft);
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.nukhbat-mob-social-link:hover,
.nukhbat-mob-social-link:focus-visible {
	border-color: rgba(26, 43, 66, 0.35);
	color: var(--nukhbat-auth-navy);
	background: var(--nukhbat-auth-surface);
	transform: translateY(-2px);
}

/* Sticky footer */
.nukhbat-drawer-footer {
	flex-shrink: 0;
	padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-top: 1px solid var(--nukhbat-auth-border);
	box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.07);
}

/* Desktop */
@media (min-width: 992px) {
	.nukhbat-auth-trigger {
		display: inline-flex;
	}

	.nukhbat-auth-login-btn:not(.nukhbat-auth-login-btn--block) {
		display: inline-flex;
	}

	.nukhbat-auth-burger {
		display: none !important;
	}

	.nukhbat-auth-drawer,
	.nukhbat-auth-drawer-backdrop {
		display: none !important;
	}
}

@media (max-width: 991.98px) {
	.nukhbat-auth-logged .nukhbat-auth-trigger,
	.nukhbat-auth-logged .nukhbat-auth-dropdown {
		display: none !important;
	}

	.nukhbat-auth-login-btn:not(.nukhbat-auth-login-btn--block) {
		display: none !important;
	}

	.nukhbat-auth-burger {
		display: inline-flex !important;
	}

	.nukhbat-auth-burger[hidden] {
		display: inline-flex !important;
	}
}
