/**
 * WCOM MLM — Public styles (modern, colorful, mobile-first).
 */

:root {
	--wcom-primary: #16213e;
	--wcom-primary-2: #1f3a6e;
	--wcom-accent: #f7941e;
	--wcom-primary-dark: #101a30;
	--wcom-bg: #ffffff;
	--wcom-border: #e6e8f0;
	--wcom-muted: #6b7280;
	--wcom-success: #16a34a;
	--wcom-error: #dc2626;
	--wcom-radius: 16px;
	--wcom-shadow: 0 10px 30px rgba(22, 33, 62, .12);
	--wcom-grad: linear-gradient(135deg, #16213e 0%, #1f3a6e 55%, #274b8f 100%);
	--wcom-grad-warm: linear-gradient(135deg, #f7941e 0%, #ff6a00 100%);
}

.wcom-mlm-form-wrap,
.wcom-mlm-dashboard {
	max-width: 1000px;
	margin: 0 auto;
	padding: 8px 4px 40px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
}

.wcom-mlm-form-wrap { max-width: 560px; }

/* Simple border around the whole dashboard */
.wcom-mlm-dashboard {
	background: #fff;
	border: 1px solid var(--wcom-border);
	border-radius: 20px;
	padding: 16px;
	box-shadow: var(--wcom-shadow);
}

/* ---------- Auth cards (register / login / forgot) ---------- */
.wcom-mlm-auth-card {
	background: var(--wcom-bg);
	border: 1px solid var(--wcom-border);
	border-radius: 22px;
	box-shadow: var(--wcom-shadow);
	overflow: hidden;
}
.wcom-mlm-auth-head {
	background: var(--wcom-grad);
	color: #fff;
	text-align: center;
	padding: 34px 26px 30px;
	position: relative;
}
.wcom-mlm-auth-head::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 26px;
	background: var(--wcom-bg);
	border-radius: 22px 22px 0 0;
}
.wcom-mlm-auth-logo {
	width: 62px; height: 62px;
	margin: 0 auto 12px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.18);
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 18px;
	backdrop-filter: blur(4px);
}
.wcom-mlm-auth-head .wcom-mlm-form-title {
	color: #fff;
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.02em;
}
.wcom-mlm-auth-sub { margin: 0; font-size: 14px; opacity: .92; }
.wcom-mlm-auth-body { padding: 26px 28px 30px; }

.wcom-mlm-form-title {
	font-size: 24px;
	margin: 0 0 20px;
	text-align: center;
	font-weight: 800;
	letter-spacing: -.02em;
}

.wcom-mlm-form { display: block; }

.wcom-mlm-field { margin-bottom: 16px; }
.wcom-mlm-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
	color: #374151;
}
.wcom-mlm-field .req { color: var(--wcom-error); }

.wcom-mlm-form input[type="text"],
.wcom-mlm-form input[type="email"],
.wcom-mlm-form input[type="tel"],
.wcom-mlm-form input[type="password"],
.wcom-mlm-form input[type="number"],
.wcom-mlm-form input[type="file"],
.wcom-mlm-form select,
.wcom-mlm-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--wcom-border);
	border-radius: 12px;
	font-size: 15px;
	box-sizing: border-box;
	background: #fbfbfe;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.wcom-mlm-form input:focus,
.wcom-mlm-form select:focus,
.wcom-mlm-form textarea:focus {
	outline: none;
	border-color: var(--wcom-primary-2);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}

.wcom-mlm-row { display: flex; gap: 16px; }
.wcom-mlm-row .wcom-mlm-field { flex: 1; }

.wcom-mlm-hint { font-size: 13px; margin-top: 6px; color: var(--wcom-muted); min-height: 16px; }
.wcom-mlm-hint.valid { color: var(--wcom-success); font-weight: 600; }
.wcom-mlm-hint.invalid { color: var(--wcom-error); font-weight: 600; }

