/* Sandbox brand treatment. Provider wallet buttons retain their own branding. */
html:root,html[data-platform],html[data-platform][data-theme]{--store-accent:#7835e8;--store-action-ink:#fff;--accent:#7835e8;--secondary:#f0eafa}
html:root{--page:#fcfbff;--panel:#f5f2fa;--ink:#211d2e;--muted:#686273;--line:#e5deef}
@media(prefers-color-scheme:dark){html:root:not([data-theme=light]),html[data-platform]:not([data-theme=light]){--page:#111016;--panel:#1e1b26;--ink:#f7f4fc;--muted:#b6afc4;--line:#35303f;--secondary:#282232;--accent:#b997ff}}
html[data-theme=dark],html[data-platform][data-theme=dark]{--page:#111016;--panel:#1e1b26;--ink:#f7f4fc;--muted:#b6afc4;--line:#35303f;--secondary:#282232;--accent:#b997ff}
button:not(.shot):not(.secondary):not(.close):not(.text-action):not(.footer-link):not([data-language]),.button{background:linear-gradient(115deg,#9534d2,#6c32ed);color:#fff;border-radius:16px;box-shadow:0 4px 14px #7134da18;transition:filter .15s,box-shadow .15s}
button:not(:disabled):hover,.button:hover{filter:brightness(1.06)}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b991ff;outline-offset:4px}
button:disabled{opacity:.52}
#success{max-width:660px;margin:20px auto 0;padding:0;text-align:center}
#success h1{font-size:clamp(28px,4vw,36px);line-height:1.15;letter-spacing:-1px;max-width:550px;margin:0 auto 14px}
#success .eyebrow{font-size:11px;margin:18px 0 10px;letter-spacing:1.7px}
.success-badge{display:grid;place-items:center;width:48px;height:48px;margin:0 auto;color:var(--accent);background:var(--secondary);border:1px solid var(--line);border-radius:50%;font-size:25px}
.success-badge svg{width:24px;height:24px}
.success-intro{max-width:505px;margin:0 auto 26px;color:var(--muted);line-height:1.6}
.download-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 26px}
.download-button{min-height:56px;display:flex;align-items:center;justify-content:center;gap:12px;line-height:1.3;padding:15px 18px;white-space:normal}
.download-button svg{width:22px;height:24px;flex:0 0 22px}
.download-buttons [hidden]{display:none}
.qr-card{border:1px solid var(--line);border-radius:24px;background:var(--panel);padding:26px 24px 20px}
.qr-card h2{font-size:19px;line-height:1.35;letter-spacing:-.3px;margin:0 0 7px}
.qr-card p{color:var(--muted);font-size:14px;line-height:1.5;max-width:440px;margin:0 auto 18px}
.qr-frame{display:grid;place-items:center;width:240px;max-width:100%;margin:0 auto 16px;padding:18px;background:#fff;border-radius:20px;box-shadow:0 1px 7px #0000000d}
#qr{width:204px;max-width:100%;margin:0;line-height:0;aspect-ratio:1}
#qr svg{display:block;width:100%;height:auto}
.qr-card .fine{font-size:12px;margin-bottom:0}
#success .email-link{display:flex;align-items:center;justify-content:center;gap:10px;max-width:350px;min-height:50px;margin:22px auto 12px;background:transparent;border:1px solid var(--line);border-radius:16px;color:var(--ink);font-size:15px}
.email-link svg{width:20px;height:20px;flex:0 0 20px}
#success .success-help{max-width:490px;margin:0 auto;color:var(--muted);font-size:12px}
#success .refresh-link{max-width:220px;margin:10px auto;font-size:13px;text-decoration:underline}
#status{text-align:center;color:var(--muted);font-size:13px;margin-top:18px}
.footer-link{display:inline;width:auto;background:none;border-radius:0;margin:0;padding:0;color:var(--muted);font-size:inherit;font-weight:400;text-decoration:underline;box-shadow:none}
.legal-links{align-items:center}
#payment-wallets{display:grid;gap:12px;margin-bottom:18px}
#payment-wallets[hidden]{display:none}
#payment-wallets>div[hidden]{display:none}
.email-dialog{width:calc(100vw - 32px);max-width:440px;max-height:calc(100dvh - 32px);padding:32px 28px 26px;border:1px solid var(--line);border-radius:24px;background:var(--page);color:var(--ink);overflow-y:auto;box-shadow:0 24px 80px #0004}
.email-dialog::backdrop{background:#11101688;backdrop-filter:blur(5px)}
.email-dialog h2{font-size:24px;line-height:1.2;letter-spacing:-.6px;margin:0 32px 12px 0}
.email-dialog p{font-size:14px;line-height:1.55;color:var(--muted);margin:0 0 20px}
.email-dialog .close{position:absolute;right:12px;top:12px;width:36px;height:36px;display:grid;place-items:center;background:transparent;color:var(--muted);padding:8px;border-radius:12px}
.email-dialog .close svg{width:20px;height:20px}
.email-dialog label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}
.email-dialog input{display:block;width:100%;min-height:50px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);padding:12px 14px}
#email-error{color:#bd263f;margin:10px 0;min-height:0;font-size:13px}
#email-error:empty{margin:16px 0}
#email-sent-view{text-align:center}
#email-sent-view .success-badge{margin-bottom:20px}
#email-sent-view h2{margin-right:0}
#email-sent-recipient{overflow-wrap:anywhere}
#email-countdown{font-size:12px;margin:14px 0 0}
#payment-guard-dialog .primary{background:linear-gradient(115deg,#9534d2,#6c32ed);color:#fff}
@media(max-width:540px){#success{margin-top:8px}.download-buttons{grid-template-columns:1fr;gap:10px;margin-bottom:22px}.qr-card{padding:24px 18px 20px;border-radius:20px}.success-intro{font-size:15px}#success h1{letter-spacing:-.65px}.email-dialog{padding:30px 22px 24px}}
@media(prefers-reduced-motion:reduce){button,.button{transition:none}}

.screenshot-gallery{margin-bottom:28px}
#screenshots{gap:14px;padding-bottom:8px;margin-bottom:8px;scrollbar-width:none;overscroll-behavior-x:contain}
#screenshots::-webkit-scrollbar{display:none}
#screenshots .shot{width:222px;flex-basis:222px;border-radius:20px;overflow:hidden}
#screenshots .shot img{border-radius:20px}
.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--muted);font-size:12px}
.gallery-controls>div{display:flex;gap:7px}
button.gallery-control{display:grid;place-items:center;background:var(--panel)!important;border:1px solid var(--line);color:var(--ink)!important;border-radius:50%!important;width:38px;height:38px;padding:9px;box-shadow:none!important}
.gallery-control svg{width:18px;height:18px}
.gallery-control svg[hidden]{display:none}
@media(max-width:760px){#screenshots .shot{width:190px;flex-basis:190px}}

/* App Store-inspired review header: title/stars left, date/author right. */
html[data-platform] .stars,html[data-platform] .review-card .stars{color:#ffad28}
html[data-platform] .review-card{border:0;background:var(--panel);border-radius:22px;padding:22px;min-height:190px}
.review-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.review-header>div:first-child{min-width:0;flex:1}
.review-card h3{font-size:14px;line-height:1.35;margin:0 0 4px}
.review-card .stars{font-size:15px;letter-spacing:.5px}
.review-header .review-meta{display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:2px;font-size:11px;line-height:1.4;flex:0 0 auto;max-width:42%;margin:0}
.review-meta span{overflow-wrap:anywhere}
.review-card blockquote{font-size:14px;line-height:1.6;margin:18px 0 0;color:var(--ink)}
#screenshots{cursor:grab;touch-action:pan-x pan-y;scroll-snap-type:none;user-select:none}
#screenshots.is-dragging{cursor:grabbing;scroll-behavior:auto}
#screenshots img{user-select:none;-webkit-user-drag:none}
button.gallery-control:disabled{opacity:.28;cursor:default}
@media(max-width:540px){html[data-platform] .review-card{padding:20px;min-height:190px}.review-header{gap:12px}.review-header .review-meta{max-width:42%}}

.dashboard-panel{max-width:480px;margin:25px auto;text-align:center}.dashboard-panel h1{font-size:30px}.dashboard-panel>p{color:var(--muted);line-height:1.6}.dashboard-panel form{text-align:left;margin:26px 0}.dashboard-panel input{width:100%;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);margin:8px 0 16px}.dashboard-panel .button{display:block;text-align:center;margin:20px 0}

.dashboard-icon{border-radius:16px}

.payment-assurances{display:grid;gap:9px;margin:16px 0 0}.payment-assurance{display:flex;justify-content:center;align-items:flex-start;gap:7px;margin:0;color:var(--muted);font-size:11px;line-height:1.5;font-weight:400;text-align:center}.payment-assurance[hidden]{display:none}.payment-assurance svg{flex:0 0 16px;margin-top:0}.payment-assurance span{max-width:380px}

.payment-panel,.header-action{position:relative}
.checkout-busy-view{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:24px;text-align:center;border-radius:inherit;background:color-mix(in srgb,var(--panel) 94%,transparent)}
.checkout-busy-view[hidden]{display:none}
.payment-panel.checkout-processing #recovery-status{display:block;position:absolute;z-index:3;left:24px;right:24px;top:50%;transform:translateY(-50%);margin:0;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:12px;text-align:center;box-shadow:0 4px 18px #0002}
.payment-panel.checkout-processing #recovery-status:empty{display:none}
.payment-panel.checkout-processing #check-payment{position:absolute;z-index:3;left:24px;right:24px;top:calc(50% + 85px);width:calc(100% - 48px)}
.payment-panel.checkout-busy #recovery-status,.payment-panel.checkout-busy #check-payment{visibility:hidden}
.checkout-busy-view strong{font-size:18px;color:var(--ink)}
.checkout-busy-view p{font-size:14px;color:var(--muted);margin:0;max-width:280px}
.checkout-busy-spinner{width:32px;height:32px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:guard-spin .9s linear infinite}
.payment-controls-disabled{opacity:.45;pointer-events:none}
@media(prefers-reduced-motion:reduce){.checkout-busy-spinner{animation:none}}

.header-action .checkout-busy-view{min-height:110px;padding:12px;gap:8px}
.header-action .checkout-busy-view strong{font-size:14px}
.header-action .checkout-busy-view p{font-size:12px}
.checkout-processing-message{font-size:12px;color:var(--muted);line-height:1.5;margin:10px 0 0}
