/* ── Section intro ───────────────────────────────── */
.section-intro-block {
  background: rgba(13,13,34,0.7);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  clip-path: polygon(0 0,calc(100% - 20px) 0,100% 20px,100% 100%,0 100%);
  position: relative;
  overflow: hidden;
}
.section-intro-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.section-intro-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.section-intro-line {
  width: 6px;
  height: 3.5rem;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}
.section-intro-title {
  font-family: 'Orbitron', monospace;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 12px rgba(0,229,255,0.3);
  line-height: 1.1;
}
.section-intro-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  color: #c0c0e0;
  line-height: 1.6;
  letter-spacing: 0.5px;
  max-width: 700px;
}

/* ── Main 3-column layout ────────────────────────── */
.br-mods-layout {
  display: grid;
  grid-template-columns: 210px 320px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

/* ── Left list ───────────────────────────────────── */
.br-mods-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,229,255,0.3) transparent;
}
.br-mods-list::-webkit-scrollbar { width: 3px; }
.br-mods-list::-webkit-scrollbar-thumb { background: rgba(0,229,255,0.3); border-radius: 2px; }

.br-mod-listitem {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  background: rgba(13,13,34,0.7);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: background 0.18s, border-left-color 0.18s, transform 0.18s;
  user-select: none;
}
.br-mod-listitem:hover {
  background: rgba(0,229,255,0.06);
  border-left-color: rgba(0,229,255,0.5);
  transform: translateX(2px);
}
.br-mod-listitem.active {
  border-left-color: var(--accent);
  background: rgba(0,229,255,0.1);
  transform: translateX(3px);
}

.br-mod-listitem-thumb {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.br-mod-listitem-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.br-list-ph {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 900;
  color: rgba(0,229,255,0.5);
}

.br-mod-listitem-info { flex: 1; min-width: 0; }
.br-list-num {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}
.br-list-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Wheel ───────────────────────────────────────── */
.br-mods-wheel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.br-wheel-ring {
  position: relative;
  width: 300px;
  height: 300px;
}

/* Decorative outer ring */
.br-wheel-ring::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 268px;
  height: 268px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.15);
  pointer-events: none;
}
.br-wheel-ring::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px dashed rgba(0,229,255,0.07);
  pointer-events: none;
}

/* Center glow */
.br-wheel-center-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.18) 0%, rgba(13,13,34,0.95) 70%);
  border: 2px solid rgba(0,229,255,0.3);
  box-shadow: 0 0 28px rgba(0,229,255,0.2), inset 0 0 16px rgba(0,229,255,0.08);
  pointer-events: none;
  z-index: 1;
}

/* Wheel items */
.br-wheel-item {
  position: absolute;
  width: 58px;
  height: 58px;
  cursor: pointer;
  z-index: 2;
}
.br-wheel-item img,
.br-wheel-item .br-wheel-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(156,163,175,0.35);
  background: rgba(13,13,34,0.9);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.br-wheel-ph {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  font-weight: 900;
  color: rgba(0,229,255,0.4);
}
.br-wheel-item:hover img,
.br-wheel-item:hover .br-wheel-ph {
  border-color: rgba(0,229,255,0.6);
  box-shadow: 0 0 12px rgba(0,229,255,0.4);
  transform: scale(1.12);
}
.br-wheel-item.active img,
.br-wheel-item.active .br-wheel-ph {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(0,229,255,0.65), 0 0 6px rgba(0,229,255,0.4);
  transform: scale(1.18);
}

/* ── Detail panel wrapper ────────────────────────── */
.br-mods-detail-wrap { position: relative; }

.br-mod-panel {
  display: none;
  background: rgba(13,13,34,0.9);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  padding: 1.1rem 1.2rem 0.9rem;
  position: relative;
}
.br-mod-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
  pointer-events: none;
}
.br-mod-panel.active { display: block; }

/* ── Detail header ───────────────────────────────── */
.br-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.br-panel-num {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 7px rgba(0,229,255,0.3);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.br-panel-meta { flex: 1; min-width: 0; }
.br-panel-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.br-panel-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.83rem;
  color: #a0a0c0;
  line-height: 1.45;
  margin: 0.3rem 0 0;
}

