.fx-grid-wrap, .fx-submit-wrap, .fx-single-event-wrap, .fx-form-panel {
	--fx-bg: #0b0e1a;
	--fx-panel: #12162a;
	--fx-border: #262c47;
	--fx-purple: #7c5cff;
	--fx-purple-2: #a78bfa;
	--fx-text: #e6e8f0;
	--fx-text-dim: #9098b5;
	--fx-green: #2fd480;
	--fx-red: #ef4444;
	--fx-field-bg: #0e1224;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--fx-text);
}

/* ---------- Light theme override ---------- */
.fx-theme-light {
	--fx-bg: #f4f5fa;
	--fx-panel: #ffffff;
	--fx-border: #e2e4ee;
	--fx-purple: #6d5bff;
	--fx-purple-2: #5a3fe0;
	--fx-text: #1c2033;
	--fx-text-dim: #6b7190;
	--fx-green: #16a35f;
	--fx-red: #dc2626;
	--fx-field-bg: #f8f9fd;
}
.fx-theme-light .fx-card,
.fx-theme-light .fx-panel,
.fx-theme-light .fx-sidebar-card,
.fx-theme-light .fx-submit-header,
.fx-theme-light .fx-form-section-modern {
	box-shadow: 0 1px 3px rgba(20,20,50,0.06);
}
.fx-theme-light .fx-card-media-placeholder,
.fx-theme-light .fx-hero-media-placeholder { background: #eceefa; }
.fx-theme-light .fx-hero { background: radial-gradient(ellipse 80% 60% at 30% 0%, rgba(109,91,255,0.10), transparent 60%), var(--fx-bg); }

/* ---------- Search bar ---------- */
.fx-search-bar {
	display: flex;
	gap: 10px;
	background: var(--fx-panel);
	border: 1px solid var(--fx-border);
	border-radius: 14px;
	padding: 10px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.fx-search-input {
	flex: 1;
	min-width: 200px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 10px;
}
.fx-search-input .dashicons { color: var(--fx-text-dim); }
.fx-search-text {
	background: transparent;
	border: none;
	color: var(--fx-text);
	width: 100%;
	padding: 10px 0;
	outline: none;
}
.fx-search-category {
	background: var(--fx-field-bg);
	border: 1px solid var(--fx-border);
	color: var(--fx-text);
	border-radius: 8px;
	padding: 0 12px;
}
.fx-btn-search {
	background: linear-gradient(90deg, var(--fx-purple), #6d5bff);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 20px;
	font-weight: 600;
	cursor: pointer;
}

/* ---------- Grid ---------- */
.fx-grid {
	display: grid;
	gap: 22px;
}
@media (max-width: 900px) {
	.fx-grid { grid-template-columns: 1fr !important; }
}

.fx-card {
	background: var(--fx-panel);
	border: 1px solid var(--fx-border);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, border-color 0.15s ease;
}
.fx-card:hover { transform: translateY(-3px); border-color: var(--fx-purple); }

.fx-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #1a1f38;
}
.fx-card-media img { width: 100%; height: 100%; object-fit: cover; }
.fx-card-media-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.fx-card-media-placeholder .dashicons { font-size: 40px; width: 40px; height: 40px; color: var(--fx-text-dim); }

.fx-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(10,12,24,0.75);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 6px;
}

.fx-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.fx-card-date { color: var(--fx-purple-2); font-size: 12px; font-weight: 600; }
.fx-card-title { margin: 0; font-size: 17px; line-height: 1.3; }
.fx-card-title a { color: var(--fx-text); text-decoration: none; }
.fx-card-title a:hover { color: var(--fx-purple-2); }
.fx-card-venue { color: var(--fx-text-dim); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.fx-card-venue .dashicons { font-size: 15px; width: 15px; height: 15px; }

.fx-card-actions { display: flex; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--fx-border); }
.fx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 8px;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	flex: 1;
}
.fx-btn-primary { background: linear-gradient(90deg, var(--fx-purple), #6d5bff); color: #fff; }
.fx-btn-primary:hover { opacity: 0.9; color: #fff; }
.fx-btn-outline { background: transparent; color: var(--fx-text); border: 1px solid var(--fx-border); }
.fx-btn-outline:hover { border-color: var(--fx-purple); color: var(--fx-purple-2); }
.fx-btn-lg { padding: 13px 20px; font-size: 15px; }
.fx-btn-block { width: 100%; }

.fx-empty-grid, .fx-grid-results-empty { color: var(--fx-text-dim); text-align: center; padding: 40px 0; grid-column: 1 / -1; }

.fx-load-more-wrap { text-align: center; margin-top: 28px; }
.fx-btn-load-more {
	background: var(--fx-panel);
	border: 1px solid var(--fx-border);
	color: var(--fx-text);
	padding: 11px 28px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
}
.fx-btn-load-more:hover { border-color: var(--fx-purple); }

/* ---------- Upcoming widget ---------- */
.fx-upcoming-list { list-style: none; margin: 0; padding: 0; }
.fx-upcoming-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--fx-border); }
.fx-upcoming-item a { color: var(--fx-text); text-decoration: none; }
.fx-upcoming-date { color: var(--fx-purple-2); font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ---------- Single event ---------- */
.fx-single-event-wrap { background: var(--fx-bg); }

.fx-hero {
	background: radial-gradient(ellipse 80% 60% at 30% 0%, rgba(124,92,255,0.28), transparent 60%), var(--fx-bg);
	padding: 48px 24px;
	border-bottom: 1px solid var(--fx-border);
}
.fx-hero-inner {
	max-width: 1040px;
	margin: 0 auto;
	display: flex;
	gap: 40px;
	align-items: center;
	flex-wrap: wrap;
}
.fx-hero-media {
	width: 280px;
	height: 280px;
	flex-shrink: 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.fx-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-hero-media-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; background: #1a1f38; }
.fx-hero-media-placeholder .dashicons { font-size: 48px; width: 48px; height: 48px; color: var(--fx-text-dim); }

.fx-hero-info { flex: 1; min-width: 280px; }
.fx-hero-badge {
	display: inline-block;
	background: rgba(124,92,255,0.18);
	color: var(--fx-purple-2);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 6px 12px;
	border-radius: 20px;
	margin-bottom: 16px;
}
.fx-hero-title { font-size: 40px; line-height: 1.15; margin: 0 0 20px; font-weight: 800; color: var(--fx-text); }
.fx-hero-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--fx-text-dim); font-size: 14px; }
.fx-hero-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.fx-hero-meta-item .dashicons { color: var(--fx-text-dim); font-size: 17px; width: 17px; height: 17px; }

.fx-body {
	max-width: 1040px;
	margin: 0 auto;
	padding: 48px 24px 80px;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 48px;
	align-items: start;
}
@media (max-width: 800px) {
	.fx-body { grid-template-columns: 1fr; }
	.fx-hero-inner { flex-direction: column; align-items: flex-start; }
	.fx-hero-media { width: 100%; height: auto; aspect-ratio: 4/3; }
}

.fx-section-heading {
	font-size: 20px;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--fx-border);
}
.fx-single-description { line-height: 1.8; color: var(--fx-text); font-size: 15px; }
.fx-single-description p { margin: 0 0 18px; }

