.av-faction-rate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  cursor: help;
}
.av-faction-rate-clan { background: #7e5834; color: #fff3db; border-color: #a98358; }
.av-faction-rate-master { background: #6c3a4c; color: #fff0dc; border-color: #95697a; }
.av-faction-rate > .bi, .av-faction-rate > svg { flex: none; width: 18px; height: 18px; font-size: 18px; line-height: 1; }
.av-faction-rate > strong { font-weight: 800; }
.av-cabinet .av-faction { min-width: 0; }
.av-cabinet .av-faction .card { overflow: visible; border-radius: 16px; }
.av-cabinet .av-faction .card-header { padding: 16px 22px; font-weight: 650; background: #f5e4c7; border-color: var(--av-border); }
.av-cabinet .av-faction .card-header:first-child { border-radius: 15px 15px 0 0; }
.av-cabinet .av-faction .card-body { padding: 22px; }
.av-cabinet .av-faction-master .card-body { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.av-cabinet .av-faction-eyebrow { display: block; color: var(--av-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.av-cabinet .av-faction-master h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--av-title); font-size: 26px; font-weight: 650; }
.av-cabinet .av-faction-master h2 img { image-rendering: pixelated; object-fit: contain; }
.av-cabinet .av-faction-master p { color: var(--av-muted); margin: 0; max-width: 32em; }
.av-cabinet .av-faction-picker { flex: 0 1 360px; min-width: 220px; }
.av-cabinet .av-faction-picker .form-label { font-size: 13px; color: var(--av-muted); }
.av-cabinet .av-faction-muted { color: var(--av-muted); font-size: 14px; }
.av-cabinet .av-faction-cashback-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.av-cabinet .av-faction-rates { font-size: 13px; color: var(--av-muted); font-weight: 500; }
.av-cabinet .av-faction-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.av-cabinet .av-faction-stats > div { padding: 16px; border: 1px solid #e8d5b4; border-radius: 12px; background: #fbefd9; }
.av-cabinet .av-faction-stats span, .av-cabinet .av-faction-stats small { display: block; color: var(--av-muted); font-size: 13px; }
.av-cabinet .av-faction-stats strong { display: block; margin: 4px 0; font-size: 24px; font-weight: 650; color: var(--av-title); overflow-wrap: anywhere; }
.av-cabinet .av-faction-stats .av-faction-available { background: #f0efd5; border-color: #d2d3a5; }
.av-cabinet .av-faction-available strong { color: #5b713d; }
.av-cabinet .av-faction-pending { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.av-cabinet .av-faction-pending p { white-space: pre-wrap; overflow-wrap: anywhere; }
.av-cabinet .av-faction-withdraw { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); gap: 16px; }
.av-cabinet .av-faction-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.av-cabinet .av-faction-withdraw > p { grid-column: 1 / -1; }
.av-cabinet .av-faction table th, .av-cabinet .av-faction table td { padding: 12px 22px; }
.av-cabinet .av-faction-empty { text-align: center; }
.av-cabinet .av-faction-empty .card-body { padding: 48px 28px; }
.av-cabinet .av-faction-empty-icon { display: block; font-size: 42px; color: #b08b52; margin-bottom: 16px; }
.av-cabinet .av-faction-empty h2 { color: var(--av-title); font-size: 23px; margin-bottom: 12px; }
.av-cabinet .av-faction-empty p { color: var(--av-muted); max-width: 36em; margin: 0 auto; }
@media (max-width: 900px) {
  .av-cabinet .av-faction-master .card-body { align-items: stretch; flex-direction: column; }
  .av-cabinet .av-faction-picker { flex-basis: auto; min-width: 0; }
  .av-cabinet .av-faction-picker .av-character-picker { max-width: none; }
}
@media (max-width: 560px) {
  .av-cabinet .av-faction .card-body { padding: 18px; }
  .av-cabinet .av-faction-stats, .av-cabinet .av-faction-withdraw { grid-template-columns: 1fr; }
  .av-cabinet .av-faction-stats > div { padding: 12px 16px; }
  .av-cabinet .av-faction-actions > .btn { width: 100%; }
  .av-cabinet .av-faction table th, .av-cabinet .av-faction table td { padding: 10px 14px; }
}
