/**
 * Dentaluck Account & Authentication Stylesheet
 * 
 * Version: 2.0.0
 * Theme: Dentaluck
 */

/* ==========================================================================
   1. AUTH PORTAL (LOGIN / REGISTER / LOST PASSWORD)
   ========================================================================== */
.dentaluck-auth-wrapper {
	min-height: calc(100vh - 320px);
	padding: 48px 16px 80px;
	background: #f8fafc;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.dentaluck-auth-container {
	width: 100%;
	max-width: 520px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px !important;
	box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.08);
	padding: 36px 32px;
	box-sizing: border-box;
}

.dentaluck-auth-container.lost-password-box {
	max-width: 480px;
}

/* Header */
.auth-brand-header {
	text-align: center;
	margin-bottom: 24px;
}

.auth-brand-logo {
	margin-bottom: 14px;
	display: flex;
	justify-content: center;
}

.auth-brand-logo img {
	height: 48px;
	width: auto;
	display: block;
}

.auth-title {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 6px 0;
	letter-spacing: -0.3px;
}

.auth-subtitle {
	font-size: 13.5px;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

/* Tabs Navigation */
.auth-tabs-nav {
	display: flex;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 8px;
	margin-bottom: 24px;
	gap: 4px;
}

.auth-tab-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	background: transparent;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.auth-tab-btn:hover {
	color: #0f172a;
}

.auth-tab-btn.active {
	background: #ffffff;
	color: #0284c7;
	font-weight: 700;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Panels */
.auth-panels-wrapper {
	position: relative;
}

.auth-panel {
	display: none;
}

.auth-panel.active {
	display: block;
	animation: authFadeIn 0.25s ease-out;
}

@keyframes authFadeIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Google Login Button */
.auth-social-wrap {
	margin-bottom: 20px;
}

.btn-google-login {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 46px;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 6px !important;
	color: #1e293b;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.btn-google-login:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #0f172a;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-google-login .google-icon {
	flex-shrink: 0;
}

/* Divider */
.auth-divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 20px 0;
	color: #94a3b8;
	font-size: 12.5px;
}

.auth-divider::before,
.auth-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
	padding: 0 12px;
}

/* Form Styles */
.auth-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.auth-form .form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.auth-form label {
	font-size: 13.5px;
	font-weight: 600;
	color: #334155;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
}

.auth-form label .required {
	color: #ef4444;
}

.auth-form .label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.lost-pass-link {
	font-size: 12.5px;
	font-weight: 600;
	color: #0284c7;
	text-decoration: none;
	transition: color 0.15s;
}

.lost-pass-link:hover {
	color: #0369a1;
	text-decoration: underline;
}

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

.input-with-icon svg {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	transition: stroke 0.2s;
}

.input-with-icon input.input-text,
.input-with-icon input[type="text"],
.input-with-icon input[type="email"],
.input-with-icon input[type="password"],
.input-with-icon input[type="tel"] {
	width: 100%;
	height: 46px;
	padding: 10px 14px 10px 42px;
	font-size: 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 6px !important;
	background: #ffffff;
	color: #0f172a;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.input-with-icon input:focus {
	outline: none;
	border-color: #0284c7;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.input-with-icon input:focus + svg,
.input-with-icon input:focus ~ svg {
	stroke: #0284c7;
}

/* Custom Checkbox */
.custom-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	font-size: 13px;
	color: #475569;
}

.custom-checkbox input {
	width: 16px;
	height: 16px;
	accent-color: #0284c7;
	cursor: pointer;
	margin: 0;
}

.auth-terms {
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.5;
}

.auth-terms a {
	color: #0284c7;
	text-decoration: underline;
}

.auth-hint {
	font-size: 12.5px;
	color: #64748b;
	background: #f8fafc;
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	margin: 0;
}

/* Submit Button */
.btn-auth-submit {
	width: 100%;
	height: 48px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
	color: #ffffff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	border: none !important;
	border-radius: 6px !important;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3) !important;
	transition: all 0.2s ease !important;
	margin-top: 6px;
}

