/* =====================================================================================
   Passport (/badges), Get verified (/verify) and Moderation (/admin)
   Prefixes: pp- passport · kv- KYC · ad- admin. Uses the tokens from base.css.
   ===================================================================================== */

/* =====================================================================================
   Passport
   ===================================================================================== */
.pp {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.pp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Cover (a physical object: dark leather and gold foil in both themes) ---------- */
.pp-cover {
  --cv-ink: #f7f0e3;
  --cv-ink-2: rgb(247 240 227 / 0.62);
  --cv-ink-3: rgb(247 240 227 / 0.42);
  --cv-gold: #f2c35b;
  --cv-pad: 20px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'top top'
    'holder ring'
    'stats stats'
    'cta cta'
    'mrz mrz';
  column-gap: 14px;
  padding: var(--cv-pad) var(--cv-pad) 16px;
  border-radius: var(--radius-xl);
  color: var(--cv-ink);
  background:
    radial-gradient(110% 80% at 100% 0%, rgb(207 32 162 / 0.2), transparent 58%),
    radial-gradient(90% 70% at 0% 100%, rgb(114 22 181 / 0.2), transparent 62%),
    linear-gradient(158deg, #2a1622 0%, #1a1220 42%, #0e0d14 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.07),
    0 1px 2px rgb(0 0 0 / 0.4),
    0 30px 60px -28px rgb(20 6 18 / 0.85),
    0 12px 28px -18px rgb(173 26 201 / 0.35);
  animation: pp-cover-in 520ms var(--ease) both;
}
/* Guilloche engraving, strongest in the corners. */
.pp-cover::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 112% -12%, transparent 0 9px, rgb(242 195 91 / 0.075) 9px 10px),
    repeating-radial-gradient(circle at -12% 112%, transparent 0 9px, rgb(242 195 91 / 0.06) 9px 10px);
  -webkit-mask: linear-gradient(135deg, #000 0%, transparent 42%, transparent 58%, #000 100%);
  mask: linear-gradient(135deg, #000 0%, transparent 42%, transparent 58%, #000 100%);
}
/* Foil-stamped inner frame. */
.pp-cover::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 7px;
  border-radius: calc(var(--radius-xl) - 7px);
  border: 1px solid rgb(242 195 91 / 0.2);
  box-shadow: inset 0 0 0 3px rgb(242 195 91 / 0.035);
  pointer-events: none;
}
.pp-cover__glow {
  position: absolute;
  z-index: -1;
  top: -40%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(240 110 210 / 0.14), transparent 65%);
  pointer-events: none;
}
@keyframes pp-cover-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pp-cover__top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.pp-emblem {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--cv-gold);
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.65)) drop-shadow(0 -0.5px 0 rgb(255 241 193 / 0.25));
}
.pp-emblem svg {
  width: 100%;
  height: 100%;
}
.pp-cover__mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(176deg, #fff4d2 0%, #f2c35b 46%, #b17a24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Embossed: dark under-edge, faint highlight above. */
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.7)) drop-shadow(0 -1px 0 rgb(255 241 193 / 0.12));
}
.pp-cover__no {
  display: none;
  margin-left: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--cv-ink-3);
  white-space: nowrap;
}

.pp-cover__body {
  display: contents;
}
.pp-holder {
  grid-area: holder;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.pp-holder__photo {
  flex: none;
  display: grid;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(150deg, #fff1c1, #f2c35b 40%, #8f5f17 75%, #e8b44c);
  box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.7);
}
.pp-holder__photo .avatar {
  --s: 62px;
  box-shadow: 0 0 0 2px #17111b;
}
.pp-holder__photo--empty {
  width: 68px;
  height: 68px;
  place-items: center;
  padding: 0;
  background: rgb(255 255 255 / 0.04);
  border: 1.5px dashed rgb(242 195 91 / 0.45);
  color: rgb(242 195 91 / 0.7);
  box-shadow: none;
}
.pp-holder__text {
  min-width: 0;
}
.pp-cover__label {
  margin: 0 0 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cv-ink-3);
}
.pp-holder__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--cv-ink);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.pp-holder__tick {
  display: inline-block;
  margin-left: 6px;
  vertical-align: 0.05em;
  line-height: 0;
}
.pp-holder__name .tick {
  color: #4aa6ff;
  vertical-align: baseline;
}
.pp-holder--empty .pp-holder__name {
  font-style: italic;
  font-size: 26px;
}
.pp-holder__meta {
  display: grid;
  gap: 1px;
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--cv-ink-2);
  line-height: 1.35;
}
.pp-holder__meta a {
  color: var(--cv-ink-2);
  font-weight: 650;
}
.pp-holder__meta a:hover {
  color: var(--cv-ink);
  text-decoration: underline;
}

