.ep-ticket-list {
	max-width: 920px;
	margin: 2rem 0;
}

.ep-event-grid {
	display: grid;
	grid-template-columns: 1fr;
	justify-items: center;
	gap: 2rem;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
}

.ep-event-grid-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(1120px, calc(100vw - 3rem));
	max-width: none;
}

.ep-event-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	justify-items: stretch;
	max-width: 1400px;
}

.ep-event-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	justify-items: stretch;
	max-width: 1600px;
}

.ep-event-single {
	width: 100%;
}

.ep-event-archive-head {
	padding: 2.25rem 0 1rem;
	background: #f8fafc;
}

.ep-event-archive-head h1 {
	margin: 0;
	font-family: sans-serif;
	font-size: clamp(2rem, 4vw, 3rem);
	color: #1e293b;
	text-align: center;
}

.ep-event-archive-grid {
	padding: 2rem 0 4.5rem;
}

.ep-event-archive-grid .ep-event-content-inner {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: none;
}

.ep-event-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: #0f172a;
	overflow: hidden;
}

.ep-event-hero-image {
	display: block;
	width: 100%;
	height: clamp(220px, 42vw, 720px);
	object-fit: cover;
}

.ep-event-content {
	padding: 0;
}

.ep-event-content-inner {
	width: min(1280px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 1rem 0 3rem;
}

.ep-event-card {
	overflow: hidden;
	border: 0;
	border-radius: 28px;
	background: transparent;
	box-shadow: none;
	transition: transform 220ms ease, box-shadow 220ms ease;
	width: 100%;
	max-width: 940px;
	margin: 0 auto;
}

.ep-event-grid-stack .ep-event-card {
	width: 100%;
	max-width: 1120px;
}

.ep-event-grid-3 .ep-event-card,
.ep-event-grid-4 .ep-event-card {
	width: 100%;
}

.ep-event-card:hover {
	transform: translateY(-4px);
}

.ep-event-thumb {
	display: block;
	width: 100%;
	background: transparent;
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
	margin: 0 auto;
}

.ep-event-thumb img {
	display: block;
	width: 100%;
	height: auto;
	position: static;
	object-fit: contain;
	transform: scale(1);
	transition: transform 320ms ease;
}

.ep-event-thumb::after {
	content: none;
}

.ep-event-card:hover .ep-event-thumb img,
.ep-event-card:hover .ep-event-thumb-fallback {
	transform: scale(1.04);
}

.ep-event-thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at top left, rgba(255,255,255,0.22), transparent 30%),
		linear-gradient(135deg, #0f766e, #1d4ed8);
	transform: scale(1);
	transition: transform 320ms ease;
}

.ep-event-thumb-fallback span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 74px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(8px);
	color: #fff;
	font-family: sans-serif;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}