.btn-auth-submit:hover {
	background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4) !important;
	transform: translateY(-1px);
}

.btn-auth-submit svg {
	transition: transform 0.2s;
}

.btn-auth-submit:hover svg {
	transform: translateX(3px);
}

/* Switch Footer */
.auth-switch-footer {
	text-align: center;
	font-size: 13.5px;
	color: #64748b;
	margin-top: 14px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
}

.auth-switch-link {
	color: #0284c7;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.auth-switch-link:hover {
	color: #0369a1;
	text-decoration: underline;
}

.back-to-login-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0284c7;
	font-weight: 600;
	text-decoration: none;
	font-size: 13.5px;
}

.back-to-login-link:hover {
	text-decoration: underline;
}

/* Trust Footer */
.auth-trust-footer {
	display: flex;
	justify-content: space-around;
	align-items: center;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid #f1f5f9;
}

.auth-trust-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #64748b;
}


/* ==========================================================================
   2. LOGGED-IN MY ACCOUNT LAYOUT
   ========================================================================== */
.account-main-layout {
	background-color: #f8fafc;
	min-height: calc(100vh - 320px);
	padding: 24px 0 60px;
	width: 100%;
	box-sizing: border-box;
}

.account-main-layout .container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

/* Hide duplicate/unwanted WordPress post titles on account page */
.account-main-layout .entry-header,
.account-main-layout .entry-title,
.account-main-layout h1.entry-title {
	display: none !important;
}

/* Remove default WooCommerce floats */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

.dentaluck-myaccount-grid {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 24px;
	align-items: flex-start;
	width: 100%;
	box-sizing: border-box;
}

/* Sidebar */
.dentaluck-account-nav-sidebar {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px !important;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.account-user-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.user-avatar-wrap {
	position: relative;
	flex-shrink: 0;
}

.user-avatar-img {
	width: 56px;
	height: 56px;
	border-radius: 50% !important;
	object-fit: cover;
	border: 2px solid #e2e8f0;
}

.user-status-dot {
	position: absolute;
	bottom: 2px;
	right: 2px;
	width: 12px;
	height: 12px;
	background: #16a34a;
	border: 2px solid #ffffff;
	border-radius: 50%;
}

.user-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow: hidden;
}

.user-name {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-email {
	font-size: 12.5px;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-role-badge,
.user-clinic-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: #0284c7;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	padding: 2px 6px;
	border-radius: 4px;
	margin-top: 4px;
	width: fit-content;
}

.account-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.account-menu-item {
	margin: 0;
	padding: 0;
}

.account-menu-link {
	display: flex;
	align-items: center;
	padding: 11px 14px;
	border-radius: 6px !important;
	color: #475569;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.15s ease;
	gap: 12px;
}

.account-menu-link .menu-icon {
	display: flex;
	align-items: center;
	color: #64748b;
	transition: color 0.15s ease;
}

.account-menu-link .menu-label {
	flex: 1;
}

.account-menu-link .menu-arrow {
	color: #cbd5e1;
	transition: transform 0.15s ease, color 0.15s ease;
}

.account-menu-link:hover {
	background: #f8fafc;
	color: #0f172a;
}

.account-menu-link:hover .menu-icon {
	color: #0284c7;
}

.account-menu-link:hover .menu-arrow {
	color: #0284c7;
	transform: translateX(3px);
}

.account-menu-item.active .account-menu-link {
	background: #f0f9ff;
	color: #0284c7;
	font-weight: 700;
}

.account-menu-item.active .menu-icon {
	color: #0284c7;
}

.account-menu-item.active .menu-arrow {
	color: #0284c7;
}

/* Sidebar Help Card */
.sidebar-help-card {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 6px !important;
	padding: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sidebar-help-card .help-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sidebar-help-card .help-info strong {
	font-size: 12px;
	color: #475569;
}

.sidebar-help-card .help-info a {
	font-size: 14px;
	font-weight: 700;
	color: #0284c7;
	text-decoration: none;
}


/* ==========================================================================
   3. DASHBOARD CONTENT (WELCOME, STATS, ORDERS)
   ========================================================================== */
.dentaluck-myaccount-main {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px !important;
	padding: 28px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	min-width: 0;
	box-sizing: border-box;
}

/* Welcome Banner */
.dashboard-welcome-banner {
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border: 1px solid #bae6fd;
	border-radius: 8px !important;
	padding: 26px 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	position: relative;
	overflow: hidden;
}

.welcome-text-side {
	max-width: 580px;
}

.welcome-badge {
	display: inline-block;
	background: #0284c7;
	color: #ffffff;
	font-size: 11.5px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.welcome-heading {
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px 0;
	letter-spacing: -0.3px;
}

.welcome-desc {
	font-size: 14px;
	color: #475569;
	line-height: 1.5;
	margin: 0 0 18px 0;
}

.welcome-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.btn-dashboard-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #0284c7;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 6px !important;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
	transition: all 0.2s ease;
}

.btn-dashboard-primary:hover {
	background: #0369a1;
	transform: translateY(-1px);
}

.btn-dashboard-secondary {
	display: inline-flex;
	align-items: center;
	background: #ffffff;
	color: #0284c7 !important;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 16px;
	border: 1px solid #bae6fd;
	border-radius: 6px !important;
	text-decoration: none;
	transition: all 0.2s ease;
}

.btn-dashboard-secondary:hover {
	background: #f8fafc;
	border-color: #0284c7;
}

.welcome-illus-side {
	opacity: 0.85;
}

/* Stats Grid */
.dashboard-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-bottom: 28px;
}

.stat-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px !important;
	padding: 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	transition: all 0.2s ease;
	position: relative;
}

