*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0d1f3c;
  --navy2:     #152a4a;
  --navy3:     #1e3a5f;
  --gold:      #c9a84c;
  --gold2:     #e8c46a;
  --white:     #ffffff;
  --offwhite:  #f4f6f9;
  --border:    #dce3ec;
  --text:      #1a2744;
  --muted:     #6b7a96;
  --green:     #1a7a4a;
  --green-bg:  #e8f5ee;
  --yellow:    #b07d10;
  --yellow-bg: #fef9e7;
  --red:       #c0392b;
  --red-bg:    #fdecea;
  --shadow:    0 2px 12px rgba(13,31,60,.10);
  --shadow-lg: 0 8px 32px rgba(13,31,60,.15);
}

html, body {
  height: 100%;
  font-family: 'Roboto', 'Inter', system-ui, sans-serif;
  background: var(--offwhite);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── Top alert bar ───────────────────────────────────────────── */
.alert-bar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: 11px;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.alert-bar span { color: var(--gold); font-weight: 700; }

/* ── Header ──────────────────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-badge {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.logo-text { line-height: 1.2; }
.logo-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.logo-sub {
  font-size: 9.5px;
  color: var(--gold);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.connect-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  border: 1.5px solid var(--navy);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .2s;
  font-family: inherit;
}
.connect-btn:hover { background: var(--navy2); border-color: var(--navy2); }
.connect-btn.connected { background: transparent; border-color: #16a34a; color: #16a34a; }
.connect-btn.connected:hover { background: #16a34a; color: var(--white); }
.connect-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* hero block moved to bottom — new two-column layout */

/* ── Search ──────────────────────────────────────────────────── */
.search-wrap {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}
#addr-input {
  width: 100%;
  background: var(--white);
  border: 2px solid transparent;
  color: var(--text);
  font-size: 13.5px;
  padding: 15px 130px 15px 46px;
  border-radius: 4px;
  outline: none;
  font-family: 'Roboto Mono', 'JetBrains Mono', monospace;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
  transition: border-color .2s;
}
#addr-input::placeholder { color: #aab4c4; font-family: 'Roboto', sans-serif; font-size: 13px; }
#addr-input:focus { border-color: var(--gold); }

#verify-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s, transform .1s;
  font-family: inherit;
}
#verify-btn:hover { background: var(--gold2); }
#verify-btn:active { transform: translateY(-50%) scale(.97); }
#verify-btn:disabled { opacity: .5; cursor: not-allowed; }

.chain-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  position: relative;
}
.chain-tag {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Stats bar ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stats-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  padding: 0 24px;
}
.stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.stat-icon.blue   { background: #e8f0fb; }
.stat-icon.red    { background: var(--red-bg); }
.stat-icon.green  { background: var(--green-bg); }
.stat-body { line-height: 1.2; }
.stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}
.stat-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 600;
}