/* Gold progress ring for the selected country. */
.pp-ring {
  grid-area: ring;
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--cv-ink);
  text-decoration: none !important;
  border-radius: 16px;
}
.pp-ring__dial {
  --d: 70px;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--d);
  height: var(--d);
}
.pp-ring__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.pp-ring__track {
  fill: rgb(255 255 255 / 0.03);
  stroke: rgb(242 195 91 / 0.16);
  stroke-width: 7;
}
.pp-ring__bar {
  fill: none;
  stroke: url(#pp-ring-gold);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: var(--off);
  filter: drop-shadow(0 0 6px rgb(242 195 91 / 0.45));
  animation: pp-ring-in 1200ms var(--ease) 180ms both;
}
.pp-ring__dial.is-empty .pp-ring__bar {
  opacity: 0;
}
@keyframes pp-ring-in {
  from {
    stroke-dashoffset: 100;
  }
}
.pp-ring__flag {
  position: relative;
  font-size: calc(var(--d) * 0.36);
  line-height: 1;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.45));
}
.pp-ring__caption {
  display: grid;
  justify-items: center;
  line-height: 1.15;
  text-align: center;
  max-width: 96px;
}
.pp-ring__caption strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--cv-gold);
  font-variant-numeric: tabular-nums;
}
.pp-ring__caption strong span {
  color: var(--cv-ink-3);
  font-weight: 700;
}
.pp-ring__caption small {
  font-size: 11px;
  color: var(--cv-ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.pp-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 0;
  padding: 14px 0 2px;
  border-top: 1px solid rgb(242 195 91 / 0.16);
}
.pp-stats > div {
  display: grid;
  gap: 2px;
  justify-items: start;
  padding-left: 14px;
}
.pp-stats > div:first-child {
  padding-left: 0;
}
.pp-stats > div + div {
  border-left: 1px solid rgb(242 195 91 / 0.12);
}
.pp-stats dt {
  order: 2;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cv-ink-3);
}
.pp-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.95;
  font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(176deg, #fff4d2 10%, #f2c35b 55%, #c58b2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pp-cover__cta {
  grid-area: cta;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pp-cover__cta .btn {
  flex: 1 1 auto;
}
.pp-btn-glass {
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
  color: #fff;
}
.pp-btn-glass:hover:not(:disabled) {
  background: rgb(255 255 255 / 0.14);
}

/* Machine-readable zone, scaled to fill the cover's width. */
.pp-mrz {
  grid-area: mrz;
  display: grid;
  gap: 1px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed rgb(242 195 91 / 0.12);
  overflow: hidden;
  font-family: ui-monospace, 'SF Mono', 'OCR B', Menlo, Consolas, monospace;
  font-size: min(15px, calc((100cqi - var(--cv-pad) * 2) / 28));
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: rgb(242 195 91 / 0.36);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask: linear-gradient(90deg, #000 88%, transparent);
  mask: linear-gradient(90deg, #000 88%, transparent);
}
.pp-mrz span {
  overflow: hidden;
}

/* ---------- Country picker & stamps ---------- */
.pp-nav {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.pp-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-1), var(--highlight);
  transition:
    border-color var(--dur-2) var(--ease),
    transform var(--dur-1) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}
.pp-picker:hover {
  border-color: var(--line-2);
}
.pp-picker:active {
  transform: scale(0.99);
}
.pp-picker__flag {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 26px;
  line-height: 1;
}
.pp-picker__text {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.pp-picker__text small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pp-picker__text strong {
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-picker__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 650;
}
.pp-picker__search span {
  display: none;
}
@media (min-width: 560px) {
  .pp-picker__search {
    padding: 0 16px 0 14px;
  }
  .pp-picker__search span {
    display: inline;
  }
}

.pp-stamps-wrap {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.pp-stamps {
  display: flex;
  gap: 8px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.pp-stamps::-webkit-scrollbar {
  display: none;
}
.pp-stamp {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 56px;
  padding: 7px 16px 7px 9px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none !important;
  scroll-snap-align: start;
  transition:
    transform var(--dur-1) var(--ease),
    background-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}
.pp-stamp:hover {
  background: var(--surface-2);
}
.pp-stamp:active {
  transform: scale(0.97);
}
.pp-stamp__flag {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 22px;
  line-height: 1;
}
.pp-stamp__text {
  display: grid;
  line-height: 1.2;
}
.pp-stamp__text strong {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.pp-stamp__text small {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pp-stamp--permanent {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(125deg, var(--gold-1), var(--gold-2) 38%, var(--gold-3) 72%, var(--gold-2)) border-box;
}
.pp-stamp--permanent small {
  color: var(--gold-text);
}
.pp-stamp--temporary {
  border: 1px dashed var(--silver);
}
.pp-stamp.is-active {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--brand) border-box;
  box-shadow: 0 10px 24px -14px rgb(173 26 201 / 0.7);
}
.pp-nostamps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
}

/* ---------- Visa page ---------- */
.pp-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 18px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1), var(--highlight);
  scroll-margin-top: calc(var(--topbar-h) + var(--safe-t) + 12px);
}
.pp-page::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 340px;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 50% 0%, rgb(242 195 91 / 0.1), transparent 70%),
    repeating-radial-gradient(circle at 50% -30%, transparent 0 13px, rgb(242 195 91 / 0.055) 13px 14px);
  -webkit-mask: linear-gradient(#000, transparent);
  mask: linear-gradient(#000, transparent);
}
.pp-page__head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}
.pp-page__medal {
  position: relative;
}
.pp-page__medal::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--h, 40) 80% 60% / 0.18), transparent 65%);
  pointer-events: none;
}
.pp-medal--hero .badge.badge--lg {
  --size: 124px;
}
.pp-medal--hero figcaption {
  display: none;
}
.pp-page__info {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.pp-page__name {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.015em;
}
.pp-page__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-2);
}
.pp-page__note {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--text-2);
}

.pp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pp-pill--permanent {
  color: var(--gold-text);
  background:
    linear-gradient(color-mix(in srgb, var(--gold-2) 12%, var(--surface)), color-mix(in srgb, var(--gold-2) 12%, var(--surface))) padding-box,
    linear-gradient(120deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3)) border-box;
}
.pp-pill--temporary {
  color: var(--text);
  background: var(--surface-2);
  border: 1px dashed var(--silver);
}
.pp-pill--locked {
  color: var(--text-3);
  background: var(--surface-2);
  border-color: var(--line);
}

.pp-progress {
  width: 100%;
  max-width: 520px;
  margin-top: 12px;
}
.pp-progress__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--text-2);
}
.pp-progress__label strong {
  font-size: 17px;
  color: var(--text);
}
.pp-progress__pct {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.pp-progress__bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-3);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.25);
  overflow: hidden;
}
.pp-progress__bar > span {
  display: block;
  height: 100%;
  min-width: 10px;
  border-radius: inherit;
  background: var(--brand);
  box-shadow: 0 0 14px rgb(207 32 162 / 0.55);
  transform-origin: left center;
  animation: pp-grow 1000ms var(--ease) 200ms both;
}
@keyframes pp-grow {
  from {
    transform: scaleX(0);
  }
}

