@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-optical-sizing: auto;
  font-synthesis: none;
  color-scheme: light;
  --bg: #f4f5ec;
  --card: #fffefa;
  --ink: #263a2b;
  --muted: #6b7868;
  --accent: #3c6948;
  --accent-hover: #2c5237;
  --soft: #eef2e5;
  --border: #dce4d2;
  --line: #e7ebdf;
  --glow: #e8edda;
  --highlight: #bd9b50;
  --shadow: 0 12px 44px #344e3010, 0 2px 5px #344e3003;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  color: var(--ink);
  background: radial-gradient(ellipse at 16% 0%, var(--glow), transparent 55%), var(--bg);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.page-shell { max-width: 1040px; padding: 0 36px; margin: auto; min-height: 100svh; display: flex; flex-direction: column; }
html[data-language-ready=false] .page-shell { visibility: hidden; }
.header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; line-height: 1; border-radius: 5px; }
.brand-logo { display: block; width: 164px; height: 40px; fill: none; stroke: none; }
.brand-check { fill: var(--accent); }
.brand-lettering { fill: var(--ink); }
.brand-dot { fill: var(--highlight); }
.header-right { display: flex; align-items: center; gap: 22px; }
.language-picker { position: relative; z-index: 5; }
.language-toggle { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--card); color: var(--ink); border-radius: 10px; padding: 10px 12px; min-height: 40px; font-size: 12px; font-weight: 550; }
.language-flag { display: block; width: 20px; height: 15px; flex: 0 0 20px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px #00000018; opacity: .75; }
.chevron { width: 13px; height: 13px; transition: transform .2s; }
.language-toggle[aria-expanded=true] .chevron { transform: rotate(180deg); }
.language-menu { position: absolute; right: 0; top: calc(100% + 7px); min-width: 215px; max-height: min(420px, 72svh); overflow: auto; padding: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.language-menu button { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 13px; padding: 9px 12px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; font-size: 12px; text-align: left; }
.language-menu .language-code { width: 24px; flex-shrink: 0; color: var(--muted); font-size: 10px; font-weight: 600; }
.language-menu button:hover, .language-menu button[aria-current=true] { background: var(--soft); }
.language-menu button[aria-current=true] { font-weight: 600; }
main { position: relative; flex: 1; width: 100%; padding: 26px 0 24px; display: flex; flex-direction: column; justify-content: center; }
.intro { text-align: center; }
h1 { margin: 0; font-size: 27px; line-height: 1.25; letter-spacing: -.8px; font-weight: 550; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 9px; list-style: none; padding: 0; margin: 18px auto; color: var(--muted); font-size: 10px; }
.stepper li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.step-number { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--border); border-radius: 8px; font-size: 10px; background: var(--card); }
.stepper .step-line { display: block; width: 30px; height: 1px; background: var(--border); }
.stepper .active { color: var(--accent); font-weight: 600; }
.active .step-number { color: white; background: var(--accent); border-color: var(--accent); box-shadow: 0 2px 5px #0000000a; }
.done .step-number { background: var(--soft); color: var(--accent); }
.verification-card { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 20px 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-align: center; animation: appear .24s ease; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 18px; }
.micro-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: 1.25px; }
.micro-label svg { width: 15px; height: 15px; color: var(--accent); }
.small-shield { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.small-shield svg { width: 14px; height: 14px; color: var(--accent); }
.illustration-button { display: block; width: 210px; max-width: 100%; padding: 0; margin: 4px auto 0; border: 0; border-radius: 12px; background: transparent; }
.identity-illustration { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.illustration-button:hover:not(:disabled) .identity-illustration { transform: translateY(-3px) rotate(-1deg); }
h2 { margin: 5px 0 8px; font-size: 24px; line-height: 1.3; letter-spacing: -.7px; font-weight: 550; }
h2:focus { outline: none; }
.card-description { max-width: 365px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.65; }
.requirements { display: flex; justify-content: center; gap: 8px; margin: 14px 0; }
.requirements > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 7px; color: var(--accent); background: var(--soft); font-size: 10px; }
.requirements svg { width: 15px; height: 15px; stroke-width: 1.5; }
.button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 14px; min-height: 42px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 550; transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.primary { background: var(--accent); color: white; box-shadow: inset 0 1px 0 #ffffff15, 0 4px 10px #00000005; }
.primary:hover:not(:disabled) { background: var(--accent-hover); box-shadow: 0 5px 16px #0000000e; }
.secondary { border-color: var(--border); color: var(--ink); background: var(--card); }
.secondary:hover:not(:disabled) { background: var(--soft); }
.start-button { width: 100%; min-height: 46px; justify-content: space-between; padding: 12px 16px; }
.start-button svg { width: 19px; height: 19px; }
.permission-note { margin: 10px 0 0; font-size: 10px; line-height: 1.6; color: var(--muted); }
.messenger-options { min-width: 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #737373; font-size: 11px; line-height: 1.5; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #dedede; }
.messenger-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.messenger-button { min-width: 0; min-height: 44px; padding: 10px; font-size: 11px; line-height: 1.5; }
.messenger-button span { min-width: 0; overflow-wrap: anywhere; }
.messenger-button svg { width: 21px; height: 21px; color: var(--accent); }
.messenger-buttons.has-single { grid-template-columns: minmax(0, 1fr); }
.trust-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.trust-line svg { width: 14px; height: 14px; }
.footer { min-height: 58px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.footer button { display: inline-flex; align-items: center; gap: 5px; padding: 5px; background: transparent; border: 0; color: var(--muted); font-size: 10px; }
.footer button:hover { color: var(--accent); }
.footer button svg { width: 12px; height: 12px; }
.footer-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; }
.footer-status svg { width: 13px; height: 13px; }
.form-card { max-width: 640px; text-align: left; }
.back-button { display: inline-flex; align-items: center; gap: 5px; padding: 0 0 8px; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.back-button svg { width: 15px; height: 15px; }
.form-card h2 { margin: 2px 0 6px; font-size: 23px; }
.form-card .card-description { max-width: none; font-size: 12px; line-height: 1.5; }
.recipient { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.recipient-icon { display: grid; place-items: center; color: var(--accent); }
.recipient-icon svg { width: 21px; height: 21px; }
.recipient > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 9px; flex: 1; }
.recipient span[data-i18n] { color: var(--muted); font-size: 11px; }
.recipient strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.recipient-seal { width: 14px; height: 14px; color: var(--muted); }
.consent-label { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 11.5px; line-height: 1.55; cursor: pointer; }
.consent-label input { flex-shrink: 0; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.action-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 12px; }
.action-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) 16px; align-items: start; gap: 9px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--card); }
.action-icon { display: grid; place-items: center; height: 36px; background: var(--soft); color: var(--accent); border: 1px solid var(--line); border-radius: 11px 11px 13px 7px; }
.action-icon svg { width: 23px; height: 23px; stroke-width: 1.5; }
.action-copy { min-width: 0; }
.action-copy h3 { margin: 0 0 5px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.action-copy p { margin: 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.action-number { font-size: 9px; color: var(--muted); padding-top: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.action-button { grid-column: 1 / -1; align-self: end; justify-content: space-between; gap: 7px; min-height: 38px; width: 100%; padding: 9px 10px; background: var(--soft); border-color: var(--border); color: var(--accent); font-size: 11px; }
.action-button:hover:not(:disabled) { background: var(--card); border-color: var(--accent); }
.button-trailing { display: inline-flex; }
.button-trailing svg { width: 15px; height: 15px; }
.action-item.received-item { border-color: var(--accent); background: var(--soft); }
.received-item .action-number { font-size: 14px; color: var(--accent); }
.received-item .action-button { opacity: 1; background: var(--soft); border-color: transparent; color: var(--accent); }
.form-note { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.form-note > svg { width: 14px; height: 14px; margin-top: 1px; }
.message { width: 100%; max-width: 640px; margin: 12px auto 0; padding: 11px 14px; border-radius: 10px; border: 1px solid #dfc9a5; background: #fff8ec; color: #795b30; font-size: 12px; line-height: 1.6; }
.complete-card { padding: 28px 24px; }
#refresh-status { margin-top: 10px; }
.complete-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid var(--border); border-radius: 22px; background: var(--soft); color: var(--accent); transform: rotate(-5deg); }
.complete-icon svg { width: 40px; height: 40px; stroke-width: 1.3; transform: rotate(5deg); }
.complete-card h2 { margin-top: 12px; }
.complete-receipt { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 15px; margin: 20px 0 16px; text-align: left; border: 1px solid var(--border); border-radius: 11px; background: var(--soft); font-size: 12px; }
.received { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 11px; }
.received svg { width: 15px; height: 15px; }
.complete-card .form-note { display: block; }
dialog { width: calc(100% - 32px); max-width: 460px; max-height: calc(100svh - 32px); padding: 24px; overflow: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 25px 120px #12241926; }
dialog::backdrop { background: #15251c66; backdrop-filter: blur(5px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dialog-header h2 { margin: 0; font-size: 20px; }
.close-button { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--soft); color: var(--ink); }
.close-button svg { width: 15px; height: 15px; }
.photo-preview { display: block; width: 100%; max-height: min(350px, 46svh); object-fit: contain; border-radius: 12px; background: var(--soft); }
.photo-guidance { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.photo-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.photo-sources .button { padding: 10px 8px; font-size: 11px; line-height: 1.4; }
.photo-sources svg { width: 18px; height: 18px; }
.photo-previews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.photo-previews.has-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-previews figure { min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: 12px; padding: 8px; background: var(--soft); }
.photo-previews .photo-preview { height: min(230px, 34svh); max-height: none; border-radius: 7px; }
.photo-previews.has-two .photo-preview { height: min(190px, 29svh); }
.photo-previews figcaption { padding: 8px 0 2px; text-align: center; color: var(--ink); font-size: 11px; line-height: 1.4; }
.swap-photos { display: block; margin: 8px auto 0; padding: 5px; border: 0; background: none; color: var(--accent); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.photo-error { padding: 10px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); color: var(--ink); font-size: 12px; line-height: 1.5; }
.dialog-note { margin: 12px 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.dialog-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.dialog-buttons .button { padding: 10px; font-size: 11px; }
.privacy-copy { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0 0 22px; }
#privacy-ok { width: 100%; }
.loading-indicator { display: none; align-items: center; justify-content: center; gap: 8px; position: absolute; inset: 40% 0 auto; font-size: 12px; color: var(--muted); }
.loading-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--soft); animation: pulse 1.2s ease-in-out infinite; }
body[data-loading=true] .verification-card { visibility: hidden; }
body[data-loading=true] .loading-indicator { display: flex; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { opacity: .4; } }
@media (max-width: 700px) {
  .page-shell { padding: 0 20px; }
  .header { min-height: 65px; }
  .brand-logo { width: 150px; height: 37px; }
  main { padding: 14px 0; }
  h1 { font-size: 25px; }
  .stepper { margin: 12px auto; font-size: 10px; gap: 8px; }
  .stepper .step-line { width: 23px; }
  .verification-card { padding: 18px 20px; border-radius: 16px; }
  .illustration-button { width: 190px; }
  h2 { font-size: 23px; }
  .card-description { font-size: 12px; }
  .action-list { grid-template-columns: minmax(0, 1fr); gap: 9px; margin: 13px 0 10px; }
  .action-item { padding: 11px 12px; gap: 6px 9px; }
  .action-button { grid-column: 2 / -1; min-height: 36px; padding: 8px 10px; }
  .action-icon { height: 34px; }
  .action-copy h3 { font-size: 12px; }
  .action-copy p { font-size: 11px; }
  .recipient { padding: 9px 10px; margin: 10px 0 8px; }
  .form-card h2 { font-size: 22px; }
  .footer { min-height: 54px; font-size: 10px; gap: 10px; }
  .footer-status { display: none; }
  .trust-line { margin-top: 13px; font-size: 10px; }
}
@media (max-width: 380px) {
  .messenger-buttons { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .page-shell { padding: 0 14px; }
  .verification-card { padding: 16px; }
  h1 { font-size: 23px; }
  .stepper { font-size: 9px; gap: 6px; }
  .stepper .step-line { width: 13px; }
  .step-number { width: 21px; height: 21px; }
  .card-topline .micro-label { font-size: 7px; letter-spacing: .8px; }
  .small-shield { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
