/**
 * Masszőr Praxis Gamifikáció - frontend stílusok
 */

:root {
	--mpg-cyan: #2DB4C3;
	--mpg-cyan-dark: #1B7C88;
	--mpg-magenta: #D2127E;
	--mpg-magenta-dark: #8E0B54;
	--mpg-night: #0F1B2D;
	--mpg-night-mid: #1a2c45;
	--mpg-night-light: #2a3d5c;
	--mpg-gold: #FFD84A;
	--mpg-silver: #C8C8D8;
	--mpg-bronze: #C8884A;
	--mpg-text-light: #F4E9C8;
}

.mpg-card {
	background: #fff;
	border: 1px solid #e0dccc;
	border-radius: 10px;
	padding: 20px;
	margin: 18px 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #2c3338;
	box-shadow: 0 2px 8px rgba(60, 50, 30, 0.06);
}
.mpg-card--login-required {
	background: #f9f7f0;
	color: #5d6e54;
	text-align: center;
	font-style: italic;
}

/* USER PROGRESS CARD */
.mpg-progress-card {
	border-left: 6px solid var(--mpg-rank-color, var(--mpg-cyan));
}
.mpg-progress-card__header {
	display: flex; gap: 18px; align-items: center; margin-bottom: 18px;
}
.mpg-progress-card__badge img {
	width: 90px; height: 90px; object-fit: contain; display: block;
}
.mpg-progress-card__heading { flex: 1; }
.mpg-progress-card__eyebrow {
	font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
	color: var(--mpg-magenta); font-weight: 700; margin-bottom: 4px;
}
.mpg-progress-card__rank {
	margin: 0 0 4px; font-size: 24px;
	color: var(--mpg-rank-color, var(--mpg-cyan));
	font-weight: 700; font-family: Georgia, serif;
}
.mpg-progress-card__desc {
	margin: 0; font-size: 13px; color: #5d5a50; line-height: 1.4;
}
.mpg-progress-card__progress { margin: 16px 0; }
.mpg-progress-card__progress-labels {
	display: flex; justify-content: space-between;
	font-size: 13px; margin-bottom: 6px; color: #5d5a50;
}
.mpg-progress-card__progress-labels strong {
	color: var(--mpg-rank-color, var(--mpg-cyan)); font-size: 16px;
}
.mpg-progress-bar {
	height: 12px; background: #ece8d8; border-radius: 6px; overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.mpg-progress-bar__fill {
	height: 100%;
	background: linear-gradient(90deg, var(--mpg-cyan), var(--mpg-magenta));
	border-radius: 6px;
	transition: width 1.2s ease-out;
}
.mpg-progress-card__stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 10px; margin: 18px 0;
}
.mpg-progress-card__stat {
	background: #f9f7f0; border-radius: 6px; padding: 12px; text-align: center;
}
.mpg-progress-card__stat-num {
	font-size: 22px; font-weight: 700; color: var(--mpg-rank-color, var(--mpg-cyan));
	line-height: 1.1; margin-bottom: 4px;
}
.mpg-progress-card__stat-label {
	font-size: 11px; color: #8a8268; text-transform: uppercase; letter-spacing: 0.4px;
}

/* RANK PROGRESS */
.mpg-rank-progress {
	background: #fff; border: 1px solid #e0dccc; border-radius: 8px;
	padding: 14px 18px; margin: 12px 0;
}
.mpg-rank-progress__labels {
	display: flex; justify-content: space-between; font-weight: 600;
	font-size: 13px; color: var(--mpg-cyan); margin-bottom: 6px;
}
.mpg-rank-progress__bar {
	height: 10px; background: #ece8d8; border-radius: 5px; overflow: hidden;
}
.mpg-rank-progress__fill {
	height: 100%;
	background: linear-gradient(90deg, var(--mpg-cyan), var(--mpg-magenta));
	transition: width 1s ease-out;
}
.mpg-rank-progress__points { font-size: 12px; color: #5d5a50; }

/* BADGE GRID */
.mpg-badges-section { margin-bottom: 28px; }
.mpg-badges-section__title {
	font-size: 16px; color: var(--mpg-cyan); margin: 0 0 12px;
	padding-bottom: 6px; border-bottom: 2px solid #c8b88f;
	font-family: Georgia, serif;
}
.mpg-badges-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px;
}
.mpg-badge {
	background: #fff; border: 1px solid #e0dccc; border-radius: 8px;
	padding: 12px; text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
}
.mpg-badge--earned {
	box-shadow: 0 2px 8px rgba(45, 180, 195, 0.2);
	border-color: var(--mpg-cyan);
}
.mpg-badge--locked { opacity: 0.7; }
.mpg-badge--locked .mpg-badge__name,
.mpg-badge--locked .mpg-badge__desc,
.mpg-badge--locked .mpg-badge__reward {
	color: #aaa;
}
.mpg-badge__placeholder {
	display: inline-flex; width: 70px; height: 70px; border-radius: 50%;
	background: #ece8d8; color: var(--mpg-cyan);
	align-items: center; justify-content: center; font-size: 28px;
	margin-bottom: 8px;
}
.mpg-badge--earned .mpg-badge__placeholder {
	background: var(--mpg-cyan); color: #fff;
}

/* v2.3.2: badge kép URL-ből */
.mpg-badge__image {
	display: block;
	max-width: 110px;
	max-height: 110px;
	width: auto;
	height: auto;
	margin: 0 auto 8px;
	object-fit: contain;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
	transition: transform 0.25s ease;
}

.mpg-badge--earned .mpg-badge__image {
	animation: mpgBadgeShine 2.5s ease-in-out infinite;
}

@keyframes mpgBadgeShine {
	0%, 100% { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15)); transform: scale(1); }
	50%      { filter: drop-shadow(0 4px 12px rgba(45, 180, 195, 0.45)); transform: scale(1.04); }
}

.mpg-badge--earned:hover .mpg-badge__image {
	transform: scale(1.08);
	animation-play-state: paused;
}

/* Locked badge: grayscale + lakat overlay */
.mpg-badge__image-locked {
	position: relative;
	display: inline-block;
	margin-bottom: 8px;
}

.mpg-badge__image-locked .mpg-badge__image {
	filter: grayscale(1) brightness(0.7) contrast(0.85);
	opacity: 0.55;
	margin-bottom: 0;
}

