/* ── C4 Site Credit — Credits Page ─────────────────────────────────────────
   Mirrors the My Account page design system:
   #0a0a0a bg · #111 panels · #0084d6 blue · #f5a623 gold
   Anton (headings) · Inter (UI) · Karla (body)
   ──────────────────────────────────────────────────────────────────────── */

/* ── Astra suppression ───────────────────────────────────────────────────── */

body.c4sc-credits-page {
	background: #0a0a0a !important;
}

body.c4sc-credits-page .entry-header,
body.c4sc-credits-page .ast-post-header,
body.c4sc-credits-page .page-header {
	display: none !important;
}

body.c4sc-credits-page .ast-woocommerce-container,
body.c4sc-credits-page article.page,
body.c4sc-credits-page .ast-article-post,
body.c4sc-credits-page .ast-article-single,
body.c4sc-credits-page .ast-container,
body.c4sc-credits-page .site-content,
body.c4sc-credits-page #content,
body.c4sc-credits-page .content-area,
body.c4sc-credits-page .entry-content {
	background: #0a0a0a !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.c4sc-credits-page .woocommerce-breadcrumb {
	display: none !important;
}

/* ── Root ────────────────────────────────────────────────────────────────── */

#c4sc-page {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background: #0a0a0a;
	min-height: 60vh;
	font-family: 'Karla', sans-serif;
	color: rgba(255, 255, 255, 0.85);
}

.c4sc-container {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 32px;
}

/* ── Header — mirrors .c4ma__header ─────────────────────────────────────── */

.c4sc-header {
	background: #111111;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	padding: 36px 0;
}

.c4sc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.c4sc-header__title {
	font-family: 'Anton', Impact, sans-serif;
	font-size: 1.9rem;
	font-weight: 400;
	font-style: italic;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 8px;
	line-height: 1;
}

.c4sc-header__eyebrow {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.68px;
	text-transform: uppercase;
	color: #0084d6;
	margin: 0 0 10px;
	display: block;
}

.c4sc-header__sub {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
	max-width: 420px;
	line-height: 1.6;
}

.c4sc-header__balance {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-shrink: 0;
	gap: 4px;
}

.c4sc-header__balance-label {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1.68px;
	color: rgba(255, 255, 255, 0.35);
}

.c4sc-header__balance-amount {
	font-family: 'Anton', Impact, sans-serif;
	font-size: 2rem;
	font-weight: 400;
	font-style: italic;
	letter-spacing: 0.04em;
	color: #0084d6;
	line-height: 1;
}

.c4sc-header__login-btn {
	display: inline-block;
	background: #0084d6;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 11px 22px;
	border-radius: 7px;
	text-decoration: none;
	flex-shrink: 0;
	transition: background 0.15s;
}

.c4sc-header__login-btn:hover {
	background: #0073bb;
	color: #fff;
}

/* ── Bundle rows ─────────────────────────────────────────────────────────── */

.c4sc-bundles {
	padding: 28px 0 48px;
}

.c4sc-row {
	display: flex;
	align-items: center;
	gap: 0;
	background: #111;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	padding: 22px 24px;
	margin-bottom: 20px;
	transition: border-color 0.18s, transform 0.18s;
	position: relative;
	overflow: visible;
}

.c4sc-row:hover {
	border-color: rgba(255, 255, 255, 0.14);
	transform: translateY(-1px);
}

.c4sc-row--popular {
	border-color: rgba(0, 132, 214, 0.35);
}

.c4sc-row--popular:hover {
	border-color: rgba(0, 132, 214, 0.6);
}

.c4sc-row--best {
	border-color: rgba(245, 166, 35, 0.3);
}

.c4sc-row--best:hover {
	border-color: rgba(245, 166, 35, 0.55);
}

/* Subtle left accent for highlighted rows */
.c4sc-row--popular::before,
.c4sc-row--best::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	border-radius: 12px 0 0 12px;
}