.ep-selector-shell {
	max-width: 1240px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.ep-selector-form {
	border: 1px solid #e2e8f0;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
	overflow: hidden;
	max-width: 1360px;
	margin: 0 auto;
}

.ep-selector-head {
	padding: 1.35rem 1.5rem;
	background: linear-gradient(180deg, #f8fbfd, #eef4f8);
	border-bottom: 1px solid #e2e8f0;
	text-align: center;
}

.ep-selector-head h2 {
	margin: 0;
	font-family: sans-serif;
	font-size: 1.5rem;
	color: #1e293b;
}

.ep-selector-table {
	display: block;
}

.ep-selector-row {
	display: grid !important;
	grid-template-columns: minmax(420px, 1fr) 180px !important;
	column-gap: 2rem;
	align-items: center;
	padding: 1.35rem 1.5rem;
	border-bottom: 1px solid #e2e8f0;
}

.ep-selector-row:last-child {
	border-bottom: 0;
}

.ep-selector-row-head {
	background: linear-gradient(180deg, #f8fafc, #f1f5f9);
	font-family: sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	color: #334155;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ep-selector-row-head > div:last-child {
	text-align: right;
}

.ep-selector-type {
	min-width: 0;
}

.ep-selector-type strong {
	display: block;
	margin-bottom: 0.3rem;
	font-family: sans-serif;
	font-size: 1.08rem;
	line-height: 1.25;
	color: #1e293b;
}

.ep-selector-price {
	margin-bottom: 0.2rem;
	font-family: sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	color: #64748b;
}

.ep-selector-type span {
	display: block;
	color: #94a3b8;
	font-style: italic;
	font-size: 0.9rem;
	line-height: 1.45;
}

.ep-selector-qty select {
	width: 100%;
	min-height: 54px;
	padding: 0.8rem 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	background: #fff;
	font-family: sans-serif;
	font-size: 1rem;
	color: #0f172a;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ep-selector-qty {
	width: 100%;
	max-width: 180px;
	justify-self: end;
}

.ep-selector-footer {
	display: flex;
	justify-content: center;
	padding: 1.75rem 1.5rem;
	background: #fff;
}

.ep-selector-submit.button {
	min-width: 260px;
	min-height: 60px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(180deg, #ffcb2f, #f7b500);
	color: #111827;
	font-family: sans-serif;
	font-size: 1.05rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	box-shadow: 0 12px 24px rgba(247, 181, 0, 0.24);
}

.ep-ticket-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1rem;
	padding: 1.25rem;
	border: 1px solid #d9dde3;
	border-radius: 22px;
	background:
		linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.65)),
		#fff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.ep-ticket-card-main {
	flex: 1;
}

.ep-ticket-number {
	margin: 0.35rem 0 0.6rem;
	font-size: 1rem;
	letter-spacing: 0.06em;
}

.ep-ticket-number-large {
	margin-top: 0;
	font-size: 1.2rem;
}

.ep-ticket-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	color: #475569;
	font-size: 0.94rem;
}

.ep-ticket-actions .button {
	white-space: nowrap;
}

.ep-ticket-page {
	background:
		radial-gradient(circle at top left, rgba(15, 118, 110, 0.22), transparent 35%),
		radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.14), transparent 30%),
		linear-gradient(135deg, #f7fafc 0%, #edf7f1 100%);
	font-family: Georgia, "Times New Roman", serif;
	margin: 0;
}

.ep-ticket-shell {
	max-width: 980px;
	margin: 0 auto;
	padding: 4rem 1rem;
}

.ep-ticket-detail {
	position: relative;
	padding: 1.5rem;
	border: 1px solid rgba(148, 163, 184, 0.28);
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
	backdrop-filter: blur(8px);
}

.ep-ticket-event-hero {
	overflow: hidden;
	margin: -1.5rem -1.5rem 1.25rem;
	border-radius: 28px 28px 0 0;
	background: #e2e8f0;
}

.ep-ticket-event-image {
	display: block;
	width: 100%;
	height: auto;
}

.ep-ticket-badge {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	background: #0f766e;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ep-ticket-badge-used,
.ep-ticket-badge-inactive {
	background: #dc2626;
}

.ep-ticket-badge-inline {
	margin-bottom: 0.75rem;
}

.ep-ticket-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.ep-ticket-brand {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.ep-ticket-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 18px;
	background: linear-gradient(135deg, #0f766e, #115e59);
	color: #fff;
	font-family: sans-serif;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.ep-ticket-brand-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	min-width: 112px;
	min-height: 56px;
}

.ep-ticket-brand-logo img {
	display: block;
	width: auto;
	max-width: 112px;
	max-height: 58px;
	object-fit: contain;
}

.ep-ticket-eyebrow {
	margin: 0 0 0.3rem;
	color: #0f766e;
	font-family: sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ep-ticket-top h1 {
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	line-height: 1.08;
	color: #0f172a;
}

.ep-ticket-board {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(260px, 320px);
	gap: 1.25rem;
	padding: 1.2rem;
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96));
	border: 1px dashed rgba(15, 118, 110, 0.3);
}

.ep-ticket-info {
	min-width: 0;
}

.ep-ticket-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

.ep-ticket-field {
	padding: 0.9rem 1rem;
	border-radius: 18px;
	background: #fff;
	border: 1px solid #e2e8f0;
}

.ep-ticket-field span {
	display: block;
	margin-bottom: 0.35rem;
	color: #64748b;
	font-family: sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ep-ticket-field strong {
	display: block;
	color: #0f172a;
	font-family: sans-serif;
	font-size: 0.98rem;
	line-height: 1.45;
	word-break: break-word;
}

.ep-ticket-field-wide {
	grid-column: 1 / -1;
}

.ep-ticket-qr-wrap {
	padding: 1rem;
	border-radius: 22px;
	background: #fff;
	border: 1px solid #d9dde3;
	text-align: center;
}

.ep-ticket-qr {
	display: block;
	width: 260px;
	height: 260px;
	margin: 0 auto 1rem;
	padding: 0.8rem;
	border-radius: 20px;
	background: #fff;
	box-shadow: inset 0 0 0 1px #e2e8f0;
}

.ep-ticket-qr-note {
	margin: 0;
	color: #475569;
	font-family: sans-serif;
	font-size: 0.92rem;
	line-height: 1.45;
}

.ep-ticket-link {
	margin: 1.1rem 0 0;
	word-break: break-all;
	text-align: center;
	font-family: sans-serif;
	font-size: 0.92rem;
}

.ep-admin-search {
	margin: 1rem 0 1.25rem;
}

.ep-admin-search input[type="search"] {
	min-width: 320px;
}

.ep-admin-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	padding: 1rem;
	border: 1px solid #d9dde3;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.ep-admin-filters select {
	min-width: 180px;
}

.ep-admin-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.8rem;
	max-width: 860px;
	margin: 1rem 0;
}

