/* ============================================================
   ONYX — Badge system
   Three completely distinct visual languages so credibility,
   promotion, and warning can never be confused.
   ============================================================ */

/* ---------- CREDIBILITY (earned, never sold) ----------
   Metallic seal. Hexagonal silhouette. Score is part of it.
   These should feel like NFT achievement traits.
*/

.cred-badge {
  --ring-1: var(--tier-certified-1);
  --ring-2: var(--tier-certified-2);
  --ring-3: var(--tier-certified-3);
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)) ,
    linear-gradient(180deg, var(--bg-300), var(--bg-200));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-100);
  white-space: nowrap;
  position: relative;
}
.cred-badge.cred-certified { --ring-1: var(--tier-certified-1); --ring-2: var(--tier-certified-2); --ring-3: var(--tier-certified-3); }
.cred-badge.cred-verified  { --ring-1: var(--tier-verified-1);  --ring-2: var(--tier-verified-2);  --ring-3: var(--tier-verified-3); }
.cred-badge.cred-listed    { --ring-1: var(--tier-listed-1);    --ring-2: var(--tier-listed-2);    --ring-3: var(--tier-listed-3); }
.cred-badge.cred-provisional {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-300);
  color: var(--text-300);
}

/* the hex seal: a CSS hexagon with metallic gradient */
.cred-seal {
  width: 24px;
  height: 28px;
  position: relative;
  display: inline-grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(255,255,255,0.55), transparent 55%),
    linear-gradient(160deg, var(--ring-1) 0%, var(--ring-2) 55%, var(--ring-3) 100%);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10.5px;
  color: rgba(0,0,0,0.78);
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
/* inner ring etch */
.cred-seal::before {
  content: "";
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(0,0,0,0.18));
  z-index: 0;
}
.cred-seal > * { position: relative; z-index: 1; }

.cred-provisional .cred-seal {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-300);
  color: var(--text-300);
}
.cred-provisional .cred-seal::before { display: none; }

/* score number visible inside the badge body */
.cred-score {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--text-100);
}
.cred-score .label {
  color: var(--text-300);
  font-size: 11px;
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Large variant — page-hero use */
.cred-badge.lg { padding: 10px 18px 10px 10px; gap: 14px; }
.cred-badge.lg .cred-seal { width: 36px; height: 42px; font-size: 13.5px; }
.cred-badge.lg .cred-score { font-size: 16px; }

/* ---------- PROMOTIONAL (paid, always labeled "Sponsored") ----------
   Flat, pill, slightly translucent. Includes mandatory "SPONSORED" tag.
*/

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--r-full);
  background: var(--bg-300);
  box-shadow: inset 0 0 0 1px var(--line-200);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-200);
  white-space: nowrap;
}
.promo-badge .promo-dot {
  width: 18px; height: 18px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #0A0A0F;
}
.promo-badge .promo-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--text-400);
  border-left: 1px solid var(--line-200);
  padding-left: 8px;
  margin-left: 2px;
}

.promo-trending  .promo-dot { background: #6FA8FF; }
.promo-new       .promo-dot { background: #5CE3A1; }
.promo-hot       .promo-dot { background: #FF8A4C; }

/* ---------- WARNING (editorial, never sold) ----------
   Triangle iconography. Red signal. Distinct from credibility & promo.
*/

.warn-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  background: var(--neg-dim);
  color: var(--neg);
  border-radius: var(--r-4);
  box-shadow: inset 0 0 0 1px var(--neg-line);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.warn-badge .tri {
  width: 12px; height: 12px;
  display: inline-block;
}
.warn-badge.warn-investigating {
  background: var(--warn-dim);
  color: var(--warn);
  box-shadow: inset 0 0 0 1px var(--warn-line);
}
.warn-badge.warn-removed {
  background: transparent;
  color: var(--text-400);
  box-shadow: inset 0 0 0 1px var(--line-300);
  text-decoration: line-through;
  text-decoration-color: var(--neg);
  text-decoration-thickness: 1.5px;
}

/* ============================================================
   Chips / category / chain
   ============================================================ */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--bg-300);
  box-shadow: inset 0 0 0 1px var(--line-100);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-200);
  text-transform: uppercase;
}
.chip.solid { background: var(--bg-400); color: var(--text-100); }
.chip.ghost { background: transparent; }

