.nxe-events {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
	font-family: 'Almarai', sans-serif;
}

.nxe-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

/* Tabs — luxe pill buttons */
.nxe-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.nxe-tab {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 12px 20px;
	border: 1px solid #ebe4e6 !important;
	border-radius: 999px;
	background: #fff !important;
	cursor: pointer;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: #555 !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.nxe-tab:hover,
.nxe-tab:focus-visible {
	color: #4A457F !important;
	border-color: #d4d2e4 !important;
	transform: translateY(-1px);
}

.nxe-tab.is-active {
	color: #fff !important;
	background: linear-gradient(135deg, #4A457F, #363154) !important;
	border-color: transparent !important;
	box-shadow: 0 10px 24px rgba(74, 69, 127, 0.3);
}

.nxe-tab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: #eeecf5;
	color: #6b6690;
	font-size: 12px;
	font-weight: 700;
}

.nxe-tab.is-active .nxe-tab__count {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

/* Toolbar — search + view toggle */
.nxe-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.nxe-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 320px;
	max-width: 360px;
	padding: 0 16px;
	border: 1px solid #e5e0e1;
	border-radius: 999px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nxe-search:focus-within {
	border-color: #C43852;
	box-shadow: 0 0 0 3px rgba(196, 56, 82, 0.1);
}

.nxe-search .nxe-icon {
	color: #aaa;
}

.nxe-search input {
	flex: 1;
	border: 0;
	outline: none;
	background: transparent;
	padding: 11px 10px;
	font-size: 14px;
	font-family: inherit;
	color: #111;
}

.nxe-view-toggle {
	display: flex;
	gap: 4px;
	padding: 4px;
	border: 1px solid #ebe4e6;
	border-radius: 999px;
	background: #fff;
	flex: 0 0 auto;
}

.nxe-view-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: transparent !important;
	color: #999 !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.nxe-view-btn:hover {
	color: #4A457F !important;
}

.nxe-view-btn.is-active {
	background: #4A457F !important;
	color: #fff !important;
}

.nxe-panel[hidden] {
	display: none;
}

/* Cards */
.nxe-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 18px;
}

.nxe-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 20px;
	border: 1.5px solid #d3ccce;
	border-radius: 14px;
	background: #fff !important;
	font-family: inherit;
	text-align: left;
	white-space: normal;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(17, 17, 17, 0.05);
	transition: box-shadow 0.25s ease, transform 0.2s ease, opacity 0.2s ease, border-color 0.25s ease;
}

.nxe-card:hover,
.nxe-card:focus,
.nxe-card:focus-visible {
	background: #fff !important;
	border-color: #f0cdd4;
	box-shadow: 0 16px 32px rgba(17, 17, 17, 0.08);
	transform: translateY(-3px);
}

.nxe-card:focus-visible {
	outline: 2px solid #C43852;
	outline-offset: 2px;
}

.nxe-card.is-ended {
	opacity: 0.55;
}

.nxe-card.is-ended:hover {
	transform: none;
}

.nxe-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #fdf1f3;
	color: #C43852;
}

.nxe-card__icon .nxe-icon {
	width: 20px;
	height: 20px;
}

.nxe-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nxe-card__name {
	font-size: 15.5px;
	font-weight: 700;
	color: #111;
	letter-spacing: 0.3px;
}

.nxe-card__time {
	font-size: 13.5px;
	color: #888;
}

.nxe-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.nxe-badge--available {
	background: #e9f7ee;
	color: #1a8a4a;
}

.nxe-badge--sold-out {
	background: #fdecef;
	color: #C43852;
}

.nxe-badge--ended {
	background: #f0f0f0;
	color: #888;
}

.nxe-empty {
	padding: 40px 0;
	text-align: center;
	color: #888;
	font-size: 14px;
}

/* List view */
[data-nxe-root].is-list-view .nxe-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

[data-nxe-root].is-list-view .nxe-card {
	flex-direction: row;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	border-radius: 10px;
}

