/* ==========================================================================
   Platform — Tickets
   The die-cut ticket component, its lists, the buy form and the bare
   scan / print documents.

   Loaded by inc/tickets.php only on pages that actually render a ticket
   (`semnan_ticket_enqueue()`), so it never costs anything elsewhere.

   Palette is the site's own:
     navy #102a71 · navy-dark #001840 · gold #f5c400 · cream #fffdf0
   No `!important` anywhere — every rule is scoped under a .tk-* block at a
   specificity the theme cannot beat by accident.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Tokens
   Defined on every possible host so a ticket dropped anywhere (an Elementor
   html widget, a shortcode in a course, the bare doc) always resolves.
   -------------------------------------------------------------------------- */
.tk-ticket,
.tk-list,
.tk-forms,
.tk-card,
.tk-buy,
.tk-fields,
.tk-empty,
.tk-gate,
.tk-doc,
.tk-doc__wrap,
.tk-page {
	--tk-navy: #102a71;
	--tk-navy-dark: #001840;
	--tk-gold: #f5c400;
	--tk-gold-deep: #d9a900;
	--tk-gold-light: #ffe680;
	--tk-cream: #fffdf0;
	--tk-ink: #16224a;
	--tk-muted: #5c6575;
	--tk-card: #ffffff;
	--tk-soft: #f4f5f8;
	--tk-line: rgba(16, 42, 113, .12);
	--tk-line-strong: rgba(16, 42, 113, .2);
	--tk-ok: #1a7f45;
	--tk-danger: #b81c23;
	--tk-radius: 26px;
	--tk-shadow: 0 30px 60px -40px rgba(0, 24, 64, .58);
	--tk-shadow-soft: 0 16px 34px -26px rgba(0, 24, 64, .55);
	--tk-ease: cubic-bezier(.32, .72, 0, 1);
}

/* Screen-reader-only text. Appended to <body> by tickets.js, so it must live
   outside the .tk-* scoping above. */
.tk-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.tk-ticket,
.tk-ticket *,
.tk-list *,
.tk-forms *,
.tk-card *,
.tk-buy *,
.tk-fields *,
.tk-empty *,
.tk-gate *,
.tk-page *,
.tk-card::before,
.tk-card::after {
	box-sizing: border-box;
}

.tk-svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	display: block;
}

/* --------------------------------------------------------------------------
   1. The ticket
   -------------------------------------------------------------------------- */
.tk-ticket {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	overflow: hidden;
	border-radius: var(--tk-radius);
	background:
		radial-gradient(680px 300px at 88% -40%, rgba(245, 196, 0, .16), transparent 62%),
		radial-gradient(520px 280px at 8% 140%, rgba(16, 42, 113, .1), transparent 70%),
		var(--tk-card);
	border: 1px solid var(--tk-line);
	box-shadow: var(--tk-shadow);
	font-family: inherit;
	color: var(--tk-ink);
	isolation: isolate;
}

.tk-ticket::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--tk-navy) 0%, var(--tk-navy) 38%, var(--tk-gold) 38%, var(--tk-gold) 100%);
	z-index: 2;
}

.tk-ticket__sheen {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .55) 46%, transparent 60%);
	opacity: .7;
	animation: tk-sheen 9s var(--tk-ease) infinite;
}

@keyframes tk-sheen {
	0%, 100% { transform: translateX(-16%); opacity: .35; }
	50%      { transform: translateX(16%);  opacity: .75; }
}

.tk-ticket__main {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 26px 26px 20px;
}

.tk-ticket__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tk-ticket__brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.tk-ticket__mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: linear-gradient(150deg, var(--tk-navy), var(--tk-navy-dark));
	color: var(--tk-gold);
	box-shadow: 0 10px 20px -12px rgba(0, 24, 64, .85);
}

.tk-ticket__mark .tk-svg {
	width: 19px;
	height: 19px;
}

.tk-ticket__org {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--tk-navy);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tk-ticket__kind {
	flex: 0 0 auto;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(245, 196, 0, .18);
	color: #6b5200;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .02em;
	white-space: nowrap;
}

.tk-ticket__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.55;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--tk-navy-dark);
	overflow-wrap: anywhere;
}

.tk-ticket__venue {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: -4px 0 0;
	font-size: 12.5px;
	line-height: 1.9;
	color: var(--tk-muted);
}

.tk-ticket__venue-ico {
	width: 15px;
	height: 15px;
	margin-top: 3px;
	color: var(--tk-navy);
	opacity: .65;
}

/* meta row ---------------------------------------------------------------- */
.tk-ticket__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
}

