/*!
 * CSF Event — gaya frontend.
 *
 * Aturan main:
 * - Semua selector diawali .csfev-* dan dibungkus .csfev-root → tidak ada CSS
 *   yang bocor ke tema. Tidak ada reset global (tema tidak berubah).
 * - Mobile-first: aturan dasar untuk 320px, media query menaikkan ke tablet/desktop.
 * - Tap target ≥ 44px, font input ≥ 16px (mencegah auto-zoom iOS Safari).
 * - Warna brand memakai CSS variable agar bisa diganti dari Pengaturan.
 */

/* Token diletakkan di :root, BUKAN di .csfev-root.
   Alasannya: warna brand dari halaman Pengaturan disuntikkan sebagai
   `:root{--csfev-brand:…}` tepat setelah berkas ini. Kalau nilai bawaan berada
   di .csfev-root, ia akan menang atas nilai warisan dari :root dan setelan
   admin tidak pernah terpakai. Dengan sama-sama di :root, deklarasi yang
   dicetak belakangan yang menang — sesuai urutan cascade yang diharapkan.
   Tema juga bisa menimpanya dengan cara yang sama (lihat tema coco-social-fund,
   assets/css/csf-event.css). */
:root {
	--csfev-brand: #0f766e;
	--csfev-accent: #f59e0b;
	--csfev-ink: #0f172a;
	--csfev-muted: #64748b;
	--csfev-line: #e2e8f0;
	--csfev-surface: #ffffff;
	--csfev-soft: #f8fafc;
	--csfev-radius: 14px;
	--csfev-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 8px 24px rgba(15, 23, 42, .06);

	/* Font: ikut tema bila temanya mendeklarasikan token ini, kalau tidak
	   pakai font sistem. */
	--csfev-font-body: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif);
	--csfev-font-heading: var(--font-headline, var(--csfev-font-body));
	--csfev-font-label: var(--font-label, var(--csfev-font-body));
}

.csfev-root {
	box-sizing: border-box;
	color: var(--csfev-ink);
	font-family: var(--csfev-font-body);
	font-size: 16px;
	line-height: 1.6;
}

.csfev-root *,
.csfev-root *::before,
.csfev-root *::after { box-sizing: border-box; }

.csfev-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------------
 * Tombol
 * ------------------------------------------------------------------------ */
.csfev-root .csfev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.csfev-root .csfev-btn:hover { transform: translateY(-1px); }
.csfev-root .csfev-btn:focus-visible { outline: 3px solid var(--csfev-accent); outline-offset: 2px; }

