/* USDT Check — Telegram Mini App. One brand blue; green/amber/red are reserved for verdicts. */

:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --surface-3: #e5e9f1;
  --text: #0c1424;
  --text-2: #4f5b74;
  --text-3: #6f7a91;
  --line: #e2e7ef;
  --line-strong: #cdd4e1;

  --brand: #2350f5;
  --brand-ink: #1b3fcc;
  --brand-soft: #e8edff;
  --brand-glow: rgba(35, 80, 245, 0.35);
  --on-brand: #ffffff;

  --safe: #12a35c;
  --safe-ink: #0a7440;
  --safe-soft: #e3f5eb;
  --safe-line: #bfe6cf;
  --caution: #eda100;
  --caution-ink: #855400;
  --caution-soft: #fff3d4;
  --caution-line: #f4d995;
  --danger: #e5484d;
  --danger-ink: #b0252a;
  --danger-soft: #fdebec;
  --danger-line: #f5c1c3;
  --star: #f5a623;

  --scrim: rgba(6, 10, 20, 0.48);
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 12px 32px -12px rgba(16, 24, 40, 0.22), 0 2px 6px rgba(16, 24, 40, 0.05);

  --r-xl: 26px;
  --r-l: 20px;
  --r-m: 16px;
  --r-s: 12px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans",
    "Noto Sans Arabic", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Roboto Mono", monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg: #0a0f1a;
  --surface: #121a29;
  --surface-2: #19233a;
  --surface-3: #212c46;
  --text: #edf1f8;
  --text-2: #a9b2c6;
  --text-3: #8a94ab;
  --line: #222d44;
  --line-strong: #33405e;

  --brand: #3d63ff;
  --brand-ink: #93a8ff;
  --brand-soft: rgba(76, 111, 255, 0.16);
  --brand-glow: rgba(61, 99, 255, 0.45);

  --safe: #2fd17f;
  --safe-ink: #63e2a3;
  --safe-soft: rgba(47, 209, 127, 0.12);
  --safe-line: rgba(47, 209, 127, 0.3);
  --caution: #ffc23d;
  --caution-ink: #ffd47a;
  --caution-soft: rgba(255, 194, 61, 0.12);
  --caution-line: rgba(255, 194, 61, 0.32);
  --danger: #ff5d62;
  --danger-ink: #ff9396;
  --danger-soft: rgba(255, 93, 98, 0.13);
  --danger-line: rgba(255, 93, 98, 0.34);

  --scrim: rgba(0, 0, 0, 0.6);
  --shadow-1: none;
  --shadow-2: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: default;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 26px;
  height: 26px;
}

[dir="rtl"] .flip {
  transform: scaleX(-1);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- layout ---------- */

.screen {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 16px calc(32px + env(safe-area-inset-bottom));
  animation: enter 0.32s var(--ease) both;
}

.screen.is-back {
  animation-name: enter-back;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes enter-back {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.stack {
  display: grid;
  gap: 12px;
}

.splash {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}

.logo-xl {
  width: 64px;
  height: 64px;
  animation: breathe 1.4s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    transform: scale(0.92);
    opacity: 0.7;
  }
}

/* ---------- app bar ---------- */

.appbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-bottom: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo {
  width: 30px;
  height: 30px;
  flex: none;
}

.appbar .spacer {
  flex: 1;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-1);
  transition: transform 0.12s var(--ease);
}

.pill-btn:active {
  transform: scale(0.96);
}

.demo-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--caution-ink);
  background: var(--caution-soft);
  border-radius: 999px;
  padding: 3px 9px;
}

/* ---------- hero ---------- */

.hero {
  padding: 10px 2px 18px;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 750;
  margin: 0 0 10px;
  text-wrap: balance;
}

.hero p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  text-wrap: pretty;
}

.pills {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text-2);
}

.pills .icon {
  color: var(--safe);
}

/* ---------- cards ---------- */

.card {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 16px;
  box-shadow: var(--shadow-1);
  text-align: start;
}

.card-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 12px;
}