.tk-meta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 12px;
	background: var(--tk-soft);
	border: 1px solid rgba(16, 42, 113, .06);
	min-width: 0;
}

.tk-meta__ico {
	width: 15px;
	height: 15px;
	color: var(--tk-navy);
	opacity: .8;
}

.tk-meta__k {
	font-size: 11px;
	font-weight: 600;
	color: var(--tk-muted);
}

.tk-meta__v {
	font-size: 12.5px;
	font-weight: 800;
	color: var(--tk-navy-dark);
	overflow-wrap: anywhere;
}

.tk-meta--permanent .tk-meta__v {
	color: var(--tk-ok);
}

/* answers ----------------------------------------------------------------- */
.tk-ticket__answers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 6px 18px;
	margin: 0;
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(255, 253, 240, .7);
	border: 1px dashed var(--tk-line-strong);
}

.tk-ans {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
	padding: 3px 0;
}

.tk-ans__k {
	flex: 0 0 auto;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--tk-muted);
}

.tk-ans__k::after {
	content: ":";
	margin-inline-start: 1px;
	color: var(--tk-line-strong);
}

.tk-ans__v {
	margin: 0;
	min-width: 0;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--tk-navy-dark);
	overflow-wrap: anywhere;
}

.tk-ans__p {
	display: inline-block;
	margin-inline-start: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(245, 196, 0, .22);
	color: #6b5200;
	font-size: 10.5px;
	font-weight: 800;
	white-space: nowrap;
}

/* foot -------------------------------------------------------------------- */
.tk-ticket__foot {
	margin-top: auto;
	padding-top: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	border-top: 1px solid var(--tk-line);
}

.tk-ticket__acts {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.tk-ico {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 7px 11px;
	border: 1px solid var(--tk-line);
	border-radius: 10px;
	background: #fff;
	color: var(--tk-navy);
	font: inherit;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s var(--tk-ease), color .2s var(--tk-ease), border-color .2s var(--tk-ease), transform .2s var(--tk-ease);
}

.tk-ico .tk-svg {
	width: 15px;
	height: 15px;
}

.tk-ico:hover,
.tk-ico:focus-visible {
	background: var(--tk-navy);
	border-color: var(--tk-navy);
	color: #fff;
	transform: translateY(-1px);
}

.tk-ico:focus-visible {
	outline: 2px solid var(--tk-gold);
	outline-offset: 2px;
}

.tk-ico__t {
	white-space: nowrap;
}

.tk-ico.is-copied {
	background: var(--tk-ok);
	border-color: var(--tk-ok);
	color: #fff;
}

.tk-ticket__serial {
	font-size: 11px;
	font-weight: 600;
	color: var(--tk-muted);
	white-space: nowrap;
}

/* the stub ---------------------------------------------------------------- */
.tk-ticket__stub {
	position: relative;
	z-index: 1;
	flex: 0 0 208px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 22px 18px;
	border-inline-start: 1px dashed rgba(16, 42, 113, .24);
	background:
		linear-gradient(180deg, rgba(16, 42, 113, .045), rgba(245, 196, 0, .07)),
		#fbfbfd;
	text-align: center;
}

.tk-ticket__perf {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.tk-ticket__perf::before,
.tk-ticket__perf::after {
	content: "";
	position: absolute;
	inset-inline-start: -4px;
	width: 7px;
	height: 26px;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(245, 196, 0, .85), rgba(245, 196, 0, .05));
}

.tk-ticket__perf::before { top: 14px; }
.tk-ticket__perf::after  { bottom: 14px; background: linear-gradient(0deg, rgba(245, 196, 0, .85), rgba(245, 196, 0, .05)); }

.tk-qr {
	position: relative;
	display: grid;
	place-items: center;
	width: 132px;
	height: 132px;
	padding: 8px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 26px -18px rgba(0, 24, 64, .8);
	border: 1px solid var(--tk-line);
}

.tk-qr canvas,
.tk-qr img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.tk-qr__fallback {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--tk-navy);
	opacity: .28;
	pointer-events: none;
}

.tk-qr__fallback-ico {
	width: 54px;
	height: 54px;
}

.tk-qr.is-failed .tk-qr__fallback {
	opacity: .8;
}

.tk-qr.is-ready .tk-qr__fallback {
	display: none;
}

.tk-ticket__code-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--tk-muted);
	text-transform: uppercase;
}