.ep-admin-summary-card {
	padding: 1rem;
	border: 1px solid #d9dde3;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.ep-admin-summary-card span {
	display: block;
	margin-bottom: 0.35rem;
	color: #64748b;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ep-admin-summary-card strong {
	color: #111827;
	font-size: 1.8rem;
	line-height: 1;
}

.ep-admin-summary-card.is-active strong {
	color: #0f766e;
}

.ep-admin-summary-card.is-used strong {
	color: #dc2626;
}

.ep-admin-event-group {
	overflow: hidden;
	margin: 1.25rem 0;
	border: 1px solid #d9dde3;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.ep-admin-event-head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	padding: 1rem 1.1rem;
	border-bottom: 1px solid #e5e7eb;
	background: linear-gradient(135deg, #f8fafc 0%, #eef6f7 100%);
}

.ep-admin-event-head h2 {
	margin: 0;
	color: #111827;
	font-size: 1.05rem;
}

.ep-admin-event-head span {
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: #0f172a;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
}

.ep-admin-ticket-table {
	border: 0;
	box-shadow: none;
}

.ep-admin-ticket-table td,
.ep-admin-ticket-table th {
	vertical-align: middle;
}

.ep-admin-ticket-table code {
	display: inline-block;
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
	white-space: nowrap;
}

.ep-admin-status-badge {
	display: inline-flex;
	width: auto;
	padding: 0.25rem 0.6rem;
	font-size: 0.72rem;
}

.ep-admin-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.ep-admin-delete-ticket {
	border-color: #dc2626 !important;
	color: #b91c1c !important;
}

.ep-admin-delete-ticket:hover,
.ep-admin-delete-ticket:focus {
	border-color: #b91c1c !important;
	background: #fef2f2 !important;
	color: #991b1b !important;
}

.ep-admin-empty {
	padding: 1rem;
	border: 1px solid #d9dde3;
	border-radius: 14px;
	background: #fff;
	color: #475569;
}

@media (max-width: 782px) {
	.ep-admin-summary {
		grid-template-columns: 1fr;
	}

	.ep-admin-filters input[type="search"],
	.ep-admin-filters select,
	.ep-admin-filters .button {
		width: 100%;
		max-width: none;
	}

	.ep-admin-event-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.ep-admin-row-actions .button {
		width: 100%;
		text-align: center;
	}
}

.ep-ticket-logo-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 240px;
	min-height: 92px;
	margin: 0 0 0.75rem;
	padding: 1rem;
	border: 1px solid #d9dde3;
	border-radius: 14px;
	background: #fff;
	color: #64748b;
}

.ep-ticket-logo-preview img {
	display: block;
	max-width: 210px;
	max-height: 72px;
	object-fit: contain;
}

