/* ============================================================
   Ticket Forge — Order Received Experience
   Material UI / Tailwind-inspired design
   ============================================================ */

/* ----- Container ----- */
.tf-order-experience {
	margin: 0 0 32px;
	padding: 0;
	font-family: inherit;
}

.tf-order-experience__inner {
	position: relative;
	background: #0f172a;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	overflow: hidden;
	color: #f1f5f9;
}

/* ----- Hero image strip ----- */
.tf-order-hero-image {
	position: relative;
	width: 100%;
	height: 300px;
	overflow: hidden;
}

.tf-order-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.tf-order-hero-image__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.7) 80%, rgba(15, 23, 42, 0.95) 100%);
}

/* ----- Hero text ----- */
.tf-order-hero {
	padding: 24px 28px 0;
}

.tf-order-hero__eyebrow {
	margin: 0 0 6px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #f59e0b;
}

.tf-order-hero__title {
	margin: 0 0 12px;
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
}

.tf-order-hero__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 6px;
	font-size: 0.92rem;
	color: rgba(241, 245, 249, 0.8);
	line-height: 1.4;
}

.tf-order-hero__meta-icon {
	flex-shrink: 0;
	font-size: 1rem;
}

.tf-order-hero__confirmation {
	margin: 14px 0 0;
	font-size: 0.95rem;
	color: rgba(241, 245, 249, 0.7);
}

/* ----- CTA buttons row ----- */
.tf-order-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 22px 28px;
}

/* ----- Shared button base ----- */
.tf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 20px;
	border-radius: 9999px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1;
	cursor: pointer;
	border: none;
	transition: background 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
	white-space: nowrap;
}

.tf-btn:focus-visible {
	outline: 2px solid #f59e0b;
	outline-offset: 3px;
}

.tf-btn__icon {
	font-size: 1.1em;
}

