/* Guichet SpotPlayer — lively guide */
.gsp-guide {
	--gsp-ink: #2d4263;
	--gsp-muted: #5b6b82;
	--gsp-line: #e5ebf2;
	--gsp-soft: #f4f7fb;
	--gsp-coral: #c84b31;
	--gsp-blue: #3d7ea6;
	--gsp-navy: #2d4263;
	--gsp-ok: #2f9e6a;
	width: 100%;
	max-width: 720px;
	margin: 28px auto 36px;
	padding: 0 4px;
	direction: rtl;
	text-align: right;
	font-family: Vazirmatn, Tahoma, sans-serif;
	box-sizing: border-box;
	color: var(--gsp-ink);
}
.gsp-guide *,
.gsp-guide *::before,
.gsp-guide *::after {
	box-sizing: border-box;
}

/* —— Hero —— */
.gsp-hero {
	position: relative;
	overflow: hidden;
	padding: 30px 22px 26px;
	margin-bottom: 16px;
	border-radius: 22px;
	background:
		radial-gradient(120% 90% at 100% -10%, rgba(200, 75, 49, .22), transparent 52%),
		radial-gradient(90% 80% at -10% 110%, rgba(61, 126, 166, .18), transparent 50%),
		linear-gradient(160deg, #fff7f3 0%, #ffffff 42%, #eef5fb 100%);
	border: 1px solid #eadfd9;
	box-shadow: 0 14px 34px rgba(45, 66, 99, .1);
	text-align: center;
	animation: gsp-rise .55s ease both;
}
.gsp-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #0055A5 0%, #ffffff 48%, #c84b31 100%);
}
.gsp-hero-warn {
	background:
		radial-gradient(120% 90% at 100% -10%, rgba(200, 75, 49, .18), transparent 52%),
		linear-gradient(160deg, #fff7f3 0%, #f7fafc 100%);
}
.gsp-kicker {
	display: inline-block;
	margin: 0 0 10px;
	padding: 7px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, #3cb878 0%, #2f9e6a 100%);
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
	box-shadow: 0 6px 16px rgba(47, 158, 106, .28);
}
.gsp-title {
	margin: 0 0 8px;
	color: var(--gsp-ink);
	font-size: clamp(21px, 4.2vw, 27px);
	font-weight: 800;
	line-height: 1.35;
}
.gsp-sub {
	margin: 0 auto;
	max-width: 520px;
	color: var(--gsp-muted);
	font-size: 14px;
	line-height: 1.75;
	font-weight: 500;
}

/* —— Cards —— */
.gsp-card {
	position: relative;
	margin: 0 0 14px;
	padding: 20px 18px 18px;
	background: #fff;
	border: 1px solid var(--gsp-line);
	border-radius: 20px;
	box-shadow: 0 10px 26px rgba(45, 66, 99, .07);
	animation: gsp-rise .55s ease both;
}
.gsp-card-license {
	background: linear-gradient(180deg, #eef8f2 0%, #ffffff 46%);
	border-color: #cfe8d9;
	box-shadow: 0 10px 26px rgba(47, 158, 106, .1);
}
.gsp-card-warn {
	background: linear-gradient(180deg, #fff8ef 0%, #ffffff 46%);
	border-color: #f0e0c8;
	border-right: 4px solid #e0a14a;
}
.gsp-card-links {
	background: linear-gradient(180deg, #f7fafc 0%, #ffffff 55%);
	border-color: #e2eaf2;
}

.gsp-step {
	display: inline-block;
	margin: 0 0 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #eef3f8;
	color: #4a6280;
	font-size: 11px;
	font-weight: 800;
}
.gsp-card-license .gsp-step {
	background: #dff3e8;
	color: #2f7a55;
}
.gsp-card h3 {
	margin: 0 0 8px;
	color: var(--gsp-ink);
	font-size: 17px;
	font-weight: 800;
}
.gsp-muted {
	margin: 0 0 14px;
	color: var(--gsp-muted);
	font-size: 13px;
	line-height: 1.7;
}
.gsp-muted a {
	color: var(--gsp-coral, #c84b31);
	font-weight: 700;
	text-decoration: underline;
}
.gsp-tip {
	margin: 14px 0 0;
	color: #718096;
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}
.gsp-list {
	margin: 0;
	padding: 0 18px 0 0;
	color: var(--gsp-ink);
	font-size: 14px;
	line-height: 1.85;
}
.gsp-list li { margin-bottom: 6px; }
.gsp-list li.gsp-list-em {
	color: #c84b31;
	font-weight: 700;
}

/* —— License —— */
.gsp-license-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.gsp-license-key {
	width: 100%;
	min-height: 84px;
	padding: 14px;
	border: 1.5px dashed #8ec9a8;
	border-radius: 14px;
	background: #fff;
	color: var(--gsp-ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	line-height: 1.55;
	direction: ltr;
	text-align: left;
	resize: none;
	outline: none;
}

.gsp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 18px;
	border: 0;
	border-radius: 13px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.gsp-btn-primary {
	background: linear-gradient(135deg, #3cb878 0%, #2f9e6a 100%);
	color: #fff !important;
	box-shadow: 0 8px 20px rgba(47, 158, 106, .28);
}
.gsp-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(47, 158, 106, .34);
	filter: brightness(1.03);
}
.gsp-btn.is-copied {
	background: linear-gradient(135deg, #2d4263 0%, #1e2f4a 100%) !important;
	box-shadow: 0 8px 18px rgba(45, 66, 99, .22);
}

.gsp-grid {
	display: grid;
	gap: 10px;
}
.gsp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.gsp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gsp-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* —— Download —— */
.gsp-dl {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 14px;
	border-radius: 14px;
	background: linear-gradient(135deg, #3d7ea6 0%, #2d5f86 100%);
	color: #fff !important;
	font-size: 13px;
	font-weight: 800;
	text-align: center;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgba(45, 95, 134, .22);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.gsp-dl:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(45, 95, 134, .3);
	filter: brightness(1.05);
}
.gsp-dl-alt {
	background: linear-gradient(135deg, #c84b31 0%, #a63b27 100%);
	box-shadow: 0 8px 18px rgba(200, 75, 49, .25);
}
.gsp-dl-alt:hover {
	box-shadow: 0 12px 24px rgba(200, 75, 49, .32);
}

/* —— Chips (bots / channels) —— */
.gsp-chip {
	--gch-a: 0deg;
	--ch: #3d7ea6;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 92px;
	padding: 14px 8px;
	border-radius: 18px;
	text-decoration: none !important;
	background: color-mix(in srgb, var(--ch) 10%, #ffffff);
	isolation: isolate;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(45, 66, 99, .06);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.gsp-chip::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: conic-gradient(from var(--gch-a), transparent 0 50%, var(--ch) 68%, transparent 86%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: gsp-orbit 2.6s linear infinite;
	pointer-events: none;
	opacity: .95;
}
.gsp-chip:hover {
	transform: translateY(-4px);
	background: #fff;
	box-shadow: 0 14px 28px color-mix(in srgb, var(--ch) 28%, transparent);
}
.gsp-chip-label {
	font-size: 13px;
	font-weight: 800;
	color: #1e293b;
	line-height: 1.2;
}
.gsp-chip-sub {
	font-size: 11px;
	color: #6b7c93;
	font-weight: 600;
	line-height: 1.2;
}

.ltr { direction: ltr; unicode-bidi: plaintext; }

@keyframes gsp-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes gsp-orbit { to { --gch-a: 360deg; } }
@property --gch-a {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

/* Fallback when color-mix unsupported */
@supports not (background: color-mix(in srgb, red 10%, white)) {
	.gsp-chip { background: #f8fafc; }
	.gsp-chip:hover { box-shadow: 0 14px 28px rgba(45, 66, 99, .12); }
}

@media (max-width: 640px) {
	.gsp-guide { margin: 20px auto 28px; }
	.gsp-hero { padding: 24px 16px 20px; border-radius: 18px; }
	.gsp-card { padding: 16px 14px; border-radius: 16px; }
	.gsp-grid-2,
	.gsp-grid-3,
	.gsp-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.gsp-chip { min-height: 84px; border-radius: 16px; }
}
