/* =========================================================================
   AstroWay — Celestial Command Center Dashboard
   A complete dashboard UI replacing MasterStudy LMS default layout
   ========================================================================= */

/* --- Reset MasterStudy wrapper constraints --- */
body.aw-lms-dashboard .masterstudy-account {
	display: flex !important;
	max-width: none !important;
	padding: 0 !important;
	gap: 0 !important;
	margin: 0 !important;
}

body.aw-lms-dashboard .masterstudy-account-container {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 !important;
	min-width: 0 !important;
	max-width: none !important;
	padding: 28px 32px !important;
	background: #f4f5fa !important;
}

/* --- Break dashboard out of theme content containers --- */
.aw-dash {
	width: 100vw !important;
	max-width: none !important;
	margin-left: calc(-50vw + 50%) !important;
	position: relative;
}

/* Remove parent constraints when dashboard is present */
body.aw-lms-dashboard {
	--aw-entry-content-width: 100% !important;
}

body.aw-lms-dashboard .entry-content {
	max-width: none !important;
	padding: 0 !important;
}

/* Remove outer container padding on dashboard pages — only main content, not header/footer */
body.aw-lms-dashboard .aw-site-primary > .aw-site-content > .aw-container {
	max-width: none !important;
	padding: 0 !important;
}

body.aw-lms-dashboard .aw-entry__content-wrap {
	max-width: none !important;
}

body.aw-lms-dashboard .aw-site-content {
	margin-top: 0 !important;
}

/* -------------------------------------------------------------------------
   1. Dashboard Shell
   ------------------------------------------------------------------------- */
.aw-dash {
	display: flex;
	min-height: calc(100vh - 80px);
	background: #f4f5fa;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	color: #333;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------------------
   2. Sidebar — inside .aw-dash we style the MasterStudy sidebar
   ------------------------------------------------------------------------- */
.aw-dash > .masterstudy-account-sidebar {
	width: 260px !important;
	flex-shrink: 0 !important;
	background: #1a1a2e !important;
	display: flex !important;
	flex-direction: column !important;
	position: sticky !important;
	top: 0 !important;
	height: 100vh !important;
	overflow-y: auto !important;
	z-index: 100 !important;
	border: none !important;
	box-shadow: none !important;
}

.aw-dash-sidebar {
	width: 260px;
	flex-shrink: 0;
	background: #1a1a2e;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	z-index: 100;
}

/* Scrollbar */
.aw-dash-sidebar::-webkit-scrollbar { width: 4px; }
.aw-dash-sidebar::-webkit-scrollbar-track { background: transparent; }
.aw-dash-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }

/* Profile area */
.aw-dash-profile {
	padding: 28px 24px 20px;
	border-bottom: 1px solid rgba(255,255,255,.06);
}

.aw-dash-profile__row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.aw-dash-profile__avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f5a623 0%, #e8950e 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	color: #1a1a2e;
	flex-shrink: 0;
	text-transform: uppercase;
}

.aw-dash-profile__avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.aw-dash-profile__name {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.aw-dash-profile__role {
	font-size: 11px;
	color: rgba(255,255,255,.4);
	margin-top: 1px;
}

/* Nav */
.aw-dash-nav {
	flex: 1;
	padding: 16px 0;
}

.aw-dash-nav__section {
	padding: 0 24px;
	margin-bottom: 8px;
}

.aw-dash-nav__label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,.25);
	padding: 12px 0 6px;
}

.aw-dash-nav__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 16px;
	margin: 0 -16px;
	border-radius: 8px;
	color: rgba(255,255,255,.55);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.15s ease;
	position: relative;
}

.aw-dash-nav__item:hover {
	color: rgba(255,255,255,.85);
	background: rgba(255,255,255,.04);
}

.aw-dash-nav__item.is-active {
	color: #f5a623;
	background: rgba(245,166,35,.08);
}

.aw-dash-nav__item.is-active::before {
	content: '';
	position: absolute;
	left: -8px;
	top: 6px;
	bottom: 6px;
	width: 3px;
	background: #f5a623;
	border-radius: 0 2px 2px 0;
}

.aw-dash-nav__item i {
	font-family: 'stmlms' !important;
	font-style: normal;
	font-size: 18px;
	width: 20px;
	text-align: center;
	flex-shrink: 0;
}

.aw-dash-nav__item .aw-badge {
	margin-left: auto;
	background: #f5a623;
	color: #1a1a2e;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 7px;
	border-radius: 10px;
	min-width: 18px;
	text-align: center;
}

/* Sidebar footer */
.aw-dash-sidebar__footer {
	padding: 16px 24px;
	border-top: 1px solid rgba(255,255,255,.06);
}