/* Primary — red */
.tf-btn--primary {
	background: #dc2626;
	color: #fff;
	box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.tf-btn--primary:hover {
	background: #b91c1c;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
	color: #fff;
}

/* Outline */
.tf-btn--outline {
	background: transparent;
	color: #f1f5f9;
	border: 1px solid rgba(241, 245, 249, 0.25);
}

.tf-btn--outline:hover {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}

/* ----- Share block ----- */
.tf-order-share {
	padding: 22px 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tf-order-share__title {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.tf-order-share__subtitle {
	margin: 0 0 14px;
	font-size: 0.88rem;
	color: rgba(241, 245, 249, 0.6);
}

.tf-order-share__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Share button variant */
.tf-btn--share {
	background: rgba(255, 255, 255, 0.07);
	color: #f1f5f9;
	border: 1px solid rgba(255, 255, 255, 0.13);
	font-size: 0.83rem;
	padding: 9px 16px;
}

.tf-btn--share:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	transform: translateY(-1px);
}

.tf-btn--facebook:hover { background: #1877f2; border-color: #1877f2; }
.tf-btn--x:hover        { background: #000; border-color: #555; }
.tf-btn--whatsapp:hover { background: #25d366; border-color: #25d366; color: #000; }

.tf-copy-feedback {
	margin-top: 10px;
	min-height: 1.2em;
	font-size: 0.85rem;
	color: #f59e0b;
	font-weight: 600;
}

/* ----- Next steps block ----- */
.tf-order-next-steps {
	padding: 22px 28px 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tf-order-next-steps__title {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.tf-order-next-steps__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tf-order-next-steps__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.88rem;
	color: rgba(241, 245, 249, 0.75);
	line-height: 1.5;
}

.tf-order-next-steps__list li::before {
	content: "✓";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: rgba(34, 197, 94, 0.2);
	color: #22c55e;
	border-radius: 50%;
	font-size: 0.7rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	margin-top: 1px;
}

/* ============================================================
   Gamification — Share Counter
   ============================================================ */

.tf-order-share__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.tf-share-counter {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 64px;
	background: rgba(245, 158, 11, 0.12);
	border: 1px solid rgba(245, 158, 11, 0.3);
	border-radius: 12px;
	padding: 8px 14px;
	text-align: center;
}

.tf-share-counter__number {
	font-size: 1.5rem;
	font-weight: 800;
	color: #f59e0b;
	line-height: 1;
}

.tf-share-counter__label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(245, 158, 11, 0.7);
	margin-top: 2px;
}

/* ----- Badge toast notifications ----- */
.tf-badge-toast-area {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

.tf-badge-toast {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(255,255,255,0.05);
	border-left: 4px solid #f59e0b;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.tf-badge-toast--visible {
	opacity: 1;
	transform: translateY(0);
}

.tf-badge-toast--silver { border-left-color: #94a3b8; }
.tf-badge-toast--gold   { border-left-color: #f59e0b; }
.tf-badge-toast--legend { border-left-color: #a855f7; }

.tf-badge-toast__icon {
	font-size: 1.8rem;
	flex-shrink: 0;
}

.tf-badge-toast__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tf-badge-toast__body strong {
	font-size: 0.95rem;
	color: #fff;
	font-weight: 700;
}

.tf-badge-toast__body span {
	font-size: 0.82rem;
	color: rgba(241,245,249,0.65);
}

/* ============================================================
   Gamification — My Achievements page
   ============================================================ */

.tf-achievements {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 0 40px;
	font-family: inherit;
}

.tf-achievements__header {
	margin-bottom: 28px;
}

.tf-achievements__title {
	margin: 0 0 6px;
	font-size: 1.6rem;
	font-weight: 800;
	color: #0f172a;
}

.tf-achievements__subtitle {
	margin: 0 0 10px;
	color: #64748b;
}

.tf-btn-link {
	color: #dc2626;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}

.tf-btn-link:hover {
	text-decoration: underline;
}

/* ----- Stat cards row ----- */
.tf-achievements__stats,
.tf-fan-profile__stats {
	display: flex;
	gap: 16px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.tf-stat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 18px 24px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	min-width: 100px;
	flex: 1;
	text-align: center;
}

.tf-stat-card__number {
	font-size: 2rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
}

.tf-stat-card__label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #94a3b8;
	margin-top: 4px;
}

/* ----- Platform breakdown ----- */
.tf-achievements__platforms {
	margin-bottom: 28px;
}

.tf-achievements__platforms h3 {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tf-platform-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.tf-platform-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #f1f5f9;
	border-radius: 10px;
	padding: 10px 18px;
	min-width: 80px;
}

.tf-platform-chip__count {
	font-size: 1.2rem;
	font-weight: 700;
	color: #1e293b;
}

.tf-platform-chip__label {
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 2px;
}

/* ----- Badge grid ----- */
.tf-achievements__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.tf-badge-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.tf-badge-card--earned {
	border-color: rgba(220, 38, 38, 0.25);
	background: linear-gradient(135deg, #fff 60%, #fff5f5 100%);
	box-shadow: 0 2px 12px rgba(220,38,38,0.08);
}

.tf-badge-card--locked {
	filter: grayscale(0.6);
	opacity: 0.6;
}

.tf-badge-card--gold.tf-badge-card--earned   { border-color: rgba(245,158,11,0.4); background: linear-gradient(135deg,#fff 60%,#fffbeb 100%); }
.tf-badge-card--silver.tf-badge-card--earned { border-color: rgba(148,163,184,0.4); }
.tf-badge-card--legend.tf-badge-card--earned { border-color: rgba(168,85,247,0.4); background: linear-gradient(135deg,#fff 60%,#faf5ff 100%); }

.tf-badge-card__icon {
	font-size: 2.2rem;
	flex-shrink: 0;
	line-height: 1;
}

.tf-badge-card__body {
	flex: 1;
}

.tf-badge-card__label {
	margin: 0 0 3px;
	font-weight: 700;
	font-size: 0.95rem;
	color: #0f172a;
}

.tf-badge-card__desc {
	margin: 0 0 6px;
	font-size: 0.82rem;
	color: #64748b;
	line-height: 1.4;
}

.tf-badge-card__date {
	margin: 0;
	font-size: 0.78rem;
	color: #22c55e;
	font-weight: 600;
}

.tf-badge-card__locked {
	margin: 0;
	font-size: 0.78rem;
	color: #94a3b8;
	font-style: italic;
}

.tf-badge-card__tier-pip {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 2px 7px;
	border-radius: 99px;
	font-weight: 700;
	background: #f1f5f9;
	color: #64748b;
}

.tf-badge-card__tier-pip--gold   { background: #fef3c7; color: #92400e; }
.tf-badge-card__tier-pip--silver { background: #f1f5f9; color: #475569; }
.tf-badge-card__tier-pip--legend { background: #faf5ff; color: #7c3aed; }

/* Hide ALL theme-rendered titles/headings on fan profile virtual pages.
   The fan profile hero already contains the name — no external title needed. */
.tf-fan-profile-page .entry-title,
.tf-fan-profile-page .page-title,
.tf-fan-profile-page .post-title,
.tf-fan-profile-page .page-header,
.tf-fan-profile-page .site-title,
.tf-fan-profile-page .hero-title,
.tf-fan-profile-page .wp-block-post-title,
.tf-fan-profile-page .entry-header,
.tf-fan-profile-page .post-header {
	display: none !important;
}

/* Catch any bare h1/h2 that appears OUTSIDE the tf-fan-profile card itself */
.tf-fan-profile-page .entry-content > h1:not(.tf-fp-hero__name),
.tf-fan-profile-page .entry-content > h2:not(.tf-fp-section__title),
.tf-fan-profile-page .site-content > h1,
.tf-fan-profile-page .site-content > h2,
.tf-fan-profile-page article > h1,
.tf-fan-profile-page article > h2 {
	display: none !important;
}

/* ============================================================
   Gamification — Public Fan Profile  (tf-fp-* namespace)
   ============================================================ */

.tf-fan-profile {
	max-width: 840px;
	margin: 0 auto;
	padding: 0 0 60px;
	font-family: inherit;
}

/* ── Hero card ── */
.tf-fp-hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #dc2626 100%);
	border-radius: 20px;
	padding: 32px 32px 0;
	margin-bottom: 6px;
	box-shadow: 0 8px 32px rgba(15,23,42,0.18);
	overflow: hidden;
}

.tf-fp-hero__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-bottom: 28px;
}

/* ── Circle avatar with coloured tier ring ── */
.tf-fp-avatar-wrap {
	position: relative;
	flex-shrink: 0;
	width: 120px;
	height: 120px;
}

.tf-fp-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	position: relative;
	z-index: 1;
}

.tf-fp-avatar__tier-ring {
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 4px solid var(--tier-colour, #94a3b8);
	box-shadow: 0 0 16px var(--tier-colour, #94a3b8);
	z-index: 0;
	pointer-events: none;
}

/* ── Hero meta ── */
.tf-fp-hero__meta {
	flex: 1;
	min-width: 0;
}

.tf-fp-hero__name {
	margin: 0 0 4px;
	font-size: 1.75rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
}

.tf-fp-hero__club {
	margin: 0 0 12px;
	font-size: 0.9rem;
	color: rgba(255,255,255,0.65);
}

/* ── Tier badge pill ── */
.tf-fp-tier-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border-radius: 99px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	background: rgba(255,255,255,0.12);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.2);
}

.tf-fp-tier-badge--bronze { background: rgba(205,127,50,0.25); border-color: #cd7f32; color: #fcd34d; }
.tf-fp-tier-badge--silver { background: rgba(148,163,184,0.2); border-color: #94a3b8; color: #e2e8f0; }
.tf-fp-tier-badge--gold   { background: rgba(245,158,11,0.25); border-color: #f59e0b; color: #fcd34d; }
.tf-fp-tier-badge--legend { background: rgba(168,85,247,0.25); border-color: #a855f7; color: #e9d5ff; }

/* ── Progress bar ── */
.tf-fp-progress {
	padding: 0 0 20px;
}

.tf-fp-progress__labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.78rem;
	color: rgba(255,255,255,0.55);
	margin-bottom: 6px;
}

.tf-fp-progress__next {
	color: rgba(255,255,255,0.75);
	font-weight: 600;
}

.tf-fp-progress__track {
	height: 7px;
	background: rgba(255,255,255,0.1);
	border-radius: 99px;
	overflow: hidden;
}

.tf-fp-progress__fill {
	height: 100%;
	border-radius: 99px;
	transition: width 0.6s ease;
}

/* ── Stats row ── */
.tf-fp-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 18px 0 28px;
}

.tf-fp-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 18px 10px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	text-align: center;
	box-shadow: 0 1px 4px rgba(15,23,42,0.06);
}

.tf-fp-stat__num {
	font-size: 1.6rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
}

.tf-fp-stat__num--tier {
	font-size: 0.9rem;
	line-height: 1.3;
}

.tf-fp-stat__num--bronze { color: #cd7f32; }
.tf-fp-stat__num--silver { color: #64748b; }
.tf-fp-stat__num--gold   { color: #f59e0b; }
.tf-fp-stat__num--legend { color: #a855f7; }

.tf-fp-stat__lbl {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #94a3b8;
	margin-top: 5px;
}

/* ── Section wrapper ── */
.tf-fp-section {
	margin-bottom: 32px;
}

.tf-fp-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding-bottom: 10px;
	border-bottom: 2px solid #f1f5f9;
}

.tf-fp-section__count {
	font-size: 0.78rem;
	background: #dc2626;
	color: #fff;
	padding: 2px 9px;
	border-radius: 99px;
	font-weight: 700;
	letter-spacing: 0;
}

/* ── Platform chips ── */
.tf-fp-platforms {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.tf-fp-platform {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px 20px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-top: 3px solid var(--platform-colour, #64748b);
	border-radius: 12px;
	min-width: 90px;
	box-shadow: 0 1px 4px rgba(15,23,42,0.06);
}

.tf-fp-platform__icon {
	font-size: 1.5rem;
	line-height: 1;
	margin-bottom: 4px;
}

.tf-fp-platform__count {
	font-size: 1.4rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
}

.tf-fp-platform__label {
	font-size: 0.72rem;
	color: #64748b;
	margin-top: 3px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ── Badge cards grid ── */
.tf-fp-badges {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}

.tf-fp-badge {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 4px rgba(15,23,42,0.06);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tf-fp-badge--earned {
	border-color: rgba(220,38,38,0.2);
	background: linear-gradient(135deg, #fff 55%, #fff5f5 100%);
	box-shadow: 0 4px 16px rgba(220,38,38,0.09);
}

.tf-fp-badge--earned:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(220,38,38,0.13);
}

.tf-fp-badge--locked {
	opacity: 0.45;
	filter: grayscale(0.7);
}

.tf-fp-badge--gold.tf-fp-badge--earned   { border-color: rgba(245,158,11,0.35); background: linear-gradient(135deg,#fff 55%,#fffbeb 100%); }
.tf-fp-badge--silver.tf-fp-badge--earned { border-color: rgba(148,163,184,0.35); }
.tf-fp-badge--legend.tf-fp-badge--earned { border-color: rgba(168,85,247,0.35); background: linear-gradient(135deg,#fff 55%,#faf5ff 100%); }

.tf-fp-badge__icon {
	font-size: 2.4rem;
	line-height: 1;
	flex-shrink: 0;
}

.tf-fp-badge__body {
	flex: 1;
	min-width: 0;
}

.tf-fp-badge__name {
	margin: 0 0 3px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
}

.tf-fp-badge__desc {
	margin: 0 0 6px;
	font-size: 0.8rem;
	color: #64748b;
	line-height: 1.4;
}

.tf-fp-badge__earned-date {
	margin: 0;
	font-size: 0.76rem;
	color: #16a34a;
	font-weight: 600;
}

.tf-fp-badge__locked-label {
	margin: 0;
	font-size: 0.76rem;
	color: #94a3b8;
	font-style: italic;
}

.tf-fp-badge__tier-chip {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 2px 8px;
	border-radius: 99px;
	font-weight: 700;
	background: #f1f5f9;
	color: #64748b;
}

.tf-fp-badge__tier-chip--bronze { background: #fef3c7; color: #92400e; }
.tf-fp-badge__tier-chip--gold   { background: #fef3c7; color: #92400e; }
.tf-fp-badge__tier-chip--silver { background: #f1f5f9; color: #475569; }
.tf-fp-badge__tier-chip--legend { background: #faf5ff; color: #7c3aed; }

/* ── Empty state ── */
.tf-fp-empty {
	text-align: center;
	padding: 40px 20px;
	color: #94a3b8;
	background: #f8fafc;
	border-radius: 14px;
	border: 1px dashed #e2e8f0;
}

.tf-fp-empty__icon {
	display: block;
	font-size: 2.5rem;
	margin-bottom: 10px;
}

.tf-fp-empty p {
	margin: 0;
	font-size: 0.9rem;
}

/* ----- Responsive ----- */
@media (max-width: 600px) {
	.tf-order-hero-image {
		height: 220px;
	}

	.tf-order-hero,
	.tf-order-cta-row,
	.tf-order-share,
	.tf-order-next-steps {
		padding-left: 18px;
		padding-right: 18px;
	}

	.tf-order-hero__title {
		font-size: 1.45rem;
	}

	.tf-order-cta-row,
	.tf-order-share__buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.tf-btn {
		width: 100%;
		justify-content: center;
	}

	/* Fan profile mobile */
	.tf-fp-hero {
		padding: 24px 20px 0;
	}

	.tf-fp-hero__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 16px;
	}

	.tf-fp-hero__name {
		font-size: 1.4rem;
	}

	.tf-fp-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.tf-fp-badges {
		grid-template-columns: 1fr;
	}

	.tf-fp-progress__labels {
		flex-direction: column;
		gap: 2px;
	}
}