.tk-ticket__code {
	display: block;
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
	font-size: 27px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: .16em;
	padding-inline-start: .16em;
	background: linear-gradient(135deg, #8a6a00 0%, var(--tk-gold) 34%, var(--tk-gold-light) 50%, var(--tk-gold-deep) 72%, #8a6a00 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--tk-gold-deep);
	direction: ltr;
	unicode-bidi: isolate;
}

.tk-ticket__status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .02em;
	background: rgba(26, 127, 69, .12);
	color: var(--tk-ok);
	white-space: nowrap;
}

.tk-ticket__status::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

/* status variants --------------------------------------------------------- */
.tk-ticket--used .tk-ticket__status {
	background: rgba(16, 42, 113, .1);
	color: var(--tk-navy);
}

.tk-ticket--expired .tk-ticket__status,
.tk-ticket--cancelled .tk-ticket__status {
	background: rgba(184, 28, 35, .1);
	color: var(--tk-danger);
}

.tk-ticket--expired .tk-ticket__code,
.tk-ticket--cancelled .tk-ticket__code {
	background: none;
	-webkit-text-fill-color: var(--tk-muted);
	color: var(--tk-muted);
}

.tk-ticket--expired .tk-ticket__sheen,
.tk-ticket--cancelled .tk-ticket__sheen {
	animation: none;
	opacity: .12;
}

.tk-ticket--expired::after,
.tk-ticket--cancelled::after,
.tk-ticket--used::after {
	content: "منقضی";
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	font-size: 92px;
	font-weight: 900;
	letter-spacing: -.04em;
	color: rgba(184, 28, 35, .07);
	transform: rotate(-14deg);
	pointer-events: none;
}

.tk-ticket--cancelled::after { content: "لغو شده"; font-size: 68px; }
.tk-ticket--used::after      { content: "استفاده شده"; font-size: 56px; color: rgba(16, 42, 113, .07); }

/* compact (the account list) --------------------------------------------- */
.tk-ticket--compact .tk-ticket__main {
	padding: 20px 20px 16px;
	gap: 9px;
}

.tk-ticket--compact .tk-ticket__title {
	font-size: 16.5px;
}

.tk-ticket--compact .tk-ticket__stub {
	flex-basis: 178px;
	padding: 16px 12px;
}

.tk-ticket--compact .tk-qr {
	width: 112px;
	height: 112px;
	padding: 6px;
}

.tk-ticket--compact .tk-ticket__code {
	font-size: 23px;
}

.tk-ticket--compact .tk-ticket__answers {
	padding: 10px 12px;
	gap: 4px 14px;
}

.tk-ticket--compact .tk-ticket__serial {
	display: none;
}

.tk-ticket--compact::after {
	font-size: 64px;
}

/* the print document ----------------------------------------------------- */
.tk-ticket--print {
	box-shadow: none;
	border: 1px solid rgba(16, 42, 113, .22);
	border-radius: 20px;
	background: #fff;
}

.tk-ticket--print .tk-ticket__sheen {
	display: none;
}

.tk-ticket--print .tk-ticket__title {
	font-size: 24px;
}

.tk-ticket--print .tk-ticket__stub {
	flex-basis: 230px;
}

/* --------------------------------------------------------------------------
   2. Lists
   -------------------------------------------------------------------------- */
.tk-list {
	width: 100%;
	margin: 0 0 26px;
	font-family: inherit;
	color: var(--tk-ink);
}

.tk-list__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
	flex-wrap: wrap;
}

.tk-list__title {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--tk-navy-dark);
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.tk-list__title::before {
	content: "";
	width: 5px;
	height: 20px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--tk-gold), var(--tk-gold-deep));
}

.tk-list__count {
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(16, 42, 113, .07);
	color: var(--tk-navy);
	font-size: 11.5px;
	font-weight: 800;
	white-space: nowrap;
}

.tk-list__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
	gap: 18px;
}

.tk-list--thanks .tk-list__grid,
.tk-list--account .tk-list__grid {
	grid-template-columns: minmax(0, 1fr);
}

/* --------------------------------------------------------------------------
   3. Empty state + gate
   -------------------------------------------------------------------------- */
.tk-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 42px 22px;
	border-radius: 22px;
	border: 1.5px dashed var(--tk-line-strong);
	background: rgba(255, 253, 240, .55);
	text-align: center;
}

.tk-empty__ico {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 4px;
	border-radius: 18px;
	background: rgba(16, 42, 113, .07);
	color: var(--tk-navy);
}

.tk-empty__ico .tk-svg {
	width: 26px;
	height: 26px;
}

.tk-empty__t {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	color: var(--tk-navy-dark);
}

.tk-empty__s {
	margin: 0 0 10px;
	font-size: 12.5px;
	line-height: 1.9;
	color: var(--tk-muted);
}

