/* ==========================================================================
   METAROAD.GG AION 2 BUILD PLANNER - PIXEL ACCURATE 1:1 IMPLEMENTATION
   ========================================================================== */

.metaroad-planner-root {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #090d14;
  background: radial-gradient(circle at 50% 0%, #111827 0%, #080c14 70%);
  border: 1px solid #1a2333;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  color: #e2e8f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
}

/* 1. TOP BUILD HEADER */
.mr-build-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: #0d121c;
  border: 1px solid #1c2637;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.mr-build-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.mr-build-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.mr-build-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
  background: #111827;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.mr-build-avatar-emblem {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0b0f19;
  border: 1.5px solid #d1b87a;
  padding: 2px;
  object-fit: contain;
}

.mr-build-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.mr-build-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mr-build-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.mr-build-edit-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.mr-build-edit-btn:hover {
  color: #38bdf8;
}

.mr-build-subtitle-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.mr-build-class-name {
  font-weight: 800;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mr-role-pill {
  font-size: 0.68rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.mr-role-pill.tank {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.mr-role-pill.dealer {
  color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.25);
}

.mr-role-pill.healer {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.25);
}

.mr-bullet {
  color: #475569;
}

.mr-weapon-tag {
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.mr-faction-tag {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  background: #162031;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  border: 1px solid #24344d;
}

.mr-faction-tag:hover {
  border-color: #38bdf8;
}

.mr-build-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.mr-tags-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.mr-tag-pill {
  font-size: 0.7rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mr-add-tag-btn {
  background: #141b27;
  border: 1px dashed #24344d;
  border-radius: 4px;
  color: #94a3b8;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mr-add-tag-btn:hover {
  background: #1a2538;
  color: #fff;
  border-color: #38bdf8;
}

.mr-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

/* Unified Theme-Adaptive Action Buttons */
.mr-header-actions .mr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.85rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  user-select: none;
  white-space: nowrap;
}

.mr-header-actions .mr-btn svg {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.mr-header-actions .mr-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mr-header-actions .mr-btn:hover svg {
  transform: scale(1.08);
}

.mr-header-actions .mr-btn:active {
  transform: translateY(0);
}

/* Distinctive yet unified button accents */
.mr-header-actions .mr-btn.primary {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.1));
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
}

.mr-header-actions .mr-btn.primary:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(14, 165, 233, 0.2));
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.mr-header-actions .mr-btn.preset {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(245, 158, 11, 0.08));
  border-color: rgba(212, 175, 55, 0.45);
  color: #fbbf24;
}

.mr-header-actions .mr-btn.preset:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(245, 158, 11, 0.18));
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.mr-header-actions .mr-btn.import {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
  border-color: rgba(99, 102, 241, 0.45);
  color: #a5b4fc;
}

.mr-header-actions .mr-btn.import:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
}

.mr-header-actions .mr-btn.publish {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.08));
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.mr-header-actions .mr-btn.publish:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.18));
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.mr-header-actions .mr-btn.clear {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.mr-header-actions .mr-btn.clear:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.3);
}

/* 2. CHOOSE CLASS ROW (8 CLASSES) */
.mr-choose-class-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #0b0f17;
  border: 1px solid #1a2333;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.mr-choose-class-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.mr-class-cards-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
}

@media (max-width: 1024px) {
  .mr-class-cards-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .mr-class-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mr-class-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #101622;
  border: 1px solid #1c2637;
  border-radius: 8px;
  padding: 0.65rem 0.4rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  min-height: 105px;
}

.mr-class-card:hover {
  background: #151e2e;
  border-color: #2e3e5c;
  transform: translateY(-2px);
}

.mr-class-card.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.14) 0%, rgba(13, 20, 32, 0.95) 100%);
  border: 1.5px solid #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.3), inset 0 0 12px rgba(56, 189, 248, 0.1);
}

.mr-class-card-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #090d14;
}

.mr-class-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.2s ease;
}

.mr-class-card:not(.active) .mr-class-card-img {
  filter: grayscale(80%) brightness(0.55);
}

.mr-class-card.active .mr-class-card-img {
  filter: brightness(1.05) contrast(1.05);
}

.mr-class-card-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #94a3b8;
  font-size: 0.75rem;
}

.mr-class-card.active .mr-class-card-lock {
  display: none;
}

.mr-class-card-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.mr-class-card.active .mr-class-card-name {
  color: #fff;
  font-weight: 800;
}

