/* Shared AML address result for the public Zeus page and account cabinet. */
.radar-result {
  position: relative;
  min-width: 0;
  width: 100%;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-solid);
  box-shadow: 0 16px 40px rgba(2, 8, 18, .18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease;
}
.radar-result.is-shown { opacity: 1; transform: none; }
.radar-result.risk-high { border-color: color-mix(in srgb, var(--risk-high) 45%, var(--border)); }
.radar-result > * { position: relative; z-index: 1; }

.radar-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin-bottom: 18px;
}
.radar-result__addr { display: grid; min-width: 0; gap: 4px; }
.radar-result__crumb,
.radar-summary__eyebrow,
.radar-info__k {
  color: var(--text-dim);
  font: 600 9px/1.3 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.radar-result__mono {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font: 500 13px/1.4 var(--font-mono);
}
.radar-chip {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--accent-ink);
  background: transparent;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: .05em;
}

.radar-summary {
  --summary-color: var(--risk-low);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--summary-color) 34%, var(--border));
  border-radius: 6px;
  background: color-mix(in srgb, var(--summary-color) 7%, var(--surface-solid));
}
.radar-summary--medium { --summary-color: var(--risk-mid); }
.radar-summary--high { --summary-color: var(--risk-high); }
.radar-summary__score {
  display: grid;
  align-content: center;
  min-height: 86px;
  padding-right: 20px;
  border-right: 1px solid color-mix(in srgb, var(--summary-color) 30%, var(--border));
}
.radar-summary__score > div { display: flex; align-items: baseline; color: var(--summary-color); }
.radar-summary__score strong { font: 700 42px/.95 var(--font-display); letter-spacing: -.06em; }
.radar-summary__score small { margin-left: 3px; color: var(--text-dim); font: 600 12px var(--font-mono); }
.radar-summary__score > span { margin-top: 8px; color: var(--text-muted); font: 600 9px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.radar-summary__body { min-width: 0; }
.radar-summary__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  color: var(--summary-color);
  font: 700 23px/1.15 var(--font-display);
  letter-spacing: -.025em;
}
.radar-summary__status i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent); }
.radar-summary__body p { max-width: 460px; margin: 8px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }

.radar-result__section { margin-top: 22px; }
.radar-result__section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.radar-result__section-head strong { color: var(--text); font: 600 13px var(--font-display); }
.radar-result__section-head span { color: var(--text-dim); font-size: 10px; }
.radar-exp { display: grid; gap: 11px; }
.radar-exp__top { display: flex; justify-content: space-between; gap: 12px; min-width: 0; margin-bottom: 5px; font-size: 12px; }
.radar-exp__label { min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.radar-exp__val { flex: 0 0 auto; color: var(--text-muted); font-family: var(--font-mono); }
.radar-exp__track { height: 5px; overflow: hidden; border-radius: 1px; background: var(--surface-strong); }
.radar-exp__bar { width: 0; height: 100%; border-radius: inherit; transition: width .65s cubic-bezier(.32, .72, .32, 1); }
.radar-exp__bar--bad { background: var(--risk-high); }
.radar-exp__bar--warn { background: var(--risk-mid); }
.radar-exp__bar--ok { background: var(--risk-low); }
.radar-exp__bar--neutral { background: var(--text-dim); }
.radar-exp__sc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 17px;
  margin-left: 7px;
  padding: 0 4px;
  border-radius: 3px;
  font: 700 9px var(--font-mono);
  vertical-align: middle;
}
.radar-exp__sc--bad { color: var(--risk-high); background: var(--risk-high-bg); }
.radar-exp__sc--warn { color: var(--risk-mid-text); background: var(--risk-mid-bg); }
.radar-exp__sc--ok { color: var(--risk-low); background: var(--risk-low-bg); }
.radar-exp__sc--neutral { color: var(--text-muted); background: var(--surface-strong); }

.radar-result__section--flags { padding-top: 18px; border-top: 1px solid var(--border); }
.radar-flags__title { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.radar-flags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.radar-flags__tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 8px;
  overflow-wrap: anywhere;
  border: 1px solid color-mix(in srgb, var(--risk-high) 28%, var(--border));
  border-radius: 4px;
  color: var(--risk-high);
  background: color-mix(in srgb, var(--risk-high) 7%, transparent);
  font: 600 10px/1.35 var(--font-mono);
}