.tk-gate {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 30px 22px;
	border-radius: 22px;
	border: 1px solid var(--tk-line);
	background:
		radial-gradient(420px 180px at 50% -40%, rgba(245, 196, 0, .18), transparent 70%),
		#fff;
	text-align: center;
}

.tk-gate--warn {
	background:
		radial-gradient(420px 180px at 50% -40%, rgba(184, 28, 35, .12), transparent 70%),
		#fff;
}

.tk-gate__ico {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 16px;
	background: rgba(16, 42, 113, .08);
	color: var(--tk-navy);
}

.tk-gate__ico .tk-svg {
	width: 24px;
	height: 24px;
}

.tk-gate--warn .tk-gate__ico {
	background: rgba(184, 28, 35, .1);
	color: var(--tk-danger);
}

.tk-gate__t {
	margin: 0;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--tk-navy-dark);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.tk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: 13px;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s var(--tk-ease), box-shadow .2s var(--tk-ease), background .2s var(--tk-ease), color .2s var(--tk-ease);
}

.tk-btn__ico {
	width: 17px;
	height: 17px;
}

.tk-btn--gold {
	background: linear-gradient(135deg, var(--tk-gold), var(--tk-gold-deep));
	color: var(--tk-navy-dark);
	box-shadow: 0 14px 26px -16px rgba(217, 169, 0, .95);
}

.tk-btn--gold:hover,
.tk-btn--gold:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 18px 32px -16px rgba(217, 169, 0, .95);
	color: var(--tk-navy-dark);
}

.tk-btn--ghost {
	background: #fff;
	border-color: var(--tk-line-strong);
	color: var(--tk-navy);
}

.tk-btn--ghost:hover,
.tk-btn--ghost:focus-visible {
	background: var(--tk-navy);
	border-color: var(--tk-navy);
	color: #fff;
	transform: translateY(-2px);
}

.tk-btn:focus-visible {
	outline: 2px solid var(--tk-navy);
	outline-offset: 3px;
}

.tk-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
}

/* --------------------------------------------------------------------------
   5. The buy form
   -------------------------------------------------------------------------- */
.tk-buy {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 26px;
	border-radius: var(--tk-radius);
	background:
		radial-gradient(560px 260px at 92% -40%, rgba(245, 196, 0, .16), transparent 62%),
		#fff;
	border: 1px solid var(--tk-line);
	box-shadow: var(--tk-shadow);
	font-family: inherit;
	color: var(--tk-ink);
}

.tk-buy__head {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tk-buy__eyebrow {
	align-self: flex-start;
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(245, 196, 0, .2);
	color: #6b5200;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .04em;
}

.tk-buy__title {
	margin: 0;
	font-size: 19px;
	line-height: 1.6;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--tk-navy-dark);
}

.tk-buy__sub {
	margin: 0;
	font-size: 12.5px;
	line-height: 2;
	color: var(--tk-muted);
}

.tk-buy__foot {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 16px;
	border-top: 1px solid var(--tk-line);
}

.tk-buy__price {
	font-size: 16px;
	font-weight: 800;
	color: var(--tk-navy-dark);
	white-space: nowrap;
	margin-inline-start: auto;
}

.tk-buy__submit {
	flex: 1 1 240px;
}

/* quantity stepper -------------------------------------------------------- */
.tk-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--tk-line-strong);
	border-radius: 13px;
	background: #fff;
	overflow: hidden;
}

.tk-qty__b {
	width: 42px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--tk-navy);
	font: inherit;
	font-size: 19px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background .18s var(--tk-ease), color .18s var(--tk-ease);
}

.tk-qty__b:hover,
.tk-qty__b:focus-visible {
	background: rgba(16, 42, 113, .08);
	color: var(--tk-navy-dark);
}

.tk-qty__i {
	width: 54px;
	height: 44px;
	border: 0;
	border-inline: 1px solid var(--tk-line);
	background: #fff;
	text-align: center;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	color: var(--tk-navy-dark);
	-moz-appearance: textfield;
	appearance: textfield;
}

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

/* --------------------------------------------------------------------------
   6. Fields
   -------------------------------------------------------------------------- */
.tk-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}

.tk-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.tk-field--half { grid-column: span 1; }
.tk-field--full { grid-column: 1 / -1; }
.tk-field--nonce { display: none; }

.tk-field__label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--tk-navy-dark);
}

.tk-field__req {
	color: var(--tk-danger);
	font-weight: 800;
	line-height: 1;
}