/* ── Main ────────────────────────────────────────────────────── */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ── Loading ─────────────────────────────────────────────────── */
#loading { display: none; text-align: center; padding: 60px 0; }
.spinner {
  width: 42px; height: 42px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading p { color: var(--muted); font-size: 14px; font-weight: 500; }

/* ── Result ──────────────────────────────────────────────────── */
#result { display: none; }

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.result-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.result-addr {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

/* Risk badge */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.risk-clean  { background: var(--green-bg);  color: var(--green); border: 1px solid #a8dbbe; }
.risk-medium { background: var(--yellow-bg); color: var(--yellow); border: 1px solid #f0d080; }
.risk-high   { background: var(--red-bg);    color: var(--red);   border: 1px solid #f0a8a0; }

/* Score card */
.score-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.ring-wrap { position: relative; flex-shrink: 0; }
.ring-svg  { transform: rotate(-90deg); }
.ring-bg   { fill: none; stroke: var(--border); stroke-width: 6; }
.ring-fill { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.4,0,.2,1); }
.ring-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 21px; font-weight: 800; line-height: 1;
}
.ring-label small { font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.score-info h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; color: var(--navy); }
.score-info p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Detail grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
@media(max-width:500px){.detail-grid{grid-template-columns:1fr;}}

.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.detail-card .lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-card .val { font-size: 14px; font-weight: 700; color: var(--navy); }

/* Flags */
.flags-card, .tx-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card-heading {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.flag-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.flag-item:last-child { border-bottom: none; padding-bottom: 0; }
.flag-pill {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 2px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-top: 2px;
}
.flag-pill.red    { background: var(--red-bg);    color: var(--red); }
.flag-pill.yellow { background: var(--yellow-bg); color: var(--yellow); }
.flag-pill.green  { background: var(--green-bg);  color: var(--green); }

/* Flag dot (used by JS renderResult) */
.flag-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.flag-dot.red    { background: var(--red); }
.flag-dot.yellow { background: var(--yellow); }
.flag-dot.green  { background: var(--green); }
.flag-text strong { display: block; margin-bottom: 2px; color: var(--navy); font-size: 13px; }
.flag-text span   { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* TX list */
.tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.tx-item:last-child { border-bottom: none; }
.tx-dir {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
}
.tx-dir.in  { background: var(--green-bg);  color: var(--green); }
.tx-dir.out { background: var(--red-bg);    color: var(--red); }
.tx-body { flex: 1; min-width: 0; }
.tx-hash { font-family: monospace; color: var(--navy3); font-size: 11px; }
.tx-age  { color: var(--muted); font-size: 11px; }
.tx-val  { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Action bar */
.action-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.action-btn {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 11px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .2s;
  font-family: inherit;
}
.action-btn:hover { border-color: var(--navy); background: var(--offwhite); }
.action-btn.primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.action-btn.primary:hover { background: var(--navy2); }

/* Empty state */
#empty {
  text-align: center;
  padding: 70px 20px;
}
.empty-shield {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  opacity: .15;
}
#empty h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
#empty p  { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 340px; margin: 0 auto; }

/* ── Wallet modal ────────────────────────────────────────────── */
.wm-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10,20,40,.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
@media(min-width:540px){
  .wm-overlay { align-items: center; padding: 20px; }
}
.wm-box {
  background: var(--white);
  border-radius: 16px 16px 0 0;
  width: 100%; max-width: 480px;
  padding: 0 0 env(safe-area-inset-bottom,0);
  box-shadow: 0 -8px 48px rgba(0,0,0,.25);
  overflow: hidden;
  animation: wm-slide-up .22s ease;
}
@media(min-width:540px){
  .wm-box { border-radius: 12px; animation: wm-fade-in .2s ease; }
}
@keyframes wm-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes wm-fade-in  { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

.wm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.wm-head-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 800; color: var(--navy);
}
.wm-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--offwhite);
  font-size: 14px; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.wm-close:hover { background: var(--border); }

.wm-sub {
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
  padding: 12px 20px 4px;
}
.wm-options { padding: 8px 12px 4px; display: flex; flex-direction: column; gap: 6px; }

.wm-opt {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 13px 14px;
  background: var(--offwhite); border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer; text-align: left;
  font-family: inherit; transition: all .15s;
}
.wm-opt:hover { border-color: var(--navy); background: #f0f4ff; }
.wm-opt:active { transform: scale(.98); }

.wm-opt-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #f0f0f0; flex-shrink: 0; font-size: 18px; overflow: hidden;
}
.wm-opt-icon svg { width: 28px; height: 28px; }
.wm-opt-body { flex: 1; line-height: 1.3; }
.wm-opt-body strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.wm-opt-body small  { font-size: 11px; color: var(--muted); }
.wm-opt-arrow { font-size: 16px; color: var(--muted); }

.wm-footer {
  font-size: 10.5px; color: var(--muted); line-height: 1.6;
  padding: 12px 20px 16px; border-top: 1px solid var(--border);
  text-align: center;
}
.wm-footer strong { color: var(--navy); font-family: 'Roboto Mono', monospace; font-size: 10px; }

/* Toast */
#toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform .3s;
  z-index: 999;
  white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ── Notice bar ──────────────────────────────────────────────── */
.notice-bar { background: #fff8e1; border-bottom: 2px solid #f0c040; }
.notice-inner {
  max-width: 960px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.notice-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.notice-text { flex: 1; font-size: 13px; line-height: 1.6; color: #7a5800; min-width: 200px; }
.notice-text strong { font-weight: 800; color: #5a3e00; }
.notice-ref {
  font-size: 11px; font-weight: 700; color: #7a5800;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  align-self: center; background: rgba(0,0,0,.06); padding: 4px 10px; border-radius: 3px;
}

/* ── CTA split ───────────────────────────────────────────────── */
.cta-split {
  display: flex; align-items: stretch; gap: 0;
  max-width: 640px; margin: 32px auto 0; position: relative;
}
.cta-card {
  flex: 1; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; padding: 22px 20px; text-align: center; position: relative;
}
.cta-card.fast { background: rgba(201,168,76,.08); border-color: rgba(201,168,76,.3); }
.cta-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy);
  font-size: 9px; font-weight: 800; letter-spacing: .10em; padding: 3px 10px; border-radius: 2px;
}
.cta-icon { font-size: 26px; margin-bottom: 10px; }
.cta-card h3 { font-size: 14px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.cta-card p  { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 16px; }
.cta-btn {
  width: 100%; padding: 11px 16px; border-radius: 4px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; border: none; font-family: inherit; transition: all .2s;
}
.cta-btn.gold { background: var(--gold); color: var(--navy); }
.cta-btn.gold:hover { background: var(--gold2); }
.cta-btn.outline { background: transparent; border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.75); }
.cta-btn.outline:hover { border-color: var(--white); color: var(--white); }
.cta-divider {
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.3); letter-spacing: .08em; flex-shrink: 0;
}
@media(max-width:520px){ .cta-split{flex-direction:column;} .cta-divider{padding:10px 0;} }

/* ── IP / Geo bar ────────────────────────────────────────────── */
.ip-bar {
  background: #0a1628;
  border-bottom: 1px solid rgba(201,168,76,.25);
}
.ip-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
}
.ip-bar-label {
  color: rgba(255,255,255,.5);
  font-weight: 600;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.ip-bar-val {
  font-family: 'Roboto Mono', monospace;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}
.ip-bar-sep {
  color: rgba(255,255,255,.2);
  font-size: 12px;
}
.ip-bar-name {
  color: #fff !important;
  font-family: 'Roboto', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
}
.ip-bar-warn {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: .04em;
  flex-shrink: 0;
}
@media(max-width:600px){
  .ip-bar-warn { display: none; }
  .ip-bar-sep:last-of-type { display: none; }
  #isp-display { display: none; }
}

/* ── Top strip ───────────────────────────────────────────────── */
.top-strip {
  background: var(--navy2);
  border-bottom: 1px solid rgba(201,168,76,.2);
  font-size: 11px;
  color: rgba(255,255,255,.55);
  letter-spacing: .05em;
}
.top-strip-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 5px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-strip-right { color: var(--gold); font-weight: 600; white-space: nowrap; }

/* ── Header overrides for new structure ──────────────────────── */
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cr-seal  { width: 44px; height: 52px; flex-shrink: 0; }
.oij-badge { width: 36px; height: 43px; flex-shrink: 0; }
.oij-badge-img { width: 52px; height: 58px; flex-shrink: 0; object-fit: contain; }
.header-titles { line-height: 1.25; }
.header-title-main {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .02em;
}
.header-title-sub {
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.case-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.case-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-val {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
@media(max-width:640px){
  .cr-seal { display: none; }
  .header-title-main { font-size: 12px; }
  .case-indicator { display: none; }
}

/* ── Alert notice ────────────────────────────────────────────── */
.alert-notice {
  background: #fff3cd;
  border-bottom: 3px solid #e8a200;
}
.alert-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.alert-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-body {
  flex: 1;
  font-size: 13px;
  color: #6d4c00;
  line-height: 1.65;
}
.alert-body strong { color: #3d2800; }
.alert-learn {
  align-self: center;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  color: #6d4c00;
  text-decoration: none;
  border-bottom: 1px dashed #6d4c00;
  flex-shrink: 0;
}

/* ── Hero two-column ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy3) 100%);
  padding: 52px 24px 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  position: relative;
}
@media(max-width:760px){
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.hero-left h1 {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-left h1 span { color: var(--gold2); }
.hero-left > p {
  color: rgba(255,255,255,.62);
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 460px;
}

/* ── Enforcement notice ──────────────────────────────────────── */
.enforcement-notice {
  background: rgba(180,20,20,.08);
  border: 1.5px solid rgba(220,50,50,.4);
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 22px;
  transition: border-color .4s, background .4s;
}
.enforcement-notice.urgent {
  background: rgba(180,20,20,.15);
  border-color: #ef4444;
  animation: enf-pulse-bg 2s ease-in-out infinite;
}
@keyframes enf-pulse-bg {
  0%,100% { background: rgba(180,20,20,.12); }
  50%      { background: rgba(180,20,20,.22); }
}

.enf-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(220,38,38,.18);
  padding: 8px 14px;
  border-bottom: 1px solid rgba(220,50,50,.3);
}
.enf-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: pulse 1.4s ease-in-out infinite;
}
.enf-title {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #fca5a5;
  flex: 1;
}
.enf-case {
  font-family: 'Roboto Mono', monospace;
  font-size: 9.5px;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em;
}

.enf-body { padding: 14px; }
.enf-main {
  font-size: 12.5px;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Live countdown timer */
.enf-timer-wrap { margin-bottom: 14px; }
.enf-timer-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 7px;
}
.enf-timer {
  display: flex;
  align-items: center;
  gap: 4px;
}
.enf-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(220,50,50,.3);
  border-radius: 4px;
  padding: 6px 12px;
  min-width: 52px;
  line-height: 1;
}
.enf-unit span {
  font-family: 'Roboto Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
}
.enf-unit small {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,.35);
  margin-top: 4px;
  text-transform: uppercase;
}
.enf-colon {
  font-size: 22px;
  font-weight: 900;
  color: rgba(239,68,68,.5);
  margin-bottom: 14px;
  flex-shrink: 0;
}

/* Agent card */
.enf-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  padding: 10px 13px;
}
.enf-agent-avatar { font-size: 26px; flex-shrink: 0; }
.enf-agent-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: rgba(255,255,255,.35);
  margin-bottom: 3px;
}
.enf-agent-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.enf-agent-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #4ade80;
}
.enf-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

.enf-footer-note {
  font-size: 10.5px;
  color: rgba(255,255,255,.3);
  padding: 8px 14px 12px;
  line-height: 1.6;
  border-top: 1px solid rgba(220,50,50,.15);
}

/* Expired state */
.enforcement-notice.expired .enf-unit span { color: #6b7280; }
.enforcement-notice.expired .enf-pulse { background: #6b7280; animation: none; }

@media(max-width:480px) {
  .enf-unit { min-width: 42px; padding: 5px 8px; }
  .enf-unit span { font-size: 20px; }
  .enf-colon { font-size: 16px; }
}

/* Deadline box */
.deadline-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,168,76,.3);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 13px 16px;
  margin-bottom: 22px;
}
.deadline-icon { font-size: 22px; flex-shrink: 0; }
.deadline-body { flex: 1; line-height: 1.25; }
.deadline-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .10em; color: var(--gold); opacity: .7; }
.deadline-val { font-size: 14px; font-weight: 800; color: var(--white); font-family: 'Roboto Mono', monospace; }
.deadline-status {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  background: #2d8a4e;
  color: #fff;
  padding: 4px 9px;
  border-radius: 2px;
  white-space: nowrap;
}

