/* Zora Rings: wallet, Extras, thank-yous, fund panels. Built on Zora Social's tokens. */

.zora-rings-balance { display: grid; gap: 8px; }
.zora-rings-balance__main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.zora-rings-balance__label { color: var(--z-muted); font-weight: 600; }
.zora-rings-balance__n {
	font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; letter-spacing: -.04em; font-weight: 800;
	background: var(--z-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.zora-rings-balance__unit { color: var(--z-muted); font-weight: 600; }
.zora-rings-balance__held { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--z-muted); font-size: .88rem; }
.zora-rings-balance__held svg { flex: none; margin-top: 3px; }

.zora-rings-bundles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.zora-rings-bundle {
	display: grid; justify-items: center; gap: 2px; padding: 16px 10px; cursor: pointer;
	background: var(--z-surface); border: 1px solid var(--z-border); border-radius: 18px;
	font: inherit; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.zora-rings-bundle:hover, .zora-rings-bundle:focus-visible { border-color: var(--z-brand-mid); transform: translateY(-2px); box-shadow: var(--z-shadow); }
.zora-rings-bundle b { font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.zora-rings-bundle span { color: var(--z-muted); font-size: .82rem; font-weight: 600; }
.zora-rings-bundle em { font-style: normal; font-weight: 700; margin-top: 4px; }
.zora-rings-bundle small { color: var(--z-success, #1a7f37); font-weight: 600; font-size: .76rem; }
.zora-rings-bundle.is-busy { opacity: .6; }

.zora-rings-toggle { margin-top: 12px; }

.zora-rings-thanks { list-style: none; margin: 0; padding: 0; display: grid; }
.zora-rings-thanks li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--z-border); }
.zora-rings-thanks li:first-child { border-top: 0; }
.zora-rings-thanks p { margin: 0 0 2px; }
.zora-rings-thanks blockquote { margin: 6px 0; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--z-brand-mid) 6%, transparent); font-style: italic; }
.zora-rings-thanks small { color: var(--z-muted); font-size: .8rem; }
.zora-rings-thanks__amount {
	flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
	font-weight: 800; font-size: .95rem; color: #fff; background: var(--z-gradient);
}
.zora-rings-thanks.is-given .zora-rings-thanks__amount { background: var(--z-surface-2, #f2eef6); color: var(--z-text); }

.zora-rings-history .is-num, .zora-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.zora-rings-history .is-in { color: var(--z-success, #1a7f37); font-weight: 700; }
.zora-rings-history .is-out { color: var(--z-text); }

.zora-rings-spaces { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.zora-rings-spaces a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; text-decoration: none; }
.zora-rings-spaces a:hover { background: color-mix(in srgb, var(--z-brand-mid) 6%, transparent); }
.zora-rings-spaces small { margin-left: auto; color: var(--z-muted); }

.zora-rings-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 12px; }
.zora-rings-plan { display: grid; gap: 8px; align-content: start; }
.zora-rings-plan h3 { margin: 0; }
.zora-rings-plan.is-current { border-color: var(--z-brand-mid); box-shadow: 0 0 0 2px color-mix(in srgb, var(--z-brand-mid) 25%, transparent); }

.zora-rings-running { list-style: none; margin: 0; padding: 0; display: grid; }
.zora-rings-running li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--z-border); }
.zora-rings-running li:first-child { border-top: 0; }
.zora-rings-running small { display: block; color: var(--z-muted); }

/* Appreciate dialog */
.zora-rings-amounts { border: 0; padding: 0; margin: 4px 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.zora-rings-amounts legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.zora-rings-amount { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border: 1px solid var(--z-border); border-radius: 16px; cursor: pointer; }
.zora-rings-amount input { position: absolute; opacity: 0; pointer-events: none; }
.zora-rings-amount b { font-size: 1.35rem; letter-spacing: -.02em; }
.zora-rings-amount small { color: var(--z-muted); }
.zora-rings-amount:has(input:checked) { border-color: transparent; background: var(--z-gradient); color: #fff; }
.zora-rings-amount:has(input:checked) small { color: rgba(255, 255, 255, .85); }
.zora-rings-amount:has(input:focus-visible) { outline: 2px solid var(--z-brand-mid); outline-offset: 2px; }
.zora-rings-amount.is-short { opacity: .45; cursor: not-allowed; }

.zora-rings-fund .zora-row { align-items: flex-end; }
.zora-rings-fund input[type="number"] { max-width: 120px; }

.zora-rings-prices fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.zora-rings-prices legend { font-weight: 700; margin-bottom: 8px; }
.zora-rings-prices__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.zora-rings-prices .zora-table input { width: 100%; min-width: 70px; }

@media (prefers-reduced-motion: reduce) {
	.zora-rings-bundle { transition: none; }
	.zora-rings-bundle:hover { transform: none; }
}

/* "You appreciated Amaka's post. Say Thanks with some Rings" (after Appreciate) */
.zora-rings-callout {
	/* Sits under the post's actions, inside the card (the same design as the Zora app). */
	flex: 0 0 calc(100% - 16px); box-sizing: border-box; order: 99; margin: 8px 8px 6px;
	display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 10px; align-items: start;
	padding: 12px 6px 14px 14px; border-radius: 16px;
	background: linear-gradient(120deg, rgba(58, 42, 214, .07), rgba(155, 26, 154, .07) 55%, rgba(224, 32, 74, .05));
	border: 1px solid rgba(155, 26, 154, .22);
}
.zora-rings-callout[hidden] { display: none; }
.zora-rings-callout__icon { grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--z-gradient); color: #fff; }
.zora-rings-callout p { grid-column: 2; grid-row: 1; margin: 2px 0 0; min-width: 0; display: grid; gap: 2px; line-height: 1.35; }
.zora-rings-callout p strong { font-weight: 700; font-size: .95rem; color: var(--z-text); }
.zora-rings-callout p span { color: var(--z-muted); font-size: .92rem; }
.zora-rings-callout .zora-btn { grid-column: 2; grid-row: 2; justify-self: start; }
.zora-rings-callout__close { grid-column: 3; grid-row: 1; width: 40px; height: 40px; margin-top: -4px; color: var(--z-muted); }
:root[data-theme="dark"] .zora-rings-callout { background: linear-gradient(120deg, rgba(140, 125, 255, .16), rgba(227, 154, 224, .14) 55%, rgba(255, 120, 150, .1)); border-color: rgba(227, 154, 224, .35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zora-rings-callout { background: linear-gradient(120deg, rgba(140, 125, 255, .16), rgba(227, 154, 224, .14) 55%, rgba(255, 120, 150, .1)); border-color: rgba(227, 154, 224, .35); } }
.zora-rings-callout.is-new { animation: zora-rings-in .3s ease-out; }
@keyframes zora-rings-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .zora-rings-callout.is-new { animation: none; } }
:root[data-a11y-motion="reduce"] .zora-rings-callout.is-new { animation: none; }

/* Rings & Extras (0.2): how it works, the Extras card, activity. */
.zora-rings-how__steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.zora-rings-how__steps li { display: flex; gap: 12px; align-items: flex-start; }
.zora-rings-how__steps p { margin: 2px 0 0; color: var(--z-muted); font-size: .92rem; line-height: 1.45; }
.zora-rings-how__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--z-tint); color: var(--z-tint-ink); }
.zora-rings-balance__get { margin-left: auto; }
.zora-rings-extras__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.zora-rings-extras__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.zora-rings-extras .zora-ticks { margin: 4px 0 10px; }
.zora-rings-activity .zora-tabs { margin: 4px 0 12px; }
.zora-center { text-align: center; }
.zora-rings-amount.is-other { display: flex; align-items: center; gap: 8px; }
.zora-rings-amount.is-other input[type="number"] { width: 5.5em; padding: 6px 8px; border: 1px solid var(--z-border); border-radius: var(--z-radius-sm); font: inherit; }
.zora-rings-invite__row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.zora-rings-invite__qr { flex: none; width: 132px; height: 132px; background: #fff; border-radius: var(--z-radius-sm); padding: 4px; border: 1px solid var(--z-border); }
.zora-rings-invite__qr svg { width: 100%; height: 100%; display: block; }
.zora-rings-invite__link { flex: 1 1 260px; min-width: 0; }
.zora-rings-invite__link input[readonly] { font-family: ui-monospace, monospace; font-size: .88rem; }

/* Referrals (0.3.0): steps, private numbers, and the pointer on Rings & Extras. */
.zora-rings-steps { counter-reset: zstep; list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.zora-rings-steps li { counter-increment: zstep; position: relative; padding-left: 40px; line-height: 1.5; min-height: 28px; }
.zora-rings-steps li::before { content: counter(zstep); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .88rem; color: var(--z-tint-ink); background: var(--z-tint); }
.zora-rings-howto .zora-ticks { margin-bottom: 12px; }
.zora-rings-myrefs .zora-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.zora-rings-myrefs .zora-stat { background: var(--z-surface-2); border-radius: var(--z-radius-md); }
.zora-rings-refer p { margin-top: 0; }

/* 0.4.0: Rings and Extras as two pages, with the switch between you and what you run. */
.zora-rings-switch { margin: 0 0 14px; }
.zora-rings-switch a { display: inline-flex; align-items: center; gap: 6px; }
.zora-rings-switch small { font-weight: 700; font-size: .75rem; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--z-tint); color: var(--z-tint-ink); }
.zora-rings-crumbs { margin: -4px 0 14px; }
.zora-rings-crumbs a { color: inherit; }
.zora-rings-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.zora-rings-ways > .zora-card { margin: 0; }
.zora-rings-way { display: flex; flex-direction: column; align-items: flex-start; }
.zora-rings-way h2 { margin: 10px 0 6px; }
.zora-rings-way p { margin: 0 0 10px; }
.zora-rings-way .zora-btn { margin-top: auto; }
.zora-rings-way__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--z-tint); color: var(--z-tint-ink); }
.zora-rings-way__status { margin: 0 0 12px !important; }
.zora-rings-accounts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.zora-rings-account { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; margin: 0; }
.zora-rings-account:hover { border-color: var(--z-brand-mid); }
.zora-rings-account__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.zora-rings-account__text small { color: var(--z-muted); }
.zora-rings-account__n { text-align: right; white-space: nowrap; }
.zora-rings-account__n b { font-size: 1.25rem; }
.zora-rings-account__n small { color: var(--z-muted); }
.zora-rings-paywith { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; color: var(--z-muted); font-size: .92rem; }
.zora-rings-paywith a { font-weight: 600; }
.zora-rings-cashout h2 { display: flex; align-items: center; gap: 8px; }
.zora-rings-cashout .zora-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 12px; }
.zora-rings-cashout .zora-stat { background: var(--z-surface-2); border-radius: var(--z-radius-md); }
.zora-rings-cashout .zora-table { margin-top: 12px; }
.zora-rings-extras__action { margin: 12px 0 6px; }
.zora-rings-extras__action p { margin: 6px 0 0; }
.zora-rings-need { margin: 0; }

/* Guides under For your Communities / For your Circles. */
[data-zora-switch-panel] > .zora-rings-accounts { margin-bottom: 16px; }
.zora-rings-how .zora-rings-steps li strong { color: var(--z-text); }

/* What posting this will cost (under job, listing and event forms). */
.zora-cost { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; padding: 10px 12px; border-radius: var(--z-radius-md); background: var(--z-surface-2); color: var(--z-text); font-size: .92rem; line-height: 1.45; }
.zora-cost svg { flex: none; margin-top: 2px; color: var(--z-tint-ink); }
.zora-cost.is-short { background: color-mix(in srgb, #d97706 12%, var(--z-surface)); }