.csfev-root .csfev-btn--primary { background: var(--csfev-brand); color: #fff; }
.csfev-root .csfev-btn--primary:hover { background: color-mix(in srgb, var(--csfev-brand) 88%, #000); color: #fff; }
.csfev-root .csfev-btn--secondary { background: var(--csfev-soft); color: var(--csfev-ink); border-color: var(--csfev-line); }
.csfev-root .csfev-btn--ghost { background: transparent; color: var(--csfev-brand); border-color: currentColor; }
.csfev-root .csfev-btn--link { background: none; border: none; color: var(--csfev-muted); text-decoration: underline; min-height: 44px; }
.csfev-root .csfev-btn--block { display: flex; width: 100%; }
.csfev-root .csfev-btn--lg { min-height: 54px; font-size: 17px; }
.csfev-root .csfev-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.csfev-spinner {
	display: none;
	width: 16px; height: 16px;
	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: csfev-spin .7s linear infinite;
}
.is-loading .csfev-spinner { display: inline-block; }
@keyframes csfev-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------------
 * Badge, pill, notice, banner
 * ------------------------------------------------------------------------ */
.csfev-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}
.csfev-badge--success { background: #dcfce7; color: #166534; }
.csfev-badge--info    { background: #dbeafe; color: #1e40af; }
.csfev-badge--warning { background: #fef3c7; color: #92400e; }
.csfev-badge--danger  { background: #fee2e2; color: #991b1b; }
.csfev-badge--neutral { background: #e2e8f0; color: #334155; }
.csfev-badge--live    { background: #fee2e2; color: #991b1b; }

.csfev-badge__pulse {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: currentColor;
	animation: csfev-pulse 1.6s ease-in-out infinite;
}
@keyframes csfev-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.csfev-notice {
	padding: 14px 16px;
	border-radius: 12px;
	border-left: 4px solid var(--csfev-brand);
	background: var(--csfev-soft);
	margin: 0 0 16px;
	font-size: 15px;
}
.csfev-notice--success { border-color: #16a34a; background: #f0fdf4; }
.csfev-notice--warning { border-color: #d97706; background: #fffbeb; }
.csfev-notice--error   { border-color: #dc2626; background: #fef2f2; }
.csfev-notice--info    { border-color: #2563eb; background: #eff6ff; }
.csfev-notice p { margin: 0 0 6px; }
.csfev-notice p:last-child { margin-bottom: 0; }

.csfev-banner {
	padding: 14px 16px;
	border-radius: 12px;
	margin: 0 0 20px;
	font-size: 15px;
}
.csfev-banner--danger  { background: #fef2f2; color: #991b1b; }
.csfev-banner--warning { background: #fffbeb; color: #92400e; }
.csfev-banner--info    { background: #eff6ff; color: #1e40af; }
.csfev-banner strong { display: block; }

/* ---------------------------------------------------------------------------
 * Halaman single event
 * ------------------------------------------------------------------------ */
.csfev-single { max-width: 1120px; margin: 0 auto; padding: 16px 16px 96px; }

.csfev-breadcrumb { font-size: 13px; color: var(--csfev-muted); margin-bottom: 12px; }
.csfev-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.csfev-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--csfev-line); }
.csfev-breadcrumb a { color: var(--csfev-muted); text-decoration: none; }
.csfev-breadcrumb a:hover { text-decoration: underline; }

.csfev-hero__media {
	position: relative;
	border-radius: var(--csfev-radius);
	overflow: hidden;
	background: var(--csfev-soft);
	aspect-ratio: 4 / 3; /* Mobile lebih tinggi agar poster terbaca. */
}
.csfev-hero__media > img,
.csfev-hero__media video,
.csfev-hero__media .csfev-video-facade img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.csfev-hero__body { padding: 16px 0 0; }
.csfev-hero__title { margin: 10px 0 8px; font-size: clamp(24px, 6vw, 40px); line-height: 1.2; }
.csfev-hero__lead { color: var(--csfev-muted); margin: 0 0 8px; }
.csfev-hero__organizer { font-size: 14px; color: var(--csfev-muted); margin: 0; }

.csfev-layout { display: block; margin-top: 20px; }
.csfev-layout__aside { display: none; }

.csfev-meta {
	list-style: none;
	margin: 0 0 20px;
	padding: 16px;
	display: grid;
	gap: 14px;
	background: var(--csfev-soft);
	border-radius: var(--csfev-radius);
}
.csfev-meta li { display: grid; grid-template-columns: 24px 1fr; gap: 4px 10px; align-items: start; }
.csfev-meta__icon { grid-row: span 2; font-size: 18px; line-height: 1.2; }
.csfev-meta__label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--csfev-muted); }
.csfev-meta__value { font-weight: 600; }
.csfev-meta a { color: var(--csfev-brand); }

.csfev-section { margin: 0 0 32px; }
.csfev-section h2 { font-size: clamp(20px, 4.5vw, 26px); margin: 0 0 12px; }
.csfev-prose > * { margin-bottom: 1em; }

.csfev-agenda { list-style: none; margin: 0; padding: 0; }
.csfev-agenda li {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--csfev-line);
}
.csfev-agenda__time { font-weight: 700; color: var(--csfev-brand); }

.csfev-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.csfev-checklist li { padding-left: 28px; position: relative; }
.csfev-checklist li::before {
	content: "✓";
	position: absolute; left: 0; top: 0;
	color: var(--csfev-brand); font-weight: 700;
}

.csfev-address { font-style: normal; margin: 0 0 12px; }
.csfev-map { border-radius: var(--csfev-radius); overflow: hidden; aspect-ratio: 16 / 10; }
.csfev-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.csfev-faq__item {
	border: 1px solid var(--csfev-line);
	border-radius: 12px;
	padding: 0 16px;
	margin-bottom: 8px;
}
.csfev-faq__item summary {
	min-height: 48px;
	display: flex; align-items: center;
	font-weight: 600;
	cursor: pointer;
	padding: 12px 0;
}
.csfev-faq__item[open] summary { color: var(--csfev-brand); }

.csfev-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

.csfev-cta-card {
	background: var(--csfev-surface);
	border: 1px solid var(--csfev-line);
	border-radius: var(--csfev-radius);
	padding: 20px;
	box-shadow: var(--csfev-shadow);
}
.csfev-cta-card__date { font-weight: 700; margin: 12px 0 4px; }
.csfev-cta-card__date span { display: block; font-weight: 400; color: var(--csfev-muted); }
.csfev-cta-card__quota { font-size: 14px; color: var(--csfev-muted); margin: 12px 0 6px; }
.csfev-cta-card__closed { font-weight: 600; color: var(--csfev-muted); }

.csfev-progress { height: 8px; border-radius: 999px; background: var(--csfev-line); overflow: hidden; margin-bottom: 14px; }
.csfev-progress span { display: block; height: 100%; background: var(--csfev-brand); }

.csfev-countdown { display: flex; gap: 8px; margin: 0 0 20px; }
.csfev-countdown__unit {
	flex: 1;
	text-align: center;
	background: var(--csfev-soft);
	border-radius: 12px;
	padding: 10px 4px;
}
.csfev-countdown__num { display: block; font-size: clamp(20px, 5vw, 28px); font-weight: 700; font-variant-numeric: tabular-nums; }
.csfev-countdown__label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--csfev-muted); }

/* Sticky CTA mobile — aman terhadap home indicator iPhone. */
.csfev-stickybar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 9998;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97);
	border-top: 1px solid var(--csfev-line);
	backdrop-filter: blur(8px);
}
.csfev-stickybar__info { flex: 1; line-height: 1.2; }
.csfev-stickybar__info strong { display: block; }
.csfev-stickybar__info span { font-size: 13px; color: var(--csfev-muted); }
.csfev-stickybar .csfev-btn { flex: 0 0 auto; padding-left: 28px; padding-right: 28px; }

.csfev-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 32px; }
.csfev-share__label { font-weight: 600; }
.csfev-share__btn {
	min-height: 44px;
	display: inline-flex; align-items: center;
	padding: 8px 16px;
	border: 1px solid var(--csfev-line);
	border-radius: 999px;
	background: var(--csfev-surface);
	color: var(--csfev-ink);
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
}
.csfev-share__btn:hover { border-color: var(--csfev-brand); color: var(--csfev-brand); }

/* ---------------------------------------------------------------------------
 * Kartu & grid
 * ------------------------------------------------------------------------ */
.csfev-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.csfev-archive { max-width: 1120px; margin: 0 auto; padding: 16px; }
.csfev-archive__head { margin-bottom: 24px; }
.csfev-empty { color: var(--csfev-muted); }

.csfev-card {
	background: var(--csfev-surface);
	border: 1px solid var(--csfev-line);
	border-radius: var(--csfev-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.csfev-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--csfev-soft); }
.csfev-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csfev-card__media .csfev-badge { position: absolute; left: 10px; top: 10px; }
.csfev-card__body { padding: 14px 16px 18px; }
.csfev-card__date { font-size: 13px; color: var(--csfev-brand); font-weight: 600; margin: 0 0 4px; }
.csfev-card__title { font-size: 18px; margin: 0 0 6px; line-height: 1.3; }
.csfev-card__title a { color: inherit; text-decoration: none; }
.csfev-card__title a:hover { color: var(--csfev-brand); }
.csfev-card__meta, .csfev-card__excerpt { font-size: 14px; color: var(--csfev-muted); margin: 0 0 4px; }

.csfev-gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.csfev-gallery__item { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; }
.csfev-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------------------
 * Form
 * ------------------------------------------------------------------------ */
.csfev-form-wrap { scroll-margin-top: 24px; }
.csfev-form__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.csfev-col-full { grid-column: 1 / -1; }

.csfev-field { display: flex; flex-direction: column; gap: 6px; }
.csfev-label { font-weight: 600; font-size: 14px; }
.csfev-required { color: #dc2626; margin-left: 2px; }

.csfev-root .csfev-input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	font-size: 16px; /* Wajib ≥16px agar iOS tidak auto-zoom. */
	font-family: inherit;
	color: var(--csfev-ink);
	background: var(--csfev-surface);
	border: 1px solid var(--csfev-line);
	border-radius: 10px;
	appearance: none;
}
.csfev-root .csfev-input:focus {
	outline: none;
	border-color: var(--csfev-brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--csfev-brand) 20%, transparent);
}
.csfev-root .csfev-textarea { min-height: 96px; resize: vertical; }
.csfev-root .csfev-select { background-image: none; }
.csfev-field.has-error .csfev-input { border-color: #dc2626; }

.csfev-help { font-size: 13px; color: var(--csfev-muted); margin: 0; }
.csfev-error { font-size: 13px; color: #dc2626; margin: 0; min-height: 0; }
.csfev-error:empty { display: none; }

.csfev-choices { display: grid; gap: 8px; }
.csfev-choice, .csfev-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	font-size: 15px;
	cursor: pointer;
}
.csfev-choice input, .csfev-consent input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }

.csfev-field-heading { margin: 12px 0 0; font-size: 18px; }
.csfev-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.csfev-form__actions { margin-top: 20px; }
.csfev-form__hint { font-size: 13px; color: var(--csfev-muted); margin: 8px 0 0; }
.csfev-form__message:empty { display: none; }
.csfev-form__message { margin-top: 12px; }

/* ---------------------------------------------------------------------------
 * Formulir sebagai modal
 * Tanpa JavaScript, .csfev-formhost hanyalah blok biasa — formulir tampil
 * inline seperti sedia kala. Kelas .is-modal ditambahkan JS.
 * ------------------------------------------------------------------------ */
.csfev-formsection__cta {
	text-align: center;
	padding: 28px 20px;
	border: 1px dashed var(--csfev-line);
	border-radius: var(--csfev-radius);
	background: var(--csfev-soft);
}
.csfev-formsection__intro {
	margin: 0 0 16px;
	color: var(--csfev-muted);
	max-width: 46ch;
	margin-inline: auto;
}
/* Judul ini hanya berguna di dalam modal. Saat masih inline, halaman sudah
   punya heading bagiannya sendiri — tanpa aturan ini judulnya tampil dobel
   ketika JavaScript mati. */
.csfev-formhost__title { display: none; margin: 0 0 18px; font-size: 22px; }
.csfev-formhost.is-modal .csfev-formhost__title { display: block; }

/* Wujud modal */
.csfev-formhost.is-modal .csfev-formhost__panel {
	position: relative;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
}
.csfev-formhost.is-modal .csfev-formhost__title { padding-right: 48px; }

@media (min-width: 640px) {
	.csfev-formhost.is-modal .csfev-formhost__panel {
		max-width: 620px;
		max-height: 90vh;
		padding: 32px;
	}
}

/* ---------------------------------------------------------------------------
 * Tiket
 * ------------------------------------------------------------------------ */
.csfev-ticket { margin: 0 0 28px; }
.csfev-ticket__card {
	border: 2px dashed var(--csfev-line);
	border-radius: var(--csfev-radius);
	padding: 20px;
	background: var(--csfev-surface);
}
.csfev-ticket__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--csfev-muted); margin: 0; }
.csfev-ticket__code { font-size: clamp(22px, 6vw, 30px); font-weight: 800; letter-spacing: .06em; margin: 2px 0 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.csfev-ticket__qr { text-align: center; margin: 16px 0; }
.csfev-ticket__qr svg { max-width: 220px; height: auto; }
.csfev-ticket__hint { font-size: 13px; color: var(--csfev-muted); }
.csfev-ticket__meta { display: grid; gap: 10px; margin: 16px 0; }
.csfev-ticket__meta > div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.csfev-ticket__meta dt { font-size: 13px; color: var(--csfev-muted); }
.csfev-ticket__meta dd { margin: 0; font-weight: 600; }
.csfev-ticket__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.csfev-ticket__cancel { margin-top: 8px; }

/* ---------------------------------------------------------------------------
 * Add to calendar
 * ------------------------------------------------------------------------ */
.csfev-atc { position: relative; }
.csfev-atc__menu {
	position: absolute;
	z-index: 20;
	left: 0; top: calc(100% + 6px);
	min-width: 220px;
	margin: 0; padding: 6px;
	list-style: none;
	background: var(--csfev-surface);
	border: 1px solid var(--csfev-line);
	border-radius: 12px;
	box-shadow: var(--csfev-shadow);
}
.csfev-atc__menu a {
	display: block;
	min-height: 44px;
	padding: 11px 12px;
	border-radius: 8px;
	color: var(--csfev-ink);
	text-decoration: none;
	font-size: 15px;
}
.csfev-atc__menu a:hover { background: var(--csfev-soft); color: var(--csfev-brand); }

/* ---------------------------------------------------------------------------
 * Video facade
 * ------------------------------------------------------------------------ */
.csfev-video-facade { position: relative; cursor: pointer; width: 100%; height: 100%; }
.csfev-video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csfev-video-facade__play {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 68px; height: 68px;
	border-radius: 50%;
	border: none;
	background: rgba(15, 23, 42, .72);
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}
.csfev-video-facade iframe, .csfev-video__el { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------------------
 * Popup
 * ------------------------------------------------------------------------ */
.csfev-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: flex-end; /* Mobile: bottom sheet. */
	justify-content: center;
}
.csfev-popup-overlay[hidden] { display: none; }
.csfev-popup-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }

.csfev-popup {
	position: relative;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	background: var(--csfev-surface);
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -8px 40px rgba(15, 23, 42, .25);
	padding-bottom: env(safe-area-inset-bottom);
	animation: csfev-slide-up .24s ease-out;
}
@keyframes csfev-slide-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

.csfev-popup__close {
	position: absolute;
	right: 10px; top: 10px;
	z-index: 5;
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(15, 23, 42, .55);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.csfev-popup__close:focus-visible { outline: 3px solid var(--csfev-accent); outline-offset: 2px; }

.csfev-popup-single__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px 20px 0 0; }
.csfev-popup-single__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csfev-popup-single__body { padding: 16px 18px 20px; }
.csfev-popup-single__title { font-size: 20px; margin: 8px 0 10px; line-height: 1.3; }
.csfev-popup-single__meta { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--csfev-muted); }

/* Carousel — swipe pakai CSS Scroll Snap, tanpa library. */
.csfev-carousel { position: relative; }
.csfev-carousel__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	border-radius: 20px 20px 0 0;
}
.csfev-carousel__track::-webkit-scrollbar { display: none; }