.fx-sidebar-card {
	background: var(--fx-panel);
	border: 1px solid var(--fx-border);
	border-radius: 14px;
	padding: 22px;
	position: sticky;
	top: 24px;
}
.fx-secure-btn { box-shadow: 0 8px 24px rgba(124,92,255,0.35); }
.fx-secure-btn .dashicons { font-size: 15px; width: 15px; height: 15px; }

.fx-rsvp-form-sidebar { display: flex; flex-direction: column; gap: 10px; }
.fx-rsvp-form-sidebar input { background: var(--fx-field-bg); border: 1px solid var(--fx-border); border-radius: 8px; padding: 10px 12px; color: var(--fx-text); }

.fx-sidebar-divider { height: 1px; background: var(--fx-border); margin: 20px 0; }

.fx-sidebar-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.fx-sidebar-row:last-child { margin-bottom: 0; }
.fx-sidebar-icon { color: var(--fx-text-dim); font-size: 18px; width: 18px; height: 18px; margin-top: 2px; }
.fx-sidebar-icon.fx-icon-verified { color: var(--fx-green); }
.fx-sidebar-label { font-size: 10px; letter-spacing: 0.06em; color: var(--fx-text-dim); margin-bottom: 3px; }
.fx-sidebar-value { font-size: 14px; font-weight: 600; color: var(--fx-text); }
.fx-sidebar-value a { color: var(--fx-text); text-decoration: none; }
.fx-sidebar-value a:hover { color: var(--fx-purple-2); }
.fx-verified-text { color: var(--fx-green); font-weight: 600; }