/* ---------- address input ---------- */

.label {
  display: block;
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 10px;
}

.field {
  position: relative;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: var(--r-m);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.field:focus-within {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.field.is-valid {
  border-color: var(--safe-line);
}

.field.is-invalid {
  border-color: var(--danger);
}

.field textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  padding: 14px 46px 14px 14px;
  font: 500 16px/1.45 var(--mono);
  letter-spacing: 0.01em;
  word-break: break-all;
  direction: ltr;
  text-align: left;
}

.field textarea::placeholder {
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-3);
  word-break: normal;
}

[dir="rtl"] .field textarea::placeholder {
  text-align: right;
}

.field .clear {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-3);
}

.tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--r-s);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 15px;
  font-weight: 650;
  transition: transform 0.12s var(--ease);
}

.tool:active {
  transform: scale(0.96);
}

.net {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  margin-inline-start: auto;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 650;
  animation: pop 0.25s var(--spring);
}

.net::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--net-color, var(--text-3));
}

.net[data-net="tron"] {
  --net-color: #eb0029;
}

.net[data-net="ethereum"] {
  --net-color: #627eea;
}

.net[data-net="solana"] {
  --net-color: #9945ff;
}

.help,
.error {
  font-size: 14px;
  margin: 10px 2px 0;
}

.help {
  color: var(--text-3);
}

.help.hint {
  color: var(--brand-ink);
  font-weight: 600;
}

.error {
  color: var(--danger-ink);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.error .icon {
  margin-top: 1px;
}

/* ---------- buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border-radius: var(--r-m);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.005em;
  transition: transform 0.12s var(--ease), opacity 0.15s, background-color 0.15s;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 24px -10px var(--brand-glow);
}

.btn-primary:disabled {
  opacity: 0.42;
  box-shadow: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-ghost {
  color: var(--brand-ink);
  min-height: 48px;
}

.form-cta {
  margin-top: 16px;
}

.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

/* ---------- quota ---------- */

.quota {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-2);
}

.quota .icon {
  color: var(--text-3);
}

.link {
  color: var(--brand-ink);
  font-weight: 650;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- trust & explainers ---------- */

/* "What happens to your address": the same story as the picture in the bot's /start */

.how {
  padding: 20px 16px;
}

.sec-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.sec-sub {
  margin: 6px 0 20px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text-2);
  text-wrap: pretty;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

/* the dashed line from one step's icon to the next */
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 21px;
  top: 52px;
  bottom: -16px;
  border-inline-start: 2px dashed var(--line-strong);
}

.t-ic {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.timeline li:last-child .t-ic {
  background: var(--safe-soft);
  color: var(--safe-ink);
}

.t-num {
  position: absolute;
  top: -7px;
  inset-inline-end: -7px;
  min-width: 21px;
  height: 21px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  border: 2px solid var(--surface);
}

.t-body {
  min-width: 0;
  padding-top: 1px;
}

.t-body b {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.t-body p {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.42;
  color: var(--text-2);
  text-wrap: pretty;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.chip.c-safe {
  color: var(--safe-ink);
  background: var(--safe-soft);
}

.chip.c-caution {
  color: var(--caution-ink);
  background: var(--caution-soft);
}

.chip.c-danger {
  color: var(--danger-ink);
  background: var(--danger-soft);
}

.safe-box {
  border-radius: var(--r-l);
  padding: 18px 16px 0;
  border: 1.5px solid var(--safe-line);
  background: linear-gradient(180deg, var(--safe-soft) 0%, transparent 100%), var(--surface);
  box-shadow: var(--shadow-1);
}

.safe-box h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 750;
  color: var(--safe-ink);
}

.safe-ic {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--safe);
  color: #fff;
  box-shadow: 0 8px 18px -8px var(--safe);
}

.safe-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.safe-box li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.4;
}

.safe-box li .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--safe);
  stroke-width: 3;
}

.safe-box .more-row {
  width: 100%;
  border-top-color: var(--safe-line);
  color: var(--safe-ink);
}