.csfev-slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: center;
	display: block;
	text-decoration: none;
	color: inherit;
}
.csfev-slide__media { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--csfev-soft); }
.csfev-slide__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csfev-slide__play {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 56px; height: 56px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: rgba(15, 23, 42, .7);
	color: #fff; font-size: 20px;
}
.csfev-slide__overlay {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 28px 16px 14px;
	display: grid; gap: 2px;
	color: #fff;
}
.csfev-slide__overlay.is-gradient { background: linear-gradient(to top, rgba(15, 23, 42, .85), transparent); }
.csfev-slide__title { font-size: 17px; font-weight: 700; }
.csfev-slide__meta { font-size: 13px; opacity: .9; }
.csfev-slide__caption { font-size: 13px; font-weight: 600; color: var(--csfev-accent); }
.csfev-slide__cta {
	justify-self: start;
	margin-top: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--csfev-brand);
	font-size: 14px; font-weight: 600;
}

.csfev-carousel__arrow { display: none; }
.csfev-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 12px 0;
}
.csfev-carousel__dot {
	width: 24px; height: 24px;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	position: relative;
}
.csfev-carousel__dot::after {
	content: "";
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--csfev-line);
	transition: background .15s ease, width .15s ease;
}
.csfev-carousel__dot.is-active::after { background: var(--csfev-brand); width: 20px; border-radius: 999px; }