.aw-dash-nav__item--logout {
	color: rgba(255,255,255,.35) !important;
}

.aw-dash-nav__item--logout:hover {
	color: #ef4444 !important;
	background: rgba(239,68,68,.06) !important;
}

/* Sidebar inside .aw-dash uses same dark styles as sub-pages */
.aw-dash > .masterstudy-account-sidebar .masterstudy-account-sidebar__wrapper {
	border: none !important;
	box-shadow: none !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-profile {
	border: none !important;
	box-shadow: none !important;
	padding: 24px !important;
	margin: 0 !important;
	border-bottom: 1px solid rgba(255,255,255,.06) !important;
	background: transparent !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-profile * {
	color: #fff !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-profile a {
	color: rgba(255,255,255,.5) !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu {
	padding: 16px 0 !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu__mode {
	padding: 12px 24px !important;
	margin: 0 !important;
	border-bottom: 1px solid rgba(255,255,255,.06) !important;
	color: rgba(255,255,255,.6) !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu__list-section {
	padding: 0 24px 8px !important;
	margin: 0 !important;
	border-bottom: 1px solid rgba(255,255,255,.06) !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu__list-section:last-child {
	border-bottom: none !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu__list-section-title {
	font-size: 10px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.1em !important;
	color: rgba(255,255,255,.25) !important;
	padding: 12px 0 6px !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu__list-item {
	padding: 9px 16px !important;
	margin: 0 -16px !important;
	border: none !important;
	background: none !important;
	border-radius: 8px !important;
	color: rgba(255,255,255,.55) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu__list-item:hover {
	color: rgba(255,255,255,.85) !important;
	background: rgba(255,255,255,.04) !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu__list-item_active {
	color: #f5a623 !important;
	background: rgba(245,166,35,.08) !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu__list-item i {
	font-family: 'stmlms' !important;
	color: inherit !important;
	opacity: 0.7 !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu__list-item_active i {
	opacity: 1 !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu__list-item-badge {
	background: #f5a623 !important;
	color: #1a1a2e !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu__list-item_logout {
	color: rgba(255,255,255,.35) !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-account-menu__list-item_logout:hover {
	color: #ef4444 !important;
	background: rgba(239,68,68,.06) !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-have-question {
	padding: 16px 24px !important;
	border-top: 1px solid rgba(255,255,255,.06) !important;
}

.aw-dash > .masterstudy-account-sidebar .masterstudy-have-question * {
	color: rgba(255,255,255,.35) !important;
}

/* -------------------------------------------------------------------------
   3. Main content
   ------------------------------------------------------------------------- */
.aw-dash-main {
	flex: 1;
	min-width: 0;
	padding: 28px 32px 48px;
}

/* Welcome header */
.aw-dash-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 28px;
}

.aw-dash-header__greeting {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0;
	line-height: 1.3;
}

.aw-dash-header__sub {
	font-size: 13px;
	color: #999;
	margin-top: 4px;
}

.aw-dash-header__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 500;
	color: #666;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.aw-dash-header__date svg {
	color: #f5a623;
}

/* -------------------------------------------------------------------------
   4. Top row — App Hub + Stats
   ------------------------------------------------------------------------- */
.aw-dash-top {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 20px;
	margin-bottom: 24px;
}

/* App Hub card */
.aw-app-card {
	background: linear-gradient(145deg, #1a1a2e 0%, #16213e 60%, #1e2d4a 100%);
	border-radius: 14px;
	padding: 24px;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
	min-height: 160px;
}

/* Subtle star pattern overlay */
.aw-app-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.15) 0%, transparent 100%),
		radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.1) 0%, transparent 100%),
		radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.08) 0%, transparent 100%),
		radial-gradient(1.5px 1.5px at 80% 60%, rgba(245,166,35,.2) 0%, transparent 100%),
		radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,.06) 0%, transparent 100%);
	pointer-events: none;
}

.aw-app-card__top {
	position: relative;
	z-index: 1;
}

.aw-app-card__label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255,255,255,.4);
	margin-bottom: 6px;
}

.aw-app-card__title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 4px;
}

.aw-app-card__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
}

.aw-app-card__badge {
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.aw-app-card__badge--pro {
	background: #f5a623;
	color: #1a1a2e;
}

.aw-app-card__badge--free {
	background: rgba(255,255,255,.1);
	color: rgba(255,255,255,.5);
}

.aw-app-card__badge--trial {
	background: rgba(245,166,35,.15);
	color: #f5a623;
	border: 1px solid rgba(245,166,35,.25);
}

.aw-app-card__actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
	position: relative;
	z-index: 1;
}

.aw-app-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	background: #f5a623;
	color: #1a1a2e !important;
	border-radius: 8px;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 700;
	transition: all 0.2s;
}