.badge-ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--safe-soft);
  color: var(--safe-ink);
}

.badge-ic.is-brand {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--brand-ink);
  font-weight: 650;
  font-size: 15px;
}

.invite {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invite .grow {
  flex: 1;
  min-width: 0;
}

.invite b {
  display: block;
  font-size: 15px;
}

.invite span {
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- scanning ---------- */

.scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 28px;
}

.radar {
  position: relative;
  width: 172px;
  height: 172px;
  margin-bottom: 22px;
}

.radar .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  opacity: 0.8;
}

.radar .ring.r2 {
  inset: 24px;
}

.radar .ring.r3 {
  inset: 48px;
}

.radar .sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, var(--brand-glow) 360deg);
  animation: spin 1.8s linear infinite;
}

.radar .core {
  position: absolute;
  inset: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 30px -8px var(--brand-glow);
}

.radar .core .icon {
  width: 28px;
  height: 28px;
}

.scan h1 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.scan .addr {
  font: 500 14px/1.4 var(--mono);
  color: var(--text-2);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  width: 100%;
  max-width: 380px;
  display: grid;
  gap: 8px;
  text-align: start;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-weight: 550;
  transition: color 0.2s, border-color 0.2s;
}

.step .dot {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
}

.step.is-active {
  color: var(--text);
  border-color: var(--line-strong);
}

.step.is-active .dot {
  border-color: var(--brand);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.step.is-done {
  color: var(--text);
}

.step.is-done .dot {
  border: 0;
  background: var(--safe);
  color: #fff;
  animation: pop 0.28s var(--spring);
}

.step.is-done .dot .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

/* ---------- verdict hero ---------- */

.v-safe {
  --v: var(--safe);
  --v-ink: var(--safe-ink);
  --v-soft: var(--safe-soft);
  --v-line: var(--safe-line);
}

.v-caution {
  --v: var(--caution);
  --v-ink: var(--caution-ink);
  --v-soft: var(--caution-soft);
  --v-line: var(--caution-line);
}

.v-danger {
  --v: var(--danger);
  --v-ink: var(--danger-ink);
  --v-soft: var(--danger-soft);
  --v-line: var(--danger-line);
}

.verdict {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 20px 16px 16px;
  background: var(--v-soft);
  border: 1px solid var(--v-line);
  text-align: center;
  isolation: isolate;
}

.verdict::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(closest-side, var(--v-line), transparent);
  opacity: 0.55;
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
}

.gauge {
  position: relative;
  width: 184px;
  height: 184px;
  margin: 0 auto -6px;
}

.gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(135deg);
}

.gauge circle {
  fill: none;
  stroke-width: 13;
  stroke-linecap: round;
  stroke-dasharray: 405.27 540.35;
}

.gauge .track {
  stroke: var(--v-line);
}

.gauge .fill {
  stroke: var(--v);
  stroke-dashoffset: 405.27;
  transition: stroke-dashoffset 1s var(--ease);
}

.gauge-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  line-height: 1;
}

.gauge-num b {
  font-size: 56px;
  font-weight: 760;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--v-ink);
}

.gauge-num span {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.verdict h1 {
  margin: 0 0 6px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--v-ink);
  text-wrap: balance;
}

/* Inline, so a long verdict wraps as one phrase with its icon instead of leaving the icon behind. */
.verdict h1 .icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: -3px;
  margin-inline-end: 6px;
}

.verdict .advice {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--text);
  text-wrap: pretty;
}

.addr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 8px 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: start;
}

[dir="rtl"] .addr-row {
  padding: 8px 14px 8px 8px;
}

.addr-row .meta {
  flex: 1;
  min-width: 0;
}

.addr-row .net {
  margin: 0 0 4px;
  min-height: 24px;
  padding: 0 9px;
  font-size: 12px;
  animation: none;
}

.addr-row code {
  display: block;
  font: 500 14px/1.35 var(--mono);
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-2);
  transition: transform 0.12s var(--ease);
}

.icon-btn:active {
  transform: scale(0.94);
}

