:root {
	--trial-panel: rgba(8, 10, 18, 0.86);
	--trial-panel-strong: #090d18;
	--trial-line: rgba(255, 255, 255, 0.12);
	--trial-line-strong: rgba(21, 155, 255, 0.38);
	--trial-muted: rgba(255, 255, 255, 0.66);
	--trial-soft: rgba(255, 255, 255, 0.07);
	--trial-blue: #159bff;
	--trial-orange: #ff8c42;
	--trial-red: #ff4757;
	--trial-gold: #ffb86b;
}

.trial-page-container {
	min-height: 100vh;
}

.trial-shell {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 10px 0 54px;
}

.trial-hero {
	max-width: 760px;
	margin-bottom: 34px;
}

.trial-kicker {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	margin-bottom: 14px;
	padding: 7px 13px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: var(--trial-soft);
	color: var(--trial-gold);
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
}

.trial-hero h1 {
	margin: 0;
	color: #ffffff;
	font-size: clamp(2.2rem, 5.6vw, 4.7rem);
	line-height: 1.02;
	font-weight: 900;
}

.trial-hero p {
	max-width: 700px;
	margin: 16px 0 0;
	color: var(--trial-muted);
	font-size: clamp(0.98rem, 1.9vw, 1.14rem);
	line-height: 1.7;
}

.trial-back-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 24px;
	text-align: center;
}

.trial-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
	gap: 24px;
	align-items: stretch;
}

.trial-controller-panel {
	display: grid;
	min-width: 0;
	gap: 18px;
}

.trial-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 22px;
	border: 1px solid var(--trial-line);
	border-radius: 28px;
	background: var(--trial-panel);
	box-shadow: 0 26px 76px rgba(0, 0, 0, 0.36);
	overflow: hidden;
}

.trial-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(21, 155, 255, 0.12), rgba(255, 71, 87, 0.08), transparent 54%);
	pointer-events: none;
}

.trial-card-head,
.trial-frame-wrap,
.trial-overlay-static {
	position: relative;
	z-index: 1;
}

.trial-card-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	margin-bottom: 18px;
}

.trial-controller-panel .trial-card-head {
	max-width: 760px;
	margin-bottom: 0;
}

.trial-card-head h2 {
	margin: 0;
	color: #ffffff;
	font-size: clamp(1.2rem, 2.4vw, 1.55rem);
	line-height: 1.2;
	font-weight: 800;
}

.trial-card-head p {
	margin: 8px 0 0;
	color: var(--trial-muted);
	font-size: 0.94rem;
	line-height: 1.55;
}

.trial-frame-wrap {
	flex: 1 1 auto;
	min-height: 620px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	background: rgba(0, 0, 0, 0.72);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
	overflow: hidden;
}

.trial-frame {
	display: block;
	width: 100%;
	height: 620px;
	border: 0;
	border-radius: 22px;
	background: #000000;
}

.trial-overlay-card {
	width: auto;
}

.trial-overlay-static {
	display: grid;
	flex: 1 1 auto;
	min-height: 620px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	background: rgba(0, 0, 0, 0.72);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
	overflow: hidden;
}

.trial-overlay-panel {
	display: grid;
	place-items: center;
	min-height: 100%;
	padding: 28px;
	border-radius: 22px;
	background:
		radial-gradient(circle at 50% 24%, rgba(21, 155, 255, 0.16), transparent 34%),
		linear-gradient(145deg, rgba(8, 11, 22, 0.98), rgba(4, 5, 10, 0.98));
	text-align: center;
}

.trial-overlay-content {
	max-width: 390px;
}

.trial-overlay-icon {
	display: inline-grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: 16px;
	border: 1px solid rgba(21, 155, 255, 0.35);
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(21, 155, 255, 0.18), rgba(255, 71, 87, 0.15));
	box-shadow: 0 0 34px rgba(21, 155, 255, 0.16);
	color: #bde4ff;
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0;
	overflow: hidden;
}

.trial-overlay-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.trial-overlay-content strong {
	display: block;
	margin-bottom: 8px;
	color: #ffffff;
	font-size: 1.05rem;
}

.trial-overlay-content p {
	margin: 0;
	color: var(--trial-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

.trial-overlay-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	min-height: 30px;
	margin-top: 18px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: var(--trial-soft);
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.76rem;
	font-weight: 800;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.trial-overlay-status.is-ready,
.trial-overlay-status.is-copied {
	border-color: var(--trial-line-strong);
	background: rgba(21, 155, 255, 0.12);
	color: #c7e8ff;
}

.trial-overlay-status.is-error {
	border-color: rgba(255, 184, 107, 0.36);
	background: rgba(255, 184, 107, 0.12);
	color: #ffd5a8;
}

.trial-overlay-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}

.trial-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 184px;
	max-width: 100%;
	min-height: 48px;
	padding: 13px 20px;
	border-radius: 25px;
	border: 0;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.trial-button-primary {
	background: linear-gradient(135deg, var(--trial-red), var(--trial-orange));
	color: #ffffff;
}

.trial-button-secondary {
	border: 2px solid var(--trial-red);
	background: transparent;
	color: var(--trial-red);
}

.trial-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(255, 71, 87, 0.24);
}

.trial-button.is-disabled,
.trial-button:disabled {
	opacity: 0.48;
	cursor: not-allowed;
	filter: grayscale(0.15);
	box-shadow: none;
	transform: none;
}

@media (max-width: 1080px) {
	.trial-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.trial-shell {
		width: min(100% - 24px, 1180px);
	}

	.trial-shell {
		padding-top: 6px;
		padding-bottom: 40px;
	}

	.trial-hero {
		margin-bottom: 26px;
	}

	.trial-card {
		padding: 16px;
		border-radius: 24px;
	}

	.trial-frame-wrap,
	.trial-overlay-static {
		min-height: auto;
		padding: 8px;
		border-radius: 20px;
	}

	.trial-frame {
		height: min(620px, 76vh);
		min-height: 560px;
		border-radius: 18px;
	}

	.trial-overlay-static {
		min-height: 440px;
	}

	.trial-overlay-panel {
		padding: 24px 18px;
		border-radius: 18px;
	}

	.trial-overlay-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.trial-button {
		width: 100%;
		min-width: 0;
		font-size: 0.96rem;
	}
}
