/* ============================================================
   Event Management — Frontend Design System
   NGO Organization theme palette  |  Teal + Coral
   ============================================================ */

/* ── Theme integration: flush against header, no extra gaps ── */
.em-fullwidth-main {
	padding: 0 !important;
	margin:  0 !important;
}
.em-fullwidth-main > .em-landing,
.em-fullwidth-main > .em-dashboard,
.em-fullwidth-main > .em-reg-wrap {
	margin-top: 0;
}


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
	/* Brand — matches NGO Organization theme */
	--em-primary:          #4ac6b9;
	--em-primary-dark:     #2c9d90;
	--em-primary-light:    #e6f7f6;
	--em-primary-rgb:      74, 198, 185;
	--em-accent:           #db5f5f;
	--em-accent-dark:      #c04444;

	/* Gradients */
	--em-gradient:         linear-gradient(135deg, #4ac6b9 0%, #db5f5f 100%);
	--em-gradient-hero:    linear-gradient(135deg, #1a8a82 0%, #4ac6b9 55%, #db5f5f 100%);
	--em-gradient-cta:     linear-gradient(135deg, #2c9d90 0%, #db5f5f 100%);

	/* Semantic */
	--em-success:          #10b981;
	--em-success-light:    #d1fae5;
	--em-success-text:     #065f46;
	--em-warning-light:    #fffbeb;
	--em-warning-text:     #92400e;
	--em-danger:           #ef4444;
	--em-danger-light:     #fee2e2;
	--em-danger-text:      #991b1b;
	--em-muted:            #9ca3af;

	/* Typography — Poppins matches the NGO theme */
	--em-text:             #222222;
	--em-text-light:       #666666;
	--em-font:             'Poppins', 'Josefin Sans', -apple-system, BlinkMacSystemFont, sans-serif;

	/* Surfaces */
	--em-bg:               #f5fafa;
	--em-card-bg:          #ffffff;
	--em-border:           #ddecea;

	/* Radii — sharp corners match the NGO theme style */
	--em-radius-sm:        2px;
	--em-radius:           4px;
	--em-radius-lg:        6px;

	/* Shadows */
	--em-shadow:           0 2px 12px rgba(0, 0, 0, .07);
	--em-shadow-hover:     0 12px 32px rgba(var(--em-primary-rgb), .20);
	--em-shadow-btn:       0 4px 14px rgba(var(--em-primary-rgb), .35);
	--em-shadow-btn-hover: 0 8px 24px rgba(var(--em-primary-rgb), .5);

	/* Motion */
	--em-transition:       .2s ease;
	--em-transition-slow:  .45s cubic-bezier(.22, 1, .36, 1);
}


/* ============================================================
   2. ANIMATIONS
   ============================================================ */

@keyframes em-fade-in-up {
	from { opacity: 0; transform: translateY(32px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes em-shimmer {
	0%   { transform: translateX(-100%) skewX(-15deg); }
	100% { transform: translateX(250%)  skewX(-15deg); }
}

@keyframes em-blob-drift {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50%       { transform: translate(30px, -20px) scale(1.08); }
}

@keyframes em-pulse-ring {
	0%   { box-shadow: 0 0 0 0 rgba(var(--em-primary-rgb), .35); }
	70%  { box-shadow: 0 0 0 10px rgba(var(--em-primary-rgb), 0); }
	100% { box-shadow: 0 0 0 0 rgba(var(--em-primary-rgb), 0); }
}


/* ============================================================
   3. LANDING PAGE
   ============================================================ */

.em-landing {
	font-family: var(--em-font);
	color: var(--em-text);
	overflow-x: hidden;
}

/* ── Hero ───────────────────────────────────────────────────── */
.em-hero {
	background: var(--em-gradient-hero);
	position: relative;
	overflow: hidden;
	padding: 100px 24px 120px;
	text-align: center;
}

.em-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 740px;
	margin: 0 auto;
	animation: em-fade-in-up var(--em-transition-slow) both;
}

.em-hero__badge {
	display: inline-block;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 100px;
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	padding: 6px 18px;
	text-transform: uppercase;
	margin-bottom: 28px;
	backdrop-filter: blur(6px);
}

.em-hero__headline {
	color: #fff;
	font-size: clamp(2.2rem, 5.5vw, 3.6rem);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -.02em;
	margin: 0 0 20px;
}

.em-hero__headline-accent {
	display: inline-block;
	background: linear-gradient(90deg, #c8f0ed, #ffffff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.em-hero__sub {
	color: rgba(255, 255, 255, .82);
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	line-height: 1.65;
	margin: 0 auto 40px;
	max-width: 520px;
}

.em-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

.em-hero__blob {
	border-radius: 50%;
	filter: blur(72px);
	position: absolute;
	pointer-events: none;
	opacity: .25;
	animation: em-blob-drift 8s ease-in-out infinite;
}

.em-hero__blob--1 {
	background: #7de8df;
	width: 420px; height: 420px;
	top: -80px; right: -100px;
}

.em-hero__blob--2 {
	background: #f09898;
	width: 300px; height: 300px;
	bottom: -60px; left: -80px;
	animation-delay: -4s;
}

/* ── Hero buttons ───────────────────────────────────────────── */
.em-btn--hero {
	border-radius: 2px;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .01em;
	padding: 14px 32px;
	position: relative;
	overflow: hidden;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: transform var(--em-transition), box-shadow var(--em-transition), background var(--em-transition);
}

.em-btn--hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.28) 50%, transparent 100%);
	transform: translateX(-100%) skewX(-15deg);
}

.em-btn--hero:hover::after {
	animation: em-shimmer .55s ease forwards;
}

.em-btn--hero-primary {
	background: #fff;
	color: var(--em-primary-dark);
	box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
}

.em-btn--hero-primary:hover {
	background: #e6f7f6;
	color: var(--em-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
	text-decoration: none;
}

.em-btn--hero-ghost {
	background: rgba(255, 255, 255, .15);
	border: 2px solid rgba(255, 255, 255, .55);
	color: #fff;
	backdrop-filter: blur(6px);
}

.em-btn--hero-ghost:hover {
	background: rgba(255, 255, 255, .25);
	color: #fff;
	transform: translateY(-2px);
	text-decoration: none;
}

.em-btn--hero .em-btn-arrow {
	display: inline-block;
	transition: transform var(--em-transition);
}

.em-btn--hero:hover .em-btn-arrow {
	transform: translateX(4px);
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.em-stats-bar {
	background: var(--em-card-bg);
	border-bottom: 1px solid var(--em-border);
	box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

.em-stats-bar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	max-width: 860px;
	margin: 0 auto;
	padding: 28px 24px;
}

.em-stat {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 40px;
	flex: 1;
	min-width: 180px;
	justify-content: center;
}

.em-stat__icon { font-size: 1.8rem; flex-shrink: 0; }

.em-stat__body { display: flex; flex-direction: column; }

.em-stat__number {
	font-size: 1.85rem;
	font-weight: 900;
	color: var(--em-primary);
	line-height: 1;
}

.em-stat__label {
	font-size: .78rem;
	color: var(--em-text-light);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-top: 3px;
}

.em-stat__divider {
	width: 1px;
	height: 48px;
	background: var(--em-border);
	flex-shrink: 0;
}

/* ── Shared section helpers ─────────────────────────────────── */
.em-section-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 88px 24px;
}

.em-section-header {
	text-align: center;
	margin-bottom: 60px;
}

.em-section-tag {
	display: inline-block;
	background: var(--em-primary-light);
	color: var(--em-primary-dark);
	border-radius: 2px;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 5px 16px;
	margin-bottom: 14px;
}

.em-section-title {
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	font-weight: 900;
	color: var(--em-text);
	letter-spacing: -.02em;
	margin: 0 0 14px;
}

.em-section-sub {
	font-size: 1.05rem;
	color: var(--em-text-light);
	max-width: 520px;
	margin: 0 auto;
	line-height: 1.65;
}

/* ── How It Works ───────────────────────────────────────────── */
.em-hiw { background: var(--em-bg); }

.em-hiw__steps {
	display: flex;
	align-items: flex-start;
	gap: 0;
}

.em-hiw__step {
	flex: 1;
	text-align: center;
	padding: 0 24px;
}

.em-hiw__num {
	display: block;
	font-size: .7rem;
	font-weight: 900;
	letter-spacing: .12em;
	color: var(--em-primary);
	text-transform: uppercase;
	margin-bottom: 14px;
	opacity: .7;
}

.em-hiw__icon {
	font-size: 2.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: var(--em-primary-light);
	border-radius: 50%;
	margin: 0 auto 16px;
	transition: background var(--em-transition), transform var(--em-transition);
}

.em-hiw__step:hover .em-hiw__icon {
	background: var(--em-primary);
	transform: scale(1.08);
}

.em-hiw__step-title {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--em-text);
	margin: 0 0 10px;
}

.em-hiw__step-desc {
	font-size: .9rem;
	color: var(--em-text-light);
	line-height: 1.65;
	margin: 0;
}

.em-hiw__connector {
	flex-shrink: 0;
	width: 60px;
	height: 2px;
	background: linear-gradient(90deg, var(--em-primary-light), var(--em-border));
	margin-top: 40px;
	align-self: flex-start;
}

/* ── Upcoming Events Preview ────────────────────────────────── */
.em-preview { background: var(--em-card-bg); }

.em-preview__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	margin-bottom: 48px;
}

.em-preview-card {
	background: var(--em-card-bg);
	border: 1px solid var(--em-border);
	border-radius: var(--em-radius);
	box-shadow: var(--em-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--em-transition), box-shadow var(--em-transition);
}

.em-preview-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--em-shadow-hover);
}