/* ---------- rows ---------- */

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.row .ic {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-top: -3px;
}

.row .ic .icon {
  width: 17px;
  height: 17px;
}

.l-danger .ic {
  background: var(--danger-soft);
  color: var(--danger-ink);
}

.l-warn .ic {
  background: var(--caution-soft);
  color: var(--caution-ink);
}

.l-ok .ic,
.l-safe .ic {
  background: var(--safe-soft);
  color: var(--safe-ink);
}

.l-info .ic,
.l-muted .ic,
.l-trace .ic {
  background: var(--surface-2);
  color: var(--text-2);
}

.l-muted {
  color: var(--text-2);
}

/* ---------- details accordion ---------- */

.acc {
  padding: 0;
}

.acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  font-weight: 650;
  cursor: pointer;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary .icon {
  color: var(--text-3);
  transition: transform 0.2s var(--ease);
}

.acc[open] summary .icon {
  transform: rotate(180deg);
}

.acc-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facts li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.facts li:last-child {
  border-bottom: 0;
}

.sub-title {
  margin: 14px 0 10px;
  font-size: 14px;
  font-weight: 650;
}

.caption {
  font-size: 13px;
  color: var(--text-3);
  margin: 12px 0 0;
}

.acc-body .btn {
  margin-top: 12px;
  min-height: 48px;
  font-size: 15px;
}

/* ---------- the full report offer (home and result) ---------- */

.offer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-l);
  padding: 18px;
  color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #4d74ff 0%, transparent 60%),
    linear-gradient(150deg, #1d3bd1 0%, #0e1f7a 100%);
  box-shadow: 0 18px 40px -18px rgba(29, 59, 209, 0.7);
}

