:root {
	--det-red: #ef3344;
	--det-red-dark: #d51f33;
	--det-ink: #141b2d;
	--det-muted: #5f6b85;
	--det-line: #d8dfec;
	--det-surface: rgba(255, 255, 255, 0.92);
}

.det-event-card,
.det-thank-you {
	border: 1px solid var(--det-line);
	border-radius: 18px;
	padding: 28px 24px;
	background: var(--det-surface);
	box-shadow: 0 18px 38px rgba(20, 27, 45, 0.08);
	margin: 24px 0;
	backdrop-filter: blur(6px);
}

.det-event-card__meta {
	display: grid;
	gap: 10px;
}

.det-event-card__title {
	margin: 0;
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	line-height: 0.95;
	letter-spacing: -0.03em;
	font-weight: 800;
	color: var(--det-ink);
	text-transform: uppercase;
}

.det-event-card__price {
	margin: 0;
	font-size: 2rem;
	line-height: 1;
	font-weight: 800;
	color: var(--det-ink);
}

.det-event-card__tax {
	display: inline-block;
	margin-left: 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--det-muted);
}

.det-event-card__availability {
	margin: 0;
	font-size: 1rem;
	color: var(--det-muted);
}

.det-event-card__copy {
	margin: 2px 0 0;
	display: inline-block;
	padding: 0;
	background: transparent !important;
	color: var(--det-red-dark) !important;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	box-shadow: none !important;
}

.det-event-form {
	margin-top: 24px;
	display: grid;
	gap: 14px;
	justify-items: stretch;
}

.det-event-form__row {
	display: grid;
	gap: 8px;
	width: min(100%, 620px);
}

.det-event-form__row--compact {
	max-width: 240px;
	justify-items: center;
	margin: 0 auto;
}

.det-event-form__row--wide {
	max-width: 620px;
}

.det-event-form__row label {
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--det-ink);
}

.det-event-form__row--compact label {
	text-align: center;
}

.det-event-form__input {
	width: 100%;
	height: 46px;
	padding: 10px 14px;
	border-radius: 14px;
	border: 1px solid var(--det-line);
	background: #ffffff;
	color: var(--det-ink);
	font-size: 0.98rem;
	line-height: 1.2;
}

.det-event-form__input:focus {
	outline: none;
	border-color: var(--det-red);
	box-shadow: 0 0 0 3px rgba(239, 51, 68, 0.16);
}