.wcom-mlm-btn {
	display: inline-block;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--wcom-grad);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(79,70,229,.28);
	transition: transform .12s, box-shadow .12s, filter .12s;
}
.wcom-mlm-btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(79,70,229,.34); }
.wcom-mlm-btn:active { transform: translateY(0); }
.wcom-mlm-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.wcom-mlm-btn-primary { width: 100%; }
.wcom-mlm-btn-outline {
	background: transparent;
	color: var(--wcom-primary) !important;
	border-color: var(--wcom-primary);
	box-shadow: none;
	width: auto;
}
.wcom-mlm-btn-outline:hover { background: rgba(109,40,217,.06); }
.wcom-mlm-btn-cta {
	background: var(--wcom-grad-warm);
	box-shadow: 0 8px 20px rgba(236,72,153,.35);
	padding: 14px 26px;
	font-size: 16px;
}
.wcom-mlm-link-btn {
	background: none;
	border: none;
	color: var(--wcom-primary-2);
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
}

.wcom-mlm-form-links {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
	font-size: 14px;
}
.wcom-mlm-form-links a { color: var(--wcom-primary-2); text-decoration: none; font-weight: 600; }
.wcom-mlm-form-links a:hover { text-decoration: underline; }

.wcom-mlm-checkbox label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.wcom-mlm-checkbox input[type="checkbox"] { width: auto; }

.wcom-mlm-alert {
	padding: 12px 14px;
	border-radius: 12px;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 600;
}
.wcom-mlm-alert.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.wcom-mlm-alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.wcom-mlm-notice {
	padding: 18px;
	background: #f5f3ff;
	border: 1px solid #ddd6fe;
	border-radius: 14px;
	text-align: center;
	color: #5b21b6;
	font-weight: 600;
}

