/**
 * Earn Dashboard — theme guard.
 *
 * Loaded last. The Bam theme ships:
 *
 *     button        { background:#FF4F4F; text-transform:uppercase; padding:1em 1.5em; border-radius:3px }
 *     button:hover  { background:#222222 }
 *     button:focus  { background:#222222 }
 *
 * That painted plugin buttons black on hover, kept them black after a click
 * (focus), forced capitals, and stretched the round close button into an
 * oval. Rather than patch one button at a time, this file pins every plugin
 * button in every interactive state. Every selector is scoped to a plugin
 * container, so nothing outside the plugin is touched.
 */

/* ---------------------------------------------------------------- reset */

.earn-bar button,
.earn-dash button,
.earn-modal button,
.earn-inline-auth button,
.earn-gate button {
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.25;
	border-radius: 12px;
	text-shadow: none;
	font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ----------------------------------------------------- primary (gradient) */

.earn-bar .earn-btn--primary,
.earn-dash .earn-btn--primary,
.earn-modal .earn-btn--primary,
.earn-inline-auth .earn-btn--primary,
.earn-gate .earn-btn--primary,
.earn-bar .earn-btn--primary:hover,
.earn-dash .earn-btn--primary:hover,
.earn-modal .earn-btn--primary:hover,
.earn-inline-auth .earn-btn--primary:hover,
.earn-gate .earn-btn--primary:hover,
.earn-bar .earn-btn--primary:focus,
.earn-dash .earn-btn--primary:focus,
.earn-modal .earn-btn--primary:focus,
.earn-inline-auth .earn-btn--primary:focus,
.earn-gate .earn-btn--primary:focus,
.earn-bar .earn-btn--primary:active,
.earn-dash .earn-btn--primary:active,
.earn-modal .earn-btn--primary:active,
.earn-inline-auth .earn-btn--primary:active,
.earn-gate .earn-btn--primary:active {
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #db2777 100%);
	background-color: #7c3aed;
	color: #ffffff;
	border: 0;
}

/* -------------------------------------------------------- money (green) */

.earn-dash .earn-btn--money,
.earn-dash .earn-btn--money:hover,
.earn-dash .earn-btn--money:focus,
.earn-dash .earn-btn--money:active {
	background: linear-gradient(135deg, #059669, #10b981);
	background-color: #059669;
	color: #ffffff;
	border: 0;
}

/* ---------------------------------------------------- ghost / light / glass */

.earn-dash .earn-btn--ghost,
.earn-dash .earn-btn--ghost:hover,
.earn-dash .earn-btn--ghost:focus,
.earn-dash .earn-btn--ghost:active {
	background: #ffffff;
	background-color: #ffffff;
	color: #4a4360;
	border: 1px solid #e4dff2;
}

.earn-dash .earn-btn--ghost:hover { border-color: #a78bfa; color: #6d28d9; }

.earn-dash .earn-btn--light,
.earn-dash .earn-btn--light:hover,
.earn-dash .earn-btn--light:focus,
.earn-dash .earn-btn--light:active {
	background: #ffffff;
	background-color: #ffffff;
	color: #7c3aed;
	border: 0;
}

.earn-dash .earn-btn--glass,
.earn-dash .earn-btn--glass:hover,
.earn-dash .earn-btn--glass:focus,
.earn-dash .earn-btn--glass:active {
	background: rgba(255, 255, 255, .18);
	background-color: rgba(255, 255, 255, .18);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, .35);
}

.earn-dash .earn-btn--glass:hover { background: rgba(255, 255, 255, .3); }

/* ------------------------------------------------------ dashboard tabs */

.earn-dash .earn-tabs .earn-tabs__btn,
.earn-dash .earn-tabs .earn-tabs__btn:focus,
.earn-dash .earn-tabs .earn-tabs__btn:active {
	background: transparent;
	background-color: transparent;
	color: #4a4360;
	border: 0;
	border-radius: 999px;
	padding: 9px 16px;
}

.earn-dash .earn-tabs .earn-tabs__btn:hover {
	background: rgba(124, 58, 237, .08);
	background-color: rgba(124, 58, 237, .08);
	color: #14101f;
}

.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"],
.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"]:hover,
.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"]:focus,
.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"]:active {
	background: linear-gradient(135deg, #7c3aed, #a855f7);
	background-color: #7c3aed;
	color: #ffffff;
}

/* ---------------------------------------------- signup / sign-in toggle */

.earn-modal .earn-auth .earn-auth__tab,
.earn-inline-auth .earn-auth .earn-auth__tab,
.earn-gate .earn-auth .earn-auth__tab,
.earn-modal .earn-auth .earn-auth__tab:focus,
.earn-inline-auth .earn-auth .earn-auth__tab:focus,
.earn-gate .earn-auth .earn-auth__tab:focus,
.earn-modal .earn-auth .earn-auth__tab:active,
.earn-inline-auth .earn-auth .earn-auth__tab:active,
.earn-gate .earn-auth .earn-auth__tab:active {
	background: transparent;
	background-color: transparent;
	color: #5a5370;
	border: 0;
	border-radius: 999px;
	padding: 9px 10px;
}

/* Hover tints the label only. The white pill marks the active tab. */
.earn-modal .earn-auth .earn-auth__tab:hover,
.earn-inline-auth .earn-auth .earn-auth__tab:hover,
.earn-gate .earn-auth .earn-auth__tab:hover {
	background: transparent;
	background-color: transparent;
	color: #7c3aed;
}

.earn-modal .earn-auth .earn-auth__tab[aria-selected="true"],
.earn-inline-auth .earn-auth .earn-auth__tab[aria-selected="true"],
.earn-gate .earn-auth .earn-auth__tab[aria-selected="true"],
.earn-modal .earn-auth .earn-auth__tab[aria-selected="true"]:hover,
.earn-inline-auth .earn-auth .earn-auth__tab[aria-selected="true"]:hover,
.earn-gate .earn-auth .earn-auth__tab[aria-selected="true"]:hover,
.earn-modal .earn-auth .earn-auth__tab[aria-selected="true"]:focus,
.earn-inline-auth .earn-auth .earn-auth__tab[aria-selected="true"]:focus,
.earn-gate .earn-auth .earn-auth__tab[aria-selected="true"]:focus {
	background: transparent;
	background-color: transparent;
	color: #14101f;
}

/* ------------------------------------------------------- close button */

.earn-modal .earn-modal__close,
.earn-modal .earn-modal__close:hover,
.earn-modal .earn-modal__close:focus,
.earn-modal .earn-modal__close:active {
	width: 34px;
	height: 34px;
	min-width: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	background-color: rgba(255, 255, 255, .2);
	color: #ffffff;
	font-size: 22px;
	line-height: 34px;
	text-align: center;
}

.earn-modal .earn-modal__close:hover { background: rgba(255, 255, 255, .36); background-color: rgba(255, 255, 255, .36); }

/* ------------------------------------------------ small icon buttons */

.earn-dash .earn-method__del,
.earn-dash .earn-method__del:focus,
.earn-dash .earn-method__del:active {
	background: transparent;
	background-color: transparent;
	color: #6b6584;
	padding: 0;
	border: 0;
	border-radius: 9px;
}

.earn-dash .earn-method__del:hover { background: rgba(225, 29, 72, .1); background-color: rgba(225, 29, 72, .1); color: #be123c; }

/* Keyboard focus stays visible on everything we restyled. */
.earn-bar button:focus-visible,
.earn-dash button:focus-visible,
.earn-modal button:focus-visible,
.earn-inline-auth button:focus-visible,
.earn-gate button:focus-visible {
	outline: 2px solid #7c3aed;
	outline-offset: 2px;
}

/* ======================================================================
   Contrast. The caption grey #918ba6 measured 3.26:1 on white and the
   green chip text 3.05:1 — both under the 4.5:1 that small text needs.
   ====================================================================== */

.earn-dash { --ed-faint: #6b6584; }
.earn-bar { --eb-faint: #6b6584; }

.earn-dash .earn-chip--mint { color: #047857; }
.earn-dash .earn-chip--amber { color: #a85a05; }
.earn-dash .earn-chip--violet { color: #6d28d9; }

.earn-modal .earn-form__trust,
.earn-modal .earn-perk,
.earn-inline-auth .earn-form__trust { color: #6b6584; }

/* ======================================================================
   Signed-out band — the invitation, so it should be the loudest strip.
   ====================================================================== */

.earn-bar .earn-bar__guest {
	gap: 16px;
	padding: 4px 0;
}

.earn-bar:has(.earn-bar__guest:not([hidden])) {
	background: linear-gradient(90deg, #faf5ff 0%, #fdf2f8 55%, #f5f3ff 100%);
}

.earn-bar .earn-bar__guest .earn-bar__lock {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: 14px;
	background: linear-gradient(135deg, #7c3aed, #db2777);
	color: #ffffff;
	box-shadow: 0 10px 22px -12px rgba(124, 58, 237, .95);
	animation: earnGiftBob 3s ease-in-out infinite;
}

@keyframes earnGiftBob {
	0%, 100% { transform: translateY(0) rotate(0); }
	50% { transform: translateY(-3px) rotate(-4deg); }
}

.earn-bar .earn-bar__guest-text strong {
	font-size: 16.5px;
	font-weight: 800;
	letter-spacing: -.015em;
	color: #14101f;
}

/* Asked for: the supporting line a size up and easier to read. */
.earn-bar .earn-bar__guest-text small {
	font-size: 14px;
	font-weight: 500;
	color: #4a4360;
	margin-top: 2px;
}

.earn-guest-perks { display: flex; gap: 8px; flex: 0 0 auto; }

.earn-guest-perk {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 800;
	white-space: nowrap;
}

.earn-guest-perk--mint { background: #dcfce7; color: #047857; }
.earn-guest-perk--violet { background: #ede9fe; color: #6d28d9; }

.earn-bar .earn-guest-cta,
.earn-bar .earn-guest-cta:hover,
.earn-bar .earn-guest-cta:focus,
.earn-bar .earn-guest-cta:active {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	box-shadow: 0 12px 26px -12px rgba(219, 39, 119, .95);
	transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .2s;
	flex: 0 0 auto;
}

.earn-bar .earn-guest-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px -12px rgba(219, 39, 119, 1);
}

.earn-bar .earn-guest-cta svg { transition: transform .2s; }
.earn-bar .earn-guest-cta:hover svg { transform: translateX(3px); }

.earn-guest-cta__shine {
	position: absolute;
	top: 0; bottom: 0; left: -60%;
	width: 45%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
	transform: skewX(-18deg);
	animation: earnShine 3.6s ease-in-out infinite;
	pointer-events: none;
}

@media ( max-width: 900px ) {
	.earn-guest-perks { display: none; }
}

@media ( max-width: 620px ) {
	.earn-bar .earn-bar__guest { flex-wrap: wrap; gap: 11px; }
	.earn-bar .earn-bar__guest .earn-bar__lock { width: 40px; height: 40px; flex: 0 0 40px; }
	.earn-bar .earn-bar__guest-text { flex: 1 1 calc( 100% - 60px ); order: 0; }
	.earn-bar .earn-bar__guest-text strong { font-size: 15px; }
	.earn-bar .earn-bar__guest-text small { font-size: 13px; }
	.earn-bar .earn-guest-cta { width: 100%; justify-content: center; }
}

@media ( prefers-reduced-motion: reduce ) {
	.earn-bar .earn-bar__guest .earn-bar__lock,
	.earn-guest-cta__shine { animation: none; }
	.earn-bar .earn-guest-cta:hover,
	.earn-bar .earn-guest-cta:hover svg { transform: none; }
}

/* ======================================================================
   Brand gradients.
   Balance hero: pink into purple.
   Referral card: purple-led — its deep rose start read as orange.
   ====================================================================== */

.earn-dash .earn-hero {
	background: linear-gradient(135deg, #ec4899 0%, #c026d3 45%, #7c3aed 100%);
	box-shadow: 0 20px 50px -28px rgba(192, 38, 211, .9);
}

.earn-dash .earn-invite__card {
	background: linear-gradient(135deg, #c026d3 0%, #9333ea 50%, #6d28d9 100%);
	box-shadow: 0 20px 50px -28px rgba(147, 51, 234, .95);
}

/* Guest perk pills, a size up so the offer reads from across the room. */
.earn-bar .earn-guest-perks { gap: 10px; }

.earn-bar .earn-guest-perk {
	padding: 9px 16px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -.01em;
	border-radius: 999px;
}

.earn-bar .earn-guest-perk--mint { border: 1px solid rgba(4, 120, 87, .18); }
.earn-bar .earn-guest-perk--violet { border: 1px solid rgba(109, 40, 217, .18); }

/* ======================================================================
   "Day complete" should only turn the PAGE bar green. The old rule matched
   every fill, so finishing today's articles also painted the streak bar
   green at 1 of 7, and the time bar green before its own target was met.
   ====================================================================== */

.earn-bar.is-complete .earn-track__fill--streak {
	background: linear-gradient(90deg, #fbbf24, #fb7185);
}

.earn-bar.is-complete .earn-track__fill--time {
	background: linear-gradient(90deg, #38bdf8, #6366f1);
}

/* The time bar still goes green when its own target is met. */
.earn-bar .earn-metric--time.is-done .earn-track__fill--time {
	background: linear-gradient(90deg, #10b981, #34d399);
}

/* ======================================================================
   Captcha widget in the header (replaces Time / Page / Day).
   ====================================================================== */

.earn-bar .earn-ring--cap .earn-ring__fg { stroke: #db2777; }
.earn-bar .earn-metric--cap .earn-metric__label,
.earn-bar .earn-metric--cap .earn-ring i { color: #be185d; }
.earn-bar .earn-track__fill--cap { background: linear-gradient(90deg, #ec4899, #a855f7); }

/* All of today's captchas done: the widget turns green. */
.earn-bar.is-cap-full .earn-ring--cap .earn-ring__fg { stroke: #10b981; }
.earn-bar.is-cap-full .earn-metric--cap .earn-metric__label,
.earn-bar.is-cap-full .earn-metric--cap .earn-ring i { color: #0f7a4d; }
.earn-bar.is-cap-full .earn-track__fill--cap { background: linear-gradient(90deg, #10b981, #34d399); }
.earn-bar.is-cap-full .earn-metric--cap { border-color: rgba(16, 185, 129, .4); background: #f1fcf7; }

/* Pink accent for the captcha stat card and the Captchas tab progress. */
.earn-dash .earn-card--pink { --c: #db2777; }
.earn-dash .earn-progress__fill--cap { background: linear-gradient(90deg, #ec4899, #a855f7); }

/* ======================================================================
   Header layout: captchas on the left, money and account together on the
   right. The auto margin moves from the account chip to the money chip.
   ====================================================================== */

.earn-bar .earn-money { margin-left: auto; }

.earn-bar .earn-account-link,
.earn-bar .earn-account-link:hover { margin-left: 0; }

/* ----------------------------------------------------- more presence */

.earn-bar {
	background:
		radial-gradient(600px 120px at 12% 0%, rgba(236, 72, 153, .10), transparent 70%),
		radial-gradient(600px 120px at 88% 100%, rgba(124, 58, 237, .10), transparent 70%),
		linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
}

/* Captcha chip: gradient hairline border and a soft glow. */
.earn-bar .earn-metric--cap {
	border: 1px solid transparent;
	background:
		linear-gradient(#ffffff, #ffffff) padding-box,
		linear-gradient(135deg, #f9a8d4, #c4b5fd) border-box;
	box-shadow: 0 10px 26px -18px rgba(219, 39, 119, .9);
}

.earn-bar.is-cap-full .earn-metric--cap {
	background:
		linear-gradient(#f1fcf7, #f1fcf7) padding-box,
		linear-gradient(135deg, #6ee7b7, #34d399) border-box;
}

/* Money chip: deeper gradient and a stronger lift. */
.earn-bar .earn-money {
	background: linear-gradient(135deg, #047857 0%, #059669 35%, #10b981 75%, #34d399 100%);
	box-shadow: 0 14px 30px -14px rgba(16, 185, 129, 1), inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* Today's delta pulses gently so the eye goes to it. */
.earn-bar .earn-money__delta { animation: earnDeltaIn .45s cubic-bezier(.2, .9, .3, 1), earnDeltaGlow 2.8s ease-in-out 1s infinite; }

@keyframes earnDeltaGlow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
	50% { box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }
}

@media ( prefers-reduced-motion: reduce ) {
	.earn-bar .earn-money__delta { animation: none; }
}

/* The payout form hides the name field for methods that have none. */
.earn-dash .earn-field[hidden] { display: none; }

/* Seven dashboard tabs on one row: tighter padding and gaps. Narrow
   screens keep the horizontal scroll. */
.earn-dash .earn-tabs { gap: 2px; padding: 4px; justify-content: space-between; flex-wrap: nowrap; }
.earn-dash .earn-tabs .earn-tabs__btn,
.earn-dash .earn-tabs .earn-tabs__btn:hover,
.earn-dash .earn-tabs .earn-tabs__btn:focus,
.earn-dash .earn-tabs .earn-tabs__btn:active,
.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"] { padding: 8px 10px; gap: 5px; font-size: 13px; }

/* Phones: captchas take the first row; Balance and Account share the
   second, same height, so the account chip never sits alone on a row. */
@media ( max-width: 620px ) {
	.earn-bar .earn-bar__member { flex-wrap: wrap; gap: 10px; }
	.earn-bar .earn-bar__member .earn-metric--cap { flex: 1 1 100%; order: 1; }
	.earn-bar .earn-bar__member .earn-money { flex: 1 1 0; min-width: 0; order: 2; }
	.earn-bar .earn-bar__member .earn-account-link,
	.earn-bar .earn-bar__member .earn-account-link:hover {
		flex: 0 0 auto; order: 3; margin-left: 0;
		align-self: stretch; min-height: 54px; padding: 6px 12px 6px 6px; gap: 9px;
		transform: none;
	}
	.earn-bar .earn-bar__member .earn-account-link__text { display: flex; }
	.earn-bar .earn-bar__member .earn-account-link__text b { max-width: 78px; font-size: 13px; }
	.earn-bar .earn-bar__member .earn-account-link__chev { display: none; }
}

/* ------------------------------------------------------------ spinner */
.earn-spin {
	display: inline-block; flex: none;
	width: 17px; height: 17px;
	border: 2.5px solid currentColor; border-right-color: transparent;
	border-radius: 50%;
	animation: earnSpin .7s linear infinite;
	vertical-align: -3px;
}
.earn-spin--lg { width: 42px; height: 42px; border-width: 4px; }
@keyframes earnSpin { to { transform: rotate(360deg); } }

/* A working button stays fully visible, shows the spinner, and does not
   look disabled — people can see something is happening. */
.earn-bar .earn-btn.is-busy,
.earn-dash .earn-btn.is-busy,
.earn-modal .earn-btn.is-busy,
.earn-inline-auth .earn-btn.is-busy,
.earn-gate .earn-btn.is-busy {
	opacity: 1;
	cursor: progress;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.earn-modal .earn-btn--block.is-busy,
.earn-inline-auth .earn-btn--block.is-busy,
.earn-gate .earn-btn--block.is-busy { display: flex; }

@media ( prefers-reduced-motion: reduce ) {
	.earn-spin { animation-duration: 1.6s; }
}

/* The Balance chip is a link to My Earnings, like the account chip. */
.earn-bar a.earn-money,
.earn-bar a.earn-money:hover,
.earn-bar a.earn-money:focus,
.earn-bar a.earn-money:visited { color: #fff; text-decoration: none; cursor: pointer; }
.earn-bar a.earn-money { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.earn-bar a.earn-money:hover { transform: translateY(-1px); filter: brightness(1.05); }
.earn-bar a.earn-money:focus-visible { outline: 3px solid rgba(16,185,129,.45); outline-offset: 2px; }
@media ( prefers-reduced-motion: reduce ) { .earn-bar a.earn-money:hover { transform: none; } }

/* The hidden attribute always wins inside the dashboard. Button styles
   set display:inline-flex, which was showing "Load more" even when there
   was nothing more to load. */
.earn-dash [hidden],
.earn-bar [hidden],
.earn-modal [hidden] { display: none !important; }

/* The iOS save overlay sits outside the dashboard, so pin its button here. */
.earn-save-overlay button.earn-btn,
.earn-save-overlay button.earn-btn:hover,
.earn-save-overlay button.earn-btn:focus,
.earn-save-overlay button.earn-btn:active {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 24px; border: 0; border-radius: 12px;
	background: linear-gradient(135deg, #7c3aed, #a855f7 50%, #db2777); background-color: #7c3aed;
	color: #fff; font: 700 15px 'Plus Jakarta Sans', system-ui, sans-serif;
	text-transform: none; letter-spacing: 0; box-shadow: none;
}

/* ------------------------------------------------------------ Coins */
.earn-coin { display: inline-block; flex: none; vertical-align: -0.2em; filter: drop-shadow(0 2px 3px rgba(120, 72, 0, .35)); }
.earn-bar .earn-money__ico .earn-coin { width: 26px; height: 26px; }
.earn-bar .earn-money__ico:has(.earn-coin) { background: rgba(255, 255, 255, .22); }
.earn-bar .earn-guest-perk .earn-coin { margin-right: 4px; vertical-align: -4px; }
.earn-cap .earn-cap__reward { display: inline-flex; align-items: center; gap: 6px; }
.earn-dash .earn-hero__balance { display: flex; align-items: center; gap: 10px; }
.earn-dash .earn-coin--hero { width: 40px; height: 40px; animation: earnCoinIn .7s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes earnCoinIn { from { transform: rotateY(90deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media ( prefers-reduced-motion: reduce ) { .earn-dash .earn-coin--hero { animation: none; } }

/* ------------------------------------------------ colourful tabs
   Each tab has its own colour for the icon and text; the open tab is
   filled with that colour. */
.earn-dash .earn-tabs .earn-tabs__btn[data-earn-dtab="captchas"]    { --tc: #2563eb; } /* blue */
.earn-dash .earn-tabs .earn-tabs__btn[data-earn-dtab="leaderboard"] { --tc: #16a34a; } /* green */
.earn-dash .earn-tabs .earn-tabs__btn[data-earn-dtab="receipt"]     { --tc: #ca8a04; } /* yellow */
.earn-dash .earn-tabs .earn-tabs__btn[data-earn-dtab="wallet"]      { --tc: #db2777; } /* pink */
.earn-dash .earn-tabs .earn-tabs__btn[data-earn-dtab="payout"]      { --tc: #18181b; } /* black */
.earn-dash .earn-tabs .earn-tabs__btn[data-earn-dtab="withdraw"]    { --tc: #ea580c; } /* orange */
.earn-dash .earn-tabs .earn-tabs__btn[data-earn-dtab="affiliate"]   { --tc: #7c3aed; } /* purple */

.earn-dash .earn-tabs .earn-tabs__btn,
.earn-dash .earn-tabs .earn-tabs__btn:focus,
.earn-dash .earn-tabs .earn-tabs__btn:active { color: var(--tc, #4a4360); }
.earn-dash .earn-tabs .earn-tabs__btn .earn-i { color: var(--tc, currentColor); }
.earn-dash .earn-tabs .earn-tabs__btn:hover {
	color: var(--tc, #14101f);
	background: color-mix(in srgb, var(--tc, #7c3aed) 10%, transparent);
	background-color: color-mix(in srgb, var(--tc, #7c3aed) 10%, transparent);
}
.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"],
.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"]:hover,
.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"]:focus,
.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"]:active {
	background: var(--tc, #7c3aed);
	background-color: var(--tc, #7c3aed);
	color: #fff;
	box-shadow: 0 8px 18px -10px var(--tc, #7c3aed);
}
.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"] .earn-i { color: #fff; }

/* Phones and small tablets: every tab visible, wrapped onto rows —
   no sideways scrolling to discover hidden tabs. */
@media ( max-width: 760px ) {
	.earn-dash .earn-tabs {
		flex-wrap: wrap; justify-content: center; overflow: visible;
		gap: 6px; padding: 8px; border-radius: 20px;
	}
	.earn-dash .earn-tabs .earn-tabs__btn,
	.earn-dash .earn-tabs .earn-tabs__btn:hover,
	.earn-dash .earn-tabs .earn-tabs__btn:focus,
	.earn-dash .earn-tabs .earn-tabs__btn:active {
		flex: 0 1 auto; padding: 8px 12px; font-size: 13px;
		background: color-mix(in srgb, var(--tc, #7c3aed) 9%, #fff);
		background-color: color-mix(in srgb, var(--tc, #7c3aed) 9%, #fff);
	}
	.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"] { flex: 0 1 auto; padding: 8px 12px; font-size: 13px; }
}

/* Larger tab text */
.earn-dash .earn-tabs .earn-tabs__btn,
.earn-dash .earn-tabs .earn-tabs__btn:hover,
.earn-dash .earn-tabs .earn-tabs__btn:focus,
.earn-dash .earn-tabs .earn-tabs__btn:active,
.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"] { font-size: 15px; gap: 6px; padding: 9px 11px; }
.earn-dash .earn-tabs .earn-tabs__btn .earn-i { width: 17px; height: 17px; }
/* If a narrow theme column cannot fit them on one row, wrap rather than hide. */
.earn-dash .earn-tabs { flex-wrap: wrap; justify-content: center; }
@media ( max-width: 760px ) {
	.earn-dash .earn-tabs .earn-tabs__btn,
	.earn-dash .earn-tabs .earn-tabs__btn:hover,
	.earn-dash .earn-tabs .earn-tabs__btn:focus,
	.earn-dash .earn-tabs .earn-tabs__btn:active,
	.earn-dash .earn-tabs .earn-tabs__btn[aria-selected="true"] { font-size: 14px; padding: 8px 12px; }
}
