:root {
  --violet: #5547d3;
  --violet-dark: #241e69;
  --indigo: #667eea;
  --purple: #9b4df2;
  --green: #19c45a;
  --green-bright: #4ade80;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --sidebar-width: 250px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--violet); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

.icon-button { display: inline-grid; place-items: center; padding: 0; cursor: pointer; }
.icon-button svg { width: 24px; height: 24px; }

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 calc(-1 * var(--sidebar-width));
  z-index: 40000;
  width: var(--sidebar-width);
  background: #fff;
  transition: left .3s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 20px 25px rgba(0, 0, 0, .1);
  overflow: hidden auto;
}
.sidebar.open { left: 0; }
.sidebar-header {
  height: 78px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--indigo), #764ba2);
}
.brand img { display: block; width: 96px; height: auto; object-fit: contain; }
.sidebar-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .2);
}
.sidebar-close svg { width: 18px; height: 18px; }
.sidebar-nav { padding: 16px 14px 30px; }
.sidebar-menu { list-style: none; padding: 0; margin: 0 0 18px; border: 1px solid #eef0f3; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.sidebar-menu li + li { border-top: 1px solid #f1f5f9; }
.sidebar-link {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.sidebar-link svg { width: 18px; height: 18px; flex: 0 0 18px; color: #6b7280; }
.sidebar-link:hover { background: #f7f8ff; color: #312e81; }
.sidebar-menu li.selected .sidebar-link { background: #dbeafe; color: #1e3a8a; }
.sidebar-group-label { padding: 0 3px 8px; color: #6b7280; font-size: 11px; font-weight: 700; }
.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 39999;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(4px);
  visibility: hidden;
  opacity: 0;
  transition: .25s;
}
.sidebar-overlay.active { visibility: visible; opacity: 1; }

/* Scanner */
.scanner-page { overflow: hidden; background: var(--violet); }
.scanner-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--violet);
}
.scanner-modal.active { display: flex; }
.scanner-menu-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  color: #1e1b4b;
  box-shadow: 0 4px 8px rgba(0,0,0,.16);
}
.scanner-menu-btn:hover { transform: scale(1.04); }
.scanner-content {
  width: min(95vw, 500px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#logoContainer {
  height: 82px;
  width: 100%;
  margin: 0 0 10px;
  display: grid;
  place-items: center;
}
#authNowLogo { display: block; width: 200px; max-height: 82px; object-fit: contain; }
.camera-wrap { position: relative; width: 100%; }
#canvasContainer {
  position: relative;
  width: min(95vw, 500px);
  height: min(72vw, 380px);
  min-height: 250px;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #242424;
}
#videoElement, .camera-placeholder {
  position: absolute;
  inset: 6% 8%;
  width: 84%;
  height: 88%;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #4e5252, #303233);
}
.camera-placeholder { z-index: 0; opacity: .9; }
#videoElement { z-index: 1; }
#overlayImage { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.scan-line {
  position: absolute;
  z-index: 4;
  top: 44%;
  left: 9%;
  right: 9%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-bright), transparent);
  box-shadow: 0 0 12px rgba(74,222,128,.8);
  animation: scan-line 2.4s ease-in-out infinite;
}
@keyframes scan-line { 0%,100% { transform: translateY(-115px); opacity:.25; } 50% { transform: translateY(115px); opacity:1; } }
#dynamicText {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 42%;
  z-index: 5;
  min-height: 62px;
  padding: 10px 8px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.75);
  color: var(--green-bright);
  font-size: 30px;
  font-weight: 800;
  text-align: center;
}
.btn-torch {
  position: absolute;
  right: 0;
  bottom: -10px;
  z-index: 6;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #3f465a;
  box-shadow: 0 4px 8px rgba(0,0,0,.25);
}
.btn-torch img { width: 40px; height: 40px; }
.btn-torch.active { background: #facc15; }
#progressBarContainer { width: min(80vw, 400px); height: 21px; margin: 29px auto 14px; overflow: hidden; border-radius: 999px; background: #fff; }
#scanProgressBar { width: 10%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #28e42a, #74e719); transition: width .35s linear; }
.scanner-info-area {
  width: min(88vw, 460px);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  text-align: center;
}
#infoIcoLogo { width: 40px; height: 40px; margin-bottom: 15px; }
#infoTextTitle { min-height: 0; font-weight: 800; }
#infoTextDescription { min-height: 57px; font-size: 24px; line-height: 1.35; font-weight: 800; }
.scanner-authenticate-label {
  width: min(80vw, 400px);
  min-height: 62px;
  margin-top: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.scanner-authenticate-label:disabled { background: #08762f; color: rgba(255,255,255,.6); }
#scanVerifyingPanel {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 20px;
  background: rgba(64, 67, 70, .96);
  color: #fff;
  font-size: 25px;
  font-weight: 700;
}
.scan-verifying-spinner {
  width: 58px;
  height: 58px;
  border: 6px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: scan-verifying-spin .8s linear infinite;
}
@keyframes scan-verifying-spin { to { transform: rotate(360deg); } }
#scanSuccessPanel {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 8;
  padding: 28px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, #374495, var(--violet));
  text-align: center;
}
#scanSuccessPanel.active { display: flex; }
.ssp-shield-check { height: 110px; }
.ssp-title { color: #90ee90; font-size: 30px; font-weight: 800; }
.ssp-subtitle { color: #fff; font-size: 22px; font-weight: 700; }

/* First visit pattern */
.gesture-overlay {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgb(55, 68, 149);
  color: #fff;
  opacity: 1;
  transition: opacity .18s ease;
}
.gesture-overlay.hidden { display: none; }
.gesture-overlay.leaving { opacity: 0; pointer-events: none; }
.gesture-inner {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.gesture-logo { width: 200px; height: auto; margin: 0 0 .75rem; object-fit: contain; }
.gesture-hint { min-height: 24px; margin: 0 0 3rem; color: #fff; font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.gesture-board-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 358 / 370;
  overflow: hidden;
  border-radius: 45px;
  background: rgba(29, 27, 75, .6);
  transform: translateZ(0);
}
.pattern-lock {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lock-dots circle {
  fill: #fff;
  stroke: transparent;
  stroke-width: 13.5;
  transition: fill .12s ease;
}
.lock-dots circle.selected { fill: #4ade80; }
#patternActives circle { fill: #4ade80; opacity: .12; }
#patternLines line, #patternLiveLine { stroke: #4ade80; stroke-width: 2; stroke-linecap: round; opacity: .68; }
#patternLiveLine { display: none; }
#patternGuide, #patternGuideGlow { pointer-events: none; will-change: transform, opacity; }
#patternGuide { fill: rgba(255,255,255,.85); }
#patternGuideGlow { fill: rgba(74,222,128,.32); filter: blur(1.2px); }
.pattern-lock.success #patternActives circle { opacity: .7; }
.pattern-lock.success #patternLines line { opacity: .85; }
.pattern-lock.failure .lock-dots circle.selected { fill: #f87171; }
.pattern-lock.failure #patternActives circle { fill: #f87171; opacity: .18; }
.pattern-lock.failure #patternLines line { stroke: #f87171; opacity: .85; }
@keyframes gesture-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
  90% { transform: translateX(4px); }
}
.gesture-board-wrap.shake { animation: gesture-shake .5s ease; }
.gesture-version {
  position: fixed;
  right: max(.8rem, env(safe-area-inset-right));
  bottom: max(.8rem, env(safe-area-inset-bottom));
  margin: 0;
  color: rgba(255,255,255,.4);
  font-size: .8rem;
}

/* Instruction and forms */
.scanner-permission-overlay, .modal-shell {
  position: fixed;
  inset: 0;
  z-index: 20000;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: rgba(0,0,0,.6);
}
.modal-shell { z-index: 50000; }
.scanner-permission-card { position: relative; width: min(100%, 420px); padding: 16px; border-radius: 8px; background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.3); }
.instruction-step { display: flex; align-items: flex-start; gap: 16px; padding: 16px; }
.instruction-step > span { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; background: linear-gradient(90deg, #3b82f6, #a855f7); }
.instruction-step > div { flex: 1; min-width: 0; }
.instruction-step h3 { margin: 0 0 4px; font-size: 21px; line-height: 1.2; }
.instruction-step p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.5; }
.instruction-step img { width: 80px; height: 80px; margin-top: 8px; }
#permissionProgress { padding: 0 16px 16px; }
#permissionProgress p { margin: 0 0 5px; color: #6b7280; font-size: 14px; text-align: center; }
#permissionProgress > div { height: 8px; overflow: hidden; border-radius: 4px; background: #e5e7eb; }
#permissionProgressBar { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #3b82f6, #a855f7); transition: width .25s; }
.gradient-button, .primary-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  font-size: 20px;
  text-decoration: none;
  cursor: pointer;
}
.modal-card { padding-top: 20px; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: transparent; color: #777; }
.modal-close:hover { background: #eef0f3; }
.form-modal { position: relative; width: min(94vw, 500px); padding: 45px 16px 16px; border-radius: 7px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.form-modal h2 { margin: 0 0 5px; text-align: center; font-size: 23px; }
.form-modal > p { margin: 0 0 26px; color: #6b7280; text-align: center; font-size: 14px; }
.form-modal form { display: grid; gap: 14px; }
.form-modal label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.form-modal input, .form-modal textarea, .form-modal select { width: 100%; border: 1px solid #dfe3e8; border-radius: 6px; padding: 10px 12px; color: #23262d; background: #fff; outline: none; }
.form-modal textarea { resize: vertical; }
.form-modal input:focus, .form-modal textarea:focus, .form-modal select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.form-modal .primary-button { min-height: 42px; border-radius: 5px; background: #1477f8; font-size: 16px; }
.toast { position: fixed; top: 18px; left: 50%; z-index: 60000; transform: translateX(-50%); max-width: min(90vw, 440px); padding: 13px 18px; border-radius: 6px; color: #fff; background: #168a47; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.toast.error { background: #c03535; }

/* Content pages */
.content-page-wrapper { min-height: 100vh; background: #f7f8fa; }
.content-header { height: 74px; padding: 12px 16px; }
.hamburger { width: 48px; height: 48px; border-radius: 12px; background: #fff; color: #24324a; box-shadow: 0 3px 8px rgba(0,0,0,.13); }
.content-main { min-height: 236px; background: #fff; }
.legal-page { padding: 28px 20px 80px; display: flex; align-items: center; flex-direction: column; }
.legal-page h1, .licenses-page h1 { margin: 0 0 24px; font-size: 25px; }
.legal-page > a { margin: 5px 0; font-size: 18px; }
.legal-detail { width: min(760px, 100%); margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-detail h2 { font-size: 20px; }
.legal-detail p { color: var(--muted); line-height: 1.65; }
.legal-document { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 48px; color: #374151; line-height: 1.7; }
.legal-document h1 { margin: 0 0 4px; color: #111827; font-size: 21px; font-weight: 700; }
.legal-document h2 { margin: 32px 0 12px; color: #111827; font-size: 20px; font-weight: 700; }
.legal-document h2:first-child { margin-top: 0; }
.legal-document h3 { margin: 20px 0 8px; color: #111827; font-size: 16px; font-weight: 650; }
.legal-document p { margin: 0 0 12px; color: #374151; font-size: 14px; line-height: 1.7; }
.legal-document strong { color: #111827; }
.legal-document a { color: #2563eb; text-decoration: none; overflow-wrap: anywhere; }
.legal-document a:hover { text-decoration: underline; }
.legal-meta { margin-bottom: 5px !important; }
.legal-contact { margin-top: 8px !important; }
.legal-effective-date { margin-bottom: 20px !important; color: #6b7280 !important; font-size: 13px !important; font-style: italic; }
.legal-document ul { margin: 6px 0 12px; padding-left: 20px; list-style: disc; }
.legal-document ul ul { margin: 4px 0; }
.legal-document li { margin-bottom: 5px; font-size: 14px; line-height: 1.65; }
.privacy-sections { margin: 0; padding-left: 22px; list-style: decimal; }
.privacy-sections > li { margin-bottom: 20px; padding-left: 2px; }
.privacy-sections > li::marker { color: #111827; font-weight: 700; }
.privacy-sections > li > p { margin-top: 8px; }
.legal-note { margin-top: 24px !important; color: #4b5563 !important; font-size: 14px !important; }
.licenses-page { width: min(896px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 70px; color: #1f2937; }
.licenses-heading { padding-bottom: 22px; border-bottom: 1px solid #e5e7eb; }
.licenses-page h1 { margin-bottom: 18px; text-align: left; }
.licenses-page section { margin: 0; padding: 26px 0; border-bottom: 1px solid #e5e7eb; }
.licenses-page section:last-child { border-bottom: 0; }
.licenses-page h2 { margin: 0 0 12px; font-size: 20px; }
.licenses-page h3 { margin: 26px 0 12px; font-size: 17px; text-transform: uppercase; }
.licenses-page h4 { margin: 24px 0 8px; font-size: 16px; }
.licenses-page p, .licenses-page li { margin: 0 0 10px; font-size: 15px; line-height: 1.65; }
.licenses-page a { color: #1459e6; overflow-wrap: anywhere; }
.license-list, .license-text ol { margin: 12px 0 14px; padding-left: 24px; }
.license-list { list-style: disc; }
.license-text ol { list-style: lower-alpha; }
.license-title { margin-bottom: 26px !important; text-align: center; }
.license-text blockquote { margin: 16px 0; padding: 16px 18px; border-left: 4px solid #8b94a5; background: #f7f8fa; }
.license-ending { margin: 30px 0 !important; text-align: center; }
.licenses-contact p:last-child { margin-bottom: 0; }
.footer { padding: 34px 16px 48px; color: #73777f; background: #f5f5f5; text-align: center; }
.product-result-body {
  --result-banner-height: 74px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: #edf0f4;
  color: #090a0d;
}
.product-result-body.result-banner-hidden { --result-banner-height: 0px; }
.result-app-layout { min-height: 100vh; min-height: 100dvh; }
.result-app-banner {
  position: relative;
  z-index: 10;
  width: min(100%, 590px);
  height: var(--result-banner-height);
  margin: 0 auto;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border-bottom: 1px solid #e1e5e9;
  background: #f4f7f9;
}
.result-app-icon { width: 48px; height: 48px; display: block; border-radius: 10px; object-fit: cover; }
.result-app-copy { min-width: 0; }
.result-app-copy strong,
.result-app-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-app-copy strong { color: #111; font-size: clamp(14px, 3.7vw, 16px); font-weight: 400; line-height: 1.2; }
.result-app-copy span { margin-top: 2px; color: #7d8188; font-size: clamp(12px, 3.25vw, 14px); line-height: 1.2; }
.result-app-get {
  min-width: 72px;
  height: 36px;
  padding: 0 16px;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #168bf2;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  user-select: none;
}
.result-app-close { width: 26px; height: 36px; background: transparent; color: #168bf2; }
.result-app-close svg { width: 24px; height: 24px; stroke-width: 1.7; }
.product-result-page {
  width: min(100%, 590px);
  min-height: calc(100dvh - var(--result-banner-height));
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 35px rgba(15, 23, 42, .08);
}
.pvt-page-header { padding: max(28px, env(safe-area-inset-top)) clamp(16px, 4vw, 24px) 18px; background: #fff; }
.pvt-topbar {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.pvt-menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  color: #283449;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .16);
}
.pvt-menu-btn svg { width: 29px; height: 29px; stroke-width: 3; }
.pvt-brand {
  position: absolute;
  top: -8px;
  left: 50%;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
}
.pvt-brand img { width: 78px; height: 63px; display: block; object-fit: contain; }
.pvt-brand span { padding-top: 15px; color: #713019; font-size: 14px; font-weight: 800; white-space: nowrap; }
.pvt-lang-wrap { position: relative; width: 64px; height: 36px; }
.pvt-lang-btn {
  width: 100%;
  height: 100%;
  padding: 0 7px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  border: 1.5px solid #283449;
  border-radius: 20px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.pvt-lang-btn svg { width: 14px; height: 14px; stroke-width: 1.8; }
.pvt-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 500;
  min-width: 104px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.pvt-lang-item { width: 100%; padding: 10px 13px; display: flex; align-items: center; gap: 7px; background: #fff; color: #111827; cursor: pointer; }
.pvt-lang-item + .pvt-lang-item { border-top: 1px solid #f0f0f0; }
.pvt-lang-item.active { background: #f3f4f6; font-weight: 700; }
.pvt-lang-item svg { width: 14px; height: 14px; visibility: hidden; }
.pvt-lang-item.active svg { visibility: visible; }
.pvt-product-subtitle {
  margin: 0;
  color: #090a0d;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
}
.pvt-auth-strip {
  width: 100%;
  min-height: 66px;
  margin: 0;
  padding: 7px 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #f4f5f7;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.pvt-auth-strip:hover { background: #fafafa; }
.pvt-auth-icon { width: 46px; height: 52px; display: block; object-fit: contain; }
.pvt-auth-text { min-width: 0; display: block; }
.pvt-auth-label { display: block; margin-bottom: 4px; color: #079522; font-size: 20px; font-weight: 800; line-height: 1; }
.pvt-auth-code { min-width: 0; display: flex; align-items: baseline; gap: .28em; color: #090a0d; font-size: clamp(14px, 3.8vw, 18px); font-weight: 750; line-height: 1.15; white-space: nowrap; }
.pvt-auth-code strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pvt-auth-arrow { width: 16px; height: 16px; color: #090909; stroke-width: 4; }
.pvt-product-panel {
  min-height: calc(100dvh - var(--result-banner-height) - 210px);
  padding: 75px clamp(17px, 4.5vw, 28px) calc(30px + env(safe-area-inset-bottom, 0px));
  background: #eff2f7;
}
.pvt-product-img {
  width: min(65vw, 380px);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.pvt-note-content { margin: 108px 0 0; color: #090a0d; font-size: clamp(12px, 3vw, 16px); font-weight: 400; line-height: 1.42; }
.pvt-dose { margin: 12px 0 0; color: #090a0d; font-size: clamp(12px, 3vw, 16px); line-height: 1.42; }
.pvt-bottom-actions { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: min(20vw, 118px); }
.pvt-fab { width: 58px; height: 58px; padding: 0; display: block; border: 0; background: transparent; cursor: pointer; text-decoration: none; transition: transform .12s ease, opacity .18s ease; }
.pvt-fab:hover { transform: scale(1.06); opacity: .88; }
.pvt-fab:active { transform: scale(.96); }
.pvt-fab img { width: 58px; height: 58px; display: block; object-fit: contain; }

.result-sheet {
  position: fixed;
  width: min(calc(100% - 36px), 510px);
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 22px 23px 21px;
  overflow-y: auto;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #101114;
  box-shadow: 0 20px 55px rgba(0,0,0,.24);
}
.result-sheet[open] { animation: result-dialog-in .2s ease-out; }
.result-sheet::backdrop { background: rgba(0,0,0,.49); backdrop-filter: blur(4px); }
@keyframes result-dialog-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
.result-sheet-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 24px;
  height: 24px;
  border: 1.5px solid #111;
  border-radius: 50%;
  background: #fff;
  color: #111;
}
.result-sheet-close svg { width: 15px; height: 15px; stroke-width: 2; }
.result-sheet h2 { margin: 0 26px 12px 0; color: #101114; font-size: clamp(18px, 4.6vw, 23px); line-height: 1.15; text-align: center; }
.result-sheet p { margin: 0 0 12px; color: #101114; font-size: clamp(13px, 3.35vw, 17px); line-height: 1.5; }
.result-sheet-code { margin: 4px 0 14px; font-size: clamp(17px, 4.4vw, 22px); font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.result-sheet-warning { display: block; margin-bottom: 0 !important; font-weight: 750; }
.result-sheet-warning svg { width: 18px; height: 18px; display: inline; margin-right: 3px; color: #d97706; vertical-align: -3px; }
.result-sheet a { margin-left: .2em; color: #2994ff; text-decoration: none; white-space: nowrap; }
.result-detail-list, .certificate-data { margin: 1.2rem 0 0; border-top: 1px solid #e5e7eb; }
.result-detail-list div, .certificate-data div { padding: 12px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e5e7eb; }
.result-detail-list dt, .certificate-data dt { color: #667085; }
.result-detail-list dd, .certificate-data dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.detail-genuine { color: #079522; }
.certificate-sheet { text-align: center; }
.certificate-mark { width: 68px; height: 68px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: #ecfdf3; color: #079522; }
.certificate-mark svg { width: 38px; height: 38px; }
.certificate-kicker { margin-bottom: 3px !important; color: #079522 !important; font-size: .75rem !important; font-weight: 800; }
.certificate-sheet h2 { margin-right: 0; }
.certificate-data { text-align: left; }

@media (max-width: 360px) {
  .result-app-banner { grid-template-columns: 46px minmax(0, 1fr) auto 24px; gap: 8px; padding-inline: 9px; }
  .result-app-icon { width: 46px; height: 46px; }
  .result-app-get { min-width: 62px; padding-inline: 13px; font-size: 15px; }
  .result-app-close { width: 24px; }
  .pvt-page-header { padding-inline: 13px; }
  .pvt-menu-btn { width: 40px; height: 40px; }
  .pvt-lang-wrap { width: 58px; height: 34px; }
  .pvt-lang-btn { padding-left: 9px; font-size: 12px; }
  .pvt-auth-strip { grid-template-columns: 42px minmax(0, 1fr) 14px; gap: 8px; padding-inline: 11px; }
  .pvt-auth-icon { width: 42px; height: 48px; }
  .pvt-auth-code { font-size: 13px; }
  .result-sheet { padding: 20px 18px 19px; }
}

@media (min-width: 591px) {
  .product-result-page { border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .result-sheet[open] { animation-duration: .01ms; }
}

@media (min-width: 900px) {
  .content-page-wrapper { margin-left: 260px; }
}

@media (max-width: 600px) {
  .scanner-menu-btn { top: 20px; left: 20px; }
  .scanner-content { width: 100vw; max-height: none; }
  #logoContainer { height: 74px; margin-bottom: 16px; }
  #authNowLogo { width: 180px; max-height: 74px; }
  #canvasContainer { width: calc(100vw - 20px); height: 72vw; min-height: 280px; max-height: 310px; }
  .camera-wrap { width: calc(100vw - 20px); }
  #dynamicText { min-height: 46px; padding: 6px; font-size: 23px; }
  .btn-torch { width: 64px; height: 64px; right: 0; }
  #progressBarContainer { width: calc(100vw - 38px); margin-top: 29px; margin-bottom: 14px; }
  .scanner-info-area { width: 100%; min-height: 128px; }
  #infoTextDescription { min-height: 61px; padding: 0 10px; font-size: 23px; line-height: 1.4; }
  .scanner-authenticate-label { width: 100vw; min-height: 62px; border-radius: 0; }
  .scanner-permission-overlay { align-items: center; padding: 16px; }
  .scanner-permission-card { max-width: 358px; }
  .instruction-step { padding: 16px; }
  .instruction-step h3 { font-size: 21px; }
  .instruction-step p { font-size: 18px; }
  .content-page-wrapper { margin-left: 0; }
  .licenses-page { padding-top: 18px; }
  .legal-detail { margin-top: 45px; }
}

@media (max-height: 720px) {
  .scanner-content { transform: scale(.86); }
  .scanner-permission-card { transform: scale(.9); }
  .gesture-inner { padding-top: 1rem; padding-bottom: 1rem; }
  .gesture-logo { width: 170px; }
  .gesture-hint { margin-bottom: 1.25rem; }
  .gesture-board-wrap { width: min(100%, 310px); }
}

@media (prefers-reduced-motion: reduce) {
  .gesture-overlay { transition: none; }
  .gesture-board-wrap.shake { animation: none; }
}