/* ---------- Dashboard header ---------- */
.wcom-mlm-dash-header {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	padding: 16px 22px 24px;
	background: var(--wcom-grad);
	color: #fff;
	border-radius: 20px;
	margin-bottom: 18px;
	box-shadow: var(--wcom-shadow);
	position: relative;
	overflow: hidden;
}
.wcom-mlm-dash-header::before {
	content: "";
	position: absolute;
	right: -60px; top: -80px;
	width: 220px; height: 220px;
	background: rgba(255,255,255,.10);
	border-radius: 50%;
}
.wcom-mlm-dash-header::after {
	content: "";
	position: absolute;
	right: 40px; bottom: -110px;
	width: 180px; height: 180px;
	background: rgba(255,255,255,.08);
	border-radius: 50%;
}
.wcom-mlm-dash-topbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	position: relative;
	z-index: 2;
}
.wcom-mlm-logout {
	display: inline-flex;
	align-items: center;
	padding: 5px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.45);
	background: rgba(255,255,255,.12);
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: background .15s;
}
.wcom-mlm-logout:hover { background: rgba(255,255,255,.26); }
.wcom-mlm-dash-user { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.wcom-mlm-dash-user h2 { margin: 0; font-size: 22px; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.wcom-mlm-dash-sub { margin: 6px 0 0; font-size: 13px; opacity: .96; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.wcom-mlm-avatar {
	width: 86px; height: 86px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid rgba(255,255,255,.85);
	box-shadow: 0 4px 12px rgba(0,0,0,.18);
	background: #fff;
}
.wcom-mlm-avatar-lg { width: 120px; height: 120px; border-color: var(--wcom-border); box-shadow: none; margin-bottom: 12px; }

.wcom-mlm-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.wcom-mlm-badge-active { background: #dcfce7; color: #166534; }
.wcom-mlm-badge-inactive { background: #fef3c7; color: #92400e; }
.wcom-mlm-badge-blocked { background: #fee2e2; color: #991b1b; }
.wcom-mlm-badge-pending { background: #e0e7ff; color: #3730a3; }
.wcom-mlm-badge-approved, .wcom-mlm-badge-paid { background: #dcfce7; color: #166534; }
.wcom-mlm-badge-rejected { background: #fee2e2; color: #991b1b; }

.wcom-mlm-badge-btn {
	cursor: pointer;
	border: none;
	font-family: inherit;
	animation: wcom-pulse 2s infinite;
}
.wcom-mlm-badge-btn:hover { filter: brightness(1.05); }
@keyframes wcom-pulse {
	0% { box-shadow: 0 0 0 0 rgba(254,243,199,.7); }
	70% { box-shadow: 0 0 0 10px rgba(254,243,199,0); }
	100% { box-shadow: 0 0 0 0 rgba(254,243,199,0); }
}

.wcom-mlm-badge-rank {
	background: var(--wcom-grad-warm);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(245,158,11,.28);
}

/* Rank & Targets incentive card */
.wcom-mlm-incentive-card { border: 1px solid #f3e8ff; background: linear-gradient(135deg, #fbfaff, #fdf7ff); }
.wcom-mlm-incentive-card h3 { margin: 0 0 6px; font-size: 17px; color: #5b21b6; }
.wcom-mlm-progress { margin: 14px 0; }
.wcom-mlm-progress-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.wcom-mlm-progress-bar { height: 10px; border-radius: 999px; background: #ece9fe; overflow: hidden; }
.wcom-mlm-progress-bar span { display: block; height: 100%; border-radius: 999px; background: var(--wcom-grad); transition: width .5s ease; }

/* Clickable MLM tree */
.wcom-mlm-tree { list-style: none; margin: 0; padding: 0; }
.wcom-mlm-tree ul { list-style: none; margin: 0 0 0 18px; padding-left: 16px; border-left: 2px dashed #ddd6fe; }
.wcom-mlm-tree-node { margin: 6px 0; }
.wcom-mlm-tree-toggle {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border: 1px solid var(--wcom-border); border-radius: 12px;
	background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; color: #1f2937;
	transition: box-shadow .15s, transform .15s;
}
.wcom-mlm-tree-toggle:hover { box-shadow: 0 6px 16px rgba(17,24,39,.10); transform: translateY(-1px); }
.wcom-mlm-tree-toggle img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid #ede9fe; }
.wcom-mlm-tree-toggle .caret { transition: transform .18s; color: var(--wcom-primary); font-size: 11px; }
.wcom-mlm-tree-node.open > .wcom-mlm-tree-toggle .caret { transform: rotate(90deg); }
.wcom-mlm-tree-count { font-size: 12px; color: var(--wcom-muted); font-weight: 500; }
.wcom-mlm-tree-children { display: none; }
.wcom-mlm-tree-node.open > .wcom-mlm-tree-children { display: block; }
.wcom-mlm-tree-detail {
	display: none; margin: 8px 0 8px 42px; padding: 12px 14px;
	border: 1px solid var(--wcom-border); border-radius: 12px; background: #fafaff;
	font-size: 13px;
}
.wcom-mlm-tree-node.show-detail > .wcom-mlm-tree-detail { display: block; }
.wcom-mlm-tree-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.wcom-mlm-tree-detail dt { color: var(--wcom-muted); font-weight: 600; }
.wcom-mlm-tree-detail dd { margin: 0; font-weight: 600; color: #111827; }

/* ---------- Activation panel ---------- */
.wcom-mlm-activation-panel {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border: 1px solid #fde68a;
	border-radius: 18px;
	padding: 20px 22px;
	margin-bottom: 18px;
	box-shadow: var(--wcom-shadow);
}
.wcom-mlm-activation-panel[hidden] { display: none; }
.wcom-mlm-activation-inner { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.wcom-mlm-activation-text { flex: 1; min-width: 260px; }
.wcom-mlm-activation-text h3 { margin: 0 0 8px; font-size: 18px; color: #92400e; }
.wcom-mlm-activation-text p { margin: 0 0 10px; font-size: 14px; color: #78350f; }
.wcom-mlm-activation-steps { margin: 0; padding-left: 20px; font-size: 14px; color: #78350f; }
.wcom-mlm-activation-steps li { margin-bottom: 4px; }
.wcom-mlm-activation-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wcom-mlm-activation-note { font-size: 12px; color: #92400e; }

/* Featured course offer boxes (activation panel) */
.wcom-mlm-course-offers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	width: 100%;
	margin-bottom: 14px;
}
.wcom-mlm-course-offer {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	background: #fff;
	border: 1.5px solid #fcd9a8;
	border-radius: 14px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(247,148,30,.12);
	transition: transform .15s, box-shadow .15s;
}
.wcom-mlm-course-offer:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(247,148,30,.20); }
.wcom-mlm-course-offer-title { font-size: 14px; font-weight: 700; color: #16213e; line-height: 1.35; }
.wcom-mlm-course-offer-price { font-size: 16px; font-weight: 800; color: #c2610c; }

/* My Courses embedded page */
.wcom-mlm-courses-embed-card { margin-bottom: 20px; }
.wcom-mlm-courses-frame {
	width: 100%;
	min-height: 420px;
	border: 1px solid var(--wcom-border);
	border-radius: 12px;
	background: #fff;
	display: block;
}

/* ---------- Tabs ---------- */
.wcom-mlm-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	padding: 6px;
	margin: 0 0 20px;
	background: #f3f4f8;
	border-radius: 14px;
}
.wcom-mlm-tabs li { margin: 0; }
.wcom-mlm-tab {
	display: inline-block;
	padding: 9px 16px;
	text-decoration: none !important;
	color: var(--wcom-muted);
	font-weight: 700;
	font-size: 14px;
	border-radius: 10px;
	transition: background .15s, color .15s;
}
.wcom-mlm-tab:hover { background: #e9e9f2; color: #374151; }
.wcom-mlm-tab.active { color: #fff; background: var(--wcom-grad); box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.wcom-mlm-count {
	background: var(--wcom-error);
	color: #fff;
	border-radius: 999px;
	padding: 1px 7px;
	font-size: 11px;
	margin-left: 4px;
}

.wcom-mlm-panel { display: none; }
.wcom-mlm-panel.active { display: block; animation: wcom-fade .25s ease; }
@keyframes wcom-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wcom-mlm-card {
	background: var(--wcom-bg);
	border: 1px solid var(--wcom-border);
	border-radius: 18px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 4px 16px rgba(17,24,39,.05);
}
.wcom-mlm-card h3 { margin-top: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.wcom-mlm-card-head { display: flex; justify-content: space-between; align-items: center; }
.wcom-mlm-big { font-size: 34px; font-weight: 800; color: var(--wcom-primary); margin: 8px 0; }
.wcom-mlm-muted { color: var(--wcom-muted); font-size: 14px; }

.wcom-mlm-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Hero (Total Income on top) ---------- */
.wcom-mlm-hero {
	display: flex;
	gap: 0;
	background: var(--wcom-grad);
	border-radius: 20px;
	color: #fff;
	margin-bottom: 18px;
	overflow: hidden;
	box-shadow: 0 14px 34px rgba(79,70,229,.30);
	position: relative;
}
.wcom-mlm-hero::before {
	content: "";
	position: absolute;
	left: -70px; bottom: -120px;
	width: 260px; height: 260px;
	background: rgba(255,255,255,.09);
	border-radius: 50%;
}
.wcom-mlm-hero-main {
	flex: 1.2;
	padding: 26px 28px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	position: relative; z-index: 1;
}
.wcom-mlm-hero-main .label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .12em;
	opacity: .9;
	font-weight: 700;
}
.wcom-mlm-hero-main .value {
	font-size: 44px;
	font-weight: 900;
	letter-spacing: -.03em;
	line-height: 1.1;
	text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.wcom-mlm-hero-main .sub { font-size: 13px; opacity: .85; }
.wcom-mlm-hero-side {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr;
	background: rgba(255,255,255,.10);
	backdrop-filter: blur(4px);
	position: relative; z-index: 1;
}
.wcom-mlm-hero-cell {
	padding: 12px 22px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid rgba(255,255,255,.16);
}
.wcom-mlm-hero-cell:last-child { border-bottom: none; }
.wcom-mlm-hero-cell .label { font-size: 12px; opacity: .9; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.wcom-mlm-hero-cell .value { font-size: 18px; font-weight: 800; }

/* ---------- Colorful stat tiles ---------- */
.wcom-mlm-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 20px;
}
.wcom-mlm-stat {
	background: linear-gradient(150deg, var(--wcom-stat-tint, #fff), #fff 72%);
	border: 1px solid var(--wcom-stat-border, var(--wcom-border));
	border-radius: 16px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(17,24,39,.05);
	transition: transform .15s, box-shadow .15s;
}
.wcom-mlm-stat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,24,39,.10); }
.wcom-mlm-stat::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 5px;
	background: var(--wcom-stat-color, var(--wcom-primary));
}
.wcom-mlm-stat .label { font-size: 12px; color: var(--wcom-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.wcom-mlm-stat .value { font-size: 22px; font-weight: 800; color: #111827; }

.wcom-mlm-stat-green  { --wcom-stat-color: #16a34a; --wcom-stat-tint: #f0fdf4; --wcom-stat-border: #bbf7d0; }
.wcom-mlm-stat-green .value  { color: #15803d; }
.wcom-mlm-stat-blue   { --wcom-stat-color: #2563eb; --wcom-stat-tint: #eff6ff; --wcom-stat-border: #bfdbfe; }
.wcom-mlm-stat-blue .value   { color: #1d4ed8; }
.wcom-mlm-stat-orange { --wcom-stat-color: #f7941e; --wcom-stat-tint: #fff7ec; --wcom-stat-border: #fcd9a8; }
.wcom-mlm-stat-orange .value { color: #c2610c; }
.wcom-mlm-stat-purple { --wcom-stat-color: #8b5cf6; --wcom-stat-tint: #f5f3ff; --wcom-stat-border: #ddd6fe; }
.wcom-mlm-stat-purple .value { color: #6d28d9; }
.wcom-mlm-stat-red    { --wcom-stat-color: #ef4444; --wcom-stat-tint: #fef2f2; --wcom-stat-border: #fecaca; }
.wcom-mlm-stat-red .value    { color: #b91c1c; }
.wcom-mlm-stat-teal   { --wcom-stat-color: #14b8a6; --wcom-stat-tint: #f0fdfa; --wcom-stat-border: #99f6e4; }
.wcom-mlm-stat-teal .value   { color: #0f766e; }

/* Top highlight row: box-style cards, Total Income emphasized */
.wcom-mlm-stats-top { grid-template-columns: repeat(4, 1fr); }
.wcom-mlm-stat-hero {
	background: var(--wcom-grad);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 10px 26px rgba(79,70,229,.30);
}
.wcom-mlm-stat-hero::before { display: none; }
.wcom-mlm-stat-hero .label { color: rgba(255,255,255,.88); }
.wcom-mlm-stat-hero .value { color: #fff; font-size: 30px; letter-spacing: -.02em; }
.wcom-mlm-stat-hero .sub { font-size: 12px; color: rgba(255,255,255,.8); }

.wcom-mlm-referral { display: flex; gap: 8px; }
.wcom-mlm-referral input {
	flex: 1;
	padding: 11px 12px;
	border: 1.5px solid var(--wcom-border);
	border-radius: 12px;
	background: #f8f8fc;
	font-size: 14px;
}

.wcom-mlm-team-mini { list-style: none; padding: 0; margin: 0; }
.wcom-mlm-team-mini li {
	display: flex; justify-content: space-between;
	padding: 9px 4px;
	border-bottom: 1px solid var(--wcom-border);
	font-size: 14px;
}
.wcom-mlm-team-mini li:last-child { border-bottom: none; }
.wcom-mlm-team-mini li strong { color: var(--wcom-primary); }

.wcom-mlm-activity-list { list-style: none; padding: 0; margin: 0; }
.wcom-mlm-activity-list li { padding: 10px 0; border-bottom: 1px solid var(--wcom-border); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.wcom-mlm-activity-list li:last-child { border-bottom: none; }
.wcom-mlm-activity-list li em { margin-left: auto; color: var(--wcom-muted); font-size: 12px; font-style: normal; }
.wcom-mlm-activity-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wcom-grad-warm); flex-shrink: 0; }

/* Tables inside dashboard */
.wcom-mlm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wcom-mlm-table th, .wcom-mlm-table td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--wcom-border); }
.wcom-mlm-table th { background: #f6f6fb; font-weight: 800; font-size: 12px; text-transform: uppercase; color: var(--wcom-muted); }
.wcom-mlm-table tbody tr:hover { background: #fafaff; }
.wcom-mlm-table .credit { color: var(--wcom-success); font-weight: 700; }
.wcom-mlm-table .debit { color: var(--wcom-error); font-weight: 700; }

.wcom-mlm-pagination { display: flex; gap: 6px; margin-top: 14px; justify-content: center; }
.wcom-mlm-pagination button { padding: 6px 12px; border: 1px solid var(--wcom-border); background: #fff; border-radius: 8px; cursor: pointer; font-weight: 600; }
.wcom-mlm-pagination button.active { background: var(--wcom-grad); color: #fff; border-color: transparent; }

.wcom-mlm-level-group { margin-bottom: 20px; }
.wcom-mlm-level-title { font-weight: 800; font-size: 15px; margin-bottom: 8px; padding: 9px 14px; background: linear-gradient(90deg, #f3f0ff, #fdf2f8); border-radius: 10px; color: #5b21b6; }
.wcom-mlm-member-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--wcom-border); }
.wcom-mlm-member-row img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #ede9fe; }
.wcom-mlm-member-row .info { flex: 1; }
.wcom-mlm-member-row .info small { color: var(--wcom-muted); display: block; }

.wcom-mlm-course-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.wcom-mlm-course-list li { border: 1px solid var(--wcom-border); border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; transition: transform .15s, box-shadow .15s; }
.wcom-mlm-course-list li:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(17,24,39,.08); }
.wcom-mlm-course-list img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.wcom-mlm-course-list a { font-weight: 700; color: var(--wcom-primary-2); text-decoration: none; }

.wcom-mlm-notif-list { list-style: none; padding: 0; margin: 0; }
.wcom-mlm-notif-list li { padding: 12px 14px; border-left: 4px solid var(--wcom-border); border-bottom: 1px solid var(--wcom-border); border-radius: 0 10px 10px 0; cursor: pointer; }
.wcom-mlm-notif-list li.unread { border-left-color: var(--wcom-primary); background: #f7f5ff; }
.wcom-mlm-notif-list li strong { display: block; font-size: 14px; }
.wcom-mlm-notif-list li span { display: block; font-size: 13px; color: #374151; margin: 2px 0; }
.wcom-mlm-notif-list li em { font-size: 12px; color: var(--wcom-muted); font-style: normal; }

.wcom-mlm-locked {
	padding: 44px 24px;
	text-align: center;
	background: linear-gradient(135deg, #f8f7ff, #fdf2f8);
	border: 1.5px dashed #c7bfff;
	border-radius: 18px;
	color: #5b21b6;
	font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.wcom-mlm-stats-grid { grid-template-columns: repeat(2, 1fr); }
	.wcom-mlm-stats-top { grid-template-columns: repeat(2, 1fr); }
	.wcom-mlm-stat-hero .value { font-size: 26px; }
	.wcom-mlm-hero { flex-direction: column; }
	.wcom-mlm-hero-main { padding: 22px; }
	.wcom-mlm-hero-main .value { font-size: 36px; }
}

@media (max-width: 768px) {
	.wcom-mlm-row, .wcom-mlm-two-col { flex-direction: column; display: block; }
	.wcom-mlm-two-col { display: block; }
	.wcom-mlm-two-col > * { margin-bottom: 20px; }
	.wcom-mlm-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
	.wcom-mlm-tab { white-space: nowrap; padding: 9px 13px; }
	.wcom-mlm-dash-header { flex-direction: column; align-items: stretch; padding: 14px 16px 20px; }
	.wcom-mlm-dash-topbar { justify-content: flex-end; }
	.wcom-mlm-dash-user h2 { font-size: 19px; }
	.wcom-mlm-avatar { width: 64px; height: 64px; }
	.wcom-mlm-dashboard { padding: 10px; border-radius: 16px; }
	.wcom-mlm-table { font-size: 12px; }
	.wcom-mlm-table th, .wcom-mlm-table td { padding: 8px 5px; }
	.wcom-mlm-auth-body { padding: 20px 18px 24px; }
	.wcom-mlm-auth-head { padding: 26px 18px 24px; }
	.wcom-mlm-auth-head .wcom-mlm-form-title { font-size: 22px; }
	.wcom-mlm-activation-inner { flex-direction: column; align-items: stretch; }
	.wcom-mlm-hero-main .value { font-size: 32px; }
	.wcom-mlm-hero-cell { padding: 10px 18px; }
}

@media (max-width: 480px) {
	.wcom-mlm-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.wcom-mlm-stat { padding: 13px 14px; }
	.wcom-mlm-stat .value { font-size: 18px; }
	.wcom-mlm-form-links { flex-direction: column; gap: 8px; }
}

/* Astra mobile off-canvas fix: the drawer used to show up blank first and then
   slide in from the side (a two-step motion). Neutralise the inner panel's slide
   so the menu appears in one clean step. Scoped to Astra's own classes and the
   container's visibility is left to Astra, so the first tap always opens it. */
.ast-mobile-popup-drawer .ast-mobile-popup-inner {
	transform: none !important;
}
.ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
	transform: none !important;
}