/* ── Rarity slots ────────────────────────────────── */
.br-panel-rarities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.br-rarity-slot {
  aspect-ratio: 1;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: rgba(0,0,0,0.3);
}
.br-rarity-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.br-rs-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* Rarity base colors */
.br-rs-gray   { border-color: rgba(156,163,175,0.45); box-shadow: 0 0 5px rgba(156,163,175,0.15); }
.br-rs-green  { border-color: rgba(34,197,94,0.45);   box-shadow: 0 0 5px rgba(34,197,94,0.15); }
.br-rs-blue   { border-color: rgba(59,130,246,0.45);  box-shadow: 0 0 5px rgba(59,130,246,0.15); }
.br-rs-purple { border-color: rgba(168,85,247,0.45);  box-shadow: 0 0 5px rgba(168,85,247,0.15); }
.br-rs-yellow { border-color: rgba(234,179,8,0.45);   box-shadow: 0 0 6px rgba(234,179,8,0.15); }

/* Hover / active glow */
.br-rs-gray.hovered,   .br-rs-gray:hover   { border-color: #9ca3af; box-shadow: 0 0 8px rgba(156,163,175,0.5); transform: scale(1.06); }
.br-rs-green.hovered,  .br-rs-green:hover  { border-color: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.5); transform: scale(1.06); }
.br-rs-blue.hovered,   .br-rs-blue:hover   { border-color: #3b82f6; box-shadow: 0 0 9px rgba(59,130,246,0.5); transform: scale(1.06); }
.br-rs-purple.hovered, .br-rs-purple:hover { border-color: #a855f7; box-shadow: 0 0 10px rgba(168,85,247,0.55); transform: scale(1.06); }
.br-rs-yellow.hovered, .br-rs-yellow:hover { border-color: #eab308; box-shadow: 0 0 10px rgba(234,179,8,0.55); transform: scale(1.06); }

/* ── Inline hover message ────────────────────────── */
.br-panel-msg {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  color: #c0c0e0;
  line-height: 1.4;
  min-height: 2.4em;
  padding: 0.3rem 0 0.4rem;
  border-bottom: 1px solid rgba(0,229,255,0.1);
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
}

/* ── Tips button (full width, prominent) ─────────── */
.br-tips-btn {
  width: 100%;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #020c14;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  border: none;
  padding: 0.52rem 1rem;
  margin-bottom: 0.75rem;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  cursor: pointer;
  transition: opacity 0.15s, filter 0.15s;
  display: block;
}
.br-tips-btn:hover {
  opacity: 0.88;
  filter: brightness(1.1);
}

/* ── Admin bar ───────────────────────────────────── */
.br-panel-admin {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

/* ── Empty state ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* ── Modal rarity section ────────────────────────── */
.mod-rarity-section {
  margin-top: 0.9rem;
  border-left: 3px solid;
  padding-left: 0.8rem;
}

/* ── Tips popup ──────────────────────────────────── */
.tips-popup-box {
  background: #0d0d22;
  border: 1px solid var(--accent);
  clip-path: polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,16px 100%,0 calc(100% - 16px));
  max-width: 460px;
  width: 92%;
  max-height: 72vh;
  overflow-y: auto;
  padding: 1.4rem 1.7rem 1.6rem;
  position: relative;
}
.tips-popup-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
  pointer-events: none;
}
.tips-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0,229,255,0.2);
}
.tips-popup-name {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent2);
}
.tips-popup-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.15s;
  cursor: pointer;
}
.tips-popup-close:hover { color: var(--accent2); }
.tips-popup-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}
.tips-popup-item {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.97rem;
  color: #c0c0e0;
  line-height: 1.5;
  padding: 0.48rem 0.75rem;
  background: rgba(0,229,255,0.04);
  border-left: 2px solid rgba(0,229,255,0.3);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 960px) {
  .br-mods-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .br-mods-wheel-wrap { order: -1; }
  .br-mods-list { flex-direction: row; flex-wrap: wrap; max-height: none; }
  .br-mod-listitem { flex: 0 1 calc(50% - 0.2rem); }
  .br-wheel-ring {
    width: min(300px, calc(100vw - 2rem));
    height: min(300px, calc(100vw - 2rem));
  }
}
@media (max-width: 600px) {
  .section-intro-title { font-size: 1.4rem; letter-spacing: 3px; }
  .section-intro-block { padding: 1.5rem 1.2rem; }
  .section-intro-line { height: 2.2rem; }
  .br-mod-listitem { flex: 0 1 100%; }
}
