/* Apply page (apply.html): the landing page's dark ember world, so tapping "Apply here" lands in the same place.
   Dark unless the visitor chose light with the theme button (then app.css's light look applies). Only apply.html loads this file. */
html:not([data-theme="light"]):has(> body.ap){color-scheme:dark;background:#0a0a0b}
html:not([data-theme="light"]) body.ap{
  --bg:#0a0a0b; --surface:#141416; --sunken:#1f1f22; --line:rgba(255,255,255,.09); --line-strong:rgba(255,255,255,.2);
  --ink:#f5f5f6; --muted:#a6a6b0;
  --accent:#ff6a4d; --accent-ink:#ff8d75; --accent-soft:#3b1e18; --on-accent:#1b0b07;
  --feature:#26272b; --feature-track:#3a3c42;
  --ok:#4cc38f; --ok-soft:#14301f; --warn:#e3b04b; --warn-soft:#3a2e12; --water:#6aa0f5;
  --dot:transparent; --glass:rgba(10,10,11,.78);
  caret-color:var(--accent);
}
/* one warm light from the top, like the landing page */
html:not([data-theme="light"]) body.ap::before{content:"";position:fixed;inset:0 0 auto;height:560px;z-index:-1;pointer-events:none;
  background:radial-gradient(55% 100% at 85% -25%,rgba(255,106,77,.22),transparent 70%)}
html:not([data-theme="light"])[dir="rtl"] body.ap::before{background:radial-gradient(55% 100% at 15% -25%,rgba(255,106,77,.22),transparent 70%)}
html:not([data-theme="light"]) body.ap .btn.primary{background:linear-gradient(180deg,#ff9a5a,var(--accent));border-color:transparent;
  box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 8px 18px -10px rgba(0,0,0,.6)}
body.ap ::selection{background:color-mix(in srgb,var(--accent) 38%,transparent)}
body.ap .btn{transition:transform .16s cubic-bezier(.23,1,.32,1),filter .2s ease}
body.ap .btn:active{transform:scale(.97)}

/* progress: a thin line under the header that fills as the visitor moves through the nine sections (assets/apply.js) */
.ap-progress{position:absolute;inset-inline:0;bottom:-1px;height:2px;overflow:hidden;pointer-events:none}
.ap-progress i{display:block;height:100%;background:linear-gradient(90deg,#ff9a5a,var(--accent));transform:scaleX(var(--p,0));transform-origin:left center;transition:transform .45s cubic-bezier(.23,1,.32,1)}
[dir="rtl"] .ap-progress i{transform-origin:right center;background:linear-gradient(270deg,#ff9a5a,var(--accent))}
@media (prefers-reduced-motion:reduce){ .ap-progress i{transition:none} }

/* pay when you apply (assets/apply-pay.js) */
.pyamount{font-size:20px;font-weight:700;margin:4px 0}
.payopts{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.payopt{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1.5px solid var(--line);border-radius:16px;background:var(--surface);cursor:pointer}
.payopt.on{border-color:var(--accent);background:var(--accent-soft)}
.payopt input{margin-top:3px;accent-color:var(--accent)}
.payopt span{display:flex;flex-direction:column;gap:2px}
.paytransfer{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.paynote{white-space:pre-wrap;background:var(--sunken);border-radius:12px;padding:10px 12px;margin:0;font-weight:600}
.payqr{width:180px;max-width:100%;border-radius:12px;border:1px solid var(--line);background:#fff}
.paydrop{aspect-ratio:auto;min-height:140px;max-width:260px}
