/* ============================================================================
   SportMyLife — Wing #2 UFC · Tale of the Tape Modal & 159-Fighter Hall Luxury
   File: ufcModalLuxury.css (scoped strictly to #ufc-fighter-modal, #ufc-fighters
         and UFC-specific .ufc-shield-portrait — ZERO bleed into other wings!)
   Guarantees: 100% Law #17 feature preservation · 100% Law #18 capsule symmetry
               Dark & Light parity · LTR & RTL · 320px–1600px · Zero overflow
   ============================================================================ */

/* ============================================================================
   0. FOUNDATION & BOX-SIZING GUARD
   ============================================================================ */
html body #ufc-fighter-modal,
html body #ufc-fighter-modal *,
html body #ufc-fighter-modal *::before,
html body #ufc-fighter-modal *::after,
html body #ufc-fighters,
html body #ufc-fighters *,
html body #ufc-fighters *::before,
html body #ufc-fighters *::after {
  box-sizing: border-box;
}

/* ============================================================================
   1. MODAL BACKDROP & 3D OCTAGON BROADCAST DIALOG (#ufc-fighter-modal)
   ============================================================================ */
html body #ufc-fighter-modal.ufc-modal {
  position: fixed;
  inset: 0;
  z-index: 4400;
  display: grid;
  place-items: center;
  padding: 20px 16px;
}

html body #ufc-fighter-modal.ufc-modal[hidden] {
  display: none !important;
}