/* ---------------------------------------------------------------------------
 * Lightbox galeri
 * ------------------------------------------------------------------------ */
.csfev-lightbox {
	position: fixed; inset: 0; z-index: 99995;
	display: flex; align-items: center; justify-content: center;
	background: rgba(15, 23, 42, .92);
	padding: 24px;
}
.csfev-lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.csfev-lightbox__close {
	position: absolute; right: 16px; top: 16px;
	width: 44px; height: 44px;
	border: none; border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: #fff; font-size: 26px; cursor: pointer;
}

/* ---------------------------------------------------------------------------
 * Tablet ke atas
 * ------------------------------------------------------------------------ */
@media (min-width: 640px) {
	.csfev-grid--2, .csfev-grid--3, .csfev-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.csfev-gallery { grid-template-columns: repeat(3, 1fr); }
	.csfev-form__grid { grid-template-columns: repeat(2, 1fr); }
	.csfev-meta { grid-template-columns: repeat(2, 1fr); }
	.csfev-hero__media { aspect-ratio: 16 / 9; }

	.csfev-popup-overlay { align-items: center; padding: 24px; }
	.csfev-popup { max-width: 560px; border-radius: 18px; max-height: 90vh; animation: csfev-pop .2s ease-out; }
	.csfev-popup-single__media, .csfev-carousel__track { border-radius: 18px 18px 0 0; }
	.csfev-popup__close { width: 40px; height: 40px; }
	@keyframes csfev-pop { from { transform: scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
}

@media (min-width: 1024px) {
	.csfev-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.csfev-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.csfev-gallery { grid-template-columns: repeat(4, 1fr); }
	.csfev-meta { display: flex; flex-wrap: wrap; gap: 28px; }
	.csfev-meta li { grid-template-columns: 24px auto; }

	.csfev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
	.csfev-layout__aside { display: block; position: sticky; top: 24px; }
	.csfev-stickybar { display: none; }

	.csfev-hero__media { max-height: 520px; }
	.csfev-popup { max-width: 560px; }

	.csfev-carousel__arrow {
		position: absolute;
		top: calc(50% - 28px);
		z-index: 4;
		display: flex; align-items: center; justify-content: center;
		width: 44px; height: 44px;
		border: none; border-radius: 50%;
		background: rgba(255, 255, 255, .92);
		box-shadow: var(--csfev-shadow);
		color: var(--csfev-ink);
		font-size: 26px; line-height: 1;
		cursor: pointer;
	}
	.csfev-carousel__arrow--prev { left: 8px; }
	.csfev-carousel__arrow--next { right: 8px; }
	.csfev-carousel__arrow[disabled] { opacity: .35; cursor: default; }
}

/* ---------------------------------------------------------------------------
 * Preferensi pengguna
 * ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.csfev-root *,
	.csfev-popup, .csfev-carousel__track {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* Tema gelap: pastikan teks popup & form tetap terbaca. */
@media (prefers-color-scheme: dark) {
	.csfev-root {
		--csfev-ink: #e2e8f0;
		--csfev-muted: #94a3b8;
		--csfev-line: #334155;
		--csfev-surface: #0f172a;
		--csfev-soft: #1e293b;
	}
	.csfev-badge--success { background: #14532d; color: #bbf7d0; }
	.csfev-badge--info    { background: #1e3a8a; color: #bfdbfe; }
	.csfev-badge--warning { background: #78350f; color: #fde68a; }
	.csfev-badge--danger, .csfev-badge--live { background: #7f1d1d; color: #fecaca; }
	.csfev-badge--neutral { background: #334155; color: #e2e8f0; }
	.csfev-stickybar { background: rgba(15, 23, 42, .97); }
	.csfev-carousel__arrow { background: rgba(30, 41, 59, .95); color: #e2e8f0; }
}

/* Cetak: sembunyikan elemen interaktif. */
@media print {
	.csfev-popup-overlay, .csfev-stickybar, .csfev-share, .csfev-atc { display: none !important; }
	.csfev-ticket__card { border: 1px solid #000; }
}