.em-preview-card--unavail {
	opacity: .78;
}

.em-preview-card--unavail:hover {
	transform: none;
	box-shadow: var(--em-shadow);
}

.em-preview-card__accent {
	height: 4px;
	background: var(--em-gradient);
}

.em-preview-card--unavail .em-preview-card__accent {
	background: linear-gradient(90deg, #9ca3af, #d1d5db);
}

.em-preview-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.em-preview-card__badge-row { margin-bottom: 10px; }

.em-preview-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--em-text);
	margin: 0 0 12px;
	line-height: 1.35;
}

.em-preview-card__meta {
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.em-preview-card__meta li {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: .85rem;
	color: var(--em-text-light);
}

.em-preview-card__footer { margin-top: auto; }

.em-preview__see-all { text-align: center; }

/* ── Bottom CTA Banner ──────────────────────────────────────── */
.em-cta-banner {
	background: var(--em-gradient-cta);
	position: relative;
	overflow: hidden;
	padding: 88px 24px;
	text-align: center;
}

.em-cta-banner__inner {
	position: relative;
	z-index: 2;
	max-width: 640px;
	margin: 0 auto;
}

.em-cta-banner__headline {
	color: #fff;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 900;
	letter-spacing: -.02em;
	margin: 0 0 16px;
}

.em-cta-banner__sub {
	color: rgba(255, 255, 255, .8);
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0 0 36px;
}


/* ============================================================
   4. DASHBOARD
   ============================================================ */

.em-dashboard {
	font-family: var(--em-font);
	margin: 0 auto;
	max-width: 1140px;
	padding: 40px 16px 56px;
}

/* Page header */
.em-dash-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 36px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--em-border);
}