.det-quantity {
	display: grid;
	grid-template-columns: 48px 82px 48px;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.det-quantity__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: var(--det-red);
	color: #ffffff;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 18px rgba(239, 51, 68, 0.28);
	transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.det-quantity__button:hover:not([disabled]),
.det-quantity__button:focus-visible:not([disabled]) {
	background: var(--det-red-dark);
	transform: translateY(-1px);
	box-shadow: 0 14px 22px rgba(239, 51, 68, 0.34);
	outline: none;
}

.det-quantity__button[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
}

.det-quantity__input {
	width: 82px;
	height: 44px;
	padding: 8px 10px;
	border-radius: 14px;
	border: 1px solid var(--det-line);
	background: #ffffff;
	color: var(--det-ink);
	text-align: center;
	font-size: 1rem;
	font-weight: 700;
	appearance: textfield;
	-moz-appearance: textfield;
}

.det-quantity__input::-webkit-outer-spin-button,
.det-quantity__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.det-event-form__button {
	width: min(100%, 620px);
	margin-top: 10px;
	border: 0;
	border-radius: 12px;
	background: var(--det-red);
	color: #ffffff;
	padding: 15px 18px;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	box-shadow: 0 14px 28px rgba(239, 51, 68, 0.24);
	transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.det-event-form__button:hover:not([disabled]),
.det-event-form__button:focus-visible:not([disabled]) {
	background: var(--det-red-dark);
	transform: translateY(-1px);
	box-shadow: 0 18px 32px rgba(239, 51, 68, 0.32);
	outline: none;
}

.det-event-form__button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
}

.det-event-form__policies {
	width: min(100%, 620px);
	border: 1px solid var(--det-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.78);
	overflow: hidden;
}

.det-event-form__policies-toggle {
	cursor: pointer;
	list-style: none;
	padding: 16px 18px;
	font-size: 0.94rem;
	font-weight: 700;
	color: var(--det-ink);
}

.det-event-form__policies-toggle::-webkit-details-marker {
	display: none;
}

.det-event-form__policies-body {
	display: grid;
	gap: 14px;
	padding: 0 18px 18px;
	color: var(--det-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

.det-event-form__policy {
	display: grid;
	gap: 6px;
}

.det-event-form__policy strong {
	color: var(--det-ink);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.det-event-form__policy p,
.det-event-form__policy-contact {
	margin: 0;
}

.det-event-form__policy-contact a {
	color: var(--det-red-dark);
	font-weight: 700;
	text-decoration: none;
}

.det-event-form__policy-contact a:hover,
.det-event-form__policy-contact a:focus-visible {
	text-decoration: underline;
}

.det-event-form__consent {
	width: min(100%, 620px);
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 12px;
	align-items: start;
	color: var(--det-ink);
	font-size: 0.93rem;
	line-height: 1.5;
}

.det-event-form__consent input {
	margin: 2px 0 0;
	width: 18px;
	height: 18px;
	accent-color: var(--det-red);
}

.det-event-form__message,
.det-event-card__notice {
	margin: 0;
	min-height: 24px;
	font-size: 0.92rem;
	color: var(--det-muted);
}

.det-event-card__notice--warning,
.det-thank-you--warning {
	background: linear-gradient(180deg, #fff8e6 0%, #fffbf1 100%);
	border-color: #f5c451;
}

.det-thank-you--success {
	background: linear-gradient(180deg, #ecfdf3 0%, #f5fffa 100%);
	border-color: #7ad8a5;
}

.det-thank-you--error {
	background: linear-gradient(180deg, #fff1f1 0%, #fff8f8 100%);
	border-color: #f2a6a6;
}

.det-ticket-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-top: 22px;
}

.det-ticket-summary div {
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid var(--det-line);
	background: rgba(255, 255, 255, 0.78);
}

.det-ticket-summary strong {
	display: block;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--det-muted);
	margin-bottom: 6px;
}

.det-ticket-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin-top: 24px;
}

.det-ticket-card {
	border-radius: 18px;
	border: 1px solid var(--det-line);
	background: rgba(255, 255, 255, 0.88);
	padding: 18px;
	box-shadow: 0 12px 28px rgba(20, 27, 45, 0.08);
}

.det-ticket-card--checked_in {
	border-color: #9fb7ff;
	background: linear-gradient(180deg, #f4f7ff 0%, #fbfcff 100%);
}

.det-ticket-card--void {
	border-color: #f2b1b1;
	background: linear-gradient(180deg, #fff4f4 0%, #fff9f9 100%);
}

.det-ticket-card__header {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	align-items: flex-start;
}

.det-ticket-card__eyebrow {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--det-muted);
}

.det-ticket-card h4 {
	margin: 4px 0 0;
	font-size: 1.15rem;
	line-height: 1.15;
	color: var(--det-ink);
}

.det-ticket-card__status {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	background: #ecfdf3;
	color: #047857;
}

.det-ticket-card--checked_in .det-ticket-card__status {
	background: #eef2ff;
	color: #4338ca;
}

.det-ticket-card--void .det-ticket-card__status {
	background: #fef2f2;
	color: #b91c1c;
}

.det-ticket-card__qr {
	display: flex;
	justify-content: center;
	margin-top: 18px;
}

.det-ticket-card__qr img {
	width: min(220px, 100%);
	height: auto;
	border-radius: 16px;
	background: #fff;
	padding: 10px;
	box-shadow: 0 12px 26px rgba(20, 27, 45, 0.12);
}

.det-ticket-card__meta {
	margin-top: 14px;
	color: var(--det-muted);
	font-size: 0.92rem;
	line-height: 1.55;
}

.det-ticket-card__meta p {
	margin: 0;
}

.det-checkin-gate .det-event-form__button,
.det-checkin-selector .det-event-form__button,
.det-checkin-page .det-event-form__button {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.det-checkin-selector__form,
.det-checkin-page__event-form {
	display: grid;
	gap: 12px;
	width: min(100%, 420px);
	margin-top: 18px;
}

.det-checkin-page {
	padding: 28px 24px;
}

.det-checkin-page__intro {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.det-checkin-page__eyebrow {
	margin: 0 0 10px;
	color: var(--det-red-dark);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.det-checkin-page__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 14px;
	margin-top: 22px;
}

.det-checkin-page__summary div {
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid var(--det-line);
}

.det-checkin-page__summary strong {
	display: block;
	font-size: 1.45rem;
	line-height: 1;
	color: var(--det-ink);
}

.det-checkin-page__summary span {
	display: block;
	margin-top: 6px;
	color: var(--det-muted);
	font-size: 0.88rem;
}

.det-checkin-grid {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
	gap: 22px;
	margin-top: 24px;
}

.det-checkin-panel,
.det-checkin-result,
.det-checkin-log {
	border-radius: 18px;
	border: 1px solid var(--det-line);
	background: rgba(255, 255, 255, 0.82);
	padding: 18px;
}

.det-checkin-panel video {
	display: block;
	width: 100%;
	border-radius: 16px;
	background: #111827;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.det-checkin-actions,
.det-checkin-form {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.det-checkin-button {
	width: 100%;
}

.det-checkin-button--ghost {
	background: #ffffff;
	color: var(--det-ink);
	box-shadow: none;
	border: 1px solid var(--det-line);
}

.det-checkin-button--ghost:hover:not([disabled]),
.det-checkin-button--ghost:focus-visible:not([disabled]) {
	background: #f6f7fb;
	color: var(--det-ink);
	box-shadow: none;
}

.det-checkin-side {
	display: grid;
	gap: 18px;
}

.det-checkin-result h4,
.det-checkin-log h4 {
	margin: 0 0 12px;
	font-size: 1.1rem;
	color: var(--det-ink);
}

.det-checkin-result p {
	margin: 0;
	color: var(--det-muted);
}

.det-checkin-result[data-result="ok"] {
	border-color: #6fd49a;
	background: linear-gradient(180deg, #eefdf4 0%, #fbfffd 100%);
}

.det-checkin-result[data-result="duplicate"] {
	border-color: #f4c05d;
	background: linear-gradient(180deg, #fff9ea 0%, #fffdfa 100%);
}

.det-checkin-result[data-result="pending"] {
	border-color: #5f8df7;
	background: linear-gradient(180deg, #f3f7ff 0%, #fcfdff 100%);
}

.det-checkin-result[data-result="void"],
.det-checkin-result[data-result="invalid"] {
	border-color: #f2a6a6;
	background: linear-gradient(180deg, #fff3f3 0%, #fffafa 100%);
}

.det-checkin-log {
	overflow-x: auto;
}

.det-checkin-log__table {
	width: 100%;
	border-collapse: collapse;
}

.det-checkin-log__table th,
.det-checkin-log__table td {
	padding: 10px 8px;
	border-top: 1px solid var(--det-line);
	text-align: left;
	vertical-align: top;
	font-size: 0.9rem;
}

.det-checkin-log__table th {
	border-top: 0;
	color: var(--det-muted);
	font-size: 0.76rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.det-checkin-log__undo {
	border: 0;
	border-radius: 999px;
	background: var(--det-ink);
	color: #fff;
	padding: 8px 12px;
	font-weight: 700;
	cursor: pointer;
}

.det-scan-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.det-scan-pill--valid {
	background: #ecfdf3;
	color: #047857;
}

.det-scan-pill--duplicate {
	background: #fff4dd;
	color: #b45309;
}

.det-scan-pill--void,
.det-scan-pill--invalid {
	background: #fef2f2;
	color: #b91c1c;
}

.det-scan-pill--reverted {
	background: #eef2ff;
	color: #4338ca;
}

.det-checkin-review {
	display: grid;
	gap: 12px;
	margin-top: 12px;
}

.det-checkin-review__payload {
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px dashed #8ea8ea;
	background: rgba(255, 255, 255, 0.82);
	color: var(--det-ink);
	font-family: monospace;
	font-size: 0.92rem;
	word-break: break-all;
}

.det-checkin-review__buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.det-checkin-review__action {
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 16px;
	border-radius: 12px;
	border: 1px solid var(--det-line);
	background: #ffffff;
	color: var(--det-ink);
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.det-checkin-review__action[data-det-accept-pending] {
	background: var(--det-red);
	border-color: var(--det-red);
	color: #ffffff;
}

.det-checkin-review__action[data-det-accept-pending]:hover,
.det-checkin-review__action[data-det-accept-pending]:focus-visible {
	background: var(--det-red-dark);
	border-color: var(--det-red-dark);
	outline: none;
}

.det-checkin-review__action[data-det-cancel-pending]:hover,
.det-checkin-review__action[data-det-cancel-pending]:focus-visible {
	background: #f6f7fb;
	outline: none;
}

.det-partner-status {
	display: grid;
	gap: 24px;
}

.det-partner-status__header {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.det-partner-status__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
}

.det-partner-status__summary div,
.det-partner-status__progress,
.det-partner-status__meta {
	padding: 16px 18px;
	border-radius: 16px;
	border: 1px solid var(--det-line);
	background: rgba(255, 255, 255, 0.78);
}

.det-partner-status__summary strong {
	display: block;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--det-ink);
}

.det-partner-status__summary span {
	display: block;
	margin-top: 6px;
	color: var(--det-muted);
	font-size: 0.9rem;
}

.det-partner-status__progress-top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: baseline;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.det-partner-status__progress-top strong {
	color: var(--det-ink);
	font-size: 1rem;
}

.det-partner-status__progress-top span {
	color: var(--det-muted);
	font-size: 0.9rem;
}

.det-partner-status__bar {
	position: relative;
	height: 16px;
	border-radius: 999px;
	background: #e8edf5;
	overflow: hidden;
}

.det-partner-status__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #ef3344 0%, #ff8a5b 100%);
}

.det-partner-status__milestones {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.det-partner-status__milestone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: 1px solid var(--det-line);
	background: #f8fafc;
	color: var(--det-muted);
}

.det-partner-status__milestone--reached {
	background: #ecfdf3;
	border-color: #9ad6b3;
	color: #047857;
}

.det-partner-status__milestone--next {
	background: #fff4dd;
	border-color: #f4c05d;
	color: #b45309;
}

.det-partner-status__meta {
	display: grid;
	gap: 10px;
}

.det-partner-status__meta p {
	margin: 0;
	color: var(--det-muted);
}

.det-partner-status__share-label {
	display: block;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--det-ink);
}

@media (max-width: 640px) {
	.det-event-card,
	.det-thank-you {
		padding: 22px 18px;
	}

	.det-event-form__row {
		max-width: 100%;
	}

	.det-quantity {
		grid-template-columns: 46px 76px 46px;
		gap: 10px;
	}

	.det-quantity__button {
		width: 46px;
		height: 42px;
	}

	.det-quantity__input {
		width: 76px;
		height: 42px;
	}

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

	.det-checkin-grid {
		grid-template-columns: 1fr;
	}

	.det-checkin-page__intro {
		flex-direction: column;
	}

	.det-partner-status__header,
	.det-partner-status__progress-top {
		flex-direction: column;
	}
}