/* tiny chain dot */
.chain {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-200);
}
.chain .dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.chain-eth  .dot { background: linear-gradient(180deg, #8C8EE6, #4F5BD5); }
.chain-sol  .dot { background: linear-gradient(180deg, #9945FF, #14F195); }
.chain-base .dot { background: #0052FF; }
.chain-arb  .dot { background: linear-gradient(180deg, #28A0F0, #1A6FB5); }
.chain-bnb  .dot { background: #F0B90B; }
.chain-op   .dot { background: #FF0420; }
.chain-poly .dot { background: #8247E5; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  padding: 12px 14px;
  border-radius: var(--r-8);
  background: var(--bg-300);
  box-shadow: inset 0 0 0 1px var(--line-200);
  color: var(--text-100);
  font: 500 13.5px/1 var(--font-sans);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: 80ms ease;
  border: 0;
}
.btn:hover { background: var(--bg-400); box-shadow: inset 0 0 0 1px var(--line-300); }
.btn.sm { padding: 9px 12px; font-size: 12.5px; border-radius: var(--r-6); }
.btn.lg { padding: 15px 18px; font-size: 14.5px; }

/* comfortable touch heights on small screens */
@media (max-width: 720px) {
  .btn { padding: 12px 16px; }
  .btn.sm { padding: 11px 14px; font-size: 13px; border-radius: var(--r-8); }
  .btn.lg { padding: 14px 20px; }
}

.btn.primary {
  background: var(--accent);
  color: #0A0A0F;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 10px 30px -16px rgba(245,181,68,0.6);
  font-weight: 600;
}
.btn.primary:hover { background: var(--accent-hi); }

.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-200); }
.btn.ghost:hover { background: var(--bg-200); }

.btn.link { background: transparent; box-shadow: none; padding-left: 0; padding-right: 0; color: var(--text-200); }
.btn.link:hover { color: var(--text-100); }

/* wallet connect — distinctive */
.btn.wallet {
  background: var(--bg-300);
  box-shadow: inset 0 0 0 1px var(--line-200);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.btn.wallet.connected {
  background: var(--bg-200);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--accent-hi);
}
.btn.wallet .pulse {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--pos);
  box-shadow: 0 0 0 4px var(--pos-dim);
}

/* ============================================================
   Cards / surfaces
   ============================================================ */

.card {
  background: var(--bg-200);
  border-radius: var(--r-12);
  box-shadow: inset 0 0 0 1px var(--line-100);
  padding: 20px;
}
.card.elevated {
  background: var(--bg-300);
  box-shadow: inset 0 0 0 1px var(--line-200), var(--shadow-card);
}
.card.flush { padding: 0; overflow: hidden; }

/* ============================================================
   Score visual
   ============================================================ */

.score-display {
  font-family: var(--font-mono);
  font-weight: 600;
  font-feature-settings: "tnum", "zero", "ss01";
  letter-spacing: -0.02em;
  color: var(--text-100);
  line-height: 1;
}
.score-display .denom {
  color: var(--text-400);
  font-weight: 400;
}

/* ============================================================
   Address / hash component
   ============================================================ */

.addr {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-200);
  padding: 3px 8px;
  border-radius: var(--r-6);
  background: var(--bg-300);
  box-shadow: inset 0 0 0 1px var(--line-100);
}
.addr .copy {
  cursor: pointer; opacity: 0.55; transition: 100ms;
  width: 12px; height: 12px;
}
.addr:hover .copy { opacity: 1; }
.addr .ext { opacity: 0.55; width: 12px; height: 12px; cursor: pointer; }

/* ============================================================
   Sparkline + bar
   ============================================================ */
.spark { display: inline-block; vertical-align: middle; }

.progress-track {
  height: 4px; border-radius: 4px;
  background: var(--bg-300);
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

/* ============================================================
   Banner placement (paid · always labeled · never on ratings,
   methodology, watchlist, or disclosure surfaces)
   ============================================================ */

.pb-banner { max-width: 1440px; margin: 48px auto; padding: 0 32px; }
.pb-banner .pb-frame {
  border-radius: var(--r-12);
  box-shadow: inset 0 0 0 1px var(--line-200);
  background: var(--bg-100);
  overflow: hidden;
}
.pb-banner .pb-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 16px;
  border-bottom: 1px solid var(--line-100);
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-400);
}
.pb-banner .pb-meta a { color: var(--text-400); }
.pb-banner .pb-meta a:hover { color: var(--text-200); }
.pb-banner .pb-creative {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 28px;
}
.pb-banner .pb-creative .pb-logo {
  width: 52px; height: 52px; border-radius: var(--r-12);
  display: grid; place-items: center; flex: none;
  font-family: var(--font-mono); font-weight: 600; color: #fff; font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.pb-banner .pb-creative .pb-copy { min-width: 0; }
.pb-banner .pb-creative .pb-head { font-size: 17px; font-weight: 500; letter-spacing: -0.010em; }
.pb-banner .pb-creative .pb-sub { font-size: 13px; color: var(--text-300); margin-top: 4px; line-height: 1.5; }
.pb-banner .pb-creative .pb-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; }