.em-dash-header__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 900;
	color: var(--em-text);
	margin: 0 0 6px;
	letter-spacing: -.02em;
}

.em-dash-header__sub {
	font-size: .95rem;
	color: var(--em-text-light);
	margin: 0;
}

.em-event-count-badge {
	display: inline-flex;
	align-items: center;
	background: var(--em-primary-light);
	color: var(--em-primary-dark);
	border-radius: 2px;
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .04em;
	padding: 6px 18px;
	white-space: nowrap;
}

/* Empty state */
.em-empty-state {
	text-align: center;
	padding: 80px 24px;
	color: var(--em-text-light);
}

.em-empty-icon { font-size: 3rem; margin-bottom: 16px; }

.em-empty-state h3 {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--em-text);
	margin: 0 0 8px;
}

.em-empty-state p { font-size: 1rem; margin: 0; }

/* Card grid */
.em-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 28px;
}

/* Card */
.em-card {
	background: var(--em-card-bg);
	border-radius: var(--em-radius);
	box-shadow: var(--em-shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform var(--em-transition), box-shadow var(--em-transition);
}

.em-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--em-shadow-hover);
}

.em-card__accent {
	background: var(--em-gradient);
	height: 5px;
}

.em-card--unavailable .em-card__accent {
	background: linear-gradient(90deg, #9ca3af, #d1d5db);
}

.em-card--unavailable { opacity: .85; }

.em-card--unavailable:hover {
	transform: none;
	box-shadow: var(--em-shadow);
}

.em-card__inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px;
}

.em-card__badge-row { margin-bottom: 12px; }

.em-card__title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--em-text);
	line-height: 1.35;
	margin: 0 0 12px;
}

.em-card__date-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--em-primary-light);
	border-radius: var(--em-radius-sm);
	color: var(--em-primary-dark);
	font-size: .85rem;
	font-weight: 600;
	padding: 5px 12px;
	margin-bottom: 16px;
}

.em-chip-icon { font-size: .9rem; }

.em-card__meta {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.em-card__meta li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: .9rem;
	color: var(--em-text-light);
}

.em-meta-ico { flex-shrink: 0; font-size: 1rem; line-height: 1.4; }

.em-price-text {
	color: var(--em-primary);
	font-weight: 700;
	font-size: .95rem;
}

.em-slots-zero { color: var(--em-danger); font-weight: 700; }

.em-card__desc {
	font-size: .875rem;
	color: var(--em-text-light);
	line-height: 1.6;
	border-top: 1px solid var(--em-border);
	padding-top: 14px;
	margin-top: 4px;
	margin-bottom: 20px;
}

.em-card__desc p { margin: 0; }

.em-card__footer { margin-top: auto; }


