/* ==========================================================================
   Waiz Earn — subpage components (apps, help, status, account tools, cookies).
   Quieter than the homepage: one bounded piece of art per page at most.
   ========================================================================== */

/* ---------- App page hero: text beside a bounded portal card ---------- */
.app-hero { padding-bottom: clamp(32px, 5vw, 64px); }
.app-hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .app-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(280px, 380px); } }
.app-hero .eyebrow { margin-top: 18px; }
.app-hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem); margin-top: 10px; }
.app-hero-sub { margin-top: 6px; font-family: var(--f-display); font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 600; color: var(--acc-text); }
.app-hero .lede { margin-top: 16px; }

.app-feature { margin: 0 auto; width: min(100%, 340px); }
@media (max-width: 899.98px) { .app-feature { width: min(78vw, 320px); } }
.af-frame {
  position: relative; aspect-ratio: 672 / 848; --c: 16px;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  background: var(--w-base);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55));
  transform: perspective(1200px) rotateX(2deg);
  animation: af-float 7s ease-in-out infinite;
}
.af-frame::after { /* a slow prismatic rim on the bounded card */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 45%, transparent 60%) 0 0 / 250% 100% no-repeat;
  animation: af-sheen 7.5s ease-in-out infinite;
}
.af-art { width: 100%; height: 100%; object-fit: fill; }
.af-portal { position: absolute; inset: 0; width: 100%; height: 100%; }
.af-portal .portal-line { fill: none; stroke-linecap: round; }
.af-portal .glow { stroke: rgb(var(--acc-rgb)); stroke-width: 10; opacity: .22; stroke-dasharray: 90 910; animation: af-portal 14s linear infinite; }
.af-portal .core { stroke: #fff; stroke-width: 2.4; opacity: .85; stroke-dasharray: 56 944; animation: af-portal 14s linear infinite; }
.af-logo { position: absolute; left: 50%; top: 34%; width: 44%; height: 34%; translate: -50% -50%; object-fit: contain; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px rgb(var(--acc-rgb) / .35)); animation: float 6.5s ease-in-out infinite; }
@keyframes af-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes af-sheen { 0%, 55% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@keyframes af-portal { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -5px, 0); } }
:root[data-effects="off"] .af-frame, :root[data-effects="off"] .af-logo, :root[data-effects="off"] .af-portal, :root[data-effects="off"] .af-frame::after { animation: none; }
:root[data-effects="off"] .af-portal { display: none; }
:root[data-contrast="high"] .af-frame { filter: none; }
@media (prefers-reduced-motion: reduce) { .af-frame { transform: none; } .af-portal { display: none; } }

/* ---------- Status cards ---------- */
.status-grid { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.status-card { position: relative; display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-1); overflow: hidden; }
.status-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, rgb(var(--card-rgb, var(--acc-rgb))), transparent); }
.status-card header { display: flex; align-items: center; gap: 12px; }
.status-card header img { width: 44px; height: 44px; object-fit: contain; }
.status-card h3 { font-size: 1.25rem; }
.status-card p { color: var(--text-2); }
.status-card dl { margin: 0; display: grid; gap: 8px; }
.status-card dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.status-card dt { color: var(--text-3); font-size: .875rem; }
.status-card dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Help ---------- */
.help-search { max-width: 560px; margin-bottom: 18px; }
.faq details[hidden] { display: none; }
.app-help { display: grid; gap: 12px; }
@media (min-width: 760px) { .app-help { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app-help a { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color var(--t-fast), transform var(--t-fast) var(--ease); }
.app-help a:hover { border-color: var(--line-3); transform: translateY(-2px); }
.app-help img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.app-help b { display: block; }
.app-help small { color: var(--text-2); }
.never-list { list-style: none; display: grid; gap: 8px; }
.never-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.never-list li .ic { width: 18px; height: 18px; color: var(--bad); margin-top: 3px; }

/* ---------- Account tools ---------- */
.flow { display: grid; gap: var(--s5); max-width: 760px; }
.flow-steps { list-style: none; display: grid; gap: 10px; counter-reset: fs; }
.flow-steps li { counter-increment: fs; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel-2); }
.flow-steps li::before { content: counter(fs); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 700; color: var(--acc-text); border: 1px solid rgb(var(--acc-rgb) / .4); background: rgb(var(--acc-rgb) / .08); }
.flow-steps b { display: block; }
.flow-steps p { color: var(--text-2); font-size: .9375rem; }

/* ---------- Cookies: operational privacy choices ---------- */
.choice-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel-2); }
.choice h3 { font-size: 1.0625rem; margin: 0; }
.choice p { color: var(--text-2); font-size: .9375rem; }
.choice .btn { justify-self: start; }
.store-current { font-family: var(--f-mono); font-size: .8125rem; color: var(--text-3); overflow-wrap: anywhere; }
#choices:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* ---------- Rate an app after a payout (review.php, 2026-11-04) ---------- */
.rp-wrap { padding-block: clamp(20px, 5vw, 56px) clamp(36px, 6vw, 72px); display: grid; justify-items: center; }
.rp-card { position: relative; isolation: isolate; overflow: hidden; width: min(100%, 640px); padding: clamp(20px, 5vw, 36px);
  border-radius: 28px; border: 1px solid rgb(var(--acc-rgb) / .32);
  background: radial-gradient(120% 70% at 50% -10%, rgb(var(--acc-rgb) / .18), transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--w-base) 70%, #0A1022), #070C1A);
  box-shadow: 0 30px 80px -40px rgb(var(--acc-rgb) / .7), inset 0 1px 0 rgba(255, 255, 255, .08); }