.tk-field__hint {
	margin: 0;
	font-size: 11px;
	line-height: 1.9;
	color: var(--tk-muted);
}

.tk-field__heading {
	grid-column: 1 / -1;
	margin: 8px 0 0;
	padding: 0 0 8px;
	border-bottom: 1px solid var(--tk-line);
	font-size: 13.5px;
	font-weight: 800;
	color: var(--tk-navy);
	display: flex;
	align-items: center;
	gap: 8px;
}

.tk-field__heading::before {
	content: "";
	width: 4px;
	height: 15px;
	border-radius: 999px;
	background: var(--tk-gold);
}

.tk-field__note {
	grid-column: 1 / -1;
	margin: 0;
	padding: 10px 13px;
	border-radius: 12px;
	background: rgba(16, 42, 113, .05);
	font-size: 11.5px;
	line-height: 1.95;
	color: var(--tk-ink);
}

.tk-input {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--tk-line-strong);
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--tk-navy-dark);
	transition: border-color .18s var(--tk-ease), box-shadow .18s var(--tk-ease), background .18s var(--tk-ease);
}

textarea.tk-input {
	min-height: 92px;
	line-height: 1.9;
	resize: vertical;
}

.tk-input::placeholder {
	color: #9aa3b2;
	font-weight: 500;
}

.tk-input:hover {
	border-color: rgba(16, 42, 113, .34);
}

.tk-input:focus {
	outline: 0;
	border-color: var(--tk-navy);
	box-shadow: 0 0 0 3px rgba(245, 196, 0, .35);
	background: #fff;
}

.tk-input:invalid:not(:placeholder-shown) {
	border-color: rgba(184, 28, 35, .55);
}

/* select ------------------------------------------------------------------ */
.tk-select {
	position: relative;
}

.tk-select select.tk-input {
	appearance: none;
	-webkit-appearance: none;
	padding-inline-end: 38px;
	cursor: pointer;
}

.tk-select__ico {
	position: absolute;
	inset-inline-end: 13px;
	top: 50%;
	width: 15px;
	height: 15px;
	transform: translateY(-50%) rotate(90deg);
	color: var(--tk-navy);
	opacity: .55;
	pointer-events: none;
}

/* radio cards ------------------------------------------------------------- */
.tk-radios {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 8px;
}

.tk-radio {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 46px;
	padding: 10px 13px;
	border: 1px solid var(--tk-line-strong);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color .18s var(--tk-ease), background .18s var(--tk-ease), box-shadow .18s var(--tk-ease);
}

.tk-radio input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.tk-radio__dot {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(16, 42, 113, .3);
	background: #fff;
	transition: border-color .18s var(--tk-ease);
}

.tk-radio__dot::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--tk-gold);
	transform: scale(0);
	transition: transform .18s var(--tk-ease);
}

.tk-radio__t {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--tk-navy-dark);
}

.tk-radio__p {
	margin-inline-start: auto;
	font-size: 11px;
	font-weight: 800;
	color: var(--tk-gold-deep);
	white-space: nowrap;
}

.tk-radio:hover {
	border-color: rgba(16, 42, 113, .4);
}

.tk-radio:has(input:checked) {
	border-color: var(--tk-navy);
	background: rgba(16, 42, 113, .04);
	box-shadow: 0 0 0 2px rgba(245, 196, 0, .4);
}

.tk-radio:has(input:checked) .tk-radio__dot {
	border-color: var(--tk-navy);
}

.tk-radio:has(input:checked) .tk-radio__dot::after {
	transform: scale(1);
}

.tk-radio:has(input:focus-visible) {
	outline: 2px solid var(--tk-navy);
	outline-offset: 2px;
}

/* checkbox ---------------------------------------------------------------- */
.tk-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	padding: 11px 13px;
	border: 1px solid var(--tk-line-strong);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color .18s var(--tk-ease), background .18s var(--tk-ease);
}

.tk-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.tk-check__box {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 2px solid rgba(16, 42, 113, .3);
	border-radius: 6px;
	background: #fff;
	transition: background .18s var(--tk-ease), border-color .18s var(--tk-ease);
}

.tk-check__ico {
	width: 13px;
	height: 13px;
	color: #fff;
	opacity: 0;
	transition: opacity .18s var(--tk-ease);
}

.tk-check__t {
	font-size: 12.5px;
	line-height: 1.85;
	font-weight: 600;
	color: var(--tk-ink);
}

.tk-check:has(input:checked) {
	border-color: var(--tk-navy);
	background: rgba(16, 42, 113, .04);
}