.mpg-badge__lock-overlay {
	position: absolute;
	bottom: 4px;
	right: 4px;
	background: rgba(15, 27, 45, 0.92);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	border: 2px solid #fff;
}
.mpg-badge__name { font-weight: 700; font-size: 13px; color: var(--mpg-night); margin-bottom: 4px; }
.mpg-badge__desc { font-size: 11px; color: #8a8268; line-height: 1.3; margin-bottom: 6px; }
.mpg-badge__reward { font-size: 11px; color: var(--mpg-magenta); font-weight: 700; }

/* LEADERBOARD */
.mpg-leaderboard {
	background: #fff; border: 1px solid #e0dccc; border-radius: 10px; padding: 18px;
}
.mpg-leaderboard__title {
	font-size: 16px; color: var(--mpg-cyan); font-weight: 700; margin-bottom: 12px;
	padding-bottom: 8px; border-bottom: 2px solid #c8b88f; font-family: Georgia, serif;
}
.mpg-leaderboard__list { list-style: none; margin: 0; padding: 0; }
.mpg-leaderboard__item {
	display: flex; align-items: center; gap: 10px; padding: 10px;
	border-radius: 6px; margin-bottom: 4px; transition: background 0.15s;
}
.mpg-leaderboard__item:hover { background: #f9f7f0; }
.mpg-leaderboard__item--me {
	background: rgba(255, 216, 74, 0.15);
	border: 1px solid var(--mpg-gold);
}
.mpg-leaderboard__pos { flex: 0 0 32px; font-weight: 700; color: var(--mpg-magenta); font-size: 16px; }
.mpg-leaderboard__item:nth-child(1) .mpg-leaderboard__pos { color: var(--mpg-gold); font-size: 18px; }
.mpg-leaderboard__name { flex: 1; font-weight: 600; }
.mpg-leaderboard__name small { color: var(--mpg-magenta); font-weight: normal; margin-left: 4px; }
.mpg-leaderboard__rank {
	display: inline-block; padding: 3px 8px; font-size: 11px;
	color: #fff; border-radius: 3px; font-weight: 600;
}
.mpg-leaderboard__points {
	font-weight: 700; color: var(--mpg-cyan); min-width: 90px; text-align: right;
}

/* ACTIVITY LOG */
.mpg-activity-log ul { list-style: none; margin: 0; padding: 0; }
.mpg-activity-log li {
	display: flex; gap: 10px; padding: 8px 0;
	border-bottom: 1px dashed #e0dccc; font-size: 13px;
}
.mpg-activity-log__date { color: #8a8268; flex: 0 0 110px; font-size: 12px; }
.mpg-activity-log__msg { flex: 1; }
.mpg-activity-log__points { color: var(--mpg-cyan); font-weight: 700; }

/* CHEST WIDGET */
.mpg-chests-widget {
	background: linear-gradient(135deg, var(--mpg-night), var(--mpg-night-mid));
	border: 2px solid var(--mpg-gold);
	border-radius: 12px;
	padding: 18px 20px;
	margin: 18px 0;
	color: var(--mpg-text-light);
}
.mpg-chests-widget__title {
	font-size: 16px; font-weight: 700; margin-bottom: 12px;
	color: var(--mpg-gold);
}
.mpg-chests-widget__items {
	display: flex; flex-wrap: wrap; gap: 12px;
}
.mpg-chests-widget__chest {
	background: rgba(0,0,0,0.3); border: 1px solid var(--mpg-cyan);
	border-radius: 8px; padding: 10px 12px;
	cursor: pointer; transition: all 0.2s;
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	color: var(--mpg-text-light); font-family: inherit;
	min-width: 90px;
}
.mpg-chests-widget__chest:hover {
	transform: translateY(-3px); box-shadow: 0 4px 12px rgba(45, 180, 195, 0.4);
}
.mpg-chests-widget__chest img {
	width: 60px; height: 60px; object-fit: contain;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
	animation: mpgChestBob 3s ease-in-out infinite;
}
@keyframes mpgChestBob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-3px); }
}
.mpg-chests-widget__chest-label {
	font-size: 11px; font-weight: 700;
}
.mpg-chests-widget__chest--gold   { border-color: var(--mpg-gold); }
.mpg-chests-widget__chest--silver { border-color: var(--mpg-silver); }
.mpg-chests-widget__chest--bronze { border-color: var(--mpg-bronze); }

/* Pending láda - badge-gel és teljes opacity-vel */
.mpg-chests-widget__chest--pending {
	position: relative;
}
.mpg-chests-widget__chest-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 22px;
	height: 22px;
	background: var(--mpg-magenta);
	color: #fff;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--mpg-night);
	animation: mpgBadgePulse 1.6s ease-in-out infinite;
}
@keyframes mpgBadgePulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.15); }
}

/* Kinyitott láda - halványítva, animáció nélkül */
.mpg-chests-widget__chest--opened {
	opacity: 0.5;
	filter: grayscale(0.3);
}
.mpg-chests-widget__chest--opened img {
	animation: none;
}
.mpg-chests-widget__chest--opened:hover {
	opacity: 0.85;
	filter: grayscale(0);
}

.mpg-chests-widget__title--no-pending {
	color: rgba(244, 233, 200, 0.75);
	font-size: 14px;
}

.mpg-chests-widget__hint {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(244, 233, 200, 0.15);
	font-size: 12px;
	color: rgba(244, 233, 200, 0.7);
	font-style: italic;
}

