:root {
	--serex-gold: #c9a24a;
	--serex-gold-light: #e3c75f;
	--serex-gold-dark: #8f6d24;
	--serex-blue: #0e4a7b;
	--serex-black: #090909;
	--serex-surface: #111113;
	--serex-surface-soft: #171719;
	--serex-text: #f7f7f3;
	--serex-muted: #b9b6ad;
	--serex-line: rgba(201, 162, 74, .28);
	--serex-line-strong: rgba(227, 199, 95, .68);
}

body.serex-payments-page {
	background: var(--serex-black) !important;
	color: var(--serex-text);
}

body.serex-payments-page .site,
body.serex-payments-page .site-content,
body.serex-payments-page .content-area,
body.serex-payments-page .site-main,
body.serex-payments-page .entry,
body.serex-payments-page .entry-content,
body.serex-payments-page main {
	background-color: transparent !important;
}

.serex-checkout,
.serex-status,
.serex-alert {
	box-sizing: border-box;
	font-family: Montserrat, Inter, Arial, sans-serif;
}

.serex-checkout,
.serex-status {
	position: relative;
	max-width: 1080px;
	margin: 40px auto;
	padding: 34px;
	overflow: hidden;
	background:
		radial-gradient(circle at 92% 4%, rgba(14, 74, 123, .19), transparent 32%),
		linear-gradient(145deg, #141416 0%, #090909 72%);
	border: 1px solid var(--serex-line);
	border-radius: 18px;
	box-shadow: 0 28px 75px rgba(0, 0, 0, .56), inset 0 1px 0 rgba(255, 255, 255, .025);
	color: var(--serex-text);
}

.serex-checkout::before,
.serex-status::before {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--serex-gold), var(--serex-gold-light), transparent);
}

.serex-brand {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	min-height: 86px;
	padding: 0 0 24px;
	border-bottom: 1px solid var(--serex-line);
}

.serex-brand-logo {
	display: inline-flex;
	align-items: center;
	width: min(190px, 52vw);
	line-height: 0;
}