.mr-class-card-role {
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mr-class-card.active .mr-class-card-role {
  color: #38bdf8;
}

/* 3. MAIN WORKSPACE 2-COLUMN GRID (Paperdoll Stage + Live Stats Sidebar) */
.mr-workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1280px) {
  .mr-workspace-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 1rem;
  }
}

@media (max-width: 1024px) {
  .mr-workspace-layout {
    grid-template-columns: 1fr;
  }
}

/* 4. LEFT SIDEBAR MENU (Skin Collection, Pets, Wings, etc.) */
.mr-left-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mr-left-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d121c;
  border: 1px solid #1c2637;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mr-left-menu-item:hover {
  background: #141c2c;
  border-color: #2b3b55;
  transform: translateX(2px);
}

.mr-left-item-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.mr-left-item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}

.mr-left-menu-item:hover .mr-left-item-icon {
  color: #38bdf8;
}

.mr-left-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mr-left-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mr-left-item-desc {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mr-left-item-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.mr-left-item-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: #cbd5e1;
}

.mr-left-item-subval {
  font-size: 0.65rem;
  color: #64748b;
}

/* 5. CENTER WORKSPACE (Subtabs & Paperdoll) */
.mr-center-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.mr-center-subtabs-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #1c2637;
  gap: 1.5rem;
  padding-bottom: 0.2rem;
}

.mr-subtab-link {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0.2rem;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  position: relative;
}

.mr-subtab-link:hover {
  color: #fff;
}

.mr-subtab-link.active {
  color: #fff;
  border-bottom-color: #38bdf8;
}

.mr-subtab-badge {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 800;
}

/* 6. CENTER PAPERDOLL STAGE (23 SLOTS) */
.mr-paperdoll-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #090d15;
  background: radial-gradient(circle at 50% 45%, #131c2b 0%, #080c14 75%);
  border: 1px solid #182232;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  position: relative;
  min-height: 520px;
  width: 100%;
  box-sizing: border-box;
}

.mr-char-title-head {
  font-size: 1.3rem;
  font-weight: 800;
  color: #d1b87a;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 16px rgba(209, 184, 122, 0.4);
}

.mr-char-emblem-badge {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(209, 184, 122, 0.5));
  margin-bottom: 0.5rem;
}

.mr-paperdoll-columns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 860px;
  position: relative;
}

/* Slot Columns */
.mr-slots-dual-col {
  display: flex;
  gap: 0.5rem;
  z-index: 2;
  flex-shrink: 0;
}

.mr-slots-single-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mr-char-center-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 520px;
  width: 100%;
  min-height: 480px;
  z-index: 1;
}

.mr-char-big-img {
  max-height: 480px;
  max-width: 500px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.85));
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* The Square Slot Tile (QuestLog.gg Enlarged Full-Bleed Rarity Backdrops) */
.mr-slot-box {
  width: 100%;
  aspect-ratio: 1;
  background: #0f1522;
  border: 2px solid #1e293c;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.16s ease;
  user-select: none;
}

.mr-slot-box:not(.has-item):hover {
  background: #172133;
  border-color: #38bdf8;
  transform: scale(1.04);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  z-index: 10;
}

.mr-slot-box.has-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.mr-slot-box.has-item.special:hover,
.mr-slot-box.has-item.ancient:hover {
  border-color: #04ddd9 !important;
  box-shadow: 0 0 18px rgba(4, 221, 217, 0.8) !important;
}

.mr-slot-box.has-item.heroic:hover,
.mr-slot-box.has-item.mythic:hover,
.mr-slot-box.has-item.eternal:hover {
  border-color: #d21046 !important;
  box-shadow: 0 0 18px rgba(210, 16, 70, 0.8) !important;
}

.mr-slot-box.has-item.unique:hover,
.mr-slot-box.has-item.fabled:hover {
  border-color: #d3ad0f !important;
  box-shadow: 0 0 18px rgba(211, 173, 15, 0.8) !important;
}

.mr-slot-box.has-item.epic:hover,
.mr-slot-box.has-item.legend:hover {
  border-color: #1383b6 !important;
  box-shadow: 0 0 18px rgba(19, 131, 182, 0.8) !important;
}

.mr-slot-box.has-item.rare:hover,
.mr-slot-box.has-item.superior:hover {
  border-color: #498b35 !important;
  box-shadow: 0 0 18px rgba(73, 139, 53, 0.8) !important;
}

.mr-slot-box.has-item.common:hover {
  border-color: #808080 !important;
  box-shadow: 0 0 14px rgba(128, 128, 128, 0.6) !important;
}