[data-nxe-root].is-list-view .nxe-card:hover {
	transform: translateX(3px);
}

[data-nxe-root].is-list-view .nxe-card__icon {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
}

[data-nxe-root].is-list-view .nxe-card__body {
	flex: 1 1 auto;
	flex-direction: row;
	align-items: baseline;
	gap: 12px;
}

[data-nxe-root].is-list-view .nxe-card__time {
	color: #999;
}

[data-nxe-root].is-list-view .nxe-badge {
	flex: 0 0 auto;
}

@media (max-width: 639px) {
	.nxe-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 2px;
	}

	.nxe-tab {
		padding: 10px 16px;
		font-size: 13.5px;
		white-space: nowrap;
	}

	.nxe-toolbar {
		flex-wrap: wrap;
	}

	.nxe-search {
		max-width: none;
		flex: 1 1 100%;
	}

	.nxe-grid {
		grid-template-columns: 1fr;
	}

	[data-nxe-root].is-list-view .nxe-card__body {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}
}

/* Modal */
.nxe-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.nxe-modal[hidden] {
	display: none;
}

.nxe-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.72);
	backdrop-filter: blur(2px);
	animation: nxe-fade-in 0.25s ease;
}

.nxe-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: min(600px, 88vh);
	overflow-y: auto;
	background: #fff;
	border-radius: 14px;
	padding: 40px 32px 32px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
	animation: nxe-pop-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nxe-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f5f5f5 !important;
	color: #111 !important;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nxe-modal__close:hover,
.nxe-modal__close:focus {
	background: #ececec !important;
	color: #111 !important;
}

.nxe-modal__details {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 24px;
}

.nxe-modal__name {
	font-size: 20px;
	font-weight: 600;
	color: #111;
	letter-spacing: 0.3px;
}

.nxe-modal__time {
	font-size: 14px;
	color: #666;
}

.nxe-modal__status {
	display: inline-block;
	margin-top: 4px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	width: fit-content;
}

.nxe-modal__status--available {
	background: #e9f7ee;
	color: #1a8a4a;
}

.nxe-modal__status--sold-out {
	background: #fdecef;
	color: #C43852;
}

.nxe-modal__status--ended {
	background: #f0f0f0;
	color: #888;
}

/* Form */
.nxe-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nxe-form[hidden],
.nxe-confirmation[hidden] {
	display: none;
}

.nxe-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #444;
}

.nxe-field[hidden] {
	display: none;
}

.nxe-rsvp {
	display: flex;
	gap: 10px;
}

.nxe-rsvp__option {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nxe-rsvp__option:has(input:checked) {
	border-color: #C43852;
	background: #fdf1f3;
	color: #C43852;
}

.nxe-rsvp__option input {
	accent-color: #C43852;
}

.nxe-field input {
	padding: 11px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	font-weight: 400;
	color: #111;
}

.nxe-field input:focus {
	outline: none;
	border-color: #C43852;
	box-shadow: 0 0 0 3px rgba(196, 56, 82, 0.12);
}

.nxe-form__error {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fdecef;
	color: #C43852;
	font-size: 13px;
}

.nxe-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: 0;
	border-radius: 30px;
	background: #C43852 !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease;
}

.nxe-submit:hover,
.nxe-submit:focus {
	background: #a92c43 !important;
	color: #fff !important;
}

.nxe-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Confirmation */
.nxe-confirmation {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nxe-confirmation__msg {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	color: #111;
}

.nxe-confirmation__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0;
	padding-bottom: 8px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
	color: #666;
}

.nxe-confirmation__row strong {
	color: #111;
	font-size: 14px;
}

.nxe-confirmation .nxe-submit {
	margin-top: 8px;
}

@keyframes nxe-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes nxe-pop-in {
	from { opacity: 0; transform: scale(0.96) translateY(10px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.nxe-modal__backdrop,
	.nxe-modal__dialog {
		animation: none;
	}
}