.tk-check:has(input:checked) .tk-check__box {
	background: var(--tk-navy);
	border-color: var(--tk-navy);
}

.tk-check:has(input:checked) .tk-check__ico {
	opacity: 1;
}

.tk-check:has(input:focus-visible) {
	outline: 2px solid var(--tk-navy);
	outline-offset: 2px;
}

/* the Jalali date wrapper is a .jd-field already; just make it fit --------- */
.tk-jd-wrap {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.tk-jd-wrap > .jd-label {
	display: none;
}

/* --------------------------------------------------------------------------
   7. Form cards (the CTA version)
   -------------------------------------------------------------------------- */
.tk-forms {
	width: 100%;
	margin: 0 0 26px;
	font-family: inherit;
}

.tk-forms__head {
	margin: 0 0 16px;
}

.tk-forms__title {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--tk-navy-dark);
}

.tk-forms__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 18px;
}

.tk-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 22px;
	background: #fff;
	border: 1px solid var(--tk-line);
	box-shadow: var(--tk-shadow-soft);
	transition: transform .3s var(--tk-ease), box-shadow .3s var(--tk-ease), border-color .3s var(--tk-ease);
}

.tk-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tk-shadow);
	border-color: rgba(245, 196, 0, .55);
}

.tk-card__glow {
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--tk-navy), var(--tk-gold));
	opacity: 0;
	transition: opacity .3s var(--tk-ease);
	z-index: 2;
}

.tk-card:hover .tk-card__glow {
	opacity: 1;
}

.tk-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: linear-gradient(150deg, var(--tk-navy), var(--tk-navy-dark));
	overflow: hidden;
}

.tk-card__media--empty {
	display: grid;
	place-items: center;
}

.tk-card__media-ico {
	width: 46px;
	height: 46px;
	color: rgba(255, 255, 255, .5);
}

.tk-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s var(--tk-ease);
}

.tk-card:hover .tk-card__img {
	transform: scale(1.04);
}

.tk-card__kind {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(255, 253, 240, .94);
	color: var(--tk-navy-dark);
	font-size: 10.5px;
	font-weight: 800;
	box-shadow: 0 6px 14px -8px rgba(0, 24, 64, .8);
}

/* No cover image: icon + title + badge share one inline row. */
.tk-card__head {
	display: flex;
	align-items: flex-start;
	gap: 9px;
}

.tk-card__head-ico {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: rgba(16, 42, 113, .08);
	color: var(--tk-navy);
}

.tk-card__head-ico .tk-svg {
	width: 17px;
	height: 17px;
}

.tk-card__head .tk-card__title {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 3px;
}

.tk-card__kind--inline {
	position: static;
	flex: 0 0 auto;
	align-self: center;
	padding: 4px 9px;
	font-size: 10px;
	background: var(--tk-gold);
	color: var(--tk-navy-dark);
	box-shadow: none;
}

.tk-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 10px;
	padding: 16px 18px 18px;
}