.mr-slot-box.has-item {
  border-width: 2px !important;
  border-style: solid !important;
  background: #0a0f18;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.mr-slot-box.special,
.mr-slot-box.ancient {
  border-color: #04ddd9 !important;
  box-shadow: 0 0 12px rgba(4, 221, 217, 0.55) !important;
  background-image: url('img/rarity/bg_special.webp') !important;
}

.mr-slot-box.heroic,
.mr-slot-box.mythic,
.mr-slot-box.eternal {
  border-color: #d21046 !important;
  box-shadow: 0 0 12px rgba(210, 16, 70, 0.55) !important;
  background-image: url('img/rarity/bg_mythic.webp') !important;
}

.mr-slot-box.unique,
.mr-slot-box.fabled {
  border-color: #d3ad0f !important;
  box-shadow: 0 0 12px rgba(211, 173, 15, 0.55) !important;
  background-image: url('img/rarity/bg_fabled.webp') !important;
}

.mr-slot-box.epic,
.mr-slot-box.legend {
  border-color: #1383b6 !important;
  box-shadow: 0 0 12px rgba(19, 131, 182, 0.55) !important;
  background-image: url('img/rarity/bg_heroic.webp') !important;
}

.mr-slot-box.rare,
.mr-slot-box.superior {
  border-color: #498b35 !important;
  box-shadow: 0 0 12px rgba(73, 139, 53, 0.55) !important;
  background-image: url('img/rarity/bg_superior.webp') !important;
}

.mr-slot-box.common {
  border-color: #808080 !important;
  box-shadow: 0 0 10px rgba(128, 128, 128, 0.4) !important;
  background-image: url('img/rarity/bg_common.webp') !important;
}

.mr-slot-icon-img {
  width: 100%;
  height: 100%;
  padding: 2px;
  box-sizing: border-box;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.mr-slot-empty-silhouette {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.45;
  transition: all 0.2s ease;
}

.mr-slot-empty-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 2px;
  text-align: center;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.mr-slot-box:hover .mr-slot-empty-silhouette {
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}

.mr-slot-enchant-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace, sans-serif;
  color: #ffffff;
  background: rgba(9, 13, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.04rem 0.3rem;
  border-radius: 4px;
  line-height: 1.1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.75);
  z-index: 2;
}

.mr-slot-label-caption {
  font-size: 0.58rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
  text-align: center;
  max-width: 50px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 7. RIGHT SIDEBAR STATS PANEL */
.mr-right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  width: 100%;
}

.mr-stat-card {
  background: #0d121c;
  border: 1px solid #1c2637;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.mr-item-level-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mr-item-level-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mr-item-level-stars {
  font-size: 1.5rem;
  font-weight: 900;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mr-slots-filled-note {
  font-size: 0.75rem;
  color: #64748b;
}

/* Character Level Slider Box */
.mr-char-level-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mr-char-level-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mr-char-level-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}

.mr-char-level-badge {
  background: #162031;
  border: 1px solid #2a3b56;
  border-radius: 4px;
  padding: 0.15rem 0.6rem;
  color: #fde047;
  font-weight: 800;
  font-size: 0.88rem;
}

.mr-level-slider {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

.mr-level-cap-note {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.35;
}

/* Main Stats Table */
.mr-stat-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mr-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.mr-stat-line:last-child {
  border-bottom: none;
}

.mr-stat-line-label {
  color: #94a3b8;
}

.mr-stat-line-val {
  font-weight: 700;
  color: #fff;
}

.mr-stat-line-val.hp {
  color: #4ade80;
}

.mr-stat-line-val.atk {
  color: #f59e0b;
}

.mr-stat-line-val.def {
  color: #38bdf8;
}

.mr-stat-search-input {
  width: 100%;
  background: #090d14;
  border: 1px solid #1c2637;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  color: #fff;
  font-size: 0.78rem;
  outline: none;
}

.mr-stat-search-input:focus {
  border-color: #38bdf8;
}

/* 8. ITEM PICKER MODAL */
.mr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.mr-modal-dialog {
  background: #0d121c;
  border: 1px solid #233148;
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  animation: mrModalFadeIn 0.18s ease-out;
}

@keyframes mrModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #1c2638;
}

.mr-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.mr-modal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.mr-modal-close-btn:hover {
  color: #fff;
}

.mr-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Currently Equipped Box */
.mr-equipped-box {
  background: #111724;
  border: 1px solid #23324a;
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mr-equipped-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mr-unequip-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.mr-unequip-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.mr-modal-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mr-modal-search {
  width: 100%;
  background: #090d15;
  border: 1px solid #1c2638;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
}

.mr-modal-search:focus {
  border-color: #38bdf8;
}

.mr-rarity-filter-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mr-rarity-chip {
  background: #141b27;
  border: 1px solid #233148;
  color: #94a3b8;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s;
}

.mr-rarity-chip:hover {
  background: #1c2638;
  color: #fff;
}

.mr-rarity-chip.active {
  background: #38bdf8;
  color: #0b0f19;
  border-color: #38bdf8;
  font-weight: 800;
}

.mr-modal-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 380px;
  overflow-y: auto;
}

.mr-modal-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #101622;
  border: 1px solid #1c2638;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  transition: all 0.15s;
}

