html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 10060; transform: translateY(-200%); background: white; padding: 12px; }
.skip:focus { transform: none; }
.scan-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.scan-icon { display: inline-block; width: 1.2em; height: 1.2em; flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.footer-link-icon { width: 1em; height: 1em; vertical-align: -.14em; }

.scan-content {
  --scan-ink: var(--custom-black, #212121);
  --scan-green: var(--custom-green, #66ff69);
  --scan-paper: var(--custom-white, #f4f9f4);
  --scan-muted: #515851;
  --scan-line: #dce4dc;
  --scan-radius: 2rem;
  --scan-header-height: 80px;
  --scan-anchor-offset: 65px;
  color: var(--scan-ink);
  background: #fff;
  font-family: harmony-regular, "PingFang SC", "Microsoft YaHei", sans-serif;
  padding-top: var(--scan-header-height);
  scroll-margin-top: var(--scan-header-height);
}
.scan-content :is(h1, h2, h3) {
  font-family: harmony-bold, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
}
@media (width < 80rem) { .scan-content { --scan-header-height: 64px; } }

@scope (.scan-content) {
  :focus-visible { outline: 2px solid #168438; outline-offset: 4px; }
  section[id] { scroll-margin-top: calc(var(--scan-header-height) + var(--scan-anchor-offset)); }
  .hero { background: radial-gradient(ellipse at 72% 12%, #ddf9dc, transparent 52%), var(--scan-paper); }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 70px);
    padding-block: clamp(44px, 6vw, 100px);
  }
  .product-label { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1.2 harmony-bold, sans-serif; }
  .product-label .scan-icon { box-sizing: content-box; padding: 8px; border-radius: 50%; background: var(--scan-green); }
  h1 { font-size: clamp(36px, 4.4vw, 70px); line-height: 1.12; letter-spacing: -.035em; margin: 19px 0 20px; }
  .title-accent { color: #08743b; }
  .lede { max-width: 28em; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.65; color: var(--scan-muted); }
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
  .scan-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-height: 52px;
    padding: 12px 22px;
    border: 1px solid var(--scan-ink);
    border-radius: 999px;
    font-family: harmony-bold, sans-serif;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .18s, color .18s, border-color .18s;
  }
  .scan-action.primary { background: var(--scan-ink); color: var(--scan-green); }
  .scan-action.primary:hover { background: var(--scan-green); color: var(--scan-ink); border-color: var(--scan-green); }
  .scan-action.secondary:hover { background: #fff; }

  .hero-art {
    margin: 0;
    overflow: hidden;
    border-radius: var(--scan-radius);
  }
  .hero-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1800 / 1388;
  }

  .section-nav { position: sticky; top: var(--scan-header-height); z-index: 3; background: #fffffff0; backdrop-filter: blur(12px); border-bottom: 1px solid var(--scan-line); }
  .section-nav .container { display: flex; align-items: center; gap: clamp(14px, 4vw, 48px); min-height: 56px; }
  .section-nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 700 14px harmony-bold, sans-serif; }
  .section-nav a:hover { color: #12763b; }

  .section { padding-block: clamp(56px, 7vw, 105px); }
  h2 { font-size: clamp(28px, 3.65vw, 52px); line-height: 1.16; letter-spacing: -.035em; }
  h3 { font-size: clamp(19px, 1.9vw, 26px); line-height: 1.32; }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
  .section-head p { color: var(--scan-muted); line-height: 1.7; font-size: 16px; max-width: 31em; }
  .flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); align-items: stretch; gap: 20px; }
  .flow-guide, .flow-demo { border-radius: var(--scan-radius); padding: clamp(18px, 3.1vw, 42px); }
  .flow-guide { background: var(--scan-paper); }
  .segments { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px; gap: 3px; min-width: 0; background: #e1eae1; }
  .segments label { position: relative; display: block; cursor: pointer; }
  .segments input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .segments span { display: block; border-radius: 999px; padding: 9px 16px; font: 700 14px harmony-bold, sans-serif; white-space: nowrap; }
  .segments input:checked + span { color: var(--scan-green); background: var(--scan-ink); }
  .segments input:focus-visible + span { outline: 2px solid #168438; outline-offset: 2px; }
  .steps { padding: 0; margin-top: 18px; display: grid; gap: 5px; }
  .steps button {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 54px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 1rem;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
  }
  .steps button:hover, .steps button[aria-pressed="true"] { background: #fff; }
  .steps button[aria-pressed="true"] { border-color: #c8e3c9; }
  .step-icon, .security-icon { display: grid; place-items: center; width: 35px; aspect-ratio: 1; flex: 0 0 auto; border-radius: 50%; background: #e4eee4; }
  .step-arrow { margin-left: auto; color: #505b50; }
  .steps button[aria-pressed="true"] .step-icon { background: var(--scan-green); }
  .flow-demo { display: grid; align-items: center; background: var(--scan-ink); color: #fff; }
  .demo-content { display: grid; gap: 14px; }
  .demo-label { display: flex; align-items: center; gap: 8px; color: var(--scan-green); font: 700 14px harmony-bold, sans-serif; }
  .demo-screen { padding: 21px; min-height: 146px; border-radius: 1.25rem; background: #343b34; display: grid; align-content: start; gap: 8px; }
  .demo-screen p { color: #ecf2eb; line-height: 1.55; }
  .demo-screen .example-amount { font: 800 27px montserrat-extra-bold, sans-serif; color: var(--scan-green); }
  .example-amount small { font-size: 12px; }
  .wallet-picker { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
  .wallet-picker select { color: var(--scan-ink); background: #f2fbf2; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
  .fine { font-size: 13px; line-height: 1.6; color: var(--scan-muted); }
  .flow-demo .fine { color: #d2dfd1; }

  .coverage-section { background: var(--scan-paper); }
  .filters { margin-bottom: 17px; }
  .countries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0; }
  .countries li, .country-card { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 15px; background: white; border: 1px solid var(--scan-line); border-radius: 1.1rem; }
  .countries small { display: block; color: var(--scan-muted); margin-top: 3px; line-height: 1.35; }
  .flag { display: block; overflow: hidden; flex: 0 0 auto; width: 34px; height: 25px; border-radius: 5px; box-shadow: 0 0 0 1px #21212112; }
  .flag img { width: 100%; height: 100%; object-fit: cover; }

  .security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .security-grid article { padding: clamp(20px, 3.2vw, 40px); background: var(--scan-paper); border-radius: var(--scan-radius); }
  .security-icon { width: 46px; margin-bottom: 16px; background: var(--scan-green); font-size: 19px; }
  .security-grid p, .questions p { margin-top: 9px; color: var(--scan-muted); line-height: 1.75; }
  .faq { display: grid; grid-template-columns: 1fr 2fr; gap: 25px; padding-top: 0; }
  .questions { border-top: 1px solid var(--scan-line); }
  .questions details { border-bottom: 1px solid var(--scan-line); }
  .questions summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 2px; font: 700 16px harmony-bold, sans-serif; cursor: pointer; list-style: none; }
  .questions summary::-webkit-details-marker { display: none; }
  .questions summary .scan-icon { transition: transform .18s; }
  .questions details[open] .scan-icon { transform: rotate(180deg); }
  .questions p { margin: 0 2px 17px; }

  .cta { padding-bottom: clamp(48px, 6vw, 90px); }
  .cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(25px, 6vw, 74px);
    border-radius: var(--scan-radius);
    background: #212121 url("assets/official-images/cta-globe.webp") center 47% / cover;
    color: white;
  }
  .cta h2 { font-size: clamp(25px, 3.3vw, 46px); }
  .cta .scan-action.primary { background: var(--scan-green); color: var(--scan-ink); border-color: var(--scan-green); }
  .cta .scan-action.primary:hover { background: white; border-color: white; }

  @media (width < 1000px) {
    .countries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (width < 800px) {
    .hero-grid, .flow, .security-grid, .faq { grid-template-columns: 1fr; }
    .hero-grid { gap: 28px; padding-block: 36px 30px; }
    .hero-art { max-width: 620px; width: 100%; justify-self: center; }
    .hero-copy { max-width: 620px; width: 100%; justify-self: center; }
    h1 { font-size: clamp(31px, 8.65vw, 56px); margin-block: 14px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
    .cta-panel { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  }
  @media (width < 570px) {
    .scan-action { padding-inline: 14px; min-height: 44px; font-size: 14px; gap: 6px; }
    .actions { gap: 8px; margin-top: 20px; }
    .hero-art { border-radius: 1.5rem; }
    .section-nav .container { gap: 8px; justify-content: space-between; min-height: 46px; }
    .section-nav a { gap: 3px; font-size: 12px; }
    .section-nav .scan-icon { width: 1em; height: 1em; }
    .countries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .countries li, .country-card { padding: 8px 9px; gap: 8px; min-height: 66px; font-size: 13px; overflow-wrap: anywhere; }
    .flag { width: 27px; height: 20px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .scan-action, .questions summary .scan-icon { transition: none; }
  }
}
.official-top header, .official-top [class*="z-10001"][class~="fixed"] { background-color: #fffffff0; }
.official-popover { position: fixed; z-index: 10020; max-height: calc(100dvh - 80px); overflow: auto; border-radius: 1rem; }
.official-backdrop { position: fixed; inset: 0; z-index: 10050; background: #0008; }
#official-mobile-drawer [role="dialog"] { background-color: white; }
.official-booking { width: min(920px, calc(100% - 24px)); height: min(730px, calc(100% - 30px)); max-width: none; max-height: none; margin: auto; border: 0; border-radius: 12px; padding: 36px 0 0; overflow: hidden; }
.official-booking::backdrop { background-color: #0009; }
.official-booking button { position: absolute; top: 4px; right: 12px; padding: 2px 8px; font-size: 20px; }
.official-booking iframe { width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.scan-content .scan-beui-rail { max-width: 100%; }
.scan-content .scan-beui-list { display: inline-flex; width: max-content; max-width: 100%; gap: 3px; padding: 4px; border-radius: 999px; background: #e1eae1; }
.scan-content .scan-beui-list > div { flex-shrink: 1; min-width: 0; }
.scan-content .scan-beui-tab {
  min-height: 42px;
  padding: 7px clamp(8px, 1.2vw, 16px);
  white-space: normal;
  font: 700 14px/1.25 harmony-bold, sans-serif;
  color: var(--scan-ink);
  cursor: pointer;
}
.scan-content .scan-beui-tab [data-tabs-label] { color: var(--scan-green); }
.scan-content .scan-beui-indicator { background: var(--scan-ink); }
.scan-content .countries li:has(> .country-card) { position: relative; display: block; padding: 0; border: 0; background: transparent; }
.scan-content .country-card { width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) {
  .scan-content .countries li:hover { z-index: 1; }
  .scan-content .country-card:hover { border-color: #b9d8bb; box-shadow: 0 5px 16px #1c462113; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-content .country-card { transform: none !important; }
}
.scan-content .scan-beui-faq { border-block-start: 1px solid var(--scan-line); }
.scan-content .scan-beui-faq-item { background: white; }
.scan-content .scan-beui-faq > div { border-block-end: 1px solid var(--scan-line); }
.scan-content .scan-beui-faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 60px;
  width: 100%;
  padding: 14px 16px;
  color: var(--scan-ink);
  text-align: start;
  cursor: pointer;
}
.scan-content .scan-beui-faq-trigger:hover, .scan-content .scan-beui-faq-item[data-state="open"] { background: var(--scan-paper); }
.scan-content .scan-beui-faq-trigger:focus-visible { outline: 2px solid #168438; outline-offset: -3px; }
.scan-content .scan-beui-faq-title { white-space: normal; overflow-wrap: anywhere; font: 700 16px/1.4 harmony-bold, sans-serif; }
.scan-content .scan-beui-faq-chevron { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; color: #49624b; }
.scan-content .scan-beui-faq-description { color: var(--scan-muted); line-height: 1.65; }
.scan-content .wallet-picker { flex-wrap: wrap; }
.scan-content .scan-wallet-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-width: 112px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #c9dfca;
  border-radius: 999px;
  background: #f4f9f4;
  color: #212121;
  cursor: pointer;
}
.scan-content .scan-wallet-trigger:focus-visible { outline: 2px solid #66ff69; outline-offset: 3px; }
.scan-wallet-options {
  z-index: 10030;
  min-width: 112px;
  padding: 4px;
  border: 1px solid #c9dfca;
  border-radius: 14px;
  background: white;
  color: #212121;
  box-shadow: 0 8px 24px #21212127;
}
.scan-wallet-option { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 9px; border-radius: 9px; cursor: pointer; }
.scan-wallet-option[data-focus], .scan-wallet-option[data-selected] { background: #edf7ed; }
.scan-wallet-option svg { width: 16px; height: 16px; opacity: 0; }
.scan-wallet-option[data-selected] svg { color: #08743b; opacity: 1; }
.scan-content .step-arrow { margin-inline-start: auto; margin-inline-end: 0; }
.scan-content .steps button { text-align: start; }
:root[dir="rtl"] .scan-content .step-arrow { transform: scaleX(-1); }
:root[dir="rtl"] .example-amount { direction: ltr; text-align: right; }
#official-mobile-drawer a[hreflang][aria-current="page"],
#official-locale a[aria-current="page"] { background-color: #e8f5e8; border-radius: .5rem; }
.official-top [data-download-app] { position: static; width: 100%; margin-top: .75rem; }
@media (width < 800px) {
  .scan-content .section-nav .container { justify-content: flex-start; gap: 15px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .scan-content .section-nav a { flex: 0 0 auto; min-height: 44px; padding-inline: 2px; }
  .scan-content h1 { font-size: clamp(29px, 7.5vw, 53px); overflow-wrap: anywhere; }
  .scan-content .hero-art { min-width: 0; }
}
@media (width < 570px) {
  .scan-content { --scan-anchor-offset: 106px; }
  .scan-content .section-nav .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
    overflow: visible;
  }
  .scan-content .section-nav a { white-space: normal; line-height: 1.25; }
}
@media (width < 390px) {
  .scan-content .countries small { overflow-wrap: anywhere; }
}