.serex-brand-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.serex-brand small {
	color: var(--serex-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-align: right;
	text-transform: uppercase;
}

.serex-progress {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 28px 0 38px;
}

.serex-progress button {
	padding: 0 0 13px;
	background: none;
	border: 0;
	border-bottom: 2px solid rgba(255, 255, 255, .12);
	color: #858585;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
}

.serex-progress button span {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-right: 8px;
	background: #242426;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 50%;
	color: #aaa;
}

.serex-progress button.is-active {
	border-color: var(--serex-gold);
	color: var(--serex-text);
}

.serex-progress button.is-active span {
	background: linear-gradient(135deg, var(--serex-gold-light), var(--serex-gold-dark));
	border-color: var(--serex-gold-light);
	box-shadow: 0 5px 18px rgba(201, 162, 74, .2);
	color: #0b0b0b;
}

.serex-step { display: none; }

.serex-step.is-active {
	display: block;
	animation: serexFade .25s ease;
}

.serex-step header { margin-bottom: 26px; }

.serex-step header p,
.serex-status p { color: var(--serex-muted); }

.serex-step h2,
.serex-status h2 {
	margin: 4px 0 8px;
	color: var(--serex-text);
	font-family: Cinzel, Georgia, serif;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: .015em;
}

.serex-eyebrow {
	color: var(--serex-gold-light) !important;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.serex-pack-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.serex-pack-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px;
	background: linear-gradient(155deg, #19191b, #101012);
	border: 1px solid rgba(255, 255, 255, .11);
	border-radius: 16px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
	cursor: pointer;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.serex-pack-card:hover,
.serex-pack-card.is-selected {
	transform: translateY(-3px);
	border-color: var(--serex-line-strong);
	box-shadow: 0 18px 36px rgba(0, 0, 0, .35), 0 0 0 1px rgba(201, 162, 74, .08);
}

.serex-pack-card.is-selected {
	background: linear-gradient(155deg, rgba(201, 162, 74, .09), #111113 56%);
}

.serex-pack-card input {
	position: absolute;
	opacity: 0;
}

.serex-pack-check {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	color: transparent;
}

.serex-pack-card.is-selected .serex-pack-check {
	background: linear-gradient(135deg, var(--serex-gold-light), var(--serex-gold-dark));
	border-color: var(--serex-gold-light);
	color: #080808;
}

.serex-pack-name {
	padding-right: 28px;
	color: var(--serex-text);
	font-size: 18px;
	font-weight: 800;
}

.serex-pack-card > strong {
	margin: 12px 0;
	color: var(--serex-gold-light);
	font-size: 22px;
}

.serex-pack-card > small {
	min-height: 40px;
	color: var(--serex-muted);
}

.serex-pack-card ul {
	margin: 15px 0 0;
	padding: 15px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .09);
	color: #ddd;
	font-size: 13px;
	list-style: none;
}

.serex-pack-card li {
	position: relative;
	margin: 7px 0;
	padding-left: 19px;
}

.serex-pack-card li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	color: var(--serex-gold-light);
	font-weight: 800;
}

.serex-addons {
	margin-top: 24px;
	padding: 23px;
	background: rgba(255, 255, 255, .035);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 16px;
}

.serex-addons h3 {
	margin-top: 0;
	color: var(--serex-text);
}

.serex-addon {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	margin-top: 10px;
	padding: 16px;
	background: #151517;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease;
}

.serex-addon:hover,
.serex-addon:has(input:checked) {
	background: rgba(201, 162, 74, .065);
	border-color: var(--serex-line-strong);
}

.serex-addon input {
	width: 20px;
	height: 20px;
	accent-color: var(--serex-gold);
}

.serex-addon span {
	display: flex;
	flex-direction: column;
	color: var(--serex-text);
}

.serex-addon small,
.serex-empty { color: var(--serex-muted); }

.serex-addon b { color: var(--serex-gold-light); }

.serex-fields {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.serex-fields label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: #eee;
	font-size: 14px;
	font-weight: 700;
}

.serex-field-hint {
	margin-top: -5px;
	color: var(--serex-muted);
	font-size: 11px;
	font-weight: 500;
}

.serex-fields .serex-wide { grid-column: 1 / -1; }

.serex-fields input,
.serex-fields select,
.serex-fields textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 13px 14px;
	background: #0d0d0f;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 10px;
	color: var(--serex-text);
	font: inherit;
	color-scheme: dark;
}

.serex-fields select {
	height: 48px !important;
	min-height: 48px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: normal !important;
	overflow: visible;
}

.serex-fields [hidden] {
	display: none !important;
}

.serex-fields input::placeholder,
.serex-fields textarea::placeholder { color: #777; }

.serex-fields input:focus,
.serex-fields select:focus,
.serex-fields textarea:focus {
	outline: 2px solid rgba(201, 162, 74, .22);
	border-color: var(--serex-gold);
}

.serex-actions {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin-top: 30px;
}

.serex-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 14px 24px;
	background: linear-gradient(135deg, var(--serex-gold-light), var(--serex-gold-dark));
	border: 1px solid var(--serex-gold-light);
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(201, 162, 74, .14);
	color: #080808 !important;
	font: inherit;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.serex-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(201, 162, 74, .23);
	filter: brightness(1.08);
}

.serex-button:disabled {
	opacity: .6;
	cursor: wait;
}

.serex-button-light {
	background: transparent;
	border-color: rgba(227, 199, 95, .7);
	box-shadow: none;
	color: var(--serex-gold-light) !important;
}

.serex-final-grid {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 24px;
}

.serex-payment-methods > label:not(.serex-consent):not(.serex-card-provider) {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
	padding: 16px;
	background: #141416;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 13px;
	color: var(--serex-text);
	cursor: pointer;
}

.serex-payment-methods > label:not(.serex-consent):not(.serex-card-provider):has(input:checked) {
	background: rgba(201, 162, 74, .07);
	border-color: var(--serex-line-strong);
}

.serex-payment-methods input { accent-color: var(--serex-gold); }

.serex-operator {
	display: grid;
	place-items: center;
	width: 48px;
	height: 34px;
	border-radius: 7px;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
}

.serex-operator.mtn {
	background: #ffcb05;
	color: #111;
}

.serex-operator.airtel { background: #e40000; }

.serex-operator.card {
	background: linear-gradient(135deg, #17478b, #0e2e62);
	border: 1px solid rgba(255, 255, 255, .2);
	font-size: 9px;
	line-height: 1.05;
}

.serex-method-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.serex-method-copy small {
	color: var(--serex-muted);
	font-size: 11px;
	font-weight: 500;
}

.serex-card-provider {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: -2px 0 14px 40px;
	color: #eee;
	font-size: 13px;
	font-weight: 700;
}

.serex-card-provider select {
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	padding: 0 14px;
	background: #0d0d0f;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 10px;
	color: var(--serex-text);
	font: inherit;
	color-scheme: dark;
}

.serex-card-provider select:focus {
	outline: 2px solid rgba(201, 162, 74, .22);
	border-color: var(--serex-gold);
}

.serex-card-provider[hidden] {
	display: none !important;
}

.serex-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 20px;
	color: var(--serex-muted);
	font-size: 13px;
}

.serex-summary {
	padding: 24px;
	background: linear-gradient(145deg, rgba(14, 74, 123, .2), #0b0b0c 62%);
	border: 1px solid var(--serex-line);
	border-radius: 16px;
	color: var(--serex-text);
}

.serex-summary h3 {
	margin-top: 0;
	font-family: Cinzel, Georgia, serif;
}

.serex-summary [data-summary-lines] > div,
.serex-total {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.serex-summary [data-summary-lines] b {
	color: var(--serex-gold-light);
	white-space: nowrap;
}

.serex-total {
	padding: 18px 0;
	border-bottom: 0;
	font-size: 20px;
}

.serex-total strong { color: var(--serex-gold-light); }
.serex-summary small { color: #aaa; }

.serex-alert {
	max-width: 1080px;
	margin: 15px auto;
	padding: 14px 18px;
	border-radius: 10px;
}

.serex-alert-error {
	background: #281012;
	border: 1px solid #713237;
	color: #ffd6d9;
}

.serex-status {
	max-width: 650px;
	padding: 34px;
}

.serex-status .serex-brand { margin-bottom: 42px; }

.serex-status-content {
	padding: 8px 0 28px;
	text-align: center;
}

.serex-status h2 { font-size: 34px; }

.serex-spinner {
	width: 55px;
	height: 55px;
	margin: 0 auto 28px;
	border: 5px solid rgba(255, 255, 255, .12);
	border-top-color: var(--serex-gold);
	border-radius: 50%;
	animation: serexSpin 1s linear infinite;
}

.serex-status.is-success .serex-spinner {
	position: relative;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--serex-gold-light), var(--serex-gold-dark));
	border: 0;
	animation: none;
}

.serex-status.is-success .serex-spinner::after {
	content: '\2713';
	color: #080808;
	font-size: 35px;
}

.serex-status.is-failed .serex-spinner {
	display: grid;
	place-items: center;
	border-color: #bb4343;
	animation: none;
}

.serex-status.is-failed .serex-spinner::after {
	content: '\00d7';
	color: #ff8a8a;
	font-size: 38px;
	line-height: 1;
}

.serex-status .serex-button { margin-top: 20px; }
.serex-status [hidden] { display: none !important; }

@keyframes serexSpin {
	to { transform: rotate(360deg); }
}

@keyframes serexFade {
	from { opacity: .3; transform: translateY(5px); }
}

@media (max-width: 800px) {
	.serex-checkout,
	.serex-status {
		margin: 18px 10px;
		padding: 22px;
	}

	.serex-pack-grid,
	.serex-fields,
	.serex-final-grid { grid-template-columns: 1fr; }

	.serex-fields .serex-wide { grid-column: auto; }
	.serex-progress button { font-size: 0; }
	.serex-progress button span { font-size: 13px; }

	.serex-step h2,
	.serex-status h2 { font-size: 25px; }
}

@media (max-width: 480px) {
	.serex-brand {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.serex-brand small {
		padding-left: 2px;
		text-align: left;
	}

	.serex-actions { flex-direction: column-reverse; }

	.serex-button {
		box-sizing: border-box;
		width: 100%;
	}

	.serex-addon { grid-template-columns: auto 1fr; }
	.serex-addon b { grid-column: 2; }
	.serex-card-provider { margin-left: 0; }
}