.pp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 26px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pp-seg {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  width: 100%;
}
.pp-seg button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}
.pp-seg button:hover {
  color: var(--text);
}
.pp-seg button span {
  font-size: 11.5px;
  font-weight: 750;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.pp-seg button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.25),
    0 4px 12px -6px rgb(0 0 0 / 0.35),
    inset 0 0 0 1px var(--line);
}
:root:not([data-theme='light']) .pp-seg button[aria-pressed='true'] {
  background: var(--surface-3);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .pp-seg button[aria-pressed='true'] {
    background: var(--surface);
  }
}
.pp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-2);
}
.pp-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pp-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}
.pp-legend__dot--permanent {
  background: conic-gradient(from 200deg, #8f5f17, #fff1c1, #f2c35b, #a8741f, #fff4cf, #93621a, #8f5f17);
  box-shadow: 0 0 6px rgb(242 195 91 / 0.5);
}
.pp-legend__dot--temporary {
  background: color-mix(in srgb, var(--silver) 25%, transparent);
  outline: 1.5px dashed var(--silver);
  outline-offset: 1px;
  width: 9px;
  height: 9px;
  margin: 1.5px;
}
.pp-legend__dot--locked {
  background: var(--surface-3);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.45);
}

.pp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 14px 4px;
  margin-top: 8px;
}
.pp-cell {
  min-width: 0;
  animation: pp-rise 460ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 24ms + 120ms);
}
@keyframes pp-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pp-medal {
  display: grid;
  justify-items: center;
  width: 100%;
  padding: 12px 4px 10px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: inherit;
  text-align: center;
  transition:
    background-color var(--dur-2) var(--ease),
    transform var(--dur-1) var(--ease);
}
.pp-medal:hover {
  background: var(--surface-2);
}
.pp-medal:active {
  transform: scale(0.96);
}
.pp-medal .badge {
  pointer-events: none;
}
.pp-medal .badge figcaption {
  max-width: 100%;
}
.pp-grid .badge--locked .badge__tier {
  display: none;
}
.pp-medal--hero {
  width: auto;
  padding: 6px;
  border-radius: 50%;
}
.pp-medal--hero:hover {
  background: transparent;
  transform: scale(1.03);
}
.pp-grid__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 6px;
  color: var(--text-2);
  font-size: 14px;
}
.pp-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* ---------- Milestones ---------- */
.pp-section {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.pp-section__head h2 {
  margin: 0;
  font-size: 22px;
}
.pp-section__head p {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 13.5px;
}
.pp-miles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  padding: 12px 8px;
  border-radius: var(--radius-l);
  background: var(--brand-soft), var(--surface);
  border: 1px solid var(--line);
}
.pp-kicker--goals {
  margin-top: 4px;
}
.pp-miles .pp-medal {
  width: 132px;
}
.pp-goals {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pp-goal {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px 12px 12px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: var(--highlight);
  transition:
    background-color var(--dur-2) var(--ease),
    transform var(--dur-1) var(--ease);
}
.pp-goal:hover {
  background: var(--surface-2);
}
.pp-goal:active {
  transform: scale(0.99);
}
.pp-goal .badge figcaption {
  display: none;
}
.pp-goal > .icon {
  color: var(--text-3);
}
.pp-goal__text {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.pp-goal__text strong {
  font-size: 15px;
  font-weight: 750;
}
.pp-goal__text > span:not(.pp-goal__bar) {
  font-size: 12.5px;
  color: var(--text-2);
}
.pp-goal__bar {
  display: block;
  height: 6px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.pp-goal__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2) 60%, var(--gold-1));
  transform-origin: left center;
  animation: pp-grow 900ms var(--ease) 300ms both;
}