.stat-card:hover {
	border-color: #0284c7;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
	transform: translateY(-2px);
}

.stat-icon {
	width: 46px;
	height: 46px;
	border-radius: 8px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.stat-icon.icon-blue {
	background: #f0f9ff;
}

.stat-icon.icon-rose {
	background: #fff1f2;
}

.stat-icon.icon-emerald {
	background: #f0fdf4;
}

.stat-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}

.stat-value {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
}

.stat-label {
	font-size: 12.5px;
	color: #64748b;
}

.stat-arrow {
	font-size: 16px;
	color: #cbd5e1;
	transition: transform 0.2s, color 0.2s;
}

.stat-card:hover .stat-arrow {
	color: #0284c7;
	transform: translateX(4px);
}

/* Section Blocks */
.dashboard-section-block {
	border-top: 1px solid #f1f5f9;
	padding-top: 24px;
}

.block-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.block-title {
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.block-link {
	font-size: 13px;
	font-weight: 600;
	color: #0284c7;
	text-decoration: none;
}

.block-link:hover {
	text-decoration: underline;
}

/* Recent Orders Table */
.recent-orders-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.recent-orders-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.recent-orders-table th {
	background: #f8fafc;
	color: #475569;
	font-weight: 700;
	text-align: left;
	padding: 10px 14px;
	border-bottom: 1.5px solid #e2e8f0;
}

.recent-orders-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
}

.recent-orders-table tr:hover td {
	background: #f8fafc;
}

.order-status-badge {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
}

.order-status-badge.status-completed {
	background: #dcfce7;
	color: #15803d;
}

.order-status-badge.status-processing {
	background: #e0f2fe;
	color: #0369a1;
}

.order-status-badge.status-on-hold,
.order-status-badge.status-pending {
	background: #fef3c7;
	color: #b45309;
}

.order-status-badge.status-cancelled {
	background: #fee2e2;
	color: #b91c1c;
}

.btn-view-order {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	color: #0284c7;
	text-decoration: none;
	padding: 4px 10px;
	border: 1px solid #bae6fd;
	border-radius: 4px;
	background: #f0f9ff;
	transition: all 0.15s;
}

.btn-view-order:hover {
	background: #0284c7;
	color: #ffffff;
}

.empty-orders-banner {
	text-align: center;
	padding: 36px 20px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
}

.empty-orders-banner .empty-icon {
	font-size: 40px;
	margin-bottom: 8px;
}

