/* Reuses the active theme's CSS variables (--purple, --gradient, etc.)
   where available so these pages blend in without shipping a parallel
   design system; falls back to sane defaults if a variable is missing. */

.bnmcgl-ms-auth-card {
	max-width: 440px;
	margin: 40px auto;
	padding: 36px;
	border-radius: var(--radius-lg, 16px);
	box-shadow: var(--shadow-card, 0 10px 30px rgba(0,0,0,.08));
	background: #fff;
}
.bnmcgl-ms-auth-card h2 { margin: 0 0 6px; font-size: 26px; }
.bnmcgl-ms-auth-sub { color: var(--text-muted, #6b7280); margin-bottom: 20px; font-size: 14px; }
.bnmcgl-ms-auth-card form p { margin-bottom: 14px; }
.bnmcgl-ms-auth-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bnmcgl-ms-auth-card input[type="text"],
.bnmcgl-ms-auth-card input[type="email"],
.bnmcgl-ms-auth-card input[type="tel"],
.bnmcgl-ms-auth-card input[type="password"],
.bnmcgl-ms-auth-card input[type="url"] {
	width: 100%; padding: 11px 14px; border-radius: 10px;
	border: 1px solid var(--border, #e2e4e7); font-size: 14px; font-family: inherit;
}
.bnmcgl-ms-pw-toggle {
	margin-top: 6px; background: none; border: none; color: var(--purple, #5B3DF5);
	font-size: 12px; font-weight: 700; cursor: pointer; padding: 0;
}
.bnmcgl-ms-auth-card button[type="submit"] {
	width: 100%; margin-top: 6px; border: none; cursor: pointer; padding: 12px;
	border-radius: 999px; font-weight: 700; font-size: 15px;
	background: var(--gradient, linear-gradient(90deg,#5B3DF5,#2B6CF6)); color: #fff;
}
.bnmcgl-ms-auth-error {
	background: #FEF2F2; color: #B91C1C; padding: 10px 14px; border-radius: 8px;
	font-size: 13px; margin-bottom: 16px;
}
.bnmcgl-ms-auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted, #6b7280); }
.bnmcgl-ms-auth-switch a { color: var(--purple, #5B3DF5); font-weight: 700; }

/* Mentor registration — benefits panel + payment-gated dashboard card.
   page.php hardcodes an inline max-width:800px on .entry-content which
   left this off-center with a lopsided gap on the right (the same
   "false narrow parent" issue fixed for the dashboard pages); remove
   that cap here too so the grid below can center itself properly. */
body:has(.bnmcgl-ms-mentor-register) .entry-content { max-width: none !important; }
.bnmcgl-ms-mentor-register {
	display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; max-width: 980px; margin: 40px auto; align-items: start;
}
.bnmcgl-ms-mentor-register .bnmcgl-ms-auth-card { margin: 0; max-width: none; }
.bnmcgl-ms-mentor-benefits-card { padding: 32px; border-radius: var(--radius-lg, 16px); box-shadow: var(--shadow-card, 0 10px 30px rgba(0,0,0,.08)); background: #fff; }
.bnmcgl-ms-mentor-benefits-card h2 { margin: 0 0 6px; font-size: 24px; }
.bnmcgl-ms-benefits-list { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bnmcgl-ms-benefits-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.bnmcgl-ms-mentor-price {
	margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: #F5F3FF; color: var(--purple, #5B3DF5);
	font-size: 26px; font-weight: 800; display: flex; align-items: baseline; gap: 8px;
}
.bnmcgl-ms-mentor-price span { font-size: 12px; font-weight: 600; color: var(--text-muted, #6b7280); }

.bnmcgl-ms-billing-toggle { display: flex; gap: 12px; margin: 16px 0 22px; }
.bnmcgl-ms-billing-option {
	flex: 1; position: relative; display: flex; flex-direction: column; gap: 4px;
	border: 2px solid var(--border, #e2e4e7); border-radius: 12px; padding: 12px 14px; cursor: pointer;
	font-size: 13px; transition: border-color .15s ease;
}
.bnmcgl-ms-billing-option input[type="radio"] { position: absolute; top: 12px; right: 12px; margin: 0; }
.bnmcgl-ms-billing-option:has(input:checked) { border-color: var(--purple, #5B3DF5); background: #F5F3FF; }
.bnmcgl-ms-billing-option strong { font-size: 16px; color: var(--purple, #5B3DF5); }
.bnmcgl-ms-billing-save { font-size: 11px; font-weight: 700; color: #047857; background: #D1FAE5; padding: 2px 8px; border-radius: 999px; align-self: flex-start; }

.bnmcgl-ms-mentor-payment-card { max-width: 560px; }
.bnmcgl-ms-mentor-payment-card .bnmcgl-ms-benefits-list { margin: 16px 0 24px; }
.bnmcgl-ms-mentor-payment-card button { width: 100%; }

.bnmcgl-ms-mentor-leaderboard-card { margin-top: 16px; }

@media (max-width: 900px) {
	.bnmcgl-ms-mentor-register { grid-template-columns: 1fr; margin: 24px 20px; }
}

/* Dashboard — go truly full width by removing the theme's container
   cap entirely (rather than just raising it), with generous, equal side
   padding instead of a max-width; tight vertical rhythm. */
body:has(.bnmcgl-ms-dashboard) .container { max-width: 100%; padding: 0 40px; }
body:has(.bnmcgl-ms-dashboard) .entry-content { max-width: none !important; }
.bnmcgl-ms-dashboard { width: 100%; margin-top: -20px; padding-bottom: 50px; box-sizing: border-box; }
.bnmcgl-ms-notice {
	background: #ECFDF5; color: #047857; padding: 10px 16px; border-radius: 10px;
	margin-bottom: 14px; font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.bnmcgl-ms-notice svg { width: 16px; height: 16px; flex-shrink: 0; }

.bnmcgl-ms-dashboard .card {
	background: #fff; border-radius: var(--radius-lg, 16px); box-shadow: var(--shadow-card, 0 10px 30px rgba(0,0,0,.06));
	padding: 20px 22px; margin-bottom: 14px;
}
.bnmcgl-ms-dashboard .card h3 {
	margin: 0 0 16px; font-size: 16px; display: flex; align-items: center; gap: 10px;
}
.bnmcgl-ms-dashboard .card h3 svg { width: 16px; height: 16px; color: var(--purple, #5B3DF5); flex-shrink: 0; }

/* The theme's .entry-content a{color:var(--purple)} rule (the page
   template wraps shortcode output in .entry-content) outranks the plain
   .btn-primary/.btn-outline selectors on specificity, leaving button text
   the same purple as the gradient background it sits on. Re-assert the
   intended button text colors at matching specificity. */
.bnmcgl-ms-dashboard a.btn,
.bnmcgl-ms-mentor-cert-card a.btn { text-decoration: none; }
.bnmcgl-ms-dashboard a.btn-primary,
.bnmcgl-ms-mentor-cert-card a.btn-primary { color: #fff; }
.bnmcgl-ms-dashboard a.btn-outline,
.bnmcgl-ms-mentor-cert-card a.btn-outline { color: var(--purple, #5B3DF5); }

.bnmcgl-ms-icon-circle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; background: #F3F0FF; flex-shrink: 0;
}
.bnmcgl-ms-icon-circle-lg {
	width: 56px; height: 56px; margin-bottom: 12px;
}
.bnmcgl-ms-icon-circle-lg svg { width: 26px; height: 26px; }
.bnmcgl-ms-emoji-circle { font-size: 18px; line-height: 1; }
.bnmcgl-ms-icon-circle-lg.bnmcgl-ms-emoji-circle { font-size: 28px; }

.bnmcgl-ms-role-badge {
	display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px;
	font-size: 11.5px; font-weight: 700; margin-left: 8px; vertical-align: middle;
}
.bnmcgl-ms-role-learner { background: #DBEAFE; color: #1E40AF; }
.bnmcgl-ms-role-mentor { background: #FCE7F3; color: #9D174D; }

.bnmcgl-ms-empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 10px; }
.bnmcgl-ms-empty-state p { margin: 0; }

.bnmcgl-ms-dropzone {
	display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
	border: 2px dashed var(--border, #e2e4e7); border-radius: 12px; padding: 28px 16px;
	margin-bottom: 14px; cursor: pointer; background: #FAFAFD;
}
.bnmcgl-ms-dropzone svg { width: 30px; height: 30px; color: var(--purple, #5B3DF5); }
.bnmcgl-ms-dropzone span { font-size: 13px; color: var(--text-muted, #6b7280); }
.bnmcgl-ms-dashboard button[type="submit"] svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }

.bnmcgl-ms-badge-list { display: flex; gap: 8px; flex-wrap: wrap; }
.bnmcgl-ms-badge {
	background: #FEF3C7; color: #92400E; padding: 7px 13px; border-radius: 999px;
	font-size: 12.5px; font-weight: 700;
}

.bnmcgl-ms-program-row {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 12px 0; border-bottom: 1px solid var(--border, #f0f0f1); flex-wrap: wrap;
}
.bnmcgl-ms-program-row:last-child { border-bottom: none; }
.bnmcgl-ms-program-row > div:first-child { flex: 1 1 200px; min-width: 0; }
.bnmcgl-ms-meta { font-size: 12px; color: var(--text-muted, #6b7280); }
.bnmcgl-ms-mentor-cell { display: flex; align-items: center; gap: 10px; font-size: 13px; flex: 1 1 200px; min-width: 0; }
.bnmcgl-ms-mentor-cell img { border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.bnmcgl-ms-dashboard img.avatar { max-width: none; flex-shrink: 0; }
.bnmcgl-ms-dashboard img.avatar[width="24"] { width: 24px; height: 24px; }
.bnmcgl-ms-dashboard img.avatar[width="36"] { width: 36px; height: 36px; }
.bnmcgl-ms-dashboard img.avatar[width="44"] { width: 44px; height: 44px; }
.bnmcgl-ms-dashboard img.avatar[width="72"] { width: 72px; height: 72px; }
.bnmcgl-ms-dashboard img.bnmcgl-ms-logo-avatar {
	border-radius: 50%; background: #fff; object-fit: contain; padding: 5px; box-sizing: border-box;
	border: 1px solid var(--border, #e2e4e7);
}
.bnmcgl-ms-program-row .bnmcgl-ms-testimonial-toggle { flex-shrink: 0; margin-left: auto; }
.bnmcgl-ms-certificate-form { flex-shrink: 0; }
.bnmcgl-ms-cert-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 7px 13px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; }
.bnmcgl-ms-cert-status svg { width: 13px; height: 13px; }
.bnmcgl-ms-cert-pending { background: #FEF3C7; color: #92400E; }
.bnmcgl-ms-cert-rejected { background: #FDEAEA; color: #B42318; }
.bnmcgl-ms-mentor-cert-card { background: linear-gradient(135deg,#FFF7E6,#FFFBEF); border: 1px solid #F5E0A8; margin-top: 24px; }
.bnmcgl-ms-mentor-cert-card p { font-size: 13.5px; color: var(--text-muted, #6b7280); margin: 6px 0 14px; }

.bnmcgl-ms-testimonial-toggle { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bnmcgl-ms-testimonial-toggle svg { width: 14px; height: 14px; }
.bnmcgl-ms-testimonial-form {
	background: #FAFAFD; border: 1px solid var(--border, #f0f0f1); border-radius: 12px;
	padding: 16px 18px; margin: 0 0 12px;
}
.bnmcgl-ms-testimonial-form h4 { margin: 0 0 12px; font-size: 14px; }
.bnmcgl-ms-testimonial-form textarea,
.bnmcgl-ms-testimonial-form input,
.bnmcgl-ms-testimonial-form select {
	width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border, #e2e4e7);
	font-family: inherit; font-size: 14px;
}
.bnmcgl-ms-testimonial-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bnmcgl-ms-testimonial-form p { margin-bottom: 12px; }

.bnmcgl-ms-job-list { list-style: none; margin: 0; padding: 0; }
.bnmcgl-ms-job-list li { padding: 9px 0; border-bottom: 1px solid var(--border, #f0f0f1); font-size: 14px; }
.bnmcgl-ms-job-list li:last-child { border-bottom: none; }
.bnmcgl-ms-job-list .bnmcgl-ms-meta { display: block; margin-top: 2px; }

.bnmcgl-ms-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bnmcgl-ms-two-col form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bnmcgl-ms-two-col input[type="file"] { flex: 1; min-width: 160px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border, #e2e4e7); }
.bnmcgl-ms-two-col button { white-space: nowrap; padding: 9px 16px; border-radius: 999px; border: none; cursor: pointer; background: var(--gradient, linear-gradient(90deg,#5B3DF5,#2B6CF6)); color: #fff; font-weight: 700; font-size: 13px; }
.bnmcgl-ms-two-col form:has(.bnmcgl-ms-dropzone) { display: block; }
.bnmcgl-ms-two-col form:has(.bnmcgl-ms-dropzone) button { width: auto; padding: 8px 18px; font-size: 13px; }

.bnmcgl-ms-logout { white-space: nowrap; }

.bnmcgl-ms-auth-card-wide { max-width: 680px; }
.bnmcgl-ms-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.bnmcgl-ms-form-grid p { grid-column: span 1; }
.bnmcgl-ms-form-grid select { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border, #e2e4e7); font-size: 14px; font-family: inherit; }
.bnmcgl-ms-form-grid small { color: var(--text-muted, #6b7280); font-weight: 400; }

/* Hero / attention banner */
.bnmcgl-ms-hero {
	background: var(--gradient, linear-gradient(120deg,#5B3DF5,#2B6CF6));
	border-radius: var(--radius-lg, 16px);
	padding: 24px 26px 20px;
	margin-bottom: 14px;
	color: #fff;
	box-shadow: var(--shadow-card, 0 14px 34px rgba(91,61,245,.25));
}
.bnmcgl-ms-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.bnmcgl-ms-hero-id { display: flex; align-items: center; gap: 16px; }
.bnmcgl-ms-hero-id img.avatar { border-radius: 50%; border: 3px solid rgba(255,255,255,.6); background: #fff; object-fit: contain; padding: 8px; box-sizing: border-box; }
.bnmcgl-ms-hero h2 { margin: 0 0 4px; color: #fff; font-size: 23px; }
.bnmcgl-ms-hero-id p { margin: 0; color: rgba(255,255,255,.85); font-size: 13.5px; line-height: 1.6; }
.bnmcgl-ms-hero-email { display: inline-flex; align-items: center; gap: 5px; }
.bnmcgl-ms-hero-email svg { width: 13px; height: 13px; }
.bnmcgl-ms-hero .bnmcgl-ms-logout { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 9px 18px; }

.bnmcgl-ms-stat-grid {
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px;
}
.bnmcgl-ms-stat-tile {
	background: rgba(255,255,255,.14); border-radius: 12px; padding: 12px 8px; text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.bnmcgl-ms-stat-icon svg { width: 18px; height: 18px; opacity: .9; }
.bnmcgl-ms-stat-value { font-size: 21px; font-weight: 800; }
.bnmcgl-ms-stat-label { font-size: 10.5px; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .03em; }

.bnmcgl-ms-badge-list-hero { gap: 8px; margin-bottom: 16px; }
.bnmcgl-ms-badge-list-hero .bnmcgl-ms-badge { background: rgba(255,255,255,.92); color: #4338CA; }
.bnmcgl-ms-badge-list-hero .bnmcgl-ms-badge-leader { background: #FBBF24; color: #78350F; }
.bnmcgl-ms-badge-empty { color: rgba(255,255,255,.8); font-size: 13px; font-style: italic; }

.bnmcgl-ms-quick-log {
	display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.14);
	border-radius: 999px; padding: 6px 8px 6px 16px;
}
.bnmcgl-ms-quick-log-icon svg { width: 18px; height: 18px; color: rgba(255,255,255,.85); }
.bnmcgl-ms-quick-log input[type="text"] {
	flex: 1; background: transparent; border: none; color: #fff; font-size: 14px; padding: 8px 0;
}
.bnmcgl-ms-quick-log input[type="text"]::placeholder { color: rgba(255,255,255,.7); }
.bnmcgl-ms-quick-log input[type="text"]:focus { outline: none; }
.bnmcgl-ms-quick-log button { white-space: nowrap; border: none; cursor: pointer; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 13px; background: #fff; color: var(--purple, #5B3DF5); }

/* Three-column dashboard grid — used twice (Programs/Mentors/Jobs, then
   Referrals/Leaderboard/Reviews) so every row uses the full page width
   evenly instead of one tall sidebar running down the side. */
.bnmcgl-ms-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.bnmcgl-ms-grid-3 .card { margin-bottom: 0; height: 100%; }

.bnmcgl-ms-sidebar-sub { font-size: 13px; color: var(--text-muted, #6b7280); margin: 0 0 12px; }
.bnmcgl-ms-empty-hint { font-size: 13px; color: var(--text-muted, #6b7280); margin: 0; }

.bnmcgl-ms-referral-link { display: flex; gap: 8px; margin-bottom: 12px; }
.bnmcgl-ms-referral-link input { flex: 1; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border, #e2e4e7); font-size: 12.5px; min-width: 0; }
.bnmcgl-ms-referred-list { list-style: none; margin: 0; padding: 0; }
.bnmcgl-ms-referred-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.bnmcgl-ms-referred-list img { border-radius: 50%; }

.bnmcgl-ms-leaderboard-list { list-style: none; margin: 0; padding: 0; }
.bnmcgl-ms-leaderboard-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--border, #f0f0f1); }
.bnmcgl-ms-leaderboard-list li:last-child { border-bottom: none; }
.bnmcgl-ms-leaderboard-list li.is-you { font-weight: 800; color: var(--purple, #5B3DF5); }
.bnmcgl-ms-lb-rank { font-weight: 800; width: 26px; }
.bnmcgl-ms-lb-score { margin-left: auto; color: var(--text-muted, #6b7280); }

.bnmcgl-ms-review-list { list-style: none; margin: 0; padding: 0; }
.bnmcgl-ms-review-list li { padding: 10px 0; border-bottom: 1px solid var(--border, #f0f0f1); }
.bnmcgl-ms-review-list li:last-child { border-bottom: none; }
.bnmcgl-ms-review-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.bnmcgl-ms-review-type { font-size: 11px; color: var(--text-muted, #6b7280); background: #F3F4F6; padding: 2px 8px; border-radius: 999px; }
.bnmcgl-ms-review-list p { font-size: 12.5px; color: var(--text-muted, #6b7280); margin: 4px 0 6px; }
.bnmcgl-ms-review-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.bnmcgl-ms-status-pending { background: #FEF3C7; color: #92400E; }
.bnmcgl-ms-status-publish { background: #D1FAE5; color: #047857; }

.bnmcgl-ms-resume-preview { margin-bottom: 12px; }
.bnmcgl-ms-resume-preview-img { max-width: 100%; border-radius: 10px; border: 1px solid var(--border, #e2e4e7); }
.bnmcgl-ms-resume-preview-frame { width: 100%; height: 320px; border: 1px solid var(--border, #e2e4e7); border-radius: 10px; }
.bnmcgl-ms-resume-file-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; background: #F3F4F6; font-size: 13px; font-weight: 600; text-decoration: none; }
.bnmcgl-ms-resume-file-link svg { width: 16px; height: 16px; color: var(--purple, #5B3DF5); }

.bnmcgl-ms-profile-form p { margin-bottom: 12px; }
.bnmcgl-ms-profile-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bnmcgl-ms-profile-form input,
.bnmcgl-ms-profile-form select { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border, #e2e4e7); font-family: inherit; font-size: 14px; }

@media (max-width: 1100px) {
	.bnmcgl-ms-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.bnmcgl-ms-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.bnmcgl-ms-two-col { grid-template-columns: 1fr; }
	.bnmcgl-ms-program-row { flex-direction: column; align-items: flex-start; }
	.bnmcgl-ms-form-grid { grid-template-columns: 1fr; }
	.bnmcgl-ms-stat-grid { grid-template-columns: repeat(2, 1fr); }
	.bnmcgl-ms-quick-log { flex-wrap: wrap; }
}