[dir="rtl"] .offer {
  background: radial-gradient(120% 90% at 0% 0%, #4d74ff 0%, transparent 60%),
    linear-gradient(210deg, #1d3bd1 0%, #0e1f7a 100%);
}

/* a faint grid, like the report's own cover */
.offer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.offer h2 {
  margin: 10px 0 0;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.offer-text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.inc {
  clear: both;
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
}

.inc li {
  position: relative;
  padding-inline-start: 27px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.inc li + li {
  margin-top: 9px;
}

.inc li .icon {
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  color: #7ee2a8;
  stroke-width: 3;
}

.offer .btn {
  clear: both;
  margin-top: 18px;
}

.btn-light {
  background: #fff;
  color: #1a38c7;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

.offer-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.74);
}

/* the lock sits in the text line, so it stays next to centered text */
.offer-note .icon,
.calm .icon {
  display: inline-block;
  vertical-align: -3px;
  margin-inline-end: 5px;
}

/* next to the cover, like a price under a product photo */
.offer-price {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

.offer-price .stars {
  font-size: 15px;
  font-weight: 750;
  color: #fff;
  white-space: nowrap;
}

/* the sample report's cover, on a second page, like a document on the desk */
.doc {
  position: relative;
  float: right;
  width: 88px;
  aspect-ratio: 210 / 297;
  margin: 2px 6px 6px 14px;
  transform: rotate(4deg);
  transition: transform 0.2s var(--ease);
}

[dir="rtl"] .doc {
  float: left;
  margin: 2px 14px 6px 6px;
  transform: rotate(-4deg);
}

.doc:active {
  transform: rotate(2deg) scale(0.97);
}

.doc .page,
.doc .cover {
  position: absolute;
  inset: 0;
  border-radius: 7px;
}

.doc .page {
  background: rgba(255, 255, 255, 0.28);
  transform: translate(-8px, 5px) rotate(-7deg);
}

.doc .cover {
  overflow: hidden;
  background: linear-gradient(160deg, #1a2b6d 0%, #0a1233 100%);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.doc img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.doc img.is-loaded {
  opacity: 1;
}

.pdf-tag {
  position: absolute;
  bottom: 8px;
  inset-inline-start: -8px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #e5484d;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.5);
}

.sample-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border-radius: var(--r-m);
  color: #fff;
  font-weight: 650;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* the paid report's PDF opens right here, not in the chat */
.pdf-open {
  display: grid;
  gap: 8px;
}

.pdf-open .caption {
  margin: 0;
  text-align: center;
}

/* why labels next to a safe verdict are nothing to worry about */
.traces-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}

.traces-note .icon {
  margin-top: 2px;
  color: var(--brand-ink);
}

.star {
  color: var(--star);
  fill: var(--star);
  stroke: none;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ---------- deep report ---------- */

.parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  text-align: start;
}

.part {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.part small {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-3);
  margin-bottom: 4px;
}

.part b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 1.3;
}

.part b::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, var(--text-3));
}

.part.v-safe,
.part.v-caution,
.part.v-danger {
  --dot: var(--v);
}

.part.wide {
  grid-column: 1 / -1;
}

.card.stack {
  display: grid;
}

.part .num {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.why {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
  text-align: start;
}

.why .icon {
  color: var(--brand-ink);
  margin-top: 1px;
}

.source {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.source:first-of-type {
  padding-top: 2px;
}

.source:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.source .top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.source .ic {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.source .ic .icon {
  width: 17px;
  height: 17px;
}

.source .name {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.source .cat {
  font-size: 14px;
  color: var(--text-2);
}

.source .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.path {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-2);
}

.path li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.path .node {
  font: 500 12.5px/1 var(--mono);
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
}

.path .node.origin {
  font-family: var(--font);
  font-weight: 700;
  color: var(--text);
}

.path .node.me {
  font-family: var(--font);
  font-weight: 650;
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand-ink);
}

.path .arrow {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}

.clean {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.foot {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  margin: 4px 8px 0;
}

.calm {
  max-width: 34ch;
  margin: 24px auto 0;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
  text-wrap: balance;
  color: var(--safe-ink);
}

.stack > .calm {
  margin-top: 0;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

/* ---------- sheets ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--scrim);
  opacity: 0;
  transition: opacity 0.22s;
}

.scrim.is-open {
  opacity: 1;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  padding: 6px 16px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
}

.sheet.is-open {
  transform: none;
}

.grabber {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--line-strong);
  margin: 6px auto 10px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.sheet .lead {
  margin: -6px 0 16px;
  color: var(--text-2);
}

.products {
  display: grid;
  gap: 10px;
}

.product {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 12px 12px 12px 14px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-align: start;
  transition: transform 0.12s var(--ease), border-color 0.15s;
}

.product:active {
  transform: scale(0.985);
}

.product.is-best {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.product .grow {
  flex: 1;
  min-width: 0;
}

.product .t {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-weight: 700;
}

.product .s {
  font-size: 13px;
  color: var(--text-2);
}

.badge {
  font-size: 11.5px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}

.price {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.price .icon {
  width: 17px;
  height: 17px;
}

.note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-3);
  margin: 14px 2px 0;
}

.langs {
  display: grid;
  gap: 6px;
}

.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 550;
  text-align: start;
}

.lang-opt[aria-checked="true"] {
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
}

.flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 16px 10px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: var(--surface-2);
}

.flow .node {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 30%;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-2);
}

.flow .bubble {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--brand-ink);
  box-shadow: var(--shadow-1);
}

.flow .bubble .logo {
  width: 28px;
  height: 28px;
}

.flow .arrow {
  color: var(--text-3);
  flex: none;
}

.forget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -4px 0 16px;
  font-size: 14px;
  font-weight: 650;
  color: var(--safe-ink);
}

.prose {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.prose b {
  color: var(--text);
}

/* ---------- misc ---------- */

.center {
  min-height: 70dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.center h1 {
  font-size: 22px;
  margin: 0;
}

.center p {
  margin: 0;
  color: var(--text-2);
  max-width: 32ch;
}

.center .btn {
  width: auto;
  min-width: 220px;
}

.big-ic {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-2);
}

.big-ic .icon {
  width: 30px;
  height: 30px;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s, transform 0.2s var(--ease);
  pointer-events: none;
}

#toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[data-still] *,
[data-still] *::before,
[data-still] *::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
