:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #14151b;
  --surface-soft: #202128;
  --text: #f6f6f8;
  --content: #9ea5ad;
  --muted: #8e929b;
  --muted-strong: #b0b3bc;
  --line: #30323d;
  --pink: #ff1498;
  --green: #43ed1a;
  --error: #ff4949;
  --error-bg: #210708;
  --gradient: linear-gradient(105deg, #e900c6 0%, #f52891 48%, #ff7014 100%);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: var(--bg); }
body { color: var(--text); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
a { color: inherit; }
.ui-image { display: block; object-fit: contain; }
.app-shell { position: relative; width: min(100%, 480px); min-height: 100dvh; margin: 0 auto; padding: calc(22px + var(--safe-top)) 20px calc(18px + var(--safe-bottom)); display: flex; flex-direction: column; overflow-x: hidden; }
.static-first-screen { width: min(100%, 480px); min-height: 100dvh; margin: 0 auto; padding: calc(22px + var(--safe-top)) 24px calc(18px + var(--safe-bottom)); display: flex; flex-direction: column; }
.static-brand { display: flex; align-items: center; gap: 11px; min-height: 42px; color: #fff; font-size: 16px; line-height: 1; }
.static-brand-mark { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; }
.static-brand-mark img { width: 28px; height: 28px; }
.static-first-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 0 30px; text-align: center; }
.static-visual { width: 96px; height: 96px; display: grid; place-items: center; margin: 0 auto 40px; }
.static-visual img { width: 96px; height: 96px; object-fit: contain; }
.static-first-content h1 { margin: 0 0 12px; color: #fff; font-size: 20px; font-weight: 500; line-height: 1.16; }
.static-first-content p { width: 100%; max-width: 350px; margin: 0; color: var(--content); font-size: 16px; line-height: 1.25; opacity: .8; }
.static-continue { display: block; text-align: center; text-decoration: none; }
.app-shell[data-page="subscription"] { padding-inline: 20px; }
.app-shell[data-page="scan"], .app-shell[data-page="email"] { padding-inline: 20px; }
.topbar { display: flex; align-items: flex-start; gap: 12px; min-width: 0; min-height: 42px; margin-bottom: 14px; }
.brand-spacer { flex: 1; min-width: 0; }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.screen-content { flex: 1; }
.brand { display: flex; align-items: center; gap: 11px; min-height: 42px; flex: 1; min-width: 0; }
.brand-mark { width: 28px; height: 28px; flex: 0 0 auto; }
.brand-mark img { width: 28px; height: 28px; }
.brand-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; color: #fff; font-size: 16px; line-height: 1; white-space: nowrap; }
.legal { display: flex; justify-content: center; align-items: center; gap: 7px; padding: 16px 0 0; color: #9EA5AD; font-size: 10px; font-weight: 400; line-height: 1.3; opacity: .8; }
.legal a { text-decoration: none; }
.legal a:hover { color: var(--text); }
.legal-separator { color: #565963; }
.primary-button { width: 100%; height: 60px; min-height: 60px; border: 0; border-radius: 32px; color: #fff; background: var(--gradient); font-size: 24px; font-weight: 700; line-height: 1.1; padding: 12px 20px; box-shadow: 0 12px 34px rgba(235, 0, 159, .12); transition: transform .18s ease, filter .18s ease, opacity .18s ease; }
.primary-button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.primary-button:active:not(:disabled) { transform: translateY(0); }
.primary-button:disabled { color: #9a9ca4; background: #3c3d4a; box-shadow: none; }
.primary-button.is-loading { color: transparent; position: relative; }
.primary-button.is-loading::after { content: ""; position: absolute; width: 32px; height: 32px; left: 50%; top: 50%; margin: -16px 0 0 -16px; background: url('../img/loading.webp') center / contain no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.intro-content { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 0 30px; }
.visual { width: 96px; height: 96px; display: grid; place-items: center; margin: 0 auto 40px; }
.visual img { width: 96px; height: 96px; }
.intro-title { margin: 0 0 12px; color: #fff; font-size: 20px; font-weight: 500; line-height: 1.16; }
.intro-subtitle { width: 100%; max-width: 350px; margin: 0; color: var(--content); font-size: 16px; line-height: 1.25; opacity: .8; }
.intro-actions { margin-top: auto; }
.form-content { flex: 1; padding-top: 46px; text-align: center; }
.form-visual { width: 160px; height: 160px; margin: 0 auto 32px; }
.form-visual img { width: 100%; height: 100%; }
.app-shell[data-page="scan"] .form-content,
.app-shell[data-page="email"] .form-content { display: flex; flex-direction: column; }
.app-shell[data-page="scan"] .form-visual { width: 320px; max-width: 100%; height: 119px; margin-bottom: 47px; }
.app-shell[data-page="email"] .form-visual { width: 241px; height: 80px; margin-bottom: 32px; }
.form-title { max-width: 380px; margin: 0 auto 46px; color: #fff; font-size: 20px; line-height: 1.18; font-weight: 500; }
.app-shell[data-page="scan"] .form-title { color: #fff; font-size: 16px; font-weight: 600; }
.app-shell[data-page="email"] .form-title { margin-bottom: 19px; color: #fff; font-size: 15px; font-weight: 600; line-height: 42px; }
.field-wrap { position: relative; }
.field-label { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.text-input { width: 100%; height: 56px; border: 1px solid #f83076; border-radius: 12px; color: #fff; background: transparent; padding: 0 48px 0 20px; font-size: 14px; }
.text-input::placeholder { color: #686b73; opacity: 1; }
.text-input:focus { border-color: #ff42ad; box-shadow: none; outline: none; }
.input-prefix { position: absolute; top: 50%; left: 16px; width: 14px; transform: translateY(-50%); color: rgba(158, 165, 173, .8); font-size: 14px; line-height: 1; pointer-events: none; }
.text-input.has-prefix { padding-left: 34px; }
.clear-button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; visibility: hidden; border: 0; border-radius: 50%; background: transparent; padding: 0; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.clear-button img { width: 16px; height: 16px; }
.field-wrap:focus-within .clear-button { visibility: visible; opacity: 1; pointer-events: auto; }
.helper { display: flex; align-items: flex-start; gap: 11px; margin: 25px 0 0; color: var(--content); font-size: 16px; line-height: 1.35; text-align: left; opacity: .8; }
.helper.center { justify-content: center; text-align: center; }
.privacy-icon { width: 15px; height: 14px; flex: 0 0 auto; margin-top: 4px; }
.error-message { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 22px; border: 1px solid #8e1e23; border-radius: 20px; color: #c22b2c; background: var(--error-bg); font-size: 12px; line-height: 1.35; text-align: left; }
.error-icon { width: 17px; height: 16px; flex: 0 0 auto; margin-top: 3px; }
.app-shell[data-page="email"] .error-message { gap: 4px; padding: 14px; border: 0.5px solid rgba(244, 49, 49, .3); border-radius: 12px; color: #C22B2C; background: rgba(244, 49, 49, .3); opacity: 1; }
.app-shell[data-page="email"] .error-icon { width: 20px; height: 20px; margin-top: 0; }
.app-shell[data-page="email"] .error-message > span { color: #C22B2C; font-size: 12px; opacity: 1; }
.form-actions { margin-top: auto; padding-top: 35px; }
.app-shell[data-page="scan"] .form-actions,
.app-shell[data-page="email"] .form-actions { margin-inline: 4px; }
.app-shell[data-page="scan"] .helper,
.app-shell[data-page="email"] .helper { margin-top: auto; color: #9EA5AD; font-size: 11px; font-weight: 500; line-height: 15px; gap: 6px; }
.app-shell[data-page="email"] .helper { margin: 0; justify-content: flex-start; text-align: left; }
.app-shell[data-page="scan"] .helper .privacy-icon,
.app-shell[data-page="email"] .helper .privacy-icon { width: 14px; height: 14px; margin-top: 0; }
.app-shell[data-page="scan"] .form-actions { margin-top: 0; padding-top: 16px; }
.app-shell[data-page="email"] .form-actions { display: flex; flex-direction: column; gap: 16px; padding-top: 0; }
@media (max-width: 600px) {
  html.email-keyboard-open .app-shell[data-page="email"] .form-actions { position: fixed; left: 50%; bottom: calc(var(--keyboard-offset, 0px) + max(16px, var(--safe-bottom))); z-index: 10; width: min(calc(100% - 48px), 432px); margin: 0; padding: 0; transform: translateX(-50%); background: var(--bg); }
}
.result-content { flex: 1; display: flex; flex-direction: column; text-align: center; padding-top: 34px; }
.result-title { margin: 0 0 22px; color: #fff; font-size: 20px; line-height: 1.05; font-weight: 500; }
.result-content.is-fallback .result-title { position: relative; z-index: 3; margin-bottom: -20px; font-size: 24px; font-weight: 700; }
.profile-summary { display: grid; grid-template-columns: 1fr 100px 1fr; align-items: center; gap: 10px; margin-bottom: 28px; }
.profile-stat strong { display: block; color: #fff; font-size: 22px; font-weight: 500; line-height: 26px; }
.profile-stat span { display: block; margin-top: 9px; color: #9EA5AD; font-size: 12px; line-height: 15px; opacity: .8; }
.avatar-wrap { position: relative; width: 100px; height: 100px; margin: 0 auto; }
.avatar-wrap::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1px; background: linear-gradient(to bottom, #F302D4 0%, rgba(254, 105, 2, .23) 100%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; transform: translateZ(0); backface-visibility: hidden; }
.avatar, .avatar-fallback { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 35% 35%, #eee, #9f9ca4 40%, #373a43); }
.avatar-fallback { display: grid; place-items: center; overflow: hidden; background: #111218 url('../img/result-fallback.png') center / cover no-repeat; }
.result-fallback-wrap { position: relative; z-index: 2; width: 219px; height: 214px; margin: 0 auto -20px; }
.result-fallback { width: 219px; height: 214px; }
.username-pill { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); min-width: 128px; max-width: 180px; height: 32px; min-height: 32px; display: flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 16px; color: #9EA5AD; background: #14151B; font-size: 14px; font-weight: 500; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 1; }
.feature-card { margin: 22px 0 0; padding: 28px 16px; border-radius: 26px; background: var(--surface); text-align: left; }
.result-content.is-fallback .feature-card { position: relative; z-index: 1; margin-top: 0; background: #14151b; }
.feature-card-title { margin: 0 0 26px; color: var(--content); font-size: 16px; line-height: 1.3; opacity: .8; }
.result-content .feature-card-title { color: #9EA5AD; font-size: 14px; line-height: 20px; }
.feature-list { position: relative; display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.feature-list::before { content: ""; position: absolute; left: 14px; top: 25px; bottom: 25px; width: 4px; border-radius: 3px; background: repeating-linear-gradient(to bottom, #454752 0 10px, transparent 10px 17px); }
.feature-item { position: relative; display: flex; align-items: center; gap: 22px; min-height: 32px; font-size: 16px; line-height: 1.2; }
.feature-item > span:last-child { color: var(--content); opacity: .8; }
.feature-check { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; z-index: 1; }
.feature-check img { width: 32px; height: 32px; }
.result-content .feature-list { gap: 20px; }
.result-content .feature-item { gap: 10px; line-height: 18px; }
.result-content .feature-item > span:last-child { color: #fff; opacity: 1; }
.result-content > .helper { margin-top: auto; margin-bottom: 0; color: #9EA5AD; font-size: 11px; font-weight: 500; line-height: 15px; gap: 6px; opacity: .8; }
.result-content > .helper .privacy-icon { width: 14px; height: 14px; margin-top: 0; }
.result-actions { margin-top: 0; padding-top: 16px; }
.result-actions .primary-button { color: #fff; font-size: 20px; font-weight: 600; }
.subscription-screen { padding-top: 56px; }
.subscription-title { margin: 0 0 20px; color: #fff; font-size: 22px; line-height: 1.13; font-weight: 600; }
.subscription .feature-card { margin: 0; padding: 28px 16px; }
.plans { display: grid; gap: 17px; margin: 43px 0 38px; }
.plan { position: relative; width: 100%; height: 56px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1.5px solid #2F3038; border-radius: 16px; color: #9EA5AD; background: transparent; padding: 0 29px; text-align: left; }
.plan[aria-checked="true"] { border-color: #F83076; color: #fff; box-shadow: 0 0 15px rgba(248,48,118,.2); }
.plan-name, .plan-price { color: #9EA5AD; font-size: 16px; font-weight: 500; opacity: 1; }
.plan[aria-checked="true"] .plan-name, .plan[aria-checked="true"] .plan-price { color: #fff; font-weight: 600; opacity: 1; }
.save-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); min-width: 0; height: 26px; display: flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 13px; color: #fff; background: #F83076; font-size: 13px; font-weight: 600; line-height: 26px; text-align: center; white-space: nowrap; }
.subscription > .primary-button { width: calc(100% - 8px); margin-inline: 4px; }
.subscription-notes { display: grid; gap: 25px; margin: 48px 0 8px; color: var(--content); }
.note { display: grid; grid-template-columns: 26px 1fr; gap: 13px; align-items: start; font-size: 14px; font-weight: 500; line-height: 1.28; }
.subscription-notes .note > span:last-child { color: #9EA5AD; opacity: .7; }
.note > span:last-child { opacity: .8; }
.note-icon { width: 26px; height: 26px; display: grid; place-items: center; }
.note-icon img { width: 26px; height: 26px; }
.terms-link { text-decoration: underline; }
.success-screen { align-items: center; text-align: center; padding-top: 0; }
.success-logo { width: 206px; height: 206px; margin: 0 auto 32px; display: grid; place-items: center; }
.success-logo img { width: 206px; height: 206px; }
.success-title { margin: 0; color: #fff; font-size: 20px; line-height: 28px; font-weight: 600; }
.success-ready .success-logo { margin-bottom: -23px; }
.success-ready .success-title { position: relative; z-index: 1; }
.pro-badge { width: 45px; height: 20px; display: inline-flex; align-items: center; justify-content: center; margin-left: 7px; padding: 0; border-radius: 10px 10px 10px 4px; color: #612F05; background: linear-gradient(to right, #F08B1F 0%, #FFF577 100%); font-size: 12px; font-style: italic; font-weight: 800; line-height: 16px; vertical-align: 2px; }
.success-copy { max-width: 370px; margin: 27px auto 0; color: #9EA5AD; font-size: 16px; font-weight: 500; line-height: 1.22; text-align: center; opacity: .8; }
.credential-card { width: 100%; margin: 49px 0 0; padding: 18px; border-radius: 12px; color: #9EA5AD; background: #1D1E24; text-align: left; }
.credential-group { display: flex; flex-direction: column; gap: 2px; }
.credential-group + .credential-group { margin-top: 16px; }
.credential-label { margin: 0; color: #9EA5AD; font-size: 11px; font-weight: 500; line-height: 15px; opacity: .8; }
.credential-value { color: #fff; font-size: 15px; font-weight: 500; line-height: 20px; overflow-wrap: anywhere; opacity: 1; }
.credential-password-group { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.credential-group-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.copy-button { width: 28px; height: 28px; flex: 0 0 auto; margin-right: -2px; border: 0; border-radius: 8px; color: #4ad95d; background: transparent; padding: 3px; }
.copy-button img { width: 22px; height: 22px; }
.credential-note { display: flex; gap: 6px; margin: 20px 0 0 2px; color: #9EA5AD; font-size: 11px; font-weight: 500; line-height: 15px; opacity: .8; }
.credential-note svg { width: 16px; height: 16px; flex: 0 0 auto; }
.copy-status { min-height: 0; margin-top: 0; color: #52dd67; font-size: 14px; }
.download-copy { margin: 0 0 16px; color: #fff; font-size: 12px; font-weight: 500; line-height: 16px; text-align: center; }
.download-action .primary-button { color: #fff; font-size: 18px; font-weight: 600; }
.success-actions { width: 100%; margin-top: auto; padding-top: 46px; }
.app-store-icon { display: inline-block; width: 24px; height: 27px; margin-right: 9px; vertical-align: -4px; }
.pending-card { width: 100%; margin-top: 48px; padding: 30px; border-radius: 22px; background: var(--surface); }
.pending-spinner { width: 32px; height: 32px; margin: 0 auto 18px; }
.pending-spinner img { width: 32px; height: 32px; }
.pending-title { margin: 0; color: #fff; font-size: 20px; font-weight: 500; }
.pending-copy { margin: 10px 0 0; color: var(--content); font-size: 16px; line-height: 1.4; opacity: .8; }
.noscript { padding: 40px; color: #fff; }
@media (max-height: 700px) { .intro-content { padding-top: 0; } .visual { width: 96px; height: 96px; margin-bottom: 40px; } .form-content { padding-top: 12px; } .form-visual { width: 120px; height: 120px; margin-bottom: 18px; } .form-title { margin-bottom: 26px; } .feature-list { gap: 14px; } }
@media (max-width: 420px) { .topbar { gap: 8px; } .brand { gap: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
