/* Popup de conquista */
.mmg-popup-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 320px;
}

.mmg-popup-card {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.18);
	padding: 16px;
	cursor: pointer;
	opacity: 0;
	transform: translateX(30px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	border-left: 4px solid #f5a623;
}

.mmg-popup-card.is-visible {
	opacity: 1;
	transform: translateX(0);
}

.mmg-popup-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mmg-popup-icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.mmg-popup-icon-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	background: #fff6e5;
}

.mmg-popup-eyebrow {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #f5a623;
	font-weight: 700;
	margin: 0 0 2px;
}

.mmg-popup-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	color: #222;
}

.mmg-popup-desc {
	font-size: 13px;
	color: #555;
	margin: 8px 0 0;
}

.mmg-popup-points {
	font-size: 12px;
	font-weight: 700;
	color: #2e8b3d;
	margin: 6px 0 0;
}

@media (max-width: 480px) {
	.mmg-popup-container {
		left: 12px;
		right: 12px;
		top: 12px;
		max-width: none;
	}
}

/* Perfil de gamificação */
.mmg-profile {
	max-width: 700px;
	margin: 20px auto;
	padding: 24px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.mmg-profile-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 15px;
}

.mmg-profile-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.mmg-profile-name {
	margin: 0;
	font-size: 18px;
}

.mmg-profile-level {
	font-size: 13px;
	color: #f5a623;
	font-weight: 700;
	margin: 2px 0 0;
}

.mmg-progress-bar {
	height: 10px;
	border-radius: 5px;
	background: #eee;
	overflow: hidden;
	margin: 6px 0 4px;
}

.mmg-progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #f5a623, #f7c948);
}

.mmg-progress-label {
	font-size: 12px;
	color: #777;
	margin: 0 0 20px;
}

/* Quando embedado dentro de outra página (ex.: Perfil Público da Área de Membros),
   remove o "cartão" próprio pra não duplicar o visual (fica dentro do cartão do outro plugin). */
.mmg-profile.mmg-profile-no-header {
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.mmg-profile-level-standalone {
	font-size: 14px;
	font-weight: 700;
	color: #f5a623;
	margin-top: 0;
}

.mmg-achievements-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 14px;
}

.mmg-achievement-badge {
	text-align: center;
	padding: 12px 8px;
	border-radius: 8px;
	background: #f9f9f9;
}

.mmg-achievement-badge.is-locked {
	opacity: 0.4;
	filter: grayscale(1);
}

.mmg-achievement-badge img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 6px;
}

.mmg-achievement-badge .mmg-badge-fallback {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff6e5;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	margin: 0 auto 6px;
}

.mmg-achievement-badge-title {
	font-size: 12px;
	font-weight: 600;
	color: #333;
}

.mmg-achievements-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.mmg-achievements-section-header h4 {
	margin: 0;
}

.mmg-album-link {
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #2271b1;
}

/* Álbum de conquistas (página dedicada) */
.mmg-album {
	max-width: 800px;
	margin: 20px auto;
	padding: 24px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.mmg-album-header h3 {
	margin: 0 0 4px;
}

.mmg-album-progress-label {
	font-size: 13px;
	color: #777;
	margin: 0 0 8px;
}

.mmg-album-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.mmg-album-card {
	padding: 16px;
	border-radius: 10px;
	background: #f9f9f9;
	text-align: center;
}

.mmg-album-card.is-locked {
	background: #f2f2f2;
}

.mmg-album-card.is-locked img,
.mmg-album-card.is-locked .mmg-badge-fallback {
	opacity: 0.45;
	filter: grayscale(1);
}

.mmg-album-card img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 8px;
}

.mmg-album-card .mmg-badge-fallback {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #fff6e5;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	margin: 0 auto 8px;
}

.mmg-album-card-title {
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #222;
}

.mmg-album-card-desc {
	font-size: 12px;
	color: #666;
	margin: 0 0 8px;
	min-height: 32px;
}