.c4sc-row--popular::before { background: #0084d6; }
.c4sc-row--best::before    { background: #f5a623; }

/* ── Row columns ─────────────────────────────────────────────────────────── */

.c4sc-row__pay {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 72px;
}

.c4sc-row__pay-label {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1.68px;
	color: rgba(255, 255, 255, 0.35);
}

.c4sc-row__pay-amount {
	font-family: 'Anton', Impact, sans-serif;
	font-size: 1.7rem;
	font-weight: 400;
	font-style: italic;
	letter-spacing: 0.04em;
	color: #fff;
	line-height: 1;
}

.c4sc-row__arrow {
	color: rgba(255, 255, 255, 0.18);
	font-size: 1.1rem;
	padding: 0 20px;
	flex-shrink: 0;
}

.c4sc-row__receives {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}

.c4sc-row__receives-label {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1.68px;
	color: rgba(255, 255, 255, 0.35);
}

.c4sc-row__receives-amount {
	font-family: 'Anton', Impact, sans-serif;
	font-size: 1.7rem;
	font-weight: 400;
	font-style: italic;
	letter-spacing: 0.04em;
	color: #fff;
	line-height: 1;
}

.c4sc-row__bonus {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	padding: 0 24px;
	flex-shrink: 0;
}

.c4sc-row__bonus-free {
	font-family: 'Anton', Impact, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	font-style: italic;
	letter-spacing: 0.04em;
	color: #f5a623;
	line-height: 1;
}

.c4sc-row__bonus-pct {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 800;
	color: rgba(245, 166, 35, 0.45);
	text-transform: uppercase;
	letter-spacing: 1.68px;
}

.c4sc-row__badge-wrap {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	justify-content: center;
	pointer-events: none;
	background: #0a0a0a;
	padding: 0 6px;
}

.c4sc-row__badge {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 4px;
}

.c4sc-row__badge--popular { background: rgba(0, 132, 214, 0.15); color: #0084d6; border: 1px solid rgba(0, 132, 214, 0.3); }
.c4sc-row__badge--best    { background: rgba(245, 166, 35, 0.12); color: #f5a623; border: 1px solid rgba(245, 166, 35, 0.25); }

/* ── CTA ─────────────────────────────────────────────────────────────────── */

.c4sc-row__cta {
	flex-shrink: 0;
	background: #1c1c1c;
	color: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 11px 22px;
	font-family: 'Inter', sans-serif;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	white-space: nowrap;
}

.c4sc-row__cta:hover {
	background: #0084d6;
	border-color: #0084d6;
	color: #fff;
}

.c4sc-row--popular .c4sc-row__cta {
	background: #0084d6;
	border-color: #0084d6;
	color: #fff;
}

.c4sc-row--popular .c4sc-row__cta:hover {
	background: #0073bb;
}

.c4sc-row--best .c4sc-row__cta {
	background: #f5a623;
	border-color: #f5a623;
	color: #0a0a0a;
	font-weight: 700;
}

.c4sc-row--best .c4sc-row__cta:hover {
	background: #e09510;
	border-color: #e09510;
}

.c4sc-row__cta--disabled {
	opacity: 0.4;
	pointer-events: none;
}

.c4sc-row__cta.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* ── Legal ───────────────────────────────────────────────────────────────── */

.c4sc-legal {
	padding: 0 0 40px;
}

.c4sc-legal p {
	font-size: 0.73rem;
	color: rgba(255, 255, 255, 0.18);
	line-height: 1.7;
	margin: 0;
	text-align: center;
}

/* ── Loading overlay ─────────────────────────────────────────────────────── */

.c4sc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	z-index: 99999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}

.c4sc-overlay.is-visible {
	opacity: 1;
	pointer-events: all;
}

.c4sc-overlay__spinner {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255, 255, 255, 0.1);
	border-top-color: #0084d6;
	border-radius: 50%;
	animation: c4sc-spin 0.7s linear infinite;
}

@keyframes c4sc-spin { to { transform: rotate(360deg); } }

.c4sc-overlay__msg {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.88rem;
	margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
	.c4sc-container { padding: 0 16px; }

	.c4sc-header { padding: 56px 0 36px; }
	.c4sc-header__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
	.c4sc-header__balance { align-items: flex-start; }

	.c4sc-row {
		flex-wrap: wrap;
		gap: 12px 0;
		padding: 24px 16px 16px;
	}

	.c4sc-row__arrow { display: none; }

	/* Row 1: Pay + Receives side by side */
	.c4sc-row__pay,
	.c4sc-row__receives {
		flex: 0 0 50%;
		min-width: 0;
	}

	/* Row 2: Bonus left, nothing right */
	.c4sc-row__bonus {
		flex: 0 0 100%;
		padding: 0;
		align-items: flex-start;
		flex-direction: row;
		gap: 10px;
		border-top: 1px solid rgba(255,255,255,0.06);
		padding-top: 10px;
	}

	.c4sc-row__bonus-free { font-size: 0.95rem; }

	/* Badge stays absolutely centred at top — extra top padding on card makes space */

	/* Row 3: CTA full width */
	.c4sc-row__cta {
		flex: 0 0 100%;
		text-align: center;
		padding: 13px;
		box-sizing: border-box;
	}
}
