/**
 * Sell hub page — Figma 488:20620 (desktop) / 488:21294 (mobile).
 * Builds on buy-hub.css (shared hero/section/steps/faq chrome).
 */

body.page-template-sell-hub,
body.page-template-page-templatessell-hub-php {
	background: var(--xc-rich-black);
	color: var(--xc-off-white);
	font-family: var(--xc-body);
	-webkit-font-smoothing: antialiased;
}

.sell-hub {
	background: var(--xc-rich-black);
	color: var(--xc-off-white);
}

/* ---------- Hero — Figma 488:20651 (D) / 488:21316 (M) ---------- */
/* Sell uses Bright Blue (#1A9CFC), not True Blue — buy-hub gradient must be overridden. */
.sell-hero.buy-hero {
	/* Figma: linear-gradient(221.26deg, Bright Blue 12.42%, Rich Black 86.27%) */
	background: linear-gradient(
		221.26deg,
		var(--xc-bright-blue) 12.423%,
		var(--xc-rich-black) 86.271%
	);
}
.sell-hero .buy-hero__copy {
	gap: 16px;
}
.sell-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 12px;
}
.sell-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 17px 33px;
	border-radius: 999px;
	font-family: var(--xc-display);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.sell-btn--primary {
	background: var(--xc-true-blue);
	border: 1px solid transparent;
	color: #fff;
}
.sell-btn--primary:hover {
	background: var(--xc-primary-hover);
	color: #fff;
}
.sell-btn--ghost {
	background: transparent;
	border: 1px solid var(--xc-off-white);
	color: var(--xc-off-white);
}
.sell-btn--ghost:hover {
	border-color: #fff;
	color: #fff;
}
.sell-hero__trust {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 6px 0;
	font-family: var(--xc-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--xc-soft-white, #eeeff2);
}
.sell-hero__dot {
	flex: 0 0 6px;
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: var(--xc-bright-blue);
}

/* ---------- Coin cards (compact row) — Figma 488:22763 ---------- */
.sell-coins__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 19px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sell-coin {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-sizing: border-box;
	padding: 24px;
	border-radius: 12px;
	background: rgba(249, 253, 255, .05);
	text-decoration: none;
	color: inherit;
	transition: border-color .2s ease, background .2s ease;
}
.sell-coin:hover {
	border-color: rgba(26, 156, 252, .45);
	background: rgba(249, 253, 255, .08);
}
.sell-coin__id {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}
.sell-coin__icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, var(--xc-true-blue), var(--xc-bright-blue));
	display: grid;
	place-items: center;
	font-family: var(--xc-display);
	font-weight: 700;
	font-size: 11px;
	color: #fff;
	line-height: 0;
}
.sell-coin__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sell-coin__labels {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.sell-coin__name {
	display: block;
	font-family: var(--xc-display);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	color: var(--xc-off-white);
	font-variation-settings: "wdth" 100;
}
.sell-coin__symbol {
	display: block;
	font-family: var(--xc-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--xc-slate);
}
.sell-coin__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
	font-family: var(--xc-display);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	color: var(--xc-bright-blue);
	font-variation-settings: "wdth" 100;
}
.sell-coin__cta svg {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

/* ---------- Sell for USD banner — Figma 494:31814 (D) / 494:33173 (M) ---------- */
.sell-usd {
	padding: 32px 0;
	background: var(--xc-rich-black);
}
.sell-usd .xc-container {
	max-width: 1240px;
}
/* Outer shell holds the stroke (same pattern as .xc-reg-card) so overflow
   clipping on the inner never eats the border. Figma: border-2 #F9FDFF @ 10%. */
.sell-usd__card {
	position: relative;
	border-radius: 30px;
	border: 2px solid rgba(249, 253, 255, .1);
	background: transparent;
}
.sell-usd__inner {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 286px;
	height: 286px;
	padding: 48px 64px;
	border-radius: inherit;
	/* Figma 37.24°; visual reads dark-left / blue-right with graphic on right */
	background: linear-gradient(100deg, var(--xc-rich-black) 18%, var(--xc-true-blue) 100%);
	text-align: center;
}
.sell-usd__glow {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
	background: radial-gradient(circle, rgba(26, 156, 252, .4) 0%, rgba(26, 156, 252, 0) 68%);
}
.sell-usd__glow--a {
	width: min(90vw, 980px);
	height: min(90vw, 980px);
	right: -28%;
	top: -55%;
	opacity: .55;
}
.sell-usd__glow--b {
	width: min(80vw, 720px);
	height: min(80vw, 720px);
	left: -35%;
	bottom: -60%;
	opacity: .35;
}
/* Figma 494:31831 on card 1240×286: x=563 y=-55 w=563 h=375 (right half, overhangs top). */
.sell-usd__visual {
	position: absolute;
	left: 45.403%; /* 563 / 1240 */
	top: -55px;
	width: 45.403%; /* 563 / 1240 */
	height: auto;
	aspect-ratio: 563 / 375;
	max-width: none;
	transform: none;
	line-height: 0;
	pointer-events: none;
	z-index: 1;
}
.sell-usd__visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.sell-usd__shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: rgba(0, 0, 0, .1);
}
.sell-usd__copy {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	max-width: 824px;
	width: 100%;
}
.sell-usd__copy h2 {
	margin: 0;
	font-family: var(--xc-display);
	font-weight: 800;
	font-size: 44px;
	line-height: 1;
	color: var(--xc-off-white);
	font-variation-settings: "wdth" 100;
}
.sell-usd__copy p {
	margin: 0;
	max-width: 690px;
	font-family: var(--xc-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.25;
	color: #cfd6e2;
}
.sell-usd__copy .sell-btn {
	/* Figma button frame ~234×50 with px 33 / py 17; label width 168 */
	min-width: 234px;
	padding: 17px 33px;
}

@media (max-width: 1295px) {
	.sell-usd .xc-container,
	.sell-coins .xc-container {
		padding-inline: 28px;
	}
}

@media (max-width: 1100px) {
	.sell-coins__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	/* Figma 488:21316: gradient top→bottom rich-black → bright-blue */
	.sell-hero.buy-hero {
		background: linear-gradient(
			180deg,
			var(--xc-rich-black) 0%,
			var(--xc-bright-blue) 100%
		);
	}

	.sell-hero__ctas {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		padding-top: 8px;
		gap: 0;
	}
	.sell-hero__ctas .sell-btn--primary {
		width: 100%;
		padding: 16px 24px;
	}
	.sell-hero__ctas .sell-btn--ghost {
		display: none;
	}
	.sell-hero__trust {
		gap: 8px;
		padding-top: 4px;
	}
	.sell-hero__dot {
		width: 5px;
		height: 5px;
		border-radius: 2.5px;
		flex-basis: 5px;
	}

	.sell-coins .xc-container,
	.sell-usd .xc-container {
		padding-inline: 16px;
	}
	.sell-coins__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.sell-coin {
		padding: 20px 16px;
	}

	/* Mobile Figma 494:33173 — still 286 tall, centered copy, graphic behind */
	.sell-usd__card {
		border-radius: 30px;
		border: 2px solid rgba(249, 253, 255, .1);
	}
	.sell-usd__inner {
		height: 286px;
		min-height: 286px;
		padding: 30px 24px;
		background: linear-gradient(70deg, var(--xc-true-blue) 17.4%, var(--xc-rich-black) 82%);
		align-items: center;
		justify-content: center;
	}
	.sell-usd__visual {
		/* Figma 494:33177 on 343×286 card: left -12 / top 20 / 402×268 */
		left: -12px;
		right: auto;
		top: 20px;
		bottom: auto;
		width: 402px;
		height: 268px;
		aspect-ratio: auto;
		max-width: none;
		transform: none;
		opacity: 1;
	}
	.sell-usd__glow--a {
		right: -40%;
		top: -40%;
	}
	.sell-usd__glow--b {
		left: -50%;
		bottom: -50%;
	}
	.sell-usd__copy {
		align-items: center;
		text-align: center;
		gap: 24px;
		max-width: 284px;
	}
	.sell-usd__copy h2 {
		font-size: 24px;
	}
	.sell-usd__copy p {
		max-width: 284px;
	}
	.sell-usd__copy .sell-btn {
		min-width: 0;
	}
}

@media (max-width: 480px) {
	.sell-usd__copy h2 {
		font-size: 24px;
	}
}
