/* TMC Rebranding Splash — isolated in @layer so it never bleeds into site CSS */

@layer tmc-splash {

	/* Native <dialog> backdrop — covers full viewport above everything */
	#tmc-splash-overlay::backdrop {
		background:
			radial-gradient(ellipse 80% 55% at 15% 10%, rgba(46,49,146,0.5) 0%, transparent 60%),
			radial-gradient(ellipse 55% 45% at 88% 88%, rgba(241,89,42,0.1) 0%, transparent 55%),
			#0d0e3f;
		animation: tmc-fadeIn 380ms cubic-bezier(0.16,1,0.3,1) both;
	}

	#tmc-splash-overlay {
		border: none;
		background: transparent;
		padding: 24px;
		margin: auto;
		width: 100%;
		max-width: 640px;
		outline: none;
		font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		-webkit-font-smoothing: antialiased;
		animation: tmc-fadeIn 380ms cubic-bezier(0.16,1,0.3,1) both;
	}

	#tmc-splash-overlay.tmc-closing,
	#tmc-splash-overlay.tmc-closing::backdrop {
		animation: tmc-fadeOut 450ms cubic-bezier(0,0,0.2,1) forwards;
		pointer-events: none;
	}

	@keyframes tmc-fadeIn  { from { opacity: 0; } to { opacity: 1; } }
	@keyframes tmc-fadeOut { from { opacity: 1; } to { opacity: 0; } }

	/* Modal card */
	.tmc-modal {
		width: 100%;
		background: rgba(255,255,255,0.04);
		border: 1px solid rgba(255,255,255,0.12);
		border-radius: 20px;
		overflow: hidden;
		box-shadow:
			0 0 0 1px rgba(46,49,146,0.35),
			0 32px 80px rgba(0,0,0,0.6),
			0 8px 24px rgba(0,0,0,0.3);
		animation: tmc-modalUp 500ms cubic-bezier(0.16,1,0.3,1) 100ms both;
	}

	@keyframes tmc-modalUp {
		from { opacity: 0; transform: translateY(24px) scale(0.98); }
		to   { opacity: 1; transform: translateY(0)    scale(1);    }
	}

	/* Video */
	.tmc-video-wrap {
		position: relative;
		background: #0d0e3f;
		overflow: hidden;
		line-height: 0;
	}

	.tmc-video-wrap::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		height: 60px;
		background: linear-gradient(to bottom, transparent, rgba(13,14,63,0.65));
		pointer-events: none;
	}

	#tmc-splash-video {
		display: block;
		width: 100%;
		height: auto;
		max-height: 300px;
		object-fit: cover;
	}

	/* Progress bar */
	.tmc-progress-track {
		height: 2px;
		background: rgba(255,255,255,0.06);
	}

	.tmc-progress-fill {
		height: 100%;
		background: linear-gradient(90deg, #4054b2 0%, #f1592a 100%);
		transform-origin: left center;
		animation: tmc-countdown 7200s linear forwards;
	}

	@keyframes tmc-countdown {
		from { transform: scaleX(1); }
		to   { transform: scaleX(0); }
	}

	/* Body */
	.tmc-modal-body {
		padding: 28px 32px 0;
		animation: tmc-bodyIn 500ms cubic-bezier(0.16,1,0.3,1) 250ms both;
	}

	@keyframes tmc-bodyIn {
		from { opacity: 0; transform: translateY(10px); }
		to   { opacity: 1; transform: translateY(0);    }
	}

	.tmc-eyebrow {
		font-size: 13px !important;
		font-weight: 600 !important;
		letter-spacing: 0.12em !important;
		text-transform: uppercase !important;
		color: #f1592a !important;
		display: flex !important;
		align-items: center !important;
		gap: 10px !important;
		margin: 0 0 14px !important;
	}

	.tmc-eyebrow::before {
		content: '';
		width: 18px;
		height: 1px;
		background: #f1592a;
		opacity: 0.6;
		flex-shrink: 0;
	}

	.tmc-headline {
		font-size: clamp(26px, 3vw, 38px) !important;
		font-weight: 500 !important;
		line-height: 1.25 !important;
		letter-spacing: -0.02em !important;
		color: #ffffff !important;
		margin: 0 0 16px !important;
	}

	.tmc-accent {
		color: #f1592a;
	}

	.tmc-name-pill {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		border: 1px solid rgba(255,255,255,0.12);
		border-radius: 999px;
		padding: 6px 14px 6px 10px;
		font-size: 14px;
		font-weight: 500;
		color: rgba(255,255,255,0.75);
		margin-bottom: 16px;
	}

	.tmc-old {
		text-decoration: line-through;
		opacity: 0.45;
		font-weight: 400;
	}

	.tmc-sep {
		color: #f1592a;
		font-size: 16px;
		line-height: 1;
	}

	.tmc-new {
		color: #ffffff;
		font-weight: 600;
	}

	.tmc-body-copy {
		font-size: 14px !important;
		font-weight: 400 !important;
		line-height: 1.7 !important;
		color: rgba(255,255,255,0.55) !important;
		margin: 0 0 24px !important;
	}

	/* Footer */
	.tmc-modal-footer {
		padding: 0 32px 28px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		animation: tmc-bodyIn 500ms cubic-bezier(0.16,1,0.3,1) 350ms both;
	}

	.tmc-timer-label {
		font-size: 12px;
		font-weight: 500;
		color: rgba(255,255,255,0.28);
		letter-spacing: 0.02em;
		white-space: nowrap;
		min-width: 90px;
	}

	.tmc-cta-btn {
		display: inline-flex !important;
		align-items: center !important;
		gap: 8px !important;
		padding: 10px 18px !important;
		background: #f1592a !important;
		color: #ffffff !important;
		font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
		font-size: 14px !important;
		font-weight: 600 !important;
		border: none !important;
		border-radius: 8px !important;
		cursor: pointer !important;
		white-space: nowrap !important;
		line-height: 1 !important;
		box-shadow: 0 2px 8px rgba(241,89,42,0.28) !important;
		transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease !important;
	}

	.tmc-cta-btn:hover {
		background: #d04820 !important;
		box-shadow: 0 4px 16px rgba(241,89,42,0.35) !important;
		transform: translateY(-1px) !important;
	}

	.tmc-cta-btn:active {
		transform: translateY(0) !important;
	}

	.tmc-btn-arrow {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 18px;
		height: 18px;
		background: rgba(255,255,255,0.18);
		border-radius: 4px;
		font-size: 11px;
		font-weight: 700;
		line-height: 1;
		transition: transform 150ms ease;
		flex-shrink: 0;
	}

	.tmc-cta-btn:hover .tmc-btn-arrow {
		transform: translateX(2px);
	}

} /* end @layer tmc-splash */