/* ---------- Submission form (full width, modern section layout) ---------- */
.fx-submit-wrap { max-width: 1100px; margin: 0 auto; padding: 10px; }
.fx-submit-header { text-align: center; margin-bottom: 8px; }
.fx-submit-title { font-size: 30px; background: linear-gradient(90deg, var(--fx-purple-2), var(--fx-purple)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 8px; }
.fx-submit-sub { color: var(--fx-text-dim); font-size: 14px; margin: 0 0 24px; }

.fx-guidelines-box {
	background: rgba(124,92,255,0.08);
	border: 1px solid var(--fx-border);
	border-radius: 10px;
	padding: 14px 18px;
	font-size: 13px;
	color: var(--fx-text-dim);
	margin-bottom: 24px;
}
.fx-guidelines-box p:last-child { margin-bottom: 0; }

.fx-form-full { display: flex; flex-direction: column; }

.fx-form-section-modern {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 36px;
	padding: 32px 0;
	border-bottom: 1px solid var(--fx-border);
}
.fx-form-section-modern:first-child { padding-top: 0; }
.fx-form-section-modern:last-child { border-bottom: none; }
@media (max-width: 760px) {
	.fx-form-section-modern { grid-template-columns: 1fr; gap: 12px; }
}

.fx-form-section-aside { padding-top: 2px; }
.fx-section-icon { display: block; color: var(--fx-purple-2); font-size: 24px; width: 24px; height: 24px; margin-bottom: 10px; }
.fx-form-section-aside h3 { font-size: 16px; margin: 0 0 6px; color: var(--fx-text); }
.fx-form-section-aside p { font-size: 13px; color: var(--fx-text-dim); margin: 0; line-height: 1.5; }

.fx-form-section-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.fx-field-full { grid-column: 1 / -1; }
.fx-field-half { grid-column: span 1; }
@media (max-width: 560px) {
	.fx-form-section-fields { grid-template-columns: 1fr; }
	.fx-field-half { grid-column: 1 / -1; }
}

.fx-field { margin: 0; }
.fx-field-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 10px; }
.fx-field label { font-size: 13px; font-weight: 600; color: var(--fx-text); }
.fx-required { flex-shrink: 0; font-size: 10px; background: rgba(239,68,68,0.15); color: #f88; padding: 3px 8px; border-radius: 12px; }
.fx-optional { flex-shrink: 0; font-size: 10px; color: var(--fx-text-dim); }
.fx-mt-8 { margin-top: 8px; }

.fx-checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fx-text-dim); font-weight: 400; padding: 11px 0; }

.fx-field input[type="text"],
.fx-field input[type="email"],
.fx-field input[type="url"],
.fx-field input[type="date"],
.fx-field input[type="time"],
.fx-field select,
.fx-field textarea {
	width: 100%;
	background: var(--fx-field-bg);
	border: 1px solid var(--fx-border);
	border-radius: 8px;
	padding: 11px 12px;
	color: var(--fx-text);
	font-size: 14px;
	box-sizing: border-box;
}
.fx-field input:focus, .fx-field select:focus, .fx-field textarea:focus {
	outline: none;
	border-color: var(--fx-purple);
}
.fx-field.fx-field-error input,
.fx-field.fx-field-error select,
.fx-field.fx-field-error textarea { border-color: var(--fx-red); }

.fx-image-picker { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fx-upload-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	min-height: 140px;
	border: 1px dashed var(--fx-border);
	border-radius: 12px;
	padding: 30px 16px;
	text-align: center;
	cursor: pointer;
	color: var(--fx-text-dim);
	background-size: cover;
	background-position: center;
	position: relative;
}
.fx-upload-dropzone:hover { border-color: var(--fx-purple); }
.fx-upload-dropzone.fx-has-image .fx-upload-dropzone-content {
	background: rgba(11,14,26,0.72);
	border-radius: 8px;
	padding: 10px 16px;
	color: #fff;
}
.fx-upload-dropzone .dashicons { font-size: 30px; width: 30px; height: 30px; color: var(--fx-purple-2); }
.fx-upload-hint { display: block; font-size: 11px; margin-top: 2px; }
.fx-upload-filename { font-size: 12px; color: var(--fx-purple-2); }

.fx-submit-bar { margin-top: 32px; display: flex; justify-content: flex-end; }
.fx-submit-btn { min-width: 260px; }

.fx-form-message { padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 13px; }
.fx-form-message.fx-success { background: rgba(47,212,128,0.12); color: var(--fx-green); }
.fx-form-message.fx-error { background: rgba(239,68,68,0.12); color: #f88; }

.fx-coming-soon { text-align: center; color: var(--fx-text-dim); font-size: 13px; padding: 14px; border: 1px dashed var(--fx-border); border-radius: 8px; }