.aw-app-card__cta:hover {
	background: #fbb540;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(245,166,35,.3);
	color: #1a1a2e !important;
}

.aw-app-card__secondary {
	display: inline-flex;
	align-items: center;
	padding: 9px 16px;
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 8px;
	color: rgba(255,255,255,.6) !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 600;
	transition: all 0.2s;
}

.aw-app-card__secondary:hover {
	border-color: #f5a623;
	color: #f5a623 !important;
}

/* Stats grid */
.aw-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 16px;
}

.aw-stat-card {
	background: #fff;
	border-radius: 12px;
	padding: 18px 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.02);
	display: flex;
	align-items: flex-start;
	gap: 14px;
	transition: box-shadow 0.2s, transform 0.15s;
}

.aw-stat-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,.06);
	transform: translateY(-1px);
}

.aw-stat-card__icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.aw-stat-card__icon i {
	font-family: 'stmlms' !important;
	font-style: normal;
	font-size: 20px;
}

.aw-stat-card__icon--courses { background: rgba(245,166,35,.1); color: #f5a623; }
.aw-stat-card__icon--students { background: rgba(59,130,246,.1); color: #3b82f6; }
.aw-stat-card__icon--enrollments { background: rgba(34,197,94,.1); color: #22c55e; }
.aw-stat-card__icon--reviews { background: rgba(168,85,247,.1); color: #a855f7; }

.aw-stat-card__info {
	flex: 1;
	min-width: 0;
}

.aw-stat-card__value {
	font-size: 22px;
	font-weight: 800;
	color: #1a1a2e;
	line-height: 1.1;
}

.aw-stat-card__label {
	font-size: 12px;
	color: #999;
	margin-top: 3px;
}

.aw-stat-card__trend {
	font-size: 11px;
	font-weight: 600;
	margin-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 1px 6px;
	border-radius: 4px;
}

.aw-stat-card__trend--up {
	color: #22c55e;
	background: rgba(34,197,94,.08);
}

.aw-stat-card__trend--down {
	color: #ef4444;
	background: rgba(239,68,68,.08);
}

.aw-stat-card__trend--neutral {
	color: #999;
	background: rgba(153,153,153,.08);
}

/* -------------------------------------------------------------------------
   5. Chart cards
   ------------------------------------------------------------------------- */
.aw-chart-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.02);
	margin-bottom: 24px;
}

.aw-chart-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px 0;
}

.aw-chart-card__title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0;
}

.aw-chart-card__subtitle {
	font-size: 12px;
	color: #999;
	margin-top: 2px;
}

/* Period toggle */
.aw-period-toggle {
	display: flex;
	gap: 4px;
	padding: 3px;
	background: #f4f5fa;
	border-radius: 8px;
}

.aw-period-toggle__btn {
	padding: 5px 12px;
	border: none;
	background: transparent;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	color: #999;
	cursor: pointer;
	transition: all 0.15s;
}

.aw-period-toggle__btn:hover {
	color: #666;
}

.aw-period-toggle__btn.is-active {
	background: #fff;
	color: #1a1a2e;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.aw-chart-card__body {
	padding: 16px 24px 24px;
}

.aw-chart-card__body canvas {
	width: 100% !important;
	max-height: 260px;
}

/* -------------------------------------------------------------------------
   6. Bottom row
   ------------------------------------------------------------------------- */
.aw-dash-bottom {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 20px;
}

/* Course list card */
.aw-course-list {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.02);
}

.aw-course-list__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px 0;
}

.aw-course-list__title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0;
}

.aw-course-list__link {
	font-size: 12px;
	font-weight: 600;
	color: #f5a623 !important;
	text-decoration: none !important;
}

.aw-course-list__link:hover {
	opacity: .7;
}

.aw-course-list__body {
	padding: 16px 24px 24px;
}

.aw-course-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid #f4f5fa;
}

.aw-course-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.aw-course-item__thumb {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: #f4f5fa;
	flex-shrink: 0;
	overflow: hidden;
}

.aw-course-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aw-course-item__info {
	flex: 1;
	min-width: 0;
}