.empty-orders-banner h4 {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.empty-orders-banner p {
	font-size: 13.5px;
	color: #64748b;
	margin: 0 0 16px 0;
}


/* ==========================================================================
   4. WISHLIST VIEW STYLING
   ========================================================================== */
.dentaluck-wishlist-page {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.account-page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
	flex-wrap: wrap;
	gap: 12px;
}

.account-page-header .page-title {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 4px 0;
}

.account-page-header .page-desc {
	font-size: 13.5px;
	color: #64748b;
	margin: 0;
}

.btn-shop-more {
	font-size: 13px;
	font-weight: 600;
	color: #0284c7;
	text-decoration: none;
}

.btn-shop-more:hover {
	text-decoration: underline;
}

.wishlist-items-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.wishlist-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px !important;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	transition: all 0.2s ease;
}

.wishlist-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
	transform: translateY(-2px);
}

.wishlist-card-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 6px !important;
	overflow: hidden;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wishlist-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wishlist-card-title {
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: none;
}

.wishlist-card-title:hover {
	color: #0284c7;
}

.wishlist-card-price {
	font-size: 14px;
	font-weight: 700;
	color: #0284c7;
}

.wishlist-card-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
}

.btn-wishlist-cart {
	flex: 1;
	background: #0284c7;
	color: #ffffff !important;
	font-size: 12.5px;
	font-weight: 700;
	border: none;
	border-radius: 6px !important;
	padding: 8px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s;
}

.btn-wishlist-cart:hover {
	background: #0369a1;
}

.btn-wishlist-remove {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fef2f2;
	color: #ef4444;
	border: 1px solid #fee2e2;
	border-radius: 6px !important;
	cursor: pointer;
	transition: all 0.15s;
}

.btn-wishlist-remove:hover {
	background: #ef4444;
	color: #ffffff;
}

.wishlist-empty-state {
	text-align: center;
	padding: 48px 20px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
}

.wishlist-empty-state .empty-icon-wrap {
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	background: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wishlist-empty-state h3 {
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.wishlist-empty-state p {
	font-size: 13.5px;
	color: #64748b;
	max-width: 440px;
	margin: 0 auto 20px;
	line-height: 1.5;
}


/* ==========================================================================
   5. HEADER TOPBAR USER DROPDOWN
   ========================================================================== */
.top-user-dropdown-wrap {
	position: relative;
	display: inline-block;
}

.top-user-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px !important;
	color: #1e293b;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.top-user-btn:hover,
.top-user-dropdown-wrap:hover .top-user-btn,
.top-user-dropdown-wrap.is-active .top-user-btn {
	background: #f0f9ff;
	border-color: #bae6fd;
	color: #0284c7;
}

.top-user-btn .user-caret-icon {
	transition: transform 0.2s ease;
	color: #64748b;
}

.top-user-dropdown-wrap:hover .user-caret-icon,
.top-user-dropdown-wrap.is-active .user-caret-icon {
	transform: rotate(180deg);
	color: #0284c7;
}

.top-user-avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
}

.top-user-dropdown-menu {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	width: 220px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px !important;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
	padding: 6px;
	list-style: none;
	margin: 0;
	z-index: 1000;
	
	/* Smooth visibility & hover grace period */
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	transition-delay: 0.18s; /* Giữ menu 0.18s khi chuột rời khỏi để không biến mất đột ngột */
}

/* Cầu nối vô hình (Invisible Bridge) ngăn mất hover giữa nút và menu */
.top-user-dropdown-menu::before {
	content: '';
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 14px;
	background: transparent;
	display: block;
}

/* Hiển thị khi hover hoặc khi được click (is-active) */
.top-user-dropdown-wrap:hover .top-user-dropdown-menu,
.top-user-dropdown-wrap.is-active .top-user-dropdown-menu,
.top-user-dropdown-menu.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	transition-delay: 0s; /* Mở ngay lập tức */
}

.top-user-dropdown-item {
	margin: 0;
	padding: 0;
}

.top-user-dropdown-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: #334155;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.15s ease;
}