.rp-glow { position: absolute; inset: -40% -20% auto; height: 70%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 200deg at 50% 100%, transparent, rgb(var(--acc-rgb) / .22), rgb(var(--acc2-rgb) / .2), transparent 60%);
  animation: rp-turn 14s linear infinite; opacity: .8; }
@keyframes rp-turn { to { transform: rotate(360deg); } }
.rp-head { display: flex; align-items: center; gap: 16px; }
.rp-head h1 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.125rem); line-height: 1.12; letter-spacing: -.03em; }
.rp-head .eyebrow { margin-bottom: 4px; }
.rp-logo { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px;
  background: radial-gradient(closest-side, rgb(var(--acc-rgb) / .3), transparent); }
.rp-logo-img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); animation: float 6.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -4px, 0); } }
.rp-badge { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--acc);
  background: rgb(var(--acc-rgb) / .1); border: 1px solid rgb(var(--acc-rgb) / .35); }
.rp-badge .ic { width: 24px; height: 24px; }
.rp-badge.is-ok { color: #7BE3B0; background: rgba(123, 227, 176, .1); border-color: rgba(123, 227, 176, .4); }
.rp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.rp-chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); font-weight: 600; font-size: .9375rem; }
.rp-chips .ic { width: 16px; height: 16px; color: var(--acc); }
.rp-chips .is-gift { border-color: rgba(255, 209, 138, .55); background: rgba(255, 209, 138, .1); color: #FFE3B3; }
.rp-chips .is-gift .ic { color: #FFD18A; }
.rp-lede { color: var(--text-2); margin-top: 12px; font-size: 1.0625rem; line-height: 1.55; }
.rp-lede strong { color: var(--text); }
.rp-form { display: grid; gap: 16px; margin-top: 20px; }
.rp-stars { border: 0; padding: 0; margin: 0; }
.rp-stars legend { font-weight: 650; margin-bottom: 8px; }
.rp-star-row { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.rp-star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rp-star-row label { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; cursor: pointer;
  font-size: 2rem; line-height: 1; color: rgba(214, 224, 236, .35); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  transition: color 160ms, transform 200ms var(--ease), border-color 160ms, background-color 160ms; }
.rp-star-row label:hover, .rp-star-row label:hover ~ label, .rp-star-row input:checked ~ label { color: #FFD18A; border-color: rgba(255, 209, 138, .55); background: rgba(255, 209, 138, .08); }
.rp-star-row label:hover { transform: translateY(-2px) scale(1.06); }
.rp-star-row input:checked + label { animation: rp-pop 360ms var(--ease); text-shadow: 0 0 18px rgba(255, 209, 138, .8); }
.rp-star-row input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }
@keyframes rp-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (max-width: 379.98px) { .rp-star-row label { width: 44px; height: 44px; font-size: 1.625rem; } }
.rp-stars.is-err .rp-star-row label { border-color: var(--bad); }
.rp-submit { min-height: 52px; }
.rp-fine { margin-top: 16px; color: var(--text-3); font-size: .875rem; line-height: 1.5; }
.rp-fine a { color: var(--text-2); }
.rp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.rp-points { position: relative; display: grid; justify-items: center; gap: 2px; margin: 22px auto 4px; padding: 18px 24px; border-radius: 22px; text-align: center;
  border: 1px solid rgba(255, 209, 138, .5); background: radial-gradient(closest-side, rgba(255, 209, 138, .16), transparent), rgba(255, 209, 138, .05); }
.rp-points b { font-family: var(--f-display); font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem); line-height: 1; color: #FFE3B3; text-shadow: 0 0 26px rgba(255, 209, 138, .55); animation: rp-pop 600ms var(--ease) both; }
.rp-points span { color: var(--text-2); font-weight: 600; }
.rp-burst { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; }
.rp-burst i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #FFE3B3; box-shadow: 0 0 10px 2px rgba(255, 209, 138, .8); opacity: 0;
  animation: rp-spark 1.1s var(--ease) .15s forwards; }
.rp-burst i:nth-child(1) { --a: 0deg; } .rp-burst i:nth-child(2) { --a: 60deg; } .rp-burst i:nth-child(3) { --a: 120deg; }
.rp-burst i:nth-child(4) { --a: 180deg; } .rp-burst i:nth-child(5) { --a: 240deg; } .rp-burst i:nth-child(6) { --a: 300deg; }
@keyframes rp-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(90px) scale(.3); } }
:root[data-theme="light"] .rp-card { color: var(--text); }
:root[data-effects="off"] .rp-glow, :root[data-effects="off"] .rp-burst, :root[data-contrast="high"] .rp-glow { display: none; }
:root[data-contrast="high"] .rp-card { background: #000; border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .rp-glow, .rp-burst { display: none; } .rp-logo-img, .rp-points b, .rp-star-row input:checked + label { animation: none; } }