/* ============================================================
   5. SHARED COMPONENTS
   ============================================================ */

/* ── Pill / Badge ───────────────────────────────────────────── */
.em-pill {
	border-radius: 2px;
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .05em;
	padding: 4px 12px;
	text-transform: uppercase;
}

.em-pill--open    { background: var(--em-success-light); color: var(--em-success-text); }
.em-pill--full    { background: var(--em-danger-light);  color: var(--em-danger-text); }
.em-pill--closed  { background: #f3f4f6; color: #6b7280; }

/* ── Button system ──────────────────────────────────────────── */
.em-btn {
	border: none;
	border-radius: var(--em-radius-sm);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--em-font);
	font-size: .9rem;
	font-weight: 600;
	padding: 11px 22px;
	text-decoration: none;
	transition: background var(--em-transition), transform var(--em-transition), box-shadow var(--em-transition);
}

.em-btn--primary {
	background: var(--em-gradient);
	color: #fff;
	box-shadow: var(--em-shadow-btn);
	width: 100%;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.em-btn--primary::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.2) 50%, transparent 100%);
	transform: translateX(-100%) skewX(-15deg);
}

.em-btn--primary:hover::after {
	animation: em-shimmer .5s ease forwards;
}

.em-btn--primary:hover {
	background: linear-gradient(135deg, var(--em-primary-dark) 0%, var(--em-accent-dark) 100%);
	color: #fff;
	box-shadow: var(--em-shadow-btn-hover);
	transform: translateY(-2px);
	text-decoration: none;
}

.em-btn--disabled {
	background: #e5e7eb;
	color: var(--em-muted);
	cursor: not-allowed;
	pointer-events: none;
	width: 100%;
	justify-content: center;
}

.em-btn--outline {
	background: transparent;
	border: 2px solid var(--em-primary);
	border-radius: 2px;
	color: var(--em-primary-dark);
	font-size: .95rem;
	font-weight: 700;
	padding: 12px 32px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	transition: background var(--em-transition), color var(--em-transition), transform var(--em-transition);
}

.em-btn--outline:hover {
	background: var(--em-primary);
	color: #fff;
	transform: translateY(-2px);
	text-decoration: none;
}

.em-btn-arrow {
	display: inline-block;
	transition: transform var(--em-transition);
}

.em-btn--primary:hover .em-btn-arrow,
.em-btn--outline:hover .em-btn-arrow,
.em-btn--hero:hover .em-btn-arrow {
	transform: translateX(4px);
}

/* ── Notices ────────────────────────────────────────────────── */
.em-notice {
	border-radius: var(--em-radius-sm);
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: .9rem;
	padding: 14px 18px;
}

.em-notice--warning {
	background: var(--em-warning-light);
	border: 1px solid #fde68a;
	color: var(--em-warning-text);
}

.em-notice--success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: var(--em-success-text);
}

.em-notice--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #7f1d1d;
}

.em-notice-icon { font-size: 1.1rem; flex-shrink: 0; line-height: 1.4; }

.em-notice a { color: inherit; font-weight: 600; text-decoration: underline; }


/* ============================================================
   6. REGISTRATION PAGE
   ============================================================ */

.em-reg-page {
	font-family: var(--em-font);
	max-width: 960px;
	margin: 0 auto;
	padding: 48px 16px 64px;
}

.em-reg-header { text-align: center; margin-bottom: 32px; }

.em-reg-heading {
	font-size: 2rem;
	font-weight: 900;
	color: var(--em-text);
	margin: 0 0 8px;
	letter-spacing: -.02em;
}

.em-reg-subheading { font-size: 1rem; color: var(--em-text-light); margin: 0; }

/* Progress Bar */
.em-progress-bar { margin-bottom: 44px; }

.em-progress-bar__track {
	display: flex;
	align-items: center;
	max-width: 520px;
	margin: 0 auto;
}

.em-pb-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.em-pb-step__circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .85rem;
	font-weight: 800;
	border: 2px solid var(--em-border);
	background: var(--em-card-bg);
	color: var(--em-muted);
	transition: background var(--em-transition), border-color var(--em-transition), color var(--em-transition);
}

.em-pb-step__label {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--em-muted);
	white-space: nowrap;
}

.em-pb-step--active .em-pb-step__circle {
	background: var(--em-primary);
	border-color: var(--em-primary);
	color: #fff;
	animation: em-pulse-ring 2s ease-out infinite;
}

.em-pb-step--active .em-pb-step__label { color: var(--em-primary); }

.em-pb-step--done .em-pb-step__circle {
	background: var(--em-success);
	border-color: var(--em-success);
	color: #fff;
}

.em-pb-step--done .em-pb-step__label { color: var(--em-success); }