/* ---------- Sheets: country picker ---------- */
.pp-sheet--picker .sheet__body {
  padding-top: 0;
}
.pp-search {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -20px;
  padding: 8px 20px 12px;
  background: var(--surface);
  color: var(--text-3);
}
.pp-search .icon {
  position: absolute;
  left: 36px;
  pointer-events: none;
}
.pp-search__input {
  padding-left: 46px !important;
  border-radius: 999px !important;
}
.pp-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  cursor: pointer;
  background: var(--text-3);
  -webkit-mask: var(--pp-clear) center / contain no-repeat;
  mask: var(--pp-clear) center / contain no-repeat;
  --pp-clear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm3.7 6.3a1 1 0 0 0-1.4 0L12 10.6 9.7 8.3a1 1 0 1 0-1.4 1.4l2.3 2.3-2.3 2.3a1 1 0 1 0 1.4 1.4l2.3-2.3 2.3 2.3a1 1 0 0 0 1.4-1.4L13.4 12l2.3-2.3a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E");
}
.pp-clist {
  display: grid;
  gap: 14px;
  padding-bottom: 8px;
}
.pp-clist__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pp-clist__label {
  order: 0;
  margin: 4px 0 6px;
  padding-left: 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pp-crow {
  order: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 10px;
  border-radius: var(--radius-m);
  color: var(--text);
  text-decoration: none !important;
  transition: background-color var(--dur-1) var(--ease);
}
.pp-crow:hover,
.pp-crow:focus-visible {
  background: var(--surface-2);
}
.pp-crow__flag {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 22px;
  line-height: 1;
  flex: none;
}
.pp-crow:hover .pp-crow__flag {
  background: var(--surface-3);
}
.pp-crow__name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-crow__tier {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}
.pp-crow__tier--permanent {
  color: var(--gold-text);
}
.pp-crow__check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  flex: none;
}
.pp-crow.is-current {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.pp-clist__empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 24px 0;
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- Sheets: badge details ---------- */
.pp-detail {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 4px;
}
.pp-detail__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 18px 0 24px;
  isolation: isolate;
}
.pp-detail__halo {
  position: absolute;
  z-index: -1;
  inset: -10% 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, hsl(var(--h, 210) 70% 60% / 0.2), transparent);
  pointer-events: none;
}
.pp-detail--permanent .pp-detail__halo {
  background:
    repeating-conic-gradient(from 0deg, rgb(242 195 91 / 0.1) 0 6deg, transparent 6deg 18deg),
    radial-gradient(closest-side, rgb(242 195 91 / 0.28), transparent);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent);
  mask: radial-gradient(closest-side, #000 30%, transparent);
  animation: pp-spin 40s linear infinite;
}
.pp-detail--locked .pp-detail__halo {
  background: radial-gradient(closest-side, rgb(128 128 140 / 0.12), transparent);
}
@keyframes pp-spin {
  to {
    transform: rotate(360deg);
  }
}
.pp-detail .badge {
  animation: pop 600ms var(--ease-spring) both;
}
.pp-detail .badge figcaption {
  display: none;
}
.pp-detail__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.pp-detail__sub {
  margin: 6px 0 14px;
  color: var(--text-2);
  font-size: 14px;
}
.pp-detail__desc {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.5;
}
.pp-facts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: 100%;
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.pp-facts > div {
  display: grid;
  gap: 2px;
  padding: 12px 8px;
}
.pp-facts > div + div {
  border-left: 1px solid var(--line);
}
.pp-facts dt {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pp-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.pp-detail__hint {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: left;
}
.pp-detail__hint .icon {
  margin-top: 1px;
  color: var(--accent);
}
.pp-detail--permanent .pp-detail__hint .icon {
  color: var(--gold-text);
}
.pp-detail__actions {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}
.pp-detail__actions:empty {
  display: none;
}

/* ---------- Passport: larger screens ---------- */
@media (min-width: 640px) {
  .pp {
    gap: 22px;
  }
  .pp-stamps {
    margin-inline: 0;
    padding-inline: 0;
    flex-wrap: wrap;
    overflow: visible;
  }
  .pp-seg {
    width: auto;
  }
  .pp-page {
    padding: 32px 28px 28px;
  }
}
@media (min-width: 768px) {
  .pp-cover {
    --cv-pad: 34px;
    grid-template-areas:
      'top top'
      'holder ring'
      'stats ring'
      'cta ring'
      'mrz mrz';
    column-gap: 32px;
    padding: 28px var(--cv-pad) 22px;
  }
  .pp-cover__top {
    margin-bottom: 26px;
  }
  .pp-emblem {
    width: 46px;
    height: 46px;
  }
  .pp-cover__mark {
    font-size: 23px;
  }
  .pp-cover__no {
    display: inline;
    font-size: 12px;
  }
  .pp-holder {
    gap: 20px;
  }
  .pp-holder__photo .avatar {
    --s: 88px;
  }
  .pp-holder__photo--empty {
    width: 94px;
    height: 94px;
  }
  .pp-holder__name {
    font-size: 46px;
  }
  .pp-holder--empty .pp-holder__name {
    font-size: 38px;
  }
  .pp-holder__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    font-size: 14px;
  }
  .pp-mrz {
    letter-spacing: 0.24em;
  }
  .pp-ring {
    align-self: center;
    padding-right: 8px;
  }
  .pp-ring__dial {
    --d: 150px;
  }
  .pp-ring__track,
  .pp-ring__bar {
    stroke-width: 6;
  }
  .pp-ring__caption {
    max-width: 160px;
  }
  .pp-ring__caption strong {
    font-size: 18px;
  }
  .pp-ring__caption small {
    font-size: 12.5px;
  }
  .pp-stats {
    max-width: 480px;
    margin-top: 24px;
    border-top: 0;
    padding-top: 0;
  }
  .pp-stats dd {
    font-size: 54px;
  }
  .pp-stats dt {
    font-size: 11px;
  }
  .pp-stats > div {
    padding-left: 22px;
  }
  .pp-cover__cta {
    max-width: 480px;
  }
  .pp-mrz {
    margin-top: 24px;
  }

  .pp-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .pp-page__head {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
    gap: 28px;
  }
  .pp-page__info {
    justify-items: start;
  }
  .pp-page__title {
    justify-content: flex-start;
  }
  .pp-medal--hero .badge.badge--lg {
    --size: 156px;
  }
  .pp-page__name {
    font-size: 56px;
  }
  .pp-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 18px 6px;
  }
  .pp-goals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pp-search {
    margin: 0 -24px;
    padding: 8px 24px 12px;
  }
  .pp-search .icon {
    left: 40px;
  }
}

/* =====================================================================================
   Get verified (KYC)
   ===================================================================================== */
.kv {
  display: grid;
  gap: 22px;
  max-width: 560px;
  margin: 0 auto;
}
.kv-intro {
  display: grid;
  gap: 22px;
}
.kv-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.kv-kicker {
  margin: 0;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.kv-mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

/* Hero */
.kv-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding-top: 8px;
}
.kv-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgb(59 156 255 / 0.32), rgb(59 156 255 / 0.06) 62%, transparent 70%);
}
.kv-seal__ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgb(59 156 255 / 0.35);
  animation: kv-ripple 3.2s var(--ease) infinite;
}
.kv-seal__ring--2 {
  animation-delay: 1.6s;
}
@keyframes kv-ripple {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
.kv-seal__tick {
  position: relative;
  display: grid;
  filter: drop-shadow(0 8px 18px rgb(59 156 255 / 0.55));
  animation: pop 700ms var(--ease-spring) both;
}
.kv-hero--compact .kv-seal {
  width: 84px;
  height: 84px;
  margin-bottom: 4px;
}
.kv-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.kv-hero__title em,
.kv-status__title em {
  font-style: italic;
  background: linear-gradient(120deg, #8fd0ff, var(--blue) 55%, #2a6fe0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.kv-hero__lead {
  margin: 6px 0 0;
  max-width: 38ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-2);
}

/* Benefits */
.kv-benefits {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1), var(--highlight);
}
.kv-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 12px;
}
.kv-benefit + .kv-benefit {
  border-top: 1px solid var(--line);
}
.kv-benefit__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
}
.kv-benefit__icon--tick {
  background: var(--blue-soft);
}
.kv-benefit__icon--shield-check {
  background: var(--ok-soft);
  color: var(--ok);
}
.kv-benefit__icon--lock {
  background: color-mix(in srgb, var(--gold-2) 14%, transparent);
  color: var(--gold-text);
}
.kv-benefit__text {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: 1px;
}
.kv-benefit__text strong {
  font-size: 15px;
  font-weight: 750;
}
.kv-benefit__text span {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-2);
}