.tk-card__title {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--tk-navy-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tk-card__sub {
	margin: 0;
	font-size: 12px;
	line-height: 1.95;
	color: var(--tk-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tk-card__meta {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tk-card__meta li {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--tk-muted);
}

.tk-card__meta .tk-svg {
	width: 14px;
	height: 14px;
	color: var(--tk-navy);
	opacity: .6;
}

.tk-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--tk-line);
}

.tk-card__price {
	font-size: 14px;
	font-weight: 800;
	color: var(--tk-navy-dark);
	white-space: nowrap;
}

.tk-card__foot .tk-btn {
	min-height: 38px;
	padding: 8px 14px;
	font-size: 12px;
	border-radius: 11px;
}

.tk-card__sold {
	font-size: 11px;
	font-weight: 800;
	color: var(--tk-danger);
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(184, 28, 35, .09);
}

.tk-card--buy {
	border: 0;
	background: none;
	box-shadow: none;
	overflow: visible;
}

.tk-card--buy:hover {
	transform: none;
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   8. The bare documents (scan page / print / 404)
   -------------------------------------------------------------------------- */
.tk-doc__wrap .tk-ticket {
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   9. Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
	.tk-ticket {
		flex-direction: column;
		border-radius: 20px;
	}

	.tk-ticket::before {
		height: 3px;
	}

	.tk-ticket__main {
		padding: 18px 16px 14px;
		gap: 10px;
	}

	.tk-ticket__title {
		font-size: 16.5px;
	}

	.tk-ticket__meta {
		gap: 6px;
	}

	.tk-meta {
		padding: 6px 10px;
		gap: 6px;
	}

	.tk-ticket__answers {
		grid-template-columns: minmax(0, 1fr);
		padding: 11px 12px;
	}

	.tk-ans {
		gap: 6px;
	}

	/*
	 * The stub becomes a bottom strip: QR on the inline-start side with the
	 * label / code / status stacked beside it. A grid keeps that exact shape
	 * without needing extra wrappers in the markup.
	 */
	.tk-ticket__stub,
	.tk-ticket--compact .tk-ticket__stub,
	.tk-ticket--print .tk-ticket__stub {
		flex: 0 0 auto;
		flex-basis: auto;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		align-items: center;
		justify-items: start;
		gap: 2px 12px;
		padding: 14px 16px;
		border-inline-start: 0;
		border-top: 1px dashed rgba(16, 42, 113, .24);
		text-align: start;
	}

	.tk-ticket__perf::before,
	.tk-ticket__perf::after {
		display: none;
	}

	.tk-qr,
	.tk-ticket--compact .tk-qr {
		grid-column: 1;
		grid-row: 1 / span 3;
		width: 92px;
		height: 92px;
		padding: 5px;
		border-radius: 12px;
	}

	.tk-ticket__code-label {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
	}

	.tk-ticket__code,
	.tk-ticket--compact .tk-ticket__code {
		grid-column: 2;
		grid-row: 2;
		font-size: 24px;
	}

	.tk-ticket__status {
		grid-column: 2;
		grid-row: 3;
		align-self: start;
	}

	.tk-ticket__foot {
		padding-top: 10px;
	}

	.tk-ico__t {
		display: none;
	}

	.tk-ico {
		min-height: 36px;
		padding: 9px;
		border-radius: 10px;
	}

	.tk-ico .tk-svg {
		width: 16px;
		height: 16px;
	}

	.tk-ticket__serial {
		display: none;
	}

	.tk-ticket--expired::after  { font-size: 56px; }
	.tk-ticket--cancelled::after { font-size: 42px; }
	.tk-ticket--used::after      { font-size: 34px; }

	/* buy form */
	.tk-buy {
		padding: 18px 16px;
		border-radius: 20px;
		gap: 15px;
	}

	.tk-fields {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.tk-field--half,
	.tk-field--full {
		grid-column: 1 / -1;
	}

	.tk-buy__foot {
		gap: 10px;
	}

	.tk-buy__price {
		margin-inline-start: 0;
		width: 100%;
		order: -1;
	}

	.tk-buy__submit {
		flex: 1 1 auto;
	}

	.tk-qty {
		flex: 0 0 auto;
	}

	.tk-card__foot {
		flex-wrap: wrap;
	}

	.tk-list__grid,
	.tk-forms__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tk-empty {
		padding: 32px 18px;
	}
}

@media (max-width: 400px) {
	.tk-qr,
	.tk-ticket--compact .tk-qr {
		width: 80px;
		height: 80px;
	}

	.tk-ticket__code,
	.tk-ticket--compact .tk-ticket__code {
		font-size: 21px;
	}

	.tk-radios {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --------------------------------------------------------------------------
   10. Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.tk-ticket__sheen {
		animation: none;
	}

	.tk-ticket *,
	.tk-card,
	.tk-card__img,
	.tk-btn,
	.tk-ico {
		transition: none;
	}

	.tk-card:hover {
		transform: none;
	}

	.tk-card:hover .tk-card__img {
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   11. The ticket product page
   A ticket form is a WooCommerce product, so it needs a real page: a hero
   carrying the venue / expiry / quota, the live buy form beside it, and a
   short «how it works» strip. `template_include` routes ticket products here.
   -------------------------------------------------------------------------- */
.tk-page {
	font-family: inherit;
	color: var(--tk-ink);
	padding: 34px 0 56px;
	background:
		radial-gradient(760px 320px at 92% -10%, rgba(245, 196, 0, .12), transparent 64%),
		radial-gradient(620px 300px at 4% 108%, rgba(16, 42, 113, .08), transparent 68%);
}

.tk-page__in {
	width: 100%;
}

.tk-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 396px;
	gap: 26px;
	align-items: start;
}

/* --- intro ---------------------------------------------------------------- */
.tk-page__intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 28px 30px 30px;
	border-radius: var(--tk-radius);
	border: 1px solid var(--tk-line);
	background: var(--tk-card);
	box-shadow: var(--tk-shadow-soft);
}

.tk-page__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	padding: 6px 13px 6px 11px;
	border-radius: 999px;
	background: rgba(245, 196, 0, .16);
	color: var(--tk-navy-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
}

.tk-page__eyebrow-ico {
	width: 15px;
	height: 15px;
	color: var(--tk-gold-deep);
}

.tk-page__title {
	margin: 0;
	font-size: 30px;
	line-height: 1.45;
	font-weight: 800;
	color: var(--tk-navy-dark);
	overflow-wrap: anywhere;
}

.tk-page__sub {
	margin: 0;
	font-size: 14.5px;
	line-height: 2;
	color: var(--tk-muted);
	overflow-wrap: anywhere;
}

.tk-page__meta {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.tk-page__meta-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	padding: 11px 13px;
	border-radius: 16px;
	background: var(--tk-soft);
	border: 1px solid var(--tk-line);
}

.tk-page__meta-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	border-radius: 10px;
	background: var(--tk-card);
	border: 1px solid var(--tk-line);
	color: var(--tk-navy);
}

.tk-page__meta-ico .tk-svg {
	width: 16px;
	height: 16px;
}

.tk-page__meta-txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tk-page__meta-txt b {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--tk-muted);
}

.tk-page__meta-txt i {
	font-style: normal;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.9;
	color: var(--tk-ink);
	overflow-wrap: anywhere;
}

.tk-page__body {
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px dashed var(--tk-line-strong);
	font-size: 14px;
	line-height: 2.05;
	color: var(--tk-ink);
	overflow-wrap: anywhere;
}

.tk-page__body > :first-child {
	margin-top: 0;
}

.tk-page__body > :last-child {
	margin-bottom: 0;
}

.tk-page__body img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

/* --- buy card ------------------------------------------------------------- */
.tk-page__buy {
	position: sticky;
	top: 108px;
	min-width: 0;
}

.tk-page__buy .tk-buy {
	width: 100%;
}

/* --- steps ---------------------------------------------------------------- */
.tk-page__steps {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	counter-reset: tk-step;
}

.tk-page__step {
	position: relative;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	grid-template-areas:
		'ico title'
		'ico sub';
	column-gap: 11px;
	row-gap: 4px;
	align-items: center;
	padding: 15px 16px 16px;
	border-radius: 18px;
	border: 1px solid var(--tk-line);
	background: var(--tk-card);
	box-shadow: var(--tk-shadow-soft);
}

.tk-page__step-n {
	position: absolute;
	top: 11px;
	left: 13px;
	font-size: 11px;
	font-weight: 800;
	color: var(--tk-gold-deep);
	opacity: .9;
}

.tk-page__step-ico {
	grid-area: ico;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 12px;
	background: rgba(16, 42, 113, .07);
	color: var(--tk-navy);
}

.tk-page__step-ico .tk-svg {
	width: 17px;
	height: 17px;
}

.tk-page__step-t {
	grid-area: title;
	font-size: 13px;
	font-weight: 800;
	color: var(--tk-navy-dark);
	line-height: 1.7;
}

.tk-page__step-s {
	grid-area: sub;
	font-size: 11.5px;
	line-height: 1.95;
	color: var(--tk-muted);
	overflow-wrap: anywhere;
}

/* --- note ----------------------------------------------------------------- */
.tk-page__note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 16px 0 0;
	padding: 13px 16px;
	border-radius: 16px;
	border: 1px dashed var(--tk-line-strong);
	background: rgba(245, 196, 0, .07);
	font-size: 12px;
	line-height: 2;
	color: var(--tk-muted);
	overflow-wrap: anywhere;
}

.tk-page__note > span {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--tk-gold-deep);
	padding-top: 2px;
}

.tk-page__note .tk-svg {
	width: 17px;
	height: 17px;
}

/* --- the page's own <main> ------------------------------------------------ */
.tk-single {
	display: block;
}

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
	.tk-page__grid {
		grid-template-columns: minmax(0, 1fr) 350px;
		gap: 18px;
	}

	.tk-page__intro {
		padding: 22px 22px 24px;
	}

	.tk-page__title {
		font-size: 26px;
	}
}

@media (max-width: 860px) {
	.tk-page {
		padding: 22px 0 44px;
	}

	.tk-page__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tk-page__buy {
		position: static;
		top: auto;
	}

	.tk-page__meta {
		grid-template-columns: minmax(0, 1fr);
	}

	.tk-page__steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}
}

@media (max-width: 560px) {
	.tk-page__intro {
		padding: 18px 16px 20px;
		gap: 12px;
	}

	.tk-page__title {
		font-size: 22px;
		line-height: 1.55;
	}

	.tk-page__sub {
		font-size: 13px;
	}

	.tk-page__step {
		padding: 13px 14px;
	}
}