html body #ufc-fighter-modal .ufc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 25%, rgba(28, 8, 12, 0.72), rgba(4, 7, 12, 0.86));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-theme='light'] body #ufc-fighter-modal .ufc-modal-backdrop {
  background: radial-gradient(ellipse 80% 60% at 50% 25%, rgba(28, 12, 16, 0.44), rgba(10, 14, 23, 0.62));
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog.ufc-modal-dialog,
html[data-theme='dark'] body #ufc-fighter-modal #ufc-fighter-modal-dialog.ufc-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(790px, 100%);
  max-width: 100%;
  max-height: 91dvh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 22px;
  padding: 16px 20px 20px;
  background-color: #0b0f16;
  background-image:
    radial-gradient(ellipse 72% 38% at 12% 0%, rgba(220, 38, 38, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 62% 36% at 92% 4%, rgba(230, 196, 115, 0.14) 0%, transparent 60%),
    linear-gradient(172deg, #131823 0%, #0b0f16 54%, #080b11 100%);
  border: 1px solid rgba(230, 196, 115, 0.34);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.78),
    0 6px 24px rgba(185, 28, 28, 0.18),
    inset 0 1px 0 rgba(255, 248, 224, 0.20),
    inset 0 -1px 0 rgba(220, 38, 38, 0.18);
  color: #f4f5f0;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 196, 115, 0.42) transparent;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog.ufc-modal-dialog {
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 72% 34% at 12% 0%, rgba(185, 28, 28, 0.08) 0%, transparent 62%),
    radial-gradient(ellipse 62% 34% at 92% 4%, rgba(196, 146, 38, 0.10) 0%, transparent 60%),
    linear-gradient(172deg, #ffffff 0%, #faf8f4 58%, #f3f1ec 100%);
  border: 1px solid rgba(168, 122, 32, 0.32);
  box-shadow:
    0 28px 76px rgba(12, 18, 28, 0.28),
    0 4px 16px rgba(185, 28, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  color: #101622;
  scrollbar-color: rgba(168, 122, 32, 0.38) transparent;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog.ufc-modal-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(
    90deg,
    rgba(220, 38, 38, 0.16) 0%,
    #dc2626 22%,
    #f6dc93 50%,
    #dc2626 78%,
    rgba(220, 38, 38, 0.16) 100%
  );
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog::-webkit-scrollbar {
  width: 6px;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog::-webkit-scrollbar-track {
  background: transparent;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(230, 196, 115, 0.42);
  border-radius: 999px;
}

/* ============================================================================
   2. BROADCAST TOPBAR (.ufc-dossier-topbar) — SINGLE-LINE BADGE + STEPPER + X
   ============================================================================ */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(230, 196, 115, 0.20);
  min-width: 0;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-topbar {
  border-bottom-color: rgba(15, 23, 42, 0.10);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.22) 0%, rgba(230, 196, 115, 0.14) 100%);
  border: 1px solid rgba(230, 196, 115, 0.36);
  color: #fce7a2;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 248, 224, 0.16);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-topbar-badge {
  background: linear-gradient(135deg, #fff5f5 0%, #fdf6e4 100%);
  border-color: rgba(185, 28, 28, 0.28);
  color: #991b1b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 2px 6px rgba(185, 28, 28, 0.06);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-topbar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #ffd4d4 0%, #ef4444 55%, #b91c1c 100%);
  box-shadow: 0 0 0 2.5px rgba(239, 68, 68, 0.24), 0 0 10px rgba(239, 68, 68, 0.72);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-topbar-badge-txt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Clean Stepper Capsule: ‹ X / TOTAL › */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(230, 196, 115, 0.28);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.32);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-stepper {
  background: #f3f0e8;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stepper-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #f6dc93;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stepper-btn {
  color: #1e293b;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stepper-btn:hover {
  background: rgba(230, 196, 115, 0.20);
  color: #ffffff;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stepper-btn:hover {
  background: #ffffff;
  color: #b91c1c;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stepper-count {
  padding: 0 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
  white-space: nowrap;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stepper-count {
  color: #1e293b;
}

/* Distinct Elevated Circular Close Button ✕ */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-close-x {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 0 !important;
  background: linear-gradient(148deg, rgba(35, 42, 56, 0.96) 0%, rgba(16, 20, 29, 0.98) 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow:
    inset 0 0 0 1px rgba(230, 196, 115, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 6px 16px rgba(0, 0, 0, 0.42);
  transition: transform 0.16s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.16s ease;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-close-x {
  background: linear-gradient(148deg, #ffffff 0%, #f1ede4 100%);
  color: #1e293b;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 12px rgba(15, 23, 42, 0.12);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-close-x:hover {
  transform: scale(1.06);
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(254, 202, 202, 0.50),
    0 8px 20px rgba(220, 38, 38, 0.42);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-close-x:focus-visible,
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stepper-btn:focus-visible {
  outline: 2px solid #f6dc93;
  outline-offset: 2px;
}

/* ============================================================================
   3. OCTAGON HERO BANNER (.ufc-dossier-hero), PORTRAIT FRAME & 3D KPIs
   ============================================================================ */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-hero {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 16px 18px;
  margin: 0 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(230, 196, 115, 0.34);
  background-color: #111622;
  background-image:
    radial-gradient(ellipse 60% 90% at 8% 12%, rgba(220, 38, 38, 0.24) 0%, transparent 62%),
    radial-gradient(ellipse 58% 82% at 96% 8%, rgba(230, 196, 115, 0.18) 0%, transparent 60%),
    linear-gradient(142deg, rgba(22, 27, 40, 0.96) 0%, rgba(11, 15, 23, 0.98) 100%);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 248, 224, 0.18);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-hero.is-gold-tier {
  border-color: rgba(246, 220, 147, 0.48);
  background-image:
    radial-gradient(ellipse 62% 88% at 10% 10%, rgba(230, 196, 115, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 54% 82% at 94% 92%, rgba(220, 38, 38, 0.20) 0%, transparent 62%),
    linear-gradient(142deg, rgba(24, 26, 36, 0.96) 0%, rgba(11, 14, 22, 0.98) 100%);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-hero {
  background-color: #fbf9f4;
  background-image:
    radial-gradient(ellipse 60% 88% at 8% 10%, rgba(185, 28, 28, 0.10) 0%, transparent 62%),
    radial-gradient(ellipse 56% 80% at 94% 12%, rgba(196, 146, 38, 0.14) 0%, transparent 60%),
    linear-gradient(146deg, #ffffff 0%, #f9f5eb 58%, #f3eee3 100%);
  border-color: rgba(180, 130, 28, 0.30);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

/* Expressive 4:5 Portrait Frame: 124×155 Desktop */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-identity .ufc-portrait-frame,
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-identity .sml-passport-frame.is-modal {
  position: relative;
  width: 124px;
  height: 155px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(220, 38, 38, 0.65);
  background: radial-gradient(circle at 50% 24%, rgba(220, 38, 38, 0.28), #0d121c 84%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(230, 196, 115, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-identity .ufc-portrait-frame.is-gold-tier {
  border: 2px solid #f0c96f;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.50),
    0 0 22px rgba(230, 196, 115, 0.28),
    inset 0 1px 0 rgba(255, 252, 230, 0.42);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-identity .ufc-portrait-frame.is-gold-tier {
  border-color: #c8922c;
  box-shadow:
    0 12px 26px rgba(120, 82, 16, 0.22),
    0 0 0 2px rgba(246, 220, 147, 0.44);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-identity .ufc-modal-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  display: block;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-hero-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-name {
  margin: 0;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #ffffff;
  overflow-wrap: break-word;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-name {
  color: #0b1220;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-nick {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: #f6dc93;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-nick {
  color: #9a690d;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #cbd5e1;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-subline {
  color: #475569;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-country-code-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(230, 196, 115, 0.16);
  border: 1px solid rgba(230, 196, 115, 0.42);
  color: #fce7a2;
  line-height: 1.2;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-country-code-pill {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.18);
  color: #1e293b;
}

/* 3D KPI Capsules Row */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-kpis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
}

/* Metallic Gold Record Pill (Law #18 border: 0) */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-rec-pill,
html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-rec-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0 !important;
  background: linear-gradient(135deg, #fce9a8 0%, #e4b856 52%, #c48d29 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #12100a !important;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  line-height: 1;
  box-shadow:
    0 5px 14px rgba(196, 141, 41, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-finish-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-finish-pill strong {
  color: #f6dc93;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-finish-pill {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-finish-pill strong {
  color: #b91c1c;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-kpi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 0;
  background-origin: border-box;
  background-clip: border-box;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-kpi-badge.is-hof {
  background: linear-gradient(135deg, rgba(246, 220, 147, 0.24) 0%, rgba(180, 130, 28, 0.30) 100%);
  box-shadow: inset 0 0 0 1px rgba(246, 220, 147, 0.56);
  color: #fce7a2;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-kpi-badge.is-hof {
  background: linear-gradient(135deg, #fef9e7 0%, #f7e6b7 100%);
  box-shadow: inset 0 0 0 1px rgba(168, 114, 24, 0.44);
  color: #7c5309;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-kpi-badge.is-champ {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 12px rgba(220, 38, 38, 0.34);
  color: #ffffff;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-kpi-badge.is-star2026 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24) 0%, rgba(13, 148, 136, 0.26) 100%);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.52);
  color: #a7f3d0;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-kpi-badge.is-star2026 {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.36);
  color: #065f46;
}

/* ============================================================================
   4. PREMIUM 3D UFC OCTAGON CHAMPION MEDALLION SHIELD (.ufc-shield-portrait)
      Pure HTML/CSS Zero-404 Fallback when Fighter Has No Local .webp Portrait
   ============================================================================ */
.ufc-shield-portrait {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #0d121c;
  background-image:
    radial-gradient(circle at 50% 28%, var(--ufc-shield-accent, #d20a0a) 0%, rgba(18, 24, 36, 0.90) 64%, #080b12 100%);
  color: #ffffff;
  user-select: none;
}

.ufc-shield-portrait.is-gold-tier {
  background-image:
    radial-gradient(circle at 50% 24%, rgba(246, 220, 147, 0.42) 0%, var(--ufc-shield-accent, #b91c1c) 38%, rgba(15, 20, 30, 0.94) 76%, #080b11 100%);
}

.ufc-shield-oct {
  position: absolute;
  inset: 10%;
  clip-path: polygon(29% 0%, 71% 0%, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0% 71%, 0% 29%);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16) 0%, rgba(10, 14, 22, 0.72) 60%, rgba(230, 196, 115, 0.22) 100%);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.ufc-shield-portrait.is-gold-tier .ufc-shield-oct {
  background: linear-gradient(150deg, rgba(252, 231, 162, 0.28) 0%, rgba(12, 16, 26, 0.76) 54%, rgba(220, 38, 38, 0.26) 100%);
}

.ufc-shield-sheen {
  position: absolute;
  inset: -25%;
  background: linear-gradient(125deg, transparent 36%, rgba(255, 250, 230, 0.18) 50%, transparent 64%);
  pointer-events: none;
}

.ufc-shield-crown {
  position: absolute;
  top: 7px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 13px;
  line-height: 1;
  color: #fce7a2;
  text-shadow: 0 0 10px rgba(246, 220, 147, 0.85), 0 2px 4px rgba(0, 0, 0, 0.75);
}

html[dir='rtl'] .ufc-shield-crown {
  transform: translateX(50%);
}

.ufc-shield-portrait.is-card .ufc-shield-crown {
  top: 4px;
  font-size: 10px;
}

.ufc-shield-initials {
  position: relative;
  z-index: 3;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65), 0 0 18px rgba(230, 196, 115, 0.34);
}

.ufc-shield-portrait.is-modal .ufc-shield-initials {
  font-size: 38px;
}

.ufc-shield-portrait.is-card .ufc-shield-initials {
  font-size: 22px;
}

.ufc-shield-portrait.is-mini .ufc-shield-initials {
  font-size: 12px;
  letter-spacing: 0.03em;
}

.ufc-shield-cc {
  position: absolute;
  bottom: 7px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(8, 12, 19, 0.82);
  border: 1px solid rgba(246, 220, 147, 0.50);
  color: #fce7a2;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  white-space: nowrap;
}

html[dir='rtl'] .ufc-shield-cc {
  transform: translateX(50%);
}

.ufc-shield-portrait.is-card .ufc-shield-cc {
  bottom: 4px;
  padding: 1px 5px;
  font-size: 8px;
}

/* ============================================================================
   5. CHAMPIONSHIP TITLES RIBBON (.ufc-dossier-titles)
   ============================================================================ */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(145deg, rgba(230, 196, 115, 0.18) 0%, rgba(145, 102, 24, 0.24) 100%);
  background-origin: border-box;
  background-clip: border-box;
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.48),
    inset 0 1px 0 rgba(255, 250, 224, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.24);
  color: #fce7a2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 100%;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-title-badge {
  background: linear-gradient(145deg, #fffdf4 0%, #f6e7c1 100%);
  box-shadow:
    inset 0 0 0 1px rgba(168, 118, 24, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 3px 10px rgba(168, 118, 24, 0.10);
  color: #6e4806;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-title-trophy {
  flex-shrink: 0;
  font-size: 13px;
}

/* ============================================================================
   6. 3D WIN-SPLIT BAR + 3-COLUMN LEGEND (.ufc-win-split-wrap)
   ============================================================================ */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-win-split-wrap {
  margin-bottom: 14px;
  padding: 12px 13px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(20, 26, 38, 0.88) 0%, rgba(10, 14, 22, 0.96) 100%);
  border: 1px solid rgba(230, 196, 115, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.26);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-win-split-wrap {
  background: linear-gradient(160deg, #ffffff 0%, #f6f4ee 100%);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 6px 16px rgba(15, 23, 42, 0.05);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-win-split-bar {
  position: relative;
  display: flex;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 14, 0.72);
  margin-bottom: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.50);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-win-split-bar {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.14);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-win-split-bar::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, transparent 100%);
  pointer-events: none;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-win-split-bar > div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-win-split-bar .is-ko {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-win-split-bar .is-sub {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-win-split-bar .is-dec {
  background: linear-gradient(180deg, #eab949 0%, #a67411 100%);
  color: #161108;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* 3-Column Symmetrical Legend */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-win-split-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-split-leg-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11.5px;
  line-height: 1.2;
  text-align: center;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-split-leg-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.10);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-split-leg-item.is-ko .ufc-leg-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-split-leg-item.is-sub .ufc-leg-dot {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-split-leg-item.is-dec .ufc-leg-dot {
  background: #e6b94c;
  box-shadow: 0 0 8px rgba(230, 185, 76, 0.7);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-leg-lbl {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-leg-lbl {
  color: #475569;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-leg-val {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
  white-space: nowrap;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-leg-val {
  color: #0f172a;
}

/* ============================================================================
   7. SYMMETRICAL 8-CELL TALE OF THE TAPE GRID (.ufc-modal-stats)
   ============================================================================ */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin-bottom: 14px;
  width: 100%;
  min-width: 0;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stat-cell {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-height: 76px;
  min-width: 0;
  max-width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  background: linear-gradient(158deg, rgba(22, 28, 41, 0.92) 0%, rgba(12, 16, 25, 0.96) 100%);
  border: 1px solid rgba(230, 196, 115, 0.22);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 248, 224, 0.10);
  transition: border-color 0.18s ease, transform 0.16s ease;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stat-cell {
  background: linear-gradient(158deg, #ffffff 0%, #f6f4ee 100%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stat-cell::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.72) 0%, rgba(246, 220, 147, 0.88) 50%, rgba(220, 38, 38, 0.72) 100%);
  pointer-events: none;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stat-cell:hover {
  border-color: rgba(246, 220, 147, 0.48);
  transform: translateY(-1px);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stat-cell small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #e6c473;
  min-width: 0;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stat-cell small {
  color: #8f6210;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stat-cell small::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ef4444 0%, #f6dc93 100%);
  box-shadow: 0 0 6px rgba(230, 196, 115, 0.56);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stat-cell small::before {
  background: #b91c1c;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.14);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stat-cell strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.32;
  color: #f8fafc;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stat-cell strong {
  color: #0b1220;
}

/* ============================================================================
   8. SIGNATURE HIGHLIGHT, FULL CAREER STORY & HISTORICAL BOUTS
   ============================================================================ */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-caption-box.ufc-dossier-signature {
  margin: 0 0 14px;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid rgba(230, 196, 115, 0.28);
  border-inline-start: 4px solid #dc2626;
  background: linear-gradient(148deg, rgba(185, 28, 28, 0.14) 0%, rgba(230, 196, 115, 0.08) 54%, rgba(16, 21, 32, 0.90) 100%);
  font-size: 13.5px;
  line-height: 1.56;
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 248, 224, 0.10);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-caption-box.ufc-dossier-signature strong {
  color: #fce7a2;
  font-weight: 800;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-caption-box.ufc-dossier-signature {
  background: linear-gradient(148deg, #fff5f5 0%, #fdf8ec 100%);
  border-color: rgba(185, 28, 28, 0.22);
  border-inline-start-color: #b91c1c;
  color: #1e293b;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-caption-box.ufc-dossier-signature strong {
  color: #991b1b;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 9px;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f6dc93;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-section-head {
  color: #991b1b;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-sec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ef4444 0%, #f6dc93 100%);
  box-shadow: 0 0 8px rgba(230, 196, 115, 0.55);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-story {
  padding: 15px 17px;
  border-radius: 16px;
  border: 1px solid rgba(230, 196, 115, 0.22);
  border-inline-start: 3px solid #e6c473;
  background: linear-gradient(164deg, rgba(18, 24, 36, 0.86) 0%, rgba(11, 15, 24, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 248, 224, 0.08);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-story {
  background: linear-gradient(164deg, #ffffff 0%, #f8f5ee 100%);
  border-color: rgba(15, 23, 42, 0.11);
  border-inline-start-color: #b45309;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-story p {
  margin: 0 0 11px;
  font-size: 14px;
  line-height: 1.65;
  color: #e6ecf2;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-story p {
  color: #1e293b;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-story p:last-child {
  margin-bottom: 0;
}

/* Historical Bouts — Broadcast Fight Cards */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-bouts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(156deg, rgba(22, 29, 43, 0.88) 0%, rgba(12, 16, 25, 0.96) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.16s ease, transform 0.14s ease;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-history-row:hover {
  border-color: rgba(230, 196, 115, 0.36);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-history-row {
  background: linear-gradient(156deg, #ffffff 0%, #f6f4ee 100%);
  border-color: rgba(15, 23, 42, 0.11);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-history-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex-wrap: wrap;
}

/* 3D W / L / D Medallion */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-res {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  border: 0;
  background-origin: border-box;
  background-clip: border-box;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 3px 8px rgba(0, 0, 0, 0.28);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-res.is-win {
  background: linear-gradient(145deg, #22c55e 0%, #15803d 100%);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-res.is-loss {
  background: linear-gradient(145deg, #ef4444 0%, #b91c1c 100%);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-res.is-draw {
  background: linear-gradient(145deg, #f59e0b 0%, #b45309 100%);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-yr {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(230, 196, 115, 0.14);
  border: 1px solid rgba(230, 196, 115, 0.30);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f6dc93;
  flex-shrink: 0;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-yr {
  background: #fdf6e4;
  border-color: rgba(168, 118, 24, 0.30);
  color: #7c5309;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-opp-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  text-align: start;
  text-decoration: underline;
  text-decoration-color: rgba(246, 220, 147, 0.65);
  text-underline-offset: 3px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-opp-btn {
  color: #0b1220;
  text-decoration-color: rgba(185, 28, 28, 0.55);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-opp-btn:hover {
  color: #f6dc93;
  text-decoration-color: #f6dc93;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-opp-btn:hover {
  color: #b91c1c;
  text-decoration-color: #b91c1c;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-opp-plain {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-opp-plain {
  color: #0f172a;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-method {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  text-align: end;
  max-width: 52%;
  line-height: 1.3;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-method {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

/* ============================================================================
   9. SYMMETRICAL FOOTER + BOTTOM PREV/NEXT NAVIGATION (.ufc-dossier-footer)
   ============================================================================ */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid rgba(230, 196, 115, 0.22);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-footer {
  border-top-color: rgba(15, 23, 42, 0.11);
}

/* Row 1: Bottom Prev / Next 50/50 Symmetrical Bar */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  min-width: 0;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 0 !important;
  background: linear-gradient(155deg, rgba(28, 35, 50, 0.94) 0%, rgba(14, 18, 28, 0.98) 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #f6dc93;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(230, 196, 115, 0.36),
    inset 0 1px 0 rgba(255, 248, 224, 0.14),
    0 5px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.16s ease;
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-nav-btn {
  background: linear-gradient(155deg, #ffffff 0%, #f4f0e6 100%);
  color: #1e293b;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 3px 10px rgba(15, 23, 42, 0.06);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-nav-btn:hover {
  transform: translateY(-1.5px);
  background: linear-gradient(135deg, #fce7a2 0%, #d4a13c 100%);
  color: #12100a;
  box-shadow: 0 8px 18px rgba(212, 161, 60, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

/* Row 2: Symmetrical Action Capsules Grid */
html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-footer-actions {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-footer-actions.is-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-footer-actions.is-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-footer-actions.is-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 12px;
  border: 0 !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.16s ease, background 0.18s ease, color 0.16s ease;
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-btn:hover {
  transform: translateY(-1.5px);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-btn.is-crimson {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-btn.is-gold {
  background: linear-gradient(148deg, rgba(230, 196, 115, 0.22) 0%, rgba(154, 108, 22, 0.32) 100%);
  color: #fce7a2;
  box-shadow: inset 0 0 0 1px rgba(246, 220, 147, 0.52), 0 5px 14px rgba(0, 0, 0, 0.24);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-btn.is-gold {
  background: linear-gradient(148deg, #fffdf4 0%, #f6e7c1 100%);
  color: #78500a;
  box-shadow: inset 0 0 0 1px rgba(168, 118, 24, 0.42), 0 3px 10px rgba(168, 118, 24, 0.10);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-btn.is-tickets {
  background: linear-gradient(148deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  color: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-btn.is-tickets {
  background: linear-gradient(148deg, #ffffff 0%, #f1f5f9 100%);
  color: #1e293b;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.16);
}

html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-btn.is-close {
  background: linear-gradient(148deg, rgba(30, 38, 52, 0.92) 0%, rgba(16, 21, 32, 0.96) 100%);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.42);
}

html[data-theme='light'] body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-btn.is-close {
  background: linear-gradient(148deg, #fff5f5 0%, #fee2e2 100%);
  color: #991b1b;
  box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.34);
}

/* ============================================================================
   10. /ufc FIGHTERS HALL (#ufc-fighters) — 159+ ROSTER FILTERS, CARDS & PAGER
   ============================================================================ */
html body #ufc-fighters .ufc-legends-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 10px;
  min-width: 0;
}

html body #ufc-fighters .ufc-status-rail {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

html body #ufc-fighters .ufc-search-div-group {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 8px;
  flex: 1 1 360px;
  max-width: 540px;
  min-width: 0;
}

html body #ufc-fighters .ufc-search-input,
html body #ufc-fighters .ufc-div-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid rgba(230, 196, 115, 0.30);
  background: linear-gradient(160deg, rgba(16, 22, 34, 0.94) 0%, rgba(10, 14, 22, 0.98) 100%);
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

html[data-theme='light'] body #ufc-fighters .ufc-search-input,
html[data-theme='light'] body #ufc-fighters .ufc-div-select {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.18);
  color: #0b1220;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

html body #ufc-fighters .ufc-search-input:focus,
html body #ufc-fighters .ufc-div-select:focus {
  border-color: #f0c96f;
  box-shadow: 0 0 0 3px rgba(230, 196, 115, 0.22);
}

html[data-theme='light'] body #ufc-fighters .ufc-search-input:focus,
html[data-theme='light'] body #ufc-fighters .ufc-div-select:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.14);
}

html body #ufc-fighters .ufc-div-select option {
  background: #111824;
  color: #f8fafc;
}

html[data-theme='light'] body #ufc-fighters .ufc-div-select option {
  background: #ffffff;
  color: #0b1220;
}

/* Era Filter Row — 4 Symmetrical Pills */
html body #ufc-fighters .ufc-era-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  width: 100%;
  min-width: 0;
}

html body #ufc-fighters .ufc-era-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(158deg, rgba(20, 26, 38, 0.88) 0%, rgba(11, 15, 24, 0.96) 100%);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.22;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

html[data-theme='light'] body #ufc-fighters .ufc-era-pill-btn {
  background: linear-gradient(158deg, #ffffff 0%, #f5f3ed 100%);
  border-color: rgba(15, 23, 42, 0.14);
  color: #334155;
}

html body #ufc-fighters .ufc-era-pill-btn:hover:not(.is-active) {
  border-color: rgba(230, 196, 115, 0.52);
  color: #fce7a2;
  transform: translateY(-1px);
}

html[data-theme='light'] body #ufc-fighters .ufc-era-pill-btn:hover:not(.is-active) {
  border-color: rgba(185, 28, 28, 0.42);
  color: #991b1b;
}

html body #ufc-fighters .ufc-era-pill-btn.is-active,
html[data-theme='light'] body #ufc-fighters .ufc-era-pill-btn.is-active {
  border: 0 !important;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.62),
    0 6px 16px rgba(185, 28, 28, 0.32) !important;
}

/* Enhanced Fighter Cards in #ufc-fighters */
html body #ufc-fighters .ufc-fighter-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(158deg, rgba(18, 24, 36, 0.94) 0%, rgba(10, 14, 22, 0.98) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

html body #ufc-fighters .ufc-fighter-card.is-gold-card {
  border-color: rgba(230, 196, 115, 0.28);
}

html[data-theme='light'] body #ufc-fighters .ufc-fighter-card {
  background: linear-gradient(158deg, #ffffff 0%, #f8f6f0 100%);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

html body #ufc-fighters .ufc-fighter-card:hover {
  transform: translateY(-2.5px);
  border-color: rgba(246, 220, 147, 0.64);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36), 0 0 16px rgba(220, 38, 38, 0.14);
}

html[data-theme='light'] body #ufc-fighters .ufc-fighter-card:hover {
  border-color: #b91c1c;
  box-shadow: 0 12px 26px rgba(185, 28, 28, 0.12);
}

html body #ufc-fighters .ufc-fighter-card .ufc-portrait-frame.is-gold-tier {
  border-color: rgba(246, 220, 147, 0.72);
}

html body #ufc-fighters .ufc-card-cc {
  display: inline-block;
  margin-inline-end: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(230, 196, 115, 0.15);
  border: 1px solid rgba(230, 196, 115, 0.30);
  color: #f6dc93;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  vertical-align: middle;
}

html[data-theme='light'] body #ufc-fighters .ufc-card-cc {
  background: #f3f0e6;
  border-color: rgba(168, 118, 24, 0.28);
  color: #7c5309;
}

/* Centered Pagination / Load More Bar (.ufc-fighters-pager) */
html body #ufc-fighters .ufc-fighters-pager {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(230, 196, 115, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

html[data-theme='light'] body #ufc-fighters .ufc-fighters-pager {
  border-top-color: rgba(15, 23, 42, 0.10);
}

html body #ufc-fighters .ufc-pager-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(230, 196, 115, 0.24);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
}

html[data-theme='light'] body #ufc-fighters .ufc-pager-status {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: #334155;
}

html body #ufc-fighters .ufc-pager-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(460px, 100%);
  min-width: 0;
}

html body #ufc-fighters .ufc-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 13px;
  border: 0 !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.16s ease;
}

html body #ufc-fighters .ufc-pager-btn:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.06);
}

html body #ufc-fighters .ufc-pager-btn.is-more {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html body #ufc-fighters .ufc-pager-btn.is-all {
  background: linear-gradient(135deg, #fce9a8 0%, #e4b856 54%, #c48d29 100%);
  color: #12100a;
  box-shadow: 0 8px 20px rgba(196, 141, 41, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* ============================================================================
   11. RESPONSIVE BREAKPOINTS (960px · 720px · 639px · 440px · 360px) & RTL
   ============================================================================ */
@media (max-width: 960px) {
  html body #ufc-fighters .ufc-search-div-group {
    max-width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 720px) {
  html body #ufc-fighters .ufc-era-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  html body #ufc-fighters .ufc-search-div-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 639px) {
  html body #ufc-fighter-modal.ufc-modal {
    padding: 10px 8px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog.ufc-modal-dialog {
    padding: 13px 13px 16px;
    border-radius: 18px;
    max-height: 93dvh;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-hero {
    padding: 13px 12px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-identity {
    gap: 13px;
    align-items: flex-start;
  }

  /* Mobile Portrait: 104×130 */
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-identity .ufc-portrait-frame,
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-identity .sml-passport-frame.is-modal {
    width: 104px;
    height: 130px;
    border-radius: 14px;
  }

  .ufc-shield-portrait.is-modal .ufc-shield-initials {
    font-size: 32px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-name {
    font-size: 24px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-nick {
    font-size: 13.5px;
  }

  /* 8-Cell Tale of the Tape -> 2×4 Symmetrical Mobile Grid */
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stat-cell {
    min-height: 68px;
    padding: 10px 10px;
  }

  /* Broadcast Fight Card Mobile Stack */
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-history-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 10px 11px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-bout-method {
    max-width: 100%;
    text-align: start;
  }

  /* Symmetrical 2-Col Footer Actions (Zero Orphan Row!) */
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-footer-actions.is-cols-4,
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-footer-actions.is-cols-3,
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-footer-actions.is-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-footer-actions.is-cols-3 > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 440px) {
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-topbar {
    gap: 6px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-topbar-badge {
    padding: 0 9px;
    gap: 5px;
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stepper-btn {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stepper-count {
    padding: 0 4px;
    font-size: 10.5px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-close-x {
    width: 32px;
    height: 32px;
    font-size: 13.5px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-win-split-legend {
    gap: 5px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-split-leg-item {
    padding: 5px 4px;
    gap: 3px;
    flex-direction: column;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-leg-lbl {
    font-size: 9.5px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-leg-val {
    font-size: 10.5px;
  }

  html body #ufc-fighters .ufc-pager-actions {
    gap: 7px;
  }

  html body #ufc-fighters .ufc-pager-btn {
    min-height: 40px;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-topbar-badge {
    padding: 0 7px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-topbar-right {
    gap: 5px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-identity {
    gap: 10px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-dossier-name {
    font-size: 21px;
  }

  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-btn {
    padding: 0 7px;
    font-size: 11px;
  }

  html body #ufc-fighters .ufc-era-pill-btn {
    padding: 5px 6px;
    font-size: 11px;
  }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-win-split-bar > div,
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-stat-cell,
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-modal-close-x,
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-nav-btn,
  html body #ufc-fighter-modal #ufc-fighter-modal-dialog .ufc-foot-btn,
  html body #ufc-fighters .ufc-fighter-card,
  html body #ufc-fighters .ufc-pager-btn {
    transition: none !important;
  }
}