/* Form card + stepper */
.kv-form {
  --kv-progress: 0;
  display: grid;
  gap: 18px;
  padding: 20px 18px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-2), var(--highlight);
  scroll-margin-top: calc(var(--topbar-h) + var(--safe-t) + 12px);
}
.kv-form__head {
  position: relative;
  padding-bottom: 4px;
}
.kv-stepper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kv-stepper__step {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 64px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  transition: color var(--dur-2) var(--ease);
}
.kv-stepper__step:first-child {
  justify-items: start;
}
.kv-stepper__step:last-child {
  justify-items: end;
}
.kv-stepper__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 0 0 4px var(--surface);
  transition:
    background var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}
.kv-stepper__step.is-current,
.kv-stepper__step.is-done {
  color: var(--text);
}
.kv-stepper__step.is-current .kv-stepper__num {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 0 0 4px var(--surface),
    0 6px 18px -4px rgb(173 26 201 / 0.6);
}
.kv-stepper__step.is-done {
  cursor: pointer;
}
.kv-stepper__step.is-done .kv-stepper__num {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
}
.kv-stepper__bar {
  position: absolute;
  top: 15px;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
}
.kv-stepper__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brand);
  transform-origin: left center;
  transform: scaleX(var(--kv-progress));
  transition: transform 420ms var(--ease);
}

.kv-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.kv-panel--fwd {
  animation: kv-in-fwd 320ms var(--ease) both;
}
.kv-panel--back {
  animation: kv-in-back 320ms var(--ease) both;
}
@keyframes kv-in-fwd {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}
@keyframes kv-in-back {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}
.kv-panel__title {
  float: left;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  outline: none;
}
.kv-panel__sub {
  clear: both;
  margin: -10px 0 0;
  font-size: 14px;
  color: var(--text-2);
}
.kv-row {
  display: grid;
  gap: 16px;
}
.kv-hint {
  display: flex;
  align-items: center;
  gap: 6px;
}
.kv-field-error {
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--danger);
}
.field.is-invalid .input,
.input[aria-invalid='true'] {
  border-color: color-mix(in srgb, var(--danger) 70%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 12%, transparent);
}
.kv-form input[type='date'] {
  color-scheme: inherit;
}

/* Upload zones */
.kv-drop {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 210px;
  aspect-ratio: 1.58;
  border-radius: var(--radius-l);
  border: 1.5px dashed var(--line-2);
  background:
    radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--surface-2);
  cursor: pointer;
  transition:
    border-color var(--dur-2) var(--ease),
    background-color var(--dur-2) var(--ease),
    transform var(--dur-1) var(--ease);
}
.kv-drop--selfie {
  aspect-ratio: 4 / 4.2;
  max-height: 420px;
}
.kv-drop:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.kv-drop:active {
  transform: scale(0.995);
}
.kv-drop:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.kv-drop.is-drag {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
}
.kv-drop.is-invalid {
  border-color: var(--danger);
}
.kv-drop.has-file {
  border-style: solid;
  border-color: transparent;
}
.kv-drop__input {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.kv-drop__frame i {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 2.5px solid color-mix(in srgb, var(--accent) 75%, transparent);
  pointer-events: none;
}
.kv-drop__frame i:nth-child(1) {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 10px;
}
.kv-drop__frame i:nth-child(2) {
  top: 14px;
  right: 14px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 10px;
}
.kv-drop__frame i:nth-child(3) {
  bottom: 14px;
  left: 14px;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 10px;
}
.kv-drop__frame i:nth-child(4) {
  bottom: 14px;
  right: 14px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 10px;
}
.kv-drop.has-file .kv-drop__frame i {
  border-color: rgb(255 255 255 / 0.85);
}
.kv-drop__empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 24px;
  text-align: center;
}
.kv-drop__art {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 20px;
  background: var(--brand-soft), var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
  box-shadow: var(--shadow-1);
}
.kv-drop__empty strong {
  font-size: 16px;
  font-weight: 750;
}
.kv-drop__empty small {
  font-size: 12.5px;
  color: var(--text-3);
}
.kv-drop__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.kv-drop__filled {
  position: absolute;
  inset: 0;
}
.kv-drop__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fade-in 300ms var(--ease) both;
}
.kv-drop__filled::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.35), transparent 30%, transparent 62%, rgb(0 0 0 / 0.5));
  pointer-events: none;
}
.kv-drop__ok,
.kv-drop__change {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  color: #fff;
  background: rgb(21 16 17 / 0.55);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgb(255 255 255 / 0.18);
}
.kv-drop__ok {
  top: 26px;
  left: 26px;
}
.kv-drop__ok .icon {
  color: #34d399;
}
.kv-drop__change {
  bottom: 26px;
  right: 26px;
}

.kv-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: -4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-2);
}
.kv-tips li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.kv-tips .icon {
  color: var(--ok);
}

.kv-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.kv-summary__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}
.kv-summary__text {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}
.kv-summary__text strong {
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kv-summary__text small {
  font-size: 12.5px;
  color: var(--text-2);
}

.kv-uploading {
  display: grid;
  gap: 6px;
}
.kv-uploading__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.kv-uploading__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 200ms linear;
}
.kv-uploading small {
  color: var(--text-2);
  font-weight: 600;
}

.kv-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.kv-nav .btn--ghost {
  flex: none;
}
.kv-nav__next {
  flex: 1;
}

.kv-privacy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  max-width: 46ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-3);
  text-align: left;
}
.kv-privacy .icon {
  flex: none;
  margin-top: 1px;
  color: var(--text-2);
}