.em-pb-connector {
	flex: 1;
	height: 2px;
	background: var(--em-border);
	margin: 0 4px;
	margin-bottom: 24px;
}

.em-pb-step--done + .em-pb-connector { background: var(--em-success); }

/* Two-column form + sidebar */
.em-reg-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 28px;
	align-items: start;
}

/* Form card */
.em-form-card {
	background: var(--em-card-bg);
	border-radius: var(--em-radius);
	box-shadow: var(--em-shadow);
	padding: 32px;
}

.em-form-section-label {
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--em-primary-dark);
	background: var(--em-primary-light);
	border-radius: var(--em-radius-sm);
	display: inline-block;
	padding: 4px 10px;
	margin-bottom: 16px;
}

.em-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.em-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 18px;
}

.em-label { font-size: .85rem; font-weight: 600; color: var(--em-text); }

.em-required { color: var(--em-danger); }

.em-input {
	background: #fff;
	border: 1.5px solid var(--em-border);
	border-radius: var(--em-radius-sm);
	box-sizing: border-box;
	color: var(--em-text);
	font-family: var(--em-font);
	font-size: .95rem;
	padding: 11px 14px;
	transition: border-color var(--em-transition), box-shadow var(--em-transition);
	width: 100%;
	outline: none;
}

.em-input:focus {
	border-color: var(--em-primary);
	box-shadow: 0 0 0 3px rgba(var(--em-primary-rgb), .15);
}

.em-input::placeholder { color: var(--em-muted); }

.em-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}

/* Price box */
.em-price-box {
	background: linear-gradient(135deg, var(--em-primary-light), #f0fbfa);
	border: 1.5px solid rgba(var(--em-primary-rgb), .2);
	border-radius: var(--em-radius-sm);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	margin-bottom: 22px;
}

.em-price-label { font-size: .85rem; font-weight: 600; color: var(--em-primary-dark); }

.em-price-amount { font-size: 1.25rem; font-weight: 800; color: var(--em-primary); }

/* Pay button */
.em-btn--pay {
	background: var(--em-gradient);
	border: none;
	border-radius: var(--em-radius-sm);
	box-shadow: var(--em-shadow-btn);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--em-font);
	font-size: 1rem;
	font-weight: 700;
	padding: 14px 28px;
	transition: all var(--em-transition);
	width: 100%;
	position: relative;
	overflow: hidden;
}

.em-btn--pay::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
	transform: translateX(-100%) skewX(-15deg);
}

.em-btn--pay:hover::after { animation: em-shimmer .55s ease forwards; }

.em-btn--pay:hover {
	background: linear-gradient(135deg, var(--em-primary-dark) 0%, var(--em-accent-dark) 100%);
	box-shadow: var(--em-shadow-btn-hover);
	transform: translateY(-1px);
}

.em-btn--pay:disabled {
	background: linear-gradient(135deg, #9ca3af, #d1d5db);
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

.em-btn-icon { font-size: 1.1rem; }

/* Sidebar */
.em-reg-sidebar { display: flex; flex-direction: column; gap: 16px; }

.em-sidebar-card {
	background: var(--em-card-bg);
	border-radius: var(--em-radius);
	box-shadow: var(--em-shadow);
	padding: 20px;
}

.em-sidebar-title { font-size: .9rem; font-weight: 700; color: var(--em-text); margin: 0 0 14px; }

.em-steps {
	margin: 0;
	padding-left: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.em-steps li { font-size: .875rem; color: var(--em-text-light); line-height: 1.5; }
.em-steps li strong { color: var(--em-text); }

.em-sidebar-secure {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: var(--em-primary-light);
	border: 1px solid rgba(var(--em-primary-rgb), .2);
}

.em-secure-icon { font-size: 1.3rem; flex-shrink: 0; }

.em-sidebar-secure p { font-size: .825rem; color: var(--em-primary-dark); margin: 0; line-height: 1.5; }


/* ============================================================
   7. RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
	.em-hiw__steps { flex-direction: column; align-items: center; gap: 40px; }
	.em-hiw__step  { max-width: 340px; width: 100%; }
	.em-hiw__connector {
		width: 2px; height: 36px;
		background: linear-gradient(180deg, var(--em-primary), var(--em-border));
		margin: 0; align-self: center;
	}
	.em-stat { padding: 8px 20px; min-width: 140px; }
	.em-stat__divider { display: none; }
}

@media (max-width: 768px) {
	.em-hero          { padding: 72px 20px 88px; }
	.em-hero__ctas    { flex-direction: column; align-items: center; }
	.em-btn--hero     { width: 100%; max-width: 320px; justify-content: center; }
	.em-section-inner { padding: 64px 20px; }
	.em-dash-header   { flex-direction: column; align-items: flex-start; }
	.em-reg-layout    { grid-template-columns: 1fr; }
	.em-reg-sidebar   { order: -1; }
	.em-form-row      { grid-template-columns: 1fr; }
	.em-reg-heading   { font-size: 1.6rem; }
	.em-form-card     { padding: 20px; }
	.em-pb-step__label { font-size: .65rem; }
	.em-stats-bar__inner { flex-direction: column; align-items: center; gap: 20px; padding: 32px 20px; }
	.em-stat { justify-content: flex-start; padding: 0; width: 100%; max-width: 280px; }
	.em-preview__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.em-grid        { grid-template-columns: 1fr; }
	.em-dashboard   { padding: 24px 12px 40px; }
	.em-dash-header { margin-bottom: 24px; padding-bottom: 20px; }
	.em-dash-header__title { font-size: 1.4rem; }
	.em-hero__headline     { font-size: 2rem; }
	.em-cta-banner         { padding: 64px 20px; }
	.em-progress-bar__track { max-width: 100%; padding: 0 8px; }
	.em-pb-step__circle { width: 34px; height: 34px; font-size: .78rem; }
	.em-pb-step__label  { display: none; }
	.em-reg-page        { padding: 32px 12px 48px; }
}


/* ============================================================
   8. MATERI PAGE
   ============================================================ */

.em-materi-wrap {
	font-family: var(--em-font);
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 16px 60px;
}

.em-materi-header {
	margin-bottom: 36px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--em-border);
}

.em-materi-heading {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	color: var(--em-text);
	margin: 0 0 6px;
}

.em-materi-sub {
	font-size: .95rem;
	color: var(--em-text-light);
	margin: 0;
}

/* Category group */
.em-materi-group { margin-bottom: 48px; }

.em-materi-group-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--em-text);
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--em-primary-light);
}

