/* Moon Affiliation Coupon System (MACS) — PRO public styles.
   Additive only: depends on mas-public.css and uses the same green palette. */

/* ---------- Shared palette for views rendered outside .mas-app ---------- */
.mas-landing {
	--mas-green: #26893f;
	--mas-green-dark: #16632c;
	--mas-green-soft: #8eca83;
	--mas-green-pale: #edf7ef;
	--mas-green-mist: #f6fbf7;
	--mas-border: #dfe8e1;
	--mas-text: #1d2b21;
	--mas-muted: #66746b;
	--mas-accent: var(--mas-green);
	--mas-radius: 14px;
	--mas-shadow: 0 1px 2px rgba(22, 99, 44, 0.04), 0 8px 24px rgba(22, 99, 44, 0.07);
}

.mas-pro-required,
.mas-required {
	color: #b3261e;
	font-weight: 700;
}

/* ---------- Sharing hub ---------- */
.mas-copy-field {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mas-copy-field .mas-input {
	flex: 1 1 260px;
	min-width: 0;
}

.mas-pro-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.mas-qr-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--mas-border, #dfe8e1);
	border-radius: 14px;
}

.mas-qr-code {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	background: #fff;
}

.mas-pro-share .mas-links__item {
	gap: 10px;
	flex-wrap: wrap;
}

.mas-pro-share .mas-links__name {
	flex: 1 1 160px;
}

.mas-pro-share .mas-input--sm {
	flex: 2 1 240px;
	min-width: 0;
}

/* ---------- Vanity landing page ---------- */
.mas-landing {
	max-width: 940px;
	margin: 0 auto;
	padding: 28px 18px 48px;
	color: var(--mas-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans Arabic", sans-serif;
	line-height: 1.6;
}

.mas-landing__hero {
	position: relative;
	overflow: hidden;
	padding: clamp(28px, 5vw, 56px);
	text-align: center;
	background: linear-gradient(135deg, var(--mas-green-dark) 0%, var(--mas-green) 100%);
	border-radius: var(--mas-radius);
	box-shadow: var(--mas-shadow);
	color: #fff;
}

.mas-landing__hero .mas-eyebrow {
	color: rgba(255, 255, 255, 0.82);
}

.mas-landing__title {
	margin: 0 0 14px;
	font-size: clamp(26px, 5vw, 42px);
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.mas-landing__lead {
	max-width: 62ch;
	margin: 0 auto 26px;
	color: rgba(255, 255, 255, 0.94);
	font-size: clamp(15px, 2vw, 18px);
}

.mas-landing__lead p {
	margin: 0 0 10px;
}

.mas-landing__code {
	margin: 18px 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
}

.mas-landing__code strong {
	letter-spacing: 0.06em;
}

.mas-btn--lg {
	min-height: 52px;
	padding: 14px 30px;
	font-size: 17px;
}

.mas-landing__benefits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 22px;
}

.mas-landing__benefit {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 18px;
	background: var(--mas-green-mist);
	border: 1px solid var(--mas-border);
	border-radius: 14px;
}

.mas-landing__benefit p {
	margin: 4px 0 0;
	color: var(--mas-muted);
	font-size: 14px;
}

.mas-landing__tick {
	flex: 0 0 26px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--mas-green);
	color: #fff;
	font-weight: 700;
}

/* ---------- Leaderboard ---------- */
.mas-pro-rank {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mas-pro-rank__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--mas-border, #dfe8e1);
}

.mas-pro-rank__item:last-child {
	border-bottom: 0;
}

.mas-pro-rank__item--top {
	background: var(--mas-green-pale, #edf7ef);
}

.mas-pro-rank__num {
	flex: 0 0 32px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--mas-green, #26893f);
	color: #fff;
	font-weight: 700;
}

.mas-pro-rank__code {
	flex: 1 1 auto;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.mas-pro-rank__stats {
	color: var(--mas-muted, #66746b);
	font-size: 14px;
	text-align: end;
}

/* ---------- Registration extras ---------- */
.mas-pro-terms-check .mas-pro-terms {
	max-height: 220px;
	overflow: auto;
	margin-top: 10px;
	padding: 12px 14px;
	background: var(--mas-green-mist, #f6fbf7);
	border: 1px solid var(--mas-border, #dfe8e1);
	border-radius: 10px;
	font-size: 13px;
}

.mas-pro-terms p {
	margin: 0 0 10px;
}

.mas-pro-terms p:last-child {
	margin-bottom: 0;
}

.mas-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 600px) {
	.mas-landing__benefits {
		grid-template-columns: 1fr;
	}

	.mas-pro-rank__item {
		flex-wrap: wrap;
	}

	.mas-pro-rank__stats {
		flex-basis: 100%;
		text-align: start;
		padding-left: 46px;
	}
}

.mas-pro-creative__image {
	display: block;
	width: 100%;
	max-width: 720px;
	height: auto;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(38, 137, 63, 0.12);
}