/* Status cards */
.kv--status {
  max-width: 520px;
}
.kv-status {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 22px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-2), var(--highlight);
  text-align: center;
  animation: pp-cover-in 480ms var(--ease) both;
}
.kv-status__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.015em;
}
.kv-status__text {
  margin: 4px 0 6px;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.kv-status__burst {
  position: absolute;
  z-index: -1;
  top: -120px;
  left: 50%;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgb(59 156 255 / 0.09) 0 5deg, transparent 5deg 15deg),
    radial-gradient(closest-side, rgb(59 156 255 / 0.24), transparent);
  -webkit-mask: radial-gradient(closest-side, #000 25%, transparent);
  mask: radial-gradient(closest-side, #000 25%, transparent);
  animation: pp-spin 60s linear infinite;
  pointer-events: none;
}
.kv-status__id {
  position: relative;
  margin-bottom: 10px;
}
.kv-status__id .avatar {
  box-shadow:
    0 0 0 4px var(--surface),
    0 0 0 6px rgb(59 156 255 / 0.55),
    0 18px 40px -12px rgb(59 156 255 / 0.55);
}
.kv-status__tick {
  position: absolute;
  right: -6px;
  bottom: -4px;
  display: grid;
  padding: 3px;
  border-radius: 50%;
  background: var(--surface);
  animation: pop 700ms var(--ease-spring) 200ms both;
}
.kv-facts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: 100%;
  margin: 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  text-align: center;
}
.kv-facts > div {
  display: grid;
  gap: 2px;
  padding: 12px 8px;
}
.kv-facts > div + div {
  border-left: 1px solid var(--line);
}
.kv-facts dt {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.kv-facts dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
}
.kv-card {
  padding: 20px 16px 10px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
}
.kv-card__title {
  margin: 0 4px 8px;
  font-size: 17px;
}
.kv-card .kv-benefits {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: none;
}

.kv-status--pending {
  background:
    radial-gradient(70% 50% at 50% 0%, color-mix(in srgb, var(--warn) 12%, transparent), transparent 70%),
    var(--surface);
}
.kv-status--pending .kv-kicker {
  color: var(--warn);
}
.kv-status--pending .kv-status__title em {
  background: var(--brand-text);
  -webkit-background-clip: text;
  background-clip: text;
}
.kv-status__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 10px;
  border-radius: 50%;
  color: var(--warn);
  background: radial-gradient(circle, color-mix(in srgb, var(--warn) 20%, transparent), color-mix(in srgb, var(--warn) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent);
}
.kv-status__orb .icon {
  animation: kv-flip 3.6s var(--ease) infinite;
}
@keyframes kv-flip {
  0%,
  70% {
    transform: rotate(0);
  }
  85%,
  100% {
    transform: rotate(180deg);
  }
}
.kv-status__pulse {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--warn) 50%, transparent);
  animation: kv-ripple 2.6s var(--ease) infinite;
}
.kv-timeline {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 14px 0 0;
  padding: 16px 16px 4px;
  list-style: none;
  text-align: left;
  border-radius: var(--radius-l);
  background: var(--surface-2);
}
.kv-timeline li {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
}
.kv-timeline li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-2);
}
.kv-timeline li.is-done::before {
  background: var(--ok);
}
.kv-timeline__dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-3);
}
.kv-timeline li.is-done .kv-timeline__dot {
  background: var(--ok);
  color: #fff;
}
.kv-timeline li.is-current .kv-timeline__dot {
  background: color-mix(in srgb, var(--warn) 18%, var(--surface));
  border: 1.5px solid var(--warn);
}
.kv-timeline li.is-current .kv-timeline__dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  animation: kv-blink 1.4s ease-in-out infinite;
}
@keyframes kv-blink {
  50% {
    opacity: 0.25;
  }
}
.kv-timeline li:last-child .kv-timeline__dot {
  background: var(--surface);
  opacity: 0.7;
}
.kv-timeline div {
  display: grid;
  gap: 1px;
  padding-top: 3px;
  min-width: 0;
}
.kv-timeline strong {
  font-size: 14.5px;
}
.kv-timeline small {
  font-size: 12.5px;
  color: var(--text-2);
}
.kv-timeline li:last-child strong {
  color: var(--text-2);
}

.kv-status--rejected {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  text-align: left;
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
  background:
    linear-gradient(135deg, var(--danger-soft), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-1);
}
.kv-status__badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
}
.kv-status--rejected h2 {
  margin: 0 0 4px;
  font-size: 17px;
}
.kv-status--rejected p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
}
.kv-status--rejected small {
  color: var(--text-2);
}

@media (min-width: 560px) {
  .kv-form {
    padding: 26px 26px 24px;
  }
  .kv-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .kv-status {
    padding: 44px 34px 32px;
  }
}
@media (min-width: 1024px) {
  .kv:not(.kv--status) {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
    gap: 48px;
    align-items: start;
  }
  .kv-intro {
    position: sticky;
    top: 36px;
    padding-top: 12px;
  }
  .kv:not(.kv--status) .kv-hero {
    justify-items: start;
    text-align: left;
  }
  .kv:not(.kv--status) .kv-hero__title {
    font-size: 64px;
  }
  .kv:not(.kv--status) .kv-hero__lead {
    font-size: 17px;
  }
  .kv-status__title {
    font-size: 52px;
  }
}

/* =====================================================================================
   Moderation (admin)
   ===================================================================================== */
.ad {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}
.ad-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ad-mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.95em;
  letter-spacing: 0.02em;
}
.ad-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.ad-head__title {
  margin: 4px 0 2px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.015em;
}
.ad-head__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 14px;
}
.ad-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
}
.ad-mode strong {
  color: var(--text);
}