.mmg-album-card-status {
	font-size: 11px;
	font-weight: 600;
	margin: 0;
}

.mmg-status-locked {
	color: #999;
}

.mmg-status-unlocked {
	color: #2e8b3d;
}

.mmg-empty-achievements {
	opacity: 0.6;
	font-style: italic;
}

/* Controles de busca/filtro/paginação (perfil e álbum) */
.mmg-collection-controls {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.mmg-collection-search {
	flex: 1;
	min-width: 160px;
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid rgba(0,0,0,0.15);
	font-size: 0.9em;
}

.mmg-collection-status {
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid rgba(0,0,0,0.15);
	font-size: 0.9em;
}

.mmg-collection-empty {
	opacity: 0.6;
	font-style: italic;
	text-align: center;
	padding: 20px 0;
}

.mmg-collection-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 16px;
}

.mmg-collection-pagination button {
	padding: 6px 14px;
	border-radius: 6px;
	border: 1px solid rgba(0,0,0,0.15);
	background: rgba(0,0,0,0.03);
	cursor: pointer;
	font-size: 0.85em;
}

.mmg-collection-pagination button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.mmg-page-info {
	font-size: 0.8em;
	opacity: 0.7;
}

/* Bloco "Você leu o post?" */
.mmg-read-confirm {
	margin: 30px 0;
	padding: 20px;
	border-radius: 10px;
	background: linear-gradient(135deg, #fff6e5, #fff);
	border: 1px solid rgba(245,166,35,0.3);
	text-align: center;
}

.mmg-read-confirm-text {
	font-size: 1em;
	font-weight: 600;
	margin: 0 0 14px;
}

.mmg-read-confirm-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.mmg-read-confirm-btn {
	padding: 10px 22px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-size: 0.9em;
	font-weight: 600;
}

.mmg-read-confirm-btn.mmg-btn-yes {
	background: #2e8b3d;
	color: #fff;
}

.mmg-read-confirm-btn.mmg-btn-no {
	background: rgba(0,0,0,0.08);
	color: inherit;
}

.mmg-read-confirm-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.mmg-read-confirm-result {
	font-weight: 600;
	margin: 10px 0 0;
}

/* Streak */
.mmg-streak-badge {
	display: inline-block;
	font-size: 0.85em;
	font-weight: 700;
	background: rgba(245,166,35,0.12);
	color: #b5690a;
	padding: 4px 10px;
	border-radius: 999px;
	margin: 0 0 14px;
}

/* Compartilhar */
.mmg-share-row {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.mmg-share-btn {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(0,0,0,0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	text-decoration: none;
	color: inherit;
	border: none;
	cursor: pointer;
}

.mmg-share-btn:hover {
	background: rgba(0,0,0,0.12);
}

.mmg-card-share-toggle {
	display: block;
	margin: 6px auto 0;
	background: none;
	border: none;
	font-size: 0.75em;
	opacity: 0.7;
	cursor: pointer;
	padding: 2px;
}

.mmg-card-share-toggle:hover {
	opacity: 1;
}

.mmg-card-share-panel .mmg-share-row {
	justify-content: center;
	margin-top: 8px;
}

/* Leaderboard público */
.mmg-leaderboard {
	max-width: 500px;
	margin: 20px auto;
	padding: 20px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.mmg-leaderboard-title {
	margin: 0 0 16px;
}

.mmg-leaderboard-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mmg-leaderboard-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
}

.mmg-leaderboard-item.is-you {
	background: rgba(245,166,35,0.1);
}

.mmg-leaderboard-rank {
	font-weight: 700;
	font-size: 0.85em;
	opacity: 0.6;
	width: 28px;
	flex-shrink: 0;
}

.mmg-leaderboard-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.mmg-leaderboard-name {
	flex: 1;
	font-weight: 600;
	font-size: 0.9em;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mmg-leaderboard-name a {
	color: inherit;
	text-decoration: none;
}

.mmg-leaderboard-you-tag {
	font-size: 0.7em;
	font-weight: 700;
	color: #b5690a;
	margin-left: 4px;
}

.mmg-leaderboard-level {
	font-size: 0.75em;
	opacity: 0.6;
	white-space: nowrap;
}

.mmg-leaderboard-points {
	font-size: 0.85em;
	font-weight: 700;
	white-space: nowrap;
}

/* Ícones Lottie: usam os mesmos tamanhos/posições das imagens que substituem */
.mmg-popup-icon.mmg-lottie-mini {
	display: inline-block;
	overflow: hidden;
}

.mmg-achievement-badge .mmg-lottie-mini.mmg-badge-lottie {
	width: 48px;
	height: 48px;
	margin: 0 auto 6px;
	display: block;
}

.mmg-album-card .mmg-lottie-mini.mmg-badge-lottie {
	width: 56px;
	height: 56px;
	margin: 0 auto 8px;
	display: block;
}

.mmg-album-card.is-locked .mmg-lottie-mini.mmg-badge-lottie {
	opacity: 0.45;
	filter: grayscale(1);
}

/* Widget de sidebar — usa tamanhos relativos (em) e "currentColor" de propósito,
   pra herdar a fonte, tamanho de texto e cor do tema em vez de impor os nossos. */
.mmg-widget-achievements {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: inherit;
}

.mmg-widget-item {
	display: flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.7em 0;
	border-bottom: 1px solid currentColor;
	border-bottom-color: rgba(0,0,0,0.08);
}

.mmg-widget-item:last-child {
	border-bottom: none;
}

.mmg-widget-item-icon {
	width: 2.4em;
	height: 2.4em;
	flex-shrink: 0;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.05);
}

.mmg-widget-item.is-locked .mmg-widget-item-icon {
	opacity: 0.5;
	filter: grayscale(1);
}

.mmg-widget-item-icon img,
.mmg-widget-item-icon .mmg-lottie-mini {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mmg-widget-item-fallback {
	font-size: 1.1em;
}

.mmg-widget-item-text {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	min-width: 0;
}

.mmg-widget-item-title {
	font-size: 1em;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: inherit;
}

.mmg-widget-item-status {
	font-size: 0.8em;
	opacity: 0.7;
	color: inherit;
}

.mmg-widget-item-status.mmg-status-done {
	opacity: 1;
	color: #2e8b3d; /* verde de "sucesso" mantido de propósito — é informação, não decoração */
	font-weight: 600;
}

/* Widget dentro do Elementor — sem font-size/cor fixos no título de propósito,
   assim ele herda o estilo de título (h3) que o tema já define. */
.mmg-elementor-widget .mmg-widget-title {
	margin: 0 0 0.6em;
}

.mmg-widget-achievements-preview {
	padding: 1.4em;
	text-align: center;
	background: rgba(0,0,0,0.04);
	border-radius: 8px;
	opacity: 0.7;
}

.mmg-widget-achievements-preview .mmg-widget-item-fallback {
	font-size: 1.8em;
	margin-bottom: 0.4em;
}

/* ====== Popup MODAL de conquista (Gamificação → Configurações) ====== */
.mmg-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	background: rgba(10, 14, 20, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.mmg-modal-overlay.is-visible {
	opacity: 1;
}

.mmg-modal-card {
	position: relative;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.35);
	max-width: 400px;
	width: 100%;
	padding: 36px 28px 28px;
	text-align: center;
	transform: translateY(16px) scale(0.96);
	transition: transform 0.25s ease;
	overflow: hidden;
}

.mmg-modal-overlay.is-visible .mmg-modal-card {
	transform: translateY(0) scale(1);
}

.mmg-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #9aa2ac;
	z-index: 2;
}

.mmg-modal-close:hover {
	color: #333;
}

.mmg-modal-icon-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.mmg-modal-icon-wrap .mmg-popup-icon {
	width: 84px;
	height: 84px;
	font-size: 44px;
}

.mmg-modal-title {
	margin: 4px 0 0;
	font-size: 22px;
	color: #1c2430;
}

.mmg-modal-desc {
	font-size: 14px;
	color: #55606c;
	margin: 10px 0 0;
}

.mmg-modal-points {
	font-size: 15px;
	font-weight: 800;
	color: #2e8b3d;
	margin: 12px 0 0;
}

.mmg-modal-card .mmg-share-row {
	justify-content: center;
	margin-top: 14px;
}

.mmg-btn-continue {
	margin-top: 18px;
	background: linear-gradient(135deg, #f5a623, #e8851c);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 13px 30px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mmg-btn-continue:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
}

/* Confete do modal */
.mmg-modal-confetti {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.mmg-confetti {
	position: absolute;
	top: -12px;
	width: 8px;
	height: 12px;
	border-radius: 2px;
	opacity: 0;
	animation: mmg-confetti-fall 2.4s ease-in forwards;
}

.mmg-confetti-0 { background: #f5a623; }
.mmg-confetti-1 { background: #2e8b3d; }
.mmg-confetti-2 { background: #2271b1; }
.mmg-confetti-3 { background: #d63384; }
.mmg-confetti-4 { background: #6f42c1; }
.mmg-confetti-5 { background: #fd7e14; }
.mmg-confetti-6 { background: #20c997; }

@keyframes mmg-confetti-fall {
	0%   { opacity: 1; transform: translateY(0) rotate(0deg); }
	100% { opacity: 0; transform: translateY(340px) rotate(320deg); }
}

/* ====== Toast pra visitante não logado (conquista "trancada") ====== */
.mmg-popup-guest {
	border-left-color: #8993a0;
}

.mmg-popup-guest .mmg-popup-eyebrow {
	color: #8993a0;
}

.mmg-popup-icon-locked {
	background: #eef0f3;
}

.mmg-popup-guest-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.mmg-popup-guest-btn {
	flex: 1;
	text-align: center;
	background: #2271b1;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 8px;
	padding: 9px 10px;
	font-size: 13px;
	font-weight: 700;
}

.mmg-popup-guest-btn-alt {
	background: #eef2f7;
	color: #2271b1 !important;
}

/* ====== Dock flutuante (Quiz / Flashcards / Conquista) ====== */
.mmg-dock {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 999990; /* abaixo dos popups de conquista (999999) */
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

/* Modo "somente no celular" (Gamificação → Configurações) */
@media (min-width: 783px) {
	.mmg-dock-mobile-only {
		display: none;
	}
}

.mmg-dock-btn {
	display: flex;
	align-items: center;
	gap: 0;
	border: none;
	cursor: pointer;
	background: #fff;
	color: #1c2430;
	border-radius: 999px;
	height: 48px;
	padding: 0 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	opacity: 0;
	transform: translateX(20px);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	overflow: hidden;
	white-space: nowrap;
}

.mmg-dock-btn.is-entering {
	animation: mmg-dock-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes mmg-dock-in {
	from { opacity: 0; transform: translateX(24px) scale(0.8); }
	to   { opacity: 1; transform: translateX(0) scale(1); }
}

@media (hover: hover) {
	.mmg-dock-btn:hover {
		box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
		transform: translateY(-2px);
	}
}

/* Nunca escurecer: trava o fundo branco em TODOS os estados, acima de
   qualquer estilo de button:active/focus que o tema tenha, e remove o
   realce cinza de toque dos navegadores mobile. */
.mmg-dock .mmg-dock-btn,
.mmg-dock .mmg-dock-btn:hover,
.mmg-dock .mmg-dock-btn:focus,
.mmg-dock .mmg-dock-btn:active {
	background: #fff;
	color: #1c2430;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}

/* Acessibilidade: quem navega por teclado ainda enxerga o foco (anel suave). */
.mmg-dock .mmg-dock-btn:focus-visible {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(245, 166, 35, 0.5);
}

.mmg-dock-icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

/* O nome ("Quiz", "Flashcards"...) entra e sai deslizando via max-width. */
.mmg-dock-label {
	max-width: 0;
	opacity: 0;
	margin-left: 0;
	transition: max-width 0.35s ease, opacity 0.3s ease, margin-left 0.35s ease;
}

.mmg-dock-btn.is-expanded .mmg-dock-label {
	max-width: 130px;
	opacity: 1;
	margin-left: 8px;
}

@media (hover: hover) {
	.mmg-dock-btn:hover .mmg-dock-label {
		max-width: 130px;
		opacity: 1;
		margin-left: 8px;
	}
}

.mmg-dock-btn:focus-visible .mmg-dock-label {
	max-width: 130px;
	opacity: 1;
	margin-left: 8px;
}

/* Pulso de destaque na seção quando o botão rola até ela */
.mmg-dock-target-pulse {
	animation: mmg-dock-pulse 1.3s ease;
	border-radius: 10px;
}

@keyframes mmg-dock-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.85); }
	45%  { box-shadow: 0 0 0 7px rgba(245, 166, 35, 0.25); }
	100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

@media (max-width: 480px) {
	.mmg-dock {
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	}

	.mmg-dock-btn {
		height: 46px;
	}
}

/* ====================================================================
 * CARTÕES DE SEÇÃO — quiz, conquistas (mobile) e comentários viram
 * retângulos separados do texto do blog, no MESMO padrão visual dos
 * flashcards. Usa as variáveis --fc-* : com o plugin de Flashcards
 * ativo, elas trazem as cores do tema do site (ou as fixadas pelo
 * admin em Flashcards → Aparência); sem ele, caem nos padrões abaixo.
 * ================================================================== */
.mmg-section-card {
	background: var(--fc-surface, #fff);
	border-radius: calc(var(--fc-radius, 10px) + 4px);
	box-shadow: var(--fc-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
	padding: 22px;
	margin: 28px 0;
	color: var(--fc-text, inherit);
	font-family: inherit;
}

h2.mmg-section-title,
h3.mmg-section-title,
.mmg-section-title {
	text-align: center;
	margin: 0 0 16px;
	font-size: 1.3em;
	line-height: 1.3;
	color: inherit;
}

/* Comentários da área de membros: mesmo retângulo padronizado. */
.mm-comments-block {
	background: var(--fc-surface, #fff);
	border-radius: calc(var(--fc-radius, 10px) + 4px);
	box-shadow: var(--fc-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
	padding: 22px;
	margin: 28px 0;
}

/* Bloco da conquista ("Você leu o post?"): alinhado ao padrão, mantendo
   o toque âmbar que o diferencia como recompensa. */
.mmg-read-confirm {
	margin: 28px 0;
	padding: 22px;
	border-radius: calc(var(--fc-radius, 10px) + 4px);
	background: var(--fc-surface, #fff);
	border: 1px solid rgba(245, 166, 35, 0.35);
	box-shadow: var(--fc-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
	text-align: center;
}

/* --------------------------------------------------------------------
 * Conquistas no MOBILE: no desktop a sidebar já mostra o widget, então
 * este cartão só existe em telas pequenas (o breakpoint 783px segue o
 * padrão do WordPress pra "telas grandes").
 * ------------------------------------------------------------------ */
.mmg-mobile-achievements {
	display: none;
}

@media (max-width: 782px) {
	.mmg-mobile-achievements {
		display: block;
	}
}

/* --------------------------------------------------------------------
 * Reestilização do QUIZ dentro do cartão — mesmo padrão dos flashcards.
 * Como o plugin de quiz é externo, os seletores são genéricos (botões,
 * campos, tipografia); as cores vêm das mesmas variáveis dos flashcards.
 * ------------------------------------------------------------------ */
.mmg-quiz-section,
.mmg-quiz-section * {
	font-family: inherit;
}

.mmg-quiz-section button,
.mmg-quiz-section input[type="submit"],
.mmg-quiz-section input[type="button"] {
	background: var(--fc-accent, #2271b1);
	color: var(--fc-accent-text, #fff);
	border: none;
	border-radius: calc(var(--fc-radius, 10px) - 2px);
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.mmg-quiz-section button:hover,
.mmg-quiz-section input[type="submit"]:hover,
.mmg-quiz-section input[type="button"]:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

.mmg-quiz-section input[type="radio"],
.mmg-quiz-section input[type="checkbox"] {
	accent-color: var(--fc-accent, #2271b1);
	width: 17px;
	height: 17px;
}

.mmg-quiz-section input[type="text"],
.mmg-quiz-section input[type="email"],
.mmg-quiz-section input[type="number"],
.mmg-quiz-section select,
.mmg-quiz-section textarea {
	border: 1px solid var(--fc-border, #d7dbe0);
	border-radius: calc(var(--fc-radius, 10px) - 2px);
	background: var(--fc-surface, #fff);
	color: var(--fc-text, #222);
	padding: 10px 14px;
	font-size: 15px;
	box-sizing: border-box;
}

.mmg-quiz-section label {
	cursor: pointer;
}

.mmg-quiz-section h1,
.mmg-quiz-section h2,
.mmg-quiz-section h3,
.mmg-quiz-section h4 {
	color: inherit;
	margin-top: 0;
}

.mmg-quiz-section img {
	border-radius: calc(var(--fc-radius, 10px) - 2px);
	max-width: 100%;
	height: auto;
}

.mmg-quiz-section a {
	color: var(--fc-accent, #2271b1);
}

/* ====== Seções realocadas pra fora do <article> ====== */
.mmg-standalone-section {
	margin: 24px 0;
	width: 100%;
	box-sizing: border-box;
}

/* ====== Reestilização fina do quiz (classes reais do plugin .mqp-*) ======
   As opções viram "cartões de escolha" (contorno + hover na cor de destaque),
   e o botão de navegação vira o botão primário — mesmo padrão dos flashcards. */
.mmg-quiz-section .mqp-title {
	text-align: center;
	font-size: 1.15em;
	margin: 0 0 14px;
}

.mmg-quiz-section .mqp-progress {
	font-size: 11px;
	font-weight: 600;
	opacity: 0.5;
	text-align: center;
	margin-bottom: 10px;
}

.mmg-quiz-section .mqp-question-text {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.55;
	text-align: center;
}

.mmg-quiz-section .mqp-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0;
}

/* Opções de resposta no padrão Duolingo: cartões de escolha com contorno
   grosso, cantos redondos e um degrau embaixo que afunda ao clicar. */
.mmg-quiz-section .mqp-options .mqp-option-btn {
	background: var(--fc-surface, #fff);
	color: var(--fc-text, #222);
	border: 2px solid var(--fc-border, #d7dbe0);
	border-radius: 14px;
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	width: 100%;
	box-shadow: 0 3px 0 var(--fc-border, #d7dbe0);
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.08s ease, box-shadow 0.08s ease;
}

.mmg-quiz-section .mqp-options .mqp-option-btn:hover {
	border-color: var(--fc-accent, #2271b1);
	box-shadow: 0 3px 0 var(--fc-accent, #2271b1);
	transform: none;
	opacity: 1;
}

.mmg-quiz-section .mqp-options .mqp-option-btn:active {
	transform: translateY(3px);
	box-shadow: 0 0 0 transparent;
}

.mmg-quiz-section .mqp-options .mqp-option-btn.is-selected,
.mmg-quiz-section .mqp-options .mqp-option-btn[aria-pressed="true"],
.mmg-quiz-section .mqp-options .mqp-option-btn.selected {
	border-color: var(--fc-accent, #2271b1);
	background: color-mix(in srgb, var(--fc-accent, #2271b1) 10%, var(--fc-surface, #fff));
	box-shadow: inset 0 0 0 1px var(--fc-accent, #2271b1);
}

.mmg-quiz-section .mqp-nav {
	display: flex;
	justify-content: center;
}

.mmg-quiz-section .mqp-nav .mqp-nav-btn {
	background: var(--fc-accent, #2271b1);
	color: var(--fc-accent-text, #fff);
	border: none;
	border-radius: 14px;
	padding: 13px 32px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	box-shadow: 0 4px 0 var(--fc-accent-dark, #1a5686);
	transition: filter 0.15s ease, transform 0.08s ease, box-shadow 0.08s ease;
}

.mmg-quiz-section .mqp-nav .mqp-nav-btn:hover {
	filter: brightness(1.06);
	transform: none;
	opacity: 1;
}

.mmg-quiz-section .mqp-nav .mqp-nav-btn:active {
	transform: translateY(4px);
	box-shadow: 0 0 0 transparent;
}

.mmg-quiz-section .mqp-nav .mqp-nav-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: 0 4px 0 var(--fc-accent-dark, #1a5686);
}


/* ====== Comentários: ocupam toda a largura do cartão (o max-width de 700px
   do CSS original é o que abria o "buraco" na lateral no PC). ====== */
.mm-comments-block,
.mm-comments-block.mmg-standalone-section {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Botão "Comentar" no mesmo padrão Duolingo dos demais. */
.mm-comments-block .form-submit input[type="submit"] {
	background: var(--fc-accent, #2271b1);
	color: var(--fc-accent-text, #fff);
	border: none;
	border-radius: 14px;
	padding: 13px 28px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
	box-shadow: 0 4px 0 var(--fc-accent-dark, #1a5686);
	transition: filter 0.15s ease, transform 0.08s ease, box-shadow 0.08s ease;
}

.mm-comments-block .form-submit input[type="submit"]:hover {
	filter: brightness(1.06);
}

.mm-comments-block .form-submit input[type="submit"]:active {
	transform: translateY(4px);
	box-shadow: 0 0 0 transparent;
}

/* ====== Modo enxuto: menos texto, mais ação ====== */

/* O quiz tem título próprio comprido lá dentro — com o H2 "Quiz" da seção,
   ele vira redundância. Some. */
.mmg-quiz-section .mqp-title {
	display: none;
}

/* Botão Refazer do quiz — secundário Duolingo (contorno grosso + degrau). */
.mmg-quiz-redo {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}

.mmg-quiz-redo-btn {
	background: var(--fc-surface, #fff);
	color: var(--fc-accent, #2271b1);
	border: 2px solid var(--fc-border, #d7dbe0);
	border-radius: 14px;
	padding: 11px 28px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
	box-shadow: 0 4px 0 var(--fc-border, #d7dbe0);
	transition: filter 0.15s ease, transform 0.08s ease, box-shadow 0.08s ease, border-color 0.15s ease;
}

.mmg-quiz-redo-btn:hover {
	border-color: var(--fc-accent, #2271b1);
	box-shadow: 0 4px 0 var(--fc-accent, #2271b1);
}

.mmg-quiz-redo-btn:active {
	transform: translateY(4px);
	box-shadow: 0 0 0 transparent;
}


/* ====== Aviso sutil de cadastro (fim do quiz/flashcard, só pra visitantes) ====== */
.mmg-guest-note {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--fc-surface-2, #f4f6f9);
	border: 1px dashed var(--fc-border, #d7dbe0);
	text-align: center;
}

.mmg-guest-note p {
	margin: 0 0 10px;
	font-size: 13px;
	opacity: 0.85;
}

.mmg-guest-note-actions {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.mmg-guest-note-btn {
	background: var(--fc-accent, #2271b1);
	color: var(--fc-accent-text, #fff) !important;
	text-decoration: none !important;
	border-radius: 12px;
	padding: 9px 20px;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 3px 0 var(--fc-accent-dark, #1a5686);
}

.mmg-guest-note-btn:active {
	transform: translateY(3px);
	box-shadow: 0 0 0 transparent;
}

.mmg-guest-note-btn-alt {
	background: var(--fc-surface, #fff);
	color: var(--fc-accent, #2271b1) !important;
	border: 2px solid var(--fc-border, #d7dbe0);
	box-shadow: 0 3px 0 var(--fc-border, #d7dbe0);
	padding: 7px 18px;
}