.mr-modal-item-card:hover {
  background: #162030;
  border-color: #38bdf8;
}

.mr-modal-item-card.is-equipped {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.mr-modal-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mr-modal-item-info {
  display: flex;
  flex-direction: column;
}

.mr-modal-item-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.mr-modal-item-stats {
  font-size: 0.72rem;
  color: #94a3b8;
}

.mr-modal-item-set {
  font-size: 0.68rem;
  color: #d1b87a;
  font-weight: 700;
}

.mr-equip-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.mr-equip-btn:hover {
  background: #38bdf8;
  color: #0b0f19;
  border-color: #38bdf8;
}

/* Secondary Systems Modal Dialog */
.mr-secondary-modal {
  background: #0d121c;
  border: 1px solid #233148;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   COMMUNITY BUILDS MODULE (MODUL A) - GAMERS4LIFE STYLING
   ========================================================================== */

.community-builds-root {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #e2e8f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cb-hero-header {
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0d121c 80%);
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cb-hero-left h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cb-hero-left p {
  color: #94a3b8;
  font-size: 0.92rem;
  max-width: 650px;
  line-height: 1.5;
  margin: 0;
}

.cb-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.cb-btn.primary {
  background: linear-gradient(135deg, #d4af37, #f59e0b);
  color: #0b0f19;
  border-color: #fbbf24;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.cb-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.cb-btn.secondary {
  background: #162032;
  border-color: #27354a;
  color: #e2e8f0;
}

.cb-btn.secondary:hover {
  background: #1e2d44;
  border-color: #3b82f6;
  color: #fff;
}

/* Search and Filters */
.cb-search-bar {
  position: relative;
  width: 100%;
}

.cb-search-input {
  width: 100%;
  background: #0b0f19;
  border: 1px solid #1f2a3e;
  border-radius: 10px;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.cb-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.cb-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

/* Class Filter Bar */
.cb-classes-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.cb-class-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: #0e1420;
  border: 1px solid #1e283a;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.cb-class-pill img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
}

.cb-class-pill:hover {
  border-color: #334155;
  color: #fff;
}

.cb-class-pill.active {
  background: #172338;
  border-color: #d4af37;
  color: #fff;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

/* Secondary Filter Rows */
.cb-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #090d15;
  border: 1px solid #172030;
  border-radius: 10px;
}

.cb-filter-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}

.cb-chip {
  padding: 0.35rem 0.75rem;
  background: #111726;
  border: 1px solid #1d283c;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.cb-chip:hover {
  border-color: #3b82f6;
  color: #fff;
}

.cb-chip.active {
  background: #1e3a5f;
  border-color: #38bdf8;
  color: #38bdf8;
}

/* View Sub-Tabs & Sorting Bar */
.cb-views-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid #1c2637;
  padding-bottom: 0.75rem;
}

.cb-views-tabs {
  display: flex;
  gap: 0.5rem;
}

.cb-view-tab {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.cb-view-tab:hover {
  color: #fff;
}

.cb-view-tab.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.cb-sort-select {
  background: #0e1420;
  border: 1px solid #1e283a;
  border-radius: 6px;
  color: #e2e8f0;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

/* Community Build Cards Grid */
.cb-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.cb-card {
  background: #0d121c;
  border: 1px solid #1c2637;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cb-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.cb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cb-card-class-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cb-card-class-badge img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.cb-card-class-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.cb-card-role-pills {
  display: flex;
  gap: 0.35rem;
}

.cb-mode-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.cb-mode-badge.pve {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.cb-mode-badge.pvp {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cb-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

.cb-card-meta {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cb-card-meta strong {
  color: #94a3b8;
}

.cb-card-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.cb-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cb-tag-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: #111726;
  border: 1px solid #1a253a;
  color: #94a3b8;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.cb-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #182232;
  padding-top: 0.75rem;
  margin-top: auto;
}

.cb-card-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: #64748b;
}

.cb-like-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  transition: all 0.15s;
}

.cb-like-btn:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
}

.cb-like-btn.liked {
  color: #f43f5e;
}

.cb-open-btn {
  background: #172439;
  border: 1px solid #283a54;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.cb-open-btn:hover {
  background: #38bdf8;
  color: #0b0f19;
  border-color: #38bdf8;
}

/* Modals (Detail & Publish) */
.cb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.cb-modal-dialog {
  background: #0d121c;
  border: 1px solid #233148;
  border-radius: 14px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.cb-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #1c2637;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cb-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 10-Slot Quickbar Component */
.mr-quickbar-container {
  background: #090d16;
  border: 1px solid #1c2637;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

.mr-quickbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.mr-quickbar-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mr-quickbar-grid {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.mr-quickbar-slot {
  width: 52px;
  height: 52px;
  background: #111726;
  border: 1px solid #223048;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.mr-quickbar-slot:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.mr-quickbar-key {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #d4af37;
  font-family: monospace;
}

.mr-quickbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.mr-quickbar-empty {
  font-size: 0.75rem;
  color: #475569;
}

/* Setup Audit & Delta Table */
.mr-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.mr-audit-table th {
  text-align: left;
  padding: 0.45rem 0.5rem;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  border-bottom: 1px solid #1c2637;
}

.mr-audit-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #141b27;
  color: #e2e8f0;
}

.mr-delta-pos {
  color: #4ade80;
  font-weight: 700;
}

.mr-delta-neg {
  color: #f87171;
  font-weight: 700;
}

.mr-delta-zero {
  color: #64748b;
}

/* Damage Simulation & PvE/PvP Controls */
.mr-sim-panel {
  background: #090d16;
  border: 1px solid #1c2637;
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.mr-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mr-sim-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fde047;
}

.mr-switch-group {
  display: flex;
  background: #111726;
  border: 1px solid #1e2a3e;
  border-radius: 6px;
  padding: 2px;
}

.mr-switch-btn {
  padding: 0.25rem 0.65rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
}

.mr-switch-btn.active {
  background: #38bdf8;
  color: #090d16;
}


/* ==========================================================================
   COMMUNITY BUILDS MODAL & SOULBINDING COMPONENTS (Dark Mode Default)
   ========================================================================== */
.cb-modal-action-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  background: #111726;
  border: 1px solid #1e283a;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
}

.cb-modal-views {
  font-size: 0.8rem;
  color: #64748b;
  margin-left: auto;
}

.cb-modal-section {
  background: #090d16;
  border: 1px solid #172030;
  border-radius: 8px;
  padding: 1rem;
}

.cb-modal-section h4 {
  color: #d4af37;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.cb-modal-desc p {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.cb-soulbinding-card {
  background: #0e1017;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.12);
}

.cb-sb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cb-sb-header h4 {
  color: #c084fc;
  font-size: 1.05rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cb-sb-rarity-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 980px;
  background: rgba(192, 132, 252, 0.15);
  color: #e9d5ff;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.cb-sb-overview {
  color: #cbd5e1;
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.cb-sb-priorities-block {
  margin-bottom: 1rem;
}

.cb-sb-priorities-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a855f7;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.cb-sb-priorities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cb-sb-prio-pill {
  background: rgba(168, 85, 247, 0.16);
  color: #f3e8ff;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.cb-sb-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.cb-sb-slot-card {
  background: #131826;
  border: 1px solid #1f293d;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.cb-sb-slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.cb-sb-slot-header strong {
  font-size: 0.82rem;
  color: #e2e8f0;
}

.cb-sb-slot-prio {
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.cb-sb-slot-prio.is-bis {
  color: #38bdf8;
}

.cb-sb-slot-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.cb-sb-stat-pill {
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
}

.cb-sb-tip-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.cb-sb-tip-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.cb-sb-tip-content {
  font-size: 0.8rem;
  color: #fde68a;
  line-height: 1.45;
}

.cb-sb-tip-content strong {
  color: #fbbf24;
}

.cb-modal-guide h4 {
  color: #38bdf8;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.cb-modal-guide-text {
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.cb-modal-video h4 {
  color: #f43f5e;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.cb-video-link {
  color: #38bdf8;
  font-size: 0.85rem;
  text-decoration: underline;
}

.cb-comment-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cb-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 220px;
  overflow-y: auto;
}

.cb-comments-empty {
  font-size: 0.8rem;
  color: #64748b;
}

.cb-comment-item {
  background: #111726;
  border: 1px solid #1c2637;
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
}

.cb-comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.cb-comment-header strong {
  color: #38bdf8;
}

.cb-comment-text {
  font-size: 0.82rem;
  color: #e2e8f0;
}


/* Attached Community Build Info Panel underneath Paperdoll */
.mr-attached-build-panel {
  margin-top: 1.5rem;
  background: var(--bg-card, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  animation: mrFadeIn 0.3s ease;
}

.mr-attached-build-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.mr-attached-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mr-attached-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.mr-attached-creator {
  font-size: 0.85rem;
  color: var(--text-dim, #94a3b8);
}

.mr-attached-creator strong {
  color: var(--text-main, #ffffff);
}

.mr-attached-actions-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mr-attached-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main, #ffffff);
}


/* ==========================================================================
   QUESTLOG.GG-STYLE HIGH-DENSITY MMORPG PRO HUD LAYOUT
   ========================================================================== */

/* Compact Class Quick-Switch Pill Bar */
.mr-class-pills-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.35rem 0.5rem;
  background: #0b101b;
  border: 1px solid #1c2637;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.mr-class-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.mr-class-pill-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

.mr-class-pill-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-weight: 700;
}

.mr-class-pill-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #38bdf8;
}

/* 4-Column High-Density Grid (Spacious Full-Width Layout) */
.mr-questlog-grid {
  display: grid;
  grid-template-columns: 215px 175px minmax(580px, 1fr) 300px;
  gap: 1.1rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 1480px) {
  .mr-questlog-grid {
    grid-template-columns: 200px 170px minmax(460px, 1fr) 280px;
    gap: 0.9rem;
  }
}

@media (max-width: 1240px) {
  .mr-questlog-grid {
    grid-template-columns: 190px 165px 1fr 265px;
    gap: 0.75rem;
  }
}

@media (max-width: 1050px) {
  .mr-questlog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .mr-questlog-grid {
    grid-template-columns: 1fr;
  }
}

/* Col 1: Subsystems & Builds Card */
.mr-subsystem-card {
  background: #0d121c;
  border: 1px solid #1c2637;
  border-radius: 8px;
  padding: 0.65rem;
  margin-bottom: 0.75rem;
}

.mr-subsystem-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mr-subsystem-row:last-child {
  border-bottom: none;
}

.mr-subsystem-row:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
}

.mr-subsystem-lbl {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.mr-subsystem-val {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 700;
}

.mr-subsystem-row:hover .mr-subsystem-val {
  color: #38bdf8;
}

.mr-builds-tree-card {
  background: #0d121c;
  border: 1px solid #1c2637;
  border-radius: 8px;
  padding: 0.65rem;
}

.mr-build-preset-item {
  background: #090d16;
  border: 1px solid #1c2637;
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mr-build-preset-item:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
}

.mr-build-preset-item.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

.mr-tag-mini {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.mr-tag-mini.pve {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.mr-tag-mini.pvp {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.mr-tag-mini.dps {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Col 2: Compact Equipment Column */
.mr-equipment-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mr-equip-group {
  background: #0d121c;
  border: 1px solid #1c2637;
  border-radius: 8px;
  padding: 0.55rem 0.5rem;
}

.mr-equip-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
  padding-left: 0.15rem;
}

.mr-equip-group-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* Col 3: Center Workspace */
.mr-workspace-col {
  min-width: 0;
}

.mr-workspace-tabs {
  display: flex;
  gap: 0.35rem;
  background: #0d121c;
  border: 1px solid #1c2637;
  border-radius: 8px;
  padding: 0.35rem;
  margin-bottom: 0.85rem;
  overflow-x: auto;
}

.mr-workspace-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mr-workspace-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.mr-workspace-tab-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

/* Col 4: Right Live Stats Column */
.mr-stats-search-input {
  width: 100%;
  box-sizing: border-box;
  background: #090d16;
  border: 1px solid #1c2637;
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  color: #f8fafc;
  outline: none;
  margin-bottom: 0.6rem;
  transition: border-color 0.15s;
}

.mr-stats-search-input:focus {
  border-color: #38bdf8;
}