/* Stat tiles */
.ad-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.ad-stat {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1), var(--highlight);
}
.ad-stat dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
}
.ad-stat__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
}
.ad-stat__icon--tick {
  background: var(--blue-soft);
  color: var(--blue);
}
.ad-stat__icon--images {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.ad-stat dd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ad-stat dd small {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-3);
}
.ad-stat--hot {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--brand) border-box;
  border: 1px solid transparent;
}
.ad-stat--hot::after {
  content: '';
  position: absolute;
  inset: auto -30% -60% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(173 26 201 / 0.18), transparent 70%);
  pointer-events: none;
}
.ad-stat--hot .ad-stat__icon {
  background: var(--brand);
  color: #fff;
}
.ad-stat--hot dd small {
  color: var(--accent);
}

/* Segmented queues */
.ad-tabs {
  position: sticky;
  top: calc(var(--topbar-h) + var(--safe-t) + 6px);
  z-index: 5;
  display: flex;
  gap: 2px;
  padding: 4px;
  margin-inline: calc(var(--gutter) * -1 + 4px);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  overflow-x: auto;
  scrollbar-width: none;
}
.ad-tabs::-webkit-scrollbar {
  display: none;
}
.ad-tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease);
}
.ad-tab:hover {
  color: var(--text);
}
.ad-tab .icon {
  display: none;
}
.ad-tab[aria-selected='true'] {
  background: var(--text);
  color: var(--bg);
}
.ad-tab__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ad-tab__count.is-hot {
  background: var(--brand);
  color: #fff;
}
.ad-tab[aria-selected='true'] .ad-tab__count:not(.is-hot) {
  background: color-mix(in srgb, var(--bg) 22%, transparent);
  color: var(--bg);
}

/* Queue + cards */
.ad-panel {
  min-height: 240px;
}
.ad-list {
  display: grid;
  gap: 0;
}
.ad-item {
  padding-bottom: 14px;
  animation: pp-rise 420ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 50ms);
  transition:
    height 360ms var(--ease),
    padding 360ms var(--ease),
    opacity 240ms var(--ease),
    transform 360ms var(--ease);
}
.ad-item.is-leaving {
  overflow: hidden;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  padding-bottom: 0;
}
.ad-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1), var(--highlight);
  min-width: 0;
}
.ad-card--flagged {
  border-color: color-mix(in srgb, var(--warn) 22%, var(--line));
}
.ad-card--blocked {
  border-color: color-mix(in srgb, var(--danger) 20%, var(--line));
}
.ad-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.ad-card__meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 10px;
  flex: none;
}
.ad-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}
.ad-time a {
  color: var(--text-2);
}
.ad-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
}
.ad-chip--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.ad-chip--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

/* KYC review */
.ad-kyc {
  display: grid;
  gap: 14px;
}
.ad-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ad-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface-2);
  cursor: zoom-in;
}
.ad-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.ad-shot:hover img {
  transform: scale(1.04);
}
/* Show the whole ID card; the selfie can fill its frame. */
.ad-shot[data-zoom='0'] {
  background:
    radial-gradient(80% 60% at 50% 40%, rgb(255 255 255 / 0.06), transparent),
    var(--surface-3);
}
.ad-shot[data-zoom='0'] img {
  object-fit: contain;
  padding: 10px 8px 34px;
}
.ad-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgb(0 0 0 / 0.6));
  pointer-events: none;
}
.ad-shot__label {
  position: absolute;
  z-index: 1;
  left: 10px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 750;
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
}
.ad-shot__zoom {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: rgb(21 16 17 / 0.5);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgb(255 255 255 / 0.18);
}
.ad-kyc__info {
  display: grid;
  gap: 12px;
  align-content: start;
}
.ad-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-radius: var(--radius-m);
  background: var(--surface-2);
  overflow: hidden;
}
.ad-facts > div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  min-width: 0;
}
.ad-facts > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}
.ad-facts > div:nth-child(even) {
  border-left: 1px solid var(--line);
}
.ad-facts dt {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ad-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.ad-facts dd small {
  font-weight: 600;
  color: var(--text-2);
}
.ad-guide {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--text-2);
}
.ad-guide li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.ad-guide .icon {
  margin-top: 2px;
  color: var(--ok);
}

/* Decision bar */
.ad-decision {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ad-note {
  position: relative;
  display: block;
  color: var(--text-3);
}
.ad-note > .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.ad-note__input {
  min-height: 46px !important;
  padding-left: 42px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
}
.ad-decision__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Video review: player next to the challenge code. */
.ad-card--video {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas:
    'head head'
    'player brief'
    'extra extra'
    'decision decision';
  align-items: start;
}
.ad-card--video > .ad-card__head {
  grid-area: head;
}
.ad-card--video > .ad-video__player {
  grid-area: player;
}
.ad-card--video > .ad-video__brief {
  grid-area: brief;
}
.ad-card--video > .ad-video__extra {
  grid-area: extra;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.ad-card--video > .ad-video__extra:empty {
  display: none;
}
.ad-card--video > .ad-decision {
  grid-area: decision;
}
.ad-card__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.ad-video__player {
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  border-radius: var(--radius-l);
  background: #000;
  box-shadow: var(--shadow-1);
}
.ad-video__player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.ad-video__missing {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  height: 100%;
  color: rgb(255 255 255 / 0.6);
  font-size: 13px;
}
.ad-video__brief {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.ad-code {
  display: flex;
  gap: 5px;
}
.ad-code span {
  display: grid;
  place-items: center;
  flex: 1;
  max-width: 52px;
  aspect-ratio: 0.78;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.06), transparent 50%),
    var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.18);
  font-family: var(--font-display);
  font-size: clamp(26px, 8vw, 40px);
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.ad-video__quote {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
.ad-video__quote strong {
  color: var(--text);
}
.ad-place {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  min-width: 0;
}
.ad-place__flag {
  font-size: 20px;
  line-height: 1;
}
.ad-place strong {
  font-weight: 750;
}
.ad-place__rest {
  color: var(--text-2);
}
.ad-steps {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.ad-caption {
  margin: -4px 0 0;
  font-size: 14px;
  color: var(--text-2);
}

.ad-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ad-thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.ad-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-thumb--more {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-2);
}

.ad-issues {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ad-issue {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-m);
  font-size: 13.5px;
}
.ad-issue > span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.ad-issue small {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.4;
}
.ad-issue--warn {
  background: var(--warn-soft);
}
.ad-issue--fail {
  background: var(--danger-soft);
}
.ad-issue__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  color: #fff;
}
.ad-issue--warn .ad-issue__icon {
  background: var(--warn);
}
.ad-issue--fail .ad-issue__icon {
  background: var(--danger);
}

.ad-more {
  margin: 0;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--surface);
}
.ad-more > summary {
  display: flex;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  font-size: 13.5px;
}
.ad-more__body {
  padding: 0 14px 12px;
}
.ad-more--steps {
  border: 0;
  background: none;
}
.ad-more--steps > summary {
  min-height: 32px;
  padding: 0;
  font-size: 12.5px;
  color: var(--text-2);
}
.ad-private {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 10px 0 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.ad-private > div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  background: var(--surface-2);
  min-width: 0;
}
.ad-private dt {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
}
.ad-private dd {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ad-actions .btn {
  flex: 1 1 auto;
}

/* Loading + empty */
.ad-card--skel {
  gap: 16px;
  margin-bottom: 14px;
}
.ad-skel__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ad-skel__media .skel {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
}
.ad-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 48px 24px;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--line-2);
  text-align: center;
  animation: pp-rise 360ms var(--ease) both;
}
.ad-empty__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 8px;
  border-radius: 22px;
  background: var(--surface-2);
  color: var(--text-2);
}
.ad-empty__ok {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  border: 3px solid var(--bg);
}
.ad-empty--error .ad-empty__icon {
  color: var(--danger);
  background: var(--danger-soft);
}
.ad-empty h3 {
  margin: 0;
  font-size: 18px;
}
.ad-empty p {
  margin: 0 0 6px;
  max-width: 36ch;
  font-size: 14px;
  color: var(--text-2);
}