.em-materi-group-icon { font-size: 1.2rem; }

.em-materi-count {
	margin-left: auto;
	background: var(--em-primary-light);
	color: var(--em-primary-dark);
	font-size: .75rem;
	font-weight: 700;
	border-radius: 2px;
	padding: 2px 10px;
}

/* Card grid */
.em-materi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

/* Card */
.em-materi-card {
	background: var(--em-card-bg);
	border: 1px solid var(--em-border);
	border-radius: var(--em-radius);
	box-shadow: var(--em-shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform var(--em-transition), box-shadow var(--em-transition);
}

.em-materi-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--em-shadow-hover);
}

.em-materi-card__icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 80px;
	font-size: 2.2rem;
}

.em-materi-type--google_drive { background: #e8f4fd; }
.em-materi-type--pdf           { background: #fdecea; }
.em-materi-type--link          { background: var(--em-primary-light); }

.em-materi-card__body {
	padding: 16px 18px 12px;
	flex: 1;
}

.em-materi-type-badge {
	display: inline-block;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-radius: 2px;
	padding: 2px 8px;
	margin-bottom: 8px;
}

.em-materi-card__body .em-materi-type--google_drive { background: #cce7f8; color: #1558a8; }
.em-materi-card__body .em-materi-type--pdf           { background: #fbd5d3; color: #991b1b; }
.em-materi-card__body .em-materi-type--link          { background: var(--em-primary-light); color: var(--em-primary-dark); }

.em-materi-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--em-text);
	margin: 0 0 8px;
	line-height: 1.35;
}

.em-materi-card__desc {
	font-size: .85rem;
	color: var(--em-text-light);
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.em-materi-card__footer {
	padding: 0 18px 18px;
}

.em-materi-btn {
	font-size: .85rem;
	padding: 9px 16px;
}

@media (max-width: 600px) {
	.em-materi-grid { grid-template-columns: 1fr; }
	.em-materi-wrap { padding: 24px 12px 40px; }
}


/* ============================================================
   9. DONATION PAGE
   ============================================================ */

.em-donation-page { }

/* Preset amount buttons */
.em-preset-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 4px;
}

.em-preset-btn {
	background: transparent;
	border: 2px solid var(--em-accent);
	border-radius: 2px;
	color: var(--em-accent);
	cursor: pointer;
	font-family: var(--em-font);
	font-size: .88rem;
	font-weight: 700;
	padding: 9px 18px;
	transition: background var(--em-transition), color var(--em-transition), transform var(--em-transition);
}

.em-preset-btn:hover,
.em-preset-btn--active {
	background: var(--em-accent);
	color: #fff;
	transform: translateY(-1px);
}

/* Amount input with Rp prefix */
.em-amount-input-wrap {
	display: flex;
	align-items: center;
	border: 1.5px solid var(--em-border);
	border-radius: var(--em-radius-sm);
	overflow: hidden;
	transition: border-color var(--em-transition), box-shadow var(--em-transition);
}

.em-amount-input-wrap:focus-within {
	border-color: var(--em-accent);
	box-shadow: 0 0 0 3px rgba(219, 95, 95, .15);
}

.em-amount-prefix {
	background: var(--em-bg);
	border-right: 1.5px solid var(--em-border);
	color: var(--em-text-light);
	font-weight: 700;
	font-size: .9rem;
	padding: 11px 14px;
	white-space: nowrap;
	flex-shrink: 0;
}

.em-amount-input {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	flex: 1;
}

/* Donation textarea */
.em-donation-textarea {
	resize: vertical;
	min-height: 80px;
}

/* Donate submit button */
.em-btn--donate {
	background: var(--em-accent);
	border: none;
	border-radius: var(--em-radius-sm);
	box-shadow: 0 4px 14px rgba(219, 95, 95, .35);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--em-font);
	font-size: 1rem;
	font-weight: 700;
	padding: 14px 28px;
	transition: background var(--em-transition), transform var(--em-transition), box-shadow var(--em-transition);
	width: 100%;
	position: relative;
	overflow: hidden;
}

.em-btn--donate::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
	transform: translateX(-100%) skewX(-15deg);
}