/* CTA row */
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 20px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-secondary { background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: rgba(255,255,255,.8); }
.btn-secondary:hover { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-evite {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 20px; border-radius: 4px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; cursor: pointer; font-family: inherit;
  transition: all .2s; white-space: nowrap; border: none;
  background: #dc2626; color: #fff;
}
.btn-evite:hover { background: #b91c1c; transform: translateY(-1px); }
.cta-note {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
  max-width: 360px;
}

/* Search card */
.search-card {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,.25);
  position: relative;
}
.search-card-header { margin-bottom: 16px; }
.search-card-title { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.search-card-sub { font-size: 11px; color: var(--muted); letter-spacing: .05em; }
.search-or {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .08em;
  margin: 14px 0;
}
.wallet-connect-large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  margin-bottom: 12px;
}
.wallet-connect-large:hover { background: var(--navy2); }
.wallet-arrow { font-size: 16px; }
.search-legal { font-size: 10.5px; color: var(--muted); line-height: 1.6; text-align: center; }

/* Geo info block inside search card */
.search-geo-info {
  background: #f4f6f9;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.sgi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 11.5px;
}
.sgi-row + .sgi-row { border-top: 1px solid var(--border); }
.sgi-lbl {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sgi-val {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}

/* ── Exchange logos ───────────────────────────────────────────── */
.exchanges {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
}
.exchanges-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.exchanges-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.exchanges-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ex-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: .75;
  transition: opacity .2s;
  cursor: default;
}
.ex-logo:hover { opacity: 1; }
.ex-logo svg { width: 36px; height: 36px; border-radius: 7px; }
.ex-logo span { font-size: 9.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

/* ── Gold stat icon ──────────────────────────────────────────── */
.stat-icon.gold { background: #fef6e4; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 28px 24px 24px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-name { font-size: 13px; font-weight: 800; color: var(--navy); }
.footer-sub  { font-size: 10px; color: var(--muted); letter-spacing: .06em; margin-top: 2px; }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  width: 100%;
  justify-content: center;
}
.footer-links a {
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .04em;
}
.footer-links a:hover { color: var(--navy); }
.footer-legal {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
  max-width: 680px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — mobile-first
   Base styles = phones (≤480px). Scale up with min-width queries.
   ═══════════════════════════════════════════════════════════════ */

/* ── Global mobile base ───────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* ── IP bar: single scrollable line on mobile ─────────────────── */
.ip-bar-inner {
  padding: 5px 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 6px;
}
.ip-bar-inner::-webkit-scrollbar { display: none; }
.ip-bar-warn { display: none; }
#isp-display, #ip-name-sep, #ip-name-display { display: none !important; }

/* ── Top strip ────────────────────────────────────────────────── */
.top-strip-inner { padding: 5px 14px; }
.top-strip-right { display: none; }

/* ── Header ────────────────────────────────────────────────────── */
.header-inner  { height: auto; padding: 10px 14px; }
.oij-badge-img { width: 36px; height: 40px; }
.header-left   { gap: 10px; }
.header-title-main { font-size: 12px; }
.header-title-sub  { font-size: 8px; display: none; }
.case-indicator    { display: none; }
.connect-btn { padding: 8px 12px; font-size: 11px; letter-spacing: .04em; }

/* ── Alert notice ─────────────────────────────────────────────── */
.alert-inner { padding: 11px 14px; gap: 10px; }
.alert-icon  { font-size: 16px; }
.alert-body  { font-size: 12px; }
.alert-learn { display: none; }

/* ── Hero — single column on mobile ──────────────────────────── */
.hero { padding: 28px 14px 36px; }
.hero-inner {
  grid-template-columns: 1fr;
  gap: 24px;
}
.hero-right { order: -1; }  /* search card above text on mobile */
.hero-tag { font-size: 9px; padding: 4px 10px; margin-bottom: 14px; }
.hero-left h1 { font-size: clamp(20px, 7vw, 28px); margin-bottom: 10px; }
.hero-left > p { font-size: 13px; margin-bottom: 18px; }

/* ── Enforcement notice ───────────────────────────────────────── */
.enf-body { padding: 12px; }
.enf-main { font-size: 12px; margin-bottom: 12px; }
.enf-timer { gap: 3px; }
.enf-unit { min-width: 0; flex: 1; padding: 5px 4px; }
.enf-unit span { font-size: 22px; }
.enf-unit small { font-size: 7px; }
.enf-colon { font-size: 18px; margin-bottom: 12px; }
.enf-agent-avatar { font-size: 20px; }
.enf-agent-name { font-size: 12px; }

/* CTA row stacks on mobile */
.cta-row { flex-direction: column; gap: 8px; margin-bottom: 10px; }
.btn-primary, .btn-secondary, .btn-evite {
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  font-size: 12px;
}
.cta-note { font-size: 10.5px; }

/* ── Search card ──────────────────────────────────────────────── */
.search-card { padding: 16px 14px; border-radius: 6px; }
.search-card-title { font-size: 13px; }
.search-card-sub { font-size: 10px; }
#addr-input {
  font-size: 13px;
  padding: 14px 100px 14px 14px;
}
#addr-input::placeholder { font-size: 12px; }
.search-icon { display: none; }
#verify-btn { font-size: 11px; padding: 9px 12px; }
.wallet-connect-large { font-size: 12px; padding: 13px 14px; }

/* ── Exchanges — horizontal scroll on mobile ──────────────────── */
.exchanges { padding: 14px; overflow: hidden; }
.exchanges-inner { flex-direction: column; gap: 10px; }
.exchanges-label { font-size: 9.5px; }
.exchanges-logos {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 16px;
  padding-bottom: 4px;
  width: 100%;
}
.exchanges-logos::-webkit-scrollbar { display: none; }
.ex-logo { flex-shrink: 0; }
.ex-logo svg { width: 32px; height: 32px; }
.ex-logo span { font-size: 9px; }

/* ── Stats bar — 2×2 grid on mobile ──────────────────────────── */
.stats-inner { flex-wrap: wrap; padding: 0 14px; }
.stat {
  flex: 1 1 calc(50% - 1px);
  border-right: none;
  border-bottom: 1px solid var(--border);
  padding: 12px;
  gap: 8px;
}
.stat:nth-child(odd)  { border-right: 1px solid var(--border); }
.stat:nth-child(3),
.stat:nth-child(4)    { border-bottom: none; }
.stat-val  { font-size: 18px; }
.stat-lbl  { font-size: 9px; }
.stat-icon { width: 30px; height: 30px; font-size: 14px; }

/* ── Main result area ─────────────────────────────────────────── */
main { padding: 20px 14px 60px; }
.detail-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-card { padding: 12px 13px; }
.detail-card .val { font-size: 13px; }
.score-card { gap: 16px; padding: 16px; }
.score-card .ring-svg { width: 72px; height: 72px; }
.score-info h3 { font-size: 15px; }
.action-bar { flex-direction: column; gap: 6px; }
.action-btn { width: 100%; min-width: unset; }

/* ── Footer ───────────────────────────────────────────────────── */
footer { padding: 20px 14px; }
.footer-links { gap: 10px; }
.footer-links a { font-size: 10.5px; }
.footer-legal { font-size: 10px; }

/* ── Detail grid: single column below 360px ──────────────────── */
@media (max-width: 360px) {
  .detail-grid { grid-template-columns: 1fr; }
  .header-title-main { font-size: 11px; }
  .enf-unit span { font-size: 18px; }
}

/* ── Phablet 540px+ ───────────────────────────────────────────── */
@media (min-width: 540px) {
  .header-title-sub { display: block; }
  .alert-learn { display: inline; }
  .ip-bar-warn { display: block; }
  .enf-unit { min-width: 52px; padding: 6px 10px; }
  .enf-unit span { font-size: 26px; }
  #isp-display { display: inline !important; }
}

/* ── Tablet 768px+ ────────────────────────────────────────────── */
@media (min-width: 768px) {
  .ip-bar-inner { flex-wrap: wrap; overflow-x: visible; padding: 6px 24px; gap: 8px; }
  .ip-bar-warn  { display: block; }
  #ip-name-sep, #ip-name-display { display: inline !important; }

  .top-strip-inner { padding: 5px 24px; }
  .top-strip-right { display: block; }

  .header-inner  { height: 68px; padding: 0 24px; }
  .oij-badge-img { width: 44px; height: 50px; }
  .header-left   { gap: 14px; }
  .header-title-main { font-size: 14px; }
  .header-title-sub  { font-size: 9.5px; display: block; }
  .case-indicator    { display: flex; }
  .connect-btn { padding: 8px 18px; font-size: 12px; }

  .alert-inner { padding: 14px 24px; }
  .alert-body  { font-size: 13px; }

  .hero { padding: 44px 24px 52px; }
  .hero-inner { gap: 32px; }
  .hero-right { order: 0; }
  .hero-tag { font-size: 10.5px; padding: 5px 14px; margin-bottom: 18px; }
  .hero-left h1 { font-size: clamp(22px, 3.5vw, 32px); }
  .hero-left > p { font-size: 13.5px; }

  .enf-main { font-size: 12.5px; }

  .cta-row { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .btn-primary, .btn-secondary, .btn-evite { width: auto; }

  .search-card { padding: 24px; }
  #addr-input { font-size: 13.5px; padding: 15px 130px 15px 46px; }
  .search-icon { display: block; }

  .exchanges { padding: 18px 24px; }
  .exchanges-inner { flex-direction: row; gap: 24px; }
  .exchanges-logos { flex-wrap: wrap; overflow-x: visible; }
  .ex-logo svg { width: 36px; height: 36px; }

  .stats-inner { flex-wrap: nowrap; padding: 0 24px; }
  .stat { flex: 1; border-right: 1px solid var(--border); border-bottom: none; padding: 14px 16px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:last-child { border-right: none; border-bottom: none; }
  .stat-val { font-size: 20px; }
  .stat-icon { width: 36px; height: 36px; font-size: 17px; }

  main { padding: 32px 20px 80px; }
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .action-bar { flex-direction: row; }
  .action-btn { width: auto; min-width: 130px; }

  .score-card { gap: 24px; padding: 22px 24px; }
  .score-card .ring-svg { width: 90px; height: 90px; }

  footer { padding: 28px 24px; }
}

/* ── Two-column hero at 800px+ ────────────────────────────────── */
@media (min-width: 800px) {
  .hero-inner { grid-template-columns: 1fr 380px; }
}

/* ── Desktop 1024px+ ──────────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 420px; gap: 48px; }
  .hero-left h1 { font-size: clamp(26px, 3vw, 36px); }
}

/* ── Large 1200px+ ────────────────────────────────────────────── */
@media (min-width: 1200px) {
  .header-inner, .hero-inner, .exchanges-inner,
  .stats-inner, .footer-inner, .ip-bar-inner { max-width: 1140px; }
  main { max-width: 880px; }
}

/* ── Ultra-wide 1400px+ ───────────────────────────────────────── */
@media (min-width: 1400px) {
  .hero-inner { grid-template-columns: 1fr 460px; gap: 64px; }
  .hero-left h1 { font-size: 40px; }
}