/* CHEST OPENING DIALOG */
.mpg-chest-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,0.8);
	display: none; align-items: center; justify-content: center; z-index: 100000;
	padding: 20px;
}
.mpg-chest-overlay.is-open { display: flex; animation: mpgFadeIn 0.3s; }
@keyframes mpgFadeIn { from { opacity: 0; } to { opacity: 1; } }
.mpg-chest-dialog {
	background: linear-gradient(180deg, var(--mpg-night-mid), var(--mpg-night));
	border: 3px solid var(--mpg-gold);
	border-radius: 12px;
	padding: 30px; max-width: 480px; width: 100%;
	color: var(--mpg-text-light); position: relative;
	box-shadow: 0 10px 40px rgba(255, 216, 74, 0.4),
	            inset 0 0 80px rgba(255, 216, 74, 0.05);
	animation: mpgDialogPop 0.4s ease-out;
	font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.mpg-chest-dialog.is-silver { border-color: var(--mpg-silver); }
.mpg-chest-dialog.is-bronze { border-color: var(--mpg-bronze); }
@keyframes mpgDialogPop {
	0%   { opacity: 0; transform: scale(0.7); }
	100% { opacity: 1; transform: scale(1); }
}
.mpg-chest-dialog__close {
	position: absolute; top: 12px; right: 14px;
	background: none; border: none; color: var(--mpg-text-light);
	font-size: 28px; cursor: pointer; opacity: 0.6;
	width: 36px; height: 36px;
}
.mpg-chest-dialog__close:hover { opacity: 1; }
.mpg-chest-dialog__icon {
	text-align: center; margin-bottom: 16px;
}
.mpg-chest-dialog__icon img {
	width: 120px; height: 120px; object-fit: contain;
	filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
	animation: mpgChestOpen 0.6s ease-out;
}
@keyframes mpgChestOpen {
	0%   { transform: scale(0) rotate(-30deg); }
	60%  { transform: scale(1.15) rotate(8deg); }
	100% { transform: scale(1) rotate(0); }
}
.mpg-chest-dialog__title {
	text-align: center; font-size: 22px; font-weight: 700;
	color: var(--mpg-gold); margin-bottom: 6px;
	font-family: Georgia, serif;
}
.mpg-chest-dialog.is-silver .mpg-chest-dialog__title { color: var(--mpg-silver); }
.mpg-chest-dialog.is-bronze .mpg-chest-dialog__title { color: var(--mpg-bronze); }
.mpg-chest-dialog__sub {
	text-align: center; font-size: 13px;
	color: rgba(244,233,200,0.7); margin-bottom: 18px;
}
.mpg-chest-dialog__content {
	background: rgba(0,0,0,0.35); border-radius: 6px;
	padding: 18px; line-height: 1.55;
}
.mpg-chest-dialog__type {
	display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
	background: var(--mpg-cyan); color: white; padding: 3px 8px; border-radius: 3px;
	font-weight: 700; margin-bottom: 8px;
}
.mpg-chest-dialog__desc { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.mpg-chest-dialog__code {
	display: flex; gap: 8px; align-items: center;
	background: var(--mpg-night); border: 1px dashed var(--mpg-cyan);
	padding: 12px 14px; border-radius: 4px;
	font-family: 'Courier New', monospace; font-size: 16px; font-weight: 700;
	color: var(--mpg-cyan); letter-spacing: 1px;
}
.mpg-chest-dialog__code button {
	margin-left: auto; background: var(--mpg-cyan); color: white; border: none;
	padding: 5px 12px; border-radius: 3px; cursor: pointer;
	font-size: 11px; font-family: inherit; font-weight: 700;
}
.mpg-chest-dialog__expires { font-size: 11px; color: rgba(244,233,200,0.5); margin-top: 10px; }

@media (max-width: 600px) {
	.mpg-chest-dialog { padding: 22px; }
	.mpg-chest-dialog__icon img { width: 90px; height: 90px; }
	.mpg-chest-dialog__title { font-size: 18px; }
}

/* ================================================================ */
/* MY REWARDS — kincsesláda archívum [mpg_my_rewards]               */
/* ================================================================ */

.mpg-rewards {
	background: linear-gradient(135deg, var(--mpg-night), var(--mpg-night-mid));
	border: 2px solid var(--mpg-cyan);
	border-radius: 12px;
	padding: 22px;
	margin: 20px 0;
	color: var(--mpg-text-light);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mpg-rewards__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(45, 180, 195, 0.3);
}

.mpg-rewards__title {
	margin: 0;
	font-size: 22px;
	font-family: Georgia, serif;
	color: var(--mpg-gold);
	font-weight: 700;
}

.mpg-rewards__stats {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.mpg-rewards__stat {
	font-size: 13px;
	color: rgba(244, 233, 200, 0.85);
}
.mpg-rewards__stat strong {
	color: var(--mpg-text-light);
	font-size: 16px;
}
.mpg-rewards__stat--pending strong {
	color: var(--mpg-magenta);
	animation: mpgBadgePulse 1.6s ease-in-out infinite;
	display: inline-block;
}

.mpg-rewards__empty {
	text-align: center;
	padding: 40px 20px;
	color: rgba(244, 233, 200, 0.7);
	font-style: italic;
}

.mpg-rewards__section {
	margin-top: 18px;
}

.mpg-rewards__section-title {
	margin: 0 0 14px;
	font-size: 16px;
	font-family: Georgia, serif;
	color: var(--mpg-cyan);
	font-weight: 700;
}
.mpg-rewards__section-count {
	color: rgba(244, 233, 200, 0.6);
	font-weight: normal;
	font-size: 13px;
	margin-left: 4px;
}

.mpg-rewards__section--pending {
	background: rgba(255, 216, 74, 0.06);
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 22px;
	border: 1px solid rgba(255, 216, 74, 0.25);
}
.mpg-rewards__section--pending .mpg-rewards__section-title {
	color: var(--mpg-gold);
}

.mpg-rewards__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

.mpg-rewards__card {
	background: rgba(0,0,0,0.35);
	border: 2px solid var(--mpg-gold);
	border-radius: 8px;
	padding: 14px 12px;
	cursor: pointer;
	color: var(--mpg-text-light);
	font-family: inherit;
	transition: all 0.2s;
	text-align: center;
}
.mpg-rewards__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px rgba(255, 216, 74, 0.5);
}
.mpg-rewards__card--silver { border-color: var(--mpg-silver); }
.mpg-rewards__card--bronze { border-color: var(--mpg-bronze); }
.mpg-rewards__card--silver:hover { box-shadow: 0 6px 18px rgba(200, 200, 216, 0.5); }
.mpg-rewards__card--bronze:hover { box-shadow: 0 6px 18px rgba(200, 136, 74, 0.5); }

.mpg-rewards__card-img {
	width: 70px;
	height: 70px;
	object-fit: contain;
	margin-bottom: 6px;
	animation: mpgChestBob 3s ease-in-out infinite;
}

.mpg-rewards__card-title {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 4px;
}

.mpg-rewards__card-cta {
	font-size: 11px;
	color: var(--mpg-gold);
	font-style: italic;
}

/* Kinyitott (archív) láda kártya */
.mpg-rewards__opened {
	display: flex;
	gap: 16px;
	background: rgba(0,0,0,0.25);
	border: 1px solid rgba(45, 180, 195, 0.3);
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 12px;
	transition: all 0.15s;
}
.mpg-rewards__opened:hover {
	border-color: rgba(45, 180, 195, 0.6);
}

.mpg-rewards__opened--gold   { border-left: 4px solid var(--mpg-gold); }
.mpg-rewards__opened--silver { border-left: 4px solid var(--mpg-silver); }
.mpg-rewards__opened--bronze { border-left: 4px solid var(--mpg-bronze); }

.mpg-rewards__opened-icon {
	flex: 0 0 60px;
}
.mpg-rewards__opened-icon img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	opacity: 0.85;
}

.mpg-rewards__opened-content {
	flex: 1;
	min-width: 0;
}

.mpg-rewards__opened-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 11px;
	color: rgba(244, 233, 200, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 4px;
}

.mpg-rewards__opened-chest-label {
	font-weight: 700;
}
.mpg-rewards__opened--gold   .mpg-rewards__opened-chest-label { color: var(--mpg-gold); }
.mpg-rewards__opened--silver .mpg-rewards__opened-chest-label { color: var(--mpg-silver); }
.mpg-rewards__opened--bronze .mpg-rewards__opened-chest-label { color: var(--mpg-bronze); }

.mpg-rewards__opened-date {
	color: rgba(244, 233, 200, 0.5);
}

.mpg-rewards__opened-type {
	font-size: 11px;
	display: inline-block;
	padding: 2px 8px;
	background: var(--mpg-cyan);
	color: #fff;
	border-radius: 3px;
	margin-bottom: 6px;
	font-weight: 600;
}

.mpg-rewards__opened-title {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 4px;
	color: var(--mpg-text-light);
}

.mpg-rewards__opened-desc {
	font-size: 13px;
	line-height: 1.45;
	color: rgba(244, 233, 200, 0.85);
	margin-bottom: 8px;
}

.mpg-rewards__opened-coupon {
	display: flex;
	gap: 8px;
	align-items: center;
	background: var(--mpg-night);
	border: 1px dashed var(--mpg-cyan);
	padding: 10px 12px;
	border-radius: 4px;
	margin-top: 8px;
}

.mpg-rewards__coupon-code {
	font-family: 'Courier New', monospace;
	font-size: 14px;
	font-weight: 700;
	color: var(--mpg-cyan);
	letter-spacing: 1px;
	background: none;
	padding: 0;
}

.mpg-rewards__coupon-copy {
	margin-left: auto;
	background: var(--mpg-cyan);
	color: white;
	border: none;
	padding: 5px 12px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 11px;
	font-family: inherit;
	font-weight: 700;
}

.mpg-rewards__opened-expires {
	font-size: 11px;
	color: rgba(244, 233, 200, 0.5);
	margin-top: 6px;
}

.mpg-rewards__opened-points {
	display: inline-block;
	background: rgba(255, 216, 74, 0.15);
	color: var(--mpg-gold);
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 700;
	margin-top: 6px;
}

@media (max-width: 600px) {
	.mpg-rewards__opened {
		flex-direction: column;
		align-items: flex-start;
	}
	.mpg-rewards__opened-icon { flex: none; }
}

/* ================================================================ */
/* CONTINUE LESSON — [mpg_continue_lesson]                          */
/* ================================================================ */

.mpg-continue {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(135deg, var(--mpg-cyan, #2DB4C3), var(--mpg-magenta, #D2127E));
	color: #fff !important;
	padding: 14px 24px;
	border-radius: 8px;
	text-decoration: none !important;
	font-weight: 700;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	box-shadow: 0 4px 14px rgba(45, 180, 195, 0.4);
	transition: all 0.2s ease;
	max-width: 100%;
}
.mpg-continue:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(210, 18, 126, 0.5);
}

.mpg-continue__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: rgba(255,255,255,0.25);
	border-radius: 50%;
	font-size: 14px;
}

.mpg-continue__text {
	font-size: 14px;
	line-height: 1.3;
}

.mpg-continue__text strong {
	display: block;
	font-size: 16px;
	margin-top: 2px;
}

/* Card variáns */
.mpg-continue--card {
	display: block;
	padding: 20px 24px;
	background: linear-gradient(135deg, var(--mpg-night, #0F1B2D), var(--mpg-night-mid, #1a2c45));
	border: 2px solid var(--mpg-cyan, #2DB4C3);
	color: var(--mpg-text-light, #F4E9C8) !important;
}
.mpg-continue--card:hover {
	border-color: var(--mpg-magenta, #D2127E);
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(210, 18, 126, 0.4);
}
.mpg-continue__label {
	font-size: 12px;
	color: var(--mpg-cyan, #2DB4C3);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 6px;
	font-weight: 600;
}
.mpg-continue__lesson {
	font-size: 18px;
	font-weight: 700;
	font-family: Georgia, serif;
	margin-bottom: 4px;
	color: var(--mpg-text-light, #F4E9C8);
}
.mpg-continue__course {
	font-size: 12px;
	color: rgba(244, 233, 200, 0.7);
}

/* ================================================================ */
/* WEEKLY SUMMARY — [mpg_weekly_summary]                            */
/* ================================================================ */

.mpg-weekly {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 22px 24px;
	margin: 20px 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mpg-weekly__header {
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 12px;
	margin-bottom: 16px;
}

.mpg-weekly__title {
	margin: 0 0 4px;
	font-size: 18px;
	color: var(--mpg-cyan, #2DB4C3);
	font-family: Georgia, serif;
}

.mpg-weekly__sub {
	font-size: 12px;
	color: #888;
	font-style: italic;
}

.mpg-weekly__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.mpg-weekly__stat {
	background: linear-gradient(135deg, rgba(45, 180, 195, 0.06), rgba(210, 18, 126, 0.04));
	border-radius: 8px;
	padding: 14px 12px;
	text-align: center;
	border: 1px solid rgba(45, 180, 195, 0.15);
}

.mpg-weekly__stat-value {
	font-size: 26px;
	font-weight: 700;
	color: var(--mpg-magenta, #D2127E);
	font-family: Georgia, serif;
	line-height: 1.1;
	margin-bottom: 4px;
}

.mpg-weekly__stat-label {
	font-size: 11px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	font-weight: 600;
}

.mpg-weekly__footer {
	font-size: 13px;
	color: #555;
	text-align: center;
	padding-top: 8px;
	border-top: 1px dashed #eee;
}

/* ================================================================ */
/* COLLEAGUES — [mpg_colleagues]                                    */
/* ================================================================ */

.mpg-colleagues {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 24px;
	margin: 20px 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mpg-colleagues--empty {
	text-align: center;
	padding: 30px;
	color: #888;
}

.mpg-colleagues__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 12px;
	margin-bottom: 14px;
}

.mpg-colleagues__title {
	margin: 0;
	font-size: 18px;
	color: var(--mpg-cyan, #2DB4C3);
	font-family: Georgia, serif;
}

.mpg-colleagues__count {
	font-size: 12px;
	color: #888;
	font-style: italic;
}

.mpg-colleagues__table {
	width: 100%;
	border-collapse: collapse;
}

.mpg-colleagues__table thead th {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 700;
	color: #666;
	padding: 8px 6px;
	border-bottom: 2px solid #e5e7eb;
	text-align: left;
}

.mpg-colleagues__table tbody td {
	padding: 10px 6px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}

.mpg-colleagues__table tbody tr:hover {
	background: rgba(45, 180, 195, 0.04);
}

.mpg-colleagues__col-num {
	width: 40px;
	color: #aaa;
	font-weight: 600;
}

.mpg-colleagues__col-name {
	font-weight: 600;
	color: #333;
}

.mpg-colleagues__col-city {
	color: #555;
}

.mpg-colleagues__col-rank {
	width: 180px;
}

.mpg-colleagues__rank-badge {
	display: inline-block;
	color: #fff;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.mpg-colleagues__col-points {
	width: 110px;
	text-align: right;
	font-weight: 700;
	color: var(--mpg-magenta, #D2127E);
	font-family: 'Courier New', monospace;
}

@media (max-width: 600px) {
	.mpg-colleagues__col-city { display: none; }
	.mpg-colleagues__col-num { width: 28px; }
}

/* ================================================================ */
/* POP-UP üzenetek (v2.1.1)                                         */
/* ================================================================ */

.mpg-popup-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	width: 100vw; height: 100vh;
	background: rgba(15, 27, 45, 0.85);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 2147483646;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	animation: mpgPopupFadeIn 0.4s ease-out forwards;
	box-sizing: border-box;
}

@keyframes mpgPopupFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.mpg-popup {
	background: #fff;
	border-radius: 14px;
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	overflow-x: hidden;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,0.4);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	transform: translateY(20px);
	animation: mpgPopupSlideIn 0.4s ease-out 0.1s forwards;
	box-sizing: border-box;
}

@keyframes mpgPopupSlideIn {
	to { transform: translateY(0); }
}

/* X bezáró gomb - INSIDE a popupon belül, hogy mobilon se vágódjon le */
.mpg-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(15, 27, 45, 0.92);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	border: 2px solid rgba(255, 255, 255, 0.4);
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0;
	font-family: Arial, sans-serif;
	z-index: 10;
}

.mpg-popup__close:hover {
	background: var(--mpg-magenta, #D2127E);
	border-color: #fff;
	transform: scale(1.1) rotate(90deg);
	box-shadow: 0 4px 14px rgba(210, 18, 126, 0.6);
}

.mpg-popup__image {
	width: 100%;
	overflow: hidden;
	border-top-left-radius: 14px;
	border-top-right-radius: 14px;
	background: #f0f0f0;
	display: block;
	max-height: 280px;
}

.mpg-popup__image img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 280px;
	object-fit: cover;
	object-position: center;
}

.mpg-popup__body {
	padding: 28px 28px 28px;
}

.mpg-popup__title {
	margin: 0 0 14px;
	font-size: 22px;
	font-weight: 700;
	color: var(--mpg-night, #0F1B2D);
	font-family: Georgia, serif;
	line-height: 1.25;
	padding-right: 40px; /* helyet hagy az X gombnak ha nincs kép */
}

.mpg-popup__content {
	color: #444;
	font-size: 15px;
	line-height: 1.55;
}

.mpg-popup__content p {
	margin: 0 0 12px;
}

.mpg-popup__content p:last-child {
	margin-bottom: 0;
}

.mpg-popup__actions {
	margin-top: 20px;
	text-align: center;
}

.mpg-popup__btn {
	display: inline-block;
	background: linear-gradient(135deg, var(--mpg-cyan, #2DB4C3), var(--mpg-magenta, #D2127E));
	color: #fff !important;
	padding: 12px 32px;
	border-radius: 8px;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 15px;
	box-shadow: 0 4px 14px rgba(45, 180, 195, 0.4);
	transition: all 0.2s ease;
}

.mpg-popup__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(210, 18, 126, 0.5);
}

@media (max-width: 600px) {
	.mpg-popup-overlay { padding: 12px; }
	.mpg-popup__body { padding: 20px; padding-top: 22px; }
	.mpg-popup__title { font-size: 19px; }
	.mpg-popup__content { font-size: 14px; }
	.mpg-popup__close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 20px; }
	.mpg-popup__image { max-height: 200px; }
	.mpg-popup__image img { max-height: 200px; }
}

/* ================================================================ */
/* CHALLENGES — [mpg_challenges] (v2.2.0)                           */
/* ================================================================ */

.mpg-challenges {
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mpg-challenges__header {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e5e7eb;
}

.mpg-challenges__title {
	margin: 0 0 4px;
	font-size: 22px;
	color: var(--mpg-night, #0F1B2D);
	font-family: Georgia, serif;
}

.mpg-challenges__sub {
	font-size: 13px;
	color: #777;
	font-style: italic;
}

.mpg-challenge {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px 22px;
	margin-bottom: 14px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	transition: all 0.2s ease;
}

.mpg-challenge:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.mpg-challenge--done {
	background: linear-gradient(135deg, rgba(45, 180, 195, 0.06), rgba(255, 216, 74, 0.06));
	border-color: rgba(45, 180, 195, 0.3);
}

.mpg-challenge__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.mpg-challenge__type {
	color: #fff;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.mpg-challenge__title {
	margin: 0;
	font-size: 17px;
	color: var(--mpg-night, #0F1B2D);
	font-family: Georgia, serif;
	flex: 1;
	min-width: 180px;
}

.mpg-challenge__days {
	font-size: 12px;
	color: #888;
	white-space: nowrap;
}

.mpg-challenge__days--last {
	color: var(--mpg-magenta, #D2127E);
	font-weight: 700;
	background: rgba(210, 18, 126, 0.1);
	padding: 3px 8px;
	border-radius: 4px;
}

.mpg-challenge__desc {
	margin: 0 0 14px;
	font-size: 13px;
	color: #555;
	font-style: italic;
}

.mpg-challenge__tasks {
	margin: 14px 0;
}

.mpg-challenge__task {
	margin-bottom: 10px;
}

.mpg-challenge__task:last-child {
	margin-bottom: 0;
}

.mpg-challenge__task-label {
	font-size: 13px;
	color: #444;
	margin-bottom: 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.mpg-challenge__task--done .mpg-challenge__task-label {
	color: var(--mpg-cyan, #2DB4C3);
	font-weight: 700;
}

.mpg-challenge__task-progress {
	font-family: 'Courier New', monospace;
	font-size: 12px;
	color: #888;
	background: #f5f5f5;
	padding: 2px 8px;
	border-radius: 10px;
}

.mpg-challenge__task--done .mpg-challenge__task-progress {
	background: rgba(45, 180, 195, 0.15);
	color: var(--mpg-cyan, #2DB4C3);
}

.mpg-challenge__task-bar {
	height: 8px;
	background: #f0f0f0;
	border-radius: 4px;
	overflow: hidden;
}

.mpg-challenge__task-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--mpg-cyan, #2DB4C3), var(--mpg-magenta, #D2127E));
	border-radius: 4px;
	transition: width 0.4s ease;
}

.mpg-challenge__task--done .mpg-challenge__task-bar-fill {
	background: var(--mpg-cyan, #2DB4C3);
}

.mpg-challenge__footer {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed #eee;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.mpg-challenge__reward-label {
	font-size: 12px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.mpg-challenge__reward {
	font-weight: 700;
	color: var(--mpg-magenta, #D2127E);
	font-size: 14px;
}

.mpg-challenge__done-badge {
	margin-left: auto;
	background: var(--mpg-cyan, #2DB4C3);
	color: #fff;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.4px;
}

@media (max-width: 600px) {
	.mpg-challenge { padding: 14px 16px; }
	.mpg-challenge__title { font-size: 16px; }
}

/* ================================================================ */
/* LEARNING PATHS — [mpg_learning_paths] (v2.3.0)                   */
/* ================================================================ */

.mpg-paths {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	margin: 24px 0;
}

.mpg-paths__header {
	margin-bottom: 18px;
}

.mpg-paths__title {
	margin: 0 0 4px;
	font-size: 26px;
	color: var(--mpg-night, #0F1B2D);
	font-family: Georgia, serif;
}

.mpg-paths__sub {
	font-size: 14px;
	color: #666;
	margin: 0;
}

/* TABS */
.mpg-paths__tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 0;
	overflow-x: auto;
	border-bottom: 2px solid #e5e7eb;
	padding-bottom: 0;
}

.mpg-paths__tab {
	background: transparent;
	border: 0;
	padding: 14px 20px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: #666;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	transition: all 0.2s ease;
	font-family: inherit;
}

.mpg-paths__tab:hover {
	color: var(--tab-color, #2DB4C3);
	background: rgba(0,0,0,0.02);
}

.mpg-paths__tab.is-active {
	color: var(--tab-color, #2DB4C3);
	border-bottom-color: var(--tab-color, #2DB4C3);
}

.mpg-paths__tab-icon {
	font-size: 20px;
}

/* PANEL */
.mpg-paths__panel {
	display: none;
	padding: 20px 0;
}

.mpg-paths__panel.is-active {
	display: block;
}

.mpg-paths__panel-head {
	background: linear-gradient(135deg, var(--path-color, #2DB4C3), color-mix(in srgb, var(--path-color, #2DB4C3) 80%, #000));
	color: #fff;
	padding: 24px 26px;
	border-radius: 12px;
	margin-bottom: 22px;
}

.mpg-paths__panel-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-family: Georgia, serif;
}

.mpg-paths__panel-title small {
	display: block;
	font-size: 14px;
	font-weight: 400;
	opacity: 0.85;
	font-family: inherit;
	margin-top: 4px;
}

.mpg-paths__panel-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.95;
}

.mpg-paths__progress {
	margin-top: 18px;
	background: rgba(255,255,255,0.18);
	padding: 14px 16px;
	border-radius: 8px;
}

.mpg-paths__progress-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 13px;
}

.mpg-paths__progress-percent {
	font-weight: 700;
	font-size: 16px;
}

.mpg-paths__progress-bar {
	height: 10px;
	background: rgba(255,255,255,0.25);
	border-radius: 5px;
	overflow: hidden;
}

.mpg-paths__progress-fill {
	height: 100%;
	background: #fff;
	border-radius: 5px;
	transition: width 0.5s ease;
}

/* MODULES */
.mpg-path-module {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-left: 4px solid var(--path-color, #2DB4C3);
	border-radius: 8px;
	padding: 18px 22px;
	margin-bottom: 16px;
}

.mpg-path-module__head {
	margin-bottom: 14px;
}

.mpg-path-module__num {
	display: inline-block;
	background: var(--path-color, #2DB4C3);
	color: #fff;
	padding: 3px 10px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

.mpg-path-module__title {
	margin: 4px 0;
	font-size: 18px;
	color: var(--mpg-night, #0F1B2D);
	font-family: Georgia, serif;
}

.mpg-path-module__hook {
	margin: 6px 0 0;
	font-size: 13px;
	color: #666;
	font-style: italic;
	line-height: 1.4;
}

.mpg-path-module__empty {
	margin: 0;
	color: #aaa;
	font-size: 13px;
}

/* COURSES */
.mpg-path-module__courses {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mpg-path-course {
	margin-bottom: 6px;
}

.mpg-path-course__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background: #fafafa;
	border-radius: 6px;
	text-decoration: none !important;
	color: #333;
	transition: all 0.15s ease;
}

.mpg-path-course__link:hover {
	background: #f0f0f0;
	transform: translateX(2px);
}

.mpg-path-course__icon {
	font-size: 16px;
	min-width: 24px;
	text-align: center;
}

.mpg-path-course__title {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
}

.mpg-path-course__status {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.4px;
	padding: 3px 8px;
	border-radius: 4px;
	background: #eee;
	color: #777;
	white-space: nowrap;
}

/* Status variants */
.mpg-path-course--completed .mpg-path-course__link {
	background: rgba(45, 180, 195, 0.08);
}
.mpg-path-course--completed .mpg-path-course__icon {
	color: var(--mpg-cyan, #2DB4C3);
	font-weight: 700;
}
.mpg-path-course--completed .mpg-path-course__title {
	color: var(--mpg-cyan, #2DB4C3);
}
.mpg-path-course--completed .mpg-path-course__status {
	background: var(--mpg-cyan, #2DB4C3);
	color: #fff;
}

.mpg-path-course--available .mpg-path-course__icon {
	color: var(--path-color, #2DB4C3);
}
.mpg-path-course--available .mpg-path-course__status {
	background: var(--path-color, #2DB4C3);
	color: #fff;
	opacity: 0.85;
}

.mpg-path-course--locked .mpg-path-course__link {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}
.mpg-path-course--locked .mpg-path-course__title {
	color: #888;
}

.mpg-paths__empty {
	background: #f9f9f9;
	padding: 30px;
	text-align: center;
	color: #888;
	border-radius: 8px;
}

@media (max-width: 600px) {
	.mpg-paths__tab { padding: 10px 12px; font-size: 13px; }
	.mpg-paths__tab-label { display: none; }
	.mpg-paths__tab-icon { font-size: 24px; }
	.mpg-paths__tab.is-active .mpg-paths__tab-label { display: inline; }
	.mpg-paths__panel-head { padding: 18px 18px; }
	.mpg-paths__panel-title { font-size: 18px; }
	.mpg-path-module { padding: 14px 16px; }
	.mpg-path-course__status { font-size: 9px; padding: 2px 6px; }
}

/* ================================================================ */
/* SAJÁT TERVEM — [mpg_learning_paths] negyedik fül (v2.4.0)        */
/* ================================================================ */

.mpg-paths__tab--mine {
	border-left: 1px dashed #e5e7eb;
	margin-left: 8px;
	padding-left: 24px;
}

.mpg-paths__panel--mine {
	--path-color: var(--mpg-magenta, #D2127E);
}

.mpg-paths__panel--mine .mpg-paths__panel-head {
	background: linear-gradient(135deg, var(--mpg-magenta, #D2127E), #b00f6a);
}

/* Action sáv */
.mpg-mine-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 18px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.mpg-mine-btn {
	background: var(--mpg-night, #0F1B2D);
	color: #fff;
	border: 0;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.15s ease;
	font-family: inherit;
}

.mpg-mine-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.mpg-mine-btn--save { background: var(--mpg-cyan, #2DB4C3); }
.mpg-mine-btn--danger { background: #d44; }

.mpg-mine-copy-from {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	font-size: 13px;
	color: #555;
}

.mpg-mine-copy-btn {
	color: #fff;
	border: 0;
	padding: 6px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	transition: all 0.15s ease;
	font-family: inherit;
}

.mpg-mine-copy-btn:hover { transform: translateY(-1px); }

/* Beállítások panel */
.mpg-mine-settings {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 18px 22px;
	margin-bottom: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mpg-mine-settings label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #555;
}

.mpg-mine-settings input {
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
}

.mpg-mine-settings input:focus {
	outline: 0;
	border-color: var(--mpg-magenta, #D2127E);
	box-shadow: 0 0 0 3px rgba(210, 18, 126, 0.15);
}

/* Kurzus lista */
.mpg-mine-list {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 18px;
	min-height: 80px;
}

.mpg-mine-empty {
	text-align: center;
	padding: 40px 20px;
	color: #888;
}

.mpg-mine-empty__icon {
	font-size: 48px;
	margin-bottom: 12px;
}

.mpg-mine-empty h4 {
	margin: 0 0 6px;
	color: var(--mpg-magenta, #D2127E);
	font-family: Georgia, serif;
}

.mpg-mine-empty p {
	margin: 0;
	font-size: 14px;
}

/* Egy kurzus item drag-and-drop módon */
.mpg-mine-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #fafafa;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 6px;
	transition: all 0.15s ease;
	cursor: move;
}

.mpg-mine-item:hover {
	background: #f0f0f0;
	transform: translateX(2px);
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.mpg-mine-item.is-dragging {
	opacity: 0.5;
	transform: scale(0.98);
}

.mpg-mine-item__handle {
	color: #aaa;
	font-size: 18px;
	cursor: grab;
	user-select: none;
	letter-spacing: -2px;
}

.mpg-mine-item__handle:active { cursor: grabbing; }

.mpg-mine-item__num {
	min-width: 30px;
	font-weight: 700;
	color: var(--mpg-magenta, #D2127E);
	font-size: 14px;
}

.mpg-mine-item__icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	width: 28px;
	height: 28px;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: #777;
	flex-shrink: 0;
	line-height: 1;
}

.mpg-mine-item--completed .mpg-mine-item__icon {
	color: var(--mpg-cyan, #2DB4C3);
	font-size: 18px;
}

.mpg-mine-item--available .mpg-mine-item__icon {
	color: var(--mpg-magenta, #D2127E);
}

.mpg-mine-item--locked .mpg-mine-item__icon {
	color: #aaa;
	font-size: 14px;
}

.mpg-mine-item__title {
	flex: 1;
	color: #333;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 500;
}

.mpg-mine-item__title:hover { color: var(--mpg-cyan, #2DB4C3); }

.mpg-mine-item__status {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.4px;
	padding: 3px 8px;
	border-radius: 4px;
	background: #eee;
	color: #777;
	white-space: nowrap;
}

.mpg-mine-item--completed .mpg-mine-item__status {
	background: var(--mpg-cyan, #2DB4C3);
	color: #fff;
}

.mpg-mine-item--completed .mpg-mine-item__title {
	color: var(--mpg-cyan, #2DB4C3);
	font-weight: 600;
}

.mpg-mine-item--available .mpg-mine-item__status {
	background: var(--mpg-magenta, #D2127E);
	color: #fff;
	opacity: 0.85;
}

.mpg-mine-item--locked {
	opacity: 0.6;
}

.mpg-mine-item--locked .mpg-mine-item__title {
	color: #999;
	pointer-events: none;
}

.mpg-mine-item__remove {
	background: transparent !important;
	border: 1px solid #e5e7eb !important;
	color: #999 !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px;
	border-radius: 50% !important;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	transition: all 0.15s ease;
	font-family: inherit;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex-shrink: 0;
	box-shadow: none !important;
	text-shadow: none !important;
}

.mpg-mine-item__remove:hover {
	background: #d44 !important;
	color: #fff !important;
	border-color: #d44 !important;
}

/* Available kurzusok lista */
.mpg-mine-available {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 18px 22px;
	margin-bottom: 18px;
}

.mpg-mine-available__title {
	margin: 0 0 12px;
	font-size: 17px;
	color: var(--mpg-night, #0F1B2D);
	font-family: Georgia, serif;
}

.mpg-mine-available__search input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 12px;
	font-family: inherit;
}

.mpg-mine-available__search input:focus {
	outline: 0;
	border-color: var(--mpg-magenta, #D2127E);
	box-shadow: 0 0 0 3px rgba(210, 18, 126, 0.15);
}

.mpg-mine-available__list {
	max-height: 400px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mpg-mine-available__empty {
	text-align: center;
	color: #888;
	padding: 20px;
	margin: 0;
}

.mpg-mine-available-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 6px;
	transition: all 0.15s ease;
}

.mpg-mine-available-item:hover {
	background: #f0f0f0;
}

.mpg-mine-available-item--locked {
	opacity: 0.6;
}

.mpg-mine-available-item__title {
	flex: 1;
	font-size: 13px;
	color: #444;
}

.mpg-mine-available-item__add {
	background: var(--mpg-magenta, #D2127E);
	color: #fff;
	border: 0;
	padding: 5px 12px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3px;
	transition: all 0.15s ease;
	font-family: inherit;
}

.mpg-mine-available-item__add:hover {
	background: #b00f6a;
	transform: scale(1.05);
}

.mpg-mine-available-item__add:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Mobil */
@media (max-width: 600px) {
	.mpg-mine-actions { padding: 10px; }
	.mpg-mine-copy-from { width: 100%; flex-direction: column; align-items: stretch; }
	.mpg-mine-item__handle { display: none; }
	.mpg-mine-item__status { display: none; }
	.mpg-mine-item__num { min-width: 22px; font-size: 13px; }
	.mpg-paths__tab--mine { border-left: 0; margin-left: 0; padding-left: 12px; }
}

/* ================================================================ */
/* Felhasználói Analytics — [mpg_user_analytics] (v2.5.0)          */
/* ================================================================ */

.mpg-user-analytics {
	max-width: 100%;
	margin: 0 auto;
}

.mpg-user-analytics__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.mpg-user-analytics__head h2 {
	margin: 0;
	font-family: Georgia, serif;
	color: var(--mpg-night, #0F1B2D);
}

.mpg-user-analytics__filter select {
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
}

/* KPI kártyák */
.mpg-user-analytics__kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.mpg-user-analytics__kpi {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 22px 18px;
	text-align: center;
	border-top: 4px solid var(--mpg-cyan, #2DB4C3);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mpg-user-analytics__kpi:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.mpg-user-analytics__kpi--points    { border-top-color: var(--mpg-magenta, #D2127E); }
.mpg-user-analytics__kpi--badges    { border-top-color: #FFD84A; }
.mpg-user-analytics__kpi--lessons   { border-top-color: var(--mpg-cyan, #2DB4C3); }
.mpg-user-analytics__kpi--ranking   { border-top-color: #f97316; background: linear-gradient(135deg, #fff8f0, #ffffff); }
.mpg-user-analytics__kpi--motivation { border-top-color: #999; }

.mpg-user-analytics__kpi-icon {
	font-size: 32px;
	margin-bottom: 8px;
}

.mpg-user-analytics__kpi-value {
	font-size: 32px;
	font-weight: 800;
	color: var(--mpg-night, #0F1B2D);
	line-height: 1;
	margin-bottom: 6px;
	font-family: Georgia, serif;
}

.mpg-user-analytics__kpi--motivation .mpg-user-analytics__kpi-value {
	font-size: 22px;
}

.mpg-user-analytics__kpi-label {
	font-size: 13px;
	color: #555;
}

/* Panelek */
.mpg-user-analytics__panel {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 18px;
}

.mpg-user-analytics__panel h3 {
	margin: 0 0 14px;
	font-size: 17px;
	color: var(--mpg-night, #0F1B2D);
	font-family: Georgia, serif;
}

.mpg-user-analytics__period {
	font-size: 13px;
	color: #888;
	font-weight: normal;
	font-family: inherit;
}

/* Streak */
.mpg-user-analytics__streak-info {
	display: flex;
	gap: 24px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.mpg-user-analytics__streak-stat {
	background: #fafafa;
	border-radius: 10px;
	padding: 14px 18px;
	text-align: center;
	flex: 1;
	min-width: 140px;
}

.mpg-user-analytics__streak-num {
	font-size: 28px;
	font-weight: 800;
	color: #f97316;
	font-family: Georgia, serif;
}

.mpg-user-analytics__streak-label {
	font-size: 12px;
	color: #666;
}

/* Heatmap */
.mpg-user-analytics__heatmap-title {
	font-size: 13px;
	color: #666;
	margin: 14px 0 8px;
	font-weight: normal;
}

.mpg-user-analytics__heatmap {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 4px 0;
}

.mpg-user-analytics__heatmap-days {
	display: grid;
	grid-template-rows: repeat(7, 1fr);
	gap: 3px;
	font-size: 10px;
	color: #888;
	padding-top: 2px;
}

.mpg-user-analytics__heatmap-days div {
	height: 14px;
	display: flex;
	align-items: center;
	width: 24px;
}

.mpg-user-analytics__heatmap-grid {
	display: flex;
	gap: 3px;
}

.mpg-user-analytics__heatmap-week {
	display: grid;
	grid-template-rows: repeat(7, 1fr);
	gap: 3px;
}

.mpg-user-analytics__heatmap-cell {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background: #ebedf0;
	cursor: help;
	transition: transform 0.1s ease;
}

.mpg-user-analytics__heatmap-cell:hover {
	transform: scale(1.5);
	border: 1px solid #999;
}

.mpg-user-analytics__heatmap-cell--lvl0 { background: #ebedf0; }
.mpg-user-analytics__heatmap-cell--lvl1 { background: #c8eaef; }
.mpg-user-analytics__heatmap-cell--lvl2 { background: #6dd0dc; }
.mpg-user-analytics__heatmap-cell--lvl3 { background: #2DB4C3; }
.mpg-user-analytics__heatmap-cell--lvl4 { background: #1a7a85; }

.mpg-user-analytics__heatmap-legend {
	display: flex;
	align-items: center;
	gap: 4px;
	justify-content: flex-end;
	margin-top: 10px;
	font-size: 11px;
	color: #888;
}

.mpg-user-analytics__heatmap-legend .mpg-user-analytics__heatmap-cell:hover {
	transform: none;
}

/* Tanulási progress */
.mpg-user-analytics__progress-row {
	display: grid;
	grid-template-columns: 180px 1fr 100px;
	gap: 12px;
	align-items: center;
	margin-bottom: 14px;
}

.mpg-user-analytics__progress-label {
	font-weight: 500;
	color: #333;
}

.mpg-user-analytics__progress-bar {
	height: 14px;
	background: #f0f0f0;
	border-radius: 7px;
	overflow: hidden;
}

.mpg-user-analytics__progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--mpg-cyan, #2DB4C3), #1a7a85);
	transition: width 0.6s ease;
}

.mpg-user-analytics__progress-fill--alt {
	background: linear-gradient(90deg, #FFD84A, #e6b800);
}

.mpg-user-analytics__progress-stat {
	font-weight: 600;
	color: var(--mpg-night, #0F1B2D);
	text-align: right;
}

.mpg-user-analytics__progress-stat small {
	display: block;
	font-weight: normal;
	color: #999;
	font-size: 11px;
}

/* Mobil */
@media (max-width: 600px) {
	.mpg-user-analytics__head { flex-direction: column; align-items: flex-start; }
	.mpg-user-analytics__progress-row {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.mpg-user-analytics__progress-stat { text-align: left; }
	.mpg-user-analytics__heatmap-days div { font-size: 9px; }
}