.em-btn--donate:hover::after { animation: em-shimmer .55s ease forwards; }

.em-btn--donate:hover {
	background: var(--em-accent-dark);
	box-shadow: 0 8px 24px rgba(219, 95, 95, .5);
	transform: translateY(-1px);
}

.em-btn--donate:disabled {
	background: #9ca3af;
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

@media (max-width: 600px) {
	.em-preset-btns { gap: 8px; }
	.em-preset-btn  { padding: 8px 12px; font-size: .82rem; }
}


/* ============================================================
   10. HOME CAROUSEL
   ============================================================ */

.em-carousel {
	width: 100%;
	margin: 0;
	line-height: 1;
}

.em-carousel__img {
	height: 480px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.em-carousel__placeholder {
	height: 480px;
	background: linear-gradient(135deg, var(--em-primary) 0%, var(--em-primary-dark) 100%);
}

/* Dark overlay on each slide */
.em-carousel .carousel-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}

.em-carousel__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 10;
	padding: 40px 60px;
	text-align: left;
	background: none;
}

.em-carousel__title {
	font-size: clamp(1.4rem, 3vw, 2.2rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px;
	text-shadow: 0 2px 8px rgba(0,0,0,.4);
	line-height: 1.2;
}

.em-carousel__sub {
	font-size: 1rem;
	color: rgba(255,255,255,.9);
	margin: 0 0 20px;
	max-width: 560px;
	text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.em-carousel__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--em-primary);
	color: #fff !important;
	padding: 10px 26px;
	border-radius: var(--em-radius);
	font-weight: 700;
	font-size: .95rem;
	text-decoration: none !important;
	transition: background .2s, transform .2s;
}

.em-carousel__btn:hover {
	background: var(--em-primary-dark);
	transform: translateY(-2px);
	color: #fff !important;
}

/* Indicator dots */
.em-carousel .carousel-indicators [data-bs-target] {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255,255,255,.6);
	border: none;
	margin: 0 4px;
}

.em-carousel .carousel-indicators .active {
	background: var(--em-primary);
}

/* Event card image */
.em-preview-card__img {
	height: 160px;
	background-size: cover;
	background-position: center;
	border-radius: var(--em-radius) var(--em-radius) 0 0;
}

.em-preview-card__img--placeholder {
	background: linear-gradient(135deg, var(--em-primary-light) 0%, #d1f0ed 100%);
}

@media (max-width: 768px) {
	.em-carousel__img,
	.em-carousel__placeholder { height: 260px; }
	.em-carousel__caption { padding: 24px 20px; }
	.em-carousel__title { font-size: 1.3rem; }
}


/* ============================================================
   11. EVENT DETAIL CARD (registration sidebar)
   ============================================================ */

.em-event-detail-card {
	padding: 0 !important;
	overflow: hidden;
}

.em-event-detail__thumb-wrap {
	width: 100%;
	max-height: 200px;
	overflow: hidden;
}

.em-event-detail__thumb {
	width: 100%;
	height: 200px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.em-event-detail__body {
	padding: 16px 18px 18px;
}

.em-event-detail__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--em-text);
	margin: 0 0 12px;
	line-height: 1.35;
}

.em-event-detail__meta {
	list-style: none;
	padding: 0;
	margin: 0 0 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.em-event-detail__meta li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .85rem;
	color: var(--em-text-light);
}

.em-event-detail__meta li span {
	font-size: 1rem;
	flex-shrink: 0;
}