/* Confirmation sheet */
.ad-confirm {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.ad-confirm__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
}
.ad-confirm__journey {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-m);
  background: var(--surface-2);
  text-align: left;
}
.ad-confirm__journey img,
.ad-confirm__flag {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
}
.ad-confirm__flag {
  display: grid;
  place-items: center;
  background: var(--surface-3);
  font-size: 26px;
}
.ad-confirm__journey > span {
  display: grid;
  min-width: 0;
}
.ad-confirm__journey strong {
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-confirm__journey small {
  font-size: 12.5px;
  color: var(--text-2);
}
.ad-confirm p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.ad-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}
.ad-confirm__go {
  background: var(--danger);
  color: #fff;
  border-color: transparent;
}
.ad-confirm__go:hover:not(:disabled) {
  background: color-mix(in srgb, var(--danger) 88%, #000);
}

/* Zoom sheet */
.ad-zoom__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.ad-zoom__seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.ad-zoom__seg button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}
.ad-zoom__seg button[aria-pressed='true'] {
  background: var(--text);
  color: var(--bg);
}
.ad-zoom__meta {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-2);
}
.ad-zoom__stage {
  display: block;
  width: 100%;
  height: min(62dvh, 620px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-l);
  background:
    repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface-3) 0 50%) 0 0 / 20px 20px;
  cursor: zoom-in;
}
.ad-zoom__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ad-zoom__stage.is-zoomed {
  overflow: auto;
  cursor: zoom-out;
}
.ad-zoom__stage.is-zoomed .ad-zoom__img {
  width: 220%;
  height: auto;
  max-width: none;
}
.ad-zoom__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
}

@media (min-width: 640px) {
  .ad-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ad-tabs {
    margin-inline: 0;
    width: fit-content;
    max-width: 100%;
  }
  .ad-tab {
    gap: 6px;
    padding: 0 12px;
    font-size: 13.5px;
  }
  .ad-tab .icon {
    display: inline-block;
  }
  .ad-actions {
    justify-content: flex-end;
  }
  .ad-actions .btn {
    flex: 0 0 auto;
  }
  .ad-card {
    padding: 20px;
  }
  .ad-decision {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .ad-decision__btns {
    grid-template-columns: auto auto;
  }
  .ad-private {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .ad-head__title {
    font-size: 56px;
  }
  .ad-kyc {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 20px;
  }
  .ad-facts {
    grid-template-columns: 1fr;
  }
  .ad-facts > div:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }
  .ad-facts > div:nth-child(even) {
    border-left: 0;
  }
  .ad-card--video {
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr auto;
    grid-template-areas:
      'head head'
      'player brief'
      'player extra'
      'player .'
      'decision decision';
    column-gap: 24px;
  }
  .ad-card--video > .ad-video__extra {
    padding-top: 6px;
  }
  .ad-code span {
    max-width: 64px;
    font-size: 46px;
  }
  .sheet.ad-zoom {
    width: min(880px, 100%);
    max-height: min(900px, calc(100dvh - 48px));
  }
  .ad-zoom__stage {
    height: min(70dvh, 680px);
  }
}
@media (min-width: 1024px) {
  .ad-tabs {
    top: 12px;
  }
}

/* Motion-sensitive extras (base.css already shortens every animation). */
@media (prefers-reduced-motion: reduce) {
  .pp-detail--permanent .pp-detail__halo,
  .kv-status__burst,
  .kv-seal__ring,
  .kv-status__pulse,
  .kv-status__orb .icon,
  .kv-timeline li.is-current .kv-timeline__dot i,
  .pp-cover,
  .pp-cell,
  .pp-ring__bar,
  .pp-progress__bar > span,
  .pp-goal__bar span,
  .pp-detail .badge,
  .kv-status,
  .kv-seal__tick,
  .kv-status__tick,
  .ad-item,
  .ad-empty {
    animation: none !important;
  }
  .kv-seal__ring,
  .kv-status__pulse {
    opacity: 0.5;
  }
}
.ad-links a {
  display: block;
  color: var(--accent);
  word-break: break-all;
}
