/* ============================================================
   CEAD — Celebration Popup
   ============================================================ */

.cead-celebration-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .65);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity .3s ease;
}

.cead-celebration-overlay.is-visible {
	opacity: 1;
}

/* Modal box */
.cead-celebration-modal {
	background: #fff;
	border-radius: 16px;
	max-width: 680px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 40px 36px 32px;
	position: relative;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
	transform: translateY(24px);
	transition: transform .35s ease;
}

.cead-celebration-overlay.is-visible .cead-celebration-modal {
	transform: translateY(0);
}

/* Close button */
.cead-celebration-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #888;
	padding: 4px 8px;
}
.cead-celebration-close:hover { color: #333; }

/* Header */
.cead-celebration-header {
	text-align: center;
	margin-bottom: 24px;
}

.cead-celebration-emoji {
	font-size: 52px;
	line-height: 1;
	margin-bottom: 12px;
}

.cead-celebration-header h2 {
	font-size: 1.6rem;
	margin: 0 0 8px;
	color: #1a1a1a;
}

.cead-celebration-header p {
	color: #555;
	font-size: .95rem;
	margin: 0;
	line-height: 1.5;
}

/* Subtitle */
.cead-celebration-subtitle {
	text-align: center;
	font-weight: 600;
	color: #333;
	margin-bottom: 20px;
	font-size: .95rem;
}

/* Cards grid */
.cead-cert-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.cead-cert-card {
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 16px 18px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	transition: border-color .2s;
}

.cead-cert-card h3 {
	font-size: .95rem;
	margin: 0;
	color: #1a1a1a;
}

.cead-cert-card p {
	font-size: .82rem;
	color: #666;
	margin: 0;
	line-height: 1.45;
	flex: 1;
}

/* Badges */
.cead-cert-badge {
	display: inline-block;
	border-radius: 20px;
	font-size: .72rem;
	font-weight: 700;
	padding: 3px 10px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.cead-cert-badge--gratuito  { background: #d1fae5; color: #065f46; }
.cead-cert-badge--exclusivo { background: #dbeafe; color: #1e40af; }
.cead-cert-badge--premium   { background: #fef3c7; color: #92400e; }

/* Card border accent */
.cead-cert-card--gratuito:hover  { border-color: #10b981; }
.cead-cert-card--exclusivo:hover { border-color: #3b82f6; }
.cead-cert-card--premium:hover   { border-color: #f59e0b; }

/* Buttons */
.cead-btn {
	display: inline-block;
	border-radius: 8px;
	padding: 9px 18px;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
	transition: opacity .2s, transform .15s;
	white-space: nowrap;
}

.cead-btn:hover { opacity: .88; transform: translateY(-1px); }

.cead-btn--gratuito  { background: #10b981; color: #fff; }
.cead-btn--exclusivo { background: #3b82f6; color: #fff; }
.cead-btn--premium   { background: #f59e0b; color: #fff; }

/* Footer link */
.cead-celebration-footer {
	text-align: center;
}

.cead-celebration-close-link {
	background: none;
	border: none;
	color: #888;
	font-size: .85rem;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}
.cead-celebration-close-link:hover { color: #555; }

@media (max-width: 480px) {
	.cead-celebration-modal { padding: 32px 20px 24px; }
	.cead-cert-cards { grid-template-columns: 1fr; }
}