.ep-validator-shell {
	max-width: 720px;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
}

.ep-validator-card {
	border: 1px solid #d9dde3;
	border-radius: 22px;
	padding: 1.25rem;
	background: #fff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.ep-validator-header h2 {
	margin-bottom: 0.35rem;
}

.ep-validator-header p {
	margin-top: 0;
	color: #475569;
}

.ep-validator-header-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.ep-validator-logout {
	white-space: nowrap;
	border-radius: 999px;
}

.ep-validator-feedback {
	display: none;
	margin: 1rem 0;
	padding: 0.85rem 1rem;
	border-radius: 14px;
	font-weight: 600;
}

.ep-validator-feedback.is-visible {
	display: block;
}

.ep-validator-feedback.is-success {
	background: #ecfdf5;
	color: #166534;
}

.ep-validator-feedback.is-warning {
	background: #fff7ed;
	color: #9a3412;
}

.ep-validator-feedback.is-error {
	background: #fef2f2;
	color: #b91c1c;
}

.ep-validator-result {
	margin: 1rem 0;
}

.ep-validator-ticket-card {
	border: 1px solid #d9dde3;
	border-radius: 18px;
	padding: 1rem;
	background: #f8fafc;
}

.ep-validator-ticket-card h3 {
	margin-top: 0;
	margin-bottom: 1rem;
}

.ep-validator-row {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid #e2e8f0;
}

.ep-validator-row:last-of-type {
	border-bottom: 0;
}

.ep-validator-row span {
	font-size: 0.82rem;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ep-qr-reader {
	overflow: hidden;
	border-radius: 18px;
	background: #0f172a;
}

.ep-qr-reader video {
	border-radius: 18px;
}

.ep-validator-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1rem 0;
}

.ep-validator-form {
	display: grid;
	gap: 0.75rem;
}

.ep-validator-form input[type="text"] {
	width: 100%;
	min-height: 46px;
	padding: 0.7rem 0.85rem;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
}

.ep-validator-login-card {
	max-width: 460px;
	margin: 2rem auto;
}

.ep-validator-login-card form {
	display: grid;
	gap: 0.85rem;
}

.ep-validator-login-card label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.ep-validator-login-card input[type="text"],
.ep-validator-login-card input[type="password"] {
	width: 100%;
	min-height: 46px;
	padding: 0.7rem 0.85rem;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
}

.ep-validator-login-card .login-submit {
	margin: 0;
}

.ep-validator-login-card .button-primary {
	width: 100%;
	min-height: 46px;
	border-radius: 12px;
}

@media (max-width: 640px) {
	.ep-event-grid,
	.ep-event-grid-3,
	.ep-event-grid-4 {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 1.15rem;
	}

	.ep-event-card {
		max-width: 100%;
	}

	.ep-event-hero-image {
		height: 200px;
	}

	.ep-event-content-inner {
		width: calc(100% - 1.25rem);
		padding: 0.75rem 0 2rem;
	}

	.ep-selector-row,
	.ep-selector-row-head {
		grid-template-columns: 1fr !important;
	}

	.ep-selector-row-head {
		display: grid !important;
	}

	.ep-selector-row {
		gap: 0.75rem;
	}

	.ep-selector-qty {
		max-width: none;
		justify-self: stretch;
	}

	.ep-selector-footer {
		padding: 1rem;
	}

	.ep-selector-submit.button {
		width: 100%;
	}

	.ep-ticket-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.ep-ticket-top {
		flex-direction: column;
	}

	.ep-ticket-brand {
		align-items: flex-start;
	}

	.ep-ticket-board {
		grid-template-columns: 1fr;
	}

	.ep-ticket-grid {
		grid-template-columns: 1fr;
	}

	.ep-ticket-qr {
		width: 220px;
		height: 220px;
	}

	.ep-validator-card {
		padding: 1rem;
	}

	.ep-validator-actions {
		flex-direction: column;
	}

	.ep-validator-actions .button,
	.ep-validator-form .button {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	.ep-validator-header-top {
		flex-direction: column;
	}

	.ep-validator-logout {
		width: 100%;
		text-align: center;
	}
}