.aw-course-item__name {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	text-decoration: none !important;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.aw-course-item__name:hover {
	color: #f5a623 !important;
}

.aw-course-item__meta {
	font-size: 11px;
	color: #999;
	margin-top: 2px;
}

.aw-course-item__status {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 6px;
	flex-shrink: 0;
}

.aw-course-item__status--published {
	background: rgba(34,197,94,.08);
	color: #22c55e;
}

.aw-course-item__status--draft {
	background: rgba(245,166,35,.08);
	color: #f5a623;
}

/* -------------------------------------------------------------------------
   7. Stagger-in animation
   ------------------------------------------------------------------------- */
@keyframes aw-fade-up {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.aw-dash-main > * {
	animation: aw-fade-up 0.4s ease both;
}

.aw-dash-main > *:nth-child(1) { animation-delay: 0s; }
.aw-dash-main > *:nth-child(2) { animation-delay: 0.06s; }
.aw-dash-main > *:nth-child(3) { animation-delay: 0.12s; }
.aw-dash-main > *:nth-child(4) { animation-delay: 0.18s; }

/* -------------------------------------------------------------------------
   8. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1200px) {
	.aw-dash-top {
		grid-template-columns: 1fr;
	}
	.aw-dash-bottom {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.aw-dash-sidebar {
		display: none;
	}
	.aw-dash-main {
		padding: 20px 16px 32px;
	}
	.aw-stats {
		grid-template-columns: 1fr;
	}
	.aw-app-card__actions {
		flex-direction: column;
	}
}

/* -------------------------------------------------------------------------
   9. Hide elements not needed on dashboard
   ------------------------------------------------------------------------- */

/* Breadcrumb and top spacing on dashboard pages */
body.aw-lms-dashboard .aw-breadcrumbs,
body.aw-lms-dashboard .aw-breadcrumb,
body.aw-lms-dashboard .nm-breadcrumb {
	display: none !important;
}

body.aw-lms-dashboard .aw-site-content {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
}

body.aw-lms-dashboard .aw-main-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.aw-lms-dashboard .aw-entry__wrap {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.aw-lms-dashboard .aw-entry__container,
body.aw-lms-dashboard .aw-entry__content-wrap,
body.aw-lms-dashboard .aw-content-area {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.aw-lms-dashboard .aw-site-primary > .aw-site-content > .aw-container {
	padding-top: 0 !important;
}

body.aw-lms-dashboard .aw-page-header {
	display: none !important;
}

/* Kill theme's entry-content block margins on dashboard elements */
body.aw-lms-dashboard .aw-main-content .entry-content > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.aw-lms-dashboard .aw-site-content {
	margin-top: 0 !important;
}

/* MasterStudy native profile pages (no .aw-dash) — restore top spacing */
body.aw-lms-dashboard:not(:has(.aw-dash)) .aw-site-content {
    padding-top: var(--aw-header-initial-height, 80px) !important;
}

/* Prevent horizontal scrollbar from 100vw on dashboard */
body.aw-lms-dashboard {
    overflow-x: hidden !important;
}

/* WooCommerce upsell/crosslinks widgets below dashboard */
.aw-dash ~ .nm-shop-products-widget,
.aw-dash ~ .woocommerce,
body.aw-lms-dashboard .aw-product-crosslinks,
body.aw-lms-dashboard .nm-shop-products-widget,
body.aw-lms-dashboard .entry-content .nm-shop-products-widget,
body.aw-lms-dashboard .entry-content > .woocommerce,
body.aw-lms-dashboard .entry-content > section {
	display: none !important;
}

/* Hide "Back to profile" link on TYPE B pages (we have sidebar now) */
body.aw-lms-dashboard .aw-lms-back-to-profile,
body.aw-lms-dashboard .masterstudy-sidebar-back {
	display: none !important;
}

/* Hide floating gamification badge in sidebar */
body.aw-lms-dashboard .masterstudy-account-sidebar .stm-lms-user_message_btn__counter,
body.aw-lms-dashboard .masterstudy-account .stm-lms-user_message_btn__counter {
	display: none !important;
}

/* Header dropdown — spacing & underline fix */
.stm_lms_account_dropdown .dropdown .masterstudy-dropdown-menu__list li a {
	text-decoration: none !important;
	padding: 10px 16px !important;
	display: block !important;
}

.stm_lms_account_dropdown .dropdown .masterstudy-dropdown-menu__list li + li {
	border-top: 1px solid rgba(255,255,255,.08);
}

/* -------------------------------------------------------------------------
   10. Hide default MasterStudy sidebar/container ONLY on main dashboard
       (where .aw-dash replaces them). Sub-pages keep their own layout.
   ------------------------------------------------------------------------- */
.aw-dash ~ .masterstudy-account,
.aw-dash + .masterstudy-account {
	display: none !important;
}

/* -------------------------------------------------------------------------
   11. Sub-page styling — match dashboard look on all /profile/* pages
   ------------------------------------------------------------------------- */
body.aw-lms-dashboard .masterstudy-account-sidebar {
	width: 260px !important;
	flex-shrink: 0 !important;
	background: #1a1a2e !important;
	border: none !important;
	box-shadow: none !important;
	min-height: calc(100vh - 80px) !important;
}

body.aw-lms-dashboard .masterstudy-account-sidebar__wrapper {
	border: none !important;
	box-shadow: none !important;
}

/* Profile block in sidebar — dark theme */
body.aw-lms-dashboard .masterstudy-account-sidebar .masterstudy-profile {
	border: none !important;
	box-shadow: none !important;
	padding: 24px !important;
	margin: 0 !important;
	border-bottom: 1px solid rgba(255,255,255,.06) !important;
	background: transparent !important;
}

body.aw-lms-dashboard .masterstudy-account-sidebar .masterstudy-profile * {
	color: #fff !important;
}

body.aw-lms-dashboard .masterstudy-account-sidebar .masterstudy-profile a {
	color: rgba(255,255,255,.5) !important;
}

/* Menu on sub-pages — dark theme */
body.aw-lms-dashboard .masterstudy-account-menu {
	padding: 16px 0 !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__mode {
	padding: 12px 24px !important;
	margin: 0 !important;
	border-bottom: 1px solid rgba(255,255,255,.06) !important;
	color: rgba(255,255,255,.6) !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-section {
	padding: 0 24px 8px !important;
	margin: 0 !important;
	border-bottom: 1px solid rgba(255,255,255,.06) !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-section:last-child {
	border-bottom: none !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-section-title {
	font-size: 10px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.1em !important;
	color: rgba(255,255,255,.25) !important;
	padding: 12px 0 6px !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-item,
body.aw-lms-dashboard .masterstudy-account-menu__list-item .masterstudy-account-menu__list-item-label {
	padding: 9px 16px !important;
	margin: 0 -16px !important;
	border: none !important;
	background: none !important;
	border-radius: 8px !important;
	color: rgba(255,255,255,.55) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	transition: all 0.15s !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-item .masterstudy-account-menu__list-item-label {
	padding: 0 !important;
	margin: 0 !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-item:hover {
	color: rgba(255,255,255,.85) !important;
	background: rgba(255,255,255,.04) !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-item:hover .masterstudy-account-menu__list-item-label,
body.aw-lms-dashboard .masterstudy-account-menu__list-item:hover i {
	color: rgba(255,255,255,.85) !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-item_active {
	color: #f5a623 !important;
	background: rgba(245,166,35,.08) !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-item_active .masterstudy-account-menu__list-item-label,
body.aw-lms-dashboard .masterstudy-account-menu__list-item_active i {
	color: #f5a623 !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-item i {
	font-family: 'stmlms' !important;
	font-style: normal !important;
	font-size: 18px !important;
	width: 20px !important;
	text-align: center !important;
	color: inherit !important;
	opacity: 0.7 !important;
	display: inline-block !important;
	speak: never !important;
	-webkit-font-smoothing: antialiased !important;
	-moz-osx-font-smoothing: grayscale !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-item_active i {
	opacity: 1 !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-item-badge {
	background: #f5a623 !important;
	color: #1a1a2e !important;
	font-size: 10px !important;
	border-radius: 10px !important;
}

/* "Have a question" link */
body.aw-lms-dashboard .masterstudy-have-question {
	padding: 16px 24px !important;
	border-top: 1px solid rgba(255,255,255,.06) !important;
}

body.aw-lms-dashboard .masterstudy-have-question * {
	color: rgba(255,255,255,.35) !important;
}

/* Profile name + have-question label readability */
body.aw-lms-dashboard .masterstudy-account-profile__name {
	color: rgba(255,255,255,.85) !important;
}

body.aw-lms-dashboard .masterstudy-account-have-question__label {
	color: rgba(255,255,255,.85) !important;
}

/* Sidebar back button */
body.aw-lms-dashboard .masterstudy-account-sidebar .masterstudy-sidebar-back {
	color: rgba(255,255,255,.4) !important;
	border-bottom: 1px solid rgba(255,255,255,.06) !important;
}

/* Content container styling already set at top of file */

/* Logout item */
body.aw-lms-dashboard .masterstudy-account-menu__list-item_logout {
	color: rgba(255,255,255,.35) !important;
}

body.aw-lms-dashboard .masterstudy-account-menu__list-item_logout:hover {
	color: #ef4444 !important;
	background: rgba(239,68,68,.06) !important;
}