.radar-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-strong) 36%, var(--surface-solid));
}
.radar-info__cell { min-width: 0; padding: 12px 13px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.radar-info__cell:nth-child(3n) { border-right: 0; }
.radar-info__cell:nth-last-child(-n + 3) { border-bottom: 0; }
.radar-info__v { margin-top: 6px; overflow-wrap: anywhere; color: var(--text); font: 500 12px/1.4 var(--font-mono); }
.radar-info__meta { margin-top: 5px; color: var(--text-dim); font-size: 9px; line-height: 1.35; }

.radar-result__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.radar-result__foot .btn { min-height: 42px; }
.radar-result__foot .arrow-right { width: 15px; height: 15px; }
.radar-result__note { color: var(--text-muted); font-size: 12px; }
.radar-result__legal { display: grid; gap: 6px; margin-top: 18px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 6px; background: color-mix(in srgb, var(--surface-strong) 34%, transparent); }
.radar-result__legal strong { color: var(--text); font-size: 11px; }
.radar-result__legal span { color: var(--text-dim); font: 500 9px/1.35 var(--font-mono); }
.radar-result__legal p { margin: 0; color: var(--text-muted); font-size: 10px; line-height: 1.55; }

@media (max-width: 640px) {
  .radar-result { padding: 16px; box-shadow: none; }
  .radar-result__head { margin-bottom: 14px; }
  .radar-summary { grid-template-columns: 88px minmax(0, 1fr); gap: 15px; padding: 16px; }
  .radar-summary__score { min-height: 72px; padding-right: 14px; }
  .radar-summary__score strong { font-size: 34px; }
  .radar-summary__status { font-size: 19px; }
  .radar-summary__body p { font-size: 12px; }
  .radar-result__section-head { display: grid; gap: 3px; }
  .radar-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar-info__cell:nth-child(n) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .radar-info__cell:nth-child(2n) { border-right: 0; }
  .radar-info__cell:nth-last-child(-n + 2) { border-bottom: 0; }
  .radar-result__foot .btn { width: 100%; }
}

@media (max-width: 390px) {
  .radar-summary { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .radar-summary__score { min-height: 66px; padding-right: 11px; }
  .radar-summary__score strong { font-size: 30px; }
  .radar-summary__score > span { font-size: 8px; }
  .radar-summary__status { gap: 7px; font-size: 17px; }
  .radar-summary__status i { width: 6px; height: 6px; }
  .radar-summary__body p { margin-top: 6px; }
  .radar-info { grid-template-columns: 1fr; }
  .radar-info__cell:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--border); }
  .radar-info__cell:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .radar-result, .radar-exp__bar { transition: none; }
}

/* Pending AML report: a real clock, no synthetic percentage. */
.aml-loading[hidden]{display:none!important}
.aml-loading{display:flex;align-items:center;justify-content:center;gap:32px;padding:36px 24px;border:1px solid var(--border,#26382e);border-radius:20px;background:radial-gradient(ellipse at 20% 50%,#30cf8e10,transparent 65%);min-height:220px;overflow:hidden}
.aml-loading__map{position:relative;width:144px;height:144px;flex-shrink:0;color:#55d99d}
.aml-loading__orbit{position:absolute;inset:0;border:1px solid #55d99d30;border-radius:50%}
.aml-loading__orbit--inner{inset:29px}
.aml-loading__sweep{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,transparent 65%,#55d99d38);animation:aml-sweep 4s linear infinite}
.aml-loading__map b{position:absolute;inset:50px;display:grid;place-items:center;border:1px solid #55d99d60;border-radius:14px;background:#55d99d15;font-size:25px;animation:aml-heartbeat 2s ease-in-out infinite}
.aml-loading__map i{position:absolute;width:8px;height:8px;border-radius:50%;background:#55d99d;box-shadow:0 0 12px #55d99d70;animation:aml-heartbeat 2.4s ease-in-out infinite}
.aml-loading__map i:nth-of-type(1){left:15px;top:25px}.aml-loading__map i:nth-of-type(2){right:5px;top:45px;animation-delay:.5s}.aml-loading__map i:nth-of-type(3){left:44px;bottom:3px;animation-delay:1s}.aml-loading__map i:nth-of-type(4){left:45px;top:40px;animation-delay:.7s}.aml-loading__map i:nth-of-type(5){right:38px;bottom:38px;animation-delay:1.4s}
.aml-loading__copy{max-width:370px}.aml-loading__copy strong{display:block;font-size:20px;font-weight:600}.aml-loading__copy p{font-size:14px;line-height:1.6;opacity:.7;margin:10px 0 18px}.aml-loading__copy span{font-size:13px;font-variant-numeric:tabular-nums;opacity:.65}
@keyframes aml-sweep{to{transform:rotate(360deg)}}@keyframes aml-heartbeat{50%{opacity:.4;transform:scale(.88)}}
@media(max-width:540px){.aml-loading{flex-direction:column;gap:20px;text-align:center;padding:28px 20px}}
@media(prefers-reduced-motion:reduce){.aml-loading *{animation:none!important}}

.radar-result [data-restriction-assessment] { overflow-wrap: anywhere; }