.em-event-detail__excerpt {
	font-size: .82rem;
	color: var(--em-text-light);
	line-height: 1.6;
	margin: 0 0 12px;
	border-top: 1px solid var(--em-border);
	padding-top: 10px;
}

.em-event-detail__status {
	margin-top: 4px;
}


/* ============================================================
   12. INTRO SECTION (event-landing)
   ============================================================ */

.em-intro-section {
	padding: 36px 24px 28px;
	text-align: center;
}

.em-intro-label {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--em-primary);
	margin: 0 0 6px;
}

.em-intro-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	color: var(--em-text);
	margin: 0 0 8px;
	line-height: 1.2;
}

.em-intro-full {
	font-size: .92rem;
	color: var(--em-text-light);
	margin: 0;
	line-height: 1.6;
}

/* ── Section partition between intro and carousel ── */
.em-section-partition {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 0 40px;
	margin: 0;
}

.em-section-partition__line {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, #d0eeeb, #4ac6b9, #d0eeeb, transparent);
}

.em-section-partition__icon {
	flex-shrink: 0;
	font-size: 1.1rem;
	padding: 0 14px;
	color: var(--em-primary);
	opacity: .7;
}

/* ── Section 13: Payment Method Selector ─────────────────── */
.em-payment-method-selector {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 10px 0 20px;
}

.em-pm-option {
	cursor: pointer;
}

.em-pm-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.em-pm-label {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 14px;
	background: #fff;
	transition: border-color .2s, background .2s, box-shadow .2s;
	cursor: pointer;
}

.em-pm-option input[type="radio"]:checked + .em-pm-label {
	border-color: var(--em-primary);
	background: #f0fbfa;
	box-shadow: 0 0 0 3px rgba(74,198,185,.15);
}

.em-pm-option input[type="radio"]:checked + .em-pm-label .em-pm-icon {
	transform: scale(1.15);
}

.em-pm-icon {
	font-size: 1.5rem;
	transition: transform .2s;
}

.em-pm-label strong {
	font-size: .9rem;
	color: var(--em-text);
	display: block;
}

.em-pm-label small {
	font-size: .75rem;
	color: var(--em-text-light);
}

/* ── Section 14: QRIS Payment Panel ─────────────────────── */
.em-qris-section {
	border: 2px solid var(--em-primary);
	border-radius: 12px;
	padding: 20px;
	margin: 0 0 20px;
	background: #f8fffe;
	animation: em-fade-in .25s ease;
}

@keyframes em-fade-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.em-qris-box {
	text-align: center;
	margin-bottom: 16px;
}

.em-qris-instructions {
	font-size: .85rem;
	color: var(--em-text-light);
	margin: 0 0 14px;
	line-height: 1.5;
}

.em-qris-image-wrap {
	display: inline-block;
	border: 3px solid var(--em-primary);
	border-radius: 12px;
	padding: 8px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(74,198,185,.2);
}

.em-qris-image {
	display: block;
	width: 200px;
	height: 200px;
	object-fit: contain;
	border-radius: 6px;
}

.em-qris-amount-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
	background: var(--em-primary);
	color: #fff;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: .9rem;
}

.em-qris-amount-display strong {
	font-size: 1.1rem;
	color: #fff;
}

.em-qris-steps-list {
	padding-left: 20px;
	margin: 0 0 16px;
	font-size: .85rem;
	color: var(--em-text);
	line-height: 1.8;
}

.em-qris-steps-list li strong { color: var(--em-primary-dark); }

.em-qris-proof-field {
	border-top: 1px dashed rgba(74,198,185,.4);
	padding-top: 14px;
	margin-top: 4px;
}

.em-proof-hint {
	font-size: .75rem;
	color: var(--em-text-light);
	font-weight: 400;
	margin-left: 4px;
}

.em-proof-input {
	cursor: pointer;
	padding: 8px !important;
	font-size: .85rem !important;
}

.em-proof-preview {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 10px;
	padding: 10px;
	background: #fff;
	border: 1px solid #d0eeeb;
	border-radius: 8px;
}

.em-proof-preview img {
	max-width: 120px;
	max-height: 120px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

.em-proof-remove {
	background: #db5f5f;
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	cursor: pointer;
	font-size: .8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.em-proof-remove:hover { background: #c04444; }

/* ── Admin: QRIS status badge ──────────────────────────── */
.em-status-qris {
	background: #fff3cd;
	color: #856404;
}

.em-confirm-qris-btn {
	margin-top: 6px !important;
	font-size: .75rem !important;
	padding: 2px 8px !important;
}

.em-proof-admin-link {
	font-size: .78rem;
	color: #2271b1;
	text-decoration: none;
	display: inline-block;
	margin-top: 4px;
}

.em-proof-admin-link:hover { text-decoration: underline; }
