/* ===== Asset icons (icons.js) and UI icon helpers ===== */
.ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  vertical-align: middle;
}
/* Flags are 3:2-ish images; cropped into a circle they read as icons and
   line up with the round crypto logos. */
.ai-flag {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.ai-round { border-radius: 50%; object-fit: contain; }
.ai-badge {
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #0e7490);
  color: #fff;
  font: 800 9px/1 'Vazirmatn', system-ui, sans-serif;
  letter-spacing: 0.02em;
  direction: ltr;
}
.ai-badge.ai-crypto { background: linear-gradient(135deg, #f59e0b, #b45309); }
.ai-badge.ai-metal { background: linear-gradient(135deg, #fbbf24, #b45309); font-size: 13px; }
.ai.sm { width: 20px; height: 20px; }
.ai.sm.ai-badge { font-size: 7px; }
.ai.sm.ai-metal { font-size: 10px; }
.ai.lg { width: 40px; height: 40px; }
.ai.lg.ai-badge { font-size: 11px; }
.ai.lg.ai-metal { font-size: 18px; }

/* Font Awesome glyphs used in place of emoji next to text. */
.ui-ic { display: inline-block; width: 1.15em; text-align: center; margin-inline-end: 0.15em; opacity: 0.9; }