.top-user-dropdown-link:hover {
	background: #f0f9ff;
	color: #0284c7;
	padding-left: 14px;
}

.top-user-dropdown-link svg {
	flex-shrink: 0;
}

.top-user-dropdown-link.logout-link {
	color: #ef4444;
	border-top: 1px solid #f1f5f9;
	margin-top: 4px;
	border-radius: 0 0 6px 6px;
}

.top-user-dropdown-link.logout-link:hover {
	background: #fef2f2;
	color: #dc2626;
	padding-left: 14px;
}


/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */
/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
	.account-main-layout {
		padding: 20px 0 50px;
	}

	.account-main-layout .container {
		padding: 0 16px;
	}

	.dentaluck-myaccount-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.dentaluck-account-nav-sidebar {
		padding: 18px 16px;
	}

	.account-user-card {
		padding-bottom: 14px;
	}

	/* Responsive app-style 2-column menu grid on tablets */
	.account-menu-list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.account-menu-link {
		padding: 10px 12px;
		font-size: 13.5px;
		background: #f8fafc;
		border: 1px solid #f1f5f9;
		border-radius: 6px;
	}

	.account-menu-link .menu-arrow {
		display: none;
	}

	.sidebar-help-card {
		display: none;
	}

	.dentaluck-myaccount-main {
		padding: 22px 20px;
	}

	.dashboard-welcome-banner {
		padding: 22px 20px;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.welcome-illus-side {
		display: none;
	}

	.dashboard-stats-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	.stat-card {
		padding: 14px 12px;
		gap: 10px;
	}

	.stat-icon {
		width: 40px;
		height: 40px;
	}

	.stat-value {
		font-size: 19px;
	}

	.stat-label {
		font-size: 12px;
	}

	.stat-arrow {
		display: none;
	}
}

@media (max-width: 640px) {
	.account-main-layout {
		padding: 14px 0 40px;
	}

	.account-main-layout .container {
		padding: 0 12px;
	}

	.dentaluck-account-nav-sidebar {
		padding: 14px 12px;
	}

	.account-user-card {
		gap: 10px;
		padding-bottom: 12px;
	}

	.user-avatar-img {
		width: 46px;
		height: 46px;
	}

	.user-name {
		font-size: 14.5px;
	}

	.user-email {
		font-size: 11.5px;
	}

	.account-menu-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 6px;
	}

	.account-menu-link {
		padding: 9px 8px;
		font-size: 12px;
		gap: 6px;
	}

	.account-menu-link .menu-icon svg {
		width: 17px;
		height: 17px;
	}

	.dentaluck-myaccount-main {
		padding: 16px 14px;
	}

	.dashboard-welcome-banner {
		padding: 16px 14px;
	}

	.welcome-heading {
		font-size: 18px;
	}

	.welcome-desc {
		font-size: 13px;
		margin-bottom: 14px;
	}

	.welcome-actions {
		flex-direction: column;
		width: 100%;
		gap: 8px;
	}

	.btn-dashboard-primary,
	.btn-dashboard-secondary {
		width: 100%;
		justify-content: center;
		text-align: center;
		box-sizing: border-box;
		font-size: 13.5px;
		padding: 9px 14px;
	}

	.dashboard-stats-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.stat-card {
		padding: 12px 14px;
		gap: 12px;
	}

	.stat-arrow {
		display: block;
	}

	.recent-orders-table {
		font-size: 12.5px;
	}

	.recent-orders-table th,
	.recent-orders-table td {
		padding: 8px 10px;
	}

	.dentaluck-auth-container {
		padding: 24px 16px;
	}

	.auth-title {
		font-size: 20px;
	}

	.wishlist-items-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.wishlist-card {
		padding: 10px;
		gap: 8px;
	}

	.wishlist-card-title {
		font-size: 12.5px;
	}

	.btn-wishlist-cart {
		font-size: 11px;
		padding: 6px 4px;
	}
}

@media (max-width: 380px) {
	.account-menu-list {
		grid-template-columns: 1fr;
	}

	.wishlist-items-grid {
		grid-template-columns: 1fr;
	}
